@roxyapi/ui 1.2.0 → 1.3.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 (207) hide show
  1. package/AGENTS.md +19 -1
  2. package/README.md +39 -0
  3. package/THEMING.md +2 -0
  4. package/components-catalog.json +1 -1
  5. package/dist/cdn/components/almanac-day.js +3 -3
  6. package/dist/cdn/components/angel-number-card.js +1 -1
  7. package/dist/cdn/components/angel-number-lookup.js +1 -1
  8. package/dist/cdn/components/arudha-padas.js +2 -2
  9. package/dist/cdn/components/ashtakavarga-grid.js +3 -3
  10. package/dist/cdn/components/aspects-table.js +1 -1
  11. package/dist/cdn/components/astrocartography-map.js +4 -4
  12. package/dist/cdn/components/bazi-chart.js +2 -2
  13. package/dist/cdn/components/bhav-chalit-table.js +2 -2
  14. package/dist/cdn/components/bhava-bala-table.js +2 -2
  15. package/dist/cdn/components/biorhythm-chart.js +2 -2
  16. package/dist/cdn/components/bodygraph.js +3 -3
  17. package/dist/cdn/components/chara-karakas.js +2 -2
  18. package/dist/cdn/components/choghadiya-grid.js +1 -1
  19. package/dist/cdn/components/compatibility-card.js +2 -2
  20. package/dist/cdn/components/compound-number.js +3 -3
  21. package/dist/cdn/components/crystal-card.js +1 -1
  22. package/dist/cdn/components/crystal-grid.js +2 -2
  23. package/dist/cdn/components/dasha-timeline.js +2 -2
  24. package/dist/cdn/components/data.js +1 -1
  25. package/dist/cdn/components/divisional-chart.js +4 -4
  26. package/dist/cdn/components/dosha-card.js +2 -2
  27. package/dist/cdn/components/dosha-constitution.js +2 -2
  28. package/dist/cdn/components/dream-card.js +3 -3
  29. package/dist/cdn/components/dream-search.js +2 -2
  30. package/dist/cdn/components/endpoint-form.js +2 -2
  31. package/dist/cdn/components/ephemeris-table.js +2 -2
  32. package/dist/cdn/components/fixed-stars.js +3 -3
  33. package/dist/cdn/components/flying-star-chart.js +2 -2
  34. package/dist/cdn/components/forecast-digest.js +3 -3
  35. package/dist/cdn/components/forecast-timeline.js +3 -3
  36. package/dist/cdn/components/gematria.js +3 -3
  37. package/dist/cdn/components/gochara-table.js +3 -3
  38. package/dist/cdn/components/guna-milan.js +3 -3
  39. package/dist/cdn/components/hd-connection.js +2 -2
  40. package/dist/cdn/components/hd-penta.js +16 -16
  41. package/dist/cdn/components/hd-type-card.js +3 -3
  42. package/dist/cdn/components/hd-variables.js +1 -1
  43. package/dist/cdn/components/heliacal-table.js +3 -3
  44. package/dist/cdn/components/hexagram.js +1 -1
  45. package/dist/cdn/components/hora-table.js +3 -3
  46. package/dist/cdn/components/horoscope-card.js +2 -2
  47. package/dist/cdn/components/kp-chart.js +3 -3
  48. package/dist/cdn/components/kp-finance-card.js +2 -2
  49. package/dist/cdn/components/kp-planets-table.js +2 -2
  50. package/dist/cdn/components/kp-ruling-planets.js +3 -3
  51. package/dist/cdn/components/kua-card.js +2 -2
  52. package/dist/cdn/components/local-space-compass.js +4 -4
  53. package/dist/cdn/components/location-search.js +1 -1
  54. package/dist/cdn/components/luck-pillars.js +3 -3
  55. package/dist/cdn/components/mayan-day-sign.js +3 -3
  56. package/dist/cdn/components/moon-phase.js +2 -2
  57. package/dist/cdn/components/nakshatra-card.js +3 -3
  58. package/dist/cdn/components/natal-chart.js +10 -10
  59. package/dist/cdn/components/numerology-card.js +2 -2
  60. package/dist/cdn/components/panchang-table.js +2 -2
  61. package/dist/cdn/components/positions-table.js +3 -3
  62. package/dist/cdn/components/profection-card.js +3 -3
  63. package/dist/cdn/components/reference-card.js +3 -3
  64. package/dist/cdn/components/relocation-wheel.js +11 -11
  65. package/dist/cdn/components/report.js +50 -0
  66. package/dist/cdn/components/shadbala-table.js +2 -2
  67. package/dist/cdn/components/synastry-chart.js +6 -6
  68. package/dist/cdn/components/tarot-card.js +2 -2
  69. package/dist/cdn/components/tarot-catalog.js +2 -2
  70. package/dist/cdn/components/tarot-spread.js +2 -2
  71. package/dist/cdn/components/transit-wheel.js +1 -1
  72. package/dist/cdn/components/transits-table.js +2 -2
  73. package/dist/cdn/components/upagraha-table.js +3 -3
  74. package/dist/cdn/components/vastu-mandala.js +5 -5
  75. package/dist/cdn/components/vedic-aspects.js +3 -3
  76. package/dist/cdn/components/vedic-daily.js +2 -2
  77. package/dist/cdn/components/vedic-kundli.js +45 -45
  78. package/dist/cdn/components/vedic-planets-table.js +1 -1
  79. package/dist/cdn/components/western-planets-table.js +2 -2
  80. package/dist/cdn/components/yoga-list.js +1 -1
  81. package/dist/cdn/components/zodiac-card.js +3 -3
  82. package/dist/cdn/locales/de.js +1 -1
  83. package/dist/cdn/locales/es.js +1 -1
  84. package/dist/cdn/locales/fr.js +1 -1
  85. package/dist/cdn/locales/hi.js +1 -1
  86. package/dist/cdn/locales/pt.js +1 -1
  87. package/dist/cdn/locales/ru.js +1 -1
  88. package/dist/cdn/locales/tr.js +1 -1
  89. package/dist/cdn/roxy-ui.js +84 -84
  90. package/dist/cdn/widgets.js +1 -1
  91. package/dist/components/almanac-day.js +1 -1
  92. package/dist/components/angel-number-card.js +1 -1
  93. package/dist/components/angel-number-lookup.js +1 -1
  94. package/dist/components/arudha-padas.js +1 -1
  95. package/dist/components/ashtakavarga-grid.js +1 -1
  96. package/dist/components/aspects-table.js +1 -1
  97. package/dist/components/astrocartography-map.js +2 -2
  98. package/dist/components/bazi-chart.js +1 -1
  99. package/dist/components/bhav-chalit-table.js +1 -1
  100. package/dist/components/bhava-bala-table.js +1 -1
  101. package/dist/components/biorhythm-chart.js +1 -1
  102. package/dist/components/bodygraph.js +2 -2
  103. package/dist/components/chara-karakas.js +1 -1
  104. package/dist/components/choghadiya-grid.js +1 -1
  105. package/dist/components/compatibility-card.js +1 -1
  106. package/dist/components/compound-number.js +1 -1
  107. package/dist/components/crystal-card.js +1 -1
  108. package/dist/components/crystal-grid.js +1 -1
  109. package/dist/components/dasha-timeline.js +1 -1
  110. package/dist/components/data.js +1 -1
  111. package/dist/components/divisional-chart.js +8 -8
  112. package/dist/components/dosha-card.js +1 -1
  113. package/dist/components/dosha-constitution.js +1 -1
  114. package/dist/components/dream-card.js +1 -1
  115. package/dist/components/dream-search.js +1 -1
  116. package/dist/components/endpoint-form.js +1 -1
  117. package/dist/components/ephemeris-table.js +1 -1
  118. package/dist/components/fixed-stars.js +1 -1
  119. package/dist/components/flying-star-chart.js +1 -1
  120. package/dist/components/forecast-digest.js +1 -1
  121. package/dist/components/forecast-timeline.js +1 -1
  122. package/dist/components/gematria.js +1 -1
  123. package/dist/components/gochara-table.js +1 -1
  124. package/dist/components/guna-milan.js +1 -1
  125. package/dist/components/hd-connection.js +3 -3
  126. package/dist/components/hd-penta.js +1 -1
  127. package/dist/components/hd-type-card.js +1 -1
  128. package/dist/components/hd-variables.js +1 -1
  129. package/dist/components/heliacal-table.js +1 -1
  130. package/dist/components/hexagram.js +1 -1
  131. package/dist/components/hora-table.js +1 -1
  132. package/dist/components/horoscope-card.js +1 -1
  133. package/dist/components/kp-chart.js +1 -1
  134. package/dist/components/kp-finance-card.js +1 -1
  135. package/dist/components/kp-planets-table.js +1 -1
  136. package/dist/components/kp-ruling-planets.js +1 -1
  137. package/dist/components/kua-card.js +1 -1
  138. package/dist/components/local-space-compass.js +3 -3
  139. package/dist/components/location-search.js +1 -1
  140. package/dist/components/luck-pillars.js +1 -1
  141. package/dist/components/mayan-day-sign.js +1 -1
  142. package/dist/components/moon-phase.js +1 -1
  143. package/dist/components/nakshatra-card.js +1 -1
  144. package/dist/components/natal-chart.js +1 -1
  145. package/dist/components/numerology-card.js +1 -1
  146. package/dist/components/panchang-table.js +1 -1
  147. package/dist/components/positions-table.js +1 -1
  148. package/dist/components/profection-card.js +1 -1
  149. package/dist/components/reference-card.js +1 -1
  150. package/dist/components/relocation-wheel.js +10 -10
  151. package/dist/components/report.d.ts +61 -0
  152. package/dist/components/report.js +1 -0
  153. package/dist/components/shadbala-table.js +1 -1
  154. package/dist/components/synastry-chart.js +4 -4
  155. package/dist/components/tarot-card.js +1 -1
  156. package/dist/components/tarot-catalog.js +1 -1
  157. package/dist/components/tarot-spread.js +1 -1
  158. package/dist/components/transit-wheel.js +7 -7
  159. package/dist/components/transits-table.js +1 -1
  160. package/dist/components/upagraha-table.js +1 -1
  161. package/dist/components/vastu-mandala.js +4 -4
  162. package/dist/components/vedic-aspects.js +1 -1
  163. package/dist/components/vedic-daily.js +1 -1
  164. package/dist/components/vedic-kundli.js +1 -1
  165. package/dist/components/vedic-planets-table.js +1 -1
  166. package/dist/components/western-planets-table.js +1 -1
  167. package/dist/components/yoga-list.js +1 -1
  168. package/dist/components/zodiac-card.js +1 -1
  169. package/dist/forms/labels/de.json +1 -1
  170. package/dist/forms/labels/en.json +1 -1
  171. package/dist/forms/labels/es.json +1 -1
  172. package/dist/forms/labels/fr.json +1 -1
  173. package/dist/forms/labels/hi.json +1 -1
  174. package/dist/forms/labels/pt.json +1 -1
  175. package/dist/forms/labels/ru.json +1 -1
  176. package/dist/forms/labels/tr.json +1 -1
  177. package/dist/forms.json +1 -1
  178. package/dist/generated/endpoint-defaults.d.ts +1 -0
  179. package/dist/i18n/chrome-strings.d.ts +1 -1
  180. package/dist/index.cjs +83 -83
  181. package/dist/index.d.ts +1 -0
  182. package/dist/index.js +85 -85
  183. package/dist/locales/de.js +1 -1
  184. package/dist/locales/es.js +1 -1
  185. package/dist/locales/fr.js +1 -1
  186. package/dist/locales/hi.js +1 -1
  187. package/dist/locales/pt.js +1 -1
  188. package/dist/locales/ru.js +1 -1
  189. package/dist/locales/tr.js +1 -1
  190. package/dist/manifest.json +1 -1
  191. package/dist/schemas/post--reports-bazi.json +1 -0
  192. package/dist/schemas/post--reports-human-design.json +1 -0
  193. package/dist/schemas/post--reports-kundli.json +1 -0
  194. package/dist/schemas/post--reports-matchmaking.json +1 -0
  195. package/dist/schemas/post--reports-natal.json +1 -0
  196. package/dist/schemas/post--reports-numerology.json +1 -0
  197. package/dist/schemas/post--reports-synastry.json +1 -0
  198. package/dist/schemas/post--reports-tarot.json +1 -0
  199. package/dist/schemas/post--reports-yearly-forecast.json +1 -0
  200. package/dist/tool-component.cjs +1 -1
  201. package/dist/tool-component.js +1 -1
  202. package/dist/types/index.d.ts +1 -1
  203. package/dist/types/types.gen.d.ts +17614 -15166
  204. package/dist/utils/brand.d.ts +3 -0
  205. package/dist/utils/object-url.d.ts +17 -0
  206. package/dist/version.d.ts +1 -1
  207. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- var RoxyUI_hd_type_card=(()=>{var z=Object.defineProperty;var Et=Object.getOwnPropertyDescriptor;var Te=Object.getOwnPropertyNames;var ke=Object.prototype.hasOwnProperty;var Ae=(o,t)=>{for(var e in t)z(o,e,{get:t[e],enumerable:true})},_e=(o,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Te(t))!ke.call(o,n)&&n!==e&&z(o,n,{get:()=>t[n],enumerable:!(r=Et(t,n))||r.enumerable});return o};var Re=o=>_e(z({},"__esModule",{value:true}),o),h=(o,t,e,r)=>{for(var n=r>1?void 0:r?Et(t,e):t,s=o.length-1,i;s>=0;s--)(i=o[s])&&(n=(r?i(t,e,n):i(n))||n);return r&&n&&z(t,e,n),n};var yr={};Ae(yr,{ROXY_UI_TOKENS_STYLE_ID:()=>X,RoxyHdTypeCard:()=>C,injectRoxyTokens:()=>Z});var D=globalThis,B=D.ShadowRoot&&(D.ShadyCSS===void 0||D.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,st=Symbol(),wt=new WeakMap,U=class{constructor(t,e,r){if(this._$cssResult$=true,r!==st)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(B&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=wt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&wt.set(e,t))}return t}toString(){return this.cssText}},$t=o=>new U(typeof o=="string"?o:o+"",void 0,st),g=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((r,n,s)=>r+(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.")})(n)+o[s+1],o[0]);return new U(e,o,st)},Tt=(o,t)=>{if(B)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),n=D.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=e.cssText,o.appendChild(r)}},it=B?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return $t(e)})(o):o;var{is:Ce,defineProperty:Pe,getOwnPropertyDescriptor:Oe,getOwnPropertyNames:Fe,getOwnPropertySymbols:Ue,getPrototypeOf:Le}=Object,q=globalThis,kt=q.trustedTypes,Ke=kt?kt.emptyScript:"",Ie=q.reactiveElementPolyfillSupport,L=(o,t)=>o,K={toAttribute(o,t){switch(t){case Boolean:o=o?Ke: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}},V=(o,t)=>!Ce(o,t),At={attribute:true,type:String,converter:K,reflect:false,useDefault:false,hasChanged:V};Symbol.metadata??=Symbol("metadata"),q.litPropertyMetadata??=new WeakMap;var v=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=At){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&&Pe(this.prototype,t,n)}}static getPropertyDescriptor(t,e,r){let{get:n,set:s}=Oe(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:n,set(i){let l=n?.call(this);s?.call(this,i),this.requestUpdate(t,l,r)},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??At}static _$Ei(){if(this.hasOwnProperty(L("elementProperties")))return;let t=Le(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(L("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(L("properties"))){let e=this.properties,r=[...Fe(e),...Ue(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 Tt(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 s=(r.converter?.toAttribute!==void 0?r.converter:K).toAttribute(e,r.type);this._$Em=t,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(t,e){let r=this.constructor,n=r._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let s=r.getPropertyOptions(n),i=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:K;this._$Em=n;let l=i.fromAttribute(e,s.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(t,e,r,n=false,s){if(t!==void 0){let i=this.constructor;if(n===false&&(s=this[t]),r??=i.getPropertyOptions(t),!((r.hasChanged??V)(s,e)||r.useDefault&&r.reflect&&s===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,r))))return;this.C(t,e,r)}this.isUpdatePending===false&&(this._$ES=this._$EP())}C(t,e,{useDefault:r,reflect:n,wrapped:s},i){r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),s!==true||i!==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,s]of this._$Ep)this[n]=s;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[n,s]of r){let{wrapped:i}=s,l=this[n];i!==true||this._$AL.has(n)||l===void 0||this.C(n,void 0,s,l)}}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){}};v.elementStyles=[],v.shadowRootOptions={mode:"open"},v[L("elementProperties")]=new Map,v[L("finalized")]=new Map,Ie?.({ReactiveElement:v}),(q.reactiveElementVersions??=[]).push("2.1.2");var ut=globalThis,_t=o=>o,Y=ut.trustedTypes,Rt=Y?Y.createPolicy("lit-html",{createHTML:o=>o}):void 0,Lt="$lit$",w=`lit$${Math.random().toFixed(9).slice(2)}$`,Kt="?"+w,je=`<${Kt}>`,A=document,j=()=>A.createComment(""),N=o=>o===null||typeof o!="object"&&typeof o!="function",yt=Array.isArray,Ne=o=>yt(o)||typeof o?.[Symbol.iterator]=="function",at=`[
2
- \f\r]`,I=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ct=/-->/g,Pt=/>/g,T=RegExp(`>|${at}(?:([^\\s"'>=/]+)(${at}*=${at}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ot=/'/g,Ft=/"/g,It=/^(?:script|style|textarea|title)$/i,mt=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),c=mt(1),vr=mt(2),Sr=mt(3),_=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Ut=new WeakMap,k=A.createTreeWalker(A,129);function jt(o,t){if(!yt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Rt!==void 0?Rt.createHTML(t):t}var He=(o,t)=>{let e=o.length-1,r=[],n,s=t===2?"<svg>":t===3?"<math>":"",i=I;for(let l=0;l<e;l++){let a=o[l],m,u,y=-1,b=0;for(;b<a.length&&(i.lastIndex=b,u=i.exec(a),u!==null);)b=i.lastIndex,i===I?u[1]==="!--"?i=Ct:u[1]!==void 0?i=Pt:u[2]!==void 0?(It.test(u[2])&&(n=RegExp("</"+u[2],"g")),i=T):u[3]!==void 0&&(i=T):i===T?u[0]===">"?(i=n??I,y=-1):u[1]===void 0?y=-2:(y=i.lastIndex-u[2].length,m=u[1],i=u[3]===void 0?T:u[3]==='"'?Ft:Ot):i===Ft||i===Ot?i=T:i===Ct||i===Pt?i=I:(i=T,n=void 0);let E=i===T&&o[l+1].startsWith("/>")?" ":"";s+=i===I?a+je:y>=0?(r.push(m),a.slice(0,y)+Lt+a.slice(y)+w+E):a+w+(y===-2?l:E)}return[jt(o,s+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},H=class o{constructor({strings:t,_$litType$:e},r){let n;this.parts=[];let s=0,i=0,l=t.length-1,a=this.parts,[m,u]=He(t,e);if(this.el=o.createElement(m,r),k.currentNode=this.el.content,e===2||e===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(n=k.nextNode())!==null&&a.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let y of n.getAttributeNames())if(y.endsWith(Lt)){let b=u[i++],E=n.getAttribute(y).split(w),M=/([.?@])?(.*)/.exec(b);a.push({type:1,index:s,name:M[2],strings:E,ctor:M[1]==="."?lt:M[1]==="?"?ct:M[1]==="@"?pt:O}),n.removeAttribute(y)}else y.startsWith(w)&&(a.push({type:6,index:s}),n.removeAttribute(y));if(It.test(n.tagName)){let y=n.textContent.split(w),b=y.length-1;if(b>0){n.textContent=Y?Y.emptyScript:"";for(let E=0;E<b;E++)n.append(y[E],j()),k.nextNode(),a.push({type:2,index:++s});n.append(y[b],j())}}}else if(n.nodeType===8)if(n.data===Kt)a.push({type:2,index:s});else{let y=-1;for(;(y=n.data.indexOf(w,y+1))!==-1;)a.push({type:7,index:s}),y+=w.length-1}s++}}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,s=N(t)?void 0:t._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(false),s===void 0?n=void 0:(n=new s(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 dt=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 s=k.nextNode(),i=0,l=0,a=r[0];for(;a!==void 0;){if(i===a.index){let m;a.type===2?m=new G(s,s.nextSibling,this,t):a.type===1?m=new a.ctor(s,a.name,a.strings,this,t):a.type===6&&(m=new ht(s,this,t)),this._$AV.push(m),a=r[++l]}i!==a?.index&&(s=k.nextNode(),i++)}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++}},G=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,n){this.type=2,this._$AH=d,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),N(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==_&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ne(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&N(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=H.createElement(jt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(e);else{let s=new dt(n,this),i=s.u(this.options);s.p(e),this.T(i),this._$AH=s}}_$AC(t){let e=Ut.get(t.strings);return e===void 0&&Ut.set(t.strings,e=new H(t)),e}k(t){yt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,n=0;for(let s of t)n===e.length?e.push(r=new o(this.O(j()),this.O(j()),this,this.options)):r=e[n],r._$AI(s),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=_t(t).nextSibling;_t(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},O=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,n,s){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=d}_$AI(t,e=this,r,n){let s=this.strings,i=false;if(s===void 0)t=P(this,t,e,0),i=!N(t)||t!==this._$AH&&t!==_,i&&(this._$AH=t);else{let l=t,a,m;for(t=s[0],a=0;a<s.length-1;a++)m=P(this,l[r+a],e,a),m===_&&(m=this._$AH[a]),i||=!N(m)||m!==this._$AH[a],m===d?t=d:t!==d&&(t+=(m??"")+s[a+1]),this._$AH[a]=m}i&&!n&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},lt=class extends O{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},ct=class extends O{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},pt=class extends O{constructor(t,e,r,n,s){super(t,e,r,n,s),this.type=5}_$AI(t,e=this){if((t=P(this,t,e,0)??d)===_)return;let r=this._$AH,n=t===d&&r!==d||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==d&&(r===d||n);n&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ht=class{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){P(this,t)}};var Ge=ut.litHtmlPolyfillSupport;Ge?.(H,G),(ut.litHtmlVersions??=[]).push("3.3.3");var Nt=(o,t,e)=>{let r=e?.renderBefore??t,n=r._$litPart$;if(n===void 0){let s=e?.renderBefore??null;r._$litPart$=n=new G(t.insertBefore(j(),s),s,void 0,e??{})}return n._$AI(o),n};var ft=globalThis,$=class extends v{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=Nt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false)}render(){return _}};$._$litElement$=true,$.finalized=true,ft.litElementHydrateSupport?.({LitElement:$});var Me=ft.litElementPolyfillSupport;Me?.({LitElement:$});(ft.litElementVersions??=[]).push("4.2.2");var Ht=[{endpoint:"human-design/type",method:"POST"},{endpoint:"human-design/profile",method:"POST"}];var ze={attribute:true,type:String,converter:K,reflect:false,hasChanged:V},De=(o=ze,t,e)=>{let{kind:r,metadata:n}=e,s=globalThis.litPropertyMetadata.get(n);if(s===void 0&&globalThis.litPropertyMetadata.set(n,s=new Map),r==="setter"&&((o=Object.create(o)).wrapped=true),s.set(e.name,o),r==="accessor"){let{name:i}=e;return{set(l){let a=t.get.call(this);t.set.call(this,l),this.requestUpdate(i,a,o,true,l)},init(l){return l!==void 0&&this.C(i,void 0,o,l),l}}}if(r==="setter"){let{name:i}=e;return function(l){let a=this[i];t.call(this,l),this.requestUpdate(i,a,o,true,l)}}throw Error("Unsupported decorator location: "+r)};function f(o){return(t,e)=>typeof e=="object"?De(o,t,e):((r,n,s)=>{let i=n.hasOwnProperty(s);return n.constructor.createProperty(s,r),i?Object.getOwnPropertyDescriptor(n,s):void 0})(o,t,e)}function x(o){return f({...o,state:true,attribute:false})}var R=o=>o??d;var Gt=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function xt(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 Be={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 Mt(o,t=Gt){let e=xt(o);if(!e)return;let r=gt(e,t);if(r)return r;let n=e.toLowerCase().split("-"),s=n[0];if(s==="zh"){let i=n.find(l=>l==="hans"||l==="hant")??Be[n[1]??""];return i?gt(`zh-${i}`,t):void 0}return gt(s,t)}var qe={Fraunces:["latin","latin-ext"],Jost:["latin","latin-ext","cyrillic"],Geist:["latin","latin-ext","cyrillic"]},bt='"Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',zt='"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',J={"fraunces-jost":{name:"Fraunces with Jost",sans:bt,display:'"Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif'},jost:{name:"Jost",sans:bt,display:bt},geist:{name:"Geist",sans:zt,display:zt},system:{name:"System",sans:Dt,display:Dt}};function Bt(o){let{sans:t,display:e}=J[o];return Object.keys(qe).filter(r=>`${t} ${e}`.includes(`"${r}"`))}var qt="1.2.0";var Ve=/^(.*)\/cdn\/(?:roxy-ui|components\/[\w-]+)\.js$/,Ye=/^(.*\/dist)\/(?:index|components\/[\w-]+)\.js$/;function Vt(o,t){if(!t)return;let e=new URL(t);if(e.protocol!=="https:"&&e.protocol!=="http:")return;let r=(Ve.exec(e.pathname)??Ye.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 Qe={},We="color-mix(in oklab, var(--roxy-accent) 70%, black)",Je="var(--roxy-accent)",Xe="color-mix(in srgb, var(--roxy-accent) 40%, transparent)",Yt=/^#(?:[\da-f]{3}|[\da-f]{6})$/i;function Wt(o){return o!==void 0&&Object.hasOwn(J,o)}function Jt(o){let t=[];return o.brandColor&&Yt.test(o.brandColor)&&t.push(`--roxy-primary:${o.brandColor}`),o.brandAccent&&Yt.test(o.brandAccent)&&t.push(`--roxy-accent:${o.brandAccent}`,`--roxy-accent-ink:light-dark(${We},${Je})`,`--roxy-ring:${Xe}`),t.join(";")}function Xt(o,t){if(Wt(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,s=n?.localName==="style"?n:null;s?.sheet&&(s.sheet.disabled=true);let i,l,a;try{let m=globalThis.getComputedStyle(o),u=y=>m.getPropertyValue(y).trim();i=u("--roxy-font-sans"),l=u("--roxy-font-display"),a=u("--roxy-font")}finally{s?.sheet&&(s.sheet.disabled=false)}if(!(i||l))return Wt(a)?a:void 0}function Zt(o){let{sans:t,display:e}=J[o];return`--roxy-font:${o};--roxy-font-sans:${t};--roxy-font-display:${e}`}var Ze=Vt(qt,globalThis.document?.currentScript?.src||Qe.url);function Qt(o,t=Ze){if(typeof document>"u"||t===void 0)return;let e=`roxy-ui-font-${o}`;if(Bt(o).length===0||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)}var te='@layer roxy.tokens,roxy.theme;@layer roxy.tokens{:where(:root,:host){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-font: initial;--roxy-font-sans: initial;--roxy-font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;--roxy-text-base: 1rem;--roxy-text-scale: 1.15;--roxy-weight-normal: 400;--roxy-weight-bold: 600;--roxy-leading-tight: 1.25;--roxy-leading-normal: 1.5;--roxy-tracking-tight: -0.01em;--roxy-tracking-normal: 0em;--roxy-space-unit: 0.25rem;--roxy-radius: 6px;--roxy-motion-duration: 200ms;--roxy-motion-easing: cubic-bezier(0.4, 0, 0.2, 1)}:where(:root,:host,[data-theme],.light,.dark){--roxy-surface: var(--roxy-bg);--roxy-primary: var(--roxy-fg);--roxy-secondary: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-muted: color-mix(in oklab, var(--roxy-fg) 60%, var(--roxy-bg));--roxy-border: color-mix(in oklab, var(--roxy-fg) 14%, var(--roxy-bg));--roxy-ring: color-mix(in srgb, var(--roxy-accent) 40%, transparent);--roxy-heat: var(--roxy-danger);--roxy-font-display: var(--roxy-font-sans);--roxy-text-sm: calc(var(--roxy-text-base) / var(--roxy-text-scale));--roxy-text-xs: calc(var(--roxy-text-sm) / var(--roxy-text-scale));--roxy-text-lg: calc(var(--roxy-text-base) * var(--roxy-text-scale));--roxy-text-xl: calc( var(--roxy-text-lg) * var(--roxy-text-scale) * var(--roxy-text-scale) );--roxy-space-xs: var(--roxy-space-unit);--roxy-space-sm: calc(var(--roxy-space-unit) * 2);--roxy-space-md: calc(var(--roxy-space-unit) * 4);--roxy-space-lg: calc(var(--roxy-space-unit) * 6);--roxy-space-xl: calc(var(--roxy-space-unit) * 10);--roxy-line-thick: calc(var(--roxy-space-unit) / 2);--roxy-touch: calc(var(--roxy-space-unit) * 11);--roxy-radius-sm: calc(var(--roxy-radius) / 2);--roxy-radius-md: var(--roxy-radius);--roxy-radius-lg: calc(var(--roxy-radius) * 5 / 3);--roxy-radius-full: 9999px;--roxy-shadow-sm: none;--roxy-shadow-md: 0 4px 12px color-mix(in srgb, black 10%, transparent);--roxy-shadow-lg: 0 12px 32px color-mix(in srgb, black 18%, transparent)}@media(prefers-color-scheme:dark){:where(:root,:host){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white)}}:where(:root[data-theme=light],[data-theme=light],:root.light,.light,:host([data-theme="light"])){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black)}:where(:root[data-theme=dark],[data-theme=dark],:root.dark,.dark,:host([data-theme="dark"])){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white)}@media(prefers-reduced-motion:reduce){:where(:root,:host){--roxy-motion-duration: 0ms}}}';var X="roxy-ui-tokens";function Z(){if(typeof document>"u")return null;let o=document.getElementById(X);if(o)return o;let t=document.createElement("style");return t.id=X,t.textContent=te,document.head.prepend(t),t}function ee(o){return o.toLowerCase().replace(/[\s_-]+/g," ").trim()}var re="__ROXY_UI_I18N__";function oe(){let o=globalThis,t=o[re];if(t)return t;let e={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return o[re]=e,e}function tr(o,t){return t?o.replace(/\{\{(\w+)\}\}/g,(e,r)=>r in t?String(t[r]??""):e):o}function ne(o,t,e){return tr(er(o,t)??t,e)}function er(o,t){if(!o)return;let{catalogs:e}=oe(),r=o.toLowerCase();return(e[r]??e[r.split("-")[0]])?.[ee(t)]}function se(o){let{listeners:t}=oe();return t.add(o),()=>{t.delete(o)}}var Q=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){this.unsubscribe=se(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var tt=class extends ${constructor(){super();this.translator=(e,r)=>this.t(e,r);new Q(this)}connectedCallback(){super.connectedCallback(),Z()}fontDeclarations(e){let r=Xt(this,e);return r?(Qt(r),Zt(r)):""}renderFontStyle(){let e=this.fontDeclarations();return e?c`<style>:host{${e}}</style>`:d}t(e,r){return ne(this.effectiveLang(),e,r)}effectiveLang(){return xt(this)}};var ie=g`: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 rr=g`:host{--roxy-label-col:minmax(0, 25%);--_mask:var(--roxy-surface);font-family:var(--roxy-font-sans);color:var(--roxy-fg);font-size:var(--roxy-text-base);line-height:var(--roxy-leading-normal);animation:roxy-fade-in var(--roxy-motion-duration) var(--roxy-motion-easing) both;background:0 0;display:block;container-type:inline-size}:host([bare]){--_mask:var(--roxy-bg)}:host([hidden]){display:none}:host([bare]){--roxy-surface:transparent;--roxy-shadow-sm:none;--roxy-shadow-md:none}*,:before,:after{box-sizing:border-box}h1,h2,h3,h4{font-family:var(--roxy-font-display)}@keyframes roxy-fade-in{0%{transform:translateY(calc(var(--roxy-space-unit) / 2))}to{transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border) 0%, color-mix(in srgb, var(--roxy-border) 60%, transparent) 50%, var(--roxy-border) 100%);border-radius:var(--roxy-radius-md);background-size:200% 100%;animation:1.4s ease-in-out infinite roxy-shimmer}@keyframes roxy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.roxy-skeleton{animation:none}}.roxy-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.roxy-empty{padding:var(--roxy-space-lg);color:var(--roxy-muted);text-align:center;font-size:var(--roxy-text-sm)}.roxy-error{gap:var(--roxy-space-sm);padding:var(--roxy-space-lg);background:var(--roxy-surface);border:1px solid var(--roxy-danger);border-radius:var(--roxy-radius-md);color:var(--roxy-danger-fg);font-size:var(--roxy-text-sm);justify-items:start;display:grid}:host(:focus-within) .roxy-card{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}.roxy-attribution{margin-top:var(--roxy-space-sm);font-size:var(--roxy-text-xs);color:var(--roxy-muted);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink);text-decoration:underline}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs) var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);color:var(--roxy-fg);font-family:inherit;font-size:var(--roxy-text-sm);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-edit:disabled{cursor:progress;color:var(--roxy-muted)}roxy-endpoint-form+*{margin-top:var(--roxy-space-md)}.roxy-more{justify-items:center;gap:var(--roxy-space-sm);margin-top:var(--roxy-space-md);display:grid}.roxy-more .roxy-edit{min-height:var(--roxy-touch)}:host{font-variant-emoji:text}`,et=[rr,ie];var or="__cols",nr="__rows";function sr(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)}function rt(o){if(Array.isArray(o)){let s=false,i=o.map(l=>{let a=rt(l);return a!==l&&(s=true),a});return s?i:o}if(!sr(o))return o;let t=o[or],e=o[nr];if(Array.isArray(t)&&Array.isArray(e)&&Object.keys(o).length===2)return e.map(s=>{let i={};return t.forEach((l,a)=>{i[l]=rt(s[a])}),i});let r=false,n={};for(let[s,i]of Object.entries(o)){let l=rt(i);l!==i&&(r=true),n[s]=l}return r?n:o}function ae(o){return rt(o)}function de(o,t){return o.find(e=>e.attrs&&Object.entries(e.attrs).every(([r,n])=>t[r]===n))??o[0]}var ir="pk_live_YOUR_KEY",le={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 ce(o){if(o)return o===ir?le.sample:o.startsWith("pk_")?void 0:le.secret}function pe(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 he="https://roxyapi.com/api/v2";async function ar(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 ue={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.")}}},F=class extends Error{constructor(e,r=null,n=true,s,i){super(e);this.issues=r;this.worded=n;this.status=s;this.code=i}};function ye(o){return o.submitUrl?void 0:ce(o.publishableKey)}async function vt(o,t,e){let r=ye(o);if(r)throw new F(r.message);let n=o.submitUrl?await fetch(o.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:dr(t,o.submitContext),signal:e}):await lr(o,t,e);if(!n.ok){let s=await ar(n);throw new F(s.message,s.issues,s.worded,n.status,s.code)}return await n.json()}function dr(o,t){return JSON.stringify(t?{...o,context:t}:o)}function lr(o,t,e){let r=new URL(`${o.baseUrl??he}${t.path}`,document.baseURI);for(let[s,i]of Object.entries(t.query??{}))i!=null&&r.searchParams.set(s,String(i));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 ot=class{constructor(t){this.baseUrl=he;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=ye(this);if(e){this.host.error=e.message,pe(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 vt(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 F&&(this.host.issues=n.issues,this.failure={status:n.status,code:n.code}),this.worded=n instanceof F&&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 me(o,t,e,r=[]){let n={...e},s=`/${o.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(m,u)=>{let y=n[u];return delete n[u],encodeURIComponent(String(y??""))}),i=new Set(r),l={},a={};for(let[m,u]of Object.entries(n))u===void 0||u===""||(t==="GET"||i.has(m)?l[m]=u:a[m]=u);return{path:s,method:t,query:l,body:t==="POST"?a:void 0}}function fe(){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 ge=g`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 xe=g`.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 be(o,t,e){let r=o.filter(n=>!!n.body);return r.length===0?d:c`<section class="block" part="section readings"><h3>${e}</h3>${r.map((n,s)=>c`<details class="interp-card" part="reading" name="${t}" ?open="${s===0}"><summary><span class="interp-lead">${n.label}</span> ${fe()} ${n.aside?c`<span class="interp-aside"><small>${n.aside}</small></span>`:d}</summary><div class="interp-body"><p>${n.body}</p>${n.extra??d}</div></details>`)}</section>`}var cr="roxy-data";function pr(o){return o.nodeName==="SCRIPT"&&o.getAttribute("type")==="application/json"}var nt=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(pr(t)&&t.classList.contains(cr))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};var p=class extends tt{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 s=await vt(this.fetcher,{...e,query:{...e.query,offset:n.length}});if(this.lastRequest!==e)return;let i=s[r];this.data={...this.data,...s,[r]:[...n,...Array.isArray(i)?i:[]]}}catch(s){this.lastRequest===e&&(this.moreError=s instanceof Error?s.message:String(s))}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(me(r.endpoint,r.method,{...n.values,...this.ownRequest()},n.queryKeys??[]))};new nt(this),this.fetcher=new ot(this)}static{this.styles=[et]}static{this.endpoints=[]}willUpdate(e){if(e.has("data")&&this.data!=null){let r=ae(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:de(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(s=>s.trim().toLowerCase()).filter(s=>/^[a-z][a-z0-9-]*$/.test(s)),r=[Jt(this),this.fontDeclarations(this.font)].filter(Boolean).join(";");if(e.length===0&&!r)return d;let n=(r?`:host{${r}}`:"")+e.map(s=>`[part~="${s}"],roxy-endpoint-form::part(${s}){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){return this.hideReadings?d:be(e,r,this.t(n??"Reading"))}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?d:this.renderErrorBanner(this.error):this.data==null?d: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"?d:e.length>=r?d: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>`:d}</div>`}listRows(){let e=this.listKey?this.data?.[this.listKey]:void 0;return Array.isArray(e)?e:void 0}fetchFresh(e){return this.lastRequest=e,this.openedRow=void 0,this.openedRowId=void 0,this.moreError=null,this.fetcher.run(e)}load(e){return this.hostLoaded=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:Mt(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(d):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>`}};h([f({attribute:false})],p.prototype,"data",2),h([f({type:String,attribute:"data-endpoint"})],p.prototype,"endpoint",2),h([f({type:String})],p.prototype,"method",2),h([f({type:String,attribute:"publishable-key"})],p.prototype,"publishableKey",2),h([f({type:String,attribute:"base-url"})],p.prototype,"baseUrl",2),h([f({type:String,attribute:"spec-url"})],p.prototype,"specUrl",2),h([f({type:String,attribute:"submit-url"})],p.prototype,"submitUrl",2),h([f({attribute:"submit-context",converter:ue})],p.prototype,"submitContext",2),h([f({type:String,attribute:"location-url"})],p.prototype,"locationUrl",2),h([f({type:Boolean})],p.prototype,"remember",2),h([f({type:Boolean,attribute:"hide-readings",reflect:true})],p.prototype,"hideReadings",2),h([f({type:String,attribute:"hide-sections",reflect:true})],p.prototype,"hideSections",2),h([f({type:String,attribute:"brand-color"})],p.prototype,"brandColor",2),h([f({type:String,attribute:"brand-accent"})],p.prototype,"brandAccent",2),h([f({type:String})],p.prototype,"font",2),h([f({type:String,attribute:"submit-label"})],p.prototype,"submitLabel",2),h([f({type:String,attribute:"error-message"})],p.prototype,"errorMessage",2),h([f({type:String})],p.prototype,"attribution",2),h([x()],p.prototype,"loading",2),h([x()],p.prototype,"error",2),h([x()],p.prototype,"issues",2),h([x()],p.prototype,"selfFetched",2),h([x()],p.prototype,"editing",2),h([x()],p.prototype,"sticky",2),h([x()],p.prototype,"openedRow",2),h([x()],p.prototype,"openedRowId",2),h([x()],p.prototype,"moreLoading",2),h([x()],p.prototype,"moreError",2);var ve=o=>t=>{customElements.get(o)||customElements.define(o,t)};var Se=g`.roxy-facts{gap:var(--roxy-space-sm) var(--roxy-space-lg);margin:var(--roxy-space-sm) 0 0;font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums;flex-wrap:wrap;display:flex}.roxy-facts>div{min-width:0}.roxy-facts dd{overflow-wrap:anywhere;margin:0}`;var Ee=[Se,g`.roxy-facts{margin:0}.lead{font-size:var(--roxy-text-sm);margin:0}.keynotes{gap:var(--roxy-space-xs);margin:0;display:grid}.keynotes dd{margin:0}`];function St(o){let t=o.filter(e=>!!e.value);return t.length===0?d:c`<dl class="roxy-facts" part="facts">${t.map(e=>c`<div part="fact"><dt>${e.label}</dt><dd>${e.value}</dd></div>`)}</dl>`}function we(o,t,e){return!o&&!t?d:c`<div class="themes roxy-chips" part="themes">${o?c`<span class="roxy-chip" data-tone="success">${e("Signature: {{value}}",{value:o})}</span>`:d} ${t?c`<span class="roxy-chip" data-tone="danger">${e("Not-self: {{value}}",{value:t})}</span>`:d}</div>`}function $e(o,t){return!o?.personality&&!o?.design?d:c`<dl class="keynotes" part="keynotes">${o.personality?c`<dt>${t("Line {{line}} \xB7 Personality",{line:o.personalityLine??""})}</dt><dd>${o.personality}</dd>`:d} ${o.design?c`<dt>${t("Line {{line}} \xB7 Design",{line:o.designLine??""})}</dt><dd>${o.design}</dd>`:d}</dl>`}var hr="Localized";function S(o,t,e){let r=o,n=r?.[`${t}${hr}`];if(typeof n=="string"&&n!=="")return n;if(e!==void 0)return e;let s=r?.[t];return typeof s=="string"?s:""}var C=class extends p{renderData(t){return ur(t)?this.renderType(t):this.renderProfile(t)}renderType(t){return c`<div class="wrap" part="card"><header class="head" part="header"><h2>${this.t("Type")}</h2>${t.type||t.profile?c`<div class="type-line">${[S(t,"type"),t.profile?this.t("Profile {{profile}}",{profile:t.profile}):""].filter(Boolean).join(" \xB7 ")}</div>`:d}</header>${St([{label:this.t("Type"),value:S(t,"type")},{label:this.t("Strategy"),value:S(t,"strategy")},{label:this.t("Authority"),value:S(t,"authority")},{label:this.t("Profile"),value:t.profile}])} ${t.typeDescription&&!this.hideReadings?c`<p class="lead">${t.typeDescription}</p>`:d} ${we(t.signature?S(t,"signature"):void 0,t.notSelf?S(t,"notSelf"):void 0,this.translator)} ${this.renderInterpretation([{label:this.t("Strategy"),aside:S(t,"strategy"),body:t.strategyDescription},{label:this.t("Authority"),aside:S(t,"authority"),body:t.authorityDescription},{label:this.t("Aura"),body:t.aura}],"hd-type-reading")}</div>`}renderProfile(t){return c`<div class="wrap" part="card"><header class="head" part="header"><h2>${this.t("Profile")}</h2>${t.profile?c`<div class="type-line">${t.profile}</div>`:d}</header>${St([{label:this.t("Profile"),value:t.profile},{label:this.t("Personality line"),value:t.personalityLine?.toString()},{label:this.t("Design line"),value:t.designLine?.toString()}])} ${this.hideReadings?d:c`<section class="block" part="section lines"><h3>${this.t("Lines")}</h3>${$e({personality:t.personalityKeynote,personalityLine:t.personalityLine,design:t.designKeynote,designLine:t.designLine},this.translator)}</section>`}</div>`}};C.endpoints=Ht,C.styles=[et,ge,xe,Ee,g`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2{margin:0}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.type-line{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}`],C=h([ve("roxy-hd-type-card")],C);function ur(o){return typeof o.type=="string"}return Re(yr)})();/*! Bundled license information:
1
+ var RoxyUI_hd_type_card=(()=>{var M=Object.defineProperty;var Et=Object.getOwnPropertyDescriptor;var Te=Object.getOwnPropertyNames;var ke=Object.prototype.hasOwnProperty;var Ae=(o,t)=>{for(var e in t)M(o,e,{get:t[e],enumerable:true})},_e=(o,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Te(t))!ke.call(o,n)&&n!==e&&M(o,n,{get:()=>t[n],enumerable:!(r=Et(t,n))||r.enumerable});return o};var Pe=o=>_e(M({},"__esModule",{value:true}),o),h=(o,t,e,r)=>{for(var n=r>1?void 0:r?Et(t,e):t,s=o.length-1,i;s>=0;s--)(i=o[s])&&(n=(r?i(t,e,n):i(n))||n);return r&&n&&M(t,e,n),n};var yr={};Ae(yr,{ROXY_UI_TOKENS_STYLE_ID:()=>X,RoxyHdTypeCard:()=>R,injectRoxyTokens:()=>Z});var D=globalThis,B=D.ShadowRoot&&(D.ShadyCSS===void 0||D.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,st=Symbol(),wt=new WeakMap,U=class{constructor(t,e,r){if(this._$cssResult$=true,r!==st)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(B&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=wt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&wt.set(e,t))}return t}toString(){return this.cssText}},$t=o=>new U(typeof o=="string"?o:o+"",void 0,st),g=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((r,n,s)=>r+(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.")})(n)+o[s+1],o[0]);return new U(e,o,st)},Tt=(o,t)=>{if(B)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),n=D.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=e.cssText,o.appendChild(r)}},it=B?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return $t(e)})(o):o;var{is:Re,defineProperty:Ce,getOwnPropertyDescriptor:Oe,getOwnPropertyNames:Fe,getOwnPropertySymbols:Ue,getPrototypeOf:Le}=Object,q=globalThis,kt=q.trustedTypes,Ke=kt?kt.emptyScript:"",Ie=q.reactiveElementPolyfillSupport,L=(o,t)=>o,K={toAttribute(o,t){switch(t){case Boolean:o=o?Ke: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}},V=(o,t)=>!Re(o,t),At={attribute:true,type:String,converter:K,reflect:false,useDefault:false,hasChanged:V};Symbol.metadata??=Symbol("metadata"),q.litPropertyMetadata??=new WeakMap;var v=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=At){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&&Ce(this.prototype,t,n)}}static getPropertyDescriptor(t,e,r){let{get:n,set:s}=Oe(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:n,set(i){let l=n?.call(this);s?.call(this,i),this.requestUpdate(t,l,r)},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??At}static _$Ei(){if(this.hasOwnProperty(L("elementProperties")))return;let t=Le(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(L("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(L("properties"))){let e=this.properties,r=[...Fe(e),...Ue(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 Tt(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 s=(r.converter?.toAttribute!==void 0?r.converter:K).toAttribute(e,r.type);this._$Em=t,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(t,e){let r=this.constructor,n=r._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let s=r.getPropertyOptions(n),i=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:K;this._$Em=n;let l=i.fromAttribute(e,s.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(t,e,r,n=false,s){if(t!==void 0){let i=this.constructor;if(n===false&&(s=this[t]),r??=i.getPropertyOptions(t),!((r.hasChanged??V)(s,e)||r.useDefault&&r.reflect&&s===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,r))))return;this.C(t,e,r)}this.isUpdatePending===false&&(this._$ES=this._$EP())}C(t,e,{useDefault:r,reflect:n,wrapped:s},i){r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),s!==true||i!==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,s]of this._$Ep)this[n]=s;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[n,s]of r){let{wrapped:i}=s,l=this[n];i!==true||this._$AL.has(n)||l===void 0||this.C(n,void 0,s,l)}}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){}};v.elementStyles=[],v.shadowRootOptions={mode:"open"},v[L("elementProperties")]=new Map,v[L("finalized")]=new Map,Ie?.({ReactiveElement:v}),(q.reactiveElementVersions??=[]).push("2.1.2");var ut=globalThis,_t=o=>o,Y=ut.trustedTypes,Pt=Y?Y.createPolicy("lit-html",{createHTML:o=>o}):void 0,Lt="$lit$",w=`lit$${Math.random().toFixed(9).slice(2)}$`,Kt="?"+w,Ne=`<${Kt}>`,A=document,N=()=>A.createComment(""),j=o=>o===null||typeof o!="object"&&typeof o!="function",yt=Array.isArray,je=o=>yt(o)||typeof o?.[Symbol.iterator]=="function",at=`[
2
+ \f\r]`,I=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Rt=/-->/g,Ct=/>/g,T=RegExp(`>|${at}(?:([^\\s"'>=/]+)(${at}*=${at}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ot=/'/g,Ft=/"/g,It=/^(?:script|style|textarea|title)$/i,mt=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),c=mt(1),vr=mt(2),Sr=mt(3),_=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Ut=new WeakMap,k=A.createTreeWalker(A,129);function Nt(o,t){if(!yt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Pt!==void 0?Pt.createHTML(t):t}var He=(o,t)=>{let e=o.length-1,r=[],n,s=t===2?"<svg>":t===3?"<math>":"",i=I;for(let l=0;l<e;l++){let a=o[l],m,u,y=-1,b=0;for(;b<a.length&&(i.lastIndex=b,u=i.exec(a),u!==null);)b=i.lastIndex,i===I?u[1]==="!--"?i=Rt:u[1]!==void 0?i=Ct:u[2]!==void 0?(It.test(u[2])&&(n=RegExp("</"+u[2],"g")),i=T):u[3]!==void 0&&(i=T):i===T?u[0]===">"?(i=n??I,y=-1):u[1]===void 0?y=-2:(y=i.lastIndex-u[2].length,m=u[1],i=u[3]===void 0?T:u[3]==='"'?Ft:Ot):i===Ft||i===Ot?i=T:i===Rt||i===Ct?i=I:(i=T,n=void 0);let E=i===T&&o[l+1].startsWith("/>")?" ":"";s+=i===I?a+Ne:y>=0?(r.push(m),a.slice(0,y)+Lt+a.slice(y)+w+E):a+w+(y===-2?l:E)}return[Nt(o,s+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},H=class o{constructor({strings:t,_$litType$:e},r){let n;this.parts=[];let s=0,i=0,l=t.length-1,a=this.parts,[m,u]=He(t,e);if(this.el=o.createElement(m,r),k.currentNode=this.el.content,e===2||e===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(n=k.nextNode())!==null&&a.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let y of n.getAttributeNames())if(y.endsWith(Lt)){let b=u[i++],E=n.getAttribute(y).split(w),G=/([.?@])?(.*)/.exec(b);a.push({type:1,index:s,name:G[2],strings:E,ctor:G[1]==="."?lt:G[1]==="?"?ct:G[1]==="@"?pt:O}),n.removeAttribute(y)}else y.startsWith(w)&&(a.push({type:6,index:s}),n.removeAttribute(y));if(It.test(n.tagName)){let y=n.textContent.split(w),b=y.length-1;if(b>0){n.textContent=Y?Y.emptyScript:"";for(let E=0;E<b;E++)n.append(y[E],N()),k.nextNode(),a.push({type:2,index:++s});n.append(y[b],N())}}}else if(n.nodeType===8)if(n.data===Kt)a.push({type:2,index:s});else{let y=-1;for(;(y=n.data.indexOf(w,y+1))!==-1;)a.push({type:7,index:s}),y+=w.length-1}s++}}static createElement(t,e){let r=A.createElement("template");return r.innerHTML=t,r}};function C(o,t,e=o,r){if(t===_)return t;let n=r!==void 0?e._$Co?.[r]:e._$Cl,s=j(t)?void 0:t._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(false),s===void 0?n=void 0:(n=new s(o),n._$AT(o,e,r)),r!==void 0?(e._$Co??=[])[r]=n:e._$Cl=n),n!==void 0&&(t=C(o,n._$AS(o,t.values),n,r)),t}var dt=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 s=k.nextNode(),i=0,l=0,a=r[0];for(;a!==void 0;){if(i===a.index){let m;a.type===2?m=new z(s,s.nextSibling,this,t):a.type===1?m=new a.ctor(s,a.name,a.strings,this,t):a.type===6&&(m=new ht(s,this,t)),this._$AV.push(m),a=r[++l]}i!==a?.index&&(s=k.nextNode(),i++)}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++}},z=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,n){this.type=2,this._$AH=d,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=C(this,t,e),j(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==_&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):je(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&j(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=H.createElement(Nt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(e);else{let s=new dt(n,this),i=s.u(this.options);s.p(e),this.T(i),this._$AH=s}}_$AC(t){let e=Ut.get(t.strings);return e===void 0&&Ut.set(t.strings,e=new H(t)),e}k(t){yt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,n=0;for(let s of t)n===e.length?e.push(r=new o(this.O(N()),this.O(N()),this,this.options)):r=e[n],r._$AI(s),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=_t(t).nextSibling;_t(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},O=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,n,s){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=d}_$AI(t,e=this,r,n){let s=this.strings,i=false;if(s===void 0)t=C(this,t,e,0),i=!j(t)||t!==this._$AH&&t!==_,i&&(this._$AH=t);else{let l=t,a,m;for(t=s[0],a=0;a<s.length-1;a++)m=C(this,l[r+a],e,a),m===_&&(m=this._$AH[a]),i||=!j(m)||m!==this._$AH[a],m===d?t=d:t!==d&&(t+=(m??"")+s[a+1]),this._$AH[a]=m}i&&!n&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},lt=class extends O{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},ct=class extends O{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},pt=class extends O{constructor(t,e,r,n,s){super(t,e,r,n,s),this.type=5}_$AI(t,e=this){if((t=C(this,t,e,0)??d)===_)return;let r=this._$AH,n=t===d&&r!==d||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==d&&(r===d||n);n&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ht=class{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){C(this,t)}};var ze=ut.litHtmlPolyfillSupport;ze?.(H,z),(ut.litHtmlVersions??=[]).push("3.3.3");var jt=(o,t,e)=>{let r=e?.renderBefore??t,n=r._$litPart$;if(n===void 0){let s=e?.renderBefore??null;r._$litPart$=n=new z(t.insertBefore(N(),s),s,void 0,e??{})}return n._$AI(o),n};var ft=globalThis,$=class extends v{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=jt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false)}render(){return _}};$._$litElement$=true,$.finalized=true,ft.litElementHydrateSupport?.({LitElement:$});var Ge=ft.litElementPolyfillSupport;Ge?.({LitElement:$});(ft.litElementVersions??=[]).push("4.2.2");var Ht=[{endpoint:"human-design/type",method:"POST"},{endpoint:"human-design/profile",method:"POST"}];var Me={attribute:true,type:String,converter:K,reflect:false,hasChanged:V},De=(o=Me,t,e)=>{let{kind:r,metadata:n}=e,s=globalThis.litPropertyMetadata.get(n);if(s===void 0&&globalThis.litPropertyMetadata.set(n,s=new Map),r==="setter"&&((o=Object.create(o)).wrapped=true),s.set(e.name,o),r==="accessor"){let{name:i}=e;return{set(l){let a=t.get.call(this);t.set.call(this,l),this.requestUpdate(i,a,o,true,l)},init(l){return l!==void 0&&this.C(i,void 0,o,l),l}}}if(r==="setter"){let{name:i}=e;return function(l){let a=this[i];t.call(this,l),this.requestUpdate(i,a,o,true,l)}}throw Error("Unsupported decorator location: "+r)};function f(o){return(t,e)=>typeof e=="object"?De(o,t,e):((r,n,s)=>{let i=n.hasOwnProperty(s);return n.constructor.createProperty(s,r),i?Object.getOwnPropertyDescriptor(n,s):void 0})(o,t,e)}function x(o){return f({...o,state:true,attribute:false})}var P=o=>o??d;var zt=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function xt(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 Be={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 Gt(o,t=zt){let e=xt(o);if(!e)return;let r=gt(e,t);if(r)return r;let n=e.toLowerCase().split("-"),s=n[0];if(s==="zh"){let i=n.find(l=>l==="hans"||l==="hant")??Be[n[1]??""];return i?gt(`zh-${i}`,t):void 0}return gt(s,t)}var qe={Fraunces:["latin","latin-ext"],Jost:["latin","latin-ext","cyrillic"],Geist:["latin","latin-ext","cyrillic"]},bt='"Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Mt='"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',J={"fraunces-jost":{name:"Fraunces with Jost",sans:bt,display:'"Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif'},jost:{name:"Jost",sans:bt,display:bt},geist:{name:"Geist",sans:Mt,display:Mt},system:{name:"System",sans:Dt,display:Dt}};function Bt(o){let{sans:t,display:e}=J[o];return Object.keys(qe).filter(r=>`${t} ${e}`.includes(`"${r}"`))}var qt="1.3.0";var Ve=/^(.*)\/cdn\/(?:roxy-ui|components\/[\w-]+)\.js$/,Ye=/^(.*\/dist)\/(?:index|components\/[\w-]+)\.js$/;function Vt(o,t){if(!t)return;let e=new URL(t);if(e.protocol!=="https:"&&e.protocol!=="http:")return;let r=(Ve.exec(e.pathname)??Ye.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 Qe={},We="color-mix(in oklab, var(--roxy-accent) 70%, black)",Je="var(--roxy-accent)",Xe="color-mix(in srgb, var(--roxy-accent) 40%, transparent)",Yt=/^#(?:[\da-f]{3}|[\da-f]{6})$/i;function Wt(o){return o!==void 0&&Object.hasOwn(J,o)}function Jt(o){let t=[];return o.brandColor&&Yt.test(o.brandColor)&&t.push(`--roxy-primary:${o.brandColor}`),o.brandAccent&&Yt.test(o.brandAccent)&&t.push(`--roxy-accent:${o.brandAccent}`,`--roxy-accent-ink:light-dark(${We},${Je})`,`--roxy-ring:${Xe}`),t.join(";")}function Xt(o,t){if(Wt(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,s=n?.localName==="style"?n:null;s?.sheet&&(s.sheet.disabled=true);let i,l,a;try{let m=globalThis.getComputedStyle(o),u=y=>m.getPropertyValue(y).trim();i=u("--roxy-font-sans"),l=u("--roxy-font-display"),a=u("--roxy-font")}finally{s?.sheet&&(s.sheet.disabled=false)}if(!(i||l))return Wt(a)?a:void 0}function Zt(o){let{sans:t,display:e}=J[o];return`--roxy-font:${o};--roxy-font-sans:${t};--roxy-font-display:${e}`}var Ze=Vt(qt,globalThis.document?.currentScript?.src||Qe.url);function Qt(o,t=Ze){if(typeof document>"u"||t===void 0)return;let e=`roxy-ui-font-${o}`;if(Bt(o).length===0||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)}var te='@layer roxy.tokens,roxy.theme;@layer roxy.tokens{:where(:root,:host){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-font: initial;--roxy-font-sans: initial;--roxy-font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;--roxy-text-base: 1rem;--roxy-text-scale: 1.15;--roxy-weight-normal: 400;--roxy-weight-bold: 600;--roxy-leading-tight: 1.25;--roxy-leading-normal: 1.5;--roxy-tracking-tight: -0.01em;--roxy-tracking-normal: 0em;--roxy-space-unit: 0.25rem;--roxy-radius: 6px;--roxy-motion-duration: 200ms;--roxy-motion-easing: cubic-bezier(0.4, 0, 0.2, 1)}:where(:root,:host,[data-theme],.light,.dark){--roxy-surface: var(--roxy-bg);--roxy-primary: var(--roxy-fg);--roxy-secondary: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-muted: color-mix(in oklab, var(--roxy-fg) 60%, var(--roxy-bg));--roxy-border: color-mix(in oklab, var(--roxy-fg) 14%, var(--roxy-bg));--roxy-ring: color-mix(in srgb, var(--roxy-accent) 40%, transparent);--roxy-heat: var(--roxy-danger);--roxy-font-display: var(--roxy-font-sans);--roxy-text-sm: calc(var(--roxy-text-base) / var(--roxy-text-scale));--roxy-text-xs: calc(var(--roxy-text-sm) / var(--roxy-text-scale));--roxy-text-lg: calc(var(--roxy-text-base) * var(--roxy-text-scale));--roxy-text-xl: calc( var(--roxy-text-lg) * var(--roxy-text-scale) * var(--roxy-text-scale) );--roxy-space-xs: var(--roxy-space-unit);--roxy-space-sm: calc(var(--roxy-space-unit) * 2);--roxy-space-md: calc(var(--roxy-space-unit) * 4);--roxy-space-lg: calc(var(--roxy-space-unit) * 6);--roxy-space-xl: calc(var(--roxy-space-unit) * 10);--roxy-line-thick: calc(var(--roxy-space-unit) / 2);--roxy-touch: calc(var(--roxy-space-unit) * 11);--roxy-radius-sm: calc(var(--roxy-radius) / 2);--roxy-radius-md: var(--roxy-radius);--roxy-radius-lg: calc(var(--roxy-radius) * 5 / 3);--roxy-radius-full: 9999px;--roxy-shadow-sm: none;--roxy-shadow-md: 0 4px 12px color-mix(in srgb, black 10%, transparent);--roxy-shadow-lg: 0 12px 32px color-mix(in srgb, black 18%, transparent)}@media(prefers-color-scheme:dark){:where(:root,:host){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white)}}:where(:root[data-theme=light],[data-theme=light],:root.light,.light,:host([data-theme="light"])){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black)}:where(:root[data-theme=dark],[data-theme=dark],:root.dark,.dark,:host([data-theme="dark"])){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white)}@media(prefers-reduced-motion:reduce){:where(:root,:host){--roxy-motion-duration: 0ms}}}';var X="roxy-ui-tokens";function Z(){if(typeof document>"u")return null;let o=document.getElementById(X);if(o)return o;let t=document.createElement("style");return t.id=X,t.textContent=te,document.head.prepend(t),t}function ee(o){return o.toLowerCase().replace(/[\s_-]+/g," ").trim()}var re="__ROXY_UI_I18N__";function oe(){let o=globalThis,t=o[re];if(t)return t;let e={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return o[re]=e,e}function tr(o,t){return t?o.replace(/\{\{(\w+)\}\}/g,(e,r)=>r in t?String(t[r]??""):e):o}function ne(o,t,e){return tr(er(o,t)??t,e)}function er(o,t){if(!o)return;let{catalogs:e}=oe(),r=o.toLowerCase();return(e[r]??e[r.split("-")[0]])?.[ee(t)]}function se(o){let{listeners:t}=oe();return t.add(o),()=>{t.delete(o)}}var Q=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){this.unsubscribe=se(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var tt=class extends ${constructor(){super();this.translator=(e,r)=>this.t(e,r);new Q(this)}connectedCallback(){super.connectedCallback(),Z()}fontDeclarations(e){let r=Xt(this,e);return r?(Qt(r),Zt(r)):""}renderFontStyle(){let e=this.fontDeclarations();return e?c`<style>:host{${e}}</style>`:d}t(e,r){return ne(this.effectiveLang(),e,r)}effectiveLang(){return xt(this)}};var ie=g`: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 rr=g`:host{--roxy-label-col:minmax(0, 25%);--_mask:var(--roxy-surface);font-family:var(--roxy-font-sans);color:var(--roxy-fg);font-size:var(--roxy-text-base);line-height:var(--roxy-leading-normal);animation:roxy-fade-in var(--roxy-motion-duration) var(--roxy-motion-easing) both;background:0 0;display:block;container-type:inline-size}:host([bare]){--_mask:var(--roxy-bg)}:host([hidden]){display:none}:host([bare]){--roxy-surface:transparent;--roxy-shadow-sm:none;--roxy-shadow-md:none}*,:before,:after{box-sizing:border-box}h1,h2,h3,h4{font-family:var(--roxy-font-display)}@keyframes roxy-fade-in{0%{transform:translateY(calc(var(--roxy-space-unit) / 2))}to{transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border) 0%, color-mix(in srgb, var(--roxy-border) 60%, transparent) 50%, var(--roxy-border) 100%);border-radius:var(--roxy-radius-md);background-size:200% 100%;animation:1.4s ease-in-out infinite roxy-shimmer}@keyframes roxy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.roxy-skeleton{animation:none}}.roxy-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.roxy-empty{padding:var(--roxy-space-lg);color:var(--roxy-muted);text-align:center;font-size:var(--roxy-text-sm)}.roxy-error{gap:var(--roxy-space-sm);padding:var(--roxy-space-lg);background:var(--roxy-surface);border:1px solid var(--roxy-danger);border-radius:var(--roxy-radius-md);color:var(--roxy-danger-fg);font-size:var(--roxy-text-sm);justify-items:start;display:grid}:host(:focus-within) .roxy-card{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}.roxy-attribution{margin-top:var(--roxy-space-sm);font-size:var(--roxy-text-xs);color:var(--roxy-muted);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink);text-decoration:underline}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs) var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);color:var(--roxy-fg);font-family:inherit;font-size:var(--roxy-text-sm);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-edit:disabled{cursor:progress;color:var(--roxy-muted)}roxy-endpoint-form+*{margin-top:var(--roxy-space-md)}.roxy-more{justify-items:center;gap:var(--roxy-space-sm);margin-top:var(--roxy-space-md);display:grid}.roxy-more .roxy-edit{min-height:var(--roxy-touch)}:host{font-variant-emoji:text}`,et=[rr,ie];var or="__cols",nr="__rows";function sr(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)}function rt(o){if(Array.isArray(o)){let s=false,i=o.map(l=>{let a=rt(l);return a!==l&&(s=true),a});return s?i:o}if(!sr(o))return o;let t=o[or],e=o[nr];if(Array.isArray(t)&&Array.isArray(e)&&Object.keys(o).length===2)return e.map(s=>{let i={};return t.forEach((l,a)=>{i[l]=rt(s[a])}),i});let r=false,n={};for(let[s,i]of Object.entries(o)){let l=rt(i);l!==i&&(r=true),n[s]=l}return r?n:o}function ae(o){return rt(o)}function de(o,t){return o.find(e=>e.attrs&&Object.entries(e.attrs).every(([r,n])=>t[r]===n))??o[0]}var ir="pk_live_YOUR_KEY",le={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 ce(o){if(o)return o===ir?le.sample:o.startsWith("pk_")?void 0:le.secret}function pe(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 he="https://roxyapi.com/api/v2";async function ar(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 ue={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.")}}},F=class extends Error{constructor(e,r=null,n=true,s,i){super(e);this.issues=r;this.worded=n;this.status=s;this.code=i}};function ye(o){return o.submitUrl?void 0:ce(o.publishableKey)}async function vt(o,t,e){let r=ye(o);if(r)throw new F(r.message);let n=o.submitUrl?await fetch(o.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:dr(t,o.submitContext),signal:e}):await lr(o,t,e);if(!n.ok){let s=await ar(n);throw new F(s.message,s.issues,s.worded,n.status,s.code)}return await n.json()}function dr(o,t){return JSON.stringify(t?{...o,context:t}:o)}function lr(o,t,e){let r=new URL(`${o.baseUrl??he}${t.path}`,document.baseURI);for(let[s,i]of Object.entries(t.query??{}))i!=null&&r.searchParams.set(s,String(i));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 ot=class{constructor(t){this.baseUrl=he;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=ye(this);if(e){this.host.error=e.message,pe(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 vt(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 F&&(this.host.issues=n.issues,this.failure={status:n.status,code:n.code}),this.worded=n instanceof F&&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 me(o,t,e,r=[]){let n={...e},s=`/${o.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(m,u)=>{let y=n[u];return delete n[u],encodeURIComponent(String(y??""))}),i=new Set(r),l={},a={};for(let[m,u]of Object.entries(n))u===void 0||u===""||(t==="GET"||i.has(m)?l[m]=u:a[m]=u);return{path:s,method:t,query:l,body:t==="POST"?a:void 0}}function fe(){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 ge=g`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 xe=g`.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 be(o,t,e){let r=o.filter(n=>!!n.body);return r.length===0?d:c`<section class="block" part="section readings"><h3>${e}</h3>${r.map((n,s)=>c`<details class="interp-card" part="reading" name="${t}" ?open="${s===0}"><summary><span class="interp-lead">${n.label}</span> ${fe()} ${n.aside?c`<span class="interp-aside"><small>${n.aside}</small></span>`:d}</summary><div class="interp-body"><p>${n.body}</p>${n.extra??d}</div></details>`)}</section>`}var cr="roxy-data";function pr(o){return o.nodeName==="SCRIPT"&&o.getAttribute("type")==="application/json"}var nt=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(pr(t)&&t.classList.contains(cr))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};var p=class extends tt{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 s=await vt(this.fetcher,{...e,query:{...e.query,offset:n.length}});if(this.lastRequest!==e)return;let i=s[r];this.data={...this.data,...s,[r]:[...n,...Array.isArray(i)?i:[]]}}catch(s){this.lastRequest===e&&(this.moreError=s instanceof Error?s.message:String(s))}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(me(r.endpoint,r.method,{...n.values,...this.ownRequest()},n.queryKeys??[]))};new nt(this),this.fetcher=new ot(this)}static{this.styles=[et]}static{this.endpoints=[]}willUpdate(e){if(e.has("data")&&this.data!=null){let r=ae(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:de(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="${P(this.effectiveLang())}"></roxy-data>`:this.renderEmpty()}}hostStyle(){let e=this.hideSections.split(",").map(s=>s.trim().toLowerCase()).filter(s=>/^[a-z][a-z0-9-]*$/.test(s)),r=[Jt(this),this.fontDeclarations(this.font)].filter(Boolean).join(";");if(e.length===0&&!r)return d;let n=(r?`:host{${r}}`:"")+e.map(s=>`[part~="${s}"],roxy-endpoint-form::part(${s}){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){return this.hideReadings?d:be(e,r,this.t(n??"Reading"))}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?d:this.renderErrorBanner(this.error):this.data==null?d: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"?d:e.length>=r?d: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>`:d}</div>`}listRows(){let e=this.listKey?this.data?.[this.listKey]:void 0;return Array.isArray(e)?e:void 0}fetchFresh(e){return this.lastRequest=e,this.openedRow=void 0,this.openedRowId=void 0,this.moreError=null,this.fetcher.run(e)}load(e){return this.hostLoaded=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:Gt(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(d):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="${P(this.specUrl)}" publishable-key="${P(this.publishableKey)}" location-url="${P(this.locationUrl)}" submit-label="${P(this.submitLabel)}" lang="${P(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>`}};h([f({attribute:false})],p.prototype,"data",2),h([f({type:String,attribute:"data-endpoint"})],p.prototype,"endpoint",2),h([f({type:String})],p.prototype,"method",2),h([f({type:String,attribute:"publishable-key"})],p.prototype,"publishableKey",2),h([f({type:String,attribute:"base-url"})],p.prototype,"baseUrl",2),h([f({type:String,attribute:"spec-url"})],p.prototype,"specUrl",2),h([f({type:String,attribute:"submit-url"})],p.prototype,"submitUrl",2),h([f({attribute:"submit-context",converter:ue})],p.prototype,"submitContext",2),h([f({type:String,attribute:"location-url"})],p.prototype,"locationUrl",2),h([f({type:Boolean})],p.prototype,"remember",2),h([f({type:Boolean,attribute:"hide-readings",reflect:true})],p.prototype,"hideReadings",2),h([f({type:String,attribute:"hide-sections",reflect:true})],p.prototype,"hideSections",2),h([f({type:String,attribute:"brand-color"})],p.prototype,"brandColor",2),h([f({type:String,attribute:"brand-accent"})],p.prototype,"brandAccent",2),h([f({type:String})],p.prototype,"font",2),h([f({type:String,attribute:"submit-label"})],p.prototype,"submitLabel",2),h([f({type:String,attribute:"error-message"})],p.prototype,"errorMessage",2),h([f({type:String})],p.prototype,"attribution",2),h([x()],p.prototype,"loading",2),h([x()],p.prototype,"error",2),h([x()],p.prototype,"issues",2),h([x()],p.prototype,"selfFetched",2),h([x()],p.prototype,"editing",2),h([x()],p.prototype,"sticky",2),h([x()],p.prototype,"openedRow",2),h([x()],p.prototype,"openedRowId",2),h([x()],p.prototype,"moreLoading",2),h([x()],p.prototype,"moreError",2);var ve=o=>t=>{customElements.get(o)||customElements.define(o,t)};var Se=g`.roxy-facts{gap:var(--roxy-space-sm) var(--roxy-space-lg);margin:var(--roxy-space-sm) 0 0;font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums;flex-wrap:wrap;display:flex}.roxy-facts>div{min-width:0}.roxy-facts dd{overflow-wrap:anywhere;margin:0}`;var Ee=[Se,g`.roxy-facts{margin:0}.lead{font-size:var(--roxy-text-sm);margin:0}.keynotes{gap:var(--roxy-space-xs);margin:0;display:grid}.keynotes dd{margin:0}`];function St(o){let t=o.filter(e=>!!e.value);return t.length===0?d:c`<dl class="roxy-facts" part="facts">${t.map(e=>c`<div part="fact"><dt>${e.label}</dt><dd>${e.value}</dd></div>`)}</dl>`}function we(o,t,e){return!o&&!t?d:c`<div class="themes roxy-chips" part="themes">${o?c`<span class="roxy-chip" data-tone="success">${e("Signature: {{value}}",{value:o})}</span>`:d} ${t?c`<span class="roxy-chip" data-tone="danger">${e("Not-self: {{value}}",{value:t})}</span>`:d}</div>`}function $e(o,t){return!o?.personality&&!o?.design?d:c`<dl class="keynotes" part="keynotes">${o.personality?c`<dt>${t("Line {{line}} \xB7 Personality",{line:o.personalityLine??""})}</dt><dd>${o.personality}</dd>`:d} ${o.design?c`<dt>${t("Line {{line}} \xB7 Design",{line:o.designLine??""})}</dt><dd>${o.design}</dd>`:d}</dl>`}var hr="Localized";function S(o,t,e){let r=o,n=r?.[`${t}${hr}`];if(typeof n=="string"&&n!=="")return n;if(e!==void 0)return e;let s=r?.[t];return typeof s=="string"?s:""}var R=class extends p{renderData(t){return ur(t)?this.renderType(t):this.renderProfile(t)}renderType(t){return c`<div class="wrap" part="card"><header class="head" part="header"><h2>${this.t("Type")}</h2>${t.type||t.profile?c`<div class="type-line">${[S(t,"type"),t.profile?this.t("Profile {{profile}}",{profile:t.profile}):""].filter(Boolean).join(" \xB7 ")}</div>`:d}</header>${St([{label:this.t("Type"),value:S(t,"type")},{label:this.t("Strategy"),value:S(t,"strategy")},{label:this.t("Authority"),value:S(t,"authority")},{label:this.t("Profile"),value:t.profile}])} ${t.typeDescription&&!this.hideReadings?c`<p class="lead">${t.typeDescription}</p>`:d} ${we(t.signature?S(t,"signature"):void 0,t.notSelf?S(t,"notSelf"):void 0,this.translator)} ${this.renderInterpretation([{label:this.t("Strategy"),aside:S(t,"strategy"),body:t.strategyDescription},{label:this.t("Authority"),aside:S(t,"authority"),body:t.authorityDescription},{label:this.t("Aura"),body:t.aura}],"hd-type-reading")}</div>`}renderProfile(t){return c`<div class="wrap" part="card"><header class="head" part="header"><h2>${this.t("Profile")}</h2>${t.profile?c`<div class="type-line">${t.profile}</div>`:d}</header>${St([{label:this.t("Profile"),value:t.profile},{label:this.t("Personality line"),value:t.personalityLine?.toString()},{label:this.t("Design line"),value:t.designLine?.toString()}])} ${this.hideReadings?d:c`<section class="block" part="section lines"><h3>${this.t("Lines")}</h3>${$e({personality:t.personalityKeynote,personalityLine:t.personalityLine,design:t.designKeynote,designLine:t.designLine},this.translator)}</section>`}</div>`}};R.endpoints=Ht,R.styles=[et,ge,xe,Ee,g`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2{margin:0}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.type-line{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}`],R=h([ve("roxy-hd-type-card")],R);function ur(o){return typeof o.type=="string"}return Pe(yr)})();/*! Bundled license information:
4
4
 
5
5
  @lit/reactive-element/css-tag.js:
6
6
  (**
@@ -1,6 +1,6 @@
1
1
  var RoxyUI_hd_variables=(()=>{var W=Object.defineProperty;var Lt=Object.getOwnPropertyDescriptor;var Be=Object.getOwnPropertyNames;var He=Object.prototype.hasOwnProperty;var Ke=(n,t)=>{for(var e in t)W(n,e,{get:t[e],enumerable:true})},ze=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Be(t))!He.call(n,o)&&o!==e&&W(n,o,{get:()=>t[o],enumerable:!(r=Lt(t,o))||r.enumerable});return n};var De=n=>ze(W({},"__esModule",{value:true}),n),u=(n,t,e,r)=>{for(var o=r>1?void 0:r?Lt(t,e):t,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(t,e,o):i(o))||o);return r&&o&&W(t,e,o),o};var Nr={};Ke(Nr,{ROXY_UI_TOKENS_STYLE_ID:()=>nt,RoxyHdVariables:()=>M,injectRoxyTokens:()=>ot});var X=globalThis,J=X.ShadowRoot&&(X.ShadyCSS===void 0||X.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,mt=Symbol(),Mt=new WeakMap,j=class{constructor(t,e,r){if(this._$cssResult$=true,r!==mt)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(J&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=Mt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Mt.set(e,t))}return t}toString(){return this.cssText}},Nt=n=>new j(typeof n=="string"?n:n+"",void 0,mt),v=(n,...t)=>{let e=n.length===1?n[0]:t.reduce((r,o,s)=>r+(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)+n[s+1],n[0]);return new j(e,n,mt)},It=(n,t)=>{if(J)n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),o=X.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=e.cssText,n.appendChild(r)}},gt=J?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return Nt(e)})(n):n;var{is:qe,defineProperty:Ve,getOwnPropertyDescriptor:Ye,getOwnPropertyNames:We,getOwnPropertySymbols:Xe,getPrototypeOf:Je}=Object,Z=globalThis,Gt=Z.trustedTypes,Ze=Gt?Gt.emptyScript:"",Qe=Z.reactiveElementPolyfillSupport,B=(n,t)=>n,H={toAttribute(n,t){switch(t){case Boolean:n=n?Ze:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},Q=(n,t)=>!qe(n,t),jt={attribute:true,type:String,converter:H,reflect:false,useDefault:false,hasChanged:Q};Symbol.metadata??=Symbol("metadata"),Z.litPropertyMetadata??=new WeakMap;var w=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=jt){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(),o=this.getPropertyDescriptor(t,r,e);o!==void 0&&Ve(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){let{get:o,set:s}=Ye(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:o,set(i){let d=o?.call(this);s?.call(this,i),this.requestUpdate(t,d,r)},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??jt}static _$Ei(){if(this.hasOwnProperty(B("elementProperties")))return;let t=Je(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(B("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(B("properties"))){let e=this.properties,r=[...We(e),...Xe(e)];for(let o of r)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,o]of e)this.elementProperties.set(r,o)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let o=this._$Eu(e,r);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let r=new Set(t.flat(1/0).reverse());for(let o of r)e.unshift(gt(o))}else t!==void 0&&e.push(gt(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 It(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),o=this.constructor._$Eu(t,r);if(o!==void 0&&r.reflect===true){let s=(r.converter?.toAttribute!==void 0?r.converter:H).toAttribute(e,r.type);this._$Em=t,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,e){let r=this.constructor,o=r._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let s=r.getPropertyOptions(o),i=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:H;this._$Em=o;let d=i.fromAttribute(e,s.type);this[o]=d??this._$Ej?.get(o)??d,this._$Em=null}}requestUpdate(t,e,r,o=false,s){if(t!==void 0){let i=this.constructor;if(o===false&&(s=this[t]),r??=i.getPropertyOptions(t),!((r.hasChanged??Q)(s,e)||r.useDefault&&r.reflect&&s===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,r))))return;this.C(t,e,r)}this.isUpdatePending===false&&(this._$ES=this._$EP())}C(t,e,{useDefault:r,reflect:o,wrapped:s},i){r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),s!==true||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(e=void 0),this._$AL.set(t,e)),o===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[o,s]of this._$Ep)this[o]=s;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[o,s]of r){let{wrapped:i}=s,d=this[o];i!==true||this._$AL.has(o)||d===void 0||this.C(o,void 0,s,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){}};w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[B("elementProperties")]=new Map,w[B("finalized")]=new Map,Qe?.({ReactiveElement:w}),(Z.reactiveElementVersions??=[]).push("2.1.2");var Et=globalThis,Bt=n=>n,tt=Et.trustedTypes,Ht=tt?tt.createPolicy("lit-html",{createHTML:n=>n}):void 0,Yt="$lit$",A=`lit$${Math.random().toFixed(9).slice(2)}$`,Wt="?"+A,tr=`<${Wt}>`,P=document,z=()=>P.createComment(""),D=n=>n===null||typeof n!="object"&&typeof n!="function",wt=Array.isArray,er=n=>wt(n)||typeof n?.[Symbol.iterator]=="function",ft=`[
2
2
  \f\r]`,K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Kt=/-->/g,zt=/>/g,C=RegExp(`>|${ft}(?:([^\\s"'>=/]+)(${ft}*=${ft}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Dt=/'/g,qt=/"/g,Xt=/^(?:script|style|textarea|title)$/i,Tt=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),p=Tt(1),Kr=Tt(2),zr=Tt(3),O=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),Vt=new WeakMap,R=P.createTreeWalker(P,129);function Jt(n,t){if(!wt(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ht!==void 0?Ht.createHTML(t):t}var rr=(n,t)=>{let e=n.length-1,r=[],o,s=t===2?"<svg>":t===3?"<math>":"",i=K;for(let d=0;d<e;d++){let a=n[d],g,y,m=-1,E=0;for(;E<a.length&&(i.lastIndex=E,y=i.exec(a),y!==null);)E=i.lastIndex,i===K?y[1]==="!--"?i=Kt:y[1]!==void 0?i=zt:y[2]!==void 0?(Xt.test(y[2])&&(o=RegExp("</"+y[2],"g")),i=C):y[3]!==void 0&&(i=C):i===C?y[0]===">"?(i=o??K,m=-1):y[1]===void 0?m=-2:(m=i.lastIndex-y[2].length,g=y[1],i=y[3]===void 0?C:y[3]==='"'?qt:Dt):i===qt||i===Dt?i=C:i===Kt||i===zt?i=K:(i=C,o=void 0);let T=i===C&&n[d+1].startsWith("/>")?" ":"";s+=i===K?a+tr:m>=0?(r.push(g),a.slice(0,m)+Yt+a.slice(m)+A+T):a+A+(m===-2?d:T)}return[Jt(n,s+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},q=class n{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let s=0,i=0,d=t.length-1,a=this.parts,[g,y]=rr(t,e);if(this.el=n.createElement(g,r),R.currentNode=this.el.content,e===2||e===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(o=R.nextNode())!==null&&a.length<d;){if(o.nodeType===1){if(o.hasAttributes())for(let m of o.getAttributeNames())if(m.endsWith(Yt)){let E=y[i++],T=o.getAttribute(m).split(A),Y=/([.?@])?(.*)/.exec(E);a.push({type:1,index:s,name:Y[2],strings:T,ctor:Y[1]==="."?bt:Y[1]==="?"?vt:Y[1]==="@"?St:I}),o.removeAttribute(m)}else m.startsWith(A)&&(a.push({type:6,index:s}),o.removeAttribute(m));if(Xt.test(o.tagName)){let m=o.textContent.split(A),E=m.length-1;if(E>0){o.textContent=tt?tt.emptyScript:"";for(let T=0;T<E;T++)o.append(m[T],z()),R.nextNode(),a.push({type:2,index:++s});o.append(m[E],z())}}}else if(o.nodeType===8)if(o.data===Wt)a.push({type:2,index:s});else{let m=-1;for(;(m=o.data.indexOf(A,m+1))!==-1;)a.push({type:7,index:s}),m+=A.length-1}s++}}static createElement(t,e){let r=P.createElement("template");return r.innerHTML=t,r}};function N(n,t,e=n,r){if(t===O)return t;let o=r!==void 0?e._$Co?.[r]:e._$Cl,s=D(t)?void 0:t._$litDirective$;return o?.constructor!==s&&(o?._$AO?.(false),s===void 0?o=void 0:(o=new s(n),o._$AT(n,e,r)),r!==void 0?(e._$Co??=[])[r]=o:e._$Cl=o),o!==void 0&&(t=N(n,o._$AS(n,t.values),o,r)),t}var xt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:r}=this._$AD,o=(t?.creationScope??P).importNode(e,true);R.currentNode=o;let s=R.nextNode(),i=0,d=0,a=r[0];for(;a!==void 0;){if(i===a.index){let g;a.type===2?g=new V(s,s.nextSibling,this,t):a.type===1?g=new a.ctor(s,a.name,a.strings,this,t):a.type===6&&(g=new $t(s,this,t)),this._$AV.push(g),a=r[++d]}i!==a?.index&&(s=R.nextNode(),i++)}return R.currentNode=P,o}p(t){let e=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}},V=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,o){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cv=o?.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=N(this,t,e),D(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==O&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):er(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!==c&&D(this._$AH)?this._$AA.nextSibling.data=t:this.T(P.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=q.createElement(Jt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(e);else{let s=new xt(o,this),i=s.u(this.options);s.p(e),this.T(i),this._$AH=s}}_$AC(t){let e=Vt.get(t.strings);return e===void 0&&Vt.set(t.strings,e=new q(t)),e}k(t){wt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,o=0;for(let s of t)o===e.length?e.push(r=new n(this.O(z()),this.O(z()),this,this.options)):r=e[o],r._$AI(s),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(false,true,e);t!==this._$AB;){let r=Bt(t).nextSibling;Bt(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},I=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,s){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=c}_$AI(t,e=this,r,o){let s=this.strings,i=false;if(s===void 0)t=N(this,t,e,0),i=!D(t)||t!==this._$AH&&t!==O,i&&(this._$AH=t);else{let d=t,a,g;for(t=s[0],a=0;a<s.length-1;a++)g=N(this,d[r+a],e,a),g===O&&(g=this._$AH[a]),i||=!D(g)||g!==this._$AH[a],g===c?t=c:t!==c&&(t+=(g??"")+s[a+1]),this._$AH[a]=g}i&&!o&&this.j(t)}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},bt=class extends I{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===c?void 0:t}},vt=class extends I{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==c)}},St=class extends I{constructor(t,e,r,o,s){super(t,e,r,o,s),this.type=5}_$AI(t,e=this){if((t=N(this,t,e,0)??c)===O)return;let r=this._$AH,o=t===c&&r!==c||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==c&&(r===c||o);o&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},$t=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){N(this,t)}};var nr=Et.litHtmlPolyfillSupport;nr?.(q,V),(Et.litHtmlVersions??=[]).push("3.3.3");var Zt=(n,t,e)=>{let r=e?.renderBefore??t,o=r._$litPart$;if(o===void 0){let s=e?.renderBefore??null;r._$litPart$=o=new V(t.insertBefore(z(),s),s,void 0,e??{})}return o._$AI(n),o};var At=globalThis,k=class extends w{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=Zt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false)}render(){return O}};k._$litElement$=true,k.finalized=true,At.litElementHydrateSupport?.({LitElement:k});var or=At.litElementPolyfillSupport;or?.({LitElement:k});(At.litElementVersions??=[]).push("4.2.2");var Qt=[{endpoint:"human-design/variables",method:"POST"}];var sr={attribute:true,type:String,converter:H,reflect:false,hasChanged:Q},ir=(n=sr,t,e)=>{let{kind:r,metadata:o}=e,s=globalThis.litPropertyMetadata.get(o);if(s===void 0&&globalThis.litPropertyMetadata.set(o,s=new Map),r==="setter"&&((n=Object.create(n)).wrapped=true),s.set(e.name,n),r==="accessor"){let{name:i}=e;return{set(d){let a=t.get.call(this);t.set.call(this,d),this.requestUpdate(i,a,n,true,d)},init(d){return d!==void 0&&this.C(i,void 0,n,d),d}}}if(r==="setter"){let{name:i}=e;return function(d){let a=this[i];t.call(this,d),this.requestUpdate(i,a,n,true,d)}}throw Error("Unsupported decorator location: "+r)};function f(n){return(t,e)=>typeof e=="object"?ir(n,t,e):((r,o,s)=>{let i=o.hasOwnProperty(s);return o.constructor.createProperty(s,r),i?Object.getOwnPropertyDescriptor(o,s):void 0})(n,t,e)}function S(n){return f({...n,state:true,attribute:false})}var F=n=>n??c;var te=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function _t(n){if(n.lang)return n.lang;if(typeof document>"u")return;let t=n.closest?.("[lang]")?.getAttribute("lang");return t||document.documentElement.lang||void 0}var ar={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function kt(n,t){let e=n.toLowerCase();return t.find(r=>r.toLowerCase()===e)}function ee(n,t=te){let e=_t(n);if(!e)return;let r=kt(e,t);if(r)return r;let o=e.toLowerCase().split("-"),s=o[0];if(s==="zh"){let i=o.find(d=>d==="hans"||d==="hant")??ar[o[1]??""];return i?kt(`zh-${i}`,t):void 0}return kt(s,t)}var dr={Fraunces:["latin","latin-ext"],Jost:["latin","latin-ext","cyrillic"],Geist:["latin","latin-ext","cyrillic"]},Ct='"Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',re='"Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',ne='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',rt={"fraunces-jost":{name:"Fraunces with Jost",sans:Ct,display:'"Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif'},jost:{name:"Jost",sans:Ct,display:Ct},geist:{name:"Geist",sans:re,display:re},system:{name:"System",sans:ne,display:ne}};function oe(n){let{sans:t,display:e}=rt[n];return Object.keys(dr).filter(r=>`${t} ${e}`.includes(`"${r}"`))}var se="1.2.0";var lr=/^(.*)\/cdn\/(?:roxy-ui|components\/[\w-]+)\.js$/,cr=/^(.*\/dist)\/(?:index|components\/[\w-]+)\.js$/;function ie(n,t){if(!t)return;let e=new URL(t);if(e.protocol!=="https:"&&e.protocol!=="http:")return;let r=(lr.exec(e.pathname)??cr.exec(e.pathname))?.[1];if(r!==void 0)return e.hostname==="cdn.jsdelivr.net"?`https://cdn.jsdelivr.net/npm/@roxyapi/ui@${n}/dist`:`${e.origin}${r}`}var mr={},pr="color-mix(in oklab, var(--roxy-accent) 70%, black)",hr="var(--roxy-accent)",ur="color-mix(in srgb, var(--roxy-accent) 40%, transparent)",ae=/^#(?:[\da-f]{3}|[\da-f]{6})$/i;function de(n){return n!==void 0&&Object.hasOwn(rt,n)}function le(n){let t=[];return n.brandColor&&ae.test(n.brandColor)&&t.push(`--roxy-primary:${n.brandColor}`),n.brandAccent&&ae.test(n.brandAccent)&&t.push(`--roxy-accent:${n.brandAccent}`,`--roxy-accent-ink:light-dark(${pr},${hr})`,`--roxy-ring:${ur}`),t.join(";")}function ce(n,t){if(de(t))return t;let e=n.getRootNode();if(("host"in e?e.host:null)?.localName.startsWith("roxy-")||!globalThis.getComputedStyle)return;let o=n.shadowRoot?.firstElementChild,s=o?.localName==="style"?o:null;s?.sheet&&(s.sheet.disabled=true);let i,d,a;try{let g=globalThis.getComputedStyle(n),y=m=>g.getPropertyValue(m).trim();i=y("--roxy-font-sans"),d=y("--roxy-font-display"),a=y("--roxy-font")}finally{s?.sheet&&(s.sheet.disabled=false)}if(!(i||d))return de(a)?a:void 0}function pe(n){let{sans:t,display:e}=rt[n];return`--roxy-font:${n};--roxy-font-sans:${t};--roxy-font-display:${e}`}var yr=ie(se,globalThis.document?.currentScript?.src||mr.url);function he(n,t=yr){if(typeof document>"u"||t===void 0)return;let e=`roxy-ui-font-${n}`;if(oe(n).length===0||document.getElementById(e))return;let r=document.createElement("link");r.id=e,r.rel="stylesheet",r.href=`${t}/styles/fonts/${n}.css`,document.head.append(r)}var ue='@layer roxy.tokens,roxy.theme;@layer roxy.tokens{:where(:root,:host){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-font: initial;--roxy-font-sans: initial;--roxy-font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;--roxy-text-base: 1rem;--roxy-text-scale: 1.15;--roxy-weight-normal: 400;--roxy-weight-bold: 600;--roxy-leading-tight: 1.25;--roxy-leading-normal: 1.5;--roxy-tracking-tight: -0.01em;--roxy-tracking-normal: 0em;--roxy-space-unit: 0.25rem;--roxy-radius: 6px;--roxy-motion-duration: 200ms;--roxy-motion-easing: cubic-bezier(0.4, 0, 0.2, 1)}:where(:root,:host,[data-theme],.light,.dark){--roxy-surface: var(--roxy-bg);--roxy-primary: var(--roxy-fg);--roxy-secondary: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-muted: color-mix(in oklab, var(--roxy-fg) 60%, var(--roxy-bg));--roxy-border: color-mix(in oklab, var(--roxy-fg) 14%, var(--roxy-bg));--roxy-ring: color-mix(in srgb, var(--roxy-accent) 40%, transparent);--roxy-heat: var(--roxy-danger);--roxy-font-display: var(--roxy-font-sans);--roxy-text-sm: calc(var(--roxy-text-base) / var(--roxy-text-scale));--roxy-text-xs: calc(var(--roxy-text-sm) / var(--roxy-text-scale));--roxy-text-lg: calc(var(--roxy-text-base) * var(--roxy-text-scale));--roxy-text-xl: calc( var(--roxy-text-lg) * var(--roxy-text-scale) * var(--roxy-text-scale) );--roxy-space-xs: var(--roxy-space-unit);--roxy-space-sm: calc(var(--roxy-space-unit) * 2);--roxy-space-md: calc(var(--roxy-space-unit) * 4);--roxy-space-lg: calc(var(--roxy-space-unit) * 6);--roxy-space-xl: calc(var(--roxy-space-unit) * 10);--roxy-line-thick: calc(var(--roxy-space-unit) / 2);--roxy-touch: calc(var(--roxy-space-unit) * 11);--roxy-radius-sm: calc(var(--roxy-radius) / 2);--roxy-radius-md: var(--roxy-radius);--roxy-radius-lg: calc(var(--roxy-radius) * 5 / 3);--roxy-radius-full: 9999px;--roxy-shadow-sm: none;--roxy-shadow-md: 0 4px 12px color-mix(in srgb, black 10%, transparent);--roxy-shadow-lg: 0 12px 32px color-mix(in srgb, black 18%, transparent)}@media(prefers-color-scheme:dark){:where(:root,:host){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white)}}:where(:root[data-theme=light],[data-theme=light],:root.light,.light,:host([data-theme="light"])){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black)}:where(:root[data-theme=dark],[data-theme=dark],:root.dark,.dark,:host([data-theme="dark"])){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white)}@media(prefers-reduced-motion:reduce){:where(:root,:host){--roxy-motion-duration: 0ms}}}';var nt="roxy-ui-tokens";function ot(){if(typeof document>"u")return null;let n=document.getElementById(nt);if(n)return n;let t=document.createElement("style");return t.id=nt,t.textContent=ue,document.head.prepend(t),t}function ye(n){return n.toLowerCase().replace(/[\s_-]+/g," ").trim()}var me="__ROXY_UI_I18N__";function ge(){let n=globalThis,t=n[me];if(t)return t;let e={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return n[me]=e,e}function gr(n,t){return t?n.replace(/\{\{(\w+)\}\}/g,(e,r)=>r in t?String(t[r]??""):e):n}function fe(n,t,e){return gr(fr(n,t)??t,e)}function fr(n,t){if(!n)return;let{catalogs:e}=ge(),r=n.toLowerCase();return(e[r]??e[r.split("-")[0]])?.[ye(t)]}function xe(n){let{listeners:t}=ge();return t.add(n),()=>{t.delete(n)}}var st=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){this.unsubscribe=xe(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var it=class extends k{constructor(){super();this.translator=(e,r)=>this.t(e,r);new st(this)}connectedCallback(){super.connectedCallback(),ot()}fontDeclarations(e){let r=ce(this,e);return r?(he(r),pe(r)):""}renderFontStyle(){let e=this.fontDeclarations();return e?p`<style>:host{${e}}</style>`:c}t(e,r){return fe(this.effectiveLang(),e,r)}effectiveLang(){return _t(this)}};var be=v`: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 xr=v`:host{--roxy-label-col:minmax(0, 25%);--_mask:var(--roxy-surface);font-family:var(--roxy-font-sans);color:var(--roxy-fg);font-size:var(--roxy-text-base);line-height:var(--roxy-leading-normal);animation:roxy-fade-in var(--roxy-motion-duration) var(--roxy-motion-easing) both;background:0 0;display:block;container-type:inline-size}:host([bare]){--_mask:var(--roxy-bg)}:host([hidden]){display:none}:host([bare]){--roxy-surface:transparent;--roxy-shadow-sm:none;--roxy-shadow-md:none}*,:before,:after{box-sizing:border-box}h1,h2,h3,h4{font-family:var(--roxy-font-display)}@keyframes roxy-fade-in{0%{transform:translateY(calc(var(--roxy-space-unit) / 2))}to{transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border) 0%, color-mix(in srgb, var(--roxy-border) 60%, transparent) 50%, var(--roxy-border) 100%);border-radius:var(--roxy-radius-md);background-size:200% 100%;animation:1.4s ease-in-out infinite roxy-shimmer}@keyframes roxy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.roxy-skeleton{animation:none}}.roxy-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.roxy-empty{padding:var(--roxy-space-lg);color:var(--roxy-muted);text-align:center;font-size:var(--roxy-text-sm)}.roxy-error{gap:var(--roxy-space-sm);padding:var(--roxy-space-lg);background:var(--roxy-surface);border:1px solid var(--roxy-danger);border-radius:var(--roxy-radius-md);color:var(--roxy-danger-fg);font-size:var(--roxy-text-sm);justify-items:start;display:grid}:host(:focus-within) .roxy-card{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}.roxy-attribution{margin-top:var(--roxy-space-sm);font-size:var(--roxy-text-xs);color:var(--roxy-muted);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink);text-decoration:underline}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs) var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);color:var(--roxy-fg);font-family:inherit;font-size:var(--roxy-text-sm);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-edit:disabled{cursor:progress;color:var(--roxy-muted)}roxy-endpoint-form+*{margin-top:var(--roxy-space-md)}.roxy-more{justify-items:center;gap:var(--roxy-space-sm);margin-top:var(--roxy-space-md);display:grid}.roxy-more .roxy-edit{min-height:var(--roxy-touch)}:host{font-variant-emoji:text}`,at=[xr,be];var br="__cols",vr="__rows";function Sr(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function dt(n){if(Array.isArray(n)){let s=false,i=n.map(d=>{let a=dt(d);return a!==d&&(s=true),a});return s?i:n}if(!Sr(n))return n;let t=n[br],e=n[vr];if(Array.isArray(t)&&Array.isArray(e)&&Object.keys(n).length===2)return e.map(s=>{let i={};return t.forEach((d,a)=>{i[d]=dt(s[a])}),i});let r=false,o={};for(let[s,i]of Object.entries(n)){let d=dt(i);d!==i&&(r=true),o[s]=d}return r?o:n}function ve(n){return dt(n)}function Se(n,t){return n.find(e=>e.attrs&&Object.entries(e.attrs).every(([r,o])=>t[r]===o))??n[0]}var $r="pk_live_YOUR_KEY",$e={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 Ee(n){if(n)return n===$r?$e.sample:n.startsWith("pk_")?void 0:$e.secret}function we(n,t,e={}){e.warn&&console.warn(t.message),n.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:t.reason,message:t.message},bubbles:true,composed:true}))}var Te="https://roxyapi.com/api/v2";async function Er(n){try{let t=await n.json();if(t?.error){let e=t.code==="validation_error"&&Array.isArray(t.issues)?t.issues.filter(r=>typeof r.path=="string"&&typeof r.message=="string").map(r=>({path:r.path,message:r.message})):null;return{message:t.error,issues:e?.length?e:null,worded:true,...t.code?{code:t.code}:{}}}}catch{}return{message:`Request failed (${n.status})`,issues:null,worded:false}}var Ae={fromAttribute:n=>{if(n!=null){try{let t=JSON.parse(n);if(t&&typeof t=="object"&&!Array.isArray(t))return t}catch{}console.warn("[roxy-ui] submit-context must be a JSON object; sending the request without it.")}}},G=class extends Error{constructor(e,r=null,o=true,s,i){super(e);this.issues=r;this.worded=o;this.status=s;this.code=i}};function ke(n){return n.submitUrl?void 0:Ee(n.publishableKey)}async function Rt(n,t,e){let r=ke(n);if(r)throw new G(r.message);let o=n.submitUrl?await fetch(n.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:wr(t,n.submitContext),signal:e}):await Tr(n,t,e);if(!o.ok){let s=await Er(o);throw new G(s.message,s.issues,s.worded,o.status,s.code)}return await o.json()}function wr(n,t){return JSON.stringify(t?{...n,context:t}:n)}function Tr(n,t,e){let r=new URL(`${n.baseUrl??Te}${t.path}`,document.baseURI);for(let[s,i]of Object.entries(t.query??{}))i!=null&&r.searchParams.set(s,String(i));let o={Accept:"application/json"};return n.publishableKey&&(o["X-API-Key"]=n.publishableKey),t.body!=null&&(o["Content-Type"]="application/json"),fetch(r,{method:t.method??"GET",headers:o,body:t.body!=null?JSON.stringify(t.body):void 0,signal:e})}var lt=class{constructor(t){this.baseUrl=Te;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=ke(this);if(e){this.host.error=e.message,we(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 o=await Rt(this,t,r.signal);if(r.signal.aborted)return;this.host.data=o}catch(o){if(r.signal.aborted||o?.name==="AbortError")return;o instanceof G&&(this.host.issues=o.issues,this.failure={status:o.status,code:o.code}),this.worded=o instanceof G&&o.worded,this.host.error=o instanceof Error?o.message:String(o)}finally{this.abort===r&&(this.abort=void 0),r.signal.aborted||(this.host.loading=false)}}};function _e(n,t,e,r=[]){let o={...e},s=`/${n.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(g,y)=>{let m=o[y];return delete o[y],encodeURIComponent(String(m??""))}),i=new Set(r),d={},a={};for(let[g,y]of Object.entries(o))y===void 0||y===""||(t==="GET"||i.has(g)?d[g]=y:a[g]=y);return{path:s,method:t,query:d,body:t==="POST"?a:void 0}}function ct(){return p`<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 Ce=v`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 Re=v`.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 Pe(n,t,e){let r=n.filter(o=>!!o.body);return r.length===0?c:p`<section class="block" part="section readings"><h3>${e}</h3>${r.map((o,s)=>p`<details class="interp-card" part="reading" name="${t}" ?open="${s===0}"><summary><span class="interp-lead">${o.label}</span> ${ct()} ${o.aside?p`<span class="interp-aside"><small>${o.aside}</small></span>`:c}</summary><div class="interp-body"><p>${o.body}</p>${o.extra??c}</div></details>`)}</section>`}var Ar="roxy-data";function kr(n){return n.nodeName==="SCRIPT"&&n.getAttribute("type")==="application/json"}var pt=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(kr(t)&&t.classList.contains(Ar))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};var h=class extends it{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,o=this.listRows();if(!(!e||!r||!o)){this.moreLoading=true,this.moreError=null;try{let s=await Rt(this.fetcher,{...e,query:{...e.query,offset:o.length}});if(this.lastRequest!==e)return;let i=s[r];this.data={...this.data,...s,[r]:[...o,...Array.isArray(i)?i:[]]}}catch(s){this.lastRequest===e&&(this.moreError=s instanceof Error?s.message:String(s))}finally{this.moreLoading=false}}};this.onEdit=()=>{this.editing=true};this.onFormSubmit=e=>{let r=this.selfFetch();if(!r)return;let o=e.detail;this.lastValues=o.values,this.sticky=!!o.sticky,this.selfFetched=true,this.editing=false,this.remember&&this.writeRemembered(o.values),this.fetchFresh(_e(r.endpoint,r.method,{...o.values,...this.ownRequest()},o.queryKeys??[]))};new pt(this),this.fetcher=new lt(this)}static{this.styles=[at]}static{this.endpoints=[]}willUpdate(e){if(e.has("data")&&this.data!=null){let r=ve(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:Se(this.constructor.endpoints,this);return e&&{endpoint:e.endpoint,method:this.method??e.method}}render(){return p`${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")?p`<roxy-data .data="${e}" lang="${F(this.effectiveLang())}"></roxy-data>`:this.renderEmpty()}}hostStyle(){let e=this.hideSections.split(",").map(s=>s.trim().toLowerCase()).filter(s=>/^[a-z][a-z0-9-]*$/.test(s)),r=[le(this),this.fontDeclarations(this.font)].filter(Boolean).join(";");if(e.length===0&&!r)return c;let o=(r?`:host{${r}}`:"")+e.map(s=>`[part~="${s}"],roxy-endpoint-form::part(${s}){display:none!important}`).join("");return p`<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()?p`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(e,r,o){return this.hideReadings?c:Pe(e,r,this.t(o??"Reading"))}renderResult(e){let r=p`<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()?p`${r}${this.renderAttribution()}`:r}renderWithForm(e){return p`${this.renderForm()}${e}`}stickyBody(){return this.loading?this.renderLoading():this.error!=null?this.issues?c:this.renderErrorBanner(this.error):this.data==null?c:this.showAttribution()?p`${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"?c:e.length>=r?c:p`<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?p`<p class="roxy-error" role="alert">${this.t(this.moreError)}</p>`:c}</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 o=this.effectiveLang();o&&r.setAttribute("lang",o),this.openedRow=r,this.openedRowId=e,r.load({path:`/${this.rowDetail.path.replace("{id}",encodeURIComponent(e))}`,method:"GET",query:{lang:ee(this)}}).then(()=>r.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return p`<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(c):this.renderEmpty()}renderForm(){let e=this.selfFetch();return p`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${e?.endpoint??""}" method="${e?.method??"POST"}" spec-url="${F(this.specUrl)}" publishable-key="${F(this.publishableKey)}" location-url="${F(this.locationUrl)}" submit-label="${F(this.submitLabel)}" lang="${F(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 p`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return p`<div class="roxy-skeleton" style="height:5lh" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(e){let r=!!this.selfFetch();if(r&&this.issues)return this.renderForm();let o=this.renderErrorBanner(e);return r?p`${o}${this.renderForm()}`:o}renderErrorBanner(e){return p`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(e)}</div>`}};u([f({attribute:false})],h.prototype,"data",2),u([f({type:String,attribute:"data-endpoint"})],h.prototype,"endpoint",2),u([f({type:String})],h.prototype,"method",2),u([f({type:String,attribute:"publishable-key"})],h.prototype,"publishableKey",2),u([f({type:String,attribute:"base-url"})],h.prototype,"baseUrl",2),u([f({type:String,attribute:"spec-url"})],h.prototype,"specUrl",2),u([f({type:String,attribute:"submit-url"})],h.prototype,"submitUrl",2),u([f({attribute:"submit-context",converter:Ae})],h.prototype,"submitContext",2),u([f({type:String,attribute:"location-url"})],h.prototype,"locationUrl",2),u([f({type:Boolean})],h.prototype,"remember",2),u([f({type:Boolean,attribute:"hide-readings",reflect:true})],h.prototype,"hideReadings",2),u([f({type:String,attribute:"hide-sections",reflect:true})],h.prototype,"hideSections",2),u([f({type:String,attribute:"brand-color"})],h.prototype,"brandColor",2),u([f({type:String,attribute:"brand-accent"})],h.prototype,"brandAccent",2),u([f({type:String})],h.prototype,"font",2),u([f({type:String,attribute:"submit-label"})],h.prototype,"submitLabel",2),u([f({type:String,attribute:"error-message"})],h.prototype,"errorMessage",2),u([f({type:String})],h.prototype,"attribution",2),u([S()],h.prototype,"loading",2),u([S()],h.prototype,"error",2),u([S()],h.prototype,"issues",2),u([S()],h.prototype,"selfFetched",2),u([S()],h.prototype,"editing",2),u([S()],h.prototype,"sticky",2),u([S()],h.prototype,"openedRow",2),u([S()],h.prototype,"openedRowId",2),u([S()],h.prototype,"moreLoading",2),u([S()],h.prototype,"moreError",2);var _r="Localized";function $(n,t,e){let r=n,o=r?.[`${t}${_r}`];if(typeof o=="string"&&o!=="")return o;if(e!==void 0)return e;let s=r?.[t];return typeof s=="string"?s:""}var Le=14,Cr=86,Me=0,Rr=102,_=6,Ne=(Cr-Le)*_,Pr=(Rr-Me)*_;function L(n,t){return{x:(n-Le)*_,y:(t-Me)*_}}var l=50,yt=n=>2*l-n,Go=1.02*_,jo=1.15*_,x=2.87,b=4.4,Oe=5.65,Pt={head:{64:[l-x,11.2],61:[l,11.2],63:[l+x,11.2]},ajna:{47:[l-x,18],24:[l,18],4:[l+x,18],17:[l-x,20.6],11:[l+x,20.6],43:[l,25.3]},throat:{62:[l-x,32.4],23:[l,32.4],56:[l+x,32.4],16:[l-b,34.7],35:[l+b,34.7],20:[l-b,37.3],12:[l+b,37.3],45:[l+b,39.6],31:[l-x,41.9],8:[l,41.9],33:[l+x,41.9]},g:{1:[l,47.7],7:[l-x,50.3],13:[l+x,50.3],10:[l-Oe,53.4],25:[l+Oe,53.4],15:[l-x,56.8],46:[l+x,56.8],2:[l,59.2]},heart:{21:[63.9,59.5],51:[62.1,61.3],26:[60.1,63.3],40:[66.6,63.3]},spleen:{48:[20,70.8],57:[22.5,72.4],44:[25,73.8],50:[27.7,75.3],32:[25,76.6],28:[22.5,78],18:[20,79.5]},sacral:{5:[l-x,72.7],14:[l,72.7],29:[l+x,72.7],34:[l-b,75.4],27:[l-b,79],59:[l+b,79],42:[l-x,81.7],3:[l,81.7],9:[l+x,81.7]},"solar-plexus":{},root:{53:[l-x,90.2],60:[l,90.2],52:[l+x,90.2],54:[l-b,92.6],19:[l+b,92.6],38:[l-b,95.3],39:[l+b,95.3],58:[l-b,98.1],41:[l+b,98.1]}},Or={48:36,57:22,44:37,50:6,32:49,28:55,18:30};function Fr(){let n={},t={};for(let[e,[r,o]]of Object.entries(Pt.spleen))Pt["solar-plexus"][Or[Number(e)]]=[yt(r),o];for(let[e,r]of Object.entries(Pt))for(let[o,[s,i]]of Object.entries(r))n[Number(o)]=L(s,i),t[Number(o)]=e;return{points:n,centerOf:t}}var{points:Bo,centerOf:Ho}=Fr(),Ko=Ne/2;function U(n){return n.map(([t,e])=>L(t,e))}function Ot(n,t,e){return U([[l-n,t],[l+n,t],[l+n,e],[l-n,e]])}var Ft=5.9,Fe=[[18.3,68.3],[18.3,82],[30.3,75.15]],Ut=[20,84.4],Ue=12*_,Ur=[63.2,67.9],Lr=13.1*_,zo=[{id:"head",label:"Head",color:"gold",points:U([[43.55,12.5],[56.45,12.5],[50,1.7]])},{id:"ajna",label:"Ajna",color:"green",points:U([[43.55,16.5],[56.45,16.5],[50,27.7]])},{id:"throat",label:"Throat",color:"brown",points:Ot(Ft,31,43.3)},{id:"g",label:"G",color:"gold",points:U([[50,45.8],[57.7,53.6],[50,61.4],[42.3,53.6]])},{id:"heart",label:"Heart",color:"red",points:U([[56.65,65.23],[64.2,56.74],[69.75,65.23]]),caption:{at:L(...Ur),room:Lr}},{id:"spleen",label:"Spleen",color:"brown",points:U(Fe),caption:{at:L(...Ut),room:Ue}},{id:"sacral",label:"Sacral",color:"red",points:Ot(Ft,71.3,83.1)},{id:"solar-plexus",label:"Solar Plexus",color:"brown",points:U(Fe.map(([n,t])=>[yt(n),t])),caption:{at:L(yt(Ut[0]),Ut[1]),room:Ue}},{id:"root",label:"Root",color:"brown",points:Ot(Ft,88.5,99.8)}];var Do=Mr();function Mr(){let n=yt,t=[[50,3],[58,3],[60,10],[57,17.5],[56.5,20.5],[53.5,23.5],[51.5,27],[54,28],[64,30],[79,35],[83,42],[84,58],[83,74],[83,86],[76,93],[68,97],[64,99],[62,100.5],[60,100.5]],e=[`M ${ht(t[0])}`];for(let r=1;r+2<t.length;r+=3)e.push(`C ${ht(t[r])} ${ht(t[r+1])} ${ht(t[r+2])}`);e.push(`L ${ut(t[t.length-1],n)}`);for(let r=t.length-3;r>=1;r-=3)e.push(`C ${ut(t[r+1],n)} ${ut(t[r],n)} ${ut(t[r-1],n)}`);return e.push("Z"),e.join(" ")}function ht([n,t]){let e=L(n,t);return`${e.x} ${e.y}`}function ut([n,t],e){let r=L(e(n),t);return`${r.x} ${r.y}`}var qo=`0 0 ${Ne} ${Pr}`;function Ie(n,t){return n==="design"?t("Design"):n==="personality"?t("Personality"):n??""}var Ge=n=>t=>{customElements.get(n)||customElements.define(n,t)};var M=class extends h{renderData(t){let e=[...t.arrows??[]].sort((r,o)=>je(r.position)-je(o.position));return p`<div class="wrap" part="card" aria-label="${this.t("Human Design variables")}"><h2 part="header">${this.t("Variables")}</h2><div class="grid" part="details arrows">${e.map(r=>this.renderArrow(r))}</div>${t.confident===false?p`<p class="note" role="note">${typeof t.confidenceMarginDeg=="number"?this.t("Low confidence: a birth time near a color or tone boundary (within {{margin}}\xB0). Verify the exact birth time.",{margin:t.confidenceMarginDeg}):this.t("Low confidence: a birth time near a color or tone boundary. Verify the exact birth time.")}</p>`:c} ${this.renderReading(e,t.baseDescription)}</div>`}renderArrow(t){let e=t.direction==="left"?"\u2190":"\u2192",r=$(t,"baseName");return p`<div class="arrow"><div class="arrow-head"><span class="glyph ${t.activation?.side??""}" aria-hidden="true">${e}</span> <span class="name">${$(t,"name")}</span></div>${t.layer?p`<span class="layer">${$(t,"layer")}</span>`:c} <span class="labels">${[$(t,"directionLabel"),$(t,"colorLabel")].filter(Boolean).join(" \xB7 ")} </span>${typeof t.color=="number"?p`<span class="ctb">${this.t("Color {{color}} \xB7 Tone {{tone}} \xB7 Base {{base}}",{color:t.color,tone:t.tone??"",base:t.base??""})}${r?`, ${r}`:""}</span>`:c} ${t.activation?.planet?p`<span class="ctb">${[$(t.activation,"planet"),Ie(t.activation.side,this.translator)].filter(Boolean).join(" \xB7 ")}</span>`:c} ${t.confident===false?p`<span class="note" role="note">${this.t("Knife-edge: could flip with a more precise birth time.")}</span>`:c}</div>`}renderReading(t,e){let r=t.filter(i=>i.description||i.colorMeaning);if(r.length===0||this.hideReadings)return c;let o=new Map;for(let i of r){let d=i.layer??"",a=o.get(d);a?a.push(i):o.set(d,[i])}let s=0;return p`<section class="block" part="section readings"><h3>${this.t("Reading")}</h3>${[...o].map(([i,d])=>p`<div class="group">${i?p`<p class="group-head">${$(d[0],"layer")}</p>`:c} ${d[0]?.layerDescription?p`<p class="group-note">${d[0].layerDescription}</p>`:c} ${d.map(a=>this.renderArrowReading(a,s++===0))}</div>`)} ${e?p`<p class="footnote">${this.t("Base")}. ${e}</p>`:c}</section>`}renderArrowReading(t,e){let r=t.cognition,o=r?$(r,"label"):"",s=[{label:this.t("Color"),body:t.colorMeaning},{label:this.t("Tone"),body:t.toneMeaning},{label:this.t("Direction"),body:t.directionMeaning},{label:o?`${this.t("Cognition")} \xB7 ${o}`:this.t("Cognition"),body:r?.description}].filter(i=>!!i.body);return p`<details class="interp-card" part="reading" name="hd-variable" ?open="${e}"><summary><span class="interp-lead">${$(t,"name")}</span> ${ct()} ${t.position?p`<span class="interp-aside"><small>${$(t,"position")}</small></span>`:c}</summary><div class="interp-body">${t.description?p`<p>${t.description}</p>`:c} ${s.length>0?p`<dl class="facets">${s.map(i=>p`<dt>${i.label}</dt><dd>${i.body}</dd>`)}</dl>`:c}</div></details>`}};M.endpoints=Qt,M.styles=[at,Ce,Re,v`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}.grid{gap:0 var(--roxy-space-lg);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.arrow{align-content:start;gap:var(--roxy-space-xs);padding-block:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);display:grid}.arrow-head{align-items:center;gap:var(--roxy-space-sm);display:flex}.glyph{font-size:var(--roxy-text-xl);color:var(--roxy-accent-ink);line-height:1}.glyph.design{color:var(--roxy-danger-fg)}.glyph.personality{color:var(--roxy-fg)}.name{font-weight:var(--roxy-weight-bold)}.layer,.ctb{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.ctb{font-variant-numeric:tabular-nums}.labels{font-size:var(--roxy-text-sm)}.note{color:var(--roxy-warning-fg);font-size:var(--roxy-text-xs)}@container (width<=28rem){.grid{grid-template-columns:minmax(0,1fr)}}.group+.group{margin-block-start:var(--roxy-space-md)}.group-head{font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold)}.group-note,.footnote{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.group-note{margin-block-end:var(--roxy-space-sm)}.facets{gap:var(--roxy-space-xs);margin:0;display:grid}.facets dd{margin:0}`],M=u([Ge("roxy-hd-variables")],M);function je(n){switch(n){case"Top left":return 0;case"Top right":return 1;case"Bottom left":return 2;case"Bottom right":return 3;default:return 99}}return De(Nr)})();/*! Bundled license information:
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Dt=/'/g,qt=/"/g,Xt=/^(?:script|style|textarea|title)$/i,Tt=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),p=Tt(1),Kr=Tt(2),zr=Tt(3),O=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),Vt=new WeakMap,R=P.createTreeWalker(P,129);function Jt(n,t){if(!wt(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ht!==void 0?Ht.createHTML(t):t}var rr=(n,t)=>{let e=n.length-1,r=[],o,s=t===2?"<svg>":t===3?"<math>":"",i=K;for(let d=0;d<e;d++){let a=n[d],g,y,m=-1,E=0;for(;E<a.length&&(i.lastIndex=E,y=i.exec(a),y!==null);)E=i.lastIndex,i===K?y[1]==="!--"?i=Kt:y[1]!==void 0?i=zt:y[2]!==void 0?(Xt.test(y[2])&&(o=RegExp("</"+y[2],"g")),i=C):y[3]!==void 0&&(i=C):i===C?y[0]===">"?(i=o??K,m=-1):y[1]===void 0?m=-2:(m=i.lastIndex-y[2].length,g=y[1],i=y[3]===void 0?C:y[3]==='"'?qt:Dt):i===qt||i===Dt?i=C:i===Kt||i===zt?i=K:(i=C,o=void 0);let T=i===C&&n[d+1].startsWith("/>")?" ":"";s+=i===K?a+tr:m>=0?(r.push(g),a.slice(0,m)+Yt+a.slice(m)+A+T):a+A+(m===-2?d:T)}return[Jt(n,s+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},q=class n{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let s=0,i=0,d=t.length-1,a=this.parts,[g,y]=rr(t,e);if(this.el=n.createElement(g,r),R.currentNode=this.el.content,e===2||e===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(o=R.nextNode())!==null&&a.length<d;){if(o.nodeType===1){if(o.hasAttributes())for(let m of o.getAttributeNames())if(m.endsWith(Yt)){let E=y[i++],T=o.getAttribute(m).split(A),Y=/([.?@])?(.*)/.exec(E);a.push({type:1,index:s,name:Y[2],strings:T,ctor:Y[1]==="."?bt:Y[1]==="?"?vt:Y[1]==="@"?St:I}),o.removeAttribute(m)}else m.startsWith(A)&&(a.push({type:6,index:s}),o.removeAttribute(m));if(Xt.test(o.tagName)){let m=o.textContent.split(A),E=m.length-1;if(E>0){o.textContent=tt?tt.emptyScript:"";for(let T=0;T<E;T++)o.append(m[T],z()),R.nextNode(),a.push({type:2,index:++s});o.append(m[E],z())}}}else if(o.nodeType===8)if(o.data===Wt)a.push({type:2,index:s});else{let m=-1;for(;(m=o.data.indexOf(A,m+1))!==-1;)a.push({type:7,index:s}),m+=A.length-1}s++}}static createElement(t,e){let r=P.createElement("template");return r.innerHTML=t,r}};function N(n,t,e=n,r){if(t===O)return t;let o=r!==void 0?e._$Co?.[r]:e._$Cl,s=D(t)?void 0:t._$litDirective$;return o?.constructor!==s&&(o?._$AO?.(false),s===void 0?o=void 0:(o=new s(n),o._$AT(n,e,r)),r!==void 0?(e._$Co??=[])[r]=o:e._$Cl=o),o!==void 0&&(t=N(n,o._$AS(n,t.values),o,r)),t}var xt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:r}=this._$AD,o=(t?.creationScope??P).importNode(e,true);R.currentNode=o;let s=R.nextNode(),i=0,d=0,a=r[0];for(;a!==void 0;){if(i===a.index){let g;a.type===2?g=new V(s,s.nextSibling,this,t):a.type===1?g=new a.ctor(s,a.name,a.strings,this,t):a.type===6&&(g=new $t(s,this,t)),this._$AV.push(g),a=r[++d]}i!==a?.index&&(s=R.nextNode(),i++)}return R.currentNode=P,o}p(t){let e=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}},V=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,o){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cv=o?.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=N(this,t,e),D(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==O&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):er(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!==c&&D(this._$AH)?this._$AA.nextSibling.data=t:this.T(P.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=q.createElement(Jt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(e);else{let s=new xt(o,this),i=s.u(this.options);s.p(e),this.T(i),this._$AH=s}}_$AC(t){let e=Vt.get(t.strings);return e===void 0&&Vt.set(t.strings,e=new q(t)),e}k(t){wt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,o=0;for(let s of t)o===e.length?e.push(r=new n(this.O(z()),this.O(z()),this,this.options)):r=e[o],r._$AI(s),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(false,true,e);t!==this._$AB;){let r=Bt(t).nextSibling;Bt(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},I=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,s){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=c}_$AI(t,e=this,r,o){let s=this.strings,i=false;if(s===void 0)t=N(this,t,e,0),i=!D(t)||t!==this._$AH&&t!==O,i&&(this._$AH=t);else{let d=t,a,g;for(t=s[0],a=0;a<s.length-1;a++)g=N(this,d[r+a],e,a),g===O&&(g=this._$AH[a]),i||=!D(g)||g!==this._$AH[a],g===c?t=c:t!==c&&(t+=(g??"")+s[a+1]),this._$AH[a]=g}i&&!o&&this.j(t)}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},bt=class extends I{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===c?void 0:t}},vt=class extends I{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==c)}},St=class extends I{constructor(t,e,r,o,s){super(t,e,r,o,s),this.type=5}_$AI(t,e=this){if((t=N(this,t,e,0)??c)===O)return;let r=this._$AH,o=t===c&&r!==c||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==c&&(r===c||o);o&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},$t=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){N(this,t)}};var nr=Et.litHtmlPolyfillSupport;nr?.(q,V),(Et.litHtmlVersions??=[]).push("3.3.3");var Zt=(n,t,e)=>{let r=e?.renderBefore??t,o=r._$litPart$;if(o===void 0){let s=e?.renderBefore??null;r._$litPart$=o=new V(t.insertBefore(z(),s),s,void 0,e??{})}return o._$AI(n),o};var At=globalThis,k=class extends w{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=Zt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false)}render(){return O}};k._$litElement$=true,k.finalized=true,At.litElementHydrateSupport?.({LitElement:k});var or=At.litElementPolyfillSupport;or?.({LitElement:k});(At.litElementVersions??=[]).push("4.2.2");var Qt=[{endpoint:"human-design/variables",method:"POST"}];var sr={attribute:true,type:String,converter:H,reflect:false,hasChanged:Q},ir=(n=sr,t,e)=>{let{kind:r,metadata:o}=e,s=globalThis.litPropertyMetadata.get(o);if(s===void 0&&globalThis.litPropertyMetadata.set(o,s=new Map),r==="setter"&&((n=Object.create(n)).wrapped=true),s.set(e.name,n),r==="accessor"){let{name:i}=e;return{set(d){let a=t.get.call(this);t.set.call(this,d),this.requestUpdate(i,a,n,true,d)},init(d){return d!==void 0&&this.C(i,void 0,n,d),d}}}if(r==="setter"){let{name:i}=e;return function(d){let a=this[i];t.call(this,d),this.requestUpdate(i,a,n,true,d)}}throw Error("Unsupported decorator location: "+r)};function f(n){return(t,e)=>typeof e=="object"?ir(n,t,e):((r,o,s)=>{let i=o.hasOwnProperty(s);return o.constructor.createProperty(s,r),i?Object.getOwnPropertyDescriptor(o,s):void 0})(n,t,e)}function S(n){return f({...n,state:true,attribute:false})}var F=n=>n??c;var te=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function _t(n){if(n.lang)return n.lang;if(typeof document>"u")return;let t=n.closest?.("[lang]")?.getAttribute("lang");return t||document.documentElement.lang||void 0}var ar={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function kt(n,t){let e=n.toLowerCase();return t.find(r=>r.toLowerCase()===e)}function ee(n,t=te){let e=_t(n);if(!e)return;let r=kt(e,t);if(r)return r;let o=e.toLowerCase().split("-"),s=o[0];if(s==="zh"){let i=o.find(d=>d==="hans"||d==="hant")??ar[o[1]??""];return i?kt(`zh-${i}`,t):void 0}return kt(s,t)}var dr={Fraunces:["latin","latin-ext"],Jost:["latin","latin-ext","cyrillic"],Geist:["latin","latin-ext","cyrillic"]},Ct='"Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',re='"Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',ne='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',rt={"fraunces-jost":{name:"Fraunces with Jost",sans:Ct,display:'"Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif'},jost:{name:"Jost",sans:Ct,display:Ct},geist:{name:"Geist",sans:re,display:re},system:{name:"System",sans:ne,display:ne}};function oe(n){let{sans:t,display:e}=rt[n];return Object.keys(dr).filter(r=>`${t} ${e}`.includes(`"${r}"`))}var se="1.3.0";var lr=/^(.*)\/cdn\/(?:roxy-ui|components\/[\w-]+)\.js$/,cr=/^(.*\/dist)\/(?:index|components\/[\w-]+)\.js$/;function ie(n,t){if(!t)return;let e=new URL(t);if(e.protocol!=="https:"&&e.protocol!=="http:")return;let r=(lr.exec(e.pathname)??cr.exec(e.pathname))?.[1];if(r!==void 0)return e.hostname==="cdn.jsdelivr.net"?`https://cdn.jsdelivr.net/npm/@roxyapi/ui@${n}/dist`:`${e.origin}${r}`}var mr={},pr="color-mix(in oklab, var(--roxy-accent) 70%, black)",hr="var(--roxy-accent)",ur="color-mix(in srgb, var(--roxy-accent) 40%, transparent)",ae=/^#(?:[\da-f]{3}|[\da-f]{6})$/i;function de(n){return n!==void 0&&Object.hasOwn(rt,n)}function le(n){let t=[];return n.brandColor&&ae.test(n.brandColor)&&t.push(`--roxy-primary:${n.brandColor}`),n.brandAccent&&ae.test(n.brandAccent)&&t.push(`--roxy-accent:${n.brandAccent}`,`--roxy-accent-ink:light-dark(${pr},${hr})`,`--roxy-ring:${ur}`),t.join(";")}function ce(n,t){if(de(t))return t;let e=n.getRootNode();if(("host"in e?e.host:null)?.localName.startsWith("roxy-")||!globalThis.getComputedStyle)return;let o=n.shadowRoot?.firstElementChild,s=o?.localName==="style"?o:null;s?.sheet&&(s.sheet.disabled=true);let i,d,a;try{let g=globalThis.getComputedStyle(n),y=m=>g.getPropertyValue(m).trim();i=y("--roxy-font-sans"),d=y("--roxy-font-display"),a=y("--roxy-font")}finally{s?.sheet&&(s.sheet.disabled=false)}if(!(i||d))return de(a)?a:void 0}function pe(n){let{sans:t,display:e}=rt[n];return`--roxy-font:${n};--roxy-font-sans:${t};--roxy-font-display:${e}`}var yr=ie(se,globalThis.document?.currentScript?.src||mr.url);function he(n,t=yr){if(typeof document>"u"||t===void 0)return;let e=`roxy-ui-font-${n}`;if(oe(n).length===0||document.getElementById(e))return;let r=document.createElement("link");r.id=e,r.rel="stylesheet",r.href=`${t}/styles/fonts/${n}.css`,document.head.append(r)}var ue='@layer roxy.tokens,roxy.theme;@layer roxy.tokens{:where(:root,:host){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-font: initial;--roxy-font-sans: initial;--roxy-font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;--roxy-text-base: 1rem;--roxy-text-scale: 1.15;--roxy-weight-normal: 400;--roxy-weight-bold: 600;--roxy-leading-tight: 1.25;--roxy-leading-normal: 1.5;--roxy-tracking-tight: -0.01em;--roxy-tracking-normal: 0em;--roxy-space-unit: 0.25rem;--roxy-radius: 6px;--roxy-motion-duration: 200ms;--roxy-motion-easing: cubic-bezier(0.4, 0, 0.2, 1)}:where(:root,:host,[data-theme],.light,.dark){--roxy-surface: var(--roxy-bg);--roxy-primary: var(--roxy-fg);--roxy-secondary: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-muted: color-mix(in oklab, var(--roxy-fg) 60%, var(--roxy-bg));--roxy-border: color-mix(in oklab, var(--roxy-fg) 14%, var(--roxy-bg));--roxy-ring: color-mix(in srgb, var(--roxy-accent) 40%, transparent);--roxy-heat: var(--roxy-danger);--roxy-font-display: var(--roxy-font-sans);--roxy-text-sm: calc(var(--roxy-text-base) / var(--roxy-text-scale));--roxy-text-xs: calc(var(--roxy-text-sm) / var(--roxy-text-scale));--roxy-text-lg: calc(var(--roxy-text-base) * var(--roxy-text-scale));--roxy-text-xl: calc( var(--roxy-text-lg) * var(--roxy-text-scale) * var(--roxy-text-scale) );--roxy-space-xs: var(--roxy-space-unit);--roxy-space-sm: calc(var(--roxy-space-unit) * 2);--roxy-space-md: calc(var(--roxy-space-unit) * 4);--roxy-space-lg: calc(var(--roxy-space-unit) * 6);--roxy-space-xl: calc(var(--roxy-space-unit) * 10);--roxy-line-thick: calc(var(--roxy-space-unit) / 2);--roxy-touch: calc(var(--roxy-space-unit) * 11);--roxy-radius-sm: calc(var(--roxy-radius) / 2);--roxy-radius-md: var(--roxy-radius);--roxy-radius-lg: calc(var(--roxy-radius) * 5 / 3);--roxy-radius-full: 9999px;--roxy-shadow-sm: none;--roxy-shadow-md: 0 4px 12px color-mix(in srgb, black 10%, transparent);--roxy-shadow-lg: 0 12px 32px color-mix(in srgb, black 18%, transparent)}@media(prefers-color-scheme:dark){:where(:root,:host){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white)}}:where(:root[data-theme=light],[data-theme=light],:root.light,.light,:host([data-theme="light"])){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black)}:where(:root[data-theme=dark],[data-theme=dark],:root.dark,.dark,:host([data-theme="dark"])){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white)}@media(prefers-reduced-motion:reduce){:where(:root,:host){--roxy-motion-duration: 0ms}}}';var nt="roxy-ui-tokens";function ot(){if(typeof document>"u")return null;let n=document.getElementById(nt);if(n)return n;let t=document.createElement("style");return t.id=nt,t.textContent=ue,document.head.prepend(t),t}function ye(n){return n.toLowerCase().replace(/[\s_-]+/g," ").trim()}var me="__ROXY_UI_I18N__";function ge(){let n=globalThis,t=n[me];if(t)return t;let e={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return n[me]=e,e}function gr(n,t){return t?n.replace(/\{\{(\w+)\}\}/g,(e,r)=>r in t?String(t[r]??""):e):n}function fe(n,t,e){return gr(fr(n,t)??t,e)}function fr(n,t){if(!n)return;let{catalogs:e}=ge(),r=n.toLowerCase();return(e[r]??e[r.split("-")[0]])?.[ye(t)]}function xe(n){let{listeners:t}=ge();return t.add(n),()=>{t.delete(n)}}var st=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){this.unsubscribe=xe(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var it=class extends k{constructor(){super();this.translator=(e,r)=>this.t(e,r);new st(this)}connectedCallback(){super.connectedCallback(),ot()}fontDeclarations(e){let r=ce(this,e);return r?(he(r),pe(r)):""}renderFontStyle(){let e=this.fontDeclarations();return e?p`<style>:host{${e}}</style>`:c}t(e,r){return fe(this.effectiveLang(),e,r)}effectiveLang(){return _t(this)}};var be=v`: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 xr=v`:host{--roxy-label-col:minmax(0, 25%);--_mask:var(--roxy-surface);font-family:var(--roxy-font-sans);color:var(--roxy-fg);font-size:var(--roxy-text-base);line-height:var(--roxy-leading-normal);animation:roxy-fade-in var(--roxy-motion-duration) var(--roxy-motion-easing) both;background:0 0;display:block;container-type:inline-size}:host([bare]){--_mask:var(--roxy-bg)}:host([hidden]){display:none}:host([bare]){--roxy-surface:transparent;--roxy-shadow-sm:none;--roxy-shadow-md:none}*,:before,:after{box-sizing:border-box}h1,h2,h3,h4{font-family:var(--roxy-font-display)}@keyframes roxy-fade-in{0%{transform:translateY(calc(var(--roxy-space-unit) / 2))}to{transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border) 0%, color-mix(in srgb, var(--roxy-border) 60%, transparent) 50%, var(--roxy-border) 100%);border-radius:var(--roxy-radius-md);background-size:200% 100%;animation:1.4s ease-in-out infinite roxy-shimmer}@keyframes roxy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.roxy-skeleton{animation:none}}.roxy-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.roxy-empty{padding:var(--roxy-space-lg);color:var(--roxy-muted);text-align:center;font-size:var(--roxy-text-sm)}.roxy-error{gap:var(--roxy-space-sm);padding:var(--roxy-space-lg);background:var(--roxy-surface);border:1px solid var(--roxy-danger);border-radius:var(--roxy-radius-md);color:var(--roxy-danger-fg);font-size:var(--roxy-text-sm);justify-items:start;display:grid}:host(:focus-within) .roxy-card{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}.roxy-attribution{margin-top:var(--roxy-space-sm);font-size:var(--roxy-text-xs);color:var(--roxy-muted);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink);text-decoration:underline}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs) var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);color:var(--roxy-fg);font-family:inherit;font-size:var(--roxy-text-sm);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-edit:disabled{cursor:progress;color:var(--roxy-muted)}roxy-endpoint-form+*{margin-top:var(--roxy-space-md)}.roxy-more{justify-items:center;gap:var(--roxy-space-sm);margin-top:var(--roxy-space-md);display:grid}.roxy-more .roxy-edit{min-height:var(--roxy-touch)}:host{font-variant-emoji:text}`,at=[xr,be];var br="__cols",vr="__rows";function Sr(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function dt(n){if(Array.isArray(n)){let s=false,i=n.map(d=>{let a=dt(d);return a!==d&&(s=true),a});return s?i:n}if(!Sr(n))return n;let t=n[br],e=n[vr];if(Array.isArray(t)&&Array.isArray(e)&&Object.keys(n).length===2)return e.map(s=>{let i={};return t.forEach((d,a)=>{i[d]=dt(s[a])}),i});let r=false,o={};for(let[s,i]of Object.entries(n)){let d=dt(i);d!==i&&(r=true),o[s]=d}return r?o:n}function ve(n){return dt(n)}function Se(n,t){return n.find(e=>e.attrs&&Object.entries(e.attrs).every(([r,o])=>t[r]===o))??n[0]}var $r="pk_live_YOUR_KEY",$e={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 Ee(n){if(n)return n===$r?$e.sample:n.startsWith("pk_")?void 0:$e.secret}function we(n,t,e={}){e.warn&&console.warn(t.message),n.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:t.reason,message:t.message},bubbles:true,composed:true}))}var Te="https://roxyapi.com/api/v2";async function Er(n){try{let t=await n.json();if(t?.error){let e=t.code==="validation_error"&&Array.isArray(t.issues)?t.issues.filter(r=>typeof r.path=="string"&&typeof r.message=="string").map(r=>({path:r.path,message:r.message})):null;return{message:t.error,issues:e?.length?e:null,worded:true,...t.code?{code:t.code}:{}}}}catch{}return{message:`Request failed (${n.status})`,issues:null,worded:false}}var Ae={fromAttribute:n=>{if(n!=null){try{let t=JSON.parse(n);if(t&&typeof t=="object"&&!Array.isArray(t))return t}catch{}console.warn("[roxy-ui] submit-context must be a JSON object; sending the request without it.")}}},G=class extends Error{constructor(e,r=null,o=true,s,i){super(e);this.issues=r;this.worded=o;this.status=s;this.code=i}};function ke(n){return n.submitUrl?void 0:Ee(n.publishableKey)}async function Rt(n,t,e){let r=ke(n);if(r)throw new G(r.message);let o=n.submitUrl?await fetch(n.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:wr(t,n.submitContext),signal:e}):await Tr(n,t,e);if(!o.ok){let s=await Er(o);throw new G(s.message,s.issues,s.worded,o.status,s.code)}return await o.json()}function wr(n,t){return JSON.stringify(t?{...n,context:t}:n)}function Tr(n,t,e){let r=new URL(`${n.baseUrl??Te}${t.path}`,document.baseURI);for(let[s,i]of Object.entries(t.query??{}))i!=null&&r.searchParams.set(s,String(i));let o={Accept:"application/json"};return n.publishableKey&&(o["X-API-Key"]=n.publishableKey),t.body!=null&&(o["Content-Type"]="application/json"),fetch(r,{method:t.method??"GET",headers:o,body:t.body!=null?JSON.stringify(t.body):void 0,signal:e})}var lt=class{constructor(t){this.baseUrl=Te;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=ke(this);if(e){this.host.error=e.message,we(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 o=await Rt(this,t,r.signal);if(r.signal.aborted)return;this.host.data=o}catch(o){if(r.signal.aborted||o?.name==="AbortError")return;o instanceof G&&(this.host.issues=o.issues,this.failure={status:o.status,code:o.code}),this.worded=o instanceof G&&o.worded,this.host.error=o instanceof Error?o.message:String(o)}finally{this.abort===r&&(this.abort=void 0),r.signal.aborted||(this.host.loading=false)}}};function _e(n,t,e,r=[]){let o={...e},s=`/${n.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(g,y)=>{let m=o[y];return delete o[y],encodeURIComponent(String(m??""))}),i=new Set(r),d={},a={};for(let[g,y]of Object.entries(o))y===void 0||y===""||(t==="GET"||i.has(g)?d[g]=y:a[g]=y);return{path:s,method:t,query:d,body:t==="POST"?a:void 0}}function ct(){return p`<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 Ce=v`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 Re=v`.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 Pe(n,t,e){let r=n.filter(o=>!!o.body);return r.length===0?c:p`<section class="block" part="section readings"><h3>${e}</h3>${r.map((o,s)=>p`<details class="interp-card" part="reading" name="${t}" ?open="${s===0}"><summary><span class="interp-lead">${o.label}</span> ${ct()} ${o.aside?p`<span class="interp-aside"><small>${o.aside}</small></span>`:c}</summary><div class="interp-body"><p>${o.body}</p>${o.extra??c}</div></details>`)}</section>`}var Ar="roxy-data";function kr(n){return n.nodeName==="SCRIPT"&&n.getAttribute("type")==="application/json"}var pt=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(kr(t)&&t.classList.contains(Ar))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};var h=class extends it{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,o=this.listRows();if(!(!e||!r||!o)){this.moreLoading=true,this.moreError=null;try{let s=await Rt(this.fetcher,{...e,query:{...e.query,offset:o.length}});if(this.lastRequest!==e)return;let i=s[r];this.data={...this.data,...s,[r]:[...o,...Array.isArray(i)?i:[]]}}catch(s){this.lastRequest===e&&(this.moreError=s instanceof Error?s.message:String(s))}finally{this.moreLoading=false}}};this.onEdit=()=>{this.editing=true};this.onFormSubmit=e=>{let r=this.selfFetch();if(!r)return;let o=e.detail;this.lastValues=o.values,this.sticky=!!o.sticky,this.selfFetched=true,this.editing=false,this.remember&&this.writeRemembered(o.values),this.fetchFresh(_e(r.endpoint,r.method,{...o.values,...this.ownRequest()},o.queryKeys??[]))};new pt(this),this.fetcher=new lt(this)}static{this.styles=[at]}static{this.endpoints=[]}willUpdate(e){if(e.has("data")&&this.data!=null){let r=ve(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:Se(this.constructor.endpoints,this);return e&&{endpoint:e.endpoint,method:this.method??e.method}}render(){return p`${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")?p`<roxy-data .data="${e}" lang="${F(this.effectiveLang())}"></roxy-data>`:this.renderEmpty()}}hostStyle(){let e=this.hideSections.split(",").map(s=>s.trim().toLowerCase()).filter(s=>/^[a-z][a-z0-9-]*$/.test(s)),r=[le(this),this.fontDeclarations(this.font)].filter(Boolean).join(";");if(e.length===0&&!r)return c;let o=(r?`:host{${r}}`:"")+e.map(s=>`[part~="${s}"],roxy-endpoint-form::part(${s}){display:none!important}`).join("");return p`<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()?p`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(e,r,o){return this.hideReadings?c:Pe(e,r,this.t(o??"Reading"))}renderResult(e){let r=p`<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()?p`${r}${this.renderAttribution()}`:r}renderWithForm(e){return p`${this.renderForm()}${e}`}stickyBody(){return this.loading?this.renderLoading():this.error!=null?this.issues?c:this.renderErrorBanner(this.error):this.data==null?c:this.showAttribution()?p`${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"?c:e.length>=r?c:p`<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?p`<p class="roxy-error" role="alert">${this.t(this.moreError)}</p>`:c}</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 o=this.effectiveLang();o&&r.setAttribute("lang",o),this.openedRow=r,this.openedRowId=e,r.load({path:`/${this.rowDetail.path.replace("{id}",encodeURIComponent(e))}`,method:"GET",query:{lang:ee(this)}}).then(()=>r.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return p`<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(c):this.renderEmpty()}renderForm(){let e=this.selfFetch();return p`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${e?.endpoint??""}" method="${e?.method??"POST"}" spec-url="${F(this.specUrl)}" publishable-key="${F(this.publishableKey)}" location-url="${F(this.locationUrl)}" submit-label="${F(this.submitLabel)}" lang="${F(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 p`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return p`<div class="roxy-skeleton" style="height:5lh" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(e){let r=!!this.selfFetch();if(r&&this.issues)return this.renderForm();let o=this.renderErrorBanner(e);return r?p`${o}${this.renderForm()}`:o}renderErrorBanner(e){return p`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(e)}</div>`}};u([f({attribute:false})],h.prototype,"data",2),u([f({type:String,attribute:"data-endpoint"})],h.prototype,"endpoint",2),u([f({type:String})],h.prototype,"method",2),u([f({type:String,attribute:"publishable-key"})],h.prototype,"publishableKey",2),u([f({type:String,attribute:"base-url"})],h.prototype,"baseUrl",2),u([f({type:String,attribute:"spec-url"})],h.prototype,"specUrl",2),u([f({type:String,attribute:"submit-url"})],h.prototype,"submitUrl",2),u([f({attribute:"submit-context",converter:Ae})],h.prototype,"submitContext",2),u([f({type:String,attribute:"location-url"})],h.prototype,"locationUrl",2),u([f({type:Boolean})],h.prototype,"remember",2),u([f({type:Boolean,attribute:"hide-readings",reflect:true})],h.prototype,"hideReadings",2),u([f({type:String,attribute:"hide-sections",reflect:true})],h.prototype,"hideSections",2),u([f({type:String,attribute:"brand-color"})],h.prototype,"brandColor",2),u([f({type:String,attribute:"brand-accent"})],h.prototype,"brandAccent",2),u([f({type:String})],h.prototype,"font",2),u([f({type:String,attribute:"submit-label"})],h.prototype,"submitLabel",2),u([f({type:String,attribute:"error-message"})],h.prototype,"errorMessage",2),u([f({type:String})],h.prototype,"attribution",2),u([S()],h.prototype,"loading",2),u([S()],h.prototype,"error",2),u([S()],h.prototype,"issues",2),u([S()],h.prototype,"selfFetched",2),u([S()],h.prototype,"editing",2),u([S()],h.prototype,"sticky",2),u([S()],h.prototype,"openedRow",2),u([S()],h.prototype,"openedRowId",2),u([S()],h.prototype,"moreLoading",2),u([S()],h.prototype,"moreError",2);var _r="Localized";function $(n,t,e){let r=n,o=r?.[`${t}${_r}`];if(typeof o=="string"&&o!=="")return o;if(e!==void 0)return e;let s=r?.[t];return typeof s=="string"?s:""}var Le=14,Cr=86,Me=0,Rr=102,_=6,Ne=(Cr-Le)*_,Pr=(Rr-Me)*_;function L(n,t){return{x:(n-Le)*_,y:(t-Me)*_}}var l=50,yt=n=>2*l-n,Go=1.02*_,jo=1.15*_,x=2.87,b=4.4,Oe=5.65,Pt={head:{64:[l-x,11.2],61:[l,11.2],63:[l+x,11.2]},ajna:{47:[l-x,18],24:[l,18],4:[l+x,18],17:[l-x,20.6],11:[l+x,20.6],43:[l,25.3]},throat:{62:[l-x,32.4],23:[l,32.4],56:[l+x,32.4],16:[l-b,34.7],35:[l+b,34.7],20:[l-b,37.3],12:[l+b,37.3],45:[l+b,39.6],31:[l-x,41.9],8:[l,41.9],33:[l+x,41.9]},g:{1:[l,47.7],7:[l-x,50.3],13:[l+x,50.3],10:[l-Oe,53.4],25:[l+Oe,53.4],15:[l-x,56.8],46:[l+x,56.8],2:[l,59.2]},heart:{21:[63.9,59.5],51:[62.1,61.3],26:[60.1,63.3],40:[66.6,63.3]},spleen:{48:[20,70.8],57:[22.5,72.4],44:[25,73.8],50:[27.7,75.3],32:[25,76.6],28:[22.5,78],18:[20,79.5]},sacral:{5:[l-x,72.7],14:[l,72.7],29:[l+x,72.7],34:[l-b,75.4],27:[l-b,79],59:[l+b,79],42:[l-x,81.7],3:[l,81.7],9:[l+x,81.7]},"solar-plexus":{},root:{53:[l-x,90.2],60:[l,90.2],52:[l+x,90.2],54:[l-b,92.6],19:[l+b,92.6],38:[l-b,95.3],39:[l+b,95.3],58:[l-b,98.1],41:[l+b,98.1]}},Or={48:36,57:22,44:37,50:6,32:49,28:55,18:30};function Fr(){let n={},t={};for(let[e,[r,o]]of Object.entries(Pt.spleen))Pt["solar-plexus"][Or[Number(e)]]=[yt(r),o];for(let[e,r]of Object.entries(Pt))for(let[o,[s,i]]of Object.entries(r))n[Number(o)]=L(s,i),t[Number(o)]=e;return{points:n,centerOf:t}}var{points:Bo,centerOf:Ho}=Fr(),Ko=Ne/2;function U(n){return n.map(([t,e])=>L(t,e))}function Ot(n,t,e){return U([[l-n,t],[l+n,t],[l+n,e],[l-n,e]])}var Ft=5.9,Fe=[[18.3,68.3],[18.3,82],[30.3,75.15]],Ut=[20,84.4],Ue=12*_,Ur=[63.2,67.9],Lr=13.1*_,zo=[{id:"head",label:"Head",color:"gold",points:U([[43.55,12.5],[56.45,12.5],[50,1.7]])},{id:"ajna",label:"Ajna",color:"green",points:U([[43.55,16.5],[56.45,16.5],[50,27.7]])},{id:"throat",label:"Throat",color:"brown",points:Ot(Ft,31,43.3)},{id:"g",label:"G",color:"gold",points:U([[50,45.8],[57.7,53.6],[50,61.4],[42.3,53.6]])},{id:"heart",label:"Heart",color:"red",points:U([[56.65,65.23],[64.2,56.74],[69.75,65.23]]),caption:{at:L(...Ur),room:Lr}},{id:"spleen",label:"Spleen",color:"brown",points:U(Fe),caption:{at:L(...Ut),room:Ue}},{id:"sacral",label:"Sacral",color:"red",points:Ot(Ft,71.3,83.1)},{id:"solar-plexus",label:"Solar Plexus",color:"brown",points:U(Fe.map(([n,t])=>[yt(n),t])),caption:{at:L(yt(Ut[0]),Ut[1]),room:Ue}},{id:"root",label:"Root",color:"brown",points:Ot(Ft,88.5,99.8)}];var Do=Mr();function Mr(){let n=yt,t=[[50,3],[58,3],[60,10],[57,17.5],[56.5,20.5],[53.5,23.5],[51.5,27],[54,28],[64,30],[79,35],[83,42],[84,58],[83,74],[83,86],[76,93],[68,97],[64,99],[62,100.5],[60,100.5]],e=[`M ${ht(t[0])}`];for(let r=1;r+2<t.length;r+=3)e.push(`C ${ht(t[r])} ${ht(t[r+1])} ${ht(t[r+2])}`);e.push(`L ${ut(t[t.length-1],n)}`);for(let r=t.length-3;r>=1;r-=3)e.push(`C ${ut(t[r+1],n)} ${ut(t[r],n)} ${ut(t[r-1],n)}`);return e.push("Z"),e.join(" ")}function ht([n,t]){let e=L(n,t);return`${e.x} ${e.y}`}function ut([n,t],e){let r=L(e(n),t);return`${r.x} ${r.y}`}var qo=`0 0 ${Ne} ${Pr}`;function Ie(n,t){return n==="design"?t("Design"):n==="personality"?t("Personality"):n??""}var Ge=n=>t=>{customElements.get(n)||customElements.define(n,t)};var M=class extends h{renderData(t){let e=[...t.arrows??[]].sort((r,o)=>je(r.position)-je(o.position));return p`<div class="wrap" part="card" aria-label="${this.t("Human Design variables")}"><h2 part="header">${this.t("Variables")}</h2><div class="grid" part="details arrows">${e.map(r=>this.renderArrow(r))}</div>${t.confident===false?p`<p class="note" role="note">${typeof t.confidenceMarginDeg=="number"?this.t("Low confidence: a birth time near a color or tone boundary (within {{margin}}\xB0). Verify the exact birth time.",{margin:t.confidenceMarginDeg}):this.t("Low confidence: a birth time near a color or tone boundary. Verify the exact birth time.")}</p>`:c} ${this.renderReading(e,t.baseDescription)}</div>`}renderArrow(t){let e=t.direction==="left"?"\u2190":"\u2192",r=$(t,"baseName");return p`<div class="arrow"><div class="arrow-head"><span class="glyph ${t.activation?.side??""}" aria-hidden="true">${e}</span> <span class="name">${$(t,"name")}</span></div>${t.layer?p`<span class="layer">${$(t,"layer")}</span>`:c} <span class="labels">${[$(t,"directionLabel"),$(t,"colorLabel")].filter(Boolean).join(" \xB7 ")} </span>${typeof t.color=="number"?p`<span class="ctb">${this.t("Color {{color}} \xB7 Tone {{tone}} \xB7 Base {{base}}",{color:t.color,tone:t.tone??"",base:t.base??""})}${r?`, ${r}`:""}</span>`:c} ${t.activation?.planet?p`<span class="ctb">${[$(t.activation,"planet"),Ie(t.activation.side,this.translator)].filter(Boolean).join(" \xB7 ")}</span>`:c} ${t.confident===false?p`<span class="note" role="note">${this.t("Knife-edge: could flip with a more precise birth time.")}</span>`:c}</div>`}renderReading(t,e){let r=t.filter(i=>i.description||i.colorMeaning);if(r.length===0||this.hideReadings)return c;let o=new Map;for(let i of r){let d=i.layer??"",a=o.get(d);a?a.push(i):o.set(d,[i])}let s=0;return p`<section class="block" part="section readings"><h3>${this.t("Reading")}</h3>${[...o].map(([i,d])=>p`<div class="group">${i?p`<p class="group-head">${$(d[0],"layer")}</p>`:c} ${d[0]?.layerDescription?p`<p class="group-note">${d[0].layerDescription}</p>`:c} ${d.map(a=>this.renderArrowReading(a,s++===0))}</div>`)} ${e?p`<p class="footnote">${this.t("Base")}. ${e}</p>`:c}</section>`}renderArrowReading(t,e){let r=t.cognition,o=r?$(r,"label"):"",s=[{label:this.t("Color"),body:t.colorMeaning},{label:this.t("Tone"),body:t.toneMeaning},{label:this.t("Direction"),body:t.directionMeaning},{label:o?`${this.t("Cognition")} \xB7 ${o}`:this.t("Cognition"),body:r?.description}].filter(i=>!!i.body);return p`<details class="interp-card" part="reading" name="hd-variable" ?open="${e}"><summary><span class="interp-lead">${$(t,"name")}</span> ${ct()} ${t.position?p`<span class="interp-aside"><small>${$(t,"position")}</small></span>`:c}</summary><div class="interp-body">${t.description?p`<p>${t.description}</p>`:c} ${s.length>0?p`<dl class="facets">${s.map(i=>p`<dt>${i.label}</dt><dd>${i.body}</dd>`)}</dl>`:c}</div></details>`}};M.endpoints=Qt,M.styles=[at,Ce,Re,v`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}.grid{gap:0 var(--roxy-space-lg);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.arrow{align-content:start;gap:var(--roxy-space-xs);padding-block:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);display:grid}.arrow-head{align-items:center;gap:var(--roxy-space-sm);display:flex}.glyph{font-size:var(--roxy-text-xl);color:var(--roxy-accent-ink);line-height:1}.glyph.design{color:var(--roxy-danger-fg)}.glyph.personality{color:var(--roxy-fg)}.name{font-weight:var(--roxy-weight-bold)}.layer,.ctb{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.ctb{font-variant-numeric:tabular-nums}.labels{font-size:var(--roxy-text-sm)}.note{color:var(--roxy-warning-fg);font-size:var(--roxy-text-xs)}@container (width<=28rem){.grid{grid-template-columns:minmax(0,1fr)}}.group+.group{margin-block-start:var(--roxy-space-md)}.group-head{font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold)}.group-note,.footnote{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.group-note{margin-block-end:var(--roxy-space-sm)}.facets{gap:var(--roxy-space-xs);margin:0;display:grid}.facets dd{margin:0}`],M=u([Ge("roxy-hd-variables")],M);function je(n){switch(n){case"Top left":return 0;case"Top right":return 1;case"Bottom left":return 2;case"Bottom right":return 3;default:return 99}}return De(Nr)})();/*! Bundled license information:
4
4
 
5
5
  @lit/reactive-element/css-tag.js:
6
6
  (**