var es=Object.defineProperty;var xr=a=>{throw TypeError(a)};var rs=(a,t,e)=>t in a?es(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var A=(a,t,e)=>rs(a,typeof t!="symbol"?t+"":t,e),Je=(a,t,e)=>t.has(a)||xr("Cannot "+e);var c=(a,t,e)=>(Je(a,t,"read from private field"),e?e.call(a):t.get(a)),x=(a,t,e)=>t.has(a)?xr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(a):t.set(a,e),Qe=(a,t,e,r)=>(Je(a,t,"write to private field"),r?r.call(a,e):t.set(a,e),e),L=(a,t,e)=>(Je(a,t,"access private method"),e);import{G as ar,u as p,g as n,D as v,H as Le,aO as Ct,I as ss,S as ns,J as xt,L as Ee,M as is,bX as os,O as Cr,p as lt,P as as,Q as $,j as X,R as G,a as y,b as dt,U as Ye,V as Xe,W as P,X as We,Z as w,s as g,_ as ut,$ as je,a0 as He,f as E,a1 as Ge,c as b,a2 as kt,af as cs,bY as Rr,bZ as Vr,bu as Tr,bv as Ir,by as Dr,bA as Mr,b_ as zr,bH as at,b$ as Or,ag as Me,y as Q,c0 as us,bs as ls,Y as kr,a3 as ds,a7 as Et,a4 as ze,c1 as hs,bb as rr,i as Oe,t as tt,aI as ps,ac as Nr,d as Nt,c2 as yr,a6 as $e,c3 as z,x as fs,e as Y,C as Ot,c4 as vs,c5 as ms,aw as gt,a8 as st,c6 as gs,as as _r,B as tr,c7 as bs,c8 as er,ar as xs,an as ks,c9 as Ar,ca as ys,aa as _s,cb as As,cc as Ps,cd as ws,ce as Ss,cf as Cs,cg as Rs,ch as Pr,ci as Vs,cj as Ts,ck as Ve,cl as Te,cm as Is,cn as Ds,co as Ms,aB as zs,cp as Os,ao as Ns,cq as Es,cr as wr,cs as Fs,ct as qs}from"./index-B5w8gw75.js";import{s as Bs}from"./clone-bSRBQ4eT.js";import{H as Us}from"./hidden-input-CbX2doyK.js";import{o as Er}from"./on-mount-effect.svelte-Lpx0iWhb.js";const Ls=Cr({component:"checkbox",parts:["root","group","group-label","input"]}),Ys=new ar("Checkbox.Group"),Fr=new ar("Checkbox.Root");var Ft,qt,Bt,Ut,wt,Ne,Lt,Yt;const lr=class lr{constructor(t,e){x(this,wt);A(this,"opts");A(this,"group");x(this,Ft,p(()=>this.group&&this.group.opts.name.current?this.group.opts.name.current:this.opts.name.current));x(this,qt,p(()=>this.group&&this.group.opts.required.current?!0:this.opts.required.current));x(this,Bt,p(()=>this.group&&this.group.opts.disabled.current?!0:this.opts.disabled.current));x(this,Ut,p(()=>this.group&&this.group.opts.readonly.current?!0:this.opts.readonly.current));A(this,"attachment");x(this,Lt,p(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current})));x(this,Yt,p(()=>({id:this.opts.id.current,role:"checkbox",type:this.opts.type.current,disabled:this.trueDisabled,"aria-checked":is(this.opts.checked.current,this.opts.indeterminate.current),"aria-required":Ee(this.trueRequired),"aria-readonly":Ee(this.trueReadonly),"data-disabled":xt(this.trueDisabled),"data-readonly":xt(this.trueReadonly),"data-state":Xs(this.opts.checked.current,this.opts.indeterminate.current),[Ls.root]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment})));this.opts=t,this.group=e,this.attachment=Le(this.opts.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),Ct.pre([()=>{var r;return Bs((r=this.group)==null?void 0:r.opts.value.current)},()=>this.opts.value.current],([r,s])=>{!r||!s||(this.opts.checked.current=r.includes(s))}),Ct.pre(()=>this.opts.checked.current,r=>{var s,i;this.group&&(r?(s=this.group)==null||s.addValue(this.opts.value.current):(i=this.group)==null||i.removeValue(this.opts.value.current))})}static create(t,e=null){return Fr.set(new lr(t,e))}get trueName(){return n(c(this,Ft))}set trueName(t){v(c(this,Ft),t)}get trueRequired(){return n(c(this,qt))}set trueRequired(t){v(c(this,qt),t)}get trueDisabled(){return n(c(this,Bt))}set trueDisabled(t){v(c(this,Bt),t)}get trueReadonly(){return n(c(this,Ut))}set trueReadonly(t){v(c(this,Ut),t)}onkeydown(t){if(!(this.trueDisabled||this.trueReadonly)){if(t.key===ss){if(t.preventDefault(),this.opts.type.current==="submit"){const e=t.currentTarget.closest("form");e==null||e.requestSubmit()}return}t.key===ns&&(t.preventDefault(),L(this,wt,Ne).call(this))}}onclick(t){if(!(this.trueDisabled||this.trueReadonly)){if(this.opts.type.current==="submit"){L(this,wt,Ne).call(this);return}t.preventDefault(),L(this,wt,Ne).call(this)}}get snippetProps(){return n(c(this,Lt))}set snippetProps(t){v(c(this,Lt),t)}get props(){return n(c(this,Yt))}set props(t){v(c(this,Yt),t)}};Ft=new WeakMap,qt=new WeakMap,Bt=new WeakMap,Ut=new WeakMap,wt=new WeakSet,Ne=function(){this.opts.indeterminate.current?(this.opts.indeterminate.current=!1,this.opts.checked.current=!0):this.opts.checked.current=!this.opts.checked.current},Lt=new WeakMap,Yt=new WeakMap;let sr=lr;var Xt,Wt,jt;const dr=class dr{constructor(t){A(this,"root");x(this,Xt,p(()=>this.root.group?!!(this.root.opts.value.current!==void 0&&this.root.group.opts.value.current.includes(this.root.opts.value.current)):this.root.opts.checked.current));x(this,Wt,p(()=>!!this.root.trueName));x(this,jt,p(()=>({type:"checkbox",checked:this.root.opts.checked.current===!0,disabled:this.root.trueDisabled,required:this.root.trueRequired,name:this.root.trueName,value:this.root.opts.value.current,readonly:this.root.trueReadonly,onfocus:this.onfocus})));this.root=t,this.onfocus=this.onfocus.bind(this)}static create(){return new dr(Fr.get())}get trueChecked(){return n(c(this,Xt))}set trueChecked(t){v(c(this,Xt),t)}get shouldRender(){return n(c(this,Wt))}set shouldRender(t){v(c(this,Wt),t)}onfocus(t){os(this.root.opts.ref.current)&&this.root.opts.ref.current.focus()}get props(){return n(c(this,jt))}set props(t){v(c(this,jt),t)}};Xt=new WeakMap,Wt=new WeakMap,jt=new WeakMap;let nr=dr;function Xs(a,t){return t?"indeterminate":a?"checked":"unchecked"}function Ws(a,t){lt(t,!1);const e=nr.create();as();var r=$(),s=X(r);{var i=o=>{Us(o,Ye(()=>e.props))};G(s,o=>{e.shouldRender&&o(i)})}y(a,r),dt()}var js=new Set(["$$slots","$$events","$$legacy","checked","ref","onCheckedChange","children","disabled","required","name","value","id","indeterminate","onIndeterminateChange","child","type","readonly"]),Hs=E(""),Gs=E(" ",1);function Ks(a,t){const e=Xe();lt(t,!0);let r=P(t,"checked",15,!1),s=P(t,"ref",15,null),i=P(t,"disabled",3,!1),o=P(t,"required",3,!1),l=P(t,"name",3,void 0),u=P(t,"value",3,"on"),d=P(t,"id",19,()=>We(e)),h=P(t,"indeterminate",15,!1),m=P(t,"type",3,"button"),f=kt(t,js);const k=Ys.getOr(null);k&&u()&&(k.opts.value.current.includes(u())?r(!0):r(!1)),Ct.pre(()=>u(),()=>{k&&u()&&(k.opts.value.current.includes(u())?r(!0):r(!1))});const S=sr.create({checked:w(()=>r(),V=>{var D;r(V),(D=t.onCheckedChange)==null||D.call(t,V)}),disabled:w(()=>i()??!1),required:w(()=>o()),name:w(()=>l()),value:w(()=>u()),id:w(()=>d()),ref:w(()=>s(),V=>s(V)),indeterminate:w(()=>h(),V=>{var D;h(V),(D=t.onIndeterminateChange)==null||D.call(t,V)}),type:w(()=>m()),readonly:w(()=>!!t.readonly)},k),q=p(()=>Ge({...f},S.props));var U=Gs(),N=X(U);{var T=V=>{var D=$(),it=X(D);{let F=p(()=>({props:n(q),...S.snippetProps}));ut(it,()=>t.child,()=>n(F))}y(V,D)},K=V=>{var D=Hs();je(D,()=>({...n(q)}));var it=b(D);ut(it,()=>t.children??He,()=>S.snippetProps),y(V,D)};G(N,V=>{t.child?V(T):V(K,-1)})}var nt=g(N,2);Ws(nt,{}),y(a,U),dt()}var Ht,Gt;class Zs{constructor(t,e){x(this,Ht);x(this,Gt);Qe(this,Ht,t),Qe(this,Gt,e),this.handler=this.handler.bind(this),cs(this.handler)}handler(){let t=0;const e=c(this,Ht).call(this);if(!e)return;const r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(c(this,Gt))});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}}Ht=new WeakMap,Gt=new WeakMap;function Sr(a,t,e){const r={position:"absolute"};return a==="lr"?(r.left=`${t}%`,r.right=`${e}%`):a==="rl"?(r.right=`${t}%`,r.left=`${e}%`):a==="bt"?(r.bottom=`${t}%`,r.top=`${e}%`):(r.top=`${t}%`,r.bottom=`${e}%`),r}function qr(a,t){const e={position:"absolute"};return a==="lr"?(e.left=`${t}%`,e.translate="-50% 0"):a==="rl"?(e.right=`${t}%`,e.translate="50% 0"):a==="bt"?(e.bottom=`${t}%`,e.translate="0 50%"):(e.top=`${t}%`,e.translate="0 -50%"),e}function Br(a,t,e){const r={position:"absolute"};return a==="lr"?(r.left=`${t}%`,r.translate=`${e}% 0`):a==="rl"?(r.right=`${t}%`,r.translate=`${-e}% 0`):a==="bt"?(r.bottom=`${t}%`,r.translate=`0 ${-e}%`):(r.top=`${t}%`,r.translate=`0 ${e}%`),r}function Js(a){if(Math.floor(a)===a)return 0;const t=a.toString();if(t.indexOf(".")!==-1&&t.indexOf("e-")===-1)return t.split(".")[1].length;if(t.indexOf("e-")!==-1){const e=t.split("e-");return parseInt(e[1],10)}return 0}function Qs(a,t){const e=Math.pow(10,t);return Math.round(a*e)/e}function cr(a,t,e){if(typeof a=="number"){const r=e-t;let s=Math.ceil(r/a);const i=Js(a),o=Math.pow(10,i),l=Math.round(r*o),u=Math.round(a*o);l%u===0&&s++;const d=[];for(let h=0;hr>=t&&r<=e).sort((r,s)=>r-s)}function bt(a,t){if(t.length===0)return a;let e=t[0],r=Math.abs(a-e);for(const s of t){const i=Math.abs(a-s);i0?t[r-1]:a}function $s(a,t,e=!0){const[r,s]=a,[i,o]=t,l=(o-i)/(s-r);return u=>{const d=i+l*(u-r);return e?d>Math.max(i,o)?Math.max(i,o):dthis.opts.orientation.current==="horizontal"?this.opts.dir.current==="rtl"?"rl":"lr":this.opts.dir.current==="rtl"?"tb":"bt"));x(this,Jt,p(()=>cr(this.opts.step.current,this.opts.min.current,this.opts.max.current)));A(this,"domContext");x(this,Fe,()=>{v(c(this,St),n(c(this,St))+1)});x(this,qe,p(()=>{if(!this.opts.disabled.current)return this.opts.orientation.current==="horizontal"?"pan-y":"pan-x"}));A(this,"getAllThumbs",()=>{const t=this.opts.ref.current;return t?Array.from(t.querySelectorAll(ct.selector("thumb"))):[]});A(this,"getThumbScale",()=>{var d,h,m;n(c(this,St));const t=(d=this.opts.trackPadding)==null?void 0:d.current;if(t!==void 0&&t>0)return[t,100-t];if(this.opts.thumbPositioning.current==="exact")return[0,100];const e=this.opts.orientation.current==="vertical",r=this.getAllThumbs()[0],s=e?r==null?void 0:r.offsetHeight:r==null?void 0:r.offsetWidth;if(s===void 0||Number.isNaN(s)||s===0)return[0,100];const i=e?(h=this.opts.ref.current)==null?void 0:h.offsetHeight:(m=this.opts.ref.current)==null?void 0:m.offsetWidth;if(i===void 0||Number.isNaN(i)||i===0)return[0,100];const o=s/2/i*100,l=o,u=100-o;return[l,u]});A(this,"getPositionFromValue",t=>{const e=this.getThumbScale();return $s([this.opts.min.current,this.opts.max.current],e)(t)});x(this,Qt,p(()=>({id:this.opts.id.current,"data-orientation":this.opts.orientation.current,"data-disabled":xt(this.opts.disabled.current),style:{touchAction:n(c(this,qe))},[ct.root]:"",...this.attachment})));this.opts=t,this.attachment=Le(t.ref),this.domContext=new ls(this.opts.ref),new Zs(()=>this.opts.ref.current,c(this,Fe))}get isActive(){return n(c(this,Kt))}set isActive(t){v(c(this,Kt),t,!0)}get direction(){return n(c(this,Zt))}set direction(t){v(c(this,Zt),t)}get normalizedSteps(){return n(c(this,Jt))}set normalizedSteps(t){v(c(this,Jt),t)}isThumbActive(t){return this.isActive}get props(){return n(c(this,Qt))}set props(t){v(c(this,Qt),t)}}Kt=new WeakMap,St=new WeakMap,Zt=new WeakMap,Jt=new WeakMap,Fe=new WeakMap,qe=new WeakMap,Qt=new WeakMap;var $t,te,ee,re,se,ne,ie;class tn extends Ur{constructor(e){super(e);A(this,"opts");A(this,"isMulti",!1);A(this,"isTickValueSelected",e=>this.opts.value.current===e);A(this,"updateValue",e=>{this.opts.value.current=bt(e,this.normalizedSteps)});A(this,"handlePointerMove",e=>{if(!this.isActive||this.opts.disabled.current)return;e.preventDefault(),e.stopPropagation();const r=this.opts.ref.current,s=this.getAllThumbs()[0];if(!r||!s)return;s.focus();const{left:i,right:o,top:l,bottom:u}=r.getBoundingClientRect();this.direction==="lr"?this.applyPosition({clientXY:e.clientX,start:i,end:o}):this.direction==="rl"?this.applyPosition({clientXY:e.clientX,start:o,end:i}):this.direction==="bt"?this.applyPosition({clientXY:e.clientY,start:u,end:l}):this.direction==="tb"&&this.applyPosition({clientXY:e.clientY,start:l,end:u})});A(this,"handlePointerDown",e=>{if(e.button!==0||this.opts.disabled.current)return;const r=this.opts.ref.current,s=this.getAllThumbs()[0];if(!s||!r)return;const i=e.composedPath()[0]??e.target;!Or(i)||!r.contains(i)||(e.preventDefault(),s.focus(),this.isActive=!0,this.handlePointerMove(e))});A(this,"handlePointerUp",()=>{this.opts.disabled.current||(this.isActive&&this.opts.onValueCommit.current(Me(()=>this.opts.value.current)),this.isActive=!1)});x(this,$t,p(()=>{const e=this.opts.value.current;return Array.from({length:1},()=>{const r=e,s=this.getPositionFromValue(r),i=qr(this.direction,s);return{role:"slider","aria-valuemin":this.opts.min.current,"aria-valuemax":this.opts.max.current,"aria-valuenow":r,"aria-disabled":Ee(this.opts.disabled.current),"aria-orientation":this.opts.orientation.current,"data-value":r,"data-orientation":this.opts.orientation.current,style:i,[ct.thumb]:""}})}));x(this,te,p(()=>this.thumbsPropsArr.map((e,r)=>r)));x(this,ee,p(()=>{const e=this.normalizedSteps,r=this.opts.value.current;return e.map((s,i)=>{const o=this.getPositionFromValue(s),l=i===0,u=i===e.length-1,d=l?0:u?-100:-50,h=Br(this.direction,o,d),m=s<=r;return{"data-disabled":xt(this.opts.disabled.current),"data-orientation":this.opts.orientation.current,"data-bounded":m?"":void 0,"data-value":s,"data-selected":this.isTickValueSelected(s)?"":void 0,style:h,[ct.tick]:""}})}));x(this,re,p(()=>this.ticksPropsArr.map((e,r)=>r)));x(this,se,p(()=>this.ticksPropsArr.map((e,r)=>({value:e["data-value"],index:r}))));x(this,ne,p(()=>[{value:this.opts.value.current,index:0}]));x(this,ie,p(()=>({ticks:this.ticksRenderArr,thumbs:this.thumbsRenderArr,tickItems:this.tickItemsArr,thumbItems:this.thumbItemsArr})));this.opts=e,Er(()=>zr(at(this.domContext.getDocument(),"pointerdown",this.handlePointerDown),at(this.domContext.getDocument(),"pointerup",this.handlePointerUp),at(this.domContext.getDocument(),"pointermove",this.handlePointerMove),at(this.domContext.getDocument(),"pointerleave",this.handlePointerUp))),Ct([()=>this.opts.step.current,()=>this.opts.min.current,()=>this.opts.max.current,()=>this.opts.value.current],([r,s,i,o])=>{const l=cr(r,s,i),u=h=>l.includes(h),d=h=>bt(h,l);u(o)||(this.opts.value.current=d(o))})}applyPosition({clientXY:e,start:r,end:s}){const i=this.opts.min.current,o=this.opts.max.current,u=(e-r)/(s-r)*(o-i)+i;if(uo)this.updateValue(o);else{const d=this.normalizedSteps,h=bt(u,d);this.updateValue(h)}}get thumbsPropsArr(){return n(c(this,$t))}set thumbsPropsArr(e){v(c(this,$t),e)}get thumbsRenderArr(){return n(c(this,te))}set thumbsRenderArr(e){v(c(this,te),e)}get ticksPropsArr(){return n(c(this,ee))}set ticksPropsArr(e){v(c(this,ee),e)}get ticksRenderArr(){return n(c(this,re))}set ticksRenderArr(e){v(c(this,re),e)}get tickItemsArr(){return n(c(this,se))}set tickItemsArr(e){v(c(this,se),e)}get thumbItemsArr(){return n(c(this,ne))}set thumbItemsArr(e){v(c(this,ne),e)}get snippetProps(){return n(c(this,ie))}set snippetProps(e){v(c(this,ie),e)}}$t=new WeakMap,te=new WeakMap,ee=new WeakMap,re=new WeakMap,se=new WeakMap,ne=new WeakMap,ie=new WeakMap;var oe,ae,Be,ce,ue,le,de,he,pe,fe;class en extends Ur{constructor(e){super(e);A(this,"opts");A(this,"isMulti",!0);x(this,oe,Q(null));x(this,ae,Q(0));A(this,"isTickValueSelected",e=>this.opts.value.current.includes(e));x(this,Be,e=>{const r=this.getAllThumbs();if(!r.length)return;for(const l of r)l.blur();const s=r.map(l=>{if(this.opts.orientation.current==="horizontal"){const{left:u,right:d}=l.getBoundingClientRect();return Math.abs(e.clientX-(u+d)/2)}else{const{top:u,bottom:d}=l.getBoundingClientRect();return Math.abs(e.clientY-(u+d)/2)}}),i=r[s.indexOf(Math.min(...s))],o=r.indexOf(i);return{node:i,idx:o}});A(this,"handlePointerMove",e=>{if(!this.isActive||this.opts.disabled.current)return;e.preventDefault(),e.stopPropagation();const r=this.opts.ref.current,s=this.activeThumb;if(!r||!s)return;s.node.focus();const{left:i,right:o,top:l,bottom:u}=r.getBoundingClientRect(),d=this.direction;d==="lr"?this.applyPosition({clientXY:e.clientX,activeThumbIdx:s.idx,start:i,end:o}):d==="rl"?this.applyPosition({clientXY:e.clientX,activeThumbIdx:s.idx,start:o,end:i}):d==="bt"?this.applyPosition({clientXY:e.clientY,activeThumbIdx:s.idx,start:u,end:l}):d==="tb"&&this.applyPosition({clientXY:e.clientY,activeThumbIdx:s.idx,start:l,end:u})});A(this,"handlePointerDown",e=>{if(e.button!==0||this.opts.disabled.current)return;const r=this.opts.ref.current,s=c(this,Be).call(this,e);if(!s||!r)return;const i=e.composedPath()[0]??e.target;!Or(i)||!r.contains(i)||(e.preventDefault(),this.activeThumb=s,s.node.focus(),this.isActive=!0,this.handlePointerMove(e))});A(this,"handlePointerUp",()=>{this.opts.disabled.current||(this.isActive&&this.opts.onValueCommit.current(Me(()=>this.opts.value.current)),this.isActive=!1)});A(this,"getAllThumbs",()=>{const e=this.opts.ref.current;return e?Array.from(e.querySelectorAll(ct.selector("thumb"))):[]});A(this,"updateValue",(e,r)=>{const s=this.opts.value.current;if(!s.length){this.opts.value.current.push(e);return}if(s[r]===e)return;const o=[...s];if(!us(r,o))return;const l=o[r]>e?-1:1,u=()=>{var f;const h=r+l;o[r]=o[h],o[h]=e;const m=this.getAllThumbs();m.length&&((f=m[h])==null||f.focus(),this.activeThumb={node:m[h],idx:h})};if(this.opts.autoSort.current&&(l===-1&&eo[r+1])){u(),this.opts.value.current=o;return}const d=this.normalizedSteps;o[r]=bt(e,d),this.opts.value.current=o});x(this,ce,p(()=>{const e=this.opts.value.current;return Array.from({length:e.length||1},(r,s)=>{const i=Me(()=>this.currentThumbIdx);i{this.currentThumbIdx=i+1});const o=e[s],l=this.getPositionFromValue(o??0),u=qr(this.direction,l);return{role:"slider","aria-valuemin":this.opts.min.current,"aria-valuemax":this.opts.max.current,"aria-valuenow":o,"aria-disabled":Ee(this.opts.disabled.current),"aria-orientation":this.opts.orientation.current,"data-value":o,"data-orientation":this.opts.orientation.current,style:u,[ct.thumb]:""}})}));x(this,ue,p(()=>this.thumbsPropsArr.map((e,r)=>r)));x(this,le,p(()=>{const e=this.normalizedSteps,r=this.opts.value.current;return e.map((s,i)=>{const o=this.getPositionFromValue(s),l=i===0,u=i===e.length-1,d=l?0:u?-100:-50,h=Br(this.direction,o,d),m=r.length===1?s<=r[0]:r[0]<=s&&s<=r[r.length-1];return{"data-disabled":xt(this.opts.disabled.current),"data-orientation":this.opts.orientation.current,"data-bounded":m?"":void 0,"data-value":s,style:h,[ct.tick]:""}})}));x(this,de,p(()=>this.ticksPropsArr.map((e,r)=>r)));x(this,he,p(()=>this.ticksPropsArr.map((e,r)=>({value:e["data-value"],index:r}))));x(this,pe,p(()=>this.opts.value.current.map((r,s)=>({value:r,index:s}))));x(this,fe,p(()=>({ticks:this.ticksRenderArr,thumbs:this.thumbsRenderArr,tickItems:this.tickItemsArr,thumbItems:this.thumbItemsArr})));this.opts=e,Er(()=>zr(at(this.domContext.getDocument(),"pointerdown",this.handlePointerDown),at(this.domContext.getDocument(),"pointerup",this.handlePointerUp),at(this.domContext.getDocument(),"pointermove",this.handlePointerMove),at(this.domContext.getDocument(),"pointerleave",this.handlePointerUp))),Ct([()=>this.opts.step.current,()=>this.opts.min.current,()=>this.opts.max.current,()=>this.opts.value.current],([r,s,i,o])=>{const l=cr(r,s,i),u=h=>l.includes(h),d=h=>bt(h,l);o.some(h=>!u(h))&&(this.opts.value.current=o.map(d))})}get activeThumb(){return n(c(this,oe))}set activeThumb(e){v(c(this,oe),e,!0)}get currentThumbIdx(){return n(c(this,ae))}set currentThumbIdx(e){v(c(this,ae),e,!0)}isThumbActive(e){var r;return this.isActive&&((r=this.activeThumb)==null?void 0:r.idx)===e}applyPosition({clientXY:e,activeThumbIdx:r,start:s,end:i}){const o=this.opts.min.current,l=this.opts.max.current,d=(e-s)/(i-s)*(l-o)+o;if(dl)this.updateValue(l,r);else{const h=this.normalizedSteps,m=bt(d,h);this.updateValue(m,r)}}get thumbsPropsArr(){return n(c(this,ce))}set thumbsPropsArr(e){v(c(this,ce),e)}get thumbsRenderArr(){return n(c(this,ue))}set thumbsRenderArr(e){v(c(this,ue),e)}get ticksPropsArr(){return n(c(this,le))}set ticksPropsArr(e){v(c(this,le),e)}get ticksRenderArr(){return n(c(this,de))}set ticksRenderArr(e){v(c(this,de),e)}get tickItemsArr(){return n(c(this,he))}set tickItemsArr(e){v(c(this,he),e)}get thumbItemsArr(){return n(c(this,pe))}set thumbItemsArr(e){v(c(this,pe),e)}get snippetProps(){return n(c(this,fe))}set snippetProps(e){v(c(this,fe),e)}}oe=new WeakMap,ae=new WeakMap,Be=new WeakMap,ce=new WeakMap,ue=new WeakMap,le=new WeakMap,de=new WeakMap,he=new WeakMap,pe=new WeakMap,fe=new WeakMap;class rn{static create(t){const{type:e,...r}=t,s=e==="single"?new tn(r):new en(r);return ur.set(s)}}const sn=[Rr,Vr,Tr,Ir,Dr,Mr];var ve,me;const hr=class hr{constructor(t,e){A(this,"opts");A(this,"root");A(this,"attachment");x(this,ve,p(()=>{var t;if(Array.isArray(this.root.opts.value.current)){const e=this.root.opts.value.current.length>1?this.root.getPositionFromValue(Math.min(...this.root.opts.value.current)??0):0,r=100-this.root.getPositionFromValue(Math.max(...this.root.opts.value.current)??0);return{position:"absolute",...Sr(this.root.direction,e,r)}}else{const e=(t=this.root.opts.trackPadding)==null?void 0:t.current,r=this.root.opts.value.current,s=this.root.opts.max.current,i=0,o=e!==void 0&&e>0&&r===s?0:100-this.root.getPositionFromValue(r);return{position:"absolute",...Sr(this.root.direction,i,o)}}}));x(this,me,p(()=>({id:this.opts.id.current,"data-orientation":this.root.opts.orientation.current,"data-disabled":xt(this.root.opts.disabled.current),style:this.rangeStyles,[ct.range]:"",...this.attachment})));this.opts=t,this.root=e,this.attachment=Le(t.ref)}static create(t){return new hr(t,ur.get())}get rangeStyles(){return n(c(this,ve))}set rangeStyles(t){v(c(this,ve),t)}get props(){return n(c(this,me))}set props(t){v(c(this,me),t)}};ve=new WeakMap,me=new WeakMap;let ir=hr;var Ue,H,J,ge;const pr=class pr{constructor(t,e){x(this,H);A(this,"opts");A(this,"root");A(this,"attachment");x(this,Ue,p(()=>this.root.opts.disabled.current||this.opts.disabled.current));x(this,ge,p(()=>({...this.root.thumbsPropsArr[this.opts.index.current],id:this.opts.id.current,onkeydown:this.onkeydown,"data-active":this.root.isThumbActive(this.opts.index.current)?"":void 0,"data-disabled":xt(this.opts.disabled.current||this.root.opts.disabled.current),tabindex:this.opts.disabled.current||this.root.opts.disabled.current?-1:0,...this.attachment})));this.opts=t,this.root=e,this.attachment=Le(t.ref),this.onkeydown=this.onkeydown.bind(this)}static create(t){return new pr(t,ur.get())}onkeydown(t){if(n(c(this,Ue)))return;const e=this.opts.ref.current;if(!e)return;const r=this.root.getAllThumbs();if(!r.length)return;const s=r.indexOf(e);if(this.root.isMulti&&(this.root.currentThumbIdx=s),!sn.includes(t.key))return;t.preventDefault();const i=this.root.opts.min.current,o=this.root.opts.max.current,l=this.root.opts.value.current,u=Array.isArray(l)?l[s]:l,d=this.root.opts.orientation.current,h=this.root.direction,m=this.root.normalizedSteps;switch(t.key){case Dr:L(this,H,J).call(this,i);break;case Mr:L(this,H,J).call(this,o);break;case Rr:if(d!=="horizontal")break;if(t.metaKey){const f=h==="rl"?o:i;L(this,H,J).call(this,f)}else{const k=Ie(u,m,h==="rl"?"next":"prev");L(this,H,J).call(this,k)}break;case Vr:if(d!=="horizontal")break;if(t.metaKey){const f=h==="rl"?i:o;L(this,H,J).call(this,f)}else{const k=Ie(u,m,h==="rl"?"prev":"next");L(this,H,J).call(this,k)}break;case Tr:if(t.metaKey){const f=h==="tb"?i:o;L(this,H,J).call(this,f)}else{const k=Ie(u,m,h==="tb"?"prev":"next");L(this,H,J).call(this,k)}break;case Ir:if(t.metaKey){const f=h==="tb"?o:i;L(this,H,J).call(this,f)}else{const k=Ie(u,m,h==="tb"?"next":"prev");L(this,H,J).call(this,k)}break}this.root.opts.onValueCommit.current(this.root.opts.value.current)}get props(){return n(c(this,ge))}set props(t){v(c(this,ge),t)}};Ue=new WeakMap,H=new WeakSet,J=function(t){this.root.isMulti?this.root.updateValue(t,this.opts.index.current):this.root.updateValue(t)},ge=new WeakMap;let or=pr;var nn=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","value","type","onValueChange","onValueCommit","disabled","min","max","step","dir","autoSort","orientation","thumbPositioning","trackPadding"]),on=E("");function an(a,t){const e=Xe();lt(t,!0);let r=P(t,"id",19,()=>We(e)),s=P(t,"ref",15,null),i=P(t,"value",15),o=P(t,"onValueChange",3,kr),l=P(t,"onValueCommit",3,kr),u=P(t,"disabled",3,!1),d=P(t,"step",3,1),h=P(t,"dir",3,"ltr"),m=P(t,"autoSort",3,!0),f=P(t,"orientation",3,"horizontal"),k=P(t,"thumbPositioning",3,"contain"),S=kt(t,nn);const q=p(()=>t.min!==void 0?t.min:Array.isArray(d())?Math.min(...d()):0),U=p(()=>t.max!==void 0?t.max:Array.isArray(d())?Math.max(...d()):100);function N(){if(i()===void 0)return t.type==="single"?n(q):[]}N(),Ct.pre(()=>i(),()=>{N()});const T=rn.create({id:w(()=>r()),ref:w(()=>s(),F=>s(F)),value:w(()=>i(),F=>{i(F),o()(F)}),onValueCommit:w(()=>l()),disabled:w(()=>u()),min:w(()=>n(q)),max:w(()=>n(U)),step:w(()=>d()),dir:w(()=>h()),autoSort:w(()=>m()),orientation:w(()=>f()),thumbPositioning:w(()=>k()),type:t.type,trackPadding:w(()=>t.trackPadding)}),K=p(()=>Ge(S,T.props));var nt=$(),V=X(nt);{var D=F=>{var ot=$(),Rt=X(ot);{let Ke=p(()=>({props:n(K),...T.snippetProps}));ut(Rt,()=>t.child,()=>n(Ke))}y(F,ot)},it=F=>{var ot=on();je(ot,()=>({...n(K)}));var Rt=b(ot);ut(Rt,()=>t.children??He,()=>T.snippetProps),y(F,ot)};G(V,F=>{t.child?F(D):F(it,-1)})}y(a,nt),dt()}var cn=new Set(["$$slots","$$events","$$legacy","children","child","ref","id"]),un=E("");function ln(a,t){const e=Xe();lt(t,!0);let r=P(t,"ref",15,null),s=P(t,"id",19,()=>We(e)),i=kt(t,cn);const o=ir.create({id:w(()=>s()),ref:w(()=>r(),f=>r(f))}),l=p(()=>Ge(i,o.props));var u=$(),d=X(u);{var h=f=>{var k=$(),S=X(k);ut(S,()=>t.child,()=>({props:n(l)})),y(f,k)},m=f=>{var k=un();je(k,()=>({...n(l)}));var S=b(k);ut(S,()=>t.children??He),y(f,k)};G(d,f=>{t.child?f(h):f(m,-1)})}y(a,u),dt()}var dn=new Set(["$$slots","$$events","$$legacy","children","child","ref","id","index","disabled"]),hn=E("");function pn(a,t){const e=Xe();lt(t,!0);let r=P(t,"ref",15,null),s=P(t,"id",19,()=>We(e)),i=P(t,"disabled",3,!1),o=kt(t,dn);const l=or.create({id:w(()=>s()),ref:w(()=>r(),k=>r(k)),index:w(()=>t.index),disabled:w(()=>i())}),u=p(()=>Ge(o,l.props));var d=$(),h=X(d);{var m=k=>{var S=$(),q=X(S);{let U=p(()=>({active:l.root.isThumbActive(l.opts.index.current),props:n(u)}));ut(q,()=>t.child,()=>n(U))}y(k,S)},f=k=>{var S=hn();je(S,()=>({...n(u)}));var q=b(S);{let U=p(()=>({active:l.root.isThumbActive(l.opts.index.current)}));ut(q,()=>t.children??He,()=>n(U))}y(k,S)};G(h,k=>{t.child?k(m):k(f,-1)})}y(a,d),dt()}var fn=new Set(["$$slots","$$events","$$legacy"]);function vn(a,t){let e=kt(t,fn);const r=[["path",{d:"M12 22v-5"}],["path",{d:"M15 8V2"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z"}],["path",{d:"M9 8V2"}]];ds(a,Ye({name:"plug"},()=>e,{get iconNode(){return r}}))}var mn=new Set(["$$slots","$$events","$$legacy","ref","checked","indeterminate","class"]),gn=E('
');function bn(a,t){lt(t,!0);let e=P(t,"ref",15,null),r=P(t,"checked",15,!1),s=P(t,"indeterminate",15,!1),i=kt(t,mn);var o=$(),l=X(o);{const u=(h,m)=>{let f=()=>(m==null?void 0:m()).checked,k=()=>(m==null?void 0:m()).indeterminate;var S=gn(),q=b(S);{var U=T=>{hs(T,{class:"size-3.5"})},N=T=>{rr(T,{class:"size-3.5"})};G(q,T=>{k()?T(U):f()&&T(N,1)})}y(h,S)};let d=p(()=>ze("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50",t.class));Et(l,()=>Ks,(h,m)=>{m(h,Ye({"data-slot":"checkbox",get class(){return n(d)}},()=>i,{get ref(){return e()},set ref(f){e(f)},get checked(){return r()},set checked(f){r(f)},get indeterminate(){return s()},set indeterminate(f){s(f)},children:u,$$slots:{default:!0}}))})}y(a,o),dt()}var xn=new Set(["$$slots","$$events","$$legacy","ref","value","orientation","class"]),kn=E(' ',1);function De(a,t){lt(t,!0);let e=P(t,"ref",15,null),r=P(t,"value",15),s=P(t,"orientation",3,"horizontal"),i=kt(t,xn);var o=$(),l=X(o);{const u=(h,m)=>{let f=()=>(m==null?void 0:m()).thumbItems;var k=kn(),S=X(k),q=b(S);{let N=p(()=>ze("bg-primary absolute select-none data-horizontal:h-full data-vertical:w-full"));Et(q,()=>ln,(T,K)=>{K(T,{"data-slot":"slider-range",get class(){return n(N)}})})}var U=g(S,2);Oe(U,17,f,N=>N.index,(N,T)=>{var K=$(),nt=X(K);Et(nt,()=>pn,(V,D)=>{D(V,{"data-slot":"slider-thumb",get index(){return n(T).index},class:"border-primary ring-ring/50 size-4 rounded-full border bg-white shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden block shrink-0 select-none disabled:pointer-events-none disabled:opacity-50"})}),y(N,K)}),tt(N=>{Nr(S,"data-orientation",s()),Nt(S,1,N)},[()=>ps(ze("bg-muted rounded-full data-horizontal:h-1.5 data-horizontal:w-full data-vertical:h-full data-vertical:w-1.5 bg-muted relative grow overflow-hidden data-horizontal:w-full data-vertical:h-full"))]),y(h,k)};let d=p(()=>ze("data-vertical:min-h-40 relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-vertical:h-full data-vertical:w-auto data-vertical:flex-col",t.class));Et(l,()=>an,(h,m)=>{m(h,Ye({"data-slot":"slider",get orientation(){return s()},get class(){return n(d)}},()=>i,{get ref(){return e()},set ref(f){e(f)},get value(){return r()},set value(f){r(f)},children:u,$$slots:{default:!0}}))})}y(a,o),dt()}var yn=E(''),_n=E('

Signed in via Authentik as

'),An=E(" ",1),Pn=E('

'),wn=E('
'),Sn=E('

Connection

Where the control room talks to your Oikos server.

or use
'),Cn=E(''),Rn=E(''),Vn=E('

Appearance

Pick the theme for the whole desktop.

Desktop background

A subtle CSS pattern behind your icons, in the style of magicpattern.design.

Fades the pattern out toward the edges, like a vignette.

'),Tn=E('
');function Nn(a,t){lt(t,!0);const e=[{id:"appearance",label:"Appearance",icon:vs},{id:"connection",label:"Connection",icon:vn}];let r=Q("appearance");const s=yr();let i=Q($e(s.apiUrl??"")),o=Q($e(s.token??"")),l=Q(!1),u=Q(""),d=Q(!1);const h=Ts(),m=Ds();async function f(){if(v(u,""),!n(o).trim()){v(u,"Token is required");return}v(l,!0);const C=yr();Ve({apiUrl:n(i).trim(),token:n(o).trim()}),Te({apiUrl:n(i).trim(),token:n(o).trim()});try{const M=await Ms("/api/v1/dashboard/summary");if(!M.ok){v(u,M.status===401?"Invalid token":`Server responded ${M.status}`,!0),Ve(C),Te(C);return}zs.success("Connection saved")}catch{v(u,"Could not reach server — check the URL"),Ve(C),Te(C)}finally{v(l,!1)}}async function k(){v(u,""),v(d,!0),Ve({apiUrl:n(i).trim(),token:""}),Te({apiUrl:n(i).trim(),token:""});try{await Is()}catch(C){v(u,C instanceof Error?C.message:"OIDC login failed",!0),v(d,!1)}}function S(){Fs(),qs(),location.reload()}function q(C){Os(C)}const U=.55;function N(C,M){const W=Es(C,M);return W?`opacity:${U};${W}`:""}let T=Q($e(z().fillColor??"#ffffff"));function K(C){wr(C?n(T):null)}function nt(C){const M=C.currentTarget.value;v(T,M,!0),wr(M)}const V=p(()=>z().pattern==="none");var D=Tn(),it=b(D),F=b(it);Oe(F,21,()=>e,C=>C.id,(C,M)=>{var W=yn(),ht=b(W);Et(ht,()=>n(M).icon,(ft,yt)=>{yt(ft,{class:"size-4 shrink-0"})});var pt=g(ht);tt(()=>{Nt(W,1,`flex items-center gap-2 rounded-md px-2.5 py-1.5 text-left text-sm transition-colors ${n(r)===n(M).id?"bg-muted font-medium text-foreground":"text-muted-foreground hover:bg-muted/50 hover:text-foreground"}`),Y(pt,` ${n(M).label??""}`)}),Ot("click",W,()=>v(r,n(M).id,!0)),y(C,W)});var ot=g(F,2),Rt=b(ot);{var Ke=C=>{var M=Sn(),W=g(b(M),2);{var ht=R=>{var j=_n(),B=g(b(j)),et=b(B);tt(()=>Y(et,h)),y(R,j)};G(W,R=>{h&&R(ht)})}var pt=g(W,2),ft=b(pt);gt(ft,{for:"settings-server-url",class:"text-xs font-medium",children:(R,j)=>{var B=st("Server URL");y(R,B)},$$slots:{default:!0}});var yt=g(ft,2),be=b(yt);gs(be,{class:"pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground/50"});var Vt=g(be,2);_r(Vt,{id:"settings-server-url",type:"url",placeholder:"https://oikos.hubris.network",class:"pl-9",get value(){return n(i)},set value(R){v(i,R,!0)}});var xe=g(pt,2);tr(xe,{type:"button",variant:"secondary",get disabled(){return n(d)},onclick:k,class:"w-full gap-2",children:(R,j)=>{var B=An(),et=X(B);bs(et,{class:"size-4"});var It=g(et);tt(()=>Y(It,` ${n(d)?"Redirecting…":m?"Switch account with Authentik":"Login with Authentik"}`)),y(R,B)},$$slots:{default:!0}});var ke=g(xe,2),Tt=b(ke);er(Tt,{decorative:!0,class:"flex-1"});var ye=g(Tt,4);er(ye,{decorative:!0,class:"flex-1"});var _t=g(ke,2),_e=b(_t),Ae=b(_e);xs(Ae,{class:"pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground/50"});var At=g(Ae,2);_r(At,{type:"password",placeholder:"Bearer token",class:"pl-9",get value(){return n(o)},set value(R){v(o,R,!0)}});var Ze=g(_e,2);tr(Ze,{type:"submit",get disabled(){return n(l)},class:"w-full",children:(R,j)=>{var B=st();tt(()=>Y(B,n(l)?"Saving…":"Save")),y(R,B)},$$slots:{default:!0}});var Pe=g(_t,2);{var we=R=>{var j=Pn(),B=b(j);tt(()=>Y(B,n(u))),y(R,j)};G(Pe,R=>{n(u)&&R(we)})}var Se=g(Pe,2);{var Ce=R=>{var j=wn(),B=b(j);tr(B,{type:"button",variant:"ghost",size:"sm",onclick:S,children:(et,It)=>{var Re=st("Forget saved connection");y(et,Re)},$$slots:{default:!0}}),y(R,j)};G(Se,R=>{(s.token||m)&&R(Ce)})}ks("submit",_t,R=>{R.preventDefault(),f()}),y(C,M)},Lr=C=>{var M=Vn(),W=g(b(M),2);Oe(W,21,()=>Object.entries(ys),([_,O])=>_,(_,O)=>{var I=p(()=>Ns(n(O),2));let Z=()=>n(I)[0],Pt=()=>n(I)[1];var rt=Cn(),vt=b(rt),Dt=g(vt);{var Mt=zt=>{rr(zt,{class:"size-3.5 shrink-0 text-primary"})},mt=p(()=>Ar()===Z());G(Dt,zt=>{n(mt)&&zt(Mt)})}tt(zt=>{Nt(rt,1,`flex items-center justify-between gap-1.5 rounded-lg border px-2.5 py-1.5 text-left text-sm transition-colors ${zt??""}`),Y(vt,`${Pt()??""} `)},[()=>Ar()===Z()?"border-primary/50 bg-primary/5 text-foreground":"text-muted-foreground hover:bg-muted/50"]),Ot("click",rt,()=>q(Z())),y(_,rt)});var ht=g(W,2);er(ht,{decorative:!0});var pt=g(ht,4);Oe(pt,21,()=>Ps,_=>_.id,(_,O)=>{const I=p(()=>z().pattern===n(O).id);var Z=Rn(),Pt=b(Z),rt=g(Pt,2),vt=b(rt),Dt=g(vt);{var Mt=mt=>{rr(mt,{class:"size-3 text-primary"})};G(Dt,mt=>{n(I)&&mt(Mt)})}tt(mt=>{Nt(Z,1,`flex flex-col items-center gap-1.5 rounded-lg border p-2 transition-colors ${n(I)?"border-primary/60 bg-primary/5":"border-border hover:bg-muted/50"}`),Nr(Z,"title",n(O).label),_s(Pt,mt),Nt(rt,1,`flex items-center gap-1 text-[11px] ${n(I)?"font-medium text-foreground":"text-muted-foreground"}`),Y(vt,`${n(O).label??""} `)},[()=>N(n(O).id,z().color)]),Ot("click",Z,()=>As(n(O).id)),y(_,Z)});var ft=g(pt,2),yt=b(ft);gt(yt,{for:"bg-color",class:"text-xs font-medium",children:(_,O)=>{var I=st("Pattern color");y(_,I)},$$slots:{default:!0}});var be=g(yt,2),Vt=b(be),xe=g(Vt,2),ke=b(xe),Tt=g(ft,2),ye=b(Tt),_t=b(ye);{let _=p(()=>z().fillColor!==null);bn(_t,{id:"bg-fill-toggle",get checked(){return n(_)},onCheckedChange:O=>K(!!O)})}var _e=g(_t,2);gt(_e,{for:"bg-fill-toggle",class:"text-xs font-medium",children:(_,O)=>{var I=st("Custom background fill");y(_,I)},$$slots:{default:!0}});var Ae=g(ye,2),At=b(Ae),Ze=g(At,2),Pe=b(Ze),we=g(Tt,2),Se=b(we),Ce=b(Se);gt(Ce,{for:"bg-opacity",class:"text-xs font-medium",children:(_,O)=>{var I=st("Opacity");y(_,I)},$$slots:{default:!0}});var R=g(Ce,2),j=b(R),B=g(Se,2);{let _=p(()=>z().opacity);De(B,{id:"bg-opacity",type:"single",min:0,max:1,step:.01,get value(){return n(_)},get onValueChange(){return ws}})}var et=g(we,2),It=b(et),Re=b(It);gt(Re,{for:"bg-fade",class:"text-xs font-medium",children:(_,O)=>{var I=st("Fade mask");y(_,I)},$$slots:{default:!0}});var Wr=g(Re,2),jr=b(Wr),Hr=g(It,2);{let _=p(()=>z().fade);De(Hr,{id:"bg-fade",type:"single",min:0,max:1,step:.01,get value(){return n(_)},get onValueChange(){return Ss}})}var fr=g(et,2),vr=b(fr),mr=b(vr);gt(mr,{for:"bg-scale",class:"text-xs font-medium",children:(_,O)=>{var I=st("Size");y(_,I)},$$slots:{default:!0}});var Gr=g(mr,2),Kr=b(Gr),Zr=g(vr,2);{let _=p(()=>z().scale);De(Zr,{id:"bg-scale",type:"single",min:.4,max:3,step:.05,get value(){return n(_)},get onValueChange(){return Cs},get disabled(){return n(V)}})}var Jr=g(fr,2),gr=b(Jr),br=b(gr);gt(br,{for:"bg-rotation",class:"text-xs font-medium",children:(_,O)=>{var I=st("Rotation");y(_,I)},$$slots:{default:!0}});var Qr=g(br,2),$r=b(Qr),ts=g(gr,2);{let _=p(()=>z().rotation);De(ts,{id:"bg-rotation",type:"single",min:0,max:359,step:1,get value(){return n(_)},get onValueChange(){return Rs},get disabled(){return n(V)}})}tt((_,O,I,Z,Pt,rt,vt,Dt,Mt)=>{Pr(Vt,_),Y(ke,O),Pr(At,I),At.disabled=Z,Y(Pe,Pt),Y(j,`${rt??""}%`),Y(jr,vt),Y(Kr,`${Dt??""}%`),Y($r,`${Mt??""}°`)},[()=>z().color,()=>z().color,()=>z().fillColor??n(T),()=>z().fillColor===null,()=>z().fillColor??"Auto",()=>Math.round(z().opacity*100),()=>z().fade===0?"Off":`${Math.round(z().fade*100)}%`,()=>Math.round(z().scale*100),()=>Math.round(z().rotation)]),Ot("input",Vt,_=>Vs(_.currentTarget.value)),Ot("input",At,nt),y(C,M)};G(Rt,C=>{n(r)==="connection"?C(Ke):n(r)==="appearance"&&C(Lr,1)})}var Yr=g(it,2),Xr=b(Yr);tt(()=>Y(Xr,`Oikos ${ms}`)),y(a,D),dt()}fs(["click","input"]);export{Nn as default};