@roxyapi/ui 0.31.0 → 0.31.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var RoxyUI_hd_penta=(()=>{var Y=Object.defineProperty;var Me=Object.getOwnPropertyDescriptor;var Rt=Object.getOwnPropertyNames;var Ct=Object.prototype.hasOwnProperty;var Et=(o,e)=>{for(var t in e)Y(o,t,{get:e[t],enumerable:!0})},Tt=(o,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Rt(e))!Ct.call(o,n)&&n!==t&&Y(o,n,{get:()=>e[n],enumerable:!(r=Me(e,n))||r.enumerable});return o};var Pt=o=>Tt(Y({},"__esModule",{value:!0}),o),g=(o,e,t,r)=>{for(var n=r>1?void 0:r?Me(e,t):e,s=o.length-1,i;s>=0;s--)(i=o[s])&&(n=(r?i(e,t,n):i(n))||n);return r&&n&&Y(e,t,n),n};var cr={};Et(cr,{ROXY_UI_TOKENS_STYLE_ID:()=>X,RoxyHdPenta:()=>I,injectRoxyTokens:()=>J});var Ne=`/**
1
+ var RoxyUI_hd_penta=(()=>{var Y=Object.defineProperty;var Ue=Object.getOwnPropertyDescriptor;var Et=Object.getOwnPropertyNames;var Rt=Object.prototype.hasOwnProperty;var Ct=(o,e)=>{for(var t in e)Y(o,t,{get:e[t],enumerable:!0})},Tt=(o,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Et(e))!Rt.call(o,n)&&n!==t&&Y(o,n,{get:()=>e[n],enumerable:!(r=Ue(e,n))||r.enumerable});return o};var Pt=o=>Tt(Y({},"__esModule",{value:!0}),o),g=(o,e,t,r)=>{for(var n=r>1?void 0:r?Ue(e,t):e,s=o.length-1,i;s>=0;s--)(i=o[s])&&(n=(r?i(e,t,n):i(n))||n);return r&&n&&Y(e,t,n),n};var cr={};Ct(cr,{ROXY_UI_TOKENS_STYLE_ID:()=>X,RoxyHdPenta:()=>I,injectRoxyTokens:()=>J});var Ne=`/**
2
2
  * Roxy UI design tokens. 47 CSS custom properties that every component reads. Light + dark defaults. Host page overrides at :root or per element. No Tailwind, no class-name overrides, no JS theme switcher.
3
3
  *
4
4
  * Delivery model: this file ships as a global light-DOM stylesheet (linked, or auto-injected by the CDN bundle). Custom properties inherit through the shadow boundary, so tokens set on a light-DOM ancestor reach every component shadow. The explicit theme blocks therefore target light-DOM selectors (:root, .dark, [data-theme="dark"], a wrapper element), NOT :host (a :host rule in a global sheet matches nothing). The :host([data-theme]) selectors are kept only for the case where this CSS is ever adopted directly into a shadow root; they are inert in global delivery.
@@ -278,9 +278,9 @@ var RoxyUI_hd_penta=(()=>{var Y=Object.defineProperty;var Me=Object.getOwnProper
278
278
  --roxy-motion-duration: 0ms;
279
279
  }
280
280
  }
281
- `;var X="roxy-ui-tokens";function J(){if(typeof document>"u")return null;let o=document.getElementById(X);if(o)return o;let e=document.createElement("style");return e.id=X,e.textContent=Ne,document.head.prepend(e),e}var Z=globalThis,Q=Z.ShadowRoot&&(Z.ShadyCSS===void 0||Z.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,fe=Symbol(),Ie=new WeakMap,H=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==fe)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(Q&&e===void 0){let r=t!==void 0&&t.length===1;r&&(e=Ie.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Ie.set(t,e))}return e}toString(){return this.cssText}},He=o=>new H(typeof o=="string"?o:o+"",void 0,fe),$=(o,...e)=>{let t=o.length===1?o[0]:e.reduce((r,n,s)=>r+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+o[s+1],o[0]);return new H(t,o,fe)},Be=(o,e)=>{if(Q)o.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let r=document.createElement("style"),n=Z.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=t.cssText,o.appendChild(r)}},ge=Q?o=>o:o=>o instanceof CSSStyleSheet?(e=>{let t="";for(let r of e.cssRules)t+=r.cssText;return He(t)})(o):o;var{is:Ot,defineProperty:Lt,getOwnPropertyDescriptor:Ut,getOwnPropertyNames:Mt,getOwnPropertySymbols:Nt,getPrototypeOf:It}=Object,ee=globalThis,Ge=ee.trustedTypes,Ht=Ge?Ge.emptyScript:"",Bt=ee.reactiveElementPolyfillSupport,B=(o,e)=>o,G={toAttribute(o,e){switch(e){case Boolean:o=o?Ht:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,e){let t=o;switch(e){case Boolean:t=o!==null;break;case Number:t=o===null?null:Number(o);break;case Object:case Array:try{t=JSON.parse(o)}catch{t=null}}return t}},te=(o,e)=>!Ot(o,e),De={attribute:!0,type:String,converter:G,reflect:!1,useDefault:!1,hasChanged:te};Symbol.metadata??=Symbol("metadata"),ee.litPropertyMetadata??=new WeakMap;var _=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=De){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let r=Symbol(),n=this.getPropertyDescriptor(e,r,t);n!==void 0&&Lt(this.prototype,e,n)}}static getPropertyDescriptor(e,t,r){let{get:n,set:s}=Ut(this.prototype,e)??{get(){return this[t]},set(i){this[t]=i}};return{get:n,set(i){let l=n?.call(this);s?.call(this,i),this.requestUpdate(e,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??De}static _$Ei(){if(this.hasOwnProperty(B("elementProperties")))return;let e=It(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(B("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(B("properties"))){let t=this.properties,r=[...Mt(t),...Nt(t)];for(let n of r)this.createProperty(n,t[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[r,n]of t)this.elementProperties.set(r,n)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let n=this._$Eu(t,r);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let r=new Set(e.flat(1/0).reverse());for(let n of r)t.unshift(ge(n))}else e!==void 0&&t.push(ge(e));return t}static _$Eu(e,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Be(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){let r=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,r);if(n!==void 0&&r.reflect===!0){let s=(r.converter?.toAttribute!==void 0?r.converter:G).toAttribute(t,r.type);this._$Em=e,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(e,t){let r=this.constructor,n=r._$Eh.get(e);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:G;this._$Em=n;let l=i.fromAttribute(t,s.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(e,t,r,n=!1,s){if(e!==void 0){let i=this.constructor;if(n===!1&&(s=this[e]),r??=i.getPropertyOptions(e),!((r.hasChanged??te)(s,t)||r.useDefault&&r.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(i._$Eu(e,r))))return;this.C(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:n,wrapped:s},i){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,i??t??this[e]),s!==!0||i!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[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!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,s,l)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(t)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};_.elementStyles=[],_.shadowRootOptions={mode:"open"},_[B("elementProperties")]=new Map,_[B("finalized")]=new Map,Bt?.({ReactiveElement:_}),(ee.reactiveElementVersions??=[]).push("2.1.2");var _e=globalThis,je=o=>o,re=_e.trustedTypes,ze=re?re.createPolicy("lit-html",{createHTML:o=>o}):void 0,Ye="$lit$",S=`lit$${Math.random().toFixed(9).slice(2)}$`,Xe="?"+S,Gt=`<${Xe}>`,E=document,j=()=>E.createComment(""),z=o=>o===null||typeof o!="object"&&typeof o!="function",Se=Array.isArray,Dt=o=>Se(o)||typeof o?.[Symbol.iterator]=="function",ye=`[
282
- \f\r]`,D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Fe=/-->/g,Ke=/>/g,R=RegExp(`>|${ye}(?:([^\\s"'>=/]+)(${ye}*=${ye}*(?:[^
283
- \f\r"'\`<>=]|("|')|))|$)`,"g"),qe=/'/g,Ve=/"/g,Je=/^(?:script|style|textarea|title)$/i,Ae=o=>(e,...t)=>({_$litType$:o,strings:e,values:t}),p=Ae(1),P=Ae(2),br=Ae(3),T=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),We=new WeakMap,C=E.createTreeWalker(E,129);function Ze(o,e){if(!Se(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return ze!==void 0?ze.createHTML(e):e}var jt=(o,e)=>{let t=o.length-1,r=[],n,s=e===2?"<svg>":e===3?"<math>":"",i=D;for(let l=0;l<t;l++){let d=o[l],h,m,u=-1,v=0;for(;v<d.length&&(i.lastIndex=v,m=i.exec(d),m!==null);)v=i.lastIndex,i===D?m[1]==="!--"?i=Fe:m[1]!==void 0?i=Ke:m[2]!==void 0?(Je.test(m[2])&&(n=RegExp("</"+m[2],"g")),i=R):m[3]!==void 0&&(i=R):i===R?m[0]===">"?(i=n??D,u=-1):m[1]===void 0?u=-2:(u=i.lastIndex-m[2].length,h=m[1],i=m[3]===void 0?R:m[3]==='"'?Ve:qe):i===Ve||i===qe?i=R:i===Fe||i===Ke?i=D:(i=R,n=void 0);let w=i===R&&o[l+1].startsWith("/>")?" ":"";s+=i===D?d+Gt:u>=0?(r.push(h),d.slice(0,u)+Ye+d.slice(u)+S+w):d+S+(u===-2?l:w)}return[Ze(o,s+(o[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},F=class o{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let s=0,i=0,l=e.length-1,d=this.parts,[h,m]=jt(e,t);if(this.el=o.createElement(h,r),C.currentNode=this.el.content,t===2||t===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=C.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let u of n.getAttributeNames())if(u.endsWith(Ye)){let v=m[i++],w=n.getAttribute(u).split(S),k=/([.?@])?(.*)/.exec(v);d.push({type:1,index:s,name:k[2],strings:w,ctor:k[1]==="."?be:k[1]==="?"?ve:k[1]==="@"?$e:U}),n.removeAttribute(u)}else u.startsWith(S)&&(d.push({type:6,index:s}),n.removeAttribute(u));if(Je.test(n.tagName)){let u=n.textContent.split(S),v=u.length-1;if(v>0){n.textContent=re?re.emptyScript:"";for(let w=0;w<v;w++)n.append(u[w],j()),C.nextNode(),d.push({type:2,index:++s});n.append(u[v],j())}}}else if(n.nodeType===8)if(n.data===Xe)d.push({type:2,index:s});else{let u=-1;for(;(u=n.data.indexOf(S,u+1))!==-1;)d.push({type:7,index:s}),u+=S.length-1}s++}}static createElement(e,t){let r=E.createElement("template");return r.innerHTML=e,r}};function L(o,e,t=o,r){if(e===T)return e;let n=r!==void 0?t._$Co?.[r]:t._$Cl,s=z(e)?void 0:e._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(o),n._$AT(o,t,r)),r!==void 0?(t._$Co??=[])[r]=n:t._$Cl=n),n!==void 0&&(e=L(o,n._$AS(o,e.values),n,r)),e}var xe=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:r}=this._$AD,n=(e?.creationScope??E).importNode(t,!0);C.currentNode=n;let s=C.nextNode(),i=0,l=0,d=r[0];for(;d!==void 0;){if(i===d.index){let h;d.type===2?h=new K(s,s.nextSibling,this,e):d.type===1?h=new d.ctor(s,d.name,d.strings,this,e):d.type===6&&(h=new we(s,this,e)),this._$AV.push(h),d=r[++l]}i!==d?.index&&(s=C.nextNode(),i++)}return C.currentNode=E,n}p(e){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}},K=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,n){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=L(this,e,t),z(e)?e===c||e==null||e===""?(this._$AH!==c&&this._$AR(),this._$AH=c):e!==this._$AH&&e!==T&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Dt(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==c&&z(this._$AH)?this._$AA.nextSibling.data=e:this.T(E.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:r}=e,n=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=F.createElement(Ze(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(t);else{let s=new xe(n,this),i=s.u(this.options);s.p(t),this.T(i),this._$AH=s}}_$AC(e){let t=We.get(e.strings);return t===void 0&&We.set(e.strings,t=new F(e)),t}k(e){Se(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,n=0;for(let s of e)n===t.length?t.push(r=new o(this.O(j()),this.O(j()),this,this.options)):r=t[n],r._$AI(s),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let r=je(e).nextSibling;je(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},U=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,n,s){this.type=1,this._$AH=c,this._$AN=void 0,this.element=e,this.name=t,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=c}_$AI(e,t=this,r,n){let s=this.strings,i=!1;if(s===void 0)e=L(this,e,t,0),i=!z(e)||e!==this._$AH&&e!==T,i&&(this._$AH=e);else{let l=e,d,h;for(e=s[0],d=0;d<s.length-1;d++)h=L(this,l[r+d],t,d),h===T&&(h=this._$AH[d]),i||=!z(h)||h!==this._$AH[d],h===c?e=c:e!==c&&(e+=(h??"")+s[d+1]),this._$AH[d]=h}i&&!n&&this.j(e)}j(e){e===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},be=class extends U{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===c?void 0:e}},ve=class extends U{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==c)}},$e=class extends U{constructor(e,t,r,n,s){super(e,t,r,n,s),this.type=5}_$AI(e,t=this){if((e=L(this,e,t,0)??c)===T)return;let r=this._$AH,n=e===c&&r!==c||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,s=e!==c&&(r===c||n);n&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},we=class{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){L(this,e)}};var zt=_e.litHtmlPolyfillSupport;zt?.(F,K),(_e.litHtmlVersions??=[]).push("3.3.3");var Qe=(o,e,t)=>{let r=t?.renderBefore??e,n=r._$litPart$;if(n===void 0){let s=t?.renderBefore??null;r._$litPart$=n=new K(e.insertBefore(j(),s),s,void 0,t??{})}return n._$AI(o),n};var ke=globalThis,A=class extends _{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Qe(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return T}};A._$litElement$=!0,A.finalized=!0,ke.litElementHydrateSupport?.({LitElement:A});var Ft=ke.litElementPolyfillSupport;Ft?.({LitElement:A});(ke.litElementVersions??=[]).push("4.2.2");var et=o=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(o,e)}):customElements.define(o,e)};var Kt={attribute:!0,type:String,converter:G,reflect:!1,hasChanged:te},qt=(o=Kt,e,t)=>{let{kind:r,metadata:n}=t,s=globalThis.litPropertyMetadata.get(n);if(s===void 0&&globalThis.litPropertyMetadata.set(n,s=new Map),r==="setter"&&((o=Object.create(o)).wrapped=!0),s.set(t.name,o),r==="accessor"){let{name:i}=t;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(i,d,o,!0,l)},init(l){return l!==void 0&&this.C(i,void 0,o,l),l}}}if(r==="setter"){let{name:i}=t;return function(l){let d=this[i];e.call(this,l),this.requestUpdate(i,d,o,!0,l)}}throw Error("Unsupported decorator location: "+r)};function x(o){return(e,t)=>typeof t=="object"?qt(o,e,t):((r,n,s)=>{let i=n.hasOwnProperty(s);return n.constructor.createProperty(s,r),i?Object.getOwnPropertyDescriptor(n,s):void 0})(o,e,t)}function M(o){return x({...o,state:!0,attribute:!1})}var q=o=>o??c;function tt(o){if(o.lang)return o.lang;if(typeof document>"u")return;let e=o.closest?.("[lang]")?.getAttribute("lang");return e||document.documentElement.lang||void 0}function rt(o){return o.toLowerCase().replace(/[\s_-]+/g," ").trim()}var ot="__ROXY_UI_I18N__";function st(){let o=globalThis,e=o[ot];if(e)return e;let t={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return o[ot]=t,t}function nt(o,e){return e?o.replace(/\{\{(\w+)\}\}/g,(t,r)=>r in e?String(e[r]??""):t):o}function it(o,e,t){if(!o)return nt(e,t);let{catalogs:r}=st(),n=o.toLowerCase(),s=r[n]??r[n.split("-")[0]];return nt(s?.[rt(e)]??e,t)}function at(o){let{listeners:e}=st();return e.add(o),()=>{e.delete(o)}}var ne=class{constructor(e){this.host=e,e.addController(this)}hostConnected(){this.unsubscribe=at(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var se=class extends A{constructor(){super();this.translator=(t,r)=>this.t(t,r);new ne(this)}t(t,r){return it(this.effectiveLang(),t,r)}effectiveLang(){return tt(this)}};var ie=$`:host{font-family:var(--roxy-font-sans,system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-base,1rem);line-height:var(--roxy-leading-normal,1.5);animation:roxy-fade-in var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1)) both;background:0 0;display:block;container-type:inline-size}:host([bare]){--roxy-surface:transparent;--roxy-shadow-sm:none;--roxy-shadow-md:none}*,:before,:after{box-sizing:border-box}h1,h2,h3,h4{font-family:var(--roxy-font-display,var(--roxy-font-sans,system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif))}@keyframes roxy-fade-in{0%{opacity:0;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border,#e4e4e7) 0%, color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent) 50%, var(--roxy-border,#e4e4e7) 100%);border-radius:var(--roxy-radius-md,8px);background-size:200% 100%;animation:1.4s ease-in-out infinite roxy-shimmer}@keyframes roxy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.roxy-skeleton{animation:none}}.roxy-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.roxy-empty{padding:var(--roxy-space-lg,1.5rem);color:var(--roxy-muted,#71717a);text-align:center;font-size:var(--roxy-text-sm,.875rem)}.roxy-error{gap:var(--roxy-space-sm,.5rem);padding:var(--roxy-space-lg,1.5rem);background:var(--roxy-surface,#fff);border:1px solid var(--roxy-danger,#dc2626);border-radius:var(--roxy-radius-md,8px);color:var(--roxy-danger-fg,#991b1b);font-size:var(--roxy-text-sm,.875rem);justify-items:start;display:grid}.roxy-surface{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a)}:host(:focus-within) .roxy-card{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}.roxy-attribution{margin-top:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink,#b45309);text-decoration:underline}.roxy-attribution a:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm,.5rem);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs,.25rem) var(--roxy-space-md,1rem);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);color:var(--roxy-fg,#0a0a0a);font-family:inherit;font-size:var(--roxy-text-sm,.875rem);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent,#f59e0b);color:var(--roxy-accent-ink,#b45309)}.roxy-edit:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}:host{font-variant-emoji:text}`;var ae="Client-side components accept a pk_ publishable key only. Use a publishable key with an origin allowlist, or render server-side.";function lt(o){return!!o&&!o.startsWith("pk_")}function dt(o,e={}){e.warn&&console.warn(ae),o.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:"possible-secret-key",message:ae},bubbles:!0,composed:!0}))}var Vt="https://roxyapi.com/api/v2";async function Wt(o){try{let e=await o.json();if(e?.error)return e.error}catch{}return`Request failed (${o.status})`}var le=class{constructor(e){this.baseUrl=Vt;this.host=e,e.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(e){if(!this.submitUrl&&this.secretKeyRefused())return;this.abort?.abort();let t=new AbortController;this.abort=t,this.host.loading=!0,this.host.error=null;try{let r=this.submitUrl?await fetch(this.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e),signal:t.signal}):await this.callApi(e,t.signal);if(!r.ok)throw new Error(await Wt(r));let n=await r.json();if(t.signal.aborted)return;this.host.data=n}catch(r){if(r?.name==="AbortError")return;this.host.error=r instanceof Error?r.message:String(r)}finally{this.abort===t&&(this.abort=void 0),t.signal.aborted||(this.host.loading=!1)}}callApi(e,t){let r=new URL(`${this.baseUrl}${e.path}`);for(let[s,i]of Object.entries(e.query??{}))i!=null&&r.searchParams.set(s,String(i));let n={Accept:"application/json"};return this.publishableKey&&(n["X-API-Key"]=this.publishableKey),e.body!=null&&(n["Content-Type"]="application/json"),fetch(r,{method:e.method??"GET",headers:n,body:e.body!=null?JSON.stringify(e.body):void 0,signal:t})}secretKeyRefused(){return lt(this.publishableKey)?(this.host.error=ae,dt(this.host),!0):!1}};function ct(o,e,t,r=[]){let n={...t},s=`/${o.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(h,m)=>{let u=n[m];return delete n[m],encodeURIComponent(String(u??""))}),i=new Set(r),l={},d={};for(let[h,m]of Object.entries(n))m===void 0||m===""||(e==="GET"||i.has(h)?l[h]=m:d[h]=m);return{path:s,method:e,query:l,body:e==="POST"?d:void 0}}function pt(){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 Ro=$`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:14px;height:14px;color:var(--roxy-muted,#71717a);transition:transform var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,ease);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;var Yt=$`.interp-keywords{flex-wrap:wrap;gap:.25rem;display:flex}.interp-keywords .kw{border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-xs,.75rem);padding:1px 8px}`,Po=$`.block{border-top:1px solid var(--roxy-border,#e4e4e7);padding-top:var(--roxy-space-md,1rem)}.block h3{margin:0 0 var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em}.interp-card{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);margin-bottom:var(--roxy-space-xs,.25rem)}.interp-card summary{cursor:pointer;color:var(--roxy-fg,#0a0a0a);align-items:center;gap:var(--roxy-space-sm,.5rem);font-weight:500;font-size:var(--roxy-text-sm,.875rem);display:flex}.interp-card summary:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px;border-radius:var(--roxy-radius-sm,4px)}.interp-lead{flex-wrap:wrap;flex:auto;order:1;align-items:baseline;gap:.4rem;min-width:0;display:inline-flex}.interp-aside{flex-shrink:0;order:2;align-items:center;gap:.5rem;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted,#71717a);white-space:nowrap;font-weight:400}@container (width<=26rem){.interp-card summary{flex-wrap:wrap}.roxy-chevron{order:2}.interp-aside{flex-basis:100%;order:3;justify-content:flex-end}}.interp-body{margin-top:var(--roxy-space-sm,.5rem);gap:var(--roxy-space-sm,.5rem);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);overflow-wrap:anywhere;line-height:1.6;display:grid}.interp-body p{margin:0}${Yt}`;function ht(o,e,t){let r=o.filter(n=>!!n.body);return r.length===0?c:p`<section class="block" part="section readings"><h3>${t}</h3>${r.map((n,s)=>p`<details class="interp-card" part="reading" name="${e}" ?open="${s===0}"><summary><span class="interp-lead">${n.label}</span> ${pt()} ${n.aside?p`<span class="interp-aside"><small>${n.aside}</small></span>`:c}</summary><div class="interp-body"><p>${n.body}</p>${n.extra??c}</div></details>`)}</section>`}var Xt="roxy-data";function Jt(o){return o.nodeName==="SCRIPT"&&o.getAttribute("type")==="application/json"}var de=class{constructor(e){this.host=e,e.addController(this)}hostConnected(){if(this.host.data!=null)return;let e=this.read();e!==void 0&&(this.host.data=e,this.host.requestUpdate())}read(){let e=this.findInlineScript();return e?this.parse(e.textContent):void 0}findInlineScript(){for(let e of Array.from(this.host.children))if(Jt(e)&&e.classList.contains(Xt))return e;return null}parse(e){if(e?.trim())try{return JSON.parse(e)}catch{return}}};var f=class extends se{constructor(){super();this.data=null;this.endpoint="";this.method="POST";this.remember=!1;this.hideReadings=!1;this.hideSections="";this.loading=!1;this.error=null;this.selfFetched=!1;this.editing=!1;this.sticky=!1;this.onEdit=()=>{this.editing=!0};this.onFormSubmit=t=>{let r=t.detail;this.lastValues=r.values,this.sticky=!!r.sticky,this.selfFetched=!0,this.editing=!1,this.remember&&this.writeRemembered(r.values),this.fetcher.run(ct(this.endpoint,this.method,r.values,r.queryKeys??[]))};new de(this),this.fetcher=new le(this)}static{this.styles=[ie]}willUpdate(t){t.has("publishableKey")&&(this.fetcher.publishableKey=this.publishableKey),t.has("baseUrl")&&this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),t.has("submitUrl")&&(this.fetcher.submitUrl=this.submitUrl)}render(){return p`${this.hiddenSectionsStyle()}${this.renderState()}`}hiddenSectionsStyle(){let t=this.hideSections.split(",").map(n=>n.trim().toLowerCase()).filter(n=>/^[a-z][a-z0-9-]*$/.test(n));if(t.length===0)return c;let r=t.map(n=>`[part~="${n}"]{display:none!important}`).join("");return p`<style>${r}</style>`}renderState(){return this.loading?this.renderLoading():this.error!=null?this.renderError(this.error):this.data!=null?this.selfFetched?this.editing?this.renderForm():this.renderResult(this.data):this.showAttribution()?p`${this.renderData(this.data)}${this.renderAttribution()}`:this.renderData(this.data):this.renderNoData()}renderInterpretation(t,r,n){return this.hideReadings?c:ht(t,r,this.t(n??"Reading"))}renderResult(t){let r=this.sticky?p`${this.renderForm()}${this.renderData(t)}`: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.renderData(t)}`;return this.showAttribution()?p`${r}${this.renderAttribution()}`:r}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.endpoint?this.renderForm():this.renderEmpty()}renderForm(){return p`<roxy-endpoint-form part="form" data-endpoint="${this.endpoint}" method="${this.method}" spec-url="${q(this.specUrl)}" publishable-key="${q(this.publishableKey)}" submit-label="${q(this.submitLabel)}" lang="${q(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.endpoint}`}readRemembered(){try{let t=sessionStorage.getItem(this.rememberKey());return t?JSON.parse(t):void 0}catch{return}}writeRemembered(t){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(t))}catch{}}renderEmpty(){return p`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return p`<div class="roxy-skeleton" style="height:8rem" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(t){let r=p`<div class="roxy-error" role="alert" part="error">${this.t(t)}</div>`;return this.endpoint?p`${r}${this.renderForm()}`:r}};g([x({attribute:!1})],f.prototype,"data",2),g([x({type:String,attribute:"data-endpoint"})],f.prototype,"endpoint",2),g([x({type:String})],f.prototype,"method",2),g([x({type:String,attribute:"publishable-key"})],f.prototype,"publishableKey",2),g([x({type:String,attribute:"base-url"})],f.prototype,"baseUrl",2),g([x({type:String,attribute:"spec-url"})],f.prototype,"specUrl",2),g([x({type:String,attribute:"submit-url"})],f.prototype,"submitUrl",2),g([x({type:Boolean})],f.prototype,"remember",2),g([x({type:Boolean,attribute:"hide-readings",reflect:!0})],f.prototype,"hideReadings",2),g([x({type:String,attribute:"hide-sections",reflect:!0})],f.prototype,"hideSections",2),g([x({type:String,attribute:"submit-label"})],f.prototype,"submitLabel",2),g([x({type:String})],f.prototype,"attribution",2),g([M()],f.prototype,"loading",2),g([M()],f.prototype,"error",2),g([M()],f.prototype,"selfFetched",2),g([M()],f.prototype,"editing",2),g([M()],f.prototype,"sticky",2);var ut=$`.facts{gap:var(--roxy-space-sm,.5rem);grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));display:grid}.fact{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);background:var(--roxy-surface,#fff)}.fact span{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.06em;display:block}.fact strong{font-size:var(--roxy-text-base,1rem);color:var(--roxy-fg,#0a0a0a)}.lead{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);margin:0;line-height:1.6}.themes{gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.pill{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);padding:2px 10px}.pill--good{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#166534)}.pill--shadow{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 16%, transparent);color:var(--roxy-danger-fg,#991b1b)}.keynotes{gap:var(--roxy-space-xs,.25rem);margin:0;display:grid}.keynotes dt{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.05em}.keynotes dd{margin:0}`;function mt(o){let e=o.filter(t=>!!t.value);return e.length===0?c:p`<div class="facts" part="facts">${e.map(t=>p`<div class="fact" part="fact"><span>${t.label}</span> <strong>${t.value}</strong></div>`)}</div>`}var yt=14,Zt=86,xt=0,Qt=102,N=6,bt=(Zt-yt)*N,er=(Qt-xt)*N;function he(o,e){return{x:(o-yt)*N,y:(e-xt)*N}}var a=50,Te=o=>2*a-o,Vo=1.02*N,Wo=1.35*N,y=2.87,b=4.4,ft=5.65,Re={head:{64:[a-y,11.2],61:[a,11.2],63:[a+y,11.2]},ajna:{47:[a-y,18],24:[a,18],4:[a+y,18],17:[a-y,20.6],11:[a+y,20.6],43:[a,25.3]},throat:{62:[a-y,32.4],23:[a,32.4],56:[a+y,32.4],16:[a-b,34.7],35:[a+b,34.7],20:[a-b,37.3],12:[a+b,37.3],45:[a+b,39.6],31:[a-y,41.9],8:[a,41.9],33:[a+y,41.9]},g:{1:[a,47.7],7:[a-y,50.3],13:[a+y,50.3],10:[a-ft,53.4],25:[a+ft,53.4],15:[a-y,56.8],46:[a+y,56.8],2:[a,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:[a-y,72.7],14:[a,72.7],29:[a+y,72.7],34:[a-b,75.4],27:[a-b,79],59:[a+b,79],42:[a-y,81.7],3:[a,81.7],9:[a+y,81.7]},"solar-plexus":{},root:{53:[a-y,90.2],60:[a,90.2],52:[a+y,90.2],54:[a-b,92.6],19:[a+b,92.6],38:[a-b,95.3],39:[a+b,95.3],58:[a-b,98.1],41:[a+b,98.1]}},tr={48:36,57:22,44:37,50:6,32:49,28:55,18:30};function rr(){let o={},e={};for(let[t,[r,n]]of Object.entries(Re.spleen))Re["solar-plexus"][tr[Number(t)]]=[Te(r),n];for(let[t,r]of Object.entries(Re))for(let[n,[s,i]]of Object.entries(r))o[Number(n)]=he(s,i),e[Number(n)]=t;return{points:o,centerOf:e}}var{points:Yo,centerOf:V}=rr(),Xo=bt/2;function O(o){return o.map(([e,t])=>he(e,t))}function Ce(o,e,t){return O([[a-o,e],[a+o,e],[a+o,t],[a-o,t]])}var Ee=5.9,gt=[[18.3,68.3],[18.3,82],[30.3,75.15]],Jo=[{id:"head",label:"Head",color:"gold",points:O([[43.55,12.5],[56.45,12.5],[50,1.7]])},{id:"ajna",label:"Ajna",color:"green",points:O([[43.55,16.5],[56.45,16.5],[50,27.7]])},{id:"throat",label:"Throat",color:"brown",points:Ce(Ee,31,43.3)},{id:"g",label:"G",color:"gold",points:O([[50,45.8],[57.7,53.6],[50,61.4],[42.3,53.6]])},{id:"heart",label:"Heart",color:"red",points:O([[56.65,65.23],[64.2,56.74],[69.75,65.23]])},{id:"spleen",label:"Spleen",color:"brown",points:O(gt)},{id:"sacral",label:"Sacral",color:"red",points:Ce(Ee,71.3,83.1)},{id:"solar-plexus",label:"Solar Plexus",color:"brown",points:O(gt.map(([o,e])=>[Te(o),e]))},{id:"root",label:"Root",color:"brown",points:Ce(Ee,88.5,99.8)}];var Zo=or();function or(){let o=Te,e=[[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]],t=[`M ${ce(e[0])}`];for(let r=1;r+2<e.length;r+=3)t.push(`C ${ce(e[r])} ${ce(e[r+1])} ${ce(e[r+2])}`);t.push(`L ${pe(e[e.length-1],o)}`);for(let r=e.length-3;r>=1;r-=3)t.push(`C ${pe(e[r+1],o)} ${pe(e[r],o)} ${pe(e[r-1],o)}`);return t.push("Z"),t.join(" ")}function ce([o,e]){let t=he(o,e);return`${t.x} ${t.y}`}function pe([o,e],t){let r=he(t(o),e);return`${r.x} ${r.y}`}var Qo=`0 0 ${bt} ${er}`;var Oe=360,nr=470,Le=8,wt=Oe-Le*2,me=48,W=15,Pe=7,vt=16,ue=[{id:"throat",label:"Throat",y:0},{id:"g",label:"G",y:211},{id:"sacral",label:"Sacral",y:422}],_t=`0 0 ${Oe} ${nr}`;function sr(o,e){return Le+wt*(o*2+1)/(e*2)}function St(o){return V[o.gateA]==="throat"||V[o.gateB]==="throat"}function ir(o){return(St(o)?V[o.gateA]==="throat":V[o.gateA]==="g")?o.gateA:o.gateB}function ar(){return ue.map(o=>P`<g>
281
+ `;var X="roxy-ui-tokens";function J(){if(typeof document>"u")return null;let o=document.getElementById(X);if(o)return o;let e=document.createElement("style");return e.id=X,e.textContent=Ne,document.head.prepend(e),e}var Z=globalThis,Q=Z.ShadowRoot&&(Z.ShadyCSS===void 0||Z.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,fe=Symbol(),Ie=new WeakMap,H=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==fe)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(Q&&e===void 0){let r=t!==void 0&&t.length===1;r&&(e=Ie.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Ie.set(t,e))}return e}toString(){return this.cssText}},He=o=>new H(typeof o=="string"?o:o+"",void 0,fe),$=(o,...e)=>{let t=o.length===1?o[0]:e.reduce((r,n,s)=>r+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+o[s+1],o[0]);return new H(t,o,fe)},Be=(o,e)=>{if(Q)o.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let r=document.createElement("style"),n=Z.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=t.cssText,o.appendChild(r)}},ge=Q?o=>o:o=>o instanceof CSSStyleSheet?(e=>{let t="";for(let r of e.cssRules)t+=r.cssText;return He(t)})(o):o;var{is:Ot,defineProperty:Lt,getOwnPropertyDescriptor:Mt,getOwnPropertyNames:Ut,getOwnPropertySymbols:Nt,getPrototypeOf:It}=Object,ee=globalThis,Ge=ee.trustedTypes,Ht=Ge?Ge.emptyScript:"",Bt=ee.reactiveElementPolyfillSupport,B=(o,e)=>o,G={toAttribute(o,e){switch(e){case Boolean:o=o?Ht:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,e){let t=o;switch(e){case Boolean:t=o!==null;break;case Number:t=o===null?null:Number(o);break;case Object:case Array:try{t=JSON.parse(o)}catch{t=null}}return t}},te=(o,e)=>!Ot(o,e),De={attribute:!0,type:String,converter:G,reflect:!1,useDefault:!1,hasChanged:te};Symbol.metadata??=Symbol("metadata"),ee.litPropertyMetadata??=new WeakMap;var _=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=De){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let r=Symbol(),n=this.getPropertyDescriptor(e,r,t);n!==void 0&&Lt(this.prototype,e,n)}}static getPropertyDescriptor(e,t,r){let{get:n,set:s}=Mt(this.prototype,e)??{get(){return this[t]},set(i){this[t]=i}};return{get:n,set(i){let l=n?.call(this);s?.call(this,i),this.requestUpdate(e,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??De}static _$Ei(){if(this.hasOwnProperty(B("elementProperties")))return;let e=It(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(B("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(B("properties"))){let t=this.properties,r=[...Ut(t),...Nt(t)];for(let n of r)this.createProperty(n,t[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[r,n]of t)this.elementProperties.set(r,n)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let n=this._$Eu(t,r);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let r=new Set(e.flat(1/0).reverse());for(let n of r)t.unshift(ge(n))}else e!==void 0&&t.push(ge(e));return t}static _$Eu(e,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Be(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){let r=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,r);if(n!==void 0&&r.reflect===!0){let s=(r.converter?.toAttribute!==void 0?r.converter:G).toAttribute(t,r.type);this._$Em=e,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(e,t){let r=this.constructor,n=r._$Eh.get(e);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:G;this._$Em=n;let l=i.fromAttribute(t,s.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(e,t,r,n=!1,s){if(e!==void 0){let i=this.constructor;if(n===!1&&(s=this[e]),r??=i.getPropertyOptions(e),!((r.hasChanged??te)(s,t)||r.useDefault&&r.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(i._$Eu(e,r))))return;this.C(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:n,wrapped:s},i){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,i??t??this[e]),s!==!0||i!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[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!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,s,l)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(t)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};_.elementStyles=[],_.shadowRootOptions={mode:"open"},_[B("elementProperties")]=new Map,_[B("finalized")]=new Map,Bt?.({ReactiveElement:_}),(ee.reactiveElementVersions??=[]).push("2.1.2");var _e=globalThis,je=o=>o,re=_e.trustedTypes,ze=re?re.createPolicy("lit-html",{createHTML:o=>o}):void 0,Ye="$lit$",A=`lit$${Math.random().toFixed(9).slice(2)}$`,Xe="?"+A,Gt=`<${Xe}>`,C=document,j=()=>C.createComment(""),z=o=>o===null||typeof o!="object"&&typeof o!="function",Ae=Array.isArray,Dt=o=>Ae(o)||typeof o?.[Symbol.iterator]=="function",ye=`[
282
+ \f\r]`,D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Fe=/-->/g,Ke=/>/g,E=RegExp(`>|${ye}(?:([^\\s"'>=/]+)(${ye}*=${ye}*(?:[^
283
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),qe=/'/g,Ve=/"/g,Je=/^(?:script|style|textarea|title)$/i,Se=o=>(e,...t)=>({_$litType$:o,strings:e,values:t}),p=Se(1),P=Se(2),br=Se(3),T=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),We=new WeakMap,R=C.createTreeWalker(C,129);function Ze(o,e){if(!Ae(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return ze!==void 0?ze.createHTML(e):e}var jt=(o,e)=>{let t=o.length-1,r=[],n,s=e===2?"<svg>":e===3?"<math>":"",i=D;for(let l=0;l<t;l++){let d=o[l],h,m,u=-1,v=0;for(;v<d.length&&(i.lastIndex=v,m=i.exec(d),m!==null);)v=i.lastIndex,i===D?m[1]==="!--"?i=Fe:m[1]!==void 0?i=Ke:m[2]!==void 0?(Je.test(m[2])&&(n=RegExp("</"+m[2],"g")),i=E):m[3]!==void 0&&(i=E):i===E?m[0]===">"?(i=n??D,u=-1):m[1]===void 0?u=-2:(u=i.lastIndex-m[2].length,h=m[1],i=m[3]===void 0?E:m[3]==='"'?Ve:qe):i===Ve||i===qe?i=E:i===Fe||i===Ke?i=D:(i=E,n=void 0);let w=i===E&&o[l+1].startsWith("/>")?" ":"";s+=i===D?d+Gt:u>=0?(r.push(h),d.slice(0,u)+Ye+d.slice(u)+A+w):d+A+(u===-2?l:w)}return[Ze(o,s+(o[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},F=class o{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let s=0,i=0,l=e.length-1,d=this.parts,[h,m]=jt(e,t);if(this.el=o.createElement(h,r),R.currentNode=this.el.content,t===2||t===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=R.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let u of n.getAttributeNames())if(u.endsWith(Ye)){let v=m[i++],w=n.getAttribute(u).split(A),k=/([.?@])?(.*)/.exec(v);d.push({type:1,index:s,name:k[2],strings:w,ctor:k[1]==="."?be:k[1]==="?"?ve:k[1]==="@"?$e:U}),n.removeAttribute(u)}else u.startsWith(A)&&(d.push({type:6,index:s}),n.removeAttribute(u));if(Je.test(n.tagName)){let u=n.textContent.split(A),v=u.length-1;if(v>0){n.textContent=re?re.emptyScript:"";for(let w=0;w<v;w++)n.append(u[w],j()),R.nextNode(),d.push({type:2,index:++s});n.append(u[v],j())}}}else if(n.nodeType===8)if(n.data===Xe)d.push({type:2,index:s});else{let u=-1;for(;(u=n.data.indexOf(A,u+1))!==-1;)d.push({type:7,index:s}),u+=A.length-1}s++}}static createElement(e,t){let r=C.createElement("template");return r.innerHTML=e,r}};function M(o,e,t=o,r){if(e===T)return e;let n=r!==void 0?t._$Co?.[r]:t._$Cl,s=z(e)?void 0:e._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(o),n._$AT(o,t,r)),r!==void 0?(t._$Co??=[])[r]=n:t._$Cl=n),n!==void 0&&(e=M(o,n._$AS(o,e.values),n,r)),e}var xe=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:r}=this._$AD,n=(e?.creationScope??C).importNode(t,!0);R.currentNode=n;let s=R.nextNode(),i=0,l=0,d=r[0];for(;d!==void 0;){if(i===d.index){let h;d.type===2?h=new K(s,s.nextSibling,this,e):d.type===1?h=new d.ctor(s,d.name,d.strings,this,e):d.type===6&&(h=new we(s,this,e)),this._$AV.push(h),d=r[++l]}i!==d?.index&&(s=R.nextNode(),i++)}return R.currentNode=C,n}p(e){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}},K=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,n){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=M(this,e,t),z(e)?e===c||e==null||e===""?(this._$AH!==c&&this._$AR(),this._$AH=c):e!==this._$AH&&e!==T&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Dt(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==c&&z(this._$AH)?this._$AA.nextSibling.data=e:this.T(C.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:r}=e,n=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=F.createElement(Ze(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(t);else{let s=new xe(n,this),i=s.u(this.options);s.p(t),this.T(i),this._$AH=s}}_$AC(e){let t=We.get(e.strings);return t===void 0&&We.set(e.strings,t=new F(e)),t}k(e){Ae(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,n=0;for(let s of e)n===t.length?t.push(r=new o(this.O(j()),this.O(j()),this,this.options)):r=t[n],r._$AI(s),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let r=je(e).nextSibling;je(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},U=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,n,s){this.type=1,this._$AH=c,this._$AN=void 0,this.element=e,this.name=t,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=c}_$AI(e,t=this,r,n){let s=this.strings,i=!1;if(s===void 0)e=M(this,e,t,0),i=!z(e)||e!==this._$AH&&e!==T,i&&(this._$AH=e);else{let l=e,d,h;for(e=s[0],d=0;d<s.length-1;d++)h=M(this,l[r+d],t,d),h===T&&(h=this._$AH[d]),i||=!z(h)||h!==this._$AH[d],h===c?e=c:e!==c&&(e+=(h??"")+s[d+1]),this._$AH[d]=h}i&&!n&&this.j(e)}j(e){e===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},be=class extends U{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===c?void 0:e}},ve=class extends U{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==c)}},$e=class extends U{constructor(e,t,r,n,s){super(e,t,r,n,s),this.type=5}_$AI(e,t=this){if((e=M(this,e,t,0)??c)===T)return;let r=this._$AH,n=e===c&&r!==c||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,s=e!==c&&(r===c||n);n&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},we=class{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){M(this,e)}};var zt=_e.litHtmlPolyfillSupport;zt?.(F,K),(_e.litHtmlVersions??=[]).push("3.3.3");var Qe=(o,e,t)=>{let r=t?.renderBefore??e,n=r._$litPart$;if(n===void 0){let s=t?.renderBefore??null;r._$litPart$=n=new K(e.insertBefore(j(),s),s,void 0,t??{})}return n._$AI(o),n};var ke=globalThis,S=class extends _{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Qe(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return T}};S._$litElement$=!0,S.finalized=!0,ke.litElementHydrateSupport?.({LitElement:S});var Ft=ke.litElementPolyfillSupport;Ft?.({LitElement:S});(ke.litElementVersions??=[]).push("4.2.2");var et=o=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(o,e)}):customElements.define(o,e)};var Kt={attribute:!0,type:String,converter:G,reflect:!1,hasChanged:te},qt=(o=Kt,e,t)=>{let{kind:r,metadata:n}=t,s=globalThis.litPropertyMetadata.get(n);if(s===void 0&&globalThis.litPropertyMetadata.set(n,s=new Map),r==="setter"&&((o=Object.create(o)).wrapped=!0),s.set(t.name,o),r==="accessor"){let{name:i}=t;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(i,d,o,!0,l)},init(l){return l!==void 0&&this.C(i,void 0,o,l),l}}}if(r==="setter"){let{name:i}=t;return function(l){let d=this[i];e.call(this,l),this.requestUpdate(i,d,o,!0,l)}}throw Error("Unsupported decorator location: "+r)};function x(o){return(e,t)=>typeof t=="object"?qt(o,e,t):((r,n,s)=>{let i=n.hasOwnProperty(s);return n.constructor.createProperty(s,r),i?Object.getOwnPropertyDescriptor(n,s):void 0})(o,e,t)}function N(o){return x({...o,state:!0,attribute:!1})}var q=o=>o??c;function tt(o){if(o.lang)return o.lang;if(typeof document>"u")return;let e=o.closest?.("[lang]")?.getAttribute("lang");return e||document.documentElement.lang||void 0}function rt(o){return o.toLowerCase().replace(/[\s_-]+/g," ").trim()}var ot="__ROXY_UI_I18N__";function st(){let o=globalThis,e=o[ot];if(e)return e;let t={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return o[ot]=t,t}function nt(o,e){return e?o.replace(/\{\{(\w+)\}\}/g,(t,r)=>r in e?String(e[r]??""):t):o}function it(o,e,t){if(!o)return nt(e,t);let{catalogs:r}=st(),n=o.toLowerCase(),s=r[n]??r[n.split("-")[0]];return nt(s?.[rt(e)]??e,t)}function at(o){let{listeners:e}=st();return e.add(o),()=>{e.delete(o)}}var ne=class{constructor(e){this.host=e,e.addController(this)}hostConnected(){this.unsubscribe=at(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var se=class extends S{constructor(){super();this.translator=(t,r)=>this.t(t,r);new ne(this)}t(t,r){return it(this.effectiveLang(),t,r)}effectiveLang(){return tt(this)}};var ie=$`:host{font-family:var(--roxy-font-sans,system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-base,1rem);line-height:var(--roxy-leading-normal,1.5);animation:roxy-fade-in var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1)) both;background:0 0;display:block;container-type:inline-size}:host([bare]){--roxy-surface:transparent;--roxy-shadow-sm:none;--roxy-shadow-md:none}*,:before,:after{box-sizing:border-box}h1,h2,h3,h4{font-family:var(--roxy-font-display,var(--roxy-font-sans,system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif))}@keyframes roxy-fade-in{0%{opacity:0;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border,#e4e4e7) 0%, color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent) 50%, var(--roxy-border,#e4e4e7) 100%);border-radius:var(--roxy-radius-md,8px);background-size:200% 100%;animation:1.4s ease-in-out infinite roxy-shimmer}@keyframes roxy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.roxy-skeleton{animation:none}}.roxy-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.roxy-empty{padding:var(--roxy-space-lg,1.5rem);color:var(--roxy-muted,#71717a);text-align:center;font-size:var(--roxy-text-sm,.875rem)}.roxy-error{gap:var(--roxy-space-sm,.5rem);padding:var(--roxy-space-lg,1.5rem);background:var(--roxy-surface,#fff);border:1px solid var(--roxy-danger,#dc2626);border-radius:var(--roxy-radius-md,8px);color:var(--roxy-danger-fg,#991b1b);font-size:var(--roxy-text-sm,.875rem);justify-items:start;display:grid}.roxy-surface{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a)}:host(:focus-within) .roxy-card{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}.roxy-attribution{margin-top:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink,#b45309);text-decoration:underline}.roxy-attribution a:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm,.5rem);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs,.25rem) var(--roxy-space-md,1rem);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);color:var(--roxy-fg,#0a0a0a);font-family:inherit;font-size:var(--roxy-text-sm,.875rem);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent,#f59e0b);color:var(--roxy-accent-ink,#b45309)}.roxy-edit:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}:host{font-variant-emoji:text}`;var ae="Client-side components accept a pk_ publishable key only. Use a publishable key with an origin allowlist, or render server-side.";function lt(o){return!!o&&!o.startsWith("pk_")}function dt(o,e={}){e.warn&&console.warn(ae),o.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:"possible-secret-key",message:ae},bubbles:!0,composed:!0}))}var Vt="https://roxyapi.com/api/v2";async function Wt(o){try{let e=await o.json();if(e?.error)return e.error}catch{}return`Request failed (${o.status})`}var le=class{constructor(e){this.baseUrl=Vt;this.host=e,e.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(e){if(!this.submitUrl&&this.secretKeyRefused())return;this.abort?.abort();let t=new AbortController;this.abort=t,this.host.loading=!0,this.host.error=null;try{let r=this.submitUrl?await fetch(this.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e),signal:t.signal}):await this.callApi(e,t.signal);if(!r.ok)throw new Error(await Wt(r));let n=await r.json();if(t.signal.aborted)return;this.host.data=n}catch(r){if(r?.name==="AbortError")return;this.host.error=r instanceof Error?r.message:String(r)}finally{this.abort===t&&(this.abort=void 0),t.signal.aborted||(this.host.loading=!1)}}callApi(e,t){let r=new URL(`${this.baseUrl}${e.path}`);for(let[s,i]of Object.entries(e.query??{}))i!=null&&r.searchParams.set(s,String(i));let n={Accept:"application/json"};return this.publishableKey&&(n["X-API-Key"]=this.publishableKey),e.body!=null&&(n["Content-Type"]="application/json"),fetch(r,{method:e.method??"GET",headers:n,body:e.body!=null?JSON.stringify(e.body):void 0,signal:t})}secretKeyRefused(){return lt(this.publishableKey)?(this.host.error=ae,dt(this.host),!0):!1}};function ct(o,e,t,r=[]){let n={...t},s=`/${o.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(h,m)=>{let u=n[m];return delete n[m],encodeURIComponent(String(u??""))}),i=new Set(r),l={},d={};for(let[h,m]of Object.entries(n))m===void 0||m===""||(e==="GET"||i.has(h)?l[h]=m:d[h]=m);return{path:s,method:e,query:l,body:e==="POST"?d:void 0}}function pt(){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 Eo=$`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:14px;height:14px;color:var(--roxy-muted,#71717a);transition:transform var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,ease);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;var Yt=$`.interp-keywords{flex-wrap:wrap;gap:.25rem;display:flex}.interp-keywords .kw{border-radius:var(--roxy-radius-full,9999px);background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 14%, transparent);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-xs,.75rem);padding:1px 8px}`,Po=$`.block{border-top:1px solid var(--roxy-border,#e4e4e7);padding-top:var(--roxy-space-md,1rem)}.block h3{margin:0 0 var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em}.interp-card{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);margin-bottom:var(--roxy-space-xs,.25rem)}.interp-card summary{cursor:pointer;color:var(--roxy-fg,#0a0a0a);align-items:center;gap:var(--roxy-space-sm,.5rem);font-weight:500;font-size:var(--roxy-text-sm,.875rem);display:flex}.interp-card summary:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px;border-radius:var(--roxy-radius-sm,4px)}.interp-lead{flex-wrap:wrap;flex:auto;order:1;align-items:baseline;gap:.4rem;min-width:0;display:inline-flex}.interp-aside{flex-shrink:0;order:2;align-items:center;gap:.5rem;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted,#71717a);white-space:nowrap;font-weight:400}@container (width<=26rem){.interp-card summary{flex-wrap:wrap}.roxy-chevron{order:2}.interp-aside{flex-basis:100%;order:3;justify-content:flex-end}}.interp-body{margin-top:var(--roxy-space-sm,.5rem);gap:var(--roxy-space-sm,.5rem);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);overflow-wrap:anywhere;line-height:1.6;display:grid}.interp-body p{margin:0}${Yt}`;function ht(o,e,t){let r=o.filter(n=>!!n.body);return r.length===0?c:p`<section class="block" part="section readings"><h3>${t}</h3>${r.map((n,s)=>p`<details class="interp-card" part="reading" name="${e}" ?open="${s===0}"><summary><span class="interp-lead">${n.label}</span> ${pt()} ${n.aside?p`<span class="interp-aside"><small>${n.aside}</small></span>`:c}</summary><div class="interp-body"><p>${n.body}</p>${n.extra??c}</div></details>`)}</section>`}var Xt="roxy-data";function Jt(o){return o.nodeName==="SCRIPT"&&o.getAttribute("type")==="application/json"}var de=class{constructor(e){this.host=e,e.addController(this)}hostConnected(){if(this.host.data!=null)return;let e=this.read();e!==void 0&&(this.host.data=e,this.host.requestUpdate())}read(){let e=this.findInlineScript();return e?this.parse(e.textContent):void 0}findInlineScript(){for(let e of Array.from(this.host.children))if(Jt(e)&&e.classList.contains(Xt))return e;return null}parse(e){if(e?.trim())try{return JSON.parse(e)}catch{return}}};var f=class extends se{constructor(){super();this.data=null;this.endpoint="";this.method="POST";this.remember=!1;this.hideReadings=!1;this.hideSections="";this.loading=!1;this.error=null;this.selfFetched=!1;this.editing=!1;this.sticky=!1;this.onEdit=()=>{this.editing=!0};this.onFormSubmit=t=>{let r=t.detail;this.lastValues=r.values,this.sticky=!!r.sticky,this.selfFetched=!0,this.editing=!1,this.remember&&this.writeRemembered(r.values),this.fetcher.run(ct(this.endpoint,this.method,r.values,r.queryKeys??[]))};new de(this),this.fetcher=new le(this)}static{this.styles=[ie]}willUpdate(t){t.has("publishableKey")&&(this.fetcher.publishableKey=this.publishableKey),t.has("baseUrl")&&this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),t.has("submitUrl")&&(this.fetcher.submitUrl=this.submitUrl)}render(){return p`${this.hiddenSectionsStyle()}${this.renderState()}`}hiddenSectionsStyle(){let t=this.hideSections.split(",").map(n=>n.trim().toLowerCase()).filter(n=>/^[a-z][a-z0-9-]*$/.test(n));if(t.length===0)return c;let r=t.map(n=>`[part~="${n}"]{display:none!important}`).join("");return p`<style>${r}</style>`}renderState(){return this.loading?this.renderLoading():this.error!=null?this.renderError(this.error):this.data!=null?this.selfFetched?this.editing?this.renderForm():this.renderResult(this.data):this.showAttribution()?p`${this.renderData(this.data)}${this.renderAttribution()}`:this.renderData(this.data):this.renderNoData()}renderInterpretation(t,r,n){return this.hideReadings?c:ht(t,r,this.t(n??"Reading"))}renderResult(t){let r=this.sticky?p`${this.renderForm()}${this.renderData(t)}`: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.renderData(t)}`;return this.showAttribution()?p`${r}${this.renderAttribution()}`:r}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.endpoint?this.renderForm():this.renderEmpty()}renderForm(){return p`<roxy-endpoint-form part="form" data-endpoint="${this.endpoint}" method="${this.method}" spec-url="${q(this.specUrl)}" publishable-key="${q(this.publishableKey)}" submit-label="${q(this.submitLabel)}" lang="${q(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.endpoint}`}readRemembered(){try{let t=sessionStorage.getItem(this.rememberKey());return t?JSON.parse(t):void 0}catch{return}}writeRemembered(t){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(t))}catch{}}renderEmpty(){return p`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return p`<div class="roxy-skeleton" style="height:8rem" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(t){let r=p`<div class="roxy-error" role="alert" part="error">${this.t(t)}</div>`;return this.endpoint?p`${r}${this.renderForm()}`:r}};g([x({attribute:!1})],f.prototype,"data",2),g([x({type:String,attribute:"data-endpoint"})],f.prototype,"endpoint",2),g([x({type:String})],f.prototype,"method",2),g([x({type:String,attribute:"publishable-key"})],f.prototype,"publishableKey",2),g([x({type:String,attribute:"base-url"})],f.prototype,"baseUrl",2),g([x({type:String,attribute:"spec-url"})],f.prototype,"specUrl",2),g([x({type:String,attribute:"submit-url"})],f.prototype,"submitUrl",2),g([x({type:Boolean})],f.prototype,"remember",2),g([x({type:Boolean,attribute:"hide-readings",reflect:!0})],f.prototype,"hideReadings",2),g([x({type:String,attribute:"hide-sections",reflect:!0})],f.prototype,"hideSections",2),g([x({type:String,attribute:"submit-label"})],f.prototype,"submitLabel",2),g([x({type:String})],f.prototype,"attribution",2),g([N()],f.prototype,"loading",2),g([N()],f.prototype,"error",2),g([N()],f.prototype,"selfFetched",2),g([N()],f.prototype,"editing",2),g([N()],f.prototype,"sticky",2);var ut=$`.facts{gap:var(--roxy-space-sm,.5rem);grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));display:grid}.fact{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);background:var(--roxy-surface,#fff)}.fact span{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.06em;display:block}.fact strong{font-size:var(--roxy-text-base,1rem);color:var(--roxy-fg,#0a0a0a)}.lead{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);margin:0;line-height:1.6}.themes{gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.pill{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);padding:2px 10px}.pill--good{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#166534)}.pill--shadow{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 16%, transparent);color:var(--roxy-danger-fg,#991b1b)}.keynotes{gap:var(--roxy-space-xs,.25rem);margin:0;display:grid}.keynotes dt{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.05em}.keynotes dd{margin:0}`;function mt(o){let e=o.filter(t=>!!t.value);return e.length===0?c:p`<div class="facts" part="facts">${e.map(t=>p`<div class="fact" part="fact"><span>${t.label}</span> <strong>${t.value}</strong></div>`)}</div>`}var yt=14,Zt=86,xt=0,Qt=102,L=6,bt=(Zt-yt)*L,er=(Qt-xt)*L;function he(o,e){return{x:(o-yt)*L,y:(e-xt)*L}}var a=50,Te=o=>2*a-o,Vo=1.02*L,Wo=1.35*L,Yo=1.15*L,y=2.87,b=4.4,ft=5.65,Ee={head:{64:[a-y,11.2],61:[a,11.2],63:[a+y,11.2]},ajna:{47:[a-y,18],24:[a,18],4:[a+y,18],17:[a-y,20.6],11:[a+y,20.6],43:[a,25.3]},throat:{62:[a-y,32.4],23:[a,32.4],56:[a+y,32.4],16:[a-b,34.7],35:[a+b,34.7],20:[a-b,37.3],12:[a+b,37.3],45:[a+b,39.6],31:[a-y,41.9],8:[a,41.9],33:[a+y,41.9]},g:{1:[a,47.7],7:[a-y,50.3],13:[a+y,50.3],10:[a-ft,53.4],25:[a+ft,53.4],15:[a-y,56.8],46:[a+y,56.8],2:[a,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:[a-y,72.7],14:[a,72.7],29:[a+y,72.7],34:[a-b,75.4],27:[a-b,79],59:[a+b,79],42:[a-y,81.7],3:[a,81.7],9:[a+y,81.7]},"solar-plexus":{},root:{53:[a-y,90.2],60:[a,90.2],52:[a+y,90.2],54:[a-b,92.6],19:[a+b,92.6],38:[a-b,95.3],39:[a+b,95.3],58:[a-b,98.1],41:[a+b,98.1]}},tr={48:36,57:22,44:37,50:6,32:49,28:55,18:30};function rr(){let o={},e={};for(let[t,[r,n]]of Object.entries(Ee.spleen))Ee["solar-plexus"][tr[Number(t)]]=[Te(r),n];for(let[t,r]of Object.entries(Ee))for(let[n,[s,i]]of Object.entries(r))o[Number(n)]=he(s,i),e[Number(n)]=t;return{points:o,centerOf:e}}var{points:Xo,centerOf:V}=rr(),Jo=bt/2;function O(o){return o.map(([e,t])=>he(e,t))}function Re(o,e,t){return O([[a-o,e],[a+o,e],[a+o,t],[a-o,t]])}var Ce=5.9,gt=[[18.3,68.3],[18.3,82],[30.3,75.15]],Zo=[{id:"head",label:"Head",color:"gold",points:O([[43.55,12.5],[56.45,12.5],[50,1.7]])},{id:"ajna",label:"Ajna",color:"green",points:O([[43.55,16.5],[56.45,16.5],[50,27.7]])},{id:"throat",label:"Throat",color:"brown",points:Re(Ce,31,43.3)},{id:"g",label:"G",color:"gold",points:O([[50,45.8],[57.7,53.6],[50,61.4],[42.3,53.6]])},{id:"heart",label:"Heart",color:"red",points:O([[56.65,65.23],[64.2,56.74],[69.75,65.23]])},{id:"spleen",label:"Spleen",color:"brown",points:O(gt)},{id:"sacral",label:"Sacral",color:"red",points:Re(Ce,71.3,83.1)},{id:"solar-plexus",label:"Solar Plexus",color:"brown",points:O(gt.map(([o,e])=>[Te(o),e]))},{id:"root",label:"Root",color:"brown",points:Re(Ce,88.5,99.8)}];var Qo=or();function or(){let o=Te,e=[[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]],t=[`M ${ce(e[0])}`];for(let r=1;r+2<e.length;r+=3)t.push(`C ${ce(e[r])} ${ce(e[r+1])} ${ce(e[r+2])}`);t.push(`L ${pe(e[e.length-1],o)}`);for(let r=e.length-3;r>=1;r-=3)t.push(`C ${pe(e[r+1],o)} ${pe(e[r],o)} ${pe(e[r-1],o)}`);return t.push("Z"),t.join(" ")}function ce([o,e]){let t=he(o,e);return`${t.x} ${t.y}`}function pe([o,e],t){let r=he(t(o),e);return`${r.x} ${r.y}`}var en=`0 0 ${bt} ${er}`;var Oe=360,nr=470,Le=8,wt=Oe-Le*2,me=48,W=15,Pe=7,vt=16,ue=[{id:"throat",label:"Throat",y:0},{id:"g",label:"G",y:211},{id:"sacral",label:"Sacral",y:422}],_t=`0 0 ${Oe} ${nr}`;function sr(o,e){return Le+wt*(o*2+1)/(e*2)}function At(o){return V[o.gateA]==="throat"||V[o.gateB]==="throat"}function ir(o){return(At(o)?V[o.gateA]==="throat":V[o.gateA]==="g")?o.gateA:o.gateB}function ar(){return ue.map(o=>P`<g>
284
284
  <rect class="pn-bar" x=${Le} y=${o.y} width=${wt} height=${me} rx="10" />
285
285
  <text class="pn-bar-label" x=${Oe/2} y=${o.y+me/2} text-anchor="middle" dominant-baseline="central">${o.label}</text>
286
286
  </g>`)}function lr(o,e,t,r){return t.map((n,s)=>P`<g>
@@ -290,13 +290,13 @@ var RoxyUI_hd_penta=(()=>{var Y=Object.defineProperty;var Me=Object.getOwnProper
290
290
  <circle class="pn-gate-dot ${s?"on":""}" cx=${o} cy=${e} r=${W} />
291
291
  <text class="pn-gate ${s?"on":""}" x=${o} y=${e} text-anchor="middle" dominant-baseline="central">${t}</text>
292
292
  ${lr(o,e,r,n)}
293
- </g>`}function At(o){let e=[];for(let t of[!0,!1]){let r=o.rungs.filter(h=>St(h)===t),n=t?me:ue[1].y+me,s=t?ue[1].y:ue[2].y,i=n+26,l=s-26,d=(i+l)/2;r.forEach((h,m)=>{let u=sr(m,r.length),v=ir(h),w=v===h.gateA?h.gateB:h.gateA,k=`pn-rung ${h.defined?"on":""} ${h.isCore?"core":""}`;e.push(P`<g>
293
+ </g>`}function St(o){let e=[];for(let t of[!0,!1]){let r=o.rungs.filter(h=>At(h)===t),n=t?me:ue[1].y+me,s=t?ue[1].y:ue[2].y,i=n+26,l=s-26,d=(i+l)/2;r.forEach((h,m)=>{let u=sr(m,r.length),v=ir(h),w=v===h.gateA?h.gateB:h.gateA,k=`pn-rung ${h.defined?"on":""} ${h.isCore?"core":""}`;e.push(P`<g>
294
294
  <line class=${k} x1=${u} y1=${i+W} x2=${u} y2=${d-13} />
295
295
  <line class=${k} x1=${u} y1=${d+13} x2=${u} y2=${l-W} />
296
296
  <text class="pn-name ${h.defined?"on":""}" x=${u} y=${d} text-anchor="middle" dominant-baseline="central">${h.name}</text>
297
297
  ${$t(u,i,v,o.holders.get(v)??[],o.letterFor)}
298
298
  ${$t(u,l,w,o.holders.get(w)??[],o.letterFor)}
299
- </g>`)})}return P`${ar()}${e.length>0?e:c}`}var I=class extends f{renderChart(e){let t=(e.channels??[]).filter(n=>n.gateA!=null&&n.gateB!=null).map(n=>({gateA:n.gateA,gateB:n.gateB,name:n.name??"",defined:n.defined===!0,isCore:n.isCore===!0}));if(t.length===0)return c;let r=new Map((e.gates??[]).filter(n=>n.gate!=null).map(n=>[n.gate,n.heldBy??[]]));return p`<svg class="chart" part="chart" viewBox="${_t}" preserveAspectRatio="xMidYMid meet" role="img" aria-label="Penta ladder: the Throat, G and Sacral with the six penta channels between them, each marked defined or open and lettered with the members holding its gates"><title>Penta</title>${At({rungs:t,holders:r,letterFor:kt})}</svg>`}renderData(e){let t=e.channels??[],r=e.gates??[],n=e.summary,s=n?.gapGates??[],i=t.some(l=>l.isCore);return p`<div class="wrap" part="card" aria-label="Human Design penta"><header class="head" part="header"><h2 class="title">Penta</h2>${typeof e.memberCount=="number"?p`<span class="count">${e.memberCount} members</span>`:c}</header>${this.renderChart(e)} ${mt([{label:"Members",value:e.memberCount?.toString()},{label:"Defined channels",value:typeof n?.definedChannels=="number"&&t.length>0?`${n.definedChannels} of ${t.length}`:void 0},{label:"Filled gates",value:typeof n?.filledGates=="number"&&r.length>0?`${n.filledGates} of ${r.length}`:void 0},{label:"Core",value:typeof n?.coreDefined=="boolean"?n.coreDefined?"Defined":"Open":void 0},{label:"Gap gates",value:s.length>0?s.join(", "):void 0}])} ${this.hideReadings?c:p`<p class="lead">A penta is the field three to five people form when they work as a group. It is read from the twelve penta gates the members bring between them: a channel with both of its gates held somewhere in the group is a defined Strength, and a gate no member holds is a gap the group has to compensate for.</p>`} ${this.renderGroup("Upper (direction)",t.filter(l=>l.position==="upper"),"Upper channels run from the G Center to the Throat. They carry the leadership of the group and how it presents itself.")} ${this.renderGroup("Lower (execution)",t.filter(l=>l.position==="lower"),"Lower channels run from the G Center to the Sacral. They carry the managed, generative, resource work.")} ${this.renderGroup("Channels",t.filter(l=>l.position!=="upper"&&l.position!=="lower"))} ${i&&!this.hideReadings?p`<p class="footnote">Core is the 2/14 Channel of the Beat, the material core of the penta: gate 2 sets the direction for resources, gate 14 is the resources themselves.</p>`:c} ${this.renderGates(r)} ${t.length>0||r.length>0?p`<p class="footnote" part="legend">Members are lettered in the order they were sent, so A is the first member of the group.</p>`:c}</div>`}renderGroup(e,t,r){return t.length===0?c:p`<div class="section" part="section channels"><h3>${e}</h3>${r&&!this.hideReadings?p`<p class="note">${r}</p>`:c} ${t.map(n=>p`<div class="row"><span class="gates">${n.gateA}-${n.gateB}</span> <span class="cname">${n.name??""} ${n.circuit?p`<span class="circuit">${n.circuit} circuit</span>`:c} </span><span class="badge ${n.defined?"defined":"open"}">${n.defined?"Defined":"Open"}</span> ${n.isCore?p`<span class="badge core">Core</span>`:c} <span class="held">Gate ${n.gateA} held by ${Ue(n.gateAHeldBy)}. Gate ${n.gateB} held by ${Ue(n.gateBHeldBy)}.</span></div>`)}</div>`}renderGates(e){if(e.length===0)return c;let t=e.filter(r=>r.filled).length;return p`<div class="section" part="section gates"><h3>Gates (${t} of ${e.length} filled)</h3>${this.hideReadings?c:p`<p class="note">The role each gate brings to the group, and who carries it. A gap is a role no member holds, so the group compensates for it.</p>`} ${e.map(r=>p`<div class="row"><span class="gate-id">${r.gate}</span> <span class="cname">${r.gateName??""}</span> ${r.filled?p`<span class="who">Held by ${Ue(r.heldBy)}</span>`:p`<span class="badge gap">Gap</span>`}</div>`)}</div>`}};I.styles=[ie,ut,$`.chart{width:100%;max-width:var(--roxy-chart-max-width,22rem);height:auto;margin:0 auto;display:block}.pn-bar{fill:color-mix(in srgb, var(--roxy-accent,#f59e0b) 12%, transparent);stroke:var(--roxy-accent-ink,#b45309);stroke-width:1.5px}.pn-bar-label{fill:var(--roxy-fg,#0a0a0a);font-size:15px;font-weight:var(--roxy-weight-bold,600);font-family:var(--roxy-font-sans)}.pn-rung{stroke:var(--roxy-border,#e4e4e7);stroke-width:6px;stroke-dasharray:6 6}.pn-rung.on{stroke:var(--roxy-accent-ink,#b45309);stroke-dasharray:none}.pn-rung.on.core{stroke-width:9px}.pn-name{fill:var(--roxy-muted,#71717a);font-size:12px;font-family:var(--roxy-font-sans)}.pn-name.on{fill:var(--roxy-fg,#0a0a0a);font-weight:var(--roxy-weight-bold,600)}.pn-gate-dot{fill:var(--roxy-surface,#fff);stroke:var(--roxy-border,#e4e4e7);stroke-width:1.5px;stroke-dasharray:4 4}.pn-gate-dot.on{stroke:var(--roxy-accent-ink,#b45309);stroke-dasharray:none}.pn-gate{fill:var(--roxy-muted,#71717a);font-size:13px;font-weight:var(--roxy-weight-bold,600);font-family:var(--roxy-font-sans)}.pn-gate.on{fill:var(--roxy-fg,#0a0a0a)}.pn-badge{fill:var(--roxy-accent-ink,#b45309)}.pn-badge-text{fill:var(--roxy-surface,#fff);font-size:9px;font-weight:var(--roxy-weight-bold,600);font-family:var(--roxy-font-sans)}.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.count{color:var(--roxy-accent-ink,#b45309);font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600)}.section{border-top:1px solid var(--roxy-border,#e4e4e7);padding-top:var(--roxy-space-md,1rem)}.section h3{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;margin:0}.note{margin:var(--roxy-space-xs,.25rem) 0 0;font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);line-height:1.6}.row{align-items:center;gap:var(--roxy-space-sm,.5rem);padding:var(--roxy-space-sm,.5rem) 0;border-bottom:1px solid var(--roxy-border,#e4e4e7);font-size:var(--roxy-text-sm,.875rem);flex-wrap:wrap;display:flex}.row:last-child{border-bottom:none}.gates,.gate-id{font-variant-numeric:tabular-nums;color:var(--roxy-accent-ink,#b45309);font-weight:var(--roxy-weight-bold,600);min-width:3.5rem}.cname{flex:1;min-width:8rem}.circuit{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);display:block}.held{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);flex-basis:100%;line-height:1.6}.who{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem)}.badge{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);padding:1px 8px;display:inline-flex}.badge.defined{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#166534)}.badge.open{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 45%, transparent);color:var(--roxy-fg,#0a0a0a)}.badge.core{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 18%, transparent);color:var(--roxy-fg,#0a0a0a)}.badge.gap{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 16%, transparent);color:var(--roxy-danger-fg,#991b1b)}.footnote{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);margin:0;line-height:1.6}`],I=g([et("roxy-hd-penta")],I);var dr="ABCDE",kt=o=>dr[o]??String(o+1);function Ue(o){let e=(o??[]).map(kt);return e.length>0?e.join(", "):"nobody"}J();return Pt(cr);})();
299
+ </g>`)})}return P`${ar()}${e.length>0?e:c}`}var I=class extends f{renderChart(e){let t=(e.channels??[]).filter(n=>n.gateA!=null&&n.gateB!=null).map(n=>({gateA:n.gateA,gateB:n.gateB,name:n.name??"",defined:n.defined===!0,isCore:n.isCore===!0}));if(t.length===0)return c;let r=new Map((e.gates??[]).filter(n=>n.gate!=null).map(n=>[n.gate,n.heldBy??[]]));return p`<svg class="chart" part="chart" viewBox="${_t}" preserveAspectRatio="xMidYMid meet" role="img" aria-label="Penta ladder: the Throat, G and Sacral with the six penta channels between them, each marked defined or open and lettered with the members holding its gates"><title>Penta</title>${St({rungs:t,holders:r,letterFor:kt})}</svg>`}renderData(e){let t=e.channels??[],r=e.gates??[],n=e.summary,s=n?.gapGates??[],i=t.some(l=>l.isCore);return p`<div class="wrap" part="card" aria-label="Human Design penta"><header class="head" part="header"><h2 class="title">Penta</h2>${typeof e.memberCount=="number"?p`<span class="count">${e.memberCount} members</span>`:c}</header>${this.renderChart(e)} ${mt([{label:"Members",value:e.memberCount?.toString()},{label:"Defined channels",value:typeof n?.definedChannels=="number"&&t.length>0?`${n.definedChannels} of ${t.length}`:void 0},{label:"Filled gates",value:typeof n?.filledGates=="number"&&r.length>0?`${n.filledGates} of ${r.length}`:void 0},{label:"Core",value:typeof n?.coreDefined=="boolean"?n.coreDefined?"Defined":"Open":void 0},{label:"Gap gates",value:s.length>0?s.join(", "):void 0}])} ${this.hideReadings?c:p`<p class="lead">A penta is the field three to five people form when they work as a group. It is read from the twelve penta gates the members bring between them: a channel with both of its gates held somewhere in the group is a defined Strength, and a gate no member holds is a gap the group has to compensate for.</p>`} ${this.renderGroup("Upper (direction)",t.filter(l=>l.position==="upper"),"Upper channels run from the G Center to the Throat. They carry the leadership of the group and how it presents itself.")} ${this.renderGroup("Lower (execution)",t.filter(l=>l.position==="lower"),"Lower channels run from the G Center to the Sacral. They carry the managed, generative, resource work.")} ${this.renderGroup("Channels",t.filter(l=>l.position!=="upper"&&l.position!=="lower"))} ${i&&!this.hideReadings?p`<p class="footnote">Core is the 2/14 Channel of the Beat, the material core of the penta: gate 2 sets the direction for resources, gate 14 is the resources themselves.</p>`:c} ${this.renderGates(r)} ${t.length>0||r.length>0?p`<p class="footnote" part="legend">Members are lettered in the order they were sent, so A is the first member of the group.</p>`:c}</div>`}renderGroup(e,t,r){return t.length===0?c:p`<div class="section" part="section channels"><h3>${e}</h3>${r&&!this.hideReadings?p`<p class="note">${r}</p>`:c} ${t.map(n=>p`<div class="row"><span class="gates">${n.gateA}-${n.gateB}</span> <span class="cname">${n.name??""} ${n.circuit?p`<span class="circuit">${n.circuit} circuit</span>`:c} </span><span class="badge ${n.defined?"defined":"open"}">${n.defined?"Defined":"Open"}</span> ${n.isCore?p`<span class="badge core">Core</span>`:c} <span class="held">Gate ${n.gateA} held by ${Me(n.gateAHeldBy)}. Gate ${n.gateB} held by ${Me(n.gateBHeldBy)}.</span></div>`)}</div>`}renderGates(e){if(e.length===0)return c;let t=e.filter(r=>r.filled).length;return p`<div class="section" part="section gates"><h3>Gates (${t} of ${e.length} filled)</h3>${this.hideReadings?c:p`<p class="note">The role each gate brings to the group, and who carries it. A gap is a role no member holds, so the group compensates for it.</p>`} ${e.map(r=>p`<div class="row"><span class="gate-id">${r.gate}</span> <span class="cname">${r.gateName??""}</span> ${r.filled?p`<span class="who">Held by ${Me(r.heldBy)}</span>`:p`<span class="badge gap">Gap</span>`}</div>`)}</div>`}};I.styles=[ie,ut,$`.chart{width:100%;max-width:var(--roxy-chart-max-width,22rem);height:auto;margin:0 auto;display:block}.pn-bar{fill:color-mix(in srgb, var(--roxy-accent,#f59e0b) 12%, transparent);stroke:var(--roxy-accent-ink,#b45309);stroke-width:1.5px}.pn-bar-label{fill:var(--roxy-fg,#0a0a0a);font-size:15px;font-weight:var(--roxy-weight-bold,600);font-family:var(--roxy-font-sans)}.pn-rung{stroke:var(--roxy-border,#e4e4e7);stroke-width:6px;stroke-dasharray:6 6}.pn-rung.on{stroke:var(--roxy-accent-ink,#b45309);stroke-dasharray:none}.pn-rung.on.core{stroke-width:9px}.pn-name{fill:var(--roxy-muted,#71717a);font-size:12px;font-family:var(--roxy-font-sans)}.pn-name.on{fill:var(--roxy-fg,#0a0a0a);font-weight:var(--roxy-weight-bold,600)}.pn-gate-dot{fill:var(--roxy-surface,#fff);stroke:var(--roxy-border,#e4e4e7);stroke-width:1.5px;stroke-dasharray:4 4}.pn-gate-dot.on{stroke:var(--roxy-accent-ink,#b45309);stroke-dasharray:none}.pn-gate{fill:var(--roxy-muted,#71717a);font-size:13px;font-weight:var(--roxy-weight-bold,600);font-family:var(--roxy-font-sans)}.pn-gate.on{fill:var(--roxy-fg,#0a0a0a)}.pn-badge{fill:var(--roxy-accent-ink,#b45309)}.pn-badge-text{fill:var(--roxy-surface,#fff);font-size:9px;font-weight:var(--roxy-weight-bold,600);font-family:var(--roxy-font-sans)}.wrap{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm,.5rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.count{color:var(--roxy-accent-ink,#b45309);font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600)}.section{border-top:1px solid var(--roxy-border,#e4e4e7);padding-top:var(--roxy-space-md,1rem)}.section h3{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em;margin:0}.note{margin:var(--roxy-space-xs,.25rem) 0 0;font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);line-height:1.6}.row{align-items:center;gap:var(--roxy-space-sm,.5rem);padding:var(--roxy-space-sm,.5rem) 0;border-bottom:1px solid var(--roxy-border,#e4e4e7);font-size:var(--roxy-text-sm,.875rem);flex-wrap:wrap;display:flex}.row:last-child{border-bottom:none}.gates,.gate-id{font-variant-numeric:tabular-nums;color:var(--roxy-accent-ink,#b45309);font-weight:var(--roxy-weight-bold,600);min-width:3.5rem}.cname{flex:1;min-width:8rem}.circuit{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);display:block}.held{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);flex-basis:100%;line-height:1.6}.who{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem)}.badge{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);padding:1px 8px;display:inline-flex}.badge.defined{background:color-mix(in srgb, var(--roxy-success,#16a34a) 16%, transparent);color:var(--roxy-success-fg,#166534)}.badge.open{background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 45%, transparent);color:var(--roxy-fg,#0a0a0a)}.badge.core{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 18%, transparent);color:var(--roxy-fg,#0a0a0a)}.badge.gap{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 16%, transparent);color:var(--roxy-danger-fg,#991b1b)}.footnote{font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);margin:0;line-height:1.6}`],I=g([et("roxy-hd-penta")],I);var dr="ABCDE",kt=o=>dr[o]??String(o+1);function Me(o){let e=(o??[]).map(kt);return e.length>0?e.join(", "):"nobody"}J();return Pt(cr);})();
300
300
  /*! Bundled license information:
301
301
 
302
302
  @lit/reactive-element/css-tag.js: