@roku-ui/vue 0.15.2 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Avatar.vue.d.ts +2 -0
- package/dist/components/Btn.vue.d.ts +2 -0
- package/dist/components/SchemeSwitch.vue.d.ts +10 -1
- package/dist/components/ScrollArea.vue.d.ts +7 -2
- package/dist/components/Select.vue.d.ts +6 -5
- package/dist/index.js +1947 -1856
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +6 -6
package/dist/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(k,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(k=typeof globalThis<"u"?globalThis:k||self,e(k["roku-ui"]={},k.Vue))})(this,function(k,e){"use strict";const Kt=e.defineComponent({__name:"AspectRatio",props:{ratio:{default:1},width:{},maxWidth:{},height:{},maxHeight:{}},setup(t){return(r,n)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({"--ar-ratio":r.ratio,width:r.width,"max-width":r.maxWidth,height:r.height,"max-height":r.maxHeight}),class:"relative children:absolute children:top-0 before:block before:h-0 children:h-full children:w-full before:pb-[calc((1/var(--ar-ratio,1))*100%)] before:content-['']"},[e.renderSlot(r.$slots,"default")],4))}});function Be(t){"@babel/helpers - typeof";return Be=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Be(t)}var Jt=/^\s+/,Zt=/\s+$/;function M(t,r){if(t=t||"",r=r||{},t instanceof M)return t;if(!(this instanceof M))return new M(t,r);var n=Qt(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||n.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}M.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var r=this.toRgb();return(r.r*299+r.g*587+r.b*114)/1e3},getLuminance:function(){var r=this.toRgb(),n,o,l,a,c,s;return n=r.r/255,o=r.g/255,l=r.b/255,n<=.03928?a=n/12.92:a=Math.pow((n+.055)/1.055,2.4),o<=.03928?c=o/12.92:c=Math.pow((o+.055)/1.055,2.4),l<=.03928?s=l/12.92:s=Math.pow((l+.055)/1.055,2.4),.2126*a+.7152*c+.0722*s},setAlpha:function(r){return this._a=dt(r),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var r=st(this._r,this._g,this._b);return{h:r.h*360,s:r.s,v:r.v,a:this._a}},toHsvString:function(){var r=st(this._r,this._g,this._b),n=Math.round(r.h*360),o=Math.round(r.s*100),l=Math.round(r.v*100);return this._a==1?"hsv("+n+", "+o+"%, "+l+"%)":"hsva("+n+", "+o+"%, "+l+"%, "+this._roundA+")"},toHsl:function(){var r=at(this._r,this._g,this._b);return{h:r.h*360,s:r.s,l:r.l,a:this._a}},toHslString:function(){var r=at(this._r,this._g,this._b),n=Math.round(r.h*360),o=Math.round(r.s*100),l=Math.round(r.l*100);return this._a==1?"hsl("+n+", "+o+"%, "+l+"%)":"hsla("+n+", "+o+"%, "+l+"%, "+this._roundA+")"},toHex:function(r){return it(this._r,this._g,this._b,r)},toHexString:function(r){return"#"+this.toHex(r)},toHex8:function(r){return nr(this._r,this._g,this._b,this._a,r)},toHex8String:function(r){return"#"+this.toHex8(r)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(R(this._r,255)*100)+"%",g:Math.round(R(this._g,255)*100)+"%",b:Math.round(R(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(R(this._r,255)*100)+"%, "+Math.round(R(this._g,255)*100)+"%, "+Math.round(R(this._b,255)*100)+"%)":"rgba("+Math.round(R(this._r,255)*100)+"%, "+Math.round(R(this._g,255)*100)+"%, "+Math.round(R(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:hr[it(this._r,this._g,this._b,!0)]||!1},toFilter:function(r){var n="#"+ct(this._r,this._g,this._b,this._a),o=n,l=this._gradientType?"GradientType = 1, ":"";if(r){var a=M(r);o="#"+ct(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+l+"startColorstr="+n+",endColorstr="+o+")"},toString:function(r){var n=!!r;r=r||this._format;var o=!1,l=this._a<1&&this._a>=0,a=!n&&l&&(r==="hex"||r==="hex6"||r==="hex3"||r==="hex4"||r==="hex8"||r==="name");return a?r==="name"&&this._a===0?this.toName():this.toRgbString():(r==="rgb"&&(o=this.toRgbString()),r==="prgb"&&(o=this.toPercentageRgbString()),(r==="hex"||r==="hex6")&&(o=this.toHexString()),r==="hex3"&&(o=this.toHexString(!0)),r==="hex4"&&(o=this.toHex8String(!0)),r==="hex8"&&(o=this.toHex8String()),r==="name"&&(o=this.toName()),r==="hsl"&&(o=this.toHslString()),r==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},clone:function(){return M(this.toString())},_applyModification:function(r,n){var o=r.apply(null,[this].concat([].slice.call(n)));return this._r=o._r,this._g=o._g,this._b=o._b,this.setAlpha(o._a),this},lighten:function(){return this._applyModification(sr,arguments)},brighten:function(){return this._applyModification(ir,arguments)},darken:function(){return this._applyModification(cr,arguments)},desaturate:function(){return this._applyModification(or,arguments)},saturate:function(){return this._applyModification(lr,arguments)},greyscale:function(){return this._applyModification(ar,arguments)},spin:function(){return this._applyModification(ur,arguments)},_applyCombination:function(r,n){return r.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(pr,arguments)},complement:function(){return this._applyCombination(dr,arguments)},monochromatic:function(){return this._applyCombination(mr,arguments)},splitcomplement:function(){return this._applyCombination(fr,arguments)},triad:function(){return this._applyCombination(ut,[3])},tetrad:function(){return this._applyCombination(ut,[4])}},M.fromRatio=function(t,r){if(Be(t)=="object"){var n={};for(var o in t)t.hasOwnProperty(o)&&(o==="a"?n[o]=t[o]:n[o]=we(t[o]));t=n}return M(t,r)};function Qt(t){var r={r:0,g:0,b:0},n=1,o=null,l=null,a=null,c=!1,s=!1;return typeof t=="string"&&(t=wr(t)),Be(t)=="object"&&(ee(t.r)&&ee(t.g)&&ee(t.b)?(r=er(t.r,t.g,t.b),c=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):ee(t.h)&&ee(t.s)&&ee(t.v)?(o=we(t.s),l=we(t.v),r=rr(t.h,o,l),c=!0,s="hsv"):ee(t.h)&&ee(t.s)&&ee(t.l)&&(o=we(t.s),a=we(t.l),r=tr(t.h,o,a),c=!0,s="hsl"),t.hasOwnProperty("a")&&(n=t.a)),n=dt(n),{ok:c,format:t.format||s,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:n}}function er(t,r,n){return{r:R(t,255)*255,g:R(r,255)*255,b:R(n,255)*255}}function at(t,r,n){t=R(t,255),r=R(r,255),n=R(n,255);var o=Math.max(t,r,n),l=Math.min(t,r,n),a,c,s=(o+l)/2;if(o==l)a=c=0;else{var i=o-l;switch(c=s>.5?i/(2-o-l):i/(o+l),o){case t:a=(r-n)/i+(r<n?6:0);break;case r:a=(n-t)/i+2;break;case n:a=(t-r)/i+4;break}a/=6}return{h:a,s:c,l:s}}function tr(t,r,n){var o,l,a;t=R(t,360),r=R(r,100),n=R(n,100);function c(u,d,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?u+(d-u)*6*f:f<1/2?d:f<2/3?u+(d-u)*(2/3-f)*6:u}if(r===0)o=l=a=n;else{var s=n<.5?n*(1+r):n+r-n*r,i=2*n-s;o=c(i,s,t+1/3),l=c(i,s,t),a=c(i,s,t-1/3)}return{r:o*255,g:l*255,b:a*255}}function st(t,r,n){t=R(t,255),r=R(r,255),n=R(n,255);var o=Math.max(t,r,n),l=Math.min(t,r,n),a,c,s=o,i=o-l;if(c=o===0?0:i/o,o==l)a=0;else{switch(o){case t:a=(r-n)/i+(r<n?6:0);break;case r:a=(n-t)/i+2;break;case n:a=(t-r)/i+4;break}a/=6}return{h:a,s:c,v:s}}function rr(t,r,n){t=R(t,360)*6,r=R(r,100),n=R(n,100);var o=Math.floor(t),l=t-o,a=n*(1-r),c=n*(1-l*r),s=n*(1-(1-l)*r),i=o%6,u=[n,c,a,a,s,n][i],d=[s,n,n,c,a,a][i],f=[a,a,s,n,n,c][i];return{r:u*255,g:d*255,b:f*255}}function it(t,r,n,o){var l=[X(Math.round(t).toString(16)),X(Math.round(r).toString(16)),X(Math.round(n).toString(16))];return o&&l[0].charAt(0)==l[0].charAt(1)&&l[1].charAt(0)==l[1].charAt(1)&&l[2].charAt(0)==l[2].charAt(1)?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0):l.join("")}function nr(t,r,n,o,l){var a=[X(Math.round(t).toString(16)),X(Math.round(r).toString(16)),X(Math.round(n).toString(16)),X(ft(o))];return l&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function ct(t,r,n,o){var l=[X(ft(o)),X(Math.round(t).toString(16)),X(Math.round(r).toString(16)),X(Math.round(n).toString(16))];return l.join("")}M.equals=function(t,r){return!t||!r?!1:M(t).toRgbString()==M(r).toRgbString()},M.random=function(){return M.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function or(t,r){r=r===0?0:r||10;var n=M(t).toHsl();return n.s-=r/100,n.s=Ee(n.s),M(n)}function lr(t,r){r=r===0?0:r||10;var n=M(t).toHsl();return n.s+=r/100,n.s=Ee(n.s),M(n)}function ar(t){return M(t).desaturate(100)}function sr(t,r){r=r===0?0:r||10;var n=M(t).toHsl();return n.l+=r/100,n.l=Ee(n.l),M(n)}function ir(t,r){r=r===0?0:r||10;var n=M(t).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(r/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(r/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(r/100)))),M(n)}function cr(t,r){r=r===0?0:r||10;var n=M(t).toHsl();return n.l-=r/100,n.l=Ee(n.l),M(n)}function ur(t,r){var n=M(t).toHsl(),o=(n.h+r)%360;return n.h=o<0?360+o:o,M(n)}function dr(t){var r=M(t).toHsl();return r.h=(r.h+180)%360,M(r)}function ut(t,r){if(isNaN(r)||r<=0)throw new Error("Argument to polyad must be a positive number");for(var n=M(t).toHsl(),o=[M(t)],l=360/r,a=1;a<r;a++)o.push(M({h:(n.h+a*l)%360,s:n.s,l:n.l}));return o}function fr(t){var r=M(t).toHsl(),n=r.h;return[M(t),M({h:(n+72)%360,s:r.s,l:r.l}),M({h:(n+216)%360,s:r.s,l:r.l})]}function pr(t,r,n){r=r||6,n=n||30;var o=M(t).toHsl(),l=360/n,a=[M(t)];for(o.h=(o.h-(l*r>>1)+720)%360;--r;)o.h=(o.h+l)%360,a.push(M(o));return a}function mr(t,r){r=r||6;for(var n=M(t).toHsv(),o=n.h,l=n.s,a=n.v,c=[],s=1/r;r--;)c.push(M({h:o,s:l,v:a})),a=(a+s)%1;return c}M.mix=function(t,r,n){n=n===0?0:n||50;var o=M(t).toRgb(),l=M(r).toRgb(),a=n/100,c={r:(l.r-o.r)*a+o.r,g:(l.g-o.g)*a+o.g,b:(l.b-o.b)*a+o.b,a:(l.a-o.a)*a+o.a};return M(c)},M.readability=function(t,r){var n=M(t),o=M(r);return(Math.max(n.getLuminance(),o.getLuminance())+.05)/(Math.min(n.getLuminance(),o.getLuminance())+.05)},M.isReadable=function(t,r,n){var o=M.readability(t,r),l,a;switch(a=!1,l=Sr(n),l.level+l.size){case"AAsmall":case"AAAlarge":a=o>=4.5;break;case"AAlarge":a=o>=3;break;case"AAAsmall":a=o>=7;break}return a},M.mostReadable=function(t,r,n){var o=null,l=0,a,c,s,i;n=n||{},c=n.includeFallbackColors,s=n.level,i=n.size;for(var u=0;u<r.length;u++)a=M.readability(t,r[u]),a>l&&(l=a,o=M(r[u]));return M.isReadable(t,o,{level:s,size:i})||!c?o:(n.includeFallbackColors=!1,M.mostReadable(t,["#fff","#000"],n))};var De=M.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},hr=M.hexNames=gr(De);function gr(t){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[t[n]]=n);return r}function dt(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function R(t,r){yr(t)&&(t="100%");var n=br(t);return t=Math.min(r,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*r,10)/100),Math.abs(t-r)<1e-6?1:t%r/parseFloat(r)}function Ee(t){return Math.min(1,Math.max(0,t))}function L(t){return parseInt(t,16)}function yr(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function br(t){return typeof t=="string"&&t.indexOf("%")!=-1}function X(t){return t.length==1?"0"+t:""+t}function we(t){return t<=1&&(t=t*100+"%"),t}function ft(t){return Math.round(parseFloat(t)*255).toString(16)}function pt(t){return L(t)/255}var Y=function(){var t="[-\\+]?\\d+%?",r="[-\\+]?\\d*\\.\\d+%?",n="(?:"+r+")|(?:"+t+")",o="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",l="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+o),rgba:new RegExp("rgba"+l),hsl:new RegExp("hsl"+o),hsla:new RegExp("hsla"+l),hsv:new RegExp("hsv"+o),hsva:new RegExp("hsva"+l),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ee(t){return!!Y.CSS_UNIT.exec(t)}function wr(t){t=t.replace(Jt,"").replace(Zt,"").toLowerCase();var r=!1;if(De[t])t=De[t],r=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=Y.rgb.exec(t))?{r:n[1],g:n[2],b:n[3]}:(n=Y.rgba.exec(t))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Y.hsl.exec(t))?{h:n[1],s:n[2],l:n[3]}:(n=Y.hsla.exec(t))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Y.hsv.exec(t))?{h:n[1],s:n[2],v:n[3]}:(n=Y.hsva.exec(t))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Y.hex8.exec(t))?{r:L(n[1]),g:L(n[2]),b:L(n[3]),a:pt(n[4]),format:r?"name":"hex8"}:(n=Y.hex6.exec(t))?{r:L(n[1]),g:L(n[2]),b:L(n[3]),format:r?"name":"hex"}:(n=Y.hex4.exec(t))?{r:L(n[1]+""+n[1]),g:L(n[2]+""+n[2]),b:L(n[3]+""+n[3]),a:pt(n[4]+""+n[4]),format:r?"name":"hex8"}:(n=Y.hex3.exec(t))?{r:L(n[1]+""+n[1]),g:L(n[2]+""+n[2]),b:L(n[3]+""+n[3]),format:r?"name":"hex"}:!1}function Sr(t){var r,n;return t=t||{level:"AA",size:"small"},r=(t.level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),r!=="AA"&&r!=="AAA"&&(r="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:r,size:n}}function W(t){return e.computed(()=>({style:kr(t.rounded),class:"rounded-[var(--r-rounded)]"}))}function kr(t){const r=/^-?(?:\d+(?:\.\d+)?|\.\d+)(?:px|em|rem|vh|vw|in|cm|mm|pt|pc|%)?$/;switch(t){case"none":return"--r-rounded: 0";case"sm":return"--r-rounded: 0.125rem";case"md":return"--r-rounded: 0.25rem";case"lg":return"--r-rounded: 0.5rem";case"full":return"--r-rounded: 9999px";default:return typeof t=="string"&&r.test(t)?`--r-rounded: ${t};`:typeof t=="number"||!Number.isNaN(Number(t))?`--r-rounded: ${t}rem;`:"rounded-[var(--r-rounded)]"}}const Pe=e.ref([]);function mt(){return Pe}class vr{static show(r){r.hash=Math.random().toString(36),Pe.value=[r,...Pe.value]}}const Oe=Symbol("tabCurrent"),Fe=Symbol("direction"),xr=Symbol("tabValueList"),Le=Symbol("childrenElementMapSymbol");function Cr(t){const r=M(t).toHsl().l;return G.reduce((n,o)=>Math.abs(o-r)<Math.abs(n-r)?o:n)}function ht(t,r=G){const n=q(t,r);return{...n,colors:n.colors.map(o=>o.toHexString())}}function q(t,r=G){const n=M(t),o=Cr(n),l=r.findIndex(c=>c===o),a=r.map(c=>{const s=M({h:n.toHsl().h,s:n.toHsl().s,l:c}),i=0;return n.toHsl().h>=20&&n.toHsl().h<=200&&s.darken(2),s.saturate(i*100),s});return{baseColorIndex:l,colors:a.map(c=>c)}}function pe(t,r=G){return ht(t,r).colors}function _r(t,r){let n,o,l;const a=e.ref(!0),c=()=>{a.value=!0,l()};e.watch(t,c,{flush:"sync"});const s=typeof r=="function"?r:r.get,i=typeof r=="function"?void 0:r.set,u=e.customRef((d,f)=>(o=d,l=f,{get(){return a.value&&(n=s(n),a.value=!1),o(),n},set(p){i==null||i(p)}}));return Object.isExtensible(u)&&(u.trigger=c),u}function Se(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function gt(){const t=new Set,r=l=>{t.delete(l)};return{on:l=>{t.add(l);const a=()=>r(l);return Se(a),{off:a}},off:r,trigger:(...l)=>Promise.all(Array.from(t).map(a=>a(...l)))}}function P(t){return typeof t=="function"?t():e.unref(t)}const te=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Br=t=>t!=null,Er=Object.prototype.toString,Mr=t=>Er.call(t)==="[object Object]",K=()=>{},$r=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),zr=Ar();function Ar(){var t,r;return te&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((r=window==null?void 0:window.navigator)==null?void 0:r.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function We(t,r){function n(...o){return new Promise((l,a)=>{Promise.resolve(t(()=>r.apply(this,o),{fn:r,thisArg:this,args:o})).then(l).catch(a)})}return n}const yt=t=>t();function Vr(t,r={}){let n,o,l=K;const a=s=>{clearTimeout(s),l(),l=K};return s=>{const i=P(t),u=P(r.maxWait);return n&&a(n),i<=0||u!==void 0&&u<=0?(o&&(a(o),o=null),Promise.resolve(s())):new Promise((d,f)=>{l=r.rejectOnCancel?f:d,u&&!o&&(o=setTimeout(()=>{n&&a(n),o=null,d(s())},u)),n=setTimeout(()=>{o&&a(o),o=null,d(s())},i)})}}function Hr(...t){let r=0,n,o=!0,l=K,a,c,s,i,u;!e.isRef(t[0])&&typeof t[0]=="object"?{delay:c,trailing:s=!0,leading:i=!0,rejectOnCancel:u=!1}=t[0]:[c,s=!0,i=!0,u=!1]=t;const d=()=>{n&&(clearTimeout(n),n=void 0,l(),l=K)};return p=>{const m=P(c),g=Date.now()-r,h=()=>a=p();return d(),m<=0?(r=Date.now(),h()):(g>m&&(i||!o)?(r=Date.now(),h()):s&&(a=new Promise((S,v)=>{l=u?v:S,n=setTimeout(()=>{r=Date.now(),o=!0,S(h()),d()},Math.max(0,m-g))})),!i&&!n&&(n=setTimeout(()=>o=!0,m)),o=!1,a)}}function Tr(t=yt){const r=e.ref(!0);function n(){r.value=!1}function o(){r.value=!0}const l=(...a)=>{r.value&&t(...a)};return{isActive:e.readonly(r),pause:n,resume:o,eventFilter:l}}function Nr(t){return e.getCurrentInstance()}function bt(t,r=200,n={}){return We(Vr(r,n),t)}function Rr(t,r=200,n={}){const o=e.ref(t.value),l=bt(()=>{o.value=t.value},r,n);return e.watch(t,()=>l()),o}function Ir(t,r=200,n=!1,o=!0,l=!1){return We(Hr(r,n,o,l),t)}function Dr(t,r,n={}){const{eventFilter:o=yt,...l}=n;return e.watch(t,We(o,r),l)}function Pr(t,r,n={}){const{eventFilter:o,...l}=n,{eventFilter:a,pause:c,resume:s,isActive:i}=Tr(o);return{stop:Dr(t,r,{...l,eventFilter:a}),pause:c,resume:s,isActive:i}}function me(t,r=!0,n){Nr()?e.onMounted(t,n):r?t():e.nextTick(t)}const j=te?window:void 0,Or=te?window.document:void 0;function F(t){var r;const n=P(t);return(r=n==null?void 0:n.$el)!=null?r:n}function T(...t){let r,n,o,l;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,o,l]=t,r=j):[r,n,o,l]=t,!r)return K;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const a=[],c=()=>{a.forEach(d=>d()),a.length=0},s=(d,f,p,m)=>(d.addEventListener(f,p,m),()=>d.removeEventListener(f,p,m)),i=e.watch(()=>[F(r),P(l)],([d,f])=>{if(c(),!d)return;const p=Mr(f)?{...f}:f;a.push(...n.flatMap(m=>o.map(g=>s(d,m,g,p))))},{immediate:!0,flush:"post"}),u=()=>{i(),c()};return Se(u),u}let wt=!1;function St(t,r,n={}){const{window:o=j,ignore:l=[],capture:a=!0,detectIframe:c=!1}=n;if(!o)return K;zr&&!wt&&(wt=!0,Array.from(o.document.body.children).forEach(m=>m.addEventListener("click",K)),o.document.documentElement.addEventListener("click",K));let s=!0;const i=m=>P(l).some(g=>{if(typeof g=="string")return Array.from(o.document.querySelectorAll(g)).some(h=>h===m.target||m.composedPath().includes(h));{const h=F(g);return h&&(m.target===h||m.composedPath().includes(h))}}),u=m=>{const g=F(t);if(!(!g||g===m.target||m.composedPath().includes(g))){if(m.detail===0&&(s=!i(m)),!s){s=!0;return}r(m)}};let d=!1;const f=[T(o,"click",m=>{d||(d=!0,setTimeout(()=>{d=!1},0),u(m))},{passive:!0,capture:a}),T(o,"pointerdown",m=>{const g=F(t);s=!i(m)&&!!(g&&!m.composedPath().includes(g))},{passive:!0}),c&&T(o,"blur",m=>{setTimeout(()=>{var g;const h=F(t);((g=o.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(h!=null&&h.contains(o.document.activeElement))&&r(m)},0)})].filter(Boolean);return()=>f.forEach(m=>m())}function Fr(t){return typeof t=="function"?t:typeof t=="string"?r=>r.key===t:Array.isArray(t)?r=>t.includes(r.key):()=>!0}function ae(...t){let r,n,o={};t.length===3?(r=t[0],n=t[1],o=t[2]):t.length===2?typeof t[1]=="object"?(r=!0,n=t[0],o=t[1]):(r=t[0],n=t[1]):(r=!0,n=t[0]);const{target:l=j,eventName:a="keydown",passive:c=!1,dedupe:s=!1}=o,i=Fr(r);return T(l,a,d=>{d.repeat&&P(s)||i(d)&&n(d)},c)}function Lr(){const t=e.ref(!1),r=e.getCurrentInstance();return r&&e.onMounted(()=>{t.value=!0},r),t}function je(t){const r=Lr();return e.computed(()=>(r.value,!!t()))}function Ge(t,r,n={}){const{window:o=j,...l}=n;let a;const c=je(()=>o&&"MutationObserver"in o),s=()=>{a&&(a.disconnect(),a=void 0)},i=e.computed(()=>{const p=P(t),m=(Array.isArray(p)?p:[p]).map(F).filter(Br);return new Set(m)}),u=e.watch(()=>i.value,p=>{s(),c.value&&p.size&&(a=new MutationObserver(r),p.forEach(m=>a.observe(m,l)))},{immediate:!0,flush:"post"}),d=()=>a==null?void 0:a.takeRecords(),f=()=>{u(),s()};return Se(f),{isSupported:c,stop:f,takeRecords:d}}function Wr(t,r={}){const{window:n=j}=r,o=je(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let l;const a=e.ref(!1),c=u=>{a.value=u.matches},s=()=>{l&&("removeEventListener"in l?l.removeEventListener("change",c):l.removeListener(c))},i=e.watchEffect(()=>{o.value&&(s(),l=n.matchMedia(P(t)),"addEventListener"in l?l.addEventListener("change",c):l.addListener(c),a.value=l.matches)});return Se(()=>{i(),s(),l=void 0}),a}const Me=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},$e="__vueuse_ssr_handlers__",jr=Gr();function Gr(){return $e in Me||(Me[$e]=Me[$e]||{}),Me[$e]}function Ur(t,r){return jr[t]||r}function Xr(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}const Yr={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},kt="vueuse-storage";function qr(t,r,n,o={}){var l;const{flush:a="pre",deep:c=!0,listenToStorageChanges:s=!0,writeDefaults:i=!0,mergeDefaults:u=!1,shallow:d,window:f=j,eventFilter:p,onError:m=w=>{console.error(w)},initOnMounted:g}=o,h=(d?e.shallowRef:e.ref)(r);if(!n)try{n=Ur("getDefaultStorage",()=>{var w;return(w=j)==null?void 0:w.localStorage})()}catch(w){m(w)}if(!n)return h;const S=P(r),v=Xr(S),y=(l=o.serializer)!=null?l:Yr[v],{pause:C,resume:E}=Pr(h,()=>_(h.value),{flush:a,deep:c,eventFilter:p});f&&s&&me(()=>{n instanceof Storage?T(f,"storage",B):T(f,kt,z),g&&B()}),g||B();function x(w,$){if(f){const V={key:t,oldValue:w,newValue:$,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",V):new CustomEvent(kt,{detail:V}))}}function _(w){try{const $=n.getItem(t);if(w==null)x($,null),n.removeItem(t);else{const V=y.write(w);$!==V&&(n.setItem(t,V),x($,V))}}catch($){m($)}}function b(w){const $=w?w.newValue:n.getItem(t);if($==null)return i&&S!=null&&n.setItem(t,y.write(S)),S;if(!w&&u){const V=y.read($);return typeof u=="function"?u(V,S):v==="object"&&!Array.isArray(V)?{...S,...V}:V}else return typeof $!="string"?$:y.read($)}function B(w){if(!(w&&w.storageArea!==n)){if(w&&w.key==null){h.value=S;return}if(!(w&&w.key!==t)){C();try{(w==null?void 0:w.newValue)!==y.write(h.value)&&(h.value=b(w))}catch($){m($)}finally{w?e.nextTick(E):E()}}}}function z(w){B(w.detail)}return h}function Kr(t){const r=e.getCurrentInstance(),n=_r(()=>null,()=>r.proxy.$el);return e.onUpdated(n.trigger),e.onMounted(n.trigger),n}function Jr(t,r={}){var n,o;const l=e.ref(!1),a=e.shallowRef(null);let c=0,s=!0;if(te){const i=typeof r=="function"?{onDrop:r}:r,u=(n=i.multiple)!=null?n:!0,d=(o=i.preventDefaultForUnhandled)!=null?o:!1,f=h=>{var S,v;const y=Array.from((v=(S=h.dataTransfer)==null?void 0:S.files)!=null?v:[]);return y.length===0?null:u?y:[y[0]]},p=h=>{if(i.dataTypes){const S=e.unref(i.dataTypes);return typeof S=="function"?S(h):S?S.some(v=>h.includes(v)):!0}return!0},m=h=>{var S,v;const y=Array.from((v=(S=h.dataTransfer)==null?void 0:S.items)!=null?v:[]),C=y.filter(_=>_.kind==="file").map(_=>_.type),E=p(C),x=u||y.filter(_=>_.kind==="file").length<=1;return E&&x},g=(h,S)=>{var v,y,C,E;if(s=m(h),!s){d&&h.preventDefault(),h.dataTransfer&&(h.dataTransfer.dropEffect="none");return}h.preventDefault(),h.dataTransfer&&(h.dataTransfer.dropEffect="copy");const x=f(h);switch(S){case"enter":c+=1,l.value=!0,(v=i.onEnter)==null||v.call(i,null,h);break;case"over":(y=i.onOver)==null||y.call(i,null,h);break;case"leave":c-=1,c===0&&(l.value=!1),(C=i.onLeave)==null||C.call(i,null,h);break;case"drop":c=0,l.value=!1,s&&(a.value=x,(E=i.onDrop)==null||E.call(i,x,h));break}};T(t,"dragenter",h=>g(h,"enter")),T(t,"dragover",h=>g(h,"over")),T(t,"dragleave",h=>g(h,"leave")),T(t,"drop",h=>g(h,"drop"))}return{files:a,isOverDropZone:l}}function Ue(t,r,n={}){const{window:o=j,...l}=n;let a;const c=je(()=>o&&"ResizeObserver"in o),s=()=>{a&&(a.disconnect(),a=void 0)},i=e.computed(()=>{const f=P(t);return Array.isArray(f)?f.map(p=>F(p)):[F(f)]}),u=e.watch(i,f=>{if(s(),c.value&&o){a=new ResizeObserver(r);for(const p of f)p&&a.observe(p,l)}},{immediate:!0,flush:"post"}),d=()=>{s(),u()};return Se(d),{isSupported:c,stop:d}}function re(t,r={}){const{reset:n=!0,windowResize:o=!0,windowScroll:l=!0,immediate:a=!0,updateTiming:c="sync"}=r,s=e.ref(0),i=e.ref(0),u=e.ref(0),d=e.ref(0),f=e.ref(0),p=e.ref(0),m=e.ref(0),g=e.ref(0);function h(){const v=F(t);if(!v){n&&(s.value=0,i.value=0,u.value=0,d.value=0,f.value=0,p.value=0,m.value=0,g.value=0);return}const y=v.getBoundingClientRect();s.value=y.height,i.value=y.bottom,u.value=y.left,d.value=y.right,f.value=y.top,p.value=y.width,m.value=y.x,g.value=y.y}function S(){c==="sync"?h():c==="next-frame"&&requestAnimationFrame(()=>h())}return Ue(t,S),e.watch(()=>F(t),v=>!v&&S()),Ge(t,S,{attributeFilter:["style","class"]}),l&&T("scroll",S,{capture:!0,passive:!0}),o&&T("resize",S,{passive:!0}),me(()=>{a&&S()}),{height:s,bottom:i,left:u,right:d,top:f,width:p,x:m,y:g,update:S}}function ke(t,r={}){const{delayEnter:n=0,delayLeave:o=0,window:l=j}=r,a=e.ref(!1);let c;const s=i=>{const u=i?n:o;c&&(clearTimeout(c),c=void 0),u?c=setTimeout(()=>a.value=i,u):a.value=i};return l&&(T(t,"mouseenter",()=>s(!0),{passive:!0}),T(t,"mouseleave",()=>s(!1),{passive:!0})),a}const Zr={multiple:!0,accept:"*",reset:!1,directory:!1};function Qr(t={}){const{document:r=Or}=t,n=e.ref(null),{on:o,trigger:l}=gt(),{on:a,trigger:c}=gt();let s;r&&(s=r.createElement("input"),s.type="file",s.onchange=d=>{const f=d.target;n.value=f.files,l(n.value)},s.oncancel=()=>{c()});const i=()=>{n.value=null,s&&s.value&&(s.value="",l(null))},u=d=>{if(!s)return;const f={...Zr,...t,...d};s.multiple=f.multiple,s.accept=f.accept,s.webkitdirectory=f.directory,$r(f,"capture")&&(s.capture=f.capture),f.reset&&i(),s.click()};return{files:e.readonly(n),open:u,reset:i,onCancel:a,onChange:o}}const vt=1;function en(t,r={}){const{throttle:n=0,idle:o=200,onStop:l=K,onScroll:a=K,offset:c={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:i="auto",window:u=j,onError:d=b=>{console.error(b)}}=r,f=e.ref(0),p=e.ref(0),m=e.computed({get(){return f.value},set(b){h(b,void 0)}}),g=e.computed({get(){return p.value},set(b){h(void 0,b)}});function h(b,B){var z,w,$,V;if(!u)return;const H=P(t);if(!H)return;($=H instanceof Document?u.document.body:H)==null||$.scrollTo({top:(z=P(B))!=null?z:g.value,left:(w=P(b))!=null?w:m.value,behavior:P(i)});const I=((V=H==null?void 0:H.document)==null?void 0:V.documentElement)||(H==null?void 0:H.documentElement)||H;m!=null&&(f.value=I.scrollLeft),g!=null&&(p.value=I.scrollTop)}const S=e.ref(!1),v=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),y=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),C=b=>{S.value&&(S.value=!1,y.left=!1,y.right=!1,y.top=!1,y.bottom=!1,l(b))},E=bt(C,n+o),x=b=>{var B;if(!u)return;const z=((B=b==null?void 0:b.document)==null?void 0:B.documentElement)||(b==null?void 0:b.documentElement)||F(b),{display:w,flexDirection:$}=getComputedStyle(z),V=z.scrollLeft;y.left=V<f.value,y.right=V>f.value;const H=Math.abs(V)<=(c.left||0),I=Math.abs(V)+z.clientWidth>=z.scrollWidth-(c.right||0)-vt;w==="flex"&&$==="row-reverse"?(v.left=I,v.right=H):(v.left=H,v.right=I),f.value=V;let N=z.scrollTop;b===u.document&&!N&&(N=u.document.body.scrollTop),y.top=N<p.value,y.bottom=N>p.value;const Q=Math.abs(N)<=(c.top||0),A=Math.abs(N)+z.clientHeight>=z.scrollHeight-(c.bottom||0)-vt;w==="flex"&&$==="column-reverse"?(v.top=A,v.bottom=Q):(v.top=Q,v.bottom=A),p.value=N},_=b=>{var B;if(!u)return;const z=(B=b.target.documentElement)!=null?B:b.target;x(z),S.value=!0,E(b),a(b)};return T(t,"scroll",n?Ir(_,n,!0,!1):_,s),me(()=>{try{const b=P(t);if(!b)return;x(b)}catch(b){d(b)}}),T(t,"scrollend",C,s),{x:m,y:g,isScrolling:S,arrivedState:v,directions:y,measure(){const b=P(t);u&&b&&x(b)}}}function xt(t,r,n={}){const{window:o=j}=n;return qr(t,r,o==null?void 0:o.localStorage,n)}const tn={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function rn(t={}){const{reactive:r=!1,target:n=j,aliasMap:o=tn,passive:l=!0,onEventFired:a=K}=t,c=e.reactive(new Set),s={toJSON(){return{}},current:c},i=r?e.reactive(s):s,u=new Set,d=new Set;function f(h,S){h in i&&(r?i[h]=S:i[h].value=S)}function p(){c.clear();for(const h of d)f(h,!1)}function m(h,S){var v,y;const C=(v=h.key)==null?void 0:v.toLowerCase(),x=[(y=h.code)==null?void 0:y.toLowerCase(),C].filter(Boolean);C&&(S?c.add(C):c.delete(C));for(const _ of x)d.add(_),f(_,S);C==="meta"&&!S?(u.forEach(_=>{c.delete(_),f(_,!1)}),u.clear()):typeof h.getModifierState=="function"&&h.getModifierState("Meta")&&S&&[...c,...x].forEach(_=>u.add(_))}T(n,"keydown",h=>(m(h,!0),a(h)),{passive:l}),T(n,"keyup",h=>(m(h,!1),a(h)),{passive:l}),T("blur",p,{passive:!0}),T("focus",p,{passive:!0});const g=new Proxy(i,{get(h,S,v){if(typeof S!="string")return Reflect.get(h,S,v);if(S=S.toLowerCase(),S in o&&(S=o[S]),!(S in i))if(/[+_-]/.test(S)){const C=S.split(/[+_-]/g).map(E=>E.trim());i[S]=e.computed(()=>C.every(E=>P(g[E])))}else i[S]=e.ref(!1);const y=Reflect.get(h,S,v);return r?P(y):y}});return g}const nn={page:t=>[t.pageX,t.pageY],client:t=>[t.clientX,t.clientY],screen:t=>[t.screenX,t.screenY],movement:t=>t instanceof Touch?null:[t.movementX,t.movementY]};function ze(t={}){const{type:r="page",touch:n=!0,resetOnTouchEnds:o=!1,initialValue:l={x:0,y:0},window:a=j,target:c=a,scroll:s=!0,eventFilter:i}=t;let u=null;const d=e.ref(l.x),f=e.ref(l.y),p=e.ref(null),m=typeof r=="function"?r:nn[r],g=x=>{const _=m(x);u=x,_&&([d.value,f.value]=_,p.value="mouse")},h=x=>{if(x.touches.length>0){const _=m(x.touches[0]);_&&([d.value,f.value]=_,p.value="touch")}},S=()=>{if(!u||!a)return;const x=m(u);u instanceof MouseEvent&&x&&(d.value=x[0]+a.scrollX,f.value=x[1]+a.scrollY)},v=()=>{d.value=l.x,f.value=l.y},y=i?x=>i(()=>g(x),{}):x=>g(x),C=i?x=>i(()=>h(x),{}):x=>h(x),E=i?()=>i(()=>S(),{}):()=>S();if(c){const x={passive:!0};T(c,["mousemove","dragover"],y,x),n&&r!=="movement"&&(T(c,["touchstart","touchmove"],C,x),o&&T(c,"touchend",v,x)),s&&r==="page"&&T(a,"scroll",E,{passive:!0})}return{x:d,y:f,sourceType:p}}function Ct(t=Kr()){const r=e.shallowRef(),n=()=>{const o=F(t);o&&(r.value=o.parentElement)};return me(n),e.watch(()=>P(t),n),r}function _t(t){const r=e.ref(0),n=e.computed(()=>F(t)),o=()=>{n.value&&(r.value=n.value.scrollHeight)};return o(),me(o),Ue(()=>n.value,o),Ge(()=>n.value,o,{childList:!0,subtree:!0,attributes:!0}),r}function Bt(t,r={}){const{initialWidth:n=Number.POSITIVE_INFINITY,listenOrientation:o=!0}=r,l=e.ref(n),a=e.computed(()=>F(t)),c=()=>{a.value&&(l.value=a.value.clientHeight)};if(c(),me(c),T("resize",c,{passive:!0}),Ue(()=>a.value,c),Ge(()=>a.value,c,{childList:!0,subtree:!0,attributes:!0}),o){const s=Wr("(orientation: portrait)");e.watch(s,()=>c())}return l}const G=[.98,.8,.7,.6,.43,.4,.36,.3,.2,.1,.01],se=[1,.99,.95,.9,.7,.5,.3,.2,.1,.075,.05];function on(){if(!te)return e.ref("dark");const t=e.ref(document.documentElement.dataset.scheme);return new MutationObserver(n=>{n.forEach(o=>{o.type==="attributes"&&o.attributeName==="data-scheme"&&(t.value=document.documentElement.dataset.scheme)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["data-scheme"]}),t}function ln(){return e.inject("currentThemeScheme",null)}function Et(){return e.inject("currentThemeData",e.ref(tt))}function an(){return e.inject("currentThemeName",e.ref("default"))}function Mt(t,r,n={}){const o=G,l=se;return n.primary===void 0&&(n.primary=o),n.secondary===void 0&&(n.secondary=o),n.tertiary===void 0&&(n.tertiary=o),n.error===void 0&&(n.error=o),n.surface===void 0&&(n.surface=l),e.computed(()=>({name:t,colors:{primary:pe(e.unref(r.primary),n.primary),secondary:pe(e.unref(r.secondary),n.secondary),tertiary:pe(e.unref(r.tertiary),n.tertiary),error:pe(e.unref(r.error),n.error),surface:pe(e.unref(r.surface),n.surface)}}))}function sn(t,r=G){return e.computed(()=>{const n=e.unref(t);return typeof n=="string"?oe(n,r).value.map(o=>o.toHexString()):n})}function Xe(t){const r=e.ref(t);return{...{...Object.keys(r.value.colors).map(a=>{const c=a,s=r.value.colors[c];return sn(s,c==="surface"?se:G).value.reduce((d,f,p)=>{const m=M(f).toRgb();return d[`--r-color-${c}-${p}`]=`${m.r} ${m.g} ${m.b}`,d},{})}).reduce((a,c)=>({...a,...c}),{})},...{backgroundColor:"var(--r-surface-background-base-color)",color:"var(--r-surface-text-color)"}}}function Ae(t){const r=e.ref("");return e.onMounted(()=>{t.id?r.value=t.id:r.value=`switch-${Math.random().toString(36).slice(2)}-${Date.now().toString(36)}`}),r}const $t=Symbol("scheme");function zt(){const t=xt("scheme","light");return te&&new MutationObserver(()=>{t.value!==document.documentElement.dataset.scheme&&(t.value=document.documentElement.dataset.scheme)}).observe(document.documentElement,{attributes:!0,attributeFilter:["data-scheme"]}),t}const Ye=9,cn=7,qe=7,un=7,ve=3,dn=6,Ve=5,At=6,Ke=3,fn=4,Je=.25,pn=.3,Ze=1,mn=2,xe=7,hn=5,Qe=4,Vt=5,et=.08,gn=.15,ie=e.ref("#0067cc"),ce=e.ref("#5999A6"),ue=e.ref("#F76C22"),de=e.ref("#F95858"),Z=e.ref("#121212"),Ht=e.computed(()=>O({color:"surface",type:"border",index:{dark:qe,light:Ke}}).value);function yn(t){return _e(t,"text",{dark:ve,light:xe})}const bn=e.computed(()=>q(e.unref(ie),G).colors),wn=e.computed(()=>q(e.unref(ce),G).colors),Sn=e.computed(()=>q(e.unref(ue),G).colors),kn=e.computed(()=>q(e.unref(de),G).colors),vn=e.computed(()=>q(e.unref(Z),se).colors),tt=Mt("default",{primary:ie,secondary:ce,tertiary:ue,error:de,surface:Z});function he(t,r){return e.computed(()=>{switch(e.unref(t)){case"filled":return ye(r).value;case"light":return Rt(r).value;default:return He().value}})}function xn(t){return e.computed(()=>{const r=e.unref(t);switch(r){case"surface":return M(e.unref(Z));case"primary":return M(e.unref(ie));case"secondary":return M(e.unref(ce));case"tertiary":return M(e.unref(ue));case"error":return M(e.unref(de));default:return M(r)}})}const rt=new Map;function oe(t,r=G){return e.computed(()=>{const o=xn(t).value.toHexString();if(rt.has(o))return rt.get(o);function l(){const a=q(o,r).colors;return rt.set(o,a),a}return l()})}function Tt(){return e.computed(()=>q(e.unref(Z),se).colors)}function He(){return e.computed(()=>{const t=O({color:"surface",type:"bg",index:{dark:8,light:1}}),r=O({color:"surface",type:"border",index:{dark:7,light:3}}),n=ge(t,r);return n.value.class=[...n.value.class,"border"],n.value})}function nt(){return e.computed(()=>{const t=O({color:"surface",type:"bg",index:{dark:7,light:2}}),r=O({color:"surface",type:"border",index:{dark:6,light:4}});return ge(t,r).value})}function ge(...t){return e.computed(()=>({style:t.reduce((r,n)=>({...r,...n.value.style}),{}),class:t.reduce((r,n)=>[...r,...n.value.class],[])}))}function Nt(t){return e.computed(()=>{const r=O({color:t,type:"bg",index:{dark:5,light:4}}),n=O({color:"surface",type:"border",index:{dark:Ye,light:Ze}}),o=O({color:t,type:"text",index:0});return ge(r,n,o).value})}function ye(t){return e.computed(()=>{const r=O({color:t,type:"bg",index:{dark:5,light:4}}),n=O({color:t,type:"border",index:{dark:5,light:4}}),o=O({color:t,type:"text",index:0});return ge(r,n,o).value})}function Rt(t){return e.computed(()=>{const r=O({color:t,type:"bg",index:{dark:5,light:4},alpha:.15}),n=O({color:t,type:"text",index:{dark:2,light:5}}),o=O({color:t,type:"border",index:{dark:5,light:4},alpha:0});return ge(r,n,o).value})}function Ce(t,r,n,o,l=1){switch(r){case"outline":return{style:{"--d-outline":t[n].clone().setAlpha(l).toHex8String(),"--l-outline":t[o].clone().setAlpha(l).toHex8String()},class:["dark:focus-visible:outline-[--d-outline]","focus-visible:outline-[--l-outline]"]};case"bg":return{style:{"--d-bg":t[n].clone().setAlpha(l).toHex8String(),"--l-bg":t[o].clone().setAlpha(l).toHex8String()},class:["dark:bg-[--d-bg]","bg-[--l-bg]"]};case"border":return{style:{"--d-border":t[n].clone().setAlpha(l).toHex8String(),"--l-border":t[o].clone().setAlpha(l).toHex8String()},class:["dark:border-[--d-border]","border-[--l-border]"]};case"text":return{style:{"--d-text":t[n].clone().setAlpha(l).toHex8String(),"--l-text":t[o].clone().setAlpha(l).toHex8String()},class:["dark:text-[--d-text]","text-[--l-text]"]};case"placeholder":return{style:{"--d-placeholder":t[n].clone().setAlpha(l).toHex8String(),"--l-placeholder":t[o].clone().setAlpha(l).toHex8String()},class:["dark:placeholder-[--d-placeholder]","placeholder-[--l-placeholder]"]};case"hover:bg":return{style:{"--d-bg-h":t[n].clone().setAlpha(l).toHexString(),"--l-bg-h":t[o].clone().setAlpha(l).toHexString()},class:["dark:hover:bg-[--d-bg-h]","hover:bg-[--l-bg-h]"]};case"hover:border":return{style:{"--d-border-h":t[n].clone().setAlpha(l).toHexString(),"--l-border-h":t[o].clone().setAlpha(l).toHexString()},class:["dark:hover:border-[--d-border-h]","hover:border-[--l-border-h]"]};case"hover:text":return{style:{"--d-text-h":t[n].clone().setAlpha(l).toHexString(),"--l-text-h":t[o].clone().setAlpha(l).toHexString()},class:["dark:hover:text-[--d-text-h]","hover:text-[--l-text-h]"]}}}function O(t){return t.color==="surface"?be(t.type,t.index):_e(t.color,t.type,t.index,t.alpha)}function _e(t,r,n,o=1){return e.computed(()=>{const l=oe(t);return typeof n=="number"?Ce(e.unref(l),r,n,n,o):Ce(e.unref(l),r,n.dark,n.light,o)})}function be(t,r,n=1){return e.computed(()=>{const{colors:o}=q(e.unref(Z),se);return typeof r=="number"?Ce(o,t,r,r,n):Ce(o,t,r.dark,r.light,n)})}function Te(t="default",r="primary"){return e.computed(()=>{const n=oe(r).value,o=q(e.unref(Z),se).colors;return{style:{default:()=>Cn(o),filled:()=>_n(n),light:()=>Bn(n),outline:()=>En(n),transparent:()=>Mn(n),subtle:()=>$n(n),contrast:()=>zn(n),white:()=>An(n)}[e.unref(t)](),class:"custom-colors"}})}function Cn(t){return{"--d-bg":t[Ye].toHexString(),"--d-bg-h":t[cn].toHexString(),"--d-border":t[un].toHexString(),"--l-bg":t[Ze].toHexString(),"--l-bg-h":t[mn].toHexString(),"--l-border":t[fn].toHexString()}}function _n(t){return{"--d-border":"transparent","--d-bg":t[Ve].toHexString(),"--d-bg-h":t[At].toHexString(),"--d-text":"white","--l-bg":t[Qe].toHexString(),"--l-bg-h":t[Vt].toHexString(),"--l-text":"white","--l-text-h":"white","--l-border":"transparent"}}function Bn(t){return{"--d-border":"transparent","--d-bg":t[Ve].clone().setAlpha(Je).toHex8String(),"--d-bg-h":t[Ve].clone().setAlpha(pn).toHex8String(),"--d-text":t[ve].toHexString(),"--d-text-h":t[ve].toHexString(),"--l-bg":t[Qe].clone().setAlpha(et).toHex8String(),"--l-bg-h":t[Qe].clone().setAlpha(gn).toHex8String(),"--l-text":t[xe].toHexString(),"--l-text-h":t[xe].toHexString(),"--l-border":"transparent"}}function En(t){return{"--d-bg":"transparent","--d-bg-h":t[At].clone().setAlpha(Je).toHex8String(),"--d-text":t[ve].toHexString(),"--d-text-h":t[ve].toHexString(),"--d-border":t[qe].toHexString(),"--l-bg":"transparent","--l-bg-h":t[Vt].clone().setAlpha(et).toHex8String(),"--l-text":t[xe].toHexString(),"--l-text-h":t[xe].toHexString(),"--l-border":t[Ke].toHexString()}}function Mn(t){return{"--d-text":t[3].toHexString(),"--d-text-h":t[3].toHexString(),"--l-text":t[5].toHexString(),"--l-text-h":t[5].toHexString(),"--d-bg":"transparent","--l-bg":"transparent","--d-border":"transparent","--l-border":"transparent"}}function $n(t){return{"--d-bg":"transparent","--d-bg-h":t[3].clone().setAlpha(Je).toHex8String(),"--d-text":t[2].toHexString(),"--d-text-h":t[2].toHexString(),"--d-border":"transparent","--l-bg":"transparent","--l-bg-h":t[3].clone().setAlpha(et).toHex8String(),"--l-text":t[5].toHexString(),"--l-text-h":t[5].toHexString(),"--l-border":"transparent"}}function zn(t){return{"--d-text":t[2].toHexString(),"--d-text-h":"white","--d-bg":"transparent","--d-bg-h":t[5].toHexString(),"--d-border":"transparent","--l-text":t[5].toHexString(),"--l-text-h":"white","--l-bg":"transparent","--l-bg-h":t[5].toHexString(),"--l-border":"transparent"}}function An(t){return{"--d-bg":"white","--d-bg-h":"white","--d-text":t[4].toHexString(),"--d-text-h":t[4].toHexString(),"--d-border":"transparent","--l-bg":"white","--l-bg-h":"white","--l-text":t[5].toHexString(),"--l-text-h":t[5].toHexString(),"--l-border":"transparent"}}function ot(t,r="default"){return e.computed(()=>{const n=oe(t).value,o=Tt().value;switch(e.unref(r)){case"default":return{"--d-bg":o[Ye].toHexString(),"--d-border-f":n[Ve].toHexString(),"--d-border":o[qe].toHexString(),"--d-placeholder":o[dn].toHexString(),"--d-text":"white","--l-bg":o[Ze].toHexString(),"--l-border-f":n[3].toHexString(),"--l-border":o[Ke].toHexString(),"--l-placeholder":o[hn].toHexString(),"--l-text":"black"};case"filled":return{"--d-bg":n[5].toHexString(),"--d-bg-h":n[6].toHexString(),"--d-border":"transparent","--l-bg":n[5].toHexString(),"--l-bg-h":n[6].toHexString(),"--l-border":"transparent"}}})}const Vn={key:2,class:"i-fluent-person-24-filled"},It=e.defineComponent({__name:"Avatar",props:{is:{default:"img"},src:{},size:{default:"md"},name:{},variant:{default:"default"},color:{default:"default"},rounded:{default:"full"}},setup(t){const r=t,n=W(r),o=e.computed(()=>r.name||""),l=e.computed(()=>{switch(r.size){case"xs":return"--size: 2rem; --font-size: 1rem;";case"sm":return"--size: 3rem; --font-size: 1.25rem;";case"md":return"--size: 4rem; --font-size: 2rem;";case"lg":return"--size: 6rem; --font-size: 3rem;";case"xl":return"--size: 8rem; --font-size: 4rem;";default:return typeof r.size=="number"&&!Number.isNaN(Number(r.size))?`--size: ${r.size}rem; --font-size: ${r.size/2}rem;`:"--size: 4rem;"}}),a=e.ref(!1),c=e.ref(null);function s(){a.value=!0}e.onMounted(()=>{var f;(f=c.value)!=null&&f.complete&&s()});function i(f){return f.split(" ").map(p=>p[0]).join("").toUpperCase().slice(0,2)}const u=e.computed(()=>r.color),d=he(r.variant,u);return(f,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[f.src?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.is),e.mergeProps({key:0,ref_key:"img",ref:c,alt:o.value,class:[[e.unref(n).class,e.unref(d).class,{hidden:!a.value}],"inline-block h-[var(--size)] w-[var(--size)] rounded-full object-cover"],style:[e.unref(n).style,e.unref(d).style,l.value],src:f.src},f.$attrs,{onLoad:s}),null,16,["alt","class","style","src"])):e.createCommentVNode("",!0),!a.value||!f.src?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1,class:["inline-block h-[--size] w-[--size] flex items-center justify-center border-4 rounded-full object-cover font-size-[--font-size]",[e.unref(n).class,e.unref(d).class]],style:[e.unref(n).style,e.unref(d).style,l.value]},f.$attrs),[f.$slots.default?e.renderSlot(f.$slots,"default",{key:0}):o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(i(o.value)),1)],64)):(e.openBlock(),e.createElementBlock("i",Vn))],16)):e.createCommentVNode("",!0)],64))}}),Ne=e.defineComponent({__name:"Btn",props:{type:{default:"button"},size:{default:"md"},is:{default:"button"},icon:{type:Boolean,default:!1},pressEffect:{default:"translate"},variant:{},hoverVariant:{},color:{},rounded:{default:"md"},disabled:{type:Boolean,default:!1}},setup(t){const r=t,n=W(r),o=e.computed(()=>{switch(r.size){case"sm":return{normalContent:"min-w-16 h-6 px-2 py-1 text-xs",iconContent:"h-6 w-6 p-1"};case"lg":return{normalContent:"min-w-24 h-10 px-4 py-2 text-base",iconContent:"h-10 w-10 p-3"};case"md":default:return{normalContent:"min-w-20 h-8 px-3 py-1 text-sm",iconContent:"h-8 w-8 p-2"}}}),l=e.ref(null),a=ke(l),c=e.computed(()=>r.hoverVariant&&a.value?r.hoverVariant:r.variant??"default"),s=e.computed(()=>r.color??"primary"),i=Te(c,s);return(u,d)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.is),e.mergeProps({ref_key:"btn",ref:l,"data-size":u.size,type:u.type,class:["flex items-center justify-center gap-1 decoration-none",[e.unref(i).class,e.unref(n).class,u.icon?o.value.iconContent:o.value.normalContent,{"opacity-60 pointer-events-none select-none":u.disabled,"active:translate-y-0.25":u.pressEffect==="translate"}]],style:[e.unref(i).style,e.unref(n).style],disabled:u.disabled},u.$attrs),{default:e.withCtx(()=>[u.$slots.leftSection?e.renderSlot(u.$slots,"leftSection",{key:0}):e.createCommentVNode("",!0),e.renderSlot(u.$slots,"default"),u.$slots.rightSection?e.renderSlot(u.$slots,"rightSection",{key:1}):e.createCommentVNode("",!0)]),_:3},16,["data-size","type","style","class","disabled"]))}}),Hn=e.defineComponent({__name:"BtnGroup",props:e.mergeModels({selections:{},default:{},color:{default:"primary"},unselectable:{type:Boolean,default:void 0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,n=e.computed(()=>r.unselectable===void 0?r.selections.length===1:r.unselectable);function o(d){return typeof d=="string"?d:d.label??d.value}function l(d){return typeof d=="string"?d:d.value}function a(d){return typeof d=="string"?void 0:d.icon}const c=e.useModel(t,"modelValue");function s(d){l(d)===c.value&&n.value?c.value=void 0:c.value=l(d)}const i=e.computed(()=>r.selections.length===1),u=e.computed(()=>i.value?null:"first-children:rounded-r-0 first-children:border-r-none last-children:rounded-l-0 last-children:border-l-none not-first-children:rounded-l-0 not-last-children:rounded-r-0");return(d,f)=>{const p=Ne;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["w-auto inline-flex container",[u.value]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.selections,(m,g)=>(e.openBlock(),e.createBlock(p,{key:l(m),model:c.value,variant:l(m)===c.value?"filled":void 0,color:r.color,class:e.normalizeClass({"border-x-none":g!==0&&g!==r.selections.length-1}),onClick:h=>s(m)},{default:e.withCtx(()=>[a(m)?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(a(m))},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(o(m)),1)]),_:2},1032,["model","variant","color","class","onClick"]))),128))],2)}}}),Tn=(t,r)=>{const n=t.__vccOpts||t;for(const[o,l]of r)n[o]=l;return n},Nn={},Rn={class:"flex flex-col gap-4 container"};function In(t,r){return e.openBlock(),e.createElementBlock("div",Rn,[e.renderSlot(t.$slots,"default")])}const Dn=Tn(Nn,[["render",In]]),Pn=e.defineComponent({__name:"ChatMessage",props:{avatar:{},position:{default:"left"},color:{default:"primary"},variant:{default:"default"},withBorder:{type:Boolean,default:!1}},setup(t){const r=t,n=e.computed(()=>r.variant),o=e.computed(()=>r.color),l=he(n,o);return(a,c)=>{const s=It;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex items-start gap-2",[{"flex-row-reverse":a.position==="right","flex-row":a.position==="left"}]])},[a.$slots.avatar?e.renderSlot(a.$slots,"avatar",{key:0}):a.avatar?(e.openBlock(),e.createBlock(s,{key:1,size:"xs",src:a.avatar},null,8,["src"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["flex flex-col gap-1 rounded-xl p-2",[{"rounded-tr":a.position==="right","rounded-tl":a.position==="left",border:a.withBorder},e.unref(l).class]]),style:e.normalizeStyle([e.unref(l).style])},[e.renderSlot(a.$slots,"default")],6)],2)}}}),On={class:"w-full flex self-center gap-2 text-center"},Fn=e.defineComponent({__name:"ChatSystem",props:{position:{},color:{default:"default"},variant:{default:"default"},withBorder:{type:Boolean,default:!1}},setup(t){const r=t,n=e.computed(()=>r.variant),o=e.computed(()=>r.color),l=he(n,o);return(a,c)=>(e.openBlock(),e.createElementBlock("div",On,[e.createElementVNode("div",{class:e.normalizeClass(["w-full rounded-xl px-3 py-2",[e.unref(l).class]]),style:e.normalizeStyle(e.unref(l).style)},[e.renderSlot(a.$slots,"default")],6)]))}}),Ln=e.defineComponent({__name:"Chip",props:{is:{default:"img"},src:{},size:{default:"md"},color:{default:"primary"},variant:{default:"default"},rounded:{default:"full"}},setup(t){const r=t,n=W(r),o=e.computed(()=>{switch(r.size){case"sm":return"px-3 py-0.5 text-xs";case"md":return"px-4 py-0.5 text-sm";case"lg":return"px-5 py-0.5 text-base";default:return""}}),l=e.computed(()=>r.variant),a=e.computed(()=>r.color),c=he(l,a);return(s,i)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["inline-block h-fit inline-flex items-center gap-1",[e.unref(n).class,e.unref(c).class,o.value]]),style:e.normalizeStyle([e.unref(n).style,e.unref(c).style])},[s.$slots.leftSection?e.renderSlot(s.$slots,"leftSection",{key:0}):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"default"),s.$slots.rightSection?e.renderSlot(s.$slots,"rightSection",{key:1}):e.createCommentVNode("",!0)],6))}}),Dt=e.defineComponent({__name:"ColorSwatch",props:{color:{},is:{default:"div"},withBorder:{type:Boolean,default:!1}},setup(t){return(r,n)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.is),e.mergeProps({class:["h-6 w-6 border rounded-full",[{border:r.withBorder}]]},e.unref(Ht),{style:{backgroundColor:r.color}}),null,16,["class","style"]))}}),Wn=["id","alt"],jn=["for"],Gn={key:0},Un=e.defineComponent({__name:"ColorInput",props:e.mergeModels({label:{},withBorder:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=e.useModel(t,"modelValue"),n=e.useAttrs(),o=Ae(n),l=e.ref(null);return(a,c)=>{const s=Dt;return e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createElementVNode("input",{id:e.unref(o),ref_key:"input",ref:l,"onUpdate:modelValue":c[0]||(c[0]=i=>r.value=i),alt:r.value,type:"color",class:"pointer-events-none absolute opacity-0"},null,8,Wn),[[e.vModelText,r.value]]),e.createElementVNode("label",{class:"flex items-center gap-2",for:e.unref(o)},[e.createVNode(s,{"with-border":a.withBorder,class:"cursor-pointer",color:r.value??"#222"},null,8,["with-border","color"]),a.label?(e.openBlock(),e.createElementBlock("span",Gn,e.toDisplayString(a.label),1)):e.createCommentVNode("",!0)],8,jn)])}}}),Pt=Symbol("rokuProvider");function Xn(){return e.inject(Pt,e.ref(null))}function Yn(t){return e.provide(Pt,t)}const lt=e.defineComponent({__name:"FullscreenOverlay",props:e.mergeModels({persistent:{type:Boolean,default:!1},blur:{type:[String,Boolean],default:!1},wrapperClass:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,n=e.useModel(t,"modelValue"),o=e.ref(null);function l(i){r.persistent||i.target===o.value&&(n.value=!1)}const a=e.computed(()=>{switch(r.blur){case"sm":return"backdrop-blur-sm";case"md":case!0:return"backdrop-blur-md";case"lg":return"backdrop-blur-lg";default:return""}}),c=e.ref(0);e.watchEffect(()=>{n.value?(document.body.style.overflow="hidden",document.body.style.marginRight=`${c.value}px`):setTimeout(()=>{document.querySelector(".modal-wrapper.op100")||(document.body.style.overflow="",document.body.style.marginRight="")},300)}),typeof window<"u"&&new ResizeObserver(()=>{const u=window.innerWidth-document.body.clientWidth;u!==0&&(c.value=u)}).observe(document.body);const s=Xn();return(i,u)=>(e.openBlock(),e.createBlock(e.Teleport,{to:e.unref(s)??"body"},[e.createElementVNode("div",{ref_key:"wrapperRef",ref:o,class:e.normalizeClass(["modal-wrapper fixed left-0 top-0 z-100 h-full w-full bg-surface-10/10 transition-all duration-100 md:items-center",[a.value,i.wrapperClass,{"op0 pointer-events-none":!n.value,op100:n.value}]]),onClick:l},[e.renderSlot(i.$slots,"default")],2)],8,["to"]))}}),qn={class:"flex justify-end p-4 md:px-6 md:py-4 md:pb-0"},Kn={class:"h-full flex flex-col items-center justify-center px-4 md:px-6"},Jn=e.defineComponent({__name:"Drawer",props:e.mergeModels({persistent:{type:Boolean,default:!1},blur:{type:[String,Boolean],default:!1},position:{default:"left"}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,n=e.useModel(t,"modelValue");return(o,l)=>{const a=Ne,c=lt;return e.openBlock(),e.createBlock(c,{modelValue:n.value,"onUpdate:modelValue":l[1]||(l[1]=s=>n.value=s),blur:r.blur,persistent:r.persistent},{default:e.withCtx(()=>[e.createVNode(e.Transition,{"enter-from-class":o.position==="left"?"-translate-x-1/1":"translate-x-1/1","enter-to-class":(o.position==="left","translate-x-0"),"leave-from-class":(o.position==="left","translate-x-0"),"leave-to-class":o.position==="left"?"-translate-x-1/1":"translate-x-1/1","enter-active-class":"transition ease-out duration-300","leave-active-class":"transition ease-in duration-200"},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["bg-surface-low fixed h-full w-full md:w-md",o.position==="left"?"left-0":"right-0"])},[e.createElementVNode("div",qn,[e.createVNode(a,{icon:"",variant:"transparent",class:"text-surface-on hover:text-surface-on",onPointerup:l[0]||(l[0]=s=>n.value=!1)},{default:e.withCtx(()=>l[2]||(l[2]=[e.createElementVNode("i",{class:"i-fluent-dismiss-12-filled"},null,-1)])),_:1})]),e.createElementVNode("div",Kn,[e.renderSlot(o.$slots,"default")])],2)):e.createCommentVNode("",!0)]),_:3},8,["enter-from-class","enter-to-class","leave-from-class","leave-to-class"])]),_:3},8,["modelValue","blur","persistent"])}}}),Zn=e.defineComponent({__name:"Dropzone",props:{dashed:{type:Boolean,default:!0},accept:{default:"*"}},emits:["drop"],setup(t,{emit:r}){const n=t,o=r,l=e.ref(),{onChange:a,open:c}=Qr({accept:n.accept});a(d=>{d?o("drop",Array.from(d)):o("drop",null)});const{isOverDropZone:s}=Jr(l,{onDrop:d=>{o("drop",d)}}),i=Te("default"),u=nt();return(d,f)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropZoneRef",ref:l,class:e.normalizeClass([[e.unref(i).class,e.unref(s)&&e.unref(u).class,{"bg-surface-low":!e.unref(s),"border-dashed":d.dashed}],"h-full w-full flex cursor-pointer items-center justify-center border rounded"]),style:e.normalizeStyle([e.unref(i).style,e.unref(s)&&e.unref(u).style]),onPointerup:f[0]||(f[0]=()=>e.unref(c)())},[e.renderSlot(d.$slots,"default")],38))}}),Qn=e.defineComponent({__name:"Image",props:{is:{default:"img"},src:{},style:{},class:{},width:{},maxWidth:{},height:{},maxHeight:{},rounded:{default:"none"}},setup(t){const r=t,n=e.ref(!1),o=e.ref(null);function l(){n.value=!0}e.onMounted(()=>{var c;(c=o.value)!=null&&c.complete&&l()});const a=W(r);return(c,s)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({height:c.height,width:c.width,maxHeight:c.maxHeight,maxWidth:c.maxWidth})},[c.src?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.is),e.mergeProps({key:0,ref_key:"img",ref:o,style:[c.style,e.unref(a).style],src:c.src,class:["h-full w-full object-cover",[r.class,e.unref(a).class,{hidden:!n.value}]]},c.$attrs,{onLoad:l}),null,16,["style","src","class"])):e.createCommentVNode("",!0),n.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["h-full w-full animate-pulse border-transparent object-cover",[r.class,e.unref(a).class]]),style:e.normalizeStyle([c.style,e.unref(a).style])},null,6))],4))}}),eo={class:"relative"},to=e.defineComponent({__name:"Indicator",props:{color:{default:"primary"},size:{default:"md"},position:{default:"top-right"},ping:{type:Boolean}},setup(t){const r=t,n=e.computed(()=>{switch(r.size){case"sm":return"w-2 h-2";case"md":return"w-3 h-3";case"lg":return"w-4 h-4";default:return typeof r.size=="number"||!Number.isNaN(Number(r.size))?`w-${r.size} h-${r.size}`:r.size}}),o=e.useSlots(),l=e.computed(()=>{if(!o.label)return"";switch(r.size){case"sm":return"text-sm children:px-1.5";case"lg":return"text-lg children:px-2.5";case"md":default:return"text-md children:px-2"}}),a=e.computed(()=>{switch(r.position){case"bottom-left":return"bottom-0 left-0 -translate-x-1/2 translate-y-1/2";case"bottom-right":return"bottom-0 right-0 translate-x-1/2 translate-y-1/2";case"top-left":return"top-0 left-0 -translate-x-1/2 -translate-y-1/2";case"top-right":default:return"top-0 right-0 translate-x-1/2 -translate-y-1/2"}}),c=e.computed(()=>r.color),s=Nt(c);return(i,u)=>(e.openBlock(),e.createElementBlock("div",eo,[e.createElementVNode("div",{class:e.normalizeClass([[a.value,l.value],"absolute z-1"])},[r.ping?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["absolute box-content animate-ping border-2 border-transparent rounded-full",[{[n.value]:!i.$slots.label},e.unref(s).class]]),style:e.normalizeStyle([e.unref(s).style])},[i.$slots.label?e.renderSlot(i.$slots,"label",{key:0}):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["border-surface-low top-0 box-content border-2 rounded-full",[{[n.value]:!i.$slots.label},e.unref(s).class]]),style:e.normalizeStyle(e.unref(s).style)},[i.$slots.label?e.renderSlot(i.$slots,"label",{key:0}):e.createCommentVNode("",!0)],6)],2),e.renderSlot(i.$slots,"default")]))}}),ro=e.defineComponent({__name:"Modal",props:e.mergeModels({persistent:{type:Boolean,default:!1},blur:{type:[String,Boolean],default:!1}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,n=e.useModel(t,"modelValue");return(o,l)=>{const a=lt;return e.openBlock(),e.createBlock(a,{modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=c=>n.value=c),blur:r.blur,persistent:r.persistent,"wrapper-class":"flex items-end justify-center"},{default:e.withCtx(()=>[e.createVNode(e.Transition,{"enter-from-class":"translate-y-1/2","enter-to-class":"translate-y-0","leave-from-class":"translate-y-0","leave-to-class":"translate-y-1/2","enter-active-class":"transition ease-out duration-100","leave-active-class":"transition ease-in duration-100"},{default:e.withCtx(()=>[n.value?e.renderSlot(o.$slots,"default",{key:0}):e.createCommentVNode("",!0)]),_:3})]),_:3},8,["modelValue","blur","persistent"])}}}),no={key:0,class:"text-[var(--l-text)] leading-0 dark:text-[var(--d-text)]"},oo={key:0,class:"h-container w-container i-tabler-loader-2 shrink-0 animate-spin"},lo={key:1},ao={class:"grow-1"},so={key:1,class:"i-fluent-dismiss-12-filled"},Ot=e.defineComponent({__name:"Notification",props:{title:{},message:{},icon:{},loading:{type:Boolean},withBorder:{type:Boolean},closeable:{type:Boolean},rounded:{default:"md"},block:{type:Boolean,default:!1},color:{default:"primary"},size:{default:"md"}},emits:["close"],setup(t){const r=t,n=W(r),o=e.computed(()=>r.color),l=ye(o),a=He(),c=e.computed(()=>{switch(r.size){case"sm":return"min-h-10 p-1";case"lg":return"min-h-16 p-4";case"md":default:return"min-h-16 p-3"}});return(s,i)=>{const u=Ne;return e.openBlock(),e.createElementBlock("div",e.mergeProps({class:["container-low relative min-w-80 w-full flex items-center gap-2 pl-4",[{"border-0":!s.withBorder},e.unref(n).class,c.value,{"max-w-100":!s.block,"w-full":s.block}]],style:[e.unref(n).style]},e.unref(a)),[s.icon?(e.openBlock(),e.createElementBlock("div",no,[s.loading?(e.openBlock(),e.createElementBlock("i",oo)):(e.openBlock(),e.createElementBlock("i",{key:1,class:e.normalizeClass(["h-container w-container shrink-0",s.icon])},null,2))])):(e.openBlock(),e.createElementBlock("div",lo,[e.createElementVNode("div",e.mergeProps({class:["absolute left-[0.25rem] top-[0.25rem] h-[calc(100%-0.5rem)] w-1 rounded-full bg-[var(--d-bg)] dark:bg-[var(--d-bg)]",[{"animate-pulse":s.loading}]]},e.unref(l)),null,16)])),e.createElementVNode("div",ao,[s.title?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["text-[var(--l-text)] dark:text-[var(--d-text)]",{"text-xs":s.size==="sm","text-sm":s.size==="md","text-base":s.size==="lg"}])},e.toDisplayString(s.title),3)):e.createCommentVNode("",!0),s.$slots.message?e.renderSlot(s.$slots,"message",{key:1}):s.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["text-surface-on-low op-50",{"text-xs":s.size==="sm","text-sm":s.size==="md"||s.size==="lg"}])},e.toDisplayString(s.message),3)):e.createCommentVNode("",!0)]),s.closeable?(e.openBlock(),e.createBlock(u,{key:2,icon:"",variant:"transparent",onClick:i[0]||(i[0]=d=>s.$emit("close"))},{default:e.withCtx(()=>[s.$slots.closeIcon?e.renderSlot(s.$slots,"close-icon",{key:0}):(e.openBlock(),e.createElementBlock("i",so))]),_:3})):e.createCommentVNode("",!0)],16)}}}),io={class:"pointer-events-none fixed z-20 h-full w-full children:pointer-events-auto"},co=e.defineComponent({__name:"NotificationSystem",props:{position:{default:"top-right"},gap:{default:8},pt:{default:16},pl:{default:8},pr:{default:8},pb:{default:16}},setup(t){const r=t,n=mt(),o=e.ref([]),l=e.computed(()=>o.value.map(i=>i.getBoundingClientRect())),a=e.computed(()=>{let i=0,u=0,d=0,f=0,p=0,m=0;const g=[];for(let h=0;h<l.value.length;h++){const S=n.value[h];S&&(S.position||(S.position=r.position),S.position==="top-left"?(g.push(i),i+=l.value[h].height+r.gap):S.position==="top-right"?(g.push(u),u+=l.value[h].height+r.gap):S.position==="top"?(g.push(d),d+=l.value[h].height+r.gap):S.position==="bottom-left"?(g.push(f),f+=l.value[h].height+r.gap):S.position==="bottom-right"?(g.push(p),p+=l.value[h].height+r.gap):S.position==="bottom"&&(g.push(m),m+=l.value[h].height+r.gap))}return g});function c(i,u){if(u||(u=r.position),u==="top-left")return{top:`${i+r.pt}px`,left:`${r.pl}px`};if(u==="top-right")return{top:`${i+r.pt}px`,right:`${r.pr}px`};if(u==="top")return{top:`${i+r.pt}px`,left:"50%",transform:"translateX(-50%)"};if(u==="bottom-left")return{bottom:`${i+r.pb}px`,left:`${r.pl}px`};if(u==="bottom-right")return{bottom:`${i+r.pb}px`,right:`${r.pr}px`};if(u==="bottom")return{bottom:`${i+r.pb}px`,left:"50%",transform:"translateX(-50%)"}}const s=e.ref({});return e.watchEffect(()=>{n.value.forEach(i=>{if(i.durationMS&&i.durationMS>0){if(s.value[i.hash])return;s.value[i.hash]=setTimeout(()=>{n.value.splice(n.value.indexOf(i),1)},i.durationMS)}})}),(i,u)=>{const d=Ot;return e.openBlock(),e.createElementBlock("div",io,[e.createVNode(e.TransitionGroup,{"enter-from-class":"op0","enter-to-class":"op100","leave-from-class":"op100","leave-to-class":"op0"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n),(f,p)=>(e.openBlock(),e.createElementBlock("div",{key:f.hash,ref_for:!0,ref_key:"notificationRefs",ref:o,class:"absolute transition-top,bottom,opacity",style:e.normalizeStyle(c(a.value[p],f.position))},[e.createVNode(d,{"with-border":"",closeable:"",title:f.title,message:f.message,icon:f.icon,loading:f.loading,color:f.color,onClose:m=>e.unref(n).splice(e.unref(n).indexOf(f),1)},null,8,["title","message","icon","loading","color","onClose"])],4))),128))]),_:1})])}}}),uo={class:"relative"},Ft=e.defineComponent({__name:"Overlay",props:{blur:{type:[Boolean,String],default:!1},rounded:{default:"none"},opacity:{default:30},color:{default:"black"}},setup(t){const r=t,n=e.computed(()=>{switch(r.blur){case"sm":return"backdrop-blur-sm";case"md":case!0:return"backdrop-blur-md";case"lg":return"backdrop-blur-lg";default:return""}}),o=W(r),l=e.ref(null),a=M(r.color).toRgb(),c=e.computed(()=>({backgroundColor:`rgba(${a.r}, ${a.g}, ${a.b}, ${r.opacity/100})`}));return(s,i)=>(e.openBlock(),e.createElementBlock("div",uo,[e.renderSlot(s.$slots,"default"),e.createElementVNode("div",e.mergeProps(s.$attrs,{ref_key:"wrapperRef",ref:l,class:[[n.value,e.unref(o).class],"absolute left-0 top-0 h-full w-full overflow-hidden md:items-center"],style:[e.unref(o).style,c.value]}),[e.renderSlot(s.$slots,"content")],16)]))}}),Lt=e.defineComponent({__name:"Paper",props:{rounded:{default:"md"},loading:{type:Boolean,default:!1},is:{default:"div"},color:{default:"primary"},traceAnimate:{type:Boolean,default:!1},withBorder:{type:Boolean,default:!1},noPadding:{type:Boolean,default:!1}},setup(t){const r=t,n=e.computed(()=>r.color),o=e.computed(()=>r.loading),l=W(r),{x:a,y:c}=ze({type:"client"}),s=e.ref(null),{width:i,height:u,top:d,left:f}=re(s),p=e.computed(()=>Math.min(i.value,u.value)),m=e.computed(()=>!i.value||!u.value?[]:o.value?[{backgroundPosition:"0% 0%",offset:0},{backgroundPosition:"0% 100%",offset:.25},{backgroundPosition:"100% 100%",offset:.5},{backgroundPosition:"100% 0%",offset:.75}]:[]);let g;const h=e.computed(()=>oe(n.value).value[5]),S=e.computed(()=>{var y;return r.loading?(g?g.play():g=(y=s.value)==null?void 0:y.animate(m.value,{duration:1e3,iterations:Number.POSITIVE_INFINITY}),{"--main-color":h.value,"--gradient":`radial-gradient(circle at center, var(--main-color) ${p.value*.5}px, var(--border-color) ${p.value*.5}px)`,"--border-color":"var(--r-surface-border-color)","--bg":"var(--r-surface-background-color)",background:"linear-gradient(var(--bg), var(--bg)) padding-box, var(--gradient) border-box","border-color":"transparent","background-color":"var(--bg)","background-size":"200% 200%"}):(g&&g.pause(),{background:"var(--r-surface-background-color)"})}),v=e.computed(()=>{if(r.traceAnimate){const y=e.computed(()=>({x:f.value+i.value/2,y:d.value+u.value/2})),C=e.computed(()=>{if(a.value<f.value||a.value>f.value+i.value||c.value<d.value||c.value>d.value+u.value)return{x:a.value,y:c.value};const E=y.value.x,x=y.value.y;let _,b;const B=(c.value-x)/(a.value-E);return a.value<E?(_=f.value,b=x+B*(f.value-E)):(_=f.value+i.value,b=x+B*(_-E)),b<d.value?(b=d.value,_=E+(b-x)/B):b>d.value+u.value&&(b=d.value+u.value,_=E+(b-x)/B),{x:_,y:b}});return{"--main-color":h.value,"--border-color":"var(--r-surface-border-color)","--bg":"var(--r-surface-background-color)","--gradient":`radial-gradient(circle at ${C.value.x-f.value}px ${C.value.y-d.value}px, var(--main-color) ${p.value*.5}px, var(--border-color) ${p.value*.5}px)`,background:"linear-gradient(var(--bg), var(--bg)) padding-box, var(--gradient) border-box","background-size":"200% 200%","background-color":"var(--bg)"}}else return{}});return(y,C)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.is),e.mergeProps({ref_key:"paperRef",ref:s,class:["relative border",[{"p-4":!y.noPadding},e.unref(l).class]],style:[e.unref(l).style,S.value,v.value]},y.withBorder&&!y.traceAnimate&&!o.value?{class:"border-[var(--r-surface-border-color)]"}:{class:"border-transparent"}),{default:e.withCtx(()=>[e.renderSlot(y.$slots,"default")]),_:3},16,["class","style"]))}}),fo=["for"],po={key:1},mo=["id","placeholder","type"],Wt=e.defineComponent({__name:"TextField",props:e.mergeModels({onChange:{},color:{default:"primary"},error:{type:Boolean},disabled:{type:Boolean},rounded:{default:"md"},size:{default:"md"},password:{type:Boolean},placeholder:{},label:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t,{expose:r}){const n=t,o=e.useModel(t,"modelValue"),l=e.computed(()=>{switch(n.size){case"sm":return{base:"h-6 px-2 py-1 text-xs"};case"lg":return{base:"h-10 px-4 py-2 text-base"};case"md":default:return{base:"h-8 px-3 py-1 text-sm"}}}),a=e.computed(()=>{switch(n.size){case"sm":return"text-xs";case"lg":return"md-md";case"md":default:return"text-sm"}}),c=e.computed(()=>n.color),s=ot(c),i=e.computed(()=>n.disabled?"pointer-events-none select-none filter opacity-60":""),u=W(n),d=e.ref(null);r({el:d});const f=e.useAttrs(),p=Ae(f);return(m,g)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle([e.unref(s)])},[m.$slots.label||m.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:e.unref(p),class:e.normalizeClass(["mb-1 block",[a.value]])},[m.$slots.label?e.renderSlot(m.$slots,"label",{key:0}):(e.openBlock(),e.createElementBlock("span",po,e.toDisplayString(m.label),1))],10,fo)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",e.mergeProps({id:e.unref(p)},m.$attrs,{ref_key:"input",ref:d,"onUpdate:modelValue":g[0]||(g[0]=h=>o.value=h),class:["w-full border px-2 py-1 outline-none custom-input-colors",[i.value,e.unref(u).class,l.value.base]],style:[e.unref(u).style],placeholder:m.placeholder,type:n.password?"password":"text"}),null,16,mo),[[e.vModelDynamic,o.value]])],4))}}),ho={class:"flex gap-2"},go=e.defineComponent({__name:"PinInput",props:{modelValue:{},length:{default:6},size:{},password:{type:Boolean}},setup(t){const r=t,n=e.ref([]);function o(s){s.preventDefault(),s.stopPropagation();const i=n.value.findIndex(d=>d.el===s.target),u=s.target.value??"";s.target.value="",Array.from(u).forEach((d,f)=>{i+f>=n.value.length||(n.value[i+f].el.value=d,i+f+1<n.value.length?(n.value[i+f+1].el.focus(),n.value[i+f+1].el.select()):n.value[i+f].el.blur())})}function l(s){s.preventDefault(),s.stopPropagation();const i=s.target.value!=="";s.target.value="";const u=n.value.findIndex(d=>d.el===s.target);u!==0&&(n.value[u-1].el.focus(),n.value[u-1].el.select(),i||(n.value[u-1].el.value=""))}function a(s){s.preventDefault(),s.stopPropagation();const i=n.value.findIndex(u=>u.el===s.target);i>0&&(n.value[i-1].el.focus(),n.value[i-1].el.select())}function c(s){s.preventDefault(),s.stopPropagation();const i=n.value.findIndex(u=>u.el===s.target);i<n.value.length-1&&(n.value[i+1].el.focus(),n.value[i+1].el.select())}return(s,i)=>(e.openBlock(),e.createElementBlock("div",ho,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.length,u=>(e.openBlock(),e.createBlock(Wt,{ref_for:!0,ref_key:"inputs",ref:n,key:u,class:"w-8 text-center",style:{padding:"0"},password:r.password,onPointerup:i[0]||(i[0]=d=>d.target.select()),onInput:e.withModifiers(o,["stop","prevent"]),onKeydown:[e.withKeys(l,["backspace"]),e.withKeys(a,["arrow-left"]),e.withKeys(c,["arrow-right"])]},null,8,["password"]))),128))]))}}),yo=e.defineComponent({__name:"Popover",props:e.mergeModels({trigger:{default:"click"},position:{default:"bottom"},zIndex:{default:1e4},offset:{default:4},overlay:{type:Boolean,default:!1}},{modelValue:{default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,n=e.ref(null),o=e.ref(null),l=re(n),a=re(o),c=e.computed(()=>{switch(r.position){case"top-start":return"top-0 left-0";case"top-end":return"top-0 right-0";case"bottom-end":return"top-100% right-0";case"bottom-start":return"top-100% left-0";case"bottom":return"top-100% left-50%";default:return"top-100%"}}),s=e.computed(()=>{switch(r.position){case"top-start":case"top-end":return{top:`${-a.height.value-r.offset}px`};case"top":return{top:`${-a.height.value-r.offset}px`,left:`${-a.width.value/2+l.width.value/2}px`};case"bottom-start":case"bottom-end":return{marginTop:`${r.offset}px`};case"bottom":return{top:`${l.height.value+r.offset}px`,left:`${-a.width.value/2+l.width.value/2}px`};case"left-start":return{left:`${-a.width.value-r.offset}px`,top:0};case"left-end":return{left:`${-a.width.value-r.offset}px`,top:`${-a.height.value+l.height.value}px`};case"left":return{left:`${-a.width.value-r.offset}px`,top:`${-a.height.value/2+l.height.value/2}px`};case"right-start":return{left:`${r.offset+l.width.value}px`,top:0};case"right-end":return{left:`${r.offset+l.width.value}px`,top:`${-a.height.value+l.height.value}px`};case"right":return{left:`${l.width.value+r.offset}px`,top:`${-a.height.value/2+l.height.value/2}px`};default:return{}}}),i=ke(n),u=e.useModel(t,"modelValue"),d=e.computed(()=>r.trigger==="hover"?i.value:u.value);function f(p){var m;!((m=n.value)!=null&&m.contains(p.target))||p.target===n.value||(u.value=!u.value)}return St(o,p=>{var m;(m=n.value)!=null&&m.contains(p.target)?u.value=!0:u.value=!1}),(p,m)=>{const g=Ft;return e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:n,class:"relative"},[e.createElementVNode("div",{onPointerup:f},[e.renderSlot(p.$slots,"default")],32),d.value&&p.overlay?(e.openBlock(),e.createBlock(g,{key:0,opacity:0,class:"fixed inset-0 z-10",style:e.normalizeStyle({zIndex:p.zIndex}),onPointerup:m[0]||(m[0]=h=>u.value=!1)},null,8,["style"])):e.createCommentVNode("",!0),d.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"contentRef",ref:o,class:e.normalizeClass([c.value,"absolute children:w-max"]),style:e.normalizeStyle([s.value,{zIndex:p.zIndex}])},[e.renderSlot(p.$slots,"content")],6)):e.createCommentVNode("",!0)],512)}}}),bo=e.defineComponent({__name:"Progress",props:{value:{default:0},max:{default:100},min:{default:0},size:{default:"md"},color:{default:"primary"},rounded:{default:"full"},loading:{type:Boolean,default:!1}},setup(t){const r=t,n=e.computed(()=>{switch(r.size){case"sm":return"h-0.25";case"md":return"h-0.5";case"lg":return"h-1";default:return"h-0.5"}}),o=e.computed(()=>r.color),l=ye(o),a=be("bg",{dark:7,light:3}),c=W(r);return(s,i)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:["relative w-full self-center overflow-hidden",[n.value,e.unref(c).class]],style:[e.unref(c).style]},e.unref(a)),[s.loading?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1,class:"loading-progress h-full"},e.unref(l)),null,16)):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0,class:"h-full"},e.unref(l),{style:[{width:`${(Number(s.value)-Number(s.min))/(Number(s.max)-Number(s.min))*100}%`}]}),null,16))],16))}}),wo=["onMouseover","onPointerdown"],So="#ffeb91",ko="text-[var(--d-text)]",vo="text-surface-on-low",xo="text-[var(--d-text-h)]",Co="i-fluent-star-12-filled",_o="i-fluent-star-12-filled",Bo=e.defineComponent({__name:"Rating",props:e.mergeModels({count:{},icons:{},color:{default:"#ffeb91"},highlightSelectedOnly:{type:Boolean},unselectable:{type:Boolean},size:{}},{modelValue:{default:0},modelModifiers:{}}),emits:e.mergeModels(["select"],["update:modelValue"]),setup(t,{emit:r}){const n=t,o=r,l=e.computed(()=>n.count??5),a=e.useModel(t,"modelValue"),c=e.computed(()=>n.highlightSelectedOnly??!1),s=e.computed(()=>n.unselectable??!1),i=e.ref(-1),u=e.computed(()=>d(n.icons,l.value,Co,_o));function d(y,C,E,x){function _(B){return typeof B=="string"?{active:B,normal:B}:B===void 0?{active:x,normal:E}:{active:B.active||x,normal:B.normal||E}}if(y===void 0)return Array.from({length:C},()=>({active:x,normal:E}));let b;if(typeof y=="string")b={active:y,normal:y};else if(Array.isArray(y)){const B=y.map(z=>_(z));return B.length===1?(b=B[0],Array.from({length:C},()=>({...b}))):B.slice(0,C).concat(Array.from({length:Math.max(0,C-B.length)},()=>({active:x,normal:E})))}else b={active:y.active||x,normal:y.normal||E};return Array.from({length:C},()=>({...b}))}function f(y){return c.value?i.value!==-1?i.value===y+1:a.value===y+1:i.value!==-1?i.value>y:a.value>=y+1}function p(y){const C=u.value[y].normal,E=u.value[y].active;return f(y)?[c.value?xo:ko,E]:[vo,C]}const g=e.computed(()=>{if(typeof n.color=="string")return Array.from({length:l.value}).map(()=>n.color);const y=Array.from({length:l.value}).map(()=>So);return n.color.forEach((C,E)=>{C&&(y[E]=C)}),y}).value.map(y=>he("filled",y)),h=O({color:"surface",type:"text",index:{dark:6,light:4}});function S(y){a.value===y&&s.value?(o("select",0),a.value=0):(o("select",y+1),a.value=y+1)}const v=e.computed(()=>{switch(n.size){case"sm":return"text-xs";case"lg":return"text-lg";case"md":default:return"text-base"}});return(y,C)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex cursor-pointer",v.value])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(E,x)=>(e.openBlock(),e.createElementBlock("div",{key:x,class:"pr-1",onMouseover:_=>i.value=x+1,onMouseleave:C[0]||(C[0]=_=>i.value=-1),onPointerdown:_=>S(x)},[e.createElementVNode("i",e.mergeProps({ref_for:!0},f(x)?e.unref(g)[x].value:e.unref(h),{class:["active:translate-y-1px",[p(x)]]}),null,16)],40,wo))),128))],2))}}),Eo=e.defineComponent({__name:"RokuProvider",props:{is:{default:"div"},theme:{default:"default"},themes:{default:()=>({default:tt.value})}},setup(t){const r=t,n=zt(),o=e.computed(()=>r.themes[r.theme]);e.watchEffect(()=>{Z.value=typeof o.value.colors.surface=="string"?o.value.colors.surface:Z.value,ie.value=typeof o.value.colors.primary=="string"?o.value.colors.primary:ie.value,ce.value=typeof o.value.colors.secondary=="string"?o.value.colors.secondary:ce.value,ue.value=typeof o.value.colors.tertiary=="string"?o.value.colors.tertiary:ue.value,de.value=typeof o.value.colors.error=="string"?o.value.colors.error:de.value});const l=e.ref(null),a=e.computed(()=>Xe({colors:{surface:Z.value,primary:ie.value,secondary:ce.value,tertiary:ue.value,error:de.value},name:o.value.name}));return e.provide($t,n),e.provide("currentThemeData",e.computed(()=>o.value)),Yn(l),(c,s)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.is),{ref_key:"wrapperRef",ref:l,style:e.normalizeStyle([a.value])},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},8,["style"]))}}),Mo=["id"],$o=["for"],zo=["for"],jt=e.defineComponent({inheritAttrs:!1,__name:"Switch",props:e.mergeModels({size:{default:"md"},animate:{type:Boolean,default:!0},options:{},label:{},id:{},rounded:{default:"full"},color:{default:"primary"},disabled:{type:Boolean},offIcon:{},onIcon:{},value:{type:Boolean},indicatorIcon:{},onIndicatorIcon:{},offIndicatorIcon:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,n=e.useModel(t,"modelValue");r.value&&(n.value=r.value);const o=e.ref(null),l=e.ref(!1),a=e.computed(()=>{switch(r.size){case"sm":return{icon:"text-xs mx-0.5",wrapper:"h-4 w-8",indicator:l.value?"h-3 w-4":"h-3 w-3",inactive:"left-[calc(0.125rem-1px)]",active:l.value?"left-[calc(0.875rem-1px)]":"left-[calc(1.125rem-1px)]"};case"lg":return{icon:"text-lg mx-2",wrapper:"h-8 w-16",indicator:l.value?"h-6 w-8":"h-6 w-6",inactive:"left-[calc(0.25rem-1px)]",active:l.value?"left-[calc(1.75rem-1px)]":"left-[calc(2.25rem-1px)]"};case"md":default:return{icon:"text-sm mx-1",wrapper:"h-6 w-12",indicator:l.value?"h-4 w-5":"h-4 w-4",inactive:"left-[calc(0.25rem-1px)]",active:l.value?"left-[calc(1.5rem-1px)]":"left-[calc(1.75rem-1px)]"}}}),c=e.computed(()=>r.animate?{indicator:"transition-all",progress:"transition-width"}:{indicator:"",progress:""}),s=Ae(r),i=be("bg",{dark:7,light:3}),u=_e(r.color,"bg",5),d=_e(r.color,"text",5),f=e.computed(()=>({wrapper:n.value?[u.value.class]:[i.value.class],indicator:"bg-white shadow"})),p=e.computed(()=>({wrapper:n.value?u.value.style:i.value.style,indicator:n.value?{}:""})),m=W(r);return(g,h)=>(e.openBlock(),e.createElementBlock("div",{role:"switch",class:e.normalizeClass(["relative flex items-center gap-2",{"pointer-events-none filter-grayscale op-60":r.disabled}])},[e.withDirectives(e.createElementVNode("input",e.mergeProps({id:e.unref(s),"onUpdate:modelValue":h[0]||(h[0]=S=>n.value=S)},g.$attrs,{class:"hidden",type:"checkbox"}),null,16,Mo),[[e.vModelCheckbox,n.value]]),e.createElementVNode("label",{class:"leading-0 cursor-pointer!",for:e.unref(s)},[e.createElementVNode("div",{ref_key:"wrapper",ref:o,class:e.normalizeClass([[a.value.wrapper,...f.value.wrapper,e.unref(m).class],"relative inline-block"]),style:e.normalizeStyle([e.unref(m).style,p.value.wrapper]),onPointerdown:h[1]||(h[1]=S=>l.value=!0),onPointerup:h[2]||(h[2]=S=>l.value=!1),onPointerleave:h[3]||(h[3]=S=>l.value=!1),onPointerenter:h[4]||(h[4]=S=>S.buttons===1&&(l.value=!0))},[e.createElementVNode("div",{class:e.normalizeClass(["absolute top-50% -translate-y-50%",[a.value.indicator,f.value.indicator,c.value.indicator,n.value?a.value.active:a.value.inactive,e.unref(m).class]]),style:e.normalizeStyle([e.unref(m).style,p.value.indicator])},[r.indicatorIcon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["h-full w-full",[r.indicatorIcon,n.value?e.unref(d).class:"text-black"]]),style:e.normalizeStyle(e.unref(d).style)},null,6)):n.value&&r.onIndicatorIcon?(e.openBlock(),e.createElementBlock("i",{key:1,class:e.normalizeClass(["h-full w-full",[r.onIndicatorIcon,n.value?e.unref(d).class:"text-black"]]),style:e.normalizeStyle(e.unref(d).style)},null,6)):!n.value&&r.offIndicatorIcon?(e.openBlock(),e.createElementBlock("i",{key:2,class:e.normalizeClass(["h-full w-full",[r.offIndicatorIcon,n.value?e.unref(d).class:"text-black"]]),style:e.normalizeStyle(e.unref(d).style)},null,6)):e.createCommentVNode("",!0)],6),n.value?(e.openBlock(),e.createElementBlock("i",{key:"on",class:e.normalizeClass(["absolute top-1/2 -translate-y-50%",[a.value.icon,{[`left-0 text-${g.color}-on-container-low`]:n.value,[g.onIcon??""]:n.value&&g.onIcon,[g.offIcon??""]:!n.value&&g.offIcon}]])},null,2)):(e.openBlock(),e.createElementBlock("i",{key:"off",class:e.normalizeClass(["absolute top-1/2 -translate-y-50%",[a.value.icon,{"right-0":!n.value,[g.onIcon??""]:n.value&&g.onIcon,[g.offIcon??""]:!n.value&&g.offIcon}]])},null,2))],38)],8,$o),g.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:e.unref(s)},e.toDisplayString(g.label),9,zo)):e.createCommentVNode("",!0)],2))}}),Ao={class:"dark:hidden"},Vo={class:"light:hidden"},Ho=e.defineComponent({__name:"SchemeSwitch",setup(t){const r=e.ref(!1);e.watch([r],()=>{te&&(r.value===!0?(document.documentElement.setAttribute("data-scheme","dark"),localStorage.setItem("scheme","dark")):r.value===!1&&(document.documentElement.setAttribute("data-scheme","light"),localStorage.setItem("scheme","light")))});const n=e.ref(!0),o=e.ref(!1);return e.onMounted(()=>{te&&(r.value=localStorage.getItem("scheme")==="dark"),n.value=!1}),e.nextTick(()=>{o.value=!0}),(l,a)=>{const c=jt;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass({hidden:!n.value})},[e.createElementVNode("div",Ao,[e.createVNode(c,{value:!1,"on-icon":"i-line-md-moon-twotone-alt-loop","off-icon":"i-line-md-sunny-outline-twotone-loop"})]),e.createElementVNode("div",Vo,[e.createVNode(c,{value:!0,color:"secondary","on-icon":"i-line-md-moon-twotone-alt-loop","off-icon":"i-line-md-sunny-outline-twotone-loop"})])],2),e.createElementVNode("div",{class:e.normalizeClass({hidden:n.value})},[e.createVNode(c,{modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=s=>r.value=s),animate:o.value,color:"secondary","on-icon":"i-line-md-moon-twotone-alt-loop","off-icon":"i-line-md-sunny-outline-twotone-loop"},null,8,["modelValue","animate"])],2)],64)}}}),To=e.defineComponent({__name:"ScrollArea",props:{height:{},barWidth:{default:4},threshold:{default:100}},setup(t,{expose:r}){const n=t,o=Ct(),l=re(o),a=e.ref(),c=re(()=>a.value),s=e.computed(()=>{if(n.height)return n.height;const w=o.value?Number.parseFloat(getComputedStyle(o.value).paddingTop)+Number.parseFloat(getComputedStyle(o.value).paddingBottom):0,$=o.value?Number.parseFloat(getComputedStyle(o.value).marginTop)+Number.parseFloat(getComputedStyle(o.value).marginBottom):0;return l.height.value-w-$}),i=e.ref(),u=Bt(()=>i.value),{x:d,y:f}=en(()=>i.value),p=e.computed(()=>{var w;return(((w=i.value)==null?void 0:w.scrollHeight)??0)-(u.value??0)}),m=_t(()=>i.value),g=e.computed(()=>f.value/p.value||0),h=e.computed(()=>i.value?u.value/m.value*u.value:0),S=e.computed(()=>u.value-h.value),v=e.computed(()=>{if(!i.value)return null;const w=g.value*S.value;return{x:d.value,y:f.value,barHeight:h.value,barTop:w}}),y=e.ref(!1),C=e.ref(0),E=e.ref(""),x=e.ref(0),_=ze({type:"client"});T(()=>a.value,"pointerdown",w=>{y.value=!0,C.value=w.clientY,x.value=f.value,E.value=document.body.style.userSelect,document.body.style.userSelect="none"}),T(()=>document,"pointermove",()=>{if(!y.value)return;if(n.threshold<c.left.value-_.x.value||_.x.value-c.right.value>n.threshold){f.value=x.value;return}const $=(_.y.value-C.value)/S.value;f.value=x.value+$*p.value}),T(()=>document,"pointerup",()=>{y.value=!1,document.body.style.userSelect=E.value}),r({$el:i});const b=ke(()=>a.value),B=be("bg",{dark:5,light:6},.5),z=be("bg",{dark:2,light:9},.5);return(w,$)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle([{height:`${s.value}px`},{overflow:"hidden","max-height":"fit-content",position:"relative"}])},[v.value?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({width:`${w.barWidth}px`}),class:"absolute right-0 z-999 h-full"},[e.withDirectives(e.createElementVNode("div",{ref_key:"scrollBarIndicatorRef",ref:a,class:e.normalizeClass([[e.unref(B).class],"absolute right-0 rounded-full"]),style:e.normalizeStyle([{right:"0px",width:`${w.barWidth}px`,top:`${v.value.barTop}px`,height:`${v.value.barHeight}px`},!e.unref(b)&&!y.value&&e.unref(B).style,(e.unref(b)||y.value)&&e.unref(z).style])},null,6),[[e.vShow,v.value.barHeight<e.unref(u)]])],4)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"scrollDomRef",ref:i,style:e.normalizeStyle({paddingRight:`${w.barWidth}px`,scrollbarWidth:"none",height:"100%",overflowY:"scroll"})},[e.renderSlot(w.$slots,"default")],4)],4))}}),No={class:"w-full flex items-center"},Ro=["placeholder","readonly","value","aria-label"],Io={key:0,class:"flex cursor-default items-center justify-between gap-2 rounded p-1 px-2"},Do=["onPointerdown","onMousemove"],Po={key:0},Oo={key:0,class:"flex cursor-default items-center justify-between gap-2 rounded p-1 px-2"},Fo=e.defineComponent({__name:"Select",props:e.mergeModels({ariaLabel:{},options:{default(){return[]}},color:{default:"primary"},size:{default:"md"},noneText:{default:"No options"},notFoundText:{default:"Not found"},rounded:{default:"md"},placeholder:{default:""},searchable:{type:Boolean,default:!1},filter:{type:Function,default:(t,r)=>t.includes(r)}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["change","input"],["update:modelValue"]),setup(t,{emit:r}){const n=t,o=r,l=W(n),a=e.useModel(t,"modelValue"),c=e.ref(null),s=e.ref(null),i=e.ref(!1);St(s,()=>{i.value=!1});const u=e.ref(-1),d=e.ref(-1);e.watchEffect(()=>{i.value||(d.value=-1)}),e.watch(a,()=>{o("change",a.value)});const f=e.computed(()=>a.value),p=e.computed(()=>h(f.value)),m=e.computed(()=>n.options.findIndex(A=>$(A,f.value))),g=e.ref(p.value);e.watch(p,()=>{g.value=p.value});function h(A){return A?typeof A=="string"||typeof A=="symbol"||typeof A=="number"?String(A):A.label?A.label:A.id:""}function S(A){if(A)return typeof A=="string"||typeof A=="symbol"||typeof A=="number"?A:A.id}function v(A){i.value=!0;const D=A.target;g.value=D.value,o("input",g.value)}const y=e.computed(()=>n.searchable&&g.value!==p.value?n.options.filter(A=>n.filter(h(A),g.value)):n.options);ae("ArrowDown",A=>{i.value&&(A.preventDefault(),d.value===-1&&u.value!==-1?d.value=u.value:d.value===-1&&u.value===-1&&m.value!==-1&&(d.value=m.value),d.value=(d.value+1)%n.options.length)}),ae("ArrowUp",A=>{i.value&&(A.preventDefault(),d.value===-1&&u.value!==-1?d.value=u.value:d.value===-1&&u.value===-1&&m.value!==-1&&(d.value=m.value),d.value=(d.value-1+n.options.length)%n.options.length)}),ae("Enter",()=>{i.value&&d.value!==-1&&(a.value=y.value[d.value],c.value.focus(),i.value=!1)});function C(A){if(c.value.focus(),!i.value){i.value=!0;return}a.value=A,i.value=!1}const E=e.computed(()=>n.color),x=ot(E,"default"),_=e.computed(()=>{switch(n.size){case"sm":return{wrapper:"h-6 w-full py-1 pl-1.5 pr-6 text-sm",dropdown:"text-sm children:py-1"};case"lg":return{wrapper:"h-10 w-full py-2 pl-3 pr-10 text-lg",dropdown:"text-lg children:py-2"};default:return{wrapper:"h-8 w-full py-1 pl-2 pr-8 text-base",dropdown:"text-base children:py-1"}}}),b=e.ref(null),{height:B}=re(b),{bottom:z}=re(c);e.watch([i],()=>{d.value=-1,u.value=-1});const w=e.computed(()=>i.value&&te?B.value===0?!1:document.documentElement.clientHeight-z.value>B.value:!1);function $(A,D){return D?typeof A=="string"||typeof A=="symbol"||typeof A=="number"?A===D:typeof D=="string"||typeof D=="symbol"||typeof D=="number"?!1:A.id===D.id:!1}const V=e.computed(()=>n.searchable?"cursor-text":"cursor-pointer"),H=He(),I=nt(),N=ye(E);function Q(A){u.value=A,d.value=-1}return(A,D)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:s,class:"relative",style:e.normalizeStyle(e.unref(x))},[e.createElementVNode("div",No,[e.createElementVNode("input",{ref_key:"inputRef",ref:c,class:e.normalizeClass([[_.value.wrapper,e.unref(l).class,V.value],"border outline-none outline-none focus-visible:outline-2 custom-input-colors"]),placeholder:A.placeholder,style:e.normalizeStyle([e.unref(l).style,e.unref(x)]),readonly:!A.searchable,value:g.value,"aria-label":A.ariaLabel,"aria-haspopup":"listbox",autocomplete:"off",onInput:v,onClick:D[0]||(D[0]=J=>i.value=!0)},null,46,Ro),D[2]||(D[2]=e.createElementVNode("i",{class:"i-fluent-chevron-down-12-filled pointer-events-none absolute right-2"},null,-1))]),i.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"dropdownRef",ref:b,class:e.normalizeClass(["absolute z-10 mt-2 w-full flex-col overflow-hidden border rounded p-1",[e.unref(H).class,_.value.dropdown,{"bottom-10":!w.value}]]),style:e.normalizeStyle([e.unref(H).style])},[A.options.length===0?(e.openBlock(),e.createElementBlock("div",Io,[e.renderSlot(A.$slots,"none",{},()=>[e.createTextVNode(e.toDisplayString(A.noneText),1)])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(J,ne)=>(e.openBlock(),e.createElementBlock("div",{key:S(J),class:e.normalizeClass([[d.value===ne&&e.unref(N).class,u.value===ne&&d.value===-1&&e.unref(I).class],"flex cursor-pointer items-center justify-between gap-2 rounded p-1 px-2"]),style:e.normalizeStyle([d.value===ne&&e.unref(N).style,u.value===ne&&d.value===-1&&e.unref(I).style]),onPointerdown:Ie=>C(J),onMousemove:Ie=>Q(ne),onMouseleave:D[1]||(D[1]=Ie=>u.value=-1)},[e.renderSlot(A.$slots,"item",{data:J,selected:$(J,f.value)},()=>[e.createTextVNode(e.toDisplayString(h(J)),1)]),$(J,f.value)?(e.openBlock(),e.createElementBlock("div",Po,D[3]||(D[3]=[e.createElementVNode("i",{class:"i-fluent-checkmark-12-filled h-3 w-3"},null,-1)]))):e.createCommentVNode("",!0)],46,Do))),128)),A.searchable&&y.value.length===0?(e.openBlock(),e.createElementBlock("div",Oo,[e.renderSlot(A.$slots,"not-found",{},()=>[e.createTextVNode(e.toDisplayString(A.notFoundText),1)])])):e.createCommentVNode("",!0)],64))],6)):e.createCommentVNode("",!0)],4))}}),Lo=e.defineComponent({__name:"SelectArea",props:{target:{},color:{default:"primary"}},emits:["selectStart","selectChange","selectEnd"],setup(t,{emit:r}){const n=t,o=r,l=e.computed(()=>n.color),a=oe(l),c=e.computed(()=>{const v=a.value[5].setAlpha(.5).toHex8String(),y=a.value[5].setAlpha(.1).toHex8String();return{"--border-color":v,"--fill-color":y}}),{shift:s,control:i}=rn(),u=Ct(),d=e.computed(()=>n.target??u.value),f=ze(),p=e.ref({x:0,y:0}),m=e.ref({x:0,y:0}),g=e.ref(!1),h=re(d);T(d,"pointerdown",v=>{if(v.button!==0)return;const y=v.pageX-h.left.value,C=v.pageY-h.top.value;p.value={x:y,y:C},m.value={x:y,y:C},g.value=!0,o("selectStart",{target:v.target,shift:s.value,ctrl:i.value})},{capture:!0}),T(window,"pointerup",v=>{g.value=!1,o("selectEnd",{left:Math.min(p.value.x,m.value.x),top:Math.min(p.value.y,m.value.y),right:Math.max(p.value.x,m.value.x),bottom:Math.max(p.value.y,m.value.y)},{target:v.target,shift:s.value,ctrl:i.value})}),T(d,"pointermove",v=>{const y=v.pageX-h.left.value,C=v.pageY-h.top.value;g.value&&(m.value={x:y,y:C},o("selectChange",{left:Math.min(p.value.x,m.value.x),top:Math.min(p.value.y,m.value.y),right:Math.max(p.value.x,m.value.x),bottom:Math.max(p.value.y,m.value.y)},{target:v.target,shift:s.value,ctrl:i.value}))});const S=e.computed(()=>d.value?d.value.parentElement:null);return T(S,"scroll",v=>{g.value&&(m.value={x:f.x.value-h.left.value,y:f.y.value-h.top.value},o("selectChange",{left:Math.min(p.value.x,m.value.x),top:Math.min(p.value.y,m.value.y),right:Math.max(p.value.x,m.value.x),bottom:Math.max(p.value.y,m.value.y)},{target:v.target,shift:s.value,ctrl:i.value}))}),T(window,"dragend",()=>{g.value=!1}),(v,y)=>d.value?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:d.value},[g.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"absolute z-10000 h-1 border border border-[var(--border-color)] bg-[var(--fill-color)]",style:e.normalizeStyle([{left:`${Math.min(p.value.x,m.value.x)}px`,top:`${Math.min(p.value.y,m.value.y)}px`,width:`${Math.abs(p.value.x-m.value.x)}px`,height:`${Math.abs(p.value.y-m.value.y)}px`},c.value])},null,4)):e.createCommentVNode("",!0)],8,["to"])):e.createCommentVNode("",!0)}}),Wo={class:"relative w-full"},jo="dark:bg-white bg-[var(--i-bg)]",Go="dark:bg-[var(--i-bg)] bg-white",Uo=e.defineComponent({__name:"Slider",props:e.mergeModels({size:{default:"md"},animate:{type:Boolean,default:!1},width:{},options:{},min:{default:0},max:{default:100},step:{default:1},tickNum:{},color:{default:"primary"},minWidth:{default:12}},{modelValue:{default:void 0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t;function n(_,b,B){const z=[];for(let w=_;w<=b;w+=B)z.push(w);return z[z.length-1]!==b&&z.push(b),z}function o(_,b){const B=[];if(_===0)return B;B.push(b[0]);const z=(b.length-1)/(_-1);for(let w=1;w<_-1;w++)B.push(b[Math.round(w*z)]);return B.push(b[b.length-1]),B}const l=e.computed(()=>r.options?r.options.length:r.tickNum??0),a=e.computed(()=>r.options===void 0?n(r.min,r.max,r.step):r.options),c=e.computed(()=>o(l.value,a.value)),s=e.useModel(t,"modelValue"),i=e.computed(()=>a.value.length??0),u=e.ref(a.value.includes(s.value)?a.value.indexOf(s.value):0);function d(_){let b=a.value.indexOf(_);if(b===-1)if(typeof _=="number"){let B=1/0;for(let z=0;z<a.value.length;z++){const w=Math.abs(a.value[z]-_);w<B&&(B=w,b=z)}}else b=0;return b}const f=e.computed(()=>r.color),p=oe(f.value),m=e.computed(()=>p.value[4]),g=ye(f);e.watchEffect(()=>{u.value<0||(s.value=a.value[u.value])}),e.watchEffect(()=>{u.value=d(s.value)});const h=e.ref(),S=e.ref(),v=e.ref(!1);function y(_){if(!v.value)return;if(!(_.buttons===1)){v.value=!1;return}_.preventDefault(),_.stopPropagation();const B=re(h),{clientX:z}=_,w=B.left.value,V=B.right.value-w,H=Math.round((z-w)/V*(i.value-1));if(H<0){u.value=0;return}if(H>i.value-1){u.value=i.value-1;return}u.value=H}e.watchEffect(()=>{u.value=d(s.value)});function C(_){_.preventDefault(),_.stopPropagation(),v.value=!0,y(_)}T(h,"pointerdown",C),e.onMounted(()=>{T(document,"pointermove",y),u.value=Math.max(0,d(s.value))});const E=e.computed(()=>{switch(r.size){case"sm":return{wrapper:"h-2",innerWrapper:"px-0.5 h-1",content:"h-1",tick:"h-0.5 w-0.5 -translate-x-0.25 -translate-y-0.25",indicator:"h-3 w-3 -translate-x-1.5 -translate-y-1.5",indicatorInner:"h-1.5 w-1.5 -translate-x-0.75 -translate-y-0.75",progress:"-mx-0.5"};case"lg":return{wrapper:"h-6",innerWrapper:"px-1.5 h-3",content:"h-3",tick:"h-1.5 w-1.5 -translate-x-0.75 -translate-y-0.75",indicator:"h-6 w-6 -translate-x-3 -translate-y-3",indicatorInner:"h-3 w-3 -translate-x-1.5 -translate-y-1.5",progress:"-mx-1.5"};case"md":default:return{wrapper:"h-4",innerWrapper:"px-1 h-2",content:"h-2",tick:"h-1 w-1 -translate-x-0.5 -translate-y-0.5",indicator:"h-4 w-4 -translate-x-2 -translate-y-2",indicatorInner:"h-2 w-2 -translate-x-1 -translate-y-1",progress:"-mx-1"}}}),x=e.computed(()=>r.animate?{indicator:"transition-left",progress:"transition-width"}:{indicator:"",progress:""});return(_,b)=>(e.openBlock(),e.createElementBlock("div",Wo,[e.createElementVNode("div",{ref_key:"wrapper",ref:h,type:"size",class:e.normalizeClass(["w-full flex cursor-pointer items-center",E.value.wrapper]),onTouchmove:b[0]||(b[0]=e.withModifiers(()=>{},["prevent"]))},[e.createElementVNode("div",{class:e.normalizeClass(["w-full rounded-full bg-surface-3 transition-background-color,border-color,color dark:bg-surface-7",E.value.innerWrapper])},[e.createElementVNode("div",{class:e.normalizeClass(["relative flex",E.value.content]),style:e.normalizeStyle({width:`${r.width}rem`,minWidth:`${r.minWidth}rem`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,B=>(e.openBlock(),e.createElementBlock("div",{key:B,style:e.normalizeStyle({left:`${d(B)/(i.value-1)*100}%`}),class:e.normalizeClass(["absolute top-50% rounded-full bg-surface-0",E.value.tick])},null,6))),128)),u.value!==-1?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"indicator",ref:S,class:e.normalizeClass(["absolute top-50% cursor-pointer rounded-full transition-background-color,border-color,color",[E.value.indicator,x.value.indicator,jo]]),style:e.normalizeStyle([`--i-bg: ${m.value}`,{left:`${u.value/(i.value-1)*100}%`}])},[e.createElementVNode("div",{class:e.normalizeClass(["pointer-events-none absolute left-50% top-50% rounded-full",[E.value.indicatorInner,Go]])},null,2)],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["pointer-events-none h-full rounded-full",[e.unref(g).class,E.value.progress,x.value.progress]]),style:e.normalizeStyle([e.unref(g).style,{width:`${u.value/(i.value-1)*100}%`}])},null,6)],6)],2)],34),c.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"text-surface-on-low relative mx-1 h-1em text-xs",style:e.normalizeStyle({width:`${r.width}rem`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(B,z)=>(e.openBlock(),e.createElementBlock("div",{key:z,style:e.normalizeStyle({left:`${d(B)/(i.value-1)*100}%`}),class:e.normalizeClass(["absolute w-auto flex rounded-full -translate-x-50%",E.value.tick])},e.toDisplayString(B),7))),128))],4)):e.createCommentVNode("",!0)]))}}),Xo={class:"h-full py-2"},Yo=e.defineComponent({__name:"TabItem",props:{value:{},color:{default:"primary"}},setup(t){const r=t,n=e.computed(()=>r.color),o=e.inject(Oe,e.ref("")),l=e.ref(null),a=e.computed(()=>o.value===r.value);function c(){o.value=r.value}const s=e.inject(Le,new Map);e.onMounted(()=>{s.set(r.value,l)});const i=e.inject(Fe,e.computed(()=>"horizontal")),u=e.computed(()=>{switch(i.value){case"vertical":return"flex-row-reverse rounded-tr-lg rounded-br-lg";case"horizontal":default:return"flex-col rounded-tr-lg rounded-tl-lg"}}),d=e.computed(()=>{switch(i.value){case"vertical":return"absolute inset-0 right-100% h-full w-2px";case"horizontal":default:return"absolute inset-0 top-100% h-2px w-full"}}),f=O({color:n.value,type:"bg",index:5}),p=O({color:n.value,type:"outline",index:5});return(m,g)=>(e.openBlock(),e.createElementBlock("button",e.mergeProps({ref_key:"tabRef",ref:l,type:"button",class:["rutline-none relative min-w-20 flex items-center justify-center outline-none focus-visible:outline-2 outline-offset-0!",[u.value]]},e.unref(p),{onClick:c}),[a.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(f).class,d.value]),style:e.normalizeStyle([e.unref(f).style])},null,6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([d.value])},null,2)),e.createElementVNode("div",Xo,[e.renderSlot(m.$slots,"default")])],16))}}),qo=e.defineComponent({__name:"Tabs",props:e.mergeModels({defaultValue:{},direction:{default:"horizontal"}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,n=e.useSlots(),o=e.computed(()=>{var f;const u=(f=n.default)==null?void 0:f.call(n);return(u==null?void 0:u.flatMap(p=>p.type===e.Fragment?p.children:p).filter(p=>{var m;return((m=p==null?void 0:p.props)==null?void 0:m.value)!==void 0}).map(p=>p.props.value))??[]}),l=e.useModel(t,"modelValue");!l.value&&o.value.length>0&&(l.value=o.value[0]);const a=e.ref(null);e.onMounted(()=>{r.defaultValue&&(l.value=r.defaultValue)}),e.provide(Oe,l);const c=e.computed(()=>r.direction);e.provide(Fe,c);const s=new Map;e.provide(Le,s),ae("ArrowLeft",u=>{var m;if(!((m=a.value)!=null&&m.contains(document.activeElement))||(u.preventDefault(),r.direction!=="horizontal"))return;const d=l.value?o.value.indexOf(l.value):0,f=d>0?o.value[d-1]:o.value[o.value.length-1];l.value=f;const p=s.get(f);if(p){const g=p.value;g&&g.focus()}}),ae("ArrowRight",u=>{var m;if(!((m=a.value)!=null&&m.contains(document.activeElement))||(u.preventDefault(),r.direction!=="horizontal"))return;const d=l.value?o.value.indexOf(l.value):0,f=d<o.value.length-1?l.value=o.value[d+1]:l.value=o.value[0];l.value=f;const p=s.get(f);if(p){const g=p.value;g&&g.focus()}}),ae("ArrowUp",u=>{var m;if(!((m=a.value)!=null&&m.contains(document.activeElement))||(u.preventDefault(),r.direction!=="vertical"))return;const d=l.value?o.value.indexOf(l.value):0,f=d>0?o.value[d-1]:o.value[o.value.length-1];l.value=f;const p=s.get(f);if(p){const g=p.value;g&&g.focus()}}),ae("ArrowDown",u=>{var m;if(!((m=a.value)!=null&&m.contains(document.activeElement))||(u.preventDefault(),r.direction!=="vertical"))return;const d=l.value?o.value.indexOf(l.value):0,f=d<o.value.length-1?o.value[d+1]:o.value[0];l.value=f;const p=s.get(f);if(p){const g=p.value;g&&g.focus()}});const i=e.computed(()=>{switch(r.direction){case"horizontal":return"flex-row";case"vertical":return"flex-col";default:return"flex-row"}});return(u,d)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tabRef",ref:a,class:e.normalizeClass(["flex",[i.value]])},[e.renderSlot(u.$slots,"default")],2))}}),Ko=e.defineComponent({__name:"Tag",props:{color:{},variant:{default:"default"},rounded:{default:"md"},size:{},leftIcon:{},rightIcon:{}},setup(t){const r=t,n=e.computed(()=>{switch(r.size){case"sm":return"px-2 py-0.5 text-xs";case"lg":return"px-4 py-1 text-base";case"md":default:return"px-3 py-0.5 text-sm"}}),o=W(r),l=e.computed(()=>r.color??"primary"),a=e.computed(()=>r.variant),c=Te(a,l);return(s,i)=>(e.openBlock(),e.createElementBlock("span",{tabindex:-1,style:e.normalizeStyle([e.unref(c).style,e.unref(o).style]),class:e.normalizeClass([[e.unref(c).class,e.unref(o).class,n.value],"inline-block h-fit flex cursor-pointer gap-1 border"])},[r.leftIcon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass([r.leftIcon,"shrink-0"])},null,2)):s.$slots.leftIcon?e.renderSlot(s.$slots,"left-icon",{key:1}):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"default"),r.rightIcon?(e.openBlock(),e.createElementBlock("i",{key:2,class:e.normalizeClass([r.rightIcon,"h-container w-container shrink-0"])},null,2)):s.$slots.rightIcon?e.renderSlot(s.$slots,"right-icon",{key:3}):e.createCommentVNode("",!0)],6))}}),Jo=["data-scheme","data-theme"],Zo=e.defineComponent({__name:"ThemeProvider",props:{theme:{},scheme:{}},setup(t){const r=t,n=Et(),o=e.computed(()=>Xe(r.theme?r.theme:n.value)),l=xt("scheme","light"),a=e.computed(()=>r.scheme?r.scheme:l.value);return(c,s)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle([o.value]),"data-scheme":a.value,"data-theme":e.unref(n).name},[e.renderSlot(c.$slots,"default")],12,Jo))}}),Qo=e.defineComponent({__name:"Tooltip",props:{timeout:{default:200}},setup(t){const r=t,n=ze(),o=e.ref(null),l=ke(o),a=Rr(l,r.timeout),c=e.ref(0),s=e.ref(0),i=e.ref(null),u=ke(i);return e.watch(a,(d,f)=>{a.value&&d!==f&&(c.value=n.x.value,s.value=n.y.value)}),(d,f)=>{const p=Lt;return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{ref_key:"hoverableRef",ref:o},[e.renderSlot(d.$slots,"default")],512),c.value&&s.value&&(e.unref(a)||e.unref(u))?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"tooltipRef",ref:i,class:"absolute z-10",style:e.normalizeStyle({left:`${c.value+20}px`,top:`${s.value+20}px`})},[e.createVNode(p,{"with-border":""},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"content")]),_:3})],4)):e.createCommentVNode("",!0)])}}});function Gt(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function U(t){return typeof t=="function"?t():e.unref(t)}const el=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const tl=Object.prototype.toString,rl=t=>tl.call(t)==="[object Object]",fe=()=>{};function Ut(t,r){function n(...o){return new Promise((l,a)=>{Promise.resolve(t(()=>r.apply(this,o),{fn:r,thisArg:this,args:o})).then(l).catch(a)})}return n}function nl(t,r={}){let n,o,l=fe;const a=c=>{clearTimeout(c),l(),l=fe};return c=>{const s=U(t),i=U(r.maxWait);return n&&a(n),s<=0||i!==void 0&&i<=0?(o&&(a(o),o=null),Promise.resolve(c())):new Promise((u,d)=>{l=r.rejectOnCancel?d:u,i&&!o&&(o=setTimeout(()=>{n&&a(n),o=null,u(c())},i)),n=setTimeout(()=>{o&&a(o),o=null,u(c())},s)})}}function ol(...t){let r=0,n,o=!0,l=fe,a,c,s,i,u;!e.isRef(t[0])&&typeof t[0]=="object"?{delay:c,trailing:s=!0,leading:i=!0,rejectOnCancel:u=!1}=t[0]:[c,s=!0,i=!0,u=!1]=t;const d=()=>{n&&(clearTimeout(n),n=void 0,l(),l=fe)};return f=>{const p=U(c),m=Date.now()-r,g=()=>a=f();return d(),p<=0?(r=Date.now(),g()):(m>p&&(i||!o)?(r=Date.now(),g()):s&&(a=new Promise((h,S)=>{l=u?S:h,n=setTimeout(()=>{r=Date.now(),o=!0,h(g()),d()},Math.max(0,p-m))})),!i&&!n&&(n=setTimeout(()=>o=!0,p)),o=!1,a)}}function ll(t){return e.getCurrentInstance()}function al(t,r=200,n={}){return Ut(nl(r,n),t)}function sl(t,r=200,n=!1,o=!0,l=!1){return Ut(ol(r,n,o,l),t)}function Xt(t,r=!0,n){ll()?e.onMounted(t,n):r?t():e.nextTick(t)}function le(t){var r;const n=U(t);return(r=n==null?void 0:n.$el)!=null?r:n}const Re=el?window:void 0;function Yt(...t){let r,n,o,l;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,o,l]=t,r=Re):[r,n,o,l]=t,!r)return fe;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const a=[],c=()=>{a.forEach(d=>d()),a.length=0},s=(d,f,p,m)=>(d.addEventListener(f,p,m),()=>d.removeEventListener(f,p,m)),i=e.watch(()=>[le(r),U(l)],([d,f])=>{if(c(),!d)return;const p=rl(f)?{...f}:f;a.push(...n.flatMap(m=>o.map(g=>s(d,m,g,p))))},{immediate:!0,flush:"post"}),u=()=>{i(),c()};return Gt(u),u}function il(){const t=e.ref(!1),r=e.getCurrentInstance();return r&&e.onMounted(()=>{t.value=!0},r),t}function cl(t){const r=il();return e.computed(()=>(r.value,!!t()))}function ul(t,r,n={}){const{window:o=Re,...l}=n;let a;const c=cl(()=>o&&"ResizeObserver"in o),s=()=>{a&&(a.disconnect(),a=void 0)},i=e.computed(()=>{const f=U(t);return Array.isArray(f)?f.map(p=>le(p)):[le(f)]}),u=e.watch(i,f=>{if(s(),c.value&&o){a=new ResizeObserver(r);for(const p of f)p&&a.observe(p,l)}},{immediate:!0,flush:"post"}),d=()=>{s(),u()};return Gt(d),{isSupported:c,stop:d}}function dl(t,r={width:0,height:0},n={}){const{window:o=Re,box:l="content-box"}=n,a=e.computed(()=>{var f,p;return(p=(f=le(t))==null?void 0:f.namespaceURI)==null?void 0:p.includes("svg")}),c=e.ref(r.width),s=e.ref(r.height),{stop:i}=ul(t,([f])=>{const p=l==="border-box"?f.borderBoxSize:l==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(o&&a.value){const m=le(t);if(m){const g=m.getBoundingClientRect();c.value=g.width,s.value=g.height}}else if(p){const m=Array.isArray(p)?p:[p];c.value=m.reduce((g,{inlineSize:h})=>g+h,0),s.value=m.reduce((g,{blockSize:h})=>g+h,0)}else c.value=f.contentRect.width,s.value=f.contentRect.height},n);Xt(()=>{const f=le(t);f&&(c.value="offsetWidth"in f?f.offsetWidth:r.width,s.value="offsetHeight"in f?f.offsetHeight:r.height)});const u=e.watch(()=>le(t),f=>{c.value=f?r.width:0,s.value=f?r.height:0});function d(){i(),u()}return{width:c,height:s,stop:d}}const qt=1;function fl(t,r={}){const{throttle:n=0,idle:o=200,onStop:l=fe,onScroll:a=fe,offset:c={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:i="auto",window:u=Re,onError:d=b=>{console.error(b)}}=r,f=e.ref(0),p=e.ref(0),m=e.computed({get(){return f.value},set(b){h(b,void 0)}}),g=e.computed({get(){return p.value},set(b){h(void 0,b)}});function h(b,B){var z,w,$,V;if(!u)return;const H=U(t);if(!H)return;($=H instanceof Document?u.document.body:H)==null||$.scrollTo({top:(z=U(B))!=null?z:g.value,left:(w=U(b))!=null?w:m.value,behavior:U(i)});const I=((V=H==null?void 0:H.document)==null?void 0:V.documentElement)||(H==null?void 0:H.documentElement)||H;m!=null&&(f.value=I.scrollLeft),g!=null&&(p.value=I.scrollTop)}const S=e.ref(!1),v=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),y=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),C=b=>{S.value&&(S.value=!1,y.left=!1,y.right=!1,y.top=!1,y.bottom=!1,l(b))},E=al(C,n+o),x=b=>{var B;if(!u)return;const z=((B=b==null?void 0:b.document)==null?void 0:B.documentElement)||(b==null?void 0:b.documentElement)||le(b),{display:w,flexDirection:$}=getComputedStyle(z),V=z.scrollLeft;y.left=V<f.value,y.right=V>f.value;const H=Math.abs(V)<=(c.left||0),I=Math.abs(V)+z.clientWidth>=z.scrollWidth-(c.right||0)-qt;w==="flex"&&$==="row-reverse"?(v.left=I,v.right=H):(v.left=H,v.right=I),f.value=V;let N=z.scrollTop;b===u.document&&!N&&(N=u.document.body.scrollTop),y.top=N<p.value,y.bottom=N>p.value;const Q=Math.abs(N)<=(c.top||0),A=Math.abs(N)+z.clientHeight>=z.scrollHeight-(c.bottom||0)-qt;w==="flex"&&$==="column-reverse"?(v.top=A,v.bottom=Q):(v.top=Q,v.bottom=A),p.value=N},_=b=>{var B;if(!u)return;const z=(B=b.target.documentElement)!=null?B:b.target;x(z),S.value=!0,E(b),a(b)};return Yt(t,"scroll",n?sl(_,n,!0,!1):_,s),Xt(()=>{try{const b=U(t);if(!b)return;x(b)}catch(b){d(b)}}),Yt(t,"scrollend",C,s),{x:m,y:g,isScrolling:S,arrivedState:v,directions:y,measure(){const b=U(t);u&&b&&x(b)}}}const pl=e.defineComponent({__name:"Waterfall",props:{gap:{},wrapperWidth:{},itemWidth:{},rowCount:{},paddingX:{}},setup(t,{expose:r}){const n=t,o=e.useSlots(),l=e.computed(()=>e.unref(n.gap)??16),a=e.computed(()=>e.unref(n.rowCount)??3),c=e.computed(()=>e.unref(n.paddingX)??0),s=e.ref();function i(C){return Array.isArray(C)}const u=e.ref([]),d=e.computed(()=>{const C=u.value;return Array.from(C).map(E=>dl(E))}),f=e.computed(()=>{var C,E;return n.itemWidth?e.unref(n.itemWidth)*a.value+l.value*(a.value-1)+c.value*2:n.wrapperWidth?e.unref(n.wrapperWidth):((E=(C=s.value)==null?void 0:C.parentElement)==null?void 0:E.clientWidth)??0}),p=e.computed(()=>n.itemWidth?e.unref(n.itemWidth):(f.value-c.value*2-l.value*(a.value-1))/a.value);function m(C,E,x,_){const b=e.unref(C),B=Array.from({length:e.unref(E)}).fill(0),z=[],w=Math.max(0,f.value-e.unref(_)*2-p.value*b.length-e.unref(x)*b.length)/2;for(let $=0;$<b.length;$++){const V=b[$],H=B.indexOf(Math.min(...B)),I=H*(p.value+e.unref(x))+e.unref(_)+w,N=B[H];z.push({x:I,y:N,width:V.width.value,height:V.height.value}),B[H]+=V.height.value+e.unref(x)}return z}const g=e.computed(()=>m(d,a,l,c)),h=e.computed(()=>i(g.value)?Math.max(...g.value.map(C=>C.y+C.height)):0),S=e.computed(()=>{var C;return((C=o.default)==null?void 0:C.call(o))??[]}),v=e.computed(()=>{const C=[];return S.value.forEach(E=>{i(E.children)?E.children.forEach(x=>{C.push(x)}):C.push(E)}),C});function y(C){if(!i(g.value))return{};const E=g.value[C];return E?{left:`${E.x??0}px`,top:`${E.y??0}px`,maxWidth:`${p.value}px`}:{}}return r({width:p}),(C,E)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapper",ref:s,style:e.normalizeStyle({position:"relative",overflowX:"clip",width:`${f.value}px`,height:`${h.value}px`,overflow:"scroll"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(x,_)=>(e.openBlock(),e.createElementBlock("div",{key:_,ref_for:!0,ref_key:"itemsRef",ref:u,style:e.normalizeStyle([y(_),{position:"absolute"}])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(x),{style:e.normalizeStyle({width:`${p.value}px`})},null,8,["style"]))],4))),128))],4))}}),ml=e.defineComponent({__name:"VirtualWaterfall",props:{gap:{},wrapperWidth:{},itemWidth:{},rowCount:{},paddingX:{},items:{},is:{},rangeExpand:{}},setup(t,{expose:r}){const n=t,o=e.computed(()=>e.unref(n.rangeExpand)??0),l=e.useSlots(),a=e.computed(()=>e.unref(n.gap)??16),c=e.computed(()=>e.unref(n.rowCount)??3),s=e.computed(()=>e.unref(n.paddingX)??0),i=e.ref(),u=e.computed(()=>i.value&&i.value.$el?i.value.$el:i.value);function d(w){return Array.isArray(w)}const f=e.computed(()=>{var w,$;return n.itemWidth?e.unref(n.itemWidth)*c.value+a.value*(c.value-1)+s.value*2:n.wrapperWidth?e.unref(n.wrapperWidth):(($=(w=u.value)==null?void 0:w.parentElement)==null?void 0:$.clientWidth)??0}),p=e.computed(()=>n.itemWidth?e.unref(n.itemWidth):(f.value-s.value*2-a.value*(c.value-1))/c.value),m=e.computed(()=>e.unref(n.items).map(w=>{const $=p.value/w.width;return{width:p.value,height:w.height*$}}));function g(w,$,V,H){const I=e.unref(w),N=Array.from({length:e.unref($)}).fill(0),Q=[],A=Math.max(0,f.value-e.unref(H)*2-p.value*I.length-e.unref(V)*I.length)/2;for(let D=0;D<I.length;D++){const J=I[D],ne=N.indexOf(Math.min(...N)),Ie=ne*(p.value+e.unref(V))+e.unref(H)+A,hl=N[ne];Q.push({x:Ie,y:hl,width:J.width,height:J.height}),N[ne]+=J.height+e.unref(V)}return Q}const h=e.computed(()=>g(m,c,a,s)),S=e.computed(()=>d(h.value)?Math.max(...h.value.map(w=>w.y+w.height)):0),v=e.computed(()=>{var w;return((w=l.default)==null?void 0:w.call(l))??[]});function y(w){if(!d(h.value))return{};const $=h.value[w];return $?{left:`${$.x??0}px`,top:`${$.y??0}px`,maxWidth:`${p.value}px`}:{}}const C=e.ref(!1),E=e.computed(()=>C.value?"smooth":"auto"),x=fl(u,{behavior:E}),_=e.computed(()=>{var w;return[x.y.value-o.value,x.y.value+(((w=u.value)==null?void 0:w.clientHeight)??0)+o.value]}),b=e.computed(()=>h.value.map(w=>{const $=w.y,V=w.y+w.height;return $>=_.value[0]&&$<=_.value[1]||V>=_.value[0]&&V<=_.value[1]||$<=_.value[0]&&V>=_.value[1]})),B=e.computed(()=>{const w=[];return v.value.forEach(($,V)=>{if(d($.children))$.children.forEach((H,I)=>{b.value[I]&&w.push([H,I])});else{if(!b.value[V])return;w.push([$,V])}}),w});r({scroll:x,scrollTo:(w,$=!1)=>{const V=C.value;C.value=$,x.y.value=w,C.value=V}});const z=e.computed(()=>n.is??"div");return(w,$)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(z.value),{ref_key:"wrapper",ref:i,style:{position:"relative"}},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle({height:`${S.value}px`,width:`${f.value}px`,margin:"0 auto",position:"relative"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,([V,H])=>(e.openBlock(),e.createElementBlock("div",{key:V,style:e.normalizeStyle([y(H),{position:"absolute"}])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(V),{style:e.normalizeStyle({width:`${p.value}px`})},null,8,["style"]))],4))),128))],4)]),_:1},512))}});k.AspectRatio=Kt,k.Avatar=It,k.Btn=Ne,k.BtnGroup=Hn,k.COLOR_LIGHTNESS_MAP=G,k.ChatContainer=Dn,k.ChatMessage=Pn,k.ChatSystem=Fn,k.Chip=Ln,k.ColorInput=Un,k.ColorSwatch=Dt,k.Drawer=Jn,k.Dropzone=Zn,k.FullscreenOverlay=lt,k.Image=Qn,k.Indicator=to,k.Modal=ro,k.Notification=Ot,k.NotificationSystem=co,k.Notifications=vr,k.Overlay=Ft,k.Paper=Lt,k.PinInput=go,k.Popover=yo,k.Progress=bo,k.Rating=Bo,k.RokuProvider=Eo,k.SURFACE_LIGHTNESS_MAP=se,k.SchemeSwitch=Ho,k.ScrollArea=To,k.Select=Fo,k.SelectArea=Lo,k.Slider=Uo,k.Switch=jt,k.TabItem=Yo,k.Tabs=qo,k.Tag=Ko,k.TextField=Wt,k.ThemeProvider=Zo,k.Tooltip=Qo,k.VirtualWaterfall=ml,k.Waterfall=pl,k.borderCS=Ht,k.childrenElementMapSymbol=Le,k.defaultTheme=tt,k.directionSymbol=Fe,k.errorColor=de,k.errorColors=kn,k.generateColors=pe,k.generateColorsMap=ht,k.generateColorsObjMap=q,k.getCSInner=Ce,k.primaryColor=ie,k.primaryColors=bn,k.schemeSymbol=$t,k.secondaryColor=ce,k.secondaryColors=wn,k.surfaceColor=Z,k.surfaceColors=vn,k.tabCurrentSymbol=Oe,k.tabValueListSymbol=xr,k.tertiaryColor=ue,k.tertiaryColors=Sn,k.useButtonCS=Te,k.useCS=O,k.useClientHeight=Bt,k.useColorCS=_e,k.useColors=oe,k.useContainerCS=he,k.useContainerDefaultCS=He,k.useContainerDefaultVariantCS=nt,k.useContainerFilledCS=ye,k.useContainerLightCS=Rt,k.useCurrentThemeData=Et,k.useCurrentThemeName=an,k.useCurrentThemeScheme=ln,k.useId=Ae,k.useIndicatorFilledCS=Nt,k.useInputColorStyle=ot,k.useMergedCS=ge,k.useNotifications=mt,k.useRootTheme=on,k.useRounded=W,k.useSchemeString=zt,k.useScrollHeight=_t,k.useSurfaceCS=be,k.useSurfaceColors=Tt,k.useTextCS=yn,k.useThemeData=Mt,k.useThemeStyles=Xe,Object.defineProperty(k,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(S,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(S=typeof globalThis<"u"?globalThis:S||self,e(S["roku-ui"]={},S.Vue))})(this,function(S,e){"use strict";const Kt=e.defineComponent({__name:"AspectRatio",props:{ratio:{default:1},width:{},maxWidth:{},height:{},maxHeight:{}},setup(t){return(n,r)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({"--ar-ratio":n.ratio,width:n.width,"max-width":n.maxWidth,height:n.height,"max-height":n.maxHeight}),class:"relative children:absolute children:top-0 before:block before:h-0 children:h-full children:w-full before:pb-[calc((1/var(--ar-ratio,1))*100%)] before:content-['']"},[e.renderSlot(n.$slots,"default")],4))}});function Me(t){"@babel/helpers - typeof";return Me=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Me(t)}var Jt=/^\s+/,Zt=/\s+$/;function $(t,n){if(t=t||"",n=n||{},t instanceof $)return t;if(!(this instanceof $))return new $(t,n);var r=Qt(t);this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=n.format||r.format,this._gradientType=n.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}$.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},getLuminance:function(){var n=this.toRgb(),r,o,l,a,c,s;return r=n.r/255,o=n.g/255,l=n.b/255,r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),o<=.03928?c=o/12.92:c=Math.pow((o+.055)/1.055,2.4),l<=.03928?s=l/12.92:s=Math.pow((l+.055)/1.055,2.4),.2126*a+.7152*c+.0722*s},setAlpha:function(n){return this._a=dt(n),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var n=st(this._r,this._g,this._b);return{h:n.h*360,s:n.s,v:n.v,a:this._a}},toHsvString:function(){var n=st(this._r,this._g,this._b),r=Math.round(n.h*360),o=Math.round(n.s*100),l=Math.round(n.v*100);return this._a==1?"hsv("+r+", "+o+"%, "+l+"%)":"hsva("+r+", "+o+"%, "+l+"%, "+this._roundA+")"},toHsl:function(){var n=at(this._r,this._g,this._b);return{h:n.h*360,s:n.s,l:n.l,a:this._a}},toHslString:function(){var n=at(this._r,this._g,this._b),r=Math.round(n.h*360),o=Math.round(n.s*100),l=Math.round(n.l*100);return this._a==1?"hsl("+r+", "+o+"%, "+l+"%)":"hsla("+r+", "+o+"%, "+l+"%, "+this._roundA+")"},toHex:function(n){return it(this._r,this._g,this._b,n)},toHexString:function(n){return"#"+this.toHex(n)},toHex8:function(n){return nr(this._r,this._g,this._b,this._a,n)},toHex8String:function(n){return"#"+this.toHex8(n)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(I(this._r,255)*100)+"%",g:Math.round(I(this._g,255)*100)+"%",b:Math.round(I(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(I(this._r,255)*100)+"%, "+Math.round(I(this._g,255)*100)+"%, "+Math.round(I(this._b,255)*100)+"%)":"rgba("+Math.round(I(this._r,255)*100)+"%, "+Math.round(I(this._g,255)*100)+"%, "+Math.round(I(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:hr[it(this._r,this._g,this._b,!0)]||!1},toFilter:function(n){var r="#"+ct(this._r,this._g,this._b,this._a),o=r,l=this._gradientType?"GradientType = 1, ":"";if(n){var a=$(n);o="#"+ct(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+l+"startColorstr="+r+",endColorstr="+o+")"},toString:function(n){var r=!!n;n=n||this._format;var o=!1,l=this._a<1&&this._a>=0,a=!r&&l&&(n==="hex"||n==="hex6"||n==="hex3"||n==="hex4"||n==="hex8"||n==="name");return a?n==="name"&&this._a===0?this.toName():this.toRgbString():(n==="rgb"&&(o=this.toRgbString()),n==="prgb"&&(o=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(o=this.toHexString()),n==="hex3"&&(o=this.toHexString(!0)),n==="hex4"&&(o=this.toHex8String(!0)),n==="hex8"&&(o=this.toHex8String()),n==="name"&&(o=this.toName()),n==="hsl"&&(o=this.toHslString()),n==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},clone:function(){return $(this.toString())},_applyModification:function(n,r){var o=n.apply(null,[this].concat([].slice.call(r)));return this._r=o._r,this._g=o._g,this._b=o._b,this.setAlpha(o._a),this},lighten:function(){return this._applyModification(sr,arguments)},brighten:function(){return this._applyModification(ir,arguments)},darken:function(){return this._applyModification(cr,arguments)},desaturate:function(){return this._applyModification(or,arguments)},saturate:function(){return this._applyModification(lr,arguments)},greyscale:function(){return this._applyModification(ar,arguments)},spin:function(){return this._applyModification(ur,arguments)},_applyCombination:function(n,r){return n.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(pr,arguments)},complement:function(){return this._applyCombination(dr,arguments)},monochromatic:function(){return this._applyCombination(mr,arguments)},splitcomplement:function(){return this._applyCombination(fr,arguments)},triad:function(){return this._applyCombination(ut,[3])},tetrad:function(){return this._applyCombination(ut,[4])}},$.fromRatio=function(t,n){if(Me(t)=="object"){var r={};for(var o in t)t.hasOwnProperty(o)&&(o==="a"?r[o]=t[o]:r[o]=_e(t[o]));t=r}return $(t,n)};function Qt(t){var n={r:0,g:0,b:0},r=1,o=null,l=null,a=null,c=!1,s=!1;return typeof t=="string"&&(t=wr(t)),Me(t)=="object"&&(te(t.r)&&te(t.g)&&te(t.b)?(n=er(t.r,t.g,t.b),c=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):te(t.h)&&te(t.s)&&te(t.v)?(o=_e(t.s),l=_e(t.v),n=rr(t.h,o,l),c=!0,s="hsv"):te(t.h)&&te(t.s)&&te(t.l)&&(o=_e(t.s),a=_e(t.l),n=tr(t.h,o,a),c=!0,s="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=dt(r),{ok:c,format:t.format||s,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:r}}function er(t,n,r){return{r:I(t,255)*255,g:I(n,255)*255,b:I(r,255)*255}}function at(t,n,r){t=I(t,255),n=I(n,255),r=I(r,255);var o=Math.max(t,n,r),l=Math.min(t,n,r),a,c,s=(o+l)/2;if(o==l)a=c=0;else{var i=o-l;switch(c=s>.5?i/(2-o-l):i/(o+l),o){case t:a=(n-r)/i+(n<r?6:0);break;case n:a=(r-t)/i+2;break;case r:a=(t-n)/i+4;break}a/=6}return{h:a,s:c,l:s}}function tr(t,n,r){var o,l,a;t=I(t,360),n=I(n,100),r=I(r,100);function c(u,d,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?u+(d-u)*6*f:f<1/2?d:f<2/3?u+(d-u)*(2/3-f)*6:u}if(n===0)o=l=a=r;else{var s=r<.5?r*(1+n):r+n-r*n,i=2*r-s;o=c(i,s,t+1/3),l=c(i,s,t),a=c(i,s,t-1/3)}return{r:o*255,g:l*255,b:a*255}}function st(t,n,r){t=I(t,255),n=I(n,255),r=I(r,255);var o=Math.max(t,n,r),l=Math.min(t,n,r),a,c,s=o,i=o-l;if(c=o===0?0:i/o,o==l)a=0;else{switch(o){case t:a=(n-r)/i+(n<r?6:0);break;case n:a=(r-t)/i+2;break;case r:a=(t-n)/i+4;break}a/=6}return{h:a,s:c,v:s}}function rr(t,n,r){t=I(t,360)*6,n=I(n,100),r=I(r,100);var o=Math.floor(t),l=t-o,a=r*(1-n),c=r*(1-l*n),s=r*(1-(1-l)*n),i=o%6,u=[r,c,a,a,s,r][i],d=[s,r,r,c,a,a][i],f=[a,a,s,r,r,c][i];return{r:u*255,g:d*255,b:f*255}}function it(t,n,r,o){var l=[q(Math.round(t).toString(16)),q(Math.round(n).toString(16)),q(Math.round(r).toString(16))];return o&&l[0].charAt(0)==l[0].charAt(1)&&l[1].charAt(0)==l[1].charAt(1)&&l[2].charAt(0)==l[2].charAt(1)?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0):l.join("")}function nr(t,n,r,o,l){var a=[q(Math.round(t).toString(16)),q(Math.round(n).toString(16)),q(Math.round(r).toString(16)),q(ft(o))];return l&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function ct(t,n,r,o){var l=[q(ft(o)),q(Math.round(t).toString(16)),q(Math.round(n).toString(16)),q(Math.round(r).toString(16))];return l.join("")}$.equals=function(t,n){return!t||!n?!1:$(t).toRgbString()==$(n).toRgbString()},$.random=function(){return $.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function or(t,n){n=n===0?0:n||10;var r=$(t).toHsl();return r.s-=n/100,r.s=ze(r.s),$(r)}function lr(t,n){n=n===0?0:n||10;var r=$(t).toHsl();return r.s+=n/100,r.s=ze(r.s),$(r)}function ar(t){return $(t).desaturate(100)}function sr(t,n){n=n===0?0:n||10;var r=$(t).toHsl();return r.l+=n/100,r.l=ze(r.l),$(r)}function ir(t,n){n=n===0?0:n||10;var r=$(t).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(n/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(n/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(n/100)))),$(r)}function cr(t,n){n=n===0?0:n||10;var r=$(t).toHsl();return r.l-=n/100,r.l=ze(r.l),$(r)}function ur(t,n){var r=$(t).toHsl(),o=(r.h+n)%360;return r.h=o<0?360+o:o,$(r)}function dr(t){var n=$(t).toHsl();return n.h=(n.h+180)%360,$(n)}function ut(t,n){if(isNaN(n)||n<=0)throw new Error("Argument to polyad must be a positive number");for(var r=$(t).toHsl(),o=[$(t)],l=360/n,a=1;a<n;a++)o.push($({h:(r.h+a*l)%360,s:r.s,l:r.l}));return o}function fr(t){var n=$(t).toHsl(),r=n.h;return[$(t),$({h:(r+72)%360,s:n.s,l:n.l}),$({h:(r+216)%360,s:n.s,l:n.l})]}function pr(t,n,r){n=n||6,r=r||30;var o=$(t).toHsl(),l=360/r,a=[$(t)];for(o.h=(o.h-(l*n>>1)+720)%360;--n;)o.h=(o.h+l)%360,a.push($(o));return a}function mr(t,n){n=n||6;for(var r=$(t).toHsv(),o=r.h,l=r.s,a=r.v,c=[],s=1/n;n--;)c.push($({h:o,s:l,v:a})),a=(a+s)%1;return c}$.mix=function(t,n,r){r=r===0?0:r||50;var o=$(t).toRgb(),l=$(n).toRgb(),a=r/100,c={r:(l.r-o.r)*a+o.r,g:(l.g-o.g)*a+o.g,b:(l.b-o.b)*a+o.b,a:(l.a-o.a)*a+o.a};return $(c)},$.readability=function(t,n){var r=$(t),o=$(n);return(Math.max(r.getLuminance(),o.getLuminance())+.05)/(Math.min(r.getLuminance(),o.getLuminance())+.05)},$.isReadable=function(t,n,r){var o=$.readability(t,n),l,a;switch(a=!1,l=Sr(r),l.level+l.size){case"AAsmall":case"AAAlarge":a=o>=4.5;break;case"AAlarge":a=o>=3;break;case"AAAsmall":a=o>=7;break}return a},$.mostReadable=function(t,n,r){var o=null,l=0,a,c,s,i;r=r||{},c=r.includeFallbackColors,s=r.level,i=r.size;for(var u=0;u<n.length;u++)a=$.readability(t,n[u]),a>l&&(l=a,o=$(n[u]));return $.isReadable(t,o,{level:s,size:i})||!c?o:(r.includeFallbackColors=!1,$.mostReadable(t,["#fff","#000"],r))};var Pe=$.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},hr=$.hexNames=gr(Pe);function gr(t){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[t[r]]=r);return n}function dt(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function I(t,n){yr(t)&&(t="100%");var r=br(t);return t=Math.min(n,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*n,10)/100),Math.abs(t-n)<1e-6?1:t%n/parseFloat(n)}function ze(t){return Math.min(1,Math.max(0,t))}function L(t){return parseInt(t,16)}function yr(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function br(t){return typeof t=="string"&&t.indexOf("%")!=-1}function q(t){return t.length==1?"0"+t:""+t}function _e(t){return t<=1&&(t=t*100+"%"),t}function ft(t){return Math.round(parseFloat(t)*255).toString(16)}function pt(t){return L(t)/255}var K=function(){var t="[-\\+]?\\d+%?",n="[-\\+]?\\d*\\.\\d+%?",r="(?:"+n+")|(?:"+t+")",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",l="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+o),rgba:new RegExp("rgba"+l),hsl:new RegExp("hsl"+o),hsla:new RegExp("hsla"+l),hsv:new RegExp("hsv"+o),hsva:new RegExp("hsva"+l),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function te(t){return!!K.CSS_UNIT.exec(t)}function wr(t){t=t.replace(Jt,"").replace(Zt,"").toLowerCase();var n=!1;if(Pe[t])t=Pe[t],n=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=K.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=K.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=K.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=K.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=K.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=K.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=K.hex8.exec(t))?{r:L(r[1]),g:L(r[2]),b:L(r[3]),a:pt(r[4]),format:n?"name":"hex8"}:(r=K.hex6.exec(t))?{r:L(r[1]),g:L(r[2]),b:L(r[3]),format:n?"name":"hex"}:(r=K.hex4.exec(t))?{r:L(r[1]+""+r[1]),g:L(r[2]+""+r[2]),b:L(r[3]+""+r[3]),a:pt(r[4]+""+r[4]),format:n?"name":"hex8"}:(r=K.hex3.exec(t))?{r:L(r[1]+""+r[1]),g:L(r[2]+""+r[2]),b:L(r[3]+""+r[3]),format:n?"name":"hex"}:!1}function Sr(t){var n,r;return t=t||{level:"AA",size:"small"},n=(t.level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),n!=="AA"&&n!=="AAA"&&(n="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:n,size:r}}function W(t){return e.computed(()=>({style:kr(t.rounded),class:"rounded-[--r-rounded]"}))}function kr(t){const n=/^-?(?:\d+(?:\.\d+)?|\.\d+)(?:px|em|rem|vh|vw|in|cm|mm|pt|pc|%)?$/;switch(t){case"none":return"--r-rounded: 0";case"sm":return"--r-rounded: 0.125rem";case"md":return"--r-rounded: 0.25rem";case"lg":return"--r-rounded: 0.5rem";case"full":return"--r-rounded: 9999px";default:return typeof t=="string"&&n.test(t)?`--r-rounded: ${t};`:typeof t=="number"||!Number.isNaN(Number(t))?`--r-rounded: ${t}rem;`:"rounded-[--r-rounded]"}}const Oe=e.ref([]);function mt(){return Oe}class vr{static show(n){n.hash=Math.random().toString(36),Oe.value=[n,...Oe.value]}}const Fe=Symbol("tabCurrent"),Le=Symbol("direction"),xr=Symbol("tabValueList"),We=Symbol("childrenElementMapSymbol");function Cr(t){const n=$(t).toHsl().l;return X.reduce((r,o)=>Math.abs(o-n)<Math.abs(r-n)?o:r)}function ht(t,n=X){const r=J(t,n);return{...r,colors:r.colors.map(o=>o.toHexString())}}function J(t,n=X){const r=$(t),o=Cr(r),l=n.findIndex(c=>c===o),a=n.map(c=>{const s=$({h:r.toHsl().h,s:r.toHsl().s,l:c}),i=0;return r.toHsl().h>=20&&r.toHsl().h<=200&&s.darken(2),s.saturate(i*100),s});return{baseColorIndex:l,colors:a.map(c=>c)}}function he(t,n=X){return ht(t,n).colors}function _r(t,n){let r,o,l;const a=e.ref(!0),c=()=>{a.value=!0,l()};e.watch(t,c,{flush:"sync"});const s=typeof n=="function"?n:n.get,i=typeof n=="function"?void 0:n.set,u=e.customRef((d,f)=>(o=d,l=f,{get(){return a.value&&(r=s(r),a.value=!1),o(),r},set(p){i==null||i(p)}}));return Object.isExtensible(u)&&(u.trigger=c),u}function Be(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function gt(){const t=new Set,n=l=>{t.delete(l)};return{on:l=>{t.add(l);const a=()=>n(l);return Be(a),{off:a}},off:n,trigger:(...l)=>Promise.all(Array.from(t).map(a=>a(...l)))}}function P(t){return typeof t=="function"?t():e.unref(t)}const re=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Br=t=>t!=null,Er=Object.prototype.toString,$r=t=>Er.call(t)==="[object Object]",Z=()=>{},Mr=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),zr=Ar();function Ar(){var t,n;return re&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((n=window==null?void 0:window.navigator)==null?void 0:n.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function je(t,n){function r(...o){return new Promise((l,a)=>{Promise.resolve(t(()=>n.apply(this,o),{fn:n,thisArg:this,args:o})).then(l).catch(a)})}return r}const yt=t=>t();function Vr(t,n={}){let r,o,l=Z;const a=s=>{clearTimeout(s),l(),l=Z};return s=>{const i=P(t),u=P(n.maxWait);return r&&a(r),i<=0||u!==void 0&&u<=0?(o&&(a(o),o=null),Promise.resolve(s())):new Promise((d,f)=>{l=n.rejectOnCancel?f:d,u&&!o&&(o=setTimeout(()=>{r&&a(r),o=null,d(s())},u)),r=setTimeout(()=>{o&&a(o),o=null,d(s())},i)})}}function Hr(...t){let n=0,r,o=!0,l=Z,a,c,s,i,u;!e.isRef(t[0])&&typeof t[0]=="object"?{delay:c,trailing:s=!0,leading:i=!0,rejectOnCancel:u=!1}=t[0]:[c,s=!0,i=!0,u=!1]=t;const d=()=>{r&&(clearTimeout(r),r=void 0,l(),l=Z)};return p=>{const m=P(c),g=Date.now()-n,h=()=>a=p();return d(),m<=0?(n=Date.now(),h()):(g>m&&(i||!o)?(n=Date.now(),h()):s&&(a=new Promise((w,v)=>{l=u?v:w,r=setTimeout(()=>{n=Date.now(),o=!0,w(h()),d()},Math.max(0,m-g))})),!i&&!r&&(r=setTimeout(()=>o=!0,m)),o=!1,a)}}function Tr(t=yt){const n=e.ref(!0);function r(){n.value=!1}function o(){n.value=!0}const l=(...a)=>{n.value&&t(...a)};return{isActive:e.readonly(n),pause:r,resume:o,eventFilter:l}}function Nr(t){return e.getCurrentInstance()}function bt(t,n=200,r={}){return je(Vr(n,r),t)}function Rr(t,n=200,r={}){const o=e.ref(t.value),l=bt(()=>{o.value=t.value},n,r);return e.watch(t,()=>l()),o}function Ir(t,n=200,r=!1,o=!0,l=!1){return je(Hr(n,r,o,l),t)}function Dr(t,n,r={}){const{eventFilter:o=yt,...l}=r;return e.watch(t,je(o,n),l)}function Pr(t,n,r={}){const{eventFilter:o,...l}=r,{eventFilter:a,pause:c,resume:s,isActive:i}=Tr(o);return{stop:Dr(t,n,{...l,eventFilter:a}),pause:c,resume:s,isActive:i}}function ge(t,n=!0,r){Nr()?e.onMounted(t,r):n?t():e.nextTick(t)}const j=re?window:void 0,Or=re?window.document:void 0;function F(t){var n;const r=P(t);return(n=r==null?void 0:r.$el)!=null?n:r}function T(...t){let n,r,o,l;if(typeof t[0]=="string"||Array.isArray(t[0])?([r,o,l]=t,n=j):[n,r,o,l]=t,!n)return Z;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const a=[],c=()=>{a.forEach(d=>d()),a.length=0},s=(d,f,p,m)=>(d.addEventListener(f,p,m),()=>d.removeEventListener(f,p,m)),i=e.watch(()=>[F(n),P(l)],([d,f])=>{if(c(),!d)return;const p=$r(f)?{...f}:f;a.push(...r.flatMap(m=>o.map(g=>s(d,m,g,p))))},{immediate:!0,flush:"post"}),u=()=>{i(),c()};return Be(u),u}let wt=!1;function St(t,n,r={}){const{window:o=j,ignore:l=[],capture:a=!0,detectIframe:c=!1}=r;if(!o)return Z;zr&&!wt&&(wt=!0,Array.from(o.document.body.children).forEach(m=>m.addEventListener("click",Z)),o.document.documentElement.addEventListener("click",Z));let s=!0;const i=m=>P(l).some(g=>{if(typeof g=="string")return Array.from(o.document.querySelectorAll(g)).some(h=>h===m.target||m.composedPath().includes(h));{const h=F(g);return h&&(m.target===h||m.composedPath().includes(h))}}),u=m=>{const g=F(t);if(!(!g||g===m.target||m.composedPath().includes(g))){if(m.detail===0&&(s=!i(m)),!s){s=!0;return}n(m)}};let d=!1;const f=[T(o,"click",m=>{d||(d=!0,setTimeout(()=>{d=!1},0),u(m))},{passive:!0,capture:a}),T(o,"pointerdown",m=>{const g=F(t);s=!i(m)&&!!(g&&!m.composedPath().includes(g))},{passive:!0}),c&&T(o,"blur",m=>{setTimeout(()=>{var g;const h=F(t);((g=o.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(h!=null&&h.contains(o.document.activeElement))&&n(m)},0)})].filter(Boolean);return()=>f.forEach(m=>m())}function Fr(t){return typeof t=="function"?t:typeof t=="string"?n=>n.key===t:Array.isArray(t)?n=>t.includes(n.key):()=>!0}function ae(...t){let n,r,o={};t.length===3?(n=t[0],r=t[1],o=t[2]):t.length===2?typeof t[1]=="object"?(n=!0,r=t[0],o=t[1]):(n=t[0],r=t[1]):(n=!0,r=t[0]);const{target:l=j,eventName:a="keydown",passive:c=!1,dedupe:s=!1}=o,i=Fr(n);return T(l,a,d=>{d.repeat&&P(s)||i(d)&&r(d)},c)}function Lr(){const t=e.ref(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function Xe(t){const n=Lr();return e.computed(()=>(n.value,!!t()))}function Ge(t,n,r={}){const{window:o=j,...l}=r;let a;const c=Xe(()=>o&&"MutationObserver"in o),s=()=>{a&&(a.disconnect(),a=void 0)},i=e.computed(()=>{const p=P(t),m=(Array.isArray(p)?p:[p]).map(F).filter(Br);return new Set(m)}),u=e.watch(()=>i.value,p=>{s(),c.value&&p.size&&(a=new MutationObserver(n),p.forEach(m=>a.observe(m,l)))},{immediate:!0,flush:"post"}),d=()=>a==null?void 0:a.takeRecords(),f=()=>{u(),s()};return Be(f),{isSupported:c,stop:f,takeRecords:d}}function Wr(t,n={}){const{window:r=j}=n,o=Xe(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let l;const a=e.ref(!1),c=u=>{a.value=u.matches},s=()=>{l&&("removeEventListener"in l?l.removeEventListener("change",c):l.removeListener(c))},i=e.watchEffect(()=>{o.value&&(s(),l=r.matchMedia(P(t)),"addEventListener"in l?l.addEventListener("change",c):l.addListener(c),a.value=l.matches)});return Be(()=>{i(),s(),l=void 0}),a}const Ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ve="__vueuse_ssr_handlers__",jr=Xr();function Xr(){return Ve in Ae||(Ae[Ve]=Ae[Ve]||{}),Ae[Ve]}function Gr(t,n){return jr[t]||n}function Ur(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}const Yr={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},kt="vueuse-storage";function qr(t,n,r,o={}){var l;const{flush:a="pre",deep:c=!0,listenToStorageChanges:s=!0,writeDefaults:i=!0,mergeDefaults:u=!1,shallow:d,window:f=j,eventFilter:p,onError:m=k=>{console.error(k)},initOnMounted:g}=o,h=(d?e.shallowRef:e.ref)(n);if(!r)try{r=Gr("getDefaultStorage",()=>{var k;return(k=j)==null?void 0:k.localStorage})()}catch(k){m(k)}if(!r)return h;const w=P(n),v=Ur(w),y=(l=o.serializer)!=null?l:Yr[v],{pause:C,resume:E}=Pr(h,()=>_(h.value),{flush:a,deep:c,eventFilter:p});f&&s&&ge(()=>{r instanceof Storage?T(f,"storage",B):T(f,kt,A),g&&B()}),g||B();function x(k,z){if(f){const H={key:t,oldValue:k,newValue:z,storageArea:r};f.dispatchEvent(r instanceof Storage?new StorageEvent("storage",H):new CustomEvent(kt,{detail:H}))}}function _(k){try{const z=r.getItem(t);if(k==null)x(z,null),r.removeItem(t);else{const H=y.write(k);z!==H&&(r.setItem(t,H),x(z,H))}}catch(z){m(z)}}function b(k){const z=k?k.newValue:r.getItem(t);if(z==null)return i&&w!=null&&r.setItem(t,y.write(w)),w;if(!k&&u){const H=y.read(z);return typeof u=="function"?u(H,w):v==="object"&&!Array.isArray(H)?{...w,...H}:H}else return typeof z!="string"?z:y.read(z)}function B(k){if(!(k&&k.storageArea!==r)){if(k&&k.key==null){h.value=w;return}if(!(k&&k.key!==t)){C();try{(k==null?void 0:k.newValue)!==y.write(h.value)&&(h.value=b(k))}catch(z){m(z)}finally{k?e.nextTick(E):E()}}}}function A(k){B(k.detail)}return h}function Kr(t){const n=e.getCurrentInstance(),r=_r(()=>null,()=>n.proxy.$el);return e.onUpdated(r.trigger),e.onMounted(r.trigger),r}function Jr(t,n={}){var r,o;const l=e.ref(!1),a=e.shallowRef(null);let c=0,s=!0;if(re){const i=typeof n=="function"?{onDrop:n}:n,u=(r=i.multiple)!=null?r:!0,d=(o=i.preventDefaultForUnhandled)!=null?o:!1,f=h=>{var w,v;const y=Array.from((v=(w=h.dataTransfer)==null?void 0:w.files)!=null?v:[]);return y.length===0?null:u?y:[y[0]]},p=h=>{if(i.dataTypes){const w=e.unref(i.dataTypes);return typeof w=="function"?w(h):w?w.some(v=>h.includes(v)):!0}return!0},m=h=>{var w,v;const y=Array.from((v=(w=h.dataTransfer)==null?void 0:w.items)!=null?v:[]),C=y.filter(_=>_.kind==="file").map(_=>_.type),E=p(C),x=u||y.filter(_=>_.kind==="file").length<=1;return E&&x},g=(h,w)=>{var v,y,C,E;if(s=m(h),!s){d&&h.preventDefault(),h.dataTransfer&&(h.dataTransfer.dropEffect="none");return}h.preventDefault(),h.dataTransfer&&(h.dataTransfer.dropEffect="copy");const x=f(h);switch(w){case"enter":c+=1,l.value=!0,(v=i.onEnter)==null||v.call(i,null,h);break;case"over":(y=i.onOver)==null||y.call(i,null,h);break;case"leave":c-=1,c===0&&(l.value=!1),(C=i.onLeave)==null||C.call(i,null,h);break;case"drop":c=0,l.value=!1,s&&(a.value=x,(E=i.onDrop)==null||E.call(i,x,h));break}};T(t,"dragenter",h=>g(h,"enter")),T(t,"dragover",h=>g(h,"over")),T(t,"dragleave",h=>g(h,"leave")),T(t,"drop",h=>g(h,"drop"))}return{files:a,isOverDropZone:l}}function Ue(t,n,r={}){const{window:o=j,...l}=r;let a;const c=Xe(()=>o&&"ResizeObserver"in o),s=()=>{a&&(a.disconnect(),a=void 0)},i=e.computed(()=>{const f=P(t);return Array.isArray(f)?f.map(p=>F(p)):[F(f)]}),u=e.watch(i,f=>{if(s(),c.value&&o){a=new ResizeObserver(n);for(const p of f)p&&a.observe(p,l)}},{immediate:!0,flush:"post"}),d=()=>{s(),u()};return Be(d),{isSupported:c,stop:d}}function ne(t,n={}){const{reset:r=!0,windowResize:o=!0,windowScroll:l=!0,immediate:a=!0,updateTiming:c="sync"}=n,s=e.ref(0),i=e.ref(0),u=e.ref(0),d=e.ref(0),f=e.ref(0),p=e.ref(0),m=e.ref(0),g=e.ref(0);function h(){const v=F(t);if(!v){r&&(s.value=0,i.value=0,u.value=0,d.value=0,f.value=0,p.value=0,m.value=0,g.value=0);return}const y=v.getBoundingClientRect();s.value=y.height,i.value=y.bottom,u.value=y.left,d.value=y.right,f.value=y.top,p.value=y.width,m.value=y.x,g.value=y.y}function w(){c==="sync"?h():c==="next-frame"&&requestAnimationFrame(()=>h())}return Ue(t,w),e.watch(()=>F(t),v=>!v&&w()),Ge(t,w,{attributeFilter:["style","class"]}),l&&T("scroll",w,{capture:!0,passive:!0}),o&&T("resize",w,{passive:!0}),ge(()=>{a&&w()}),{height:s,bottom:i,left:u,right:d,top:f,width:p,x:m,y:g,update:w}}function ye(t,n={}){const{delayEnter:r=0,delayLeave:o=0,window:l=j}=n,a=e.ref(!1);let c;const s=i=>{const u=i?r:o;c&&(clearTimeout(c),c=void 0),u?c=setTimeout(()=>a.value=i,u):a.value=i};return l&&(T(t,"mouseenter",()=>s(!0),{passive:!0}),T(t,"mouseleave",()=>s(!1),{passive:!0})),a}const Zr={multiple:!0,accept:"*",reset:!1,directory:!1};function Qr(t={}){const{document:n=Or}=t,r=e.ref(null),{on:o,trigger:l}=gt(),{on:a,trigger:c}=gt();let s;n&&(s=n.createElement("input"),s.type="file",s.onchange=d=>{const f=d.target;r.value=f.files,l(r.value)},s.oncancel=()=>{c()});const i=()=>{r.value=null,s&&s.value&&(s.value="",l(null))},u=d=>{if(!s)return;const f={...Zr,...t,...d};s.multiple=f.multiple,s.accept=f.accept,s.webkitdirectory=f.directory,Mr(f,"capture")&&(s.capture=f.capture),f.reset&&i(),s.click()};return{files:e.readonly(r),open:u,reset:i,onCancel:a,onChange:o}}const vt=1;function en(t,n={}){const{throttle:r=0,idle:o=200,onStop:l=Z,onScroll:a=Z,offset:c={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:i="auto",window:u=j,onError:d=b=>{console.error(b)}}=n,f=e.ref(0),p=e.ref(0),m=e.computed({get(){return f.value},set(b){h(b,void 0)}}),g=e.computed({get(){return p.value},set(b){h(void 0,b)}});function h(b,B){var A,k,z,H;if(!u)return;const M=P(t);if(!M)return;(z=M instanceof Document?u.document.body:M)==null||z.scrollTo({top:(A=P(B))!=null?A:g.value,left:(k=P(b))!=null?k:m.value,behavior:P(i)});const N=((H=M==null?void 0:M.document)==null?void 0:H.documentElement)||(M==null?void 0:M.documentElement)||M;m!=null&&(f.value=N.scrollLeft),g!=null&&(p.value=N.scrollTop)}const w=e.ref(!1),v=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),y=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),C=b=>{w.value&&(w.value=!1,y.left=!1,y.right=!1,y.top=!1,y.bottom=!1,l(b))},E=bt(C,r+o),x=b=>{var B;if(!u)return;const A=((B=b==null?void 0:b.document)==null?void 0:B.documentElement)||(b==null?void 0:b.documentElement)||F(b),{display:k,flexDirection:z}=getComputedStyle(A),H=A.scrollLeft;y.left=H<f.value,y.right=H>f.value;const M=Math.abs(H)<=(c.left||0),N=Math.abs(H)+A.clientWidth>=A.scrollWidth-(c.right||0)-vt;k==="flex"&&z==="row-reverse"?(v.left=N,v.right=M):(v.left=M,v.right=N),f.value=H;let R=A.scrollTop;b===u.document&&!R&&(R=u.document.body.scrollTop),y.top=R<p.value,y.bottom=R>p.value;const Y=Math.abs(R)<=(c.top||0),V=Math.abs(R)+A.clientHeight>=A.scrollHeight-(c.bottom||0)-vt;k==="flex"&&z==="column-reverse"?(v.top=V,v.bottom=Y):(v.top=Y,v.bottom=V),p.value=R},_=b=>{var B;if(!u)return;const A=(B=b.target.documentElement)!=null?B:b.target;x(A),w.value=!0,E(b),a(b)};return T(t,"scroll",r?Ir(_,r,!0,!1):_,s),ge(()=>{try{const b=P(t);if(!b)return;x(b)}catch(b){d(b)}}),T(t,"scrollend",C,s),{x:m,y:g,isScrolling:w,arrivedState:v,directions:y,measure(){const b=P(t);u&&b&&x(b)}}}function xt(t,n,r={}){const{window:o=j}=r;return qr(t,n,o==null?void 0:o.localStorage,r)}const tn={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function rn(t={}){const{reactive:n=!1,target:r=j,aliasMap:o=tn,passive:l=!0,onEventFired:a=Z}=t,c=e.reactive(new Set),s={toJSON(){return{}},current:c},i=n?e.reactive(s):s,u=new Set,d=new Set;function f(h,w){h in i&&(n?i[h]=w:i[h].value=w)}function p(){c.clear();for(const h of d)f(h,!1)}function m(h,w){var v,y;const C=(v=h.key)==null?void 0:v.toLowerCase(),x=[(y=h.code)==null?void 0:y.toLowerCase(),C].filter(Boolean);C&&(w?c.add(C):c.delete(C));for(const _ of x)d.add(_),f(_,w);C==="meta"&&!w?(u.forEach(_=>{c.delete(_),f(_,!1)}),u.clear()):typeof h.getModifierState=="function"&&h.getModifierState("Meta")&&w&&[...c,...x].forEach(_=>u.add(_))}T(r,"keydown",h=>(m(h,!0),a(h)),{passive:l}),T(r,"keyup",h=>(m(h,!1),a(h)),{passive:l}),T("blur",p,{passive:!0}),T("focus",p,{passive:!0});const g=new Proxy(i,{get(h,w,v){if(typeof w!="string")return Reflect.get(h,w,v);if(w=w.toLowerCase(),w in o&&(w=o[w]),!(w in i))if(/[+_-]/.test(w)){const C=w.split(/[+_-]/g).map(E=>E.trim());i[w]=e.computed(()=>C.every(E=>P(g[E])))}else i[w]=e.ref(!1);const y=Reflect.get(h,w,v);return n?P(y):y}});return g}const nn={page:t=>[t.pageX,t.pageY],client:t=>[t.clientX,t.clientY],screen:t=>[t.screenX,t.screenY],movement:t=>t instanceof Touch?null:[t.movementX,t.movementY]};function He(t={}){const{type:n="page",touch:r=!0,resetOnTouchEnds:o=!1,initialValue:l={x:0,y:0},window:a=j,target:c=a,scroll:s=!0,eventFilter:i}=t;let u=null;const d=e.ref(l.x),f=e.ref(l.y),p=e.ref(null),m=typeof n=="function"?n:nn[n],g=x=>{const _=m(x);u=x,_&&([d.value,f.value]=_,p.value="mouse")},h=x=>{if(x.touches.length>0){const _=m(x.touches[0]);_&&([d.value,f.value]=_,p.value="touch")}},w=()=>{if(!u||!a)return;const x=m(u);u instanceof MouseEvent&&x&&(d.value=x[0]+a.scrollX,f.value=x[1]+a.scrollY)},v=()=>{d.value=l.x,f.value=l.y},y=i?x=>i(()=>g(x),{}):x=>g(x),C=i?x=>i(()=>h(x),{}):x=>h(x),E=i?()=>i(()=>w(),{}):()=>w();if(c){const x={passive:!0};T(c,["mousemove","dragover"],y,x),r&&n!=="movement"&&(T(c,["touchstart","touchmove"],C,x),o&&T(c,"touchend",v,x)),s&&n==="page"&&T(a,"scroll",E,{passive:!0})}return{x:d,y:f,sourceType:p}}function Ct(t=Kr()){const n=e.shallowRef(),r=()=>{const o=F(t);o&&(n.value=o.parentElement)};return ge(r),e.watch(()=>P(t),r),n}function _t(t){const n=e.ref(0),r=e.computed(()=>F(t)),o=()=>{r.value&&(n.value=r.value.scrollHeight)};return o(),ge(o),Ue(()=>r.value,o),Ge(()=>r.value,o,{childList:!0,subtree:!0,attributes:!0}),n}function Bt(t,n={}){const{initialWidth:r=Number.POSITIVE_INFINITY,listenOrientation:o=!0}=n,l=e.ref(r),a=e.computed(()=>F(t)),c=()=>{a.value&&(l.value=a.value.clientHeight)};if(c(),ge(c),T("resize",c,{passive:!0}),Ue(()=>a.value,c),Ge(()=>a.value,c,{childList:!0,subtree:!0,attributes:!0}),o){const s=Wr("(orientation: portrait)");e.watch(s,()=>c())}return l}const X=[.98,.8,.7,.6,.43,.4,.36,.3,.2,.1,.01],se=[1,.99,.95,.9,.7,.5,.4,.2,.1,.075,.05];function on(){if(!re)return e.ref("dark");const t=e.ref(document.documentElement.dataset.scheme);return new MutationObserver(r=>{r.forEach(o=>{o.type==="attributes"&&o.attributeName==="data-scheme"&&(t.value=document.documentElement.dataset.scheme)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["data-scheme"]}),t}function ln(){return e.inject("currentThemeScheme",null)}function Et(){return e.inject("currentThemeData",e.ref(tt))}function an(){return e.inject("currentThemeName",e.ref("default"))}function $t(t,n,r={}){const o=X,l=se;return r.primary===void 0&&(r.primary=o),r.secondary===void 0&&(r.secondary=o),r.tertiary===void 0&&(r.tertiary=o),r.error===void 0&&(r.error=o),r.surface===void 0&&(r.surface=l),e.computed(()=>({name:t,colors:{primary:he(e.unref(n.primary),r.primary),secondary:he(e.unref(n.secondary),r.secondary),tertiary:he(e.unref(n.tertiary),r.tertiary),error:he(e.unref(n.error),r.error),surface:he(e.unref(n.surface),r.surface)}}))}function sn(t,n=X){return e.computed(()=>{const r=e.unref(t);return typeof r=="string"?oe(r,n).value.map(o=>o.toHexString()):r})}function Ye(t){const n=e.ref(t);return{...{...Object.keys(n.value.colors).map(a=>{const c=a,s=n.value.colors[c];return sn(s,c==="surface"?se:X).value.reduce((d,f,p)=>{const m=$(f).toRgb();return d[`--r-color-${c}-${p}`]=`${m.r} ${m.g} ${m.b}`,d},{})}).reduce((a,c)=>({...a,...c}),{})},...{backgroundColor:"var(--r-surface-background-base-color)",color:"var(--r-surface-text-color)"}}}function Te(t){const n=e.ref("");return e.onMounted(()=>{t.id?n.value=t.id:n.value=`switch-${Math.random().toString(36).slice(2)}-${Date.now().toString(36)}`}),n}const Mt=Symbol("scheme");function zt(){const t=xt("scheme","light");return re&&new MutationObserver(()=>{t.value!==document.documentElement.dataset.scheme&&(t.value=document.documentElement.dataset.scheme)}).observe(document.documentElement,{attributes:!0,attributeFilter:["data-scheme"]}),t}const qe=9,cn=7,Ke=7,un=7,be=3,dn=6,ie=5,At=6,Je=3,fn=4,Ze=.25,pn=.3,Qe=1,mn=2,we=6,hn=5,Se=4,Vt=5,et=.08,gn=.15,ce=e.ref("#0067cc"),ue=e.ref("#5999A6"),de=e.ref("#F76C22"),fe=e.ref("#F95858"),ee=e.ref("#121212"),Ht=e.computed(()=>O({color:"surface",type:"border",index:{dark:Ke,light:Je}}).value);function yn(t){return $e(t,"text",{dark:be,light:we})}const bn=e.computed(()=>J(e.unref(ce),X).colors),wn=e.computed(()=>J(e.unref(ue),X).colors),Sn=e.computed(()=>J(e.unref(de),X).colors),kn=e.computed(()=>J(e.unref(fe),X).colors),vn=e.computed(()=>J(e.unref(ee),se).colors),tt=$t("default",{primary:ce,secondary:ue,tertiary:de,error:fe,surface:ee});function ke(t,n){return e.computed(()=>{switch(e.unref(t)){case"filled":return xe(n).value;case"light":return Rt(n).value;default:return Ne().value}})}function xn(t){return e.computed(()=>{const n=e.unref(t);switch(n){case"surface":return $(e.unref(ee));case"primary":return $(e.unref(ce));case"secondary":return $(e.unref(ue));case"tertiary":return $(e.unref(de));case"error":return $(e.unref(fe));default:return $(n)}})}const rt=new Map;function oe(t,n=X){return e.computed(()=>{const o=xn(t).value.toHexString();if(rt.has(o))return rt.get(o);function l(){const a=J(o,n).colors;return rt.set(o,a),a}return l()})}function Tt(){return e.computed(()=>J(e.unref(ee),se).colors)}function Ne(){return e.computed(()=>{const t=O({color:"surface",type:"bg",index:{dark:8,light:1}}),n=O({color:"surface",type:"border",index:{dark:7,light:3}}),r=ve(t,n);return r.value.class=[...r.value.class,"border"],r.value})}function nt(){return e.computed(()=>{const t=O({color:"surface",type:"bg",index:{dark:7,light:2}}),n=O({color:"surface",type:"border",index:{dark:6,light:4}});return ve(t,n).value})}function ve(...t){return e.computed(()=>({style:t.reduce((n,r)=>({...n,...r.value.style}),{}),class:t.reduce((n,r)=>[...n,...r.value.class],[])}))}function Nt(t){return e.computed(()=>{const n=O({color:t,type:"bg",index:{dark:5,light:4}}),r=O({color:"surface",type:"border",index:{dark:qe,light:Qe}}),o=O({color:t,type:"text",index:0});return ve(n,r,o).value})}function xe(t){return e.computed(()=>{const n=O({color:t,type:"bg",index:{dark:ie,light:Se}}),r=O({color:t,type:"border",index:{dark:ie,light:Se}}),o=O({color:t,type:"text",index:0});return ve(n,r,o).value})}function Rt(t){return e.computed(()=>{const n=O({color:t,type:"bg",index:{dark:ie,light:Se},alpha:.15}),r=O({color:t,type:"text",index:{dark:be,light:we}}),o=O({color:t,type:"border",index:{dark:5,light:4},alpha:0});return ve(n,r,o).value})}function Ee(t,n,r,o,l=1){switch(n){case"outline":return{style:{"--d-outline":t[r].clone().setAlpha(l).toHex8String(),"--l-outline":t[o].clone().setAlpha(l).toHex8String()},class:["dark:focus-visible:outline-[--d-outline]","focus-visible:outline-[--l-outline]"]};case"bg":return{style:{"--d-bg":t[r].clone().setAlpha(l).toHex8String(),"--l-bg":t[o].clone().setAlpha(l).toHex8String()},class:["dark:bg-[--d-bg]","bg-[--l-bg]"]};case"border":return{style:{"--d-border":t[r].clone().setAlpha(l).toHex8String(),"--l-border":t[o].clone().setAlpha(l).toHex8String()},class:["dark:border-[--d-border]","border-[--l-border]"]};case"text":return{style:{"--d-text":t[r].clone().setAlpha(l).toHex8String(),"--l-text":t[o].clone().setAlpha(l).toHex8String()},class:["dark:text-[--d-text]","text-[--l-text]"]};case"placeholder":return{style:{"--d-placeholder":t[r].clone().setAlpha(l).toHex8String(),"--l-placeholder":t[o].clone().setAlpha(l).toHex8String()},class:["dark:placeholder-[--d-placeholder]","placeholder-[--l-placeholder]"]};case"hover:bg":return{style:{"--d-bg-h":t[r].clone().setAlpha(l).toHexString(),"--l-bg-h":t[o].clone().setAlpha(l).toHexString()},class:["dark:hover:bg-[--d-bg-h]","hover:bg-[--l-bg-h]"]};case"hover:border":return{style:{"--d-border-h":t[r].clone().setAlpha(l).toHexString(),"--l-border-h":t[o].clone().setAlpha(l).toHexString()},class:["dark:hover:border-[--d-border-h]","hover:border-[--l-border-h]"]};case"hover:text":return{style:{"--d-text-h":t[r].clone().setAlpha(l).toHexString(),"--l-text-h":t[o].clone().setAlpha(l).toHexString()},class:["dark:hover:text-[--d-text-h]","hover:text-[--l-text-h]"]}}}function O(t){return t.color==="surface"?Ce(t.type,t.index):$e(t.color,t.type,t.index,t.alpha)}function $e(t,n,r,o=1){return e.computed(()=>{const l=oe(t);return typeof r=="number"?Ee(e.unref(l),n,r,r,o):Ee(e.unref(l),n,r.dark,r.light,o)})}function Ce(t,n,r=1){return e.computed(()=>{const{colors:o}=J(e.unref(ee),se);return typeof n=="number"?Ee(o,t,n,n,r):Ee(o,t,n.dark,n.light,r)})}function Re(t="default",n="primary"){return e.computed(()=>{const r=oe(n).value,o=J(e.unref(ee),se).colors;return{style:{default:()=>Cn(o),filled:()=>_n(r),light:()=>Bn(r),outline:()=>En(r),transparent:()=>$n(r),subtle:()=>Mn(r),contrast:()=>zn(r),white:()=>An(r)}[e.unref(t)](),class:"custom-colors"}})}function Cn(t){return{"--d-bg":t[qe].toHexString(),"--d-bg-h":t[cn].toHexString(),"--d-border":t[un].toHexString(),"--l-bg":t[Qe].toHexString(),"--l-bg-h":t[mn].toHexString(),"--l-border":t[fn].toHexString()}}function _n(t){return{"--d-border":"transparent","--d-bg":t[ie].toHexString(),"--d-bg-h":t[At].toHexString(),"--d-text":"white","--l-bg":t[Se].toHexString(),"--l-bg-h":t[Vt].toHexString(),"--l-text":"white","--l-text-h":"white","--l-border":"transparent"}}function Bn(t){return{"--d-border":"transparent","--d-bg":t[ie].clone().setAlpha(Ze).toHex8String(),"--d-bg-h":t[ie].clone().setAlpha(pn).toHex8String(),"--d-text":t[be].toHexString(),"--d-text-h":t[be].toHexString(),"--l-bg":t[Se].clone().setAlpha(et).toHex8String(),"--l-bg-h":t[Se].clone().setAlpha(gn).toHex8String(),"--l-text":t[we].toHexString(),"--l-text-h":t[we].toHexString(),"--l-border":"transparent"}}function En(t){return{"--d-bg":"transparent","--d-bg-h":t[At].clone().setAlpha(Ze).toHex8String(),"--d-text":t[be].toHexString(),"--d-text-h":t[be].toHexString(),"--d-border":t[Ke].toHexString(),"--l-bg":"transparent","--l-bg-h":t[Vt].clone().setAlpha(et).toHex8String(),"--l-text":t[we].toHexString(),"--l-text-h":t[we].toHexString(),"--l-border":t[Je].toHexString()}}function $n(t){return{"--d-text":t[3].toHexString(),"--d-text-h":t[3].toHexString(),"--l-text":t[5].toHexString(),"--l-text-h":t[5].toHexString(),"--d-bg":"transparent","--l-bg":"transparent","--d-border":"transparent","--l-border":"transparent"}}function Mn(t){return{"--d-bg":"transparent","--d-bg-h":t[3].clone().setAlpha(Ze).toHex8String(),"--d-text":t[2].toHexString(),"--d-text-h":t[2].toHexString(),"--d-border":"transparent","--l-bg":"transparent","--l-bg-h":t[3].clone().setAlpha(et).toHex8String(),"--l-text":t[5].toHexString(),"--l-text-h":t[5].toHexString(),"--l-border":"transparent"}}function zn(t){return{"--d-text":t[2].toHexString(),"--d-text-h":"white","--d-bg":"transparent","--d-bg-h":t[5].toHexString(),"--d-border":"transparent","--l-text":t[5].toHexString(),"--l-text-h":"white","--l-bg":"transparent","--l-bg-h":t[5].toHexString(),"--l-border":"transparent"}}function An(t){return{"--d-bg":"white","--d-bg-h":"white","--d-text":t[4].toHexString(),"--d-text-h":t[4].toHexString(),"--d-border":"transparent","--l-bg":"white","--l-bg-h":"white","--l-text":t[5].toHexString(),"--l-text-h":t[5].toHexString(),"--l-border":"transparent"}}function ot(t,n="default"){return e.computed(()=>{const r=oe(t).value,o=Tt().value;switch(e.unref(n)){case"default":return{"--d-bg":o[qe].toHexString(),"--d-border-f":r[ie].toHexString(),"--d-border":o[Ke].toHexString(),"--d-placeholder":o[dn].toHexString(),"--d-text":"white","--l-bg":o[Qe].toHexString(),"--l-border-f":r[3].toHexString(),"--l-border":o[Je].toHexString(),"--l-placeholder":o[hn].toHexString(),"--l-text":"black"};case"filled":return{"--d-bg":r[5].toHexString(),"--d-bg-h":r[6].toHexString(),"--d-border":"transparent","--l-bg":r[5].toHexString(),"--l-bg-h":r[6].toHexString(),"--l-border":"transparent"}}})}const Vn={key:2,class:"i-fluent-person-24-filled"},It=e.defineComponent({__name:"Avatar",props:{is:{default:"img"},src:{},size:{default:"md"},name:{},variant:{default:"default"},color:{default:"default"},rounded:{default:"full"},skeleton:{type:Boolean}},setup(t){const n=t,r=W(n),o=e.computed(()=>n.name||""),l=e.computed(()=>{switch(n.size){case"xs":return"--size: 2rem; --font-size: 1rem;";case"sm":return"--size: 3rem; --font-size: 1.25rem;";case"md":return"--size: 4rem; --font-size: 2rem;";case"lg":return"--size: 6rem; --font-size: 3rem;";case"xl":return"--size: 8rem; --font-size: 4rem;";default:return typeof n.size=="number"&&!Number.isNaN(Number(n.size))?`--size: ${n.size}rem; --font-size: ${n.size/2}rem;`:"--size: 4rem;"}}),a=e.ref(!1),c=e.ref(null);function s(){a.value=!0}e.onMounted(()=>{var f;(f=c.value)!=null&&f.complete&&s()});function i(f){return f.split(" ").map(p=>p[0]).join("").toUpperCase().slice(0,2)}const u=e.computed(()=>n.color),d=ke(n.variant,u);return(f,p)=>f.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,class:"inline-block min-h-[--size] min-w-[--size] animate-pulse rounded-full bg-surface-variant",style:e.normalizeStyle([e.unref(r).style,l.value])},null,4)):f.src?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.is),e.mergeProps({key:1,ref_key:"img",ref:c,alt:o.value,class:[[e.unref(r).class,e.unref(d).class,{hidden:!a.value}],"inline-block h-[var(--size)] w-[var(--size)] rounded-full object-cover"],style:[e.unref(r).style,e.unref(d).style,l.value],src:f.src},f.$attrs,{onLoad:s}),null,16,["alt","class","style","src"])):!a.value||!f.src?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:2,class:["inline-block h-[--size] w-[--size] flex items-center justify-center border-4 rounded-full object-cover font-size-[--font-size]",[e.unref(r).class,e.unref(d).class]],style:[e.unref(r).style,e.unref(d).style,l.value]},f.$attrs),[f.$slots.default?e.renderSlot(f.$slots,"default",{key:0}):o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(i(o.value)),1)],64)):(e.openBlock(),e.createElementBlock("i",Vn))],16)):e.createCommentVNode("",!0)}}),Ie=e.defineComponent({__name:"Btn",props:{type:{default:"button"},size:{default:"md"},is:{default:"button"},icon:{type:Boolean,default:!1},pressEffect:{default:"translate"},variant:{},hoverVariant:{},color:{},rounded:{default:"md"},disabled:{type:Boolean,default:!1},skeleton:{type:Boolean}},setup(t){const n=t,r=W(n),o=e.computed(()=>{switch(n.size){case"sm":return{normalContent:"min-w-16 h-6 px-2 py-1 text-xs",iconContent:"h-6 w-6 p-1"};case"lg":return{normalContent:"min-w-24 h-10 px-4 py-2 text-base",iconContent:"h-10 w-10 p-3"};case"md":default:return{normalContent:"min-w-20 h-8 px-3 py-1 text-sm",iconContent:"h-8 w-8 p-2"}}}),l=e.ref(null),a=ye(l),c=e.computed(()=>n.hoverVariant&&a.value?n.hoverVariant:n.variant??"default"),s=e.computed(()=>n.color??"primary"),i=Re(c,s);return(u,d)=>u.skeleton?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle([e.unref(i).style,e.unref(r).style]),class:e.normalizeClass([o.value.normalContent,"inline-block animate-pulse rounded-md bg-surface-variant"])},null,6)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.is),e.mergeProps({key:1,ref_key:"btn",ref:l,"data-size":u.size,type:u.type,class:["flex items-center justify-center gap-1 decoration-none",[e.unref(i).class,e.unref(r).class,u.icon?o.value.iconContent:o.value.normalContent,{"opacity-60 pointer-events-none select-none":u.disabled,"active:translate-y-0.25":u.pressEffect==="translate"}]],style:[e.unref(i).style,e.unref(r).style],disabled:u.disabled},u.$attrs),{default:e.withCtx(()=>[u.$slots.leftSection?e.renderSlot(u.$slots,"leftSection",{key:0}):e.createCommentVNode("",!0),e.renderSlot(u.$slots,"default"),u.$slots.rightSection?e.renderSlot(u.$slots,"rightSection",{key:1}):e.createCommentVNode("",!0)]),_:3},16,["data-size","type","style","class","disabled"]))}}),Hn=e.defineComponent({__name:"BtnGroup",props:e.mergeModels({selections:{},default:{},color:{default:"primary"},unselectable:{type:Boolean,default:void 0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=t,r=e.computed(()=>n.unselectable===void 0?n.selections.length===1:n.unselectable);function o(d){return typeof d=="string"?d:d.label??d.value}function l(d){return typeof d=="string"?d:d.value}function a(d){return typeof d=="string"?void 0:d.icon}const c=e.useModel(t,"modelValue");function s(d){l(d)===c.value&&r.value?c.value=void 0:c.value=l(d)}const i=e.computed(()=>n.selections.length===1),u=e.computed(()=>i.value?null:"first-children:rounded-r-0 first-children:border-r-none last-children:rounded-l-0 last-children:border-l-none not-first-children:rounded-l-0 not-last-children:rounded-r-0");return(d,f)=>{const p=Ie;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["w-auto inline-flex container",[u.value]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.selections,(m,g)=>(e.openBlock(),e.createBlock(p,{key:l(m),model:c.value,variant:l(m)===c.value?"filled":void 0,color:n.color,class:e.normalizeClass({"border-x-none":g!==0&&g!==n.selections.length-1}),onClick:h=>s(m)},{default:e.withCtx(()=>[a(m)?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(a(m))},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(o(m)),1)]),_:2},1032,["model","variant","color","class","onClick"]))),128))],2)}}}),Tn=(t,n)=>{const r=t.__vccOpts||t;for(const[o,l]of n)r[o]=l;return r},Nn={},Rn={class:"flex flex-col gap-4 container"};function In(t,n){return e.openBlock(),e.createElementBlock("div",Rn,[e.renderSlot(t.$slots,"default")])}const Dn=Tn(Nn,[["render",In]]),Pn=e.defineComponent({__name:"ChatMessage",props:{avatar:{},position:{default:"left"},color:{default:"primary"},variant:{default:"default"},withBorder:{type:Boolean,default:!1}},setup(t){const n=t,r=e.computed(()=>n.variant),o=e.computed(()=>n.color),l=ke(r,o);return(a,c)=>{const s=It;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex items-start gap-2",[{"flex-row-reverse":a.position==="right","flex-row":a.position==="left"}]])},[a.$slots.avatar?e.renderSlot(a.$slots,"avatar",{key:0}):a.avatar?(e.openBlock(),e.createBlock(s,{key:1,size:"xs",src:a.avatar},null,8,["src"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["flex flex-col gap-1 rounded-xl p-2",[{"rounded-tr":a.position==="right","rounded-tl":a.position==="left",border:a.withBorder},e.unref(l).class]]),style:e.normalizeStyle([e.unref(l).style])},[e.renderSlot(a.$slots,"default")],6)],2)}}}),On={class:"w-full flex self-center gap-2 text-center"},Fn=e.defineComponent({__name:"ChatSystem",props:{position:{},color:{default:"default"},variant:{default:"default"},withBorder:{type:Boolean,default:!1}},setup(t){const n=t,r=e.computed(()=>n.variant),o=e.computed(()=>n.color),l=ke(r,o);return(a,c)=>(e.openBlock(),e.createElementBlock("div",On,[e.createElementVNode("div",{class:e.normalizeClass(["w-full rounded-xl px-3 py-2",[e.unref(l).class]]),style:e.normalizeStyle(e.unref(l).style)},[e.renderSlot(a.$slots,"default")],6)]))}}),Ln=e.defineComponent({__name:"Chip",props:{is:{default:"img"},src:{},size:{default:"md"},color:{default:"primary"},variant:{default:"default"},rounded:{default:"full"}},setup(t){const n=t,r=W(n),o=e.computed(()=>{switch(n.size){case"sm":return"px-3 py-0.5 text-xs";case"md":return"px-4 py-0.5 text-sm";case"lg":return"px-5 py-0.5 text-base";default:return""}}),l=e.computed(()=>n.variant),a=e.computed(()=>n.color),c=ke(l,a);return(s,i)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["inline-block h-fit inline-flex items-center gap-1",[e.unref(r).class,e.unref(c).class,o.value]]),style:e.normalizeStyle([e.unref(r).style,e.unref(c).style])},[s.$slots.leftSection?e.renderSlot(s.$slots,"leftSection",{key:0}):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"default"),s.$slots.rightSection?e.renderSlot(s.$slots,"rightSection",{key:1}):e.createCommentVNode("",!0)],6))}}),Dt=e.defineComponent({__name:"ColorSwatch",props:{color:{},is:{default:"div"},withBorder:{type:Boolean,default:!1}},setup(t){return(n,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.is),e.mergeProps({class:["h-6 w-6 border rounded-full",[{border:n.withBorder}]]},e.unref(Ht),{style:{backgroundColor:n.color}}),null,16,["class","style"]))}}),Wn=["id","alt"],jn=["for"],Xn={key:0},Gn=e.defineComponent({__name:"ColorInput",props:e.mergeModels({label:{},withBorder:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=e.useModel(t,"modelValue"),r=e.useAttrs(),o=Te(r),l=e.ref(null);return(a,c)=>{const s=Dt;return e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createElementVNode("input",{id:e.unref(o),ref_key:"input",ref:l,"onUpdate:modelValue":c[0]||(c[0]=i=>n.value=i),alt:n.value,type:"color",class:"pointer-events-none absolute opacity-0"},null,8,Wn),[[e.vModelText,n.value]]),e.createElementVNode("label",{class:"flex items-center gap-2",for:e.unref(o)},[e.createVNode(s,{"with-border":a.withBorder,class:"cursor-pointer",color:n.value??"#222"},null,8,["with-border","color"]),a.label?(e.openBlock(),e.createElementBlock("span",Xn,e.toDisplayString(a.label),1)):e.createCommentVNode("",!0)],8,jn)])}}}),Pt=Symbol("rokuProvider");function Un(){return e.inject(Pt,e.ref(null))}function Yn(t){return e.provide(Pt,t)}const lt=e.defineComponent({__name:"FullscreenOverlay",props:e.mergeModels({persistent:{type:Boolean,default:!1},blur:{type:[String,Boolean],default:!1},wrapperClass:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=t,r=e.useModel(t,"modelValue"),o=e.ref(null);function l(i){n.persistent||i.target===o.value&&(r.value=!1)}const a=e.computed(()=>{switch(n.blur){case"sm":return"backdrop-blur-sm";case"md":case!0:return"backdrop-blur-md";case"lg":return"backdrop-blur-lg";default:return""}}),c=e.ref(0);e.watchEffect(()=>{r.value?(document.body.style.overflow="hidden",document.body.style.marginRight=`${c.value}px`):setTimeout(()=>{document.querySelector(".modal-wrapper.op100")||(document.body.style.overflow="",document.body.style.marginRight="")},300)}),typeof window<"u"&&new ResizeObserver(()=>{const u=window.innerWidth-document.body.clientWidth;u!==0&&(c.value=u)}).observe(document.body);const s=Un();return(i,u)=>(e.openBlock(),e.createBlock(e.Teleport,{to:e.unref(s)??"body"},[e.createElementVNode("div",{ref_key:"wrapperRef",ref:o,class:e.normalizeClass(["modal-wrapper fixed left-0 top-0 z-100 h-full w-full bg-surface-10/10 transition-all duration-100 md:items-center",[a.value,i.wrapperClass,{"op0 pointer-events-none":!r.value,op100:r.value}]]),onClick:l},[e.renderSlot(i.$slots,"default")],2)],8,["to"]))}}),qn={class:"flex justify-end p-4 md:px-6 md:py-4 md:pb-0"},Kn={class:"h-full flex flex-col items-center justify-center px-4 md:px-6"},Jn=e.defineComponent({__name:"Drawer",props:e.mergeModels({persistent:{type:Boolean,default:!1},blur:{type:[String,Boolean],default:!1},position:{default:"left"}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=t,r=e.useModel(t,"modelValue");return(o,l)=>{const a=Ie,c=lt;return e.openBlock(),e.createBlock(c,{modelValue:r.value,"onUpdate:modelValue":l[1]||(l[1]=s=>r.value=s),blur:n.blur,persistent:n.persistent},{default:e.withCtx(()=>[e.createVNode(e.Transition,{"enter-from-class":o.position==="left"?"-translate-x-1/1":"translate-x-1/1","enter-to-class":(o.position==="left","translate-x-0"),"leave-from-class":(o.position==="left","translate-x-0"),"leave-to-class":o.position==="left"?"-translate-x-1/1":"translate-x-1/1","enter-active-class":"transition ease-out duration-300","leave-active-class":"transition ease-in duration-200"},{default:e.withCtx(()=>[r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["bg-surface-low fixed h-full w-full md:w-md",o.position==="left"?"left-0":"right-0"])},[e.createElementVNode("div",qn,[e.createVNode(a,{icon:"",variant:"transparent",class:"text-surface-on hover:text-surface-on",onPointerup:l[0]||(l[0]=s=>r.value=!1)},{default:e.withCtx(()=>l[2]||(l[2]=[e.createElementVNode("i",{class:"i-fluent-dismiss-12-filled"},null,-1)])),_:1})]),e.createElementVNode("div",Kn,[e.renderSlot(o.$slots,"default")])],2)):e.createCommentVNode("",!0)]),_:3},8,["enter-from-class","enter-to-class","leave-from-class","leave-to-class"])]),_:3},8,["modelValue","blur","persistent"])}}}),Zn=e.defineComponent({__name:"Dropzone",props:{dashed:{type:Boolean,default:!0},accept:{default:"*"}},emits:["drop"],setup(t,{emit:n}){const r=t,o=n,l=e.ref(),{onChange:a,open:c}=Qr({accept:r.accept});a(d=>{d?o("drop",Array.from(d)):o("drop",null)});const{isOverDropZone:s}=Jr(l,{onDrop:d=>{o("drop",d)}}),i=Re("default"),u=nt();return(d,f)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropZoneRef",ref:l,class:e.normalizeClass([[e.unref(i).class,e.unref(s)&&e.unref(u).class,{"bg-surface-low":!e.unref(s),"border-dashed":d.dashed}],"h-full w-full flex cursor-pointer items-center justify-center border rounded"]),style:e.normalizeStyle([e.unref(i).style,e.unref(s)&&e.unref(u).style]),onPointerup:f[0]||(f[0]=()=>e.unref(c)())},[e.renderSlot(d.$slots,"default")],38))}}),Qn=e.defineComponent({__name:"Image",props:{is:{default:"img"},src:{},style:{},class:{},width:{},maxWidth:{},height:{},maxHeight:{},rounded:{default:"none"}},setup(t){const n=t,r=e.ref(!1),o=e.ref(null);function l(){r.value=!0}e.onMounted(()=>{var c;(c=o.value)!=null&&c.complete&&l()});const a=W(n);return(c,s)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({height:c.height,width:c.width,maxHeight:c.maxHeight,maxWidth:c.maxWidth})},[c.src?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.is),e.mergeProps({key:0,ref_key:"img",ref:o,style:[c.style,e.unref(a).style],src:c.src,class:["h-full w-full object-cover",[n.class,e.unref(a).class,{hidden:!r.value}]]},c.$attrs,{onLoad:l}),null,16,["style","src","class"])):e.createCommentVNode("",!0),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["h-full w-full animate-pulse border-transparent object-cover",[n.class,e.unref(a).class]]),style:e.normalizeStyle([c.style,e.unref(a).style])},null,6))],4))}}),eo={class:"relative"},to=e.defineComponent({__name:"Indicator",props:{color:{default:"primary"},size:{default:"md"},position:{default:"top-right"},ping:{type:Boolean}},setup(t){const n=t,r=e.computed(()=>{switch(n.size){case"sm":return"w-2 h-2";case"md":return"w-3 h-3";case"lg":return"w-4 h-4";default:return typeof n.size=="number"||!Number.isNaN(Number(n.size))?`w-${n.size} h-${n.size}`:n.size}}),o=e.useSlots(),l=e.computed(()=>{if(!o.label)return"";switch(n.size){case"sm":return"text-sm children:px-1.5";case"lg":return"text-lg children:px-2.5";case"md":default:return"text-md children:px-2"}}),a=e.computed(()=>{switch(n.position){case"bottom-left":return"bottom-0 left-0 -translate-x-1/2 translate-y-1/2";case"bottom-right":return"bottom-0 right-0 translate-x-1/2 translate-y-1/2";case"top-left":return"top-0 left-0 -translate-x-1/2 -translate-y-1/2";case"top-right":default:return"top-0 right-0 translate-x-1/2 -translate-y-1/2"}}),c=e.computed(()=>n.color),s=Nt(c);return(i,u)=>(e.openBlock(),e.createElementBlock("div",eo,[e.createElementVNode("div",{class:e.normalizeClass([[a.value,l.value],"absolute z-1"])},[n.ping?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["absolute box-content animate-ping border-2 border-transparent rounded-full",[{[r.value]:!i.$slots.label},e.unref(s).class]]),style:e.normalizeStyle([e.unref(s).style])},[i.$slots.label?e.renderSlot(i.$slots,"label",{key:0}):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["border-surface-low top-0 box-content border-2 rounded-full",[{[r.value]:!i.$slots.label},e.unref(s).class]]),style:e.normalizeStyle(e.unref(s).style)},[i.$slots.label?e.renderSlot(i.$slots,"label",{key:0}):e.createCommentVNode("",!0)],6)],2),e.renderSlot(i.$slots,"default")]))}}),ro=e.defineComponent({__name:"Modal",props:e.mergeModels({persistent:{type:Boolean,default:!1},blur:{type:[String,Boolean],default:!1}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=t,r=e.useModel(t,"modelValue");return(o,l)=>{const a=lt;return e.openBlock(),e.createBlock(a,{modelValue:r.value,"onUpdate:modelValue":l[0]||(l[0]=c=>r.value=c),blur:n.blur,persistent:n.persistent,"wrapper-class":"flex items-end justify-center"},{default:e.withCtx(()=>[e.createVNode(e.Transition,{"enter-from-class":"translate-y-1/2","enter-to-class":"translate-y-0","leave-from-class":"translate-y-0","leave-to-class":"translate-y-1/2","enter-active-class":"transition ease-out duration-100","leave-active-class":"transition ease-in duration-100"},{default:e.withCtx(()=>[r.value?e.renderSlot(o.$slots,"default",{key:0}):e.createCommentVNode("",!0)]),_:3})]),_:3},8,["modelValue","blur","persistent"])}}}),no={key:0,class:"text-[var(--l-text)] leading-0 dark:text-[var(--d-text)]"},oo={key:0,class:"h-container w-container i-tabler-loader-2 shrink-0 animate-spin"},lo={key:1},ao={class:"grow-1"},so={key:1,class:"i-fluent-dismiss-12-filled"},Ot=e.defineComponent({__name:"Notification",props:{title:{},message:{},icon:{},loading:{type:Boolean},withBorder:{type:Boolean},closeable:{type:Boolean},rounded:{default:"md"},block:{type:Boolean,default:!1},color:{default:"primary"},size:{default:"md"}},emits:["close"],setup(t){const n=t,r=W(n),o=e.computed(()=>n.color),l=xe(o),a=Ne(),c=e.computed(()=>{switch(n.size){case"sm":return"min-h-10 p-1";case"lg":return"min-h-16 p-4";case"md":default:return"min-h-16 p-3"}});return(s,i)=>{const u=Ie;return e.openBlock(),e.createElementBlock("div",e.mergeProps({class:["container-low relative min-w-80 w-full flex items-center gap-2 pl-4",[{"border-0":!s.withBorder},e.unref(r).class,c.value,{"max-w-100":!s.block,"w-full":s.block}]],style:[e.unref(r).style]},e.unref(a)),[s.icon?(e.openBlock(),e.createElementBlock("div",no,[s.loading?(e.openBlock(),e.createElementBlock("i",oo)):(e.openBlock(),e.createElementBlock("i",{key:1,class:e.normalizeClass(["h-container w-container shrink-0",s.icon])},null,2))])):(e.openBlock(),e.createElementBlock("div",lo,[e.createElementVNode("div",e.mergeProps({class:["absolute left-[0.25rem] top-[0.25rem] h-[calc(100%-0.5rem)] w-1 rounded-full bg-[var(--d-bg)] dark:bg-[var(--d-bg)]",[{"animate-pulse":s.loading}]]},e.unref(l)),null,16)])),e.createElementVNode("div",ao,[s.title?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["text-[var(--l-text)] dark:text-[var(--d-text)]",{"text-xs":s.size==="sm","text-sm":s.size==="md","text-base":s.size==="lg"}])},e.toDisplayString(s.title),3)):e.createCommentVNode("",!0),s.$slots.message?e.renderSlot(s.$slots,"message",{key:1}):s.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["text-surface-on-low op-50",{"text-xs":s.size==="sm","text-sm":s.size==="md"||s.size==="lg"}])},e.toDisplayString(s.message),3)):e.createCommentVNode("",!0)]),s.closeable?(e.openBlock(),e.createBlock(u,{key:2,icon:"",variant:"transparent",onClick:i[0]||(i[0]=d=>s.$emit("close"))},{default:e.withCtx(()=>[s.$slots.closeIcon?e.renderSlot(s.$slots,"close-icon",{key:0}):(e.openBlock(),e.createElementBlock("i",so))]),_:3})):e.createCommentVNode("",!0)],16)}}}),io={class:"pointer-events-none fixed z-20 h-full w-full children:pointer-events-auto"},co=e.defineComponent({__name:"NotificationSystem",props:{position:{default:"top-right"},gap:{default:8},pt:{default:16},pl:{default:8},pr:{default:8},pb:{default:16}},setup(t){const n=t,r=mt(),o=e.ref([]),l=e.computed(()=>o.value.map(i=>i.getBoundingClientRect())),a=e.computed(()=>{let i=0,u=0,d=0,f=0,p=0,m=0;const g=[];for(let h=0;h<l.value.length;h++){const w=r.value[h];w&&(w.position||(w.position=n.position),w.position==="top-left"?(g.push(i),i+=l.value[h].height+n.gap):w.position==="top-right"?(g.push(u),u+=l.value[h].height+n.gap):w.position==="top"?(g.push(d),d+=l.value[h].height+n.gap):w.position==="bottom-left"?(g.push(f),f+=l.value[h].height+n.gap):w.position==="bottom-right"?(g.push(p),p+=l.value[h].height+n.gap):w.position==="bottom"&&(g.push(m),m+=l.value[h].height+n.gap))}return g});function c(i,u){if(u||(u=n.position),u==="top-left")return{top:`${i+n.pt}px`,left:`${n.pl}px`};if(u==="top-right")return{top:`${i+n.pt}px`,right:`${n.pr}px`};if(u==="top")return{top:`${i+n.pt}px`,left:"50%",transform:"translateX(-50%)"};if(u==="bottom-left")return{bottom:`${i+n.pb}px`,left:`${n.pl}px`};if(u==="bottom-right")return{bottom:`${i+n.pb}px`,right:`${n.pr}px`};if(u==="bottom")return{bottom:`${i+n.pb}px`,left:"50%",transform:"translateX(-50%)"}}const s=e.ref({});return e.watchEffect(()=>{r.value.forEach(i=>{if(i.durationMS&&i.durationMS>0){if(s.value[i.hash])return;s.value[i.hash]=setTimeout(()=>{r.value.splice(r.value.indexOf(i),1)},i.durationMS)}})}),(i,u)=>{const d=Ot;return e.openBlock(),e.createElementBlock("div",io,[e.createVNode(e.TransitionGroup,{"enter-from-class":"op0","enter-to-class":"op100","leave-from-class":"op100","leave-to-class":"op0"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(f,p)=>(e.openBlock(),e.createElementBlock("div",{key:f.hash,ref_for:!0,ref_key:"notificationRefs",ref:o,class:"absolute transition-top,bottom,opacity",style:e.normalizeStyle(c(a.value[p],f.position))},[e.createVNode(d,{"with-border":"",closeable:"",title:f.title,message:f.message,icon:f.icon,loading:f.loading,color:f.color,onClose:m=>e.unref(r).splice(e.unref(r).indexOf(f),1)},null,8,["title","message","icon","loading","color","onClose"])],4))),128))]),_:1})])}}}),uo={class:"relative"},Ft=e.defineComponent({__name:"Overlay",props:{blur:{type:[Boolean,String],default:!1},rounded:{default:"none"},opacity:{default:30},color:{default:"black"}},setup(t){const n=t,r=e.computed(()=>{switch(n.blur){case"sm":return"backdrop-blur-sm";case"md":case!0:return"backdrop-blur-md";case"lg":return"backdrop-blur-lg";default:return""}}),o=W(n),l=e.ref(null),a=$(n.color).toRgb(),c=e.computed(()=>({backgroundColor:`rgba(${a.r}, ${a.g}, ${a.b}, ${n.opacity/100})`}));return(s,i)=>(e.openBlock(),e.createElementBlock("div",uo,[e.renderSlot(s.$slots,"default"),e.createElementVNode("div",e.mergeProps(s.$attrs,{ref_key:"wrapperRef",ref:l,class:[[r.value,e.unref(o).class],"absolute left-0 top-0 h-full w-full overflow-hidden md:items-center"],style:[e.unref(o).style,c.value]}),[e.renderSlot(s.$slots,"content")],16)]))}}),Lt=e.defineComponent({__name:"Paper",props:{rounded:{default:"md"},loading:{type:Boolean,default:!1},is:{default:"div"},color:{default:"primary"},traceAnimate:{type:Boolean,default:!1},withBorder:{type:Boolean,default:!1},noPadding:{type:Boolean,default:!1}},setup(t){const n=t,r=e.computed(()=>n.color),o=e.computed(()=>n.loading),l=W(n),{x:a,y:c}=He({type:"client"}),s=e.ref(null),{width:i,height:u,top:d,left:f}=ne(s),p=e.computed(()=>Math.min(i.value,u.value)),m=e.computed(()=>!i.value||!u.value?[]:o.value?[{backgroundPosition:"0% 0%",offset:0},{backgroundPosition:"0% 100%",offset:.25},{backgroundPosition:"100% 100%",offset:.5},{backgroundPosition:"100% 0%",offset:.75}]:[]);let g;const h=e.computed(()=>oe(r.value).value[5]),w=e.computed(()=>{var y;return n.loading?(g?g.play():g=(y=s.value)==null?void 0:y.animate(m.value,{duration:1e3,iterations:Number.POSITIVE_INFINITY}),{"--main-color":h.value,"--gradient":`radial-gradient(circle at center, var(--main-color) ${p.value*.5}px, var(--border-color) ${p.value*.5}px)`,"--border-color":"var(--r-surface-border-color)","--bg":"var(--r-surface-background-color)",background:"linear-gradient(var(--bg), var(--bg)) padding-box, var(--gradient) border-box","border-color":"transparent","background-color":"var(--bg)","background-size":"200% 200%"}):(g&&g.pause(),{background:"var(--r-surface-background-color)"})}),v=e.computed(()=>{if(n.traceAnimate){const y=e.computed(()=>({x:f.value+i.value/2,y:d.value+u.value/2})),C=e.computed(()=>{if(a.value<f.value||a.value>f.value+i.value||c.value<d.value||c.value>d.value+u.value)return{x:a.value,y:c.value};const E=y.value.x,x=y.value.y;let _,b;const B=(c.value-x)/(a.value-E);return a.value<E?(_=f.value,b=x+B*(f.value-E)):(_=f.value+i.value,b=x+B*(_-E)),b<d.value?(b=d.value,_=E+(b-x)/B):b>d.value+u.value&&(b=d.value+u.value,_=E+(b-x)/B),{x:_,y:b}});return{"--main-color":h.value,"--border-color":"var(--r-surface-border-color)","--bg":"var(--r-surface-background-color)","--gradient":`radial-gradient(circle at ${C.value.x-f.value}px ${C.value.y-d.value}px, var(--main-color) ${p.value*.5}px, var(--border-color) ${p.value*.5}px)`,background:"linear-gradient(var(--bg), var(--bg)) padding-box, var(--gradient) border-box","background-size":"200% 200%","background-color":"var(--bg)"}}else return{}});return(y,C)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.is),e.mergeProps({ref_key:"paperRef",ref:s,class:["relative border",[{"p-4":!y.noPadding},e.unref(l).class]],style:[e.unref(l).style,w.value,v.value]},y.withBorder&&!y.traceAnimate&&!o.value?{class:"border-[var(--r-surface-border-color)]"}:{class:"border-transparent"}),{default:e.withCtx(()=>[e.renderSlot(y.$slots,"default")]),_:3},16,["class","style"]))}}),fo=["for"],po={key:1},mo=["id","placeholder","type"],Wt=e.defineComponent({__name:"TextField",props:e.mergeModels({onChange:{},color:{default:"primary"},error:{type:Boolean},disabled:{type:Boolean},rounded:{default:"md"},size:{default:"md"},password:{type:Boolean},placeholder:{},label:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t,{expose:n}){const r=t,o=e.useModel(t,"modelValue"),l=e.computed(()=>{switch(r.size){case"sm":return{base:"h-6 px-2 py-1 text-xs"};case"lg":return{base:"h-10 px-4 py-2 text-base"};case"md":default:return{base:"h-8 px-3 py-1 text-sm"}}}),a=e.computed(()=>{switch(r.size){case"sm":return"text-xs";case"lg":return"md-md";case"md":default:return"text-sm"}}),c=e.computed(()=>r.color),s=ot(c),i=e.computed(()=>r.disabled?"pointer-events-none select-none filter opacity-60":""),u=W(r),d=e.ref(null);n({el:d});const f=e.useAttrs(),p=Te(f);return(m,g)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle([e.unref(s)])},[m.$slots.label||m.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:e.unref(p),class:e.normalizeClass(["mb-1 block",[a.value]])},[m.$slots.label?e.renderSlot(m.$slots,"label",{key:0}):(e.openBlock(),e.createElementBlock("span",po,e.toDisplayString(m.label),1))],10,fo)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",e.mergeProps({id:e.unref(p)},m.$attrs,{ref_key:"input",ref:d,"onUpdate:modelValue":g[0]||(g[0]=h=>o.value=h),class:["w-full border px-2 py-1 outline-none custom-input-colors",[i.value,e.unref(u).class,l.value.base]],style:[e.unref(u).style],placeholder:m.placeholder,type:r.password?"password":"text"}),null,16,mo),[[e.vModelDynamic,o.value]])],4))}}),ho={class:"flex gap-2"},go=e.defineComponent({__name:"PinInput",props:{modelValue:{},length:{default:6},size:{},password:{type:Boolean}},setup(t){const n=t,r=e.ref([]);function o(s){s.preventDefault(),s.stopPropagation();const i=r.value.findIndex(d=>d.el===s.target),u=s.target.value??"";s.target.value="",Array.from(u).forEach((d,f)=>{i+f>=r.value.length||(r.value[i+f].el.value=d,i+f+1<r.value.length?(r.value[i+f+1].el.focus(),r.value[i+f+1].el.select()):r.value[i+f].el.blur())})}function l(s){s.preventDefault(),s.stopPropagation();const i=s.target.value!=="";s.target.value="";const u=r.value.findIndex(d=>d.el===s.target);u!==0&&(r.value[u-1].el.focus(),r.value[u-1].el.select(),i||(r.value[u-1].el.value=""))}function a(s){s.preventDefault(),s.stopPropagation();const i=r.value.findIndex(u=>u.el===s.target);i>0&&(r.value[i-1].el.focus(),r.value[i-1].el.select())}function c(s){s.preventDefault(),s.stopPropagation();const i=r.value.findIndex(u=>u.el===s.target);i<r.value.length-1&&(r.value[i+1].el.focus(),r.value[i+1].el.select())}return(s,i)=>(e.openBlock(),e.createElementBlock("div",ho,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.length,u=>(e.openBlock(),e.createBlock(Wt,{ref_for:!0,ref_key:"inputs",ref:r,key:u,class:"w-8 text-center",style:{padding:"0"},password:n.password,onPointerup:i[0]||(i[0]=d=>d.target.select()),onInput:e.withModifiers(o,["stop","prevent"]),onKeydown:[e.withKeys(l,["backspace"]),e.withKeys(a,["arrow-left"]),e.withKeys(c,["arrow-right"])]},null,8,["password"]))),128))]))}}),yo=e.defineComponent({__name:"Popover",props:e.mergeModels({trigger:{default:"click"},position:{default:"bottom"},zIndex:{default:1e4},offset:{default:4},overlay:{type:Boolean,default:!1}},{modelValue:{default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=t,r=e.ref(null),o=e.ref(null),l=ne(r),a=ne(o),c=e.computed(()=>{switch(n.position){case"top-start":return"top-0 left-0";case"top-end":return"top-0 right-0";case"bottom-end":return"top-100% right-0";case"bottom-start":return"top-100% left-0";case"bottom":return"top-100% left-50%";default:return"top-100%"}}),s=e.computed(()=>{switch(n.position){case"top-start":case"top-end":return{top:`${-a.height.value-n.offset}px`};case"top":return{top:`${-a.height.value-n.offset}px`,left:`${-a.width.value/2+l.width.value/2}px`};case"bottom-start":case"bottom-end":return{marginTop:`${n.offset}px`};case"bottom":return{top:`${l.height.value+n.offset}px`,left:`${-a.width.value/2+l.width.value/2}px`};case"left-start":return{left:`${-a.width.value-n.offset}px`,top:0};case"left-end":return{left:`${-a.width.value-n.offset}px`,top:`${-a.height.value+l.height.value}px`};case"left":return{left:`${-a.width.value-n.offset}px`,top:`${-a.height.value/2+l.height.value/2}px`};case"right-start":return{left:`${n.offset+l.width.value}px`,top:0};case"right-end":return{left:`${n.offset+l.width.value}px`,top:`${-a.height.value+l.height.value}px`};case"right":return{left:`${l.width.value+n.offset}px`,top:`${-a.height.value/2+l.height.value/2}px`};default:return{}}}),i=ye(r),u=e.useModel(t,"modelValue"),d=e.computed(()=>n.trigger==="hover"?i.value:u.value);function f(p){var m;!((m=r.value)!=null&&m.contains(p.target))||p.target===r.value||(u.value=!u.value)}return St(o,p=>{var m;(m=r.value)!=null&&m.contains(p.target)?u.value=!0:u.value=!1}),(p,m)=>{const g=Ft;return e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:r,class:"relative"},[e.createElementVNode("div",{onPointerup:f},[e.renderSlot(p.$slots,"default")],32),d.value&&p.overlay?(e.openBlock(),e.createBlock(g,{key:0,opacity:0,class:"fixed inset-0 z-10",style:e.normalizeStyle({zIndex:p.zIndex}),onPointerup:m[0]||(m[0]=h=>u.value=!1)},null,8,["style"])):e.createCommentVNode("",!0),d.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"contentRef",ref:o,class:e.normalizeClass([c.value,"absolute children:w-max"]),style:e.normalizeStyle([s.value,{zIndex:p.zIndex}])},[e.renderSlot(p.$slots,"content")],6)):e.createCommentVNode("",!0)],512)}}}),bo=e.defineComponent({__name:"Progress",props:{value:{default:0},max:{default:100},min:{default:0},size:{default:"md"},color:{default:"primary"},rounded:{default:"full"},loading:{type:Boolean,default:!1}},setup(t){const n=t,r=e.computed(()=>{switch(n.size){case"sm":return"h-0.25";case"md":return"h-0.5";case"lg":return"h-1";default:return"h-0.5"}}),o=e.computed(()=>n.color),l=xe(o),a=Ce("bg",{dark:7,light:3}),c=W(n);return(s,i)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:["relative w-full self-center overflow-hidden",[r.value,e.unref(c).class]],style:[e.unref(c).style]},e.unref(a)),[s.loading?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1,class:"loading-progress h-full"},e.unref(l)),null,16)):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0,class:"h-full"},e.unref(l),{style:[{width:`${(Number(s.value)-Number(s.min))/(Number(s.max)-Number(s.min))*100}%`}]}),null,16))],16))}}),wo=["onMouseover","onPointerdown"],So="#ffeb91",ko="text-[var(--d-text)]",vo="text-surface-on-low",xo="text-[var(--d-text-h)]",Co="i-fluent-star-12-filled",_o="i-fluent-star-12-filled",Bo=e.defineComponent({__name:"Rating",props:e.mergeModels({count:{},icons:{},color:{default:"#ffeb91"},highlightSelectedOnly:{type:Boolean},unselectable:{type:Boolean},size:{}},{modelValue:{default:0},modelModifiers:{}}),emits:e.mergeModels(["select"],["update:modelValue"]),setup(t,{emit:n}){const r=t,o=n,l=e.computed(()=>r.count??5),a=e.useModel(t,"modelValue"),c=e.computed(()=>r.highlightSelectedOnly??!1),s=e.computed(()=>r.unselectable??!1),i=e.ref(-1),u=e.computed(()=>d(r.icons,l.value,Co,_o));function d(y,C,E,x){function _(B){return typeof B=="string"?{active:B,normal:B}:B===void 0?{active:x,normal:E}:{active:B.active||x,normal:B.normal||E}}if(y===void 0)return Array.from({length:C},()=>({active:x,normal:E}));let b;if(typeof y=="string")b={active:y,normal:y};else if(Array.isArray(y)){const B=y.map(A=>_(A));return B.length===1?(b=B[0],Array.from({length:C},()=>({...b}))):B.slice(0,C).concat(Array.from({length:Math.max(0,C-B.length)},()=>({active:x,normal:E})))}else b={active:y.active||x,normal:y.normal||E};return Array.from({length:C},()=>({...b}))}function f(y){return c.value?i.value!==-1?i.value===y+1:a.value===y+1:i.value!==-1?i.value>y:a.value>=y+1}function p(y){const C=u.value[y].normal,E=u.value[y].active;return f(y)?[c.value?xo:ko,E]:[vo,C]}const g=e.computed(()=>{if(typeof r.color=="string")return Array.from({length:l.value}).map(()=>r.color);const y=Array.from({length:l.value}).map(()=>So);return r.color.forEach((C,E)=>{C&&(y[E]=C)}),y}).value.map(y=>ke("filled",y)),h=O({color:"surface",type:"text",index:{dark:6,light:4}});function w(y){a.value===y&&s.value?(o("select",0),a.value=0):(o("select",y+1),a.value=y+1)}const v=e.computed(()=>{switch(r.size){case"sm":return"text-xs";case"lg":return"text-lg";case"md":default:return"text-base"}});return(y,C)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex cursor-pointer",v.value])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(E,x)=>(e.openBlock(),e.createElementBlock("div",{key:x,class:"pr-1",onMouseover:_=>i.value=x+1,onMouseleave:C[0]||(C[0]=_=>i.value=-1),onPointerdown:_=>w(x)},[e.createElementVNode("i",e.mergeProps({ref_for:!0},f(x)?e.unref(g)[x].value:e.unref(h),{class:["active:translate-y-1px",[p(x)]]}),null,16)],40,wo))),128))],2))}}),Eo=e.defineComponent({__name:"RokuProvider",props:{is:{default:"div"},theme:{default:"default"},themes:{default:()=>({default:tt.value})}},setup(t){const n=t,r=zt(),o=e.computed(()=>n.themes[n.theme]);e.watchEffect(()=>{ee.value=typeof o.value.colors.surface=="string"?o.value.colors.surface:ee.value,ce.value=typeof o.value.colors.primary=="string"?o.value.colors.primary:ce.value,ue.value=typeof o.value.colors.secondary=="string"?o.value.colors.secondary:ue.value,de.value=typeof o.value.colors.tertiary=="string"?o.value.colors.tertiary:de.value,fe.value=typeof o.value.colors.error=="string"?o.value.colors.error:fe.value});const l=e.ref(null),a=e.computed(()=>Ye({colors:{surface:ee.value,primary:ce.value,secondary:ue.value,tertiary:de.value,error:fe.value},name:o.value.name}));return e.provide(Mt,r),e.provide("currentThemeData",e.computed(()=>o.value)),Yn(l),(c,s)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.is),{ref_key:"wrapperRef",ref:l,style:e.normalizeStyle([a.value])},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},8,["style"]))}}),$o=["id"],Mo=["for"],zo=["for"],jt=e.defineComponent({inheritAttrs:!1,__name:"Switch",props:e.mergeModels({size:{default:"md"},animate:{type:Boolean,default:!0},options:{},label:{},id:{},rounded:{default:"full"},color:{default:"primary"},disabled:{type:Boolean},offIcon:{},onIcon:{},value:{type:Boolean},indicatorIcon:{},onIndicatorIcon:{},offIndicatorIcon:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=t,r=e.useModel(t,"modelValue");n.value&&(r.value=n.value);const o=e.ref(null),l=e.ref(!1),a=e.computed(()=>{switch(n.size){case"sm":return{icon:"text-xs mx-0.5",wrapper:"h-4 w-8",indicator:l.value?"h-3 w-4":"h-3 w-3",inactive:"left-[calc(0.125rem-1px)]",active:l.value?"left-[calc(0.875rem-1px)]":"left-[calc(1.125rem-1px)]"};case"lg":return{icon:"text-lg mx-2",wrapper:"h-8 w-16",indicator:l.value?"h-6 w-8":"h-6 w-6",inactive:"left-[calc(0.25rem-1px)]",active:l.value?"left-[calc(1.75rem-1px)]":"left-[calc(2.25rem-1px)]"};case"md":default:return{icon:"text-sm mx-1",wrapper:"h-6 w-12",indicator:l.value?"h-4 w-5":"h-4 w-4",inactive:"left-[calc(0.25rem-1px)]",active:l.value?"left-[calc(1.5rem-1px)]":"left-[calc(1.75rem-1px)]"}}}),c=e.computed(()=>n.animate?{indicator:"transition-all",progress:"transition-width"}:{indicator:"",progress:""}),s=Te(n),i=Ce("bg",{dark:7,light:3}),u=$e(n.color,"bg",5),d=$e(n.color,"text",5),f=e.computed(()=>({wrapper:r.value?[u.value.class]:[i.value.class],indicator:"bg-white shadow"})),p=e.computed(()=>({wrapper:r.value?u.value.style:i.value.style,indicator:r.value?{}:""})),m=W(n);return(g,h)=>(e.openBlock(),e.createElementBlock("div",{role:"switch",class:e.normalizeClass(["relative flex items-center gap-2",{"pointer-events-none filter-grayscale op-60":n.disabled}])},[e.withDirectives(e.createElementVNode("input",e.mergeProps({id:e.unref(s),"onUpdate:modelValue":h[0]||(h[0]=w=>r.value=w)},g.$attrs,{class:"hidden",type:"checkbox"}),null,16,$o),[[e.vModelCheckbox,r.value]]),e.createElementVNode("label",{class:"leading-0 cursor-pointer!",for:e.unref(s)},[e.createElementVNode("div",{ref_key:"wrapper",ref:o,class:e.normalizeClass([[a.value.wrapper,...f.value.wrapper,e.unref(m).class],"relative inline-block"]),style:e.normalizeStyle([e.unref(m).style,p.value.wrapper]),onPointerdown:h[1]||(h[1]=w=>l.value=!0),onPointerup:h[2]||(h[2]=w=>l.value=!1),onPointerleave:h[3]||(h[3]=w=>l.value=!1),onPointerenter:h[4]||(h[4]=w=>w.buttons===1&&(l.value=!0))},[e.createElementVNode("div",{class:e.normalizeClass(["absolute top-50% -translate-y-50%",[a.value.indicator,f.value.indicator,c.value.indicator,r.value?a.value.active:a.value.inactive,e.unref(m).class]]),style:e.normalizeStyle([e.unref(m).style,p.value.indicator])},[e.createVNode(e.Transition,{name:"fade",mode:"out-in","enter-active-class":"transition-all duration-300","enter-from-class":"scale-0 ","enter-to-class":"scale-100","leave-active-class":"transition-all duration-300","leave-from-class":"scale-100","leave-to-class":"scale-0"},{default:e.withCtx(()=>[n.indicatorIcon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["h-full w-full",[n.indicatorIcon,r.value?e.unref(d).class:"text-black"]]),style:e.normalizeStyle(e.unref(d).style)},null,6)):r.value&&n.onIndicatorIcon?(e.openBlock(),e.createElementBlock("i",{key:1,class:e.normalizeClass(["h-full w-full",[n.onIndicatorIcon,r.value?e.unref(d).class:"text-black"]]),style:e.normalizeStyle(e.unref(d).style)},null,6)):!r.value&&n.offIndicatorIcon?(e.openBlock(),e.createElementBlock("i",{key:2,class:e.normalizeClass(["h-full w-full",[n.offIndicatorIcon,r.value?e.unref(d).class:"text-black"]]),style:e.normalizeStyle(e.unref(d).style)},null,6)):e.createCommentVNode("",!0)]),_:1})],6),e.createVNode(e.Transition,{name:"fade",mode:"out-in","enter-active-class":"transition-all duration-300","enter-from-class":"scale-0 rotate-50","enter-to-class":"scale-100 rotate-0","leave-active-class":"transition-all duration-300","leave-from-class":"scale-100 rotate-0","leave-to-class":"scale-0 rotate-50 "},{default:e.withCtx(()=>[r.value?(e.openBlock(),e.createElementBlock("i",{key:"on",class:e.normalizeClass(["absolute top-1/2 -translate-y-50%",[a.value.icon,{[`left-0 text-${g.color}-on-container-low`]:r.value,[g.onIcon??""]:r.value&&g.onIcon,[g.offIcon??""]:!r.value&&g.offIcon}]])},null,2)):(e.openBlock(),e.createElementBlock("i",{key:"off",class:e.normalizeClass(["absolute top-1/2 -translate-y-50%",[a.value.icon,{"right-0":!r.value,[g.onIcon??""]:r.value&&g.onIcon,[g.offIcon??""]:!r.value&&g.offIcon}]])},null,2))]),_:1})],38)],8,Mo),g.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:e.unref(s)},e.toDisplayString(g.label),9,zo)):e.createCommentVNode("",!0)],2))}}),Ao={class:"scheme-switch inline-block"},Vo={class:"dark:hidden"},Ho={class:"light:hidden"},To=e.defineComponent({__name:"SchemeSwitch",props:{disableViewTranslation:{type:Boolean,default:!1},circleTranslation:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(!1);let o;addEventListener("click",c=>o=c),e.watch([r],()=>{if(re){const c=(o==null?void 0:o.clientX)??innerWidth/2,s=(o==null?void 0:o.clientY)??innerHeight/2,i=Math.hypot(Math.max(c,innerWidth-c),Math.max(s,innerHeight-s));if(n.disableViewTranslation)document.documentElement.setAttribute("data-scheme",r.value?"dark":"light"),localStorage.setItem("scheme",r.value?"dark":"light");else{const u=document.startViewTransition(()=>{r.value?(document.documentElement.setAttribute("data-scheme","dark"),localStorage.setItem("scheme","dark")):(document.documentElement.setAttribute("data-scheme","light"),localStorage.setItem("scheme","light"))});n.circleTranslation&&u.ready.then(()=>{document.documentElement.animate({clipPath:[`circle(0 at ${c}px ${s}px)`,`circle(${i}px at ${c}px ${s}px)`]},{duration:500,easing:"ease-in",pseudoElement:"::view-transition-new(root)"})})}}});const l=e.ref(!0),a=e.ref(!1);return e.onMounted(()=>{re&&(r.value=localStorage.getItem("scheme")==="dark"),l.value=!1}),e.nextTick(()=>{a.value=!0}),(c,s)=>{const i=jt;return e.openBlock(),e.createElementBlock("div",Ao,[e.createElementVNode("div",{class:e.normalizeClass({hidden:!l.value})},[e.createElementVNode("div",Vo,[e.createVNode(i,{value:!1,"on-icon":"i-line-md-moon-twotone-alt-loop","off-icon":"i-line-md-sunny-outline-twotone-loop"})]),e.createElementVNode("div",Ho,[e.createVNode(i,{value:!0,color:"secondary","on-icon":"i-line-md-moon-twotone-alt-loop","off-icon":"i-line-md-sunny-outline-twotone-loop"})])],2),e.createElementVNode("div",{class:e.normalizeClass({hidden:l.value})},[e.createVNode(i,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=u=>r.value=u),animate:a.value,color:"secondary","on-icon":"i-line-md-moon-twotone-alt-loop","off-icon":"i-line-md-sunny-outline-twotone-loop"},null,8,["modelValue","animate"])],2)])}}}),No=e.defineComponent({__name:"ScrollArea",props:{height:{},barWidth:{default:8},threshold:{default:100},floating:{type:Boolean},autoHide:{type:Boolean}},setup(t,{expose:n}){const r=t,o=Ct(),l=ne(o),a=e.ref(),c=ne(()=>a.value),s=e.computed(()=>{if(r.height)return typeof r.height=="number"?`${r.height}px`:r.height;const M=o.value?Number.parseFloat(getComputedStyle(o.value).paddingTop)+Number.parseFloat(getComputedStyle(o.value).paddingBottom):0,N=o.value?Number.parseFloat(getComputedStyle(o.value).marginTop)+Number.parseFloat(getComputedStyle(o.value).marginBottom):0;return`${l.height.value-M-N}px`}),i=e.ref(),u=Bt(()=>i.value),{x:d,y:f}=en(()=>i.value),p=e.computed(()=>{var M;return(((M=i.value)==null?void 0:M.scrollHeight)??0)-(u.value??0)}),m=_t(()=>i.value),g=e.computed(()=>f.value/p.value||0),h=e.computed(()=>i.value?u.value/m.value*u.value:0),w=e.computed(()=>u.value-h.value),v=e.computed(()=>{if(!i.value)return null;const M=g.value*w.value;return{x:d.value,y:f.value,barHeight:h.value,barTop:M}}),y=e.ref(!1),C=e.ref(0),E=e.ref(""),x=e.ref(0),_=He({type:"client"});T(()=>a.value,"pointerdown",M=>{y.value=!0,C.value=M.clientY,x.value=f.value,E.value=document.body.style.userSelect,document.body.style.userSelect="none"}),T(()=>document,"pointermove",()=>{if(!y.value)return;if(r.threshold<c.left.value-_.x.value||_.x.value-c.right.value>r.threshold){f.value=x.value;return}const N=(_.y.value-C.value)/w.value;f.value=x.value+N*p.value}),T(()=>document,"pointerup",()=>{y.value=!1,document.body.style.userSelect=E.value}),n({$el:i});const b=e.ref(),B=ye(b),A=ye(()=>a.value),k=Ce("bg",{dark:2,light:7},.5),z=Ce("bg",{dark:2,light:7},.75);function H(M){var me;const{clientY:N}=M,{top:R,height:Y}=c,V=R.value,D=Y.value,G=V+D/2,Q=N-G;(me=i.value)==null||me.scrollBy({top:Q/D*u.value,behavior:"smooth"})}return(M,N)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:b,style:e.normalizeStyle({height:s.value}),class:"relative max-h-fit overflow-hidden"},[v.value?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({width:`${M.barWidth}px`}),class:"absolute right-0 z-99999 h-full",onPointerdown:H},[e.withDirectives(e.createElementVNode("div",{ref_key:"scrollBarIndicatorRef",ref:a,class:e.normalizeClass([[e.unref(k).class,{"op-0":!e.unref(B)&&M.autoHide,"op-100":e.unref(B)&&M.autoHide}],"absolute right-0 z-1 rounded-full transition-background-color,opacity"]),style:e.normalizeStyle([{right:"0px",width:`${M.barWidth}px`,top:`${v.value.barTop}px`,height:`${v.value.barHeight}px`},!e.unref(A)&&!y.value&&e.unref(k).style,(e.unref(A)||y.value)&&e.unref(z).style])},null,6),[[e.vShow,v.value.barHeight<e.unref(u)]])],36)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"scrollDomRef",ref:i,style:e.normalizeStyle({paddingRight:`${M.floating?0:M.barWidth}px`,scrollbarWidth:"none",height:"100%",overflowY:"scroll"})},[e.renderSlot(M.$slots,"default")],4)],4))}}),Ro={class:"w-full flex items-center"},Io=["placeholder","readonly","value","aria-label"],Do={key:0,class:"flex cursor-default items-center justify-between gap-2 rounded p-1 px-2"},Po=["onPointerdown","onMousemove"],Oo={key:0},Fo={key:0,class:"flex cursor-default items-center justify-between gap-2 rounded p-1 px-2"},Lo=e.defineComponent({__name:"Select",props:e.mergeModels({ariaLabel:{},options:{default(){return[]}},color:{default:"primary"},size:{default:"md"},noneText:{default:"No options"},notFoundText:{default:"Not found"},rounded:{default:"md"},placeholder:{default:""},searchable:{type:Boolean,default:!1},filter:{type:Function,default:(t,n)=>t.includes(n)}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["change","input"],["update:modelValue"]),setup(t,{emit:n}){const r=t,o=n,l=W(r),a=e.useModel(t,"modelValue"),c=e.ref(null),s=e.ref(null),i=e.ref(!1);St(s,()=>{i.value=!1});const u=e.ref(-1),d=e.ref(-1);e.watchEffect(()=>{i.value||(d.value=-1)}),e.watch(a,()=>{o("change",a.value)});const f=e.computed(()=>a.value),p=e.computed(()=>h(f.value)),m=e.computed(()=>r.options.findIndex(V=>z(V,f.value))),g=e.ref(p.value);e.watch(p,()=>{g.value=p.value});function h(V){return V?typeof V=="string"||typeof V=="symbol"||typeof V=="number"?String(V):V.label?V.label:V.id:""}function w(V){if(V)return typeof V=="string"||typeof V=="symbol"||typeof V=="number"?V:V.id}function v(V){i.value=!0;const D=V.target;g.value=D.value,o("input",g.value)}const y=e.computed(()=>r.searchable&&g.value!==p.value?r.options.filter(V=>r.filter(h(V),g.value)):r.options);ae("ArrowDown",V=>{i.value&&(V.preventDefault(),d.value===-1&&u.value!==-1?d.value=u.value:d.value===-1&&u.value===-1&&m.value!==-1&&(d.value=m.value),d.value=(d.value+1)%r.options.length)}),ae("ArrowUp",V=>{i.value&&(V.preventDefault(),d.value===-1&&u.value!==-1?d.value=u.value:d.value===-1&&u.value===-1&&m.value!==-1&&(d.value=m.value),d.value=(d.value-1+r.options.length)%r.options.length)}),ae("Enter",()=>{i.value&&d.value!==-1&&(a.value=y.value[d.value],c.value.focus(),i.value=!1)});function C(V){if(c.value.focus(),!i.value){i.value=!0;return}a.value=V,i.value=!1}const E=e.computed(()=>r.color),x=ot(E,"default"),_=e.computed(()=>{switch(r.size){case"sm":return{wrapper:"h-6 w-full py-1 pl-1.5 pr-6 text-sm",dropdown:"text-sm children:py-1"};case"lg":return{wrapper:"h-10 w-full py-2 pl-3 pr-10 text-lg",dropdown:"text-lg children:py-2"};default:return{wrapper:"h-8 w-full py-1 pl-2 pr-8 text-base",dropdown:"text-base children:py-1"}}}),b=e.ref(null),{height:B}=ne(b),{bottom:A}=ne(c);e.watch([i],()=>{d.value=-1,u.value=-1});const k=e.computed(()=>i.value&&re?B.value===0?!1:document.documentElement.clientHeight-A.value>B.value:!1);function z(V,D){return D?typeof V=="string"||typeof V=="symbol"||typeof V=="number"?V===D:typeof D=="string"||typeof D=="symbol"||typeof D=="number"?!1:V.id===D.id:!1}const H=e.computed(()=>r.searchable?"cursor-text":"cursor-pointer"),M=Ne(),N=nt(),R=xe(E);function Y(V){u.value=V,d.value=-1}return(V,D)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:s,class:"relative",style:e.normalizeStyle(e.unref(x))},[e.createElementVNode("div",Ro,[e.createElementVNode("input",{ref_key:"inputRef",ref:c,class:e.normalizeClass([[_.value.wrapper,e.unref(l).class,H.value],"border outline-none outline-none focus-visible:outline-2 custom-input-colors"]),placeholder:V.placeholder,style:e.normalizeStyle([e.unref(l).style,e.unref(x)]),readonly:!V.searchable,value:g.value,"aria-label":V.ariaLabel,"aria-haspopup":"listbox",autocomplete:"off",onInput:v,onClick:D[0]||(D[0]=G=>i.value=!0)},null,46,Io),D[2]||(D[2]=e.createElementVNode("i",{class:"i-fluent-chevron-down-12-filled pointer-events-none absolute right-2"},null,-1))]),i.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"dropdownRef",ref:b,class:e.normalizeClass(["absolute z-10 mt-2 w-full flex-col overflow-hidden border rounded p-1",[e.unref(M).class,_.value.dropdown,{"bottom-10":!k.value}]]),style:e.normalizeStyle([e.unref(M).style])},[V.options.length===0?(e.openBlock(),e.createElementBlock("div",Do,[e.renderSlot(V.$slots,"none",{},()=>[e.createTextVNode(e.toDisplayString(V.noneText),1)])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(G,Q)=>(e.openBlock(),e.createElementBlock("div",{key:w(G),class:e.normalizeClass([[d.value===Q&&e.unref(R).class,u.value===Q&&d.value===-1&&e.unref(N).class],"flex cursor-pointer items-center justify-between gap-2 rounded p-1 px-2"]),style:e.normalizeStyle([d.value===Q&&e.unref(R).style,u.value===Q&&d.value===-1&&e.unref(N).style]),onPointerdown:me=>C(G),onMousemove:me=>Y(Q),onMouseleave:D[1]||(D[1]=me=>u.value=-1)},[e.renderSlot(V.$slots,"item",{data:G,selected:z(G,f.value)},()=>[e.createTextVNode(e.toDisplayString(h(G)),1)]),z(G,f.value)?(e.openBlock(),e.createElementBlock("div",Oo,D[3]||(D[3]=[e.createElementVNode("i",{class:"i-fluent-checkmark-12-filled h-3 w-3"},null,-1)]))):e.createCommentVNode("",!0)],46,Po))),128)),V.searchable&&y.value.length===0?(e.openBlock(),e.createElementBlock("div",Fo,[e.renderSlot(V.$slots,"not-found",{},()=>[e.createTextVNode(e.toDisplayString(V.notFoundText),1)])])):e.createCommentVNode("",!0)],64))],6)):e.createCommentVNode("",!0)],4))}}),Wo=e.defineComponent({__name:"SelectArea",props:{target:{},color:{default:"primary"}},emits:["selectStart","selectChange","selectEnd"],setup(t,{emit:n}){const r=t,o=n,l=e.computed(()=>r.color),a=oe(l),c=e.computed(()=>{const v=a.value[5].setAlpha(.5).toHex8String(),y=a.value[5].setAlpha(.1).toHex8String();return{"--border-color":v,"--fill-color":y}}),{shift:s,control:i}=rn(),u=Ct(),d=e.computed(()=>r.target??u.value),f=He(),p=e.ref({x:0,y:0}),m=e.ref({x:0,y:0}),g=e.ref(!1),h=ne(d);T(d,"pointerdown",v=>{if(v.button!==0)return;const y=v.pageX-h.left.value,C=v.pageY-h.top.value;p.value={x:y,y:C},m.value={x:y,y:C},g.value=!0,o("selectStart",{target:v.target,shift:s.value,ctrl:i.value})},{capture:!0}),T(window,"pointerup",v=>{g.value=!1,o("selectEnd",{left:Math.min(p.value.x,m.value.x),top:Math.min(p.value.y,m.value.y),right:Math.max(p.value.x,m.value.x),bottom:Math.max(p.value.y,m.value.y)},{target:v.target,shift:s.value,ctrl:i.value})}),T(d,"pointermove",v=>{const y=v.pageX-h.left.value,C=v.pageY-h.top.value;g.value&&(m.value={x:y,y:C},o("selectChange",{left:Math.min(p.value.x,m.value.x),top:Math.min(p.value.y,m.value.y),right:Math.max(p.value.x,m.value.x),bottom:Math.max(p.value.y,m.value.y)},{target:v.target,shift:s.value,ctrl:i.value}))});const w=e.computed(()=>d.value?d.value.parentElement:null);return T(w,"scroll",v=>{g.value&&(m.value={x:f.x.value-h.left.value,y:f.y.value-h.top.value},o("selectChange",{left:Math.min(p.value.x,m.value.x),top:Math.min(p.value.y,m.value.y),right:Math.max(p.value.x,m.value.x),bottom:Math.max(p.value.y,m.value.y)},{target:v.target,shift:s.value,ctrl:i.value}))}),T(window,"dragend",()=>{g.value=!1}),(v,y)=>d.value?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:d.value},[g.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"absolute z-10000 h-1 border border border-[var(--border-color)] bg-[var(--fill-color)]",style:e.normalizeStyle([{left:`${Math.min(p.value.x,m.value.x)}px`,top:`${Math.min(p.value.y,m.value.y)}px`,width:`${Math.abs(p.value.x-m.value.x)}px`,height:`${Math.abs(p.value.y-m.value.y)}px`},c.value])},null,4)):e.createCommentVNode("",!0)],8,["to"])):e.createCommentVNode("",!0)}}),jo={class:"relative w-full"},Xo="dark:bg-white bg-[var(--i-bg)]",Go="dark:bg-[var(--i-bg)] bg-white",Uo=e.defineComponent({__name:"Slider",props:e.mergeModels({size:{default:"md"},animate:{type:Boolean,default:!1},width:{},options:{},min:{default:0},max:{default:100},step:{default:1},tickNum:{},color:{default:"primary"},minWidth:{default:12}},{modelValue:{default:void 0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=t;function r(_,b,B){const A=[];for(let k=_;k<=b;k+=B)A.push(k);return A[A.length-1]!==b&&A.push(b),A}function o(_,b){const B=[];if(_===0)return B;B.push(b[0]);const A=(b.length-1)/(_-1);for(let k=1;k<_-1;k++)B.push(b[Math.round(k*A)]);return B.push(b[b.length-1]),B}const l=e.computed(()=>n.options?n.options.length:n.tickNum??0),a=e.computed(()=>n.options===void 0?r(n.min,n.max,n.step):n.options),c=e.computed(()=>o(l.value,a.value)),s=e.useModel(t,"modelValue"),i=e.computed(()=>a.value.length??0),u=e.ref(a.value.includes(s.value)?a.value.indexOf(s.value):0);function d(_){let b=a.value.indexOf(_);if(b===-1)if(typeof _=="number"){let B=1/0;for(let A=0;A<a.value.length;A++){const k=Math.abs(a.value[A]-_);k<B&&(B=k,b=A)}}else b=0;return b}const f=e.computed(()=>n.color),p=oe(f.value),m=e.computed(()=>p.value[4]),g=xe(f);e.watchEffect(()=>{u.value<0||(s.value=a.value[u.value])}),e.watchEffect(()=>{u.value=d(s.value)});const h=e.ref(),w=e.ref(),v=e.ref(!1);function y(_){if(!v.value)return;if(!(_.buttons===1)){v.value=!1;return}_.preventDefault(),_.stopPropagation();const B=ne(h),{clientX:A}=_,k=B.left.value,H=B.right.value-k,M=Math.round((A-k)/H*(i.value-1));if(M<0){u.value=0;return}if(M>i.value-1){u.value=i.value-1;return}u.value=M}e.watchEffect(()=>{u.value=d(s.value)});function C(_){_.preventDefault(),_.stopPropagation(),v.value=!0,y(_)}T(h,"pointerdown",C),e.onMounted(()=>{T(document,"pointermove",y),u.value=Math.max(0,d(s.value))});const E=e.computed(()=>{switch(n.size){case"sm":return{wrapper:"h-2",innerWrapper:"px-0.5 h-1",content:"h-1",tick:"h-0.5 w-0.5 -translate-x-0.25 -translate-y-0.25",indicator:"h-3 w-3 -translate-x-1.5 -translate-y-1.5",indicatorInner:"h-1.5 w-1.5 -translate-x-0.75 -translate-y-0.75",progress:"-mx-0.5"};case"lg":return{wrapper:"h-6",innerWrapper:"px-1.5 h-3",content:"h-3",tick:"h-1.5 w-1.5 -translate-x-0.75 -translate-y-0.75",indicator:"h-6 w-6 -translate-x-3 -translate-y-3",indicatorInner:"h-3 w-3 -translate-x-1.5 -translate-y-1.5",progress:"-mx-1.5"};case"md":default:return{wrapper:"h-4",innerWrapper:"px-1 h-2",content:"h-2",tick:"h-1 w-1 -translate-x-0.5 -translate-y-0.5",indicator:"h-4 w-4 -translate-x-2 -translate-y-2",indicatorInner:"h-2 w-2 -translate-x-1 -translate-y-1",progress:"-mx-1"}}}),x=e.computed(()=>n.animate?{indicator:"transition-left",progress:"transition-width"}:{indicator:"",progress:""});return(_,b)=>(e.openBlock(),e.createElementBlock("div",jo,[e.createElementVNode("div",{ref_key:"wrapper",ref:h,type:"size",class:e.normalizeClass(["w-full flex cursor-pointer items-center",E.value.wrapper]),onTouchmove:b[0]||(b[0]=e.withModifiers(()=>{},["prevent"]))},[e.createElementVNode("div",{class:e.normalizeClass(["w-full rounded-full bg-surface-3 transition-background-color,border-color,color dark:bg-surface-7",E.value.innerWrapper])},[e.createElementVNode("div",{class:e.normalizeClass(["relative flex",E.value.content]),style:e.normalizeStyle({width:`${n.width}rem`,minWidth:`${n.minWidth}rem`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,B=>(e.openBlock(),e.createElementBlock("div",{key:B,style:e.normalizeStyle({left:`${d(B)/(i.value-1)*100}%`}),class:e.normalizeClass(["absolute top-50% rounded-full bg-surface-0",E.value.tick])},null,6))),128)),u.value!==-1?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"indicator",ref:w,class:e.normalizeClass(["absolute top-50% cursor-pointer rounded-full transition-background-color,border-color,color",[E.value.indicator,x.value.indicator,Xo]]),style:e.normalizeStyle([`--i-bg: ${m.value}`,{left:`${u.value/(i.value-1)*100}%`}])},[e.createElementVNode("div",{class:e.normalizeClass(["pointer-events-none absolute left-50% top-50% rounded-full",[E.value.indicatorInner,Go]])},null,2)],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["pointer-events-none h-full rounded-full",[e.unref(g).class,E.value.progress,x.value.progress]]),style:e.normalizeStyle([e.unref(g).style,{width:`${u.value/(i.value-1)*100}%`}])},null,6)],6)],2)],34),c.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"text-surface-on-low relative mx-1 h-1em text-xs",style:e.normalizeStyle({width:`${n.width}rem`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(B,A)=>(e.openBlock(),e.createElementBlock("div",{key:A,style:e.normalizeStyle({left:`${d(B)/(i.value-1)*100}%`}),class:e.normalizeClass(["absolute w-auto flex rounded-full -translate-x-50%",E.value.tick])},e.toDisplayString(B),7))),128))],4)):e.createCommentVNode("",!0)]))}}),Yo={class:"h-full py-2"},qo=e.defineComponent({__name:"TabItem",props:{value:{},color:{default:"primary"}},setup(t){const n=t,r=e.computed(()=>n.color),o=e.inject(Fe,e.ref("")),l=e.ref(null),a=e.computed(()=>o.value===n.value);function c(){o.value=n.value}const s=e.inject(We,new Map);e.onMounted(()=>{s.set(n.value,l)});const i=e.inject(Le,e.computed(()=>"horizontal")),u=e.computed(()=>{switch(i.value){case"vertical":return"flex-row-reverse rounded-tr-lg rounded-br-lg";case"horizontal":default:return"flex-col rounded-tr-lg rounded-tl-lg"}}),d=e.computed(()=>{switch(i.value){case"vertical":return"absolute inset-0 right-100% h-full w-2px";case"horizontal":default:return"absolute inset-0 top-100% h-2px w-full"}}),f=O({color:r.value,type:"bg",index:5}),p=O({color:r.value,type:"outline",index:5});return(m,g)=>(e.openBlock(),e.createElementBlock("button",e.mergeProps({ref_key:"tabRef",ref:l,type:"button",class:["rutline-none relative min-w-20 flex items-center justify-center outline-none focus-visible:outline-2 outline-offset-0!",[u.value]]},e.unref(p),{onClick:c}),[a.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(f).class,d.value]),style:e.normalizeStyle([e.unref(f).style])},null,6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([d.value])},null,2)),e.createElementVNode("div",Yo,[e.renderSlot(m.$slots,"default")])],16))}}),Ko=e.defineComponent({__name:"Tabs",props:e.mergeModels({defaultValue:{},direction:{default:"horizontal"}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=t,r=e.useSlots(),o=e.computed(()=>{var f;const u=(f=r.default)==null?void 0:f.call(r);return(u==null?void 0:u.flatMap(p=>p.type===e.Fragment?p.children:p).filter(p=>{var m;return((m=p==null?void 0:p.props)==null?void 0:m.value)!==void 0}).map(p=>p.props.value))??[]}),l=e.useModel(t,"modelValue");!l.value&&o.value.length>0&&(l.value=o.value[0]);const a=e.ref(null);e.onMounted(()=>{n.defaultValue&&(l.value=n.defaultValue)}),e.provide(Fe,l);const c=e.computed(()=>n.direction);e.provide(Le,c);const s=new Map;e.provide(We,s),ae("ArrowLeft",u=>{var m;if(!((m=a.value)!=null&&m.contains(document.activeElement))||(u.preventDefault(),n.direction!=="horizontal"))return;const d=l.value?o.value.indexOf(l.value):0,f=d>0?o.value[d-1]:o.value[o.value.length-1];l.value=f;const p=s.get(f);if(p){const g=p.value;g&&g.focus()}}),ae("ArrowRight",u=>{var m;if(!((m=a.value)!=null&&m.contains(document.activeElement))||(u.preventDefault(),n.direction!=="horizontal"))return;const d=l.value?o.value.indexOf(l.value):0,f=d<o.value.length-1?l.value=o.value[d+1]:l.value=o.value[0];l.value=f;const p=s.get(f);if(p){const g=p.value;g&&g.focus()}}),ae("ArrowUp",u=>{var m;if(!((m=a.value)!=null&&m.contains(document.activeElement))||(u.preventDefault(),n.direction!=="vertical"))return;const d=l.value?o.value.indexOf(l.value):0,f=d>0?o.value[d-1]:o.value[o.value.length-1];l.value=f;const p=s.get(f);if(p){const g=p.value;g&&g.focus()}}),ae("ArrowDown",u=>{var m;if(!((m=a.value)!=null&&m.contains(document.activeElement))||(u.preventDefault(),n.direction!=="vertical"))return;const d=l.value?o.value.indexOf(l.value):0,f=d<o.value.length-1?o.value[d+1]:o.value[0];l.value=f;const p=s.get(f);if(p){const g=p.value;g&&g.focus()}});const i=e.computed(()=>{switch(n.direction){case"horizontal":return"flex-row";case"vertical":return"flex-col";default:return"flex-row"}});return(u,d)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tabRef",ref:a,class:e.normalizeClass(["flex",[i.value]])},[e.renderSlot(u.$slots,"default")],2))}}),Jo=e.defineComponent({__name:"Tag",props:{color:{},variant:{default:"default"},rounded:{default:"md"},size:{},leftIcon:{},rightIcon:{}},setup(t){const n=t,r=e.computed(()=>{switch(n.size){case"sm":return"px-2 py-0.5 text-xs";case"lg":return"px-4 py-1 text-base";case"md":default:return"px-3 py-0.5 text-sm"}}),o=W(n),l=e.computed(()=>n.color??"primary"),a=e.computed(()=>n.variant),c=Re(a,l);return(s,i)=>(e.openBlock(),e.createElementBlock("span",{tabindex:-1,style:e.normalizeStyle([e.unref(c).style,e.unref(o).style]),class:e.normalizeClass([[e.unref(c).class,e.unref(o).class,r.value],"inline-block h-fit flex cursor-pointer gap-1 border"])},[n.leftIcon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass([n.leftIcon,"shrink-0"])},null,2)):s.$slots.leftIcon?e.renderSlot(s.$slots,"left-icon",{key:1}):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"default"),n.rightIcon?(e.openBlock(),e.createElementBlock("i",{key:2,class:e.normalizeClass([n.rightIcon,"h-container w-container shrink-0"])},null,2)):s.$slots.rightIcon?e.renderSlot(s.$slots,"right-icon",{key:3}):e.createCommentVNode("",!0)],6))}}),Zo=["data-scheme","data-theme"],Qo=e.defineComponent({__name:"ThemeProvider",props:{theme:{},scheme:{}},setup(t){const n=t,r=Et(),o=e.computed(()=>Ye(n.theme?n.theme:r.value)),l=xt("scheme","light"),a=e.computed(()=>n.scheme?n.scheme:l.value);return(c,s)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle([o.value]),"data-scheme":a.value,"data-theme":e.unref(r).name},[e.renderSlot(c.$slots,"default")],12,Zo))}}),el=e.defineComponent({__name:"Tooltip",props:{timeout:{default:200}},setup(t){const n=t,r=He(),o=e.ref(null),l=ye(o),a=Rr(l,n.timeout),c=e.ref(0),s=e.ref(0),i=e.ref(null),u=ye(i);return e.watch(a,(d,f)=>{a.value&&d!==f&&(c.value=r.x.value,s.value=r.y.value)}),(d,f)=>{const p=Lt;return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{ref_key:"hoverableRef",ref:o},[e.renderSlot(d.$slots,"default")],512),c.value&&s.value&&(e.unref(a)||e.unref(u))?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"tooltipRef",ref:i,class:"absolute z-10",style:e.normalizeStyle({left:`${c.value+20}px`,top:`${s.value+20}px`})},[e.createVNode(p,{"with-border":""},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"content")]),_:3})],4)):e.createCommentVNode("",!0)])}}});function Xt(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function U(t){return typeof t=="function"?t():e.unref(t)}const tl=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const rl=Object.prototype.toString,nl=t=>rl.call(t)==="[object Object]",pe=()=>{};function Gt(t,n){function r(...o){return new Promise((l,a)=>{Promise.resolve(t(()=>n.apply(this,o),{fn:n,thisArg:this,args:o})).then(l).catch(a)})}return r}function ol(t,n={}){let r,o,l=pe;const a=c=>{clearTimeout(c),l(),l=pe};return c=>{const s=U(t),i=U(n.maxWait);return r&&a(r),s<=0||i!==void 0&&i<=0?(o&&(a(o),o=null),Promise.resolve(c())):new Promise((u,d)=>{l=n.rejectOnCancel?d:u,i&&!o&&(o=setTimeout(()=>{r&&a(r),o=null,u(c())},i)),r=setTimeout(()=>{o&&a(o),o=null,u(c())},s)})}}function ll(...t){let n=0,r,o=!0,l=pe,a,c,s,i,u;!e.isRef(t[0])&&typeof t[0]=="object"?{delay:c,trailing:s=!0,leading:i=!0,rejectOnCancel:u=!1}=t[0]:[c,s=!0,i=!0,u=!1]=t;const d=()=>{r&&(clearTimeout(r),r=void 0,l(),l=pe)};return f=>{const p=U(c),m=Date.now()-n,g=()=>a=f();return d(),p<=0?(n=Date.now(),g()):(m>p&&(i||!o)?(n=Date.now(),g()):s&&(a=new Promise((h,w)=>{l=u?w:h,r=setTimeout(()=>{n=Date.now(),o=!0,h(g()),d()},Math.max(0,p-m))})),!i&&!r&&(r=setTimeout(()=>o=!0,p)),o=!1,a)}}function al(t){return e.getCurrentInstance()}function sl(t,n=200,r={}){return Gt(ol(n,r),t)}function il(t,n=200,r=!1,o=!0,l=!1){return Gt(ll(n,r,o,l),t)}function Ut(t,n=!0,r){al()?e.onMounted(t,r):n?t():e.nextTick(t)}function le(t){var n;const r=U(t);return(n=r==null?void 0:r.$el)!=null?n:r}const De=tl?window:void 0;function Yt(...t){let n,r,o,l;if(typeof t[0]=="string"||Array.isArray(t[0])?([r,o,l]=t,n=De):[n,r,o,l]=t,!n)return pe;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const a=[],c=()=>{a.forEach(d=>d()),a.length=0},s=(d,f,p,m)=>(d.addEventListener(f,p,m),()=>d.removeEventListener(f,p,m)),i=e.watch(()=>[le(n),U(l)],([d,f])=>{if(c(),!d)return;const p=nl(f)?{...f}:f;a.push(...r.flatMap(m=>o.map(g=>s(d,m,g,p))))},{immediate:!0,flush:"post"}),u=()=>{i(),c()};return Xt(u),u}function cl(){const t=e.ref(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function ul(t){const n=cl();return e.computed(()=>(n.value,!!t()))}function dl(t,n,r={}){const{window:o=De,...l}=r;let a;const c=ul(()=>o&&"ResizeObserver"in o),s=()=>{a&&(a.disconnect(),a=void 0)},i=e.computed(()=>{const f=U(t);return Array.isArray(f)?f.map(p=>le(p)):[le(f)]}),u=e.watch(i,f=>{if(s(),c.value&&o){a=new ResizeObserver(n);for(const p of f)p&&a.observe(p,l)}},{immediate:!0,flush:"post"}),d=()=>{s(),u()};return Xt(d),{isSupported:c,stop:d}}function fl(t,n={width:0,height:0},r={}){const{window:o=De,box:l="content-box"}=r,a=e.computed(()=>{var f,p;return(p=(f=le(t))==null?void 0:f.namespaceURI)==null?void 0:p.includes("svg")}),c=e.ref(n.width),s=e.ref(n.height),{stop:i}=dl(t,([f])=>{const p=l==="border-box"?f.borderBoxSize:l==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(o&&a.value){const m=le(t);if(m){const g=m.getBoundingClientRect();c.value=g.width,s.value=g.height}}else if(p){const m=Array.isArray(p)?p:[p];c.value=m.reduce((g,{inlineSize:h})=>g+h,0),s.value=m.reduce((g,{blockSize:h})=>g+h,0)}else c.value=f.contentRect.width,s.value=f.contentRect.height},r);Ut(()=>{const f=le(t);f&&(c.value="offsetWidth"in f?f.offsetWidth:n.width,s.value="offsetHeight"in f?f.offsetHeight:n.height)});const u=e.watch(()=>le(t),f=>{c.value=f?n.width:0,s.value=f?n.height:0});function d(){i(),u()}return{width:c,height:s,stop:d}}const qt=1;function pl(t,n={}){const{throttle:r=0,idle:o=200,onStop:l=pe,onScroll:a=pe,offset:c={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:i="auto",window:u=De,onError:d=b=>{console.error(b)}}=n,f=e.ref(0),p=e.ref(0),m=e.computed({get(){return f.value},set(b){h(b,void 0)}}),g=e.computed({get(){return p.value},set(b){h(void 0,b)}});function h(b,B){var A,k,z,H;if(!u)return;const M=U(t);if(!M)return;(z=M instanceof Document?u.document.body:M)==null||z.scrollTo({top:(A=U(B))!=null?A:g.value,left:(k=U(b))!=null?k:m.value,behavior:U(i)});const N=((H=M==null?void 0:M.document)==null?void 0:H.documentElement)||(M==null?void 0:M.documentElement)||M;m!=null&&(f.value=N.scrollLeft),g!=null&&(p.value=N.scrollTop)}const w=e.ref(!1),v=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),y=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),C=b=>{w.value&&(w.value=!1,y.left=!1,y.right=!1,y.top=!1,y.bottom=!1,l(b))},E=sl(C,r+o),x=b=>{var B;if(!u)return;const A=((B=b==null?void 0:b.document)==null?void 0:B.documentElement)||(b==null?void 0:b.documentElement)||le(b),{display:k,flexDirection:z}=getComputedStyle(A),H=A.scrollLeft;y.left=H<f.value,y.right=H>f.value;const M=Math.abs(H)<=(c.left||0),N=Math.abs(H)+A.clientWidth>=A.scrollWidth-(c.right||0)-qt;k==="flex"&&z==="row-reverse"?(v.left=N,v.right=M):(v.left=M,v.right=N),f.value=H;let R=A.scrollTop;b===u.document&&!R&&(R=u.document.body.scrollTop),y.top=R<p.value,y.bottom=R>p.value;const Y=Math.abs(R)<=(c.top||0),V=Math.abs(R)+A.clientHeight>=A.scrollHeight-(c.bottom||0)-qt;k==="flex"&&z==="column-reverse"?(v.top=V,v.bottom=Y):(v.top=Y,v.bottom=V),p.value=R},_=b=>{var B;if(!u)return;const A=(B=b.target.documentElement)!=null?B:b.target;x(A),w.value=!0,E(b),a(b)};return Yt(t,"scroll",r?il(_,r,!0,!1):_,s),Ut(()=>{try{const b=U(t);if(!b)return;x(b)}catch(b){d(b)}}),Yt(t,"scrollend",C,s),{x:m,y:g,isScrolling:w,arrivedState:v,directions:y,measure(){const b=U(t);u&&b&&x(b)}}}const ml=e.defineComponent({__name:"Waterfall",props:{gap:{},wrapperWidth:{},itemWidth:{},rowCount:{},paddingX:{}},setup(t,{expose:n}){const r=t,o=e.useSlots(),l=e.computed(()=>e.unref(r.gap)??16),a=e.computed(()=>e.unref(r.rowCount)??3),c=e.computed(()=>e.unref(r.paddingX)??0),s=e.ref();function i(C){return Array.isArray(C)}const u=e.ref([]),d=e.computed(()=>{const C=u.value;return Array.from(C).map(E=>fl(E))}),f=e.computed(()=>{var C,E;return r.itemWidth?e.unref(r.itemWidth)*a.value+l.value*(a.value-1)+c.value*2:r.wrapperWidth?e.unref(r.wrapperWidth):((E=(C=s.value)==null?void 0:C.parentElement)==null?void 0:E.clientWidth)??0}),p=e.computed(()=>r.itemWidth?e.unref(r.itemWidth):(f.value-c.value*2-l.value*(a.value-1))/a.value);function m(C,E,x,_){const b=e.unref(C),B=Array.from({length:e.unref(E)}).fill(0),A=[],k=Math.max(0,f.value-e.unref(_)*2-p.value*b.length-e.unref(x)*b.length)/2;for(let z=0;z<b.length;z++){const H=b[z],M=B.indexOf(Math.min(...B)),N=M*(p.value+e.unref(x))+e.unref(_)+k,R=B[M];A.push({x:N,y:R,width:H.width.value,height:H.height.value}),B[M]+=H.height.value+e.unref(x)}return A}const g=e.computed(()=>m(d,a,l,c)),h=e.computed(()=>i(g.value)?Math.max(...g.value.map(C=>C.y+C.height)):0),w=e.computed(()=>{var C;return((C=o.default)==null?void 0:C.call(o))??[]}),v=e.computed(()=>{const C=[];return w.value.forEach(E=>{i(E.children)?E.children.forEach(x=>{C.push(x)}):C.push(E)}),C});function y(C){if(!i(g.value))return{};const E=g.value[C];return E?{left:`${E.x??0}px`,top:`${E.y??0}px`,maxWidth:`${p.value}px`}:{}}return n({width:p}),(C,E)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapper",ref:s,style:e.normalizeStyle({position:"relative",overflowX:"clip",width:`${f.value}px`,height:`${h.value}px`,overflow:"scroll"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(x,_)=>(e.openBlock(),e.createElementBlock("div",{key:_,ref_for:!0,ref_key:"itemsRef",ref:u,style:e.normalizeStyle([y(_),{position:"absolute"}])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(x),{style:e.normalizeStyle({width:`${p.value}px`})},null,8,["style"]))],4))),128))],4))}}),hl=e.defineComponent({__name:"VirtualWaterfall",props:{gap:{},wrapperWidth:{},itemWidth:{},rowCount:{},paddingX:{},is:{},items:{},rangeExpand:{}},setup(t,{expose:n}){const r=t,o=e.computed(()=>e.unref(r.rangeExpand)??0),l=e.useSlots(),a=e.computed(()=>e.unref(r.gap)??16),c=e.computed(()=>e.unref(r.rowCount)??3),s=e.computed(()=>e.unref(r.paddingX)??0),i=e.ref(),u=e.computed(()=>i.value&&i.value.$el?i.value.$el:i.value);function d(k){return Array.isArray(k)}const f=e.computed(()=>{var k,z;return r.itemWidth?e.unref(r.itemWidth)*c.value+a.value*(c.value-1)+s.value*2:r.wrapperWidth?e.unref(r.wrapperWidth):((z=(k=u.value)==null?void 0:k.parentElement)==null?void 0:z.clientWidth)??0}),p=e.computed(()=>r.itemWidth?e.unref(r.itemWidth):(f.value-s.value*2-a.value*(c.value-1))/c.value),m=e.computed(()=>e.unref(r.items).map(k=>{const z=p.value/k.width;return{width:p.value,height:k.height*z}}));function g(k,z,H,M){const N=e.unref(k),R=Array.from({length:e.unref(z)}).fill(0),Y=[],V=Math.max(0,f.value-e.unref(M)*2-p.value*N.length-e.unref(H)*N.length)/2;for(let D=0;D<N.length;D++){const G=N[D],Q=R.indexOf(Math.min(...R)),me=Q*(p.value+e.unref(H))+e.unref(M)+V,gl=R[Q];Y.push({x:me,y:gl,width:G.width,height:G.height}),R[Q]+=G.height+e.unref(H)}return Y}const h=e.computed(()=>g(m,c,a,s)),w=e.computed(()=>d(h.value)?Math.max(...h.value.map(k=>k.y+k.height)):0),v=e.computed(()=>{var k;return((k=l.default)==null?void 0:k.call(l))??[]});function y(k){if(!d(h.value))return{};const z=h.value[k];return z?{left:`${z.x??0}px`,top:`${z.y??0}px`,maxWidth:`${p.value}px`}:{}}const C=e.ref(!1),E=e.computed(()=>C.value?"smooth":"auto"),x=pl(u,{behavior:E}),_=e.computed(()=>{var k;return[x.y.value-o.value,x.y.value+(((k=u.value)==null?void 0:k.clientHeight)??0)+o.value]}),b=e.computed(()=>h.value.map(k=>{const z=k.y,H=k.y+k.height;return z>=_.value[0]&&z<=_.value[1]||H>=_.value[0]&&H<=_.value[1]||z<=_.value[0]&&H>=_.value[1]})),B=e.computed(()=>{const k=[];return v.value.forEach((z,H)=>{if(d(z.children))z.children.forEach((M,N)=>{b.value[N]&&k.push([M,N])});else{if(!b.value[H])return;k.push([z,H])}}),k});n({scroll:x,scrollTo:(k,z=!1)=>{const H=C.value;C.value=z,x.y.value=k,C.value=H}});const A=e.computed(()=>r.is??"div");return(k,z)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(A.value),{ref_key:"wrapper",ref:i,style:{position:"relative"}},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle({height:`${w.value}px`,width:`${f.value}px`,margin:"0 auto",position:"relative"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,([H,M])=>(e.openBlock(),e.createElementBlock("div",{key:H,style:e.normalizeStyle([y(M),{position:"absolute"}])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H),{style:e.normalizeStyle({width:`${p.value}px`})},null,8,["style"]))],4))),128))],4)]),_:1},512))}});S.AspectRatio=Kt,S.Avatar=It,S.Btn=Ie,S.BtnGroup=Hn,S.COLOR_LIGHTNESS_MAP=X,S.ChatContainer=Dn,S.ChatMessage=Pn,S.ChatSystem=Fn,S.Chip=Ln,S.ColorInput=Gn,S.ColorSwatch=Dt,S.Drawer=Jn,S.Dropzone=Zn,S.FullscreenOverlay=lt,S.Image=Qn,S.Indicator=to,S.Modal=ro,S.Notification=Ot,S.NotificationSystem=co,S.Notifications=vr,S.Overlay=Ft,S.Paper=Lt,S.PinInput=go,S.Popover=yo,S.Progress=bo,S.Rating=Bo,S.RokuProvider=Eo,S.SURFACE_LIGHTNESS_MAP=se,S.SchemeSwitch=To,S.ScrollArea=No,S.Select=Lo,S.SelectArea=Wo,S.Slider=Uo,S.Switch=jt,S.TabItem=qo,S.Tabs=Ko,S.Tag=Jo,S.TextField=Wt,S.ThemeProvider=Qo,S.Tooltip=el,S.VirtualWaterfall=hl,S.Waterfall=ml,S.borderCS=Ht,S.childrenElementMapSymbol=We,S.defaultTheme=tt,S.directionSymbol=Le,S.errorColor=fe,S.errorColors=kn,S.generateColors=he,S.generateColorsMap=ht,S.generateColorsObjMap=J,S.getCSInner=Ee,S.primaryColor=ce,S.primaryColors=bn,S.schemeSymbol=Mt,S.secondaryColor=ue,S.secondaryColors=wn,S.surfaceColor=ee,S.surfaceColors=vn,S.tabCurrentSymbol=Fe,S.tabValueListSymbol=xr,S.tertiaryColor=de,S.tertiaryColors=Sn,S.useButtonCS=Re,S.useCS=O,S.useClientHeight=Bt,S.useColorCS=$e,S.useColors=oe,S.useContainerCS=ke,S.useContainerDefaultCS=Ne,S.useContainerDefaultVariantCS=nt,S.useContainerFilledCS=xe,S.useContainerLightCS=Rt,S.useCurrentThemeData=Et,S.useCurrentThemeName=an,S.useCurrentThemeScheme=ln,S.useId=Te,S.useIndicatorFilledCS=Nt,S.useInputColorStyle=ot,S.useMergedCS=ve,S.useNotifications=mt,S.useRootTheme=on,S.useRounded=W,S.useSchemeString=zt,S.useScrollHeight=_t,S.useSurfaceCS=Ce,S.useSurfaceColors=Tt,S.useTextCS=yn,S.useThemeData=$t,S.useThemeStyles=Ye,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
|