@shweet/qt 0.0.12 → 0.0.14
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/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{f as Bt}from"shweet";import{Medyas as wt,f as Ct}from"shweet";var s=(e)=>{let t=Number(e);if(t)return t;return e};class i extends wt{prop="";propFN;valFN;string=!0;replacer="-";constructor({prefix:e="",data:t={},values:r={}}={}){super({prefix:e,data:t,values:r});return new Proxy(this,{get(n,h,c){if(h in n&&typeof n[h]!=="undefined")return n[h];else if(n.prop||n.propFN){let D=n.prop;if(n.propFN)D=n.propFN(h);let J=h;if(n.string)J=h.replaceAll("_",n.replacer);if(n.valFN)J=n.valFN(J);n._value={[D]:J}}return c},set(n,h,c){if(h in n&&typeof n[h]!=="function")return n[h]=c,!0;return!1}})}var(e,t){if(this.prop)this._value={[this.prop]:Ct.var(e,t)};return this}}class Y{TH;prop;startEnd;_none;_auto;constructor(e,t,r=["flex-start","flex-end"],n="flex-start",h="auto"){this.TH=e;this.prop=t;this.startEnd=r;this._none=n;this._auto=h}get start(){return this.TH._value={[this.prop]:this.startEnd[0]},this.TH}get center(){return this.TH._value={[this.prop]:"center"},this.TH}get end(){return this.TH._value={[this.prop]:this.startEnd[1]},this.TH}get none(){return this.TH._value={[this.prop]:this._none},this.TH}}class V extends Y{get around(){return this.TH._value={[this.prop]:"space-around"},this.TH}get between(){return this.TH._value={[this.prop]:"space-between"},this.TH}get even(){return this.TH._value={[this.prop]:"space-evenly"},this.TH}}class Ae extends Y{get stretch(){return this.TH._value={[this.prop]:"stretch"},this.TH}get baseline(){return this.TH._value={[this.prop]:"baseline"},this.TH}get auto(){return this.TH._value={[this.prop]:this._auto},this.TH}}var Q=(e,t,r="justifyContent",n=["flex-start","flex-end"])=>{let{direction:h,reversed:c}=e.data,D=h==="row";if(D)e._value={alignItems:t};else{if(c)n.reverse();e._value={alignItems:t}}if(D&&c)n.reverse();return new V(e,r,n,n[0])},_=(e,t,r="gap")=>{return e._value={[r]:t},e};class Ze extends i{prop="gap";valFN=s}class Ee extends i{constructor({prefix:e="",data:t={direction:"row",reversed:!1},values:r={}}={}){super({prefix:e,data:t,values:r})}gap(e){return _(this,e)}get gap0(){return _(this,0)}get gap1(){return _(this,1)}get gap2(){return _(this,2)}get gap3(){return _(this,3)}get gap4(){return _(this,4)}get gap5(){return _(this,5)}rowGap(e){return _(this,e,"rowGap")}colGap(e){return _(this,e,"columnGap")}get GAP(){return new Ze({values:this._value})}}class Je extends i{prop="alignItems";get baseline(){return this._value={[this.prop]:"baseline"},this}get stretch(){return this._value={[this.prop]:"stretch"},this}get center(){return this._value={[this.prop]:"center"},this}get start(){return this._value={[this.prop]:"flex-start"},this}get end(){return this._value={[this.prop]:"flex-end"},this}}class Ge extends i{prop="justifyContent";get start(){return this._value={[this.prop]:"flex-start"},this}get center(){return this._value={[this.prop]:"center"},this}get end(){return this._value={[this.prop]:"flex-end"},this}get none(){return this._value={[this.prop]:"none"},this}get around(){return this._value={[this.prop]:"space-around"},this}get between(){return this._value={[this.prop]:"space-between"},this}get even(){return this._value={[this.prop]:"space-evenly"},this}}class S extends Ee{constructor({prefix:e="",data:t={direction:"row",reversed:!1},values:r={}}={}){super({prefix:e,data:t,values:r});if(!e)this._value={display:"flex"}}get ALIGN(){return new Je({values:this._value})}get JUSTIFY(){return new Ge({values:this._value})}get BASELINE(){return Q(this,"baseline")}get STRETCH(){return Q(this,"stretch")}get CENTER(){return Q(this,"center")}get START(){return Q(this,"flex-start")}get END(){return Q(this,"flex-end")}get column(){return this.data.direction="column",this.data.reversed=!1,this._value={flexDirection:"column"},this}get columnReverse(){return this.data.direction="column",this.data.reversed=!0,this._value={flexDirection:"column-reverse"},this}get row(){return this.data.direction="row",this.data.reversed=!1,this._value={flexDirection:"row"},this}get rowReverse(){return this.data.direction="row",this.data.reversed=!0,this._value={flexDirection:"row-reverse"},this}get wrap(){return this._value={flexWrap:"wrap"},this}get noWrap(){return this._value={flexWrap:"nowrap"},this}get wrapReverse(){return this._value={flexWrap:"wrap-reverse"},this}get WRAPPED(){return new V(this,"alignContent",["flex-start","flex-end"],"stretch")}get SELF(){return new Ae(this,"alignSelf",["flex-start","flex-end"],"auto")}shrink(e=1){return this._value={flexShrink:e},this}grow(e=1){return this._value={flexGrow:e},this}basis(e=1){return this._value={flexBasis:e},this}flex(e,t,r){return this._value={flex:[String(e),String(t),r.toString()]},this}}import{f as $}from"shweet";class o extends i{prop="";valFN=s;constructor({prefix:e="",data:t={wh:"",first:""},values:r={}}={}){super({prefix:e,data:t,values:r});this.prop=this.data.wh}get pr100(){return this._value={[this.data.wh]:"100%"},this}get auto(){return this._value={[this.data.wh]:"auto"},this}get screen(){let e=this.data.first;return this._value={[this.data.wh]:$.clamp("100v"+e,"100dv"+e,"100lv"+e)},this}px(e){return this._value={[this.data.wh]:`${e}px`},this}pr(e){return this._value={[this.data.wh]:`${e}%`},this}rm(e){return this._value={[this.data.wh]:e},this}value(e){return this._value={[this.data.wh]:e},this}var(e,t){return this._value={[this.data.wh]:$.var(e,t)},this}}class L extends i{get pr100(){return this._value={height:"100%",width:"100%"},this}get auto(){return this._value={height:"auto",width:"auto"},this}get screen(){return this._value={height:$.clamp("100vh","100dvh","100lvh"),width:$.clamp("100vw","100dvw","100lvw")},this}px(e){return this._value={height:`${e}px`,width:`${e}px`},this}pr(e){return this._value={height:`${e}%`,width:`${e}%`},this}rm(e){return this._value={height:e,width:e},this}value(e){return this._value={height:e,width:e},this}var(e,t){return this._value={height:$.var(e,t),width:$.var(e,t)},this}}import{f as xt}from"shweet";class l extends i{valFN=s;propFN=()=>{return[this.data.mp,this.data.side].join("")};get auto(){return this._value={[this.propFN()]:"auto"},this}px(e){return this._value={[this.propFN()]:`${e}px`},this}rm(e){return this._value={[this.propFN()]:e},this}value(e){return this._value={[this.propFN()]:e},this}var(e,t){return this._value={[this.propFN()]:xt.var(e,t)},this}get TOP(){return new l({values:this._values,data:{mp:this.data.mp,side:"Top"}})}get RIGHT(){return new l({values:this._values,data:{mp:this.data.mp,side:"Right"}})}get LEFT(){return new l({values:this._values,data:{mp:this.data.mp,side:"Left"}})}get BOTTOM(){return new l({values:this._values,data:{mp:this.data.mp,side:"Bottom"}})}get BLOCK(){return new a({values:this._values,data:{bin:this.data.mp+"Block",side:""}})}get INLINE(){return new a({values:this._values,data:{bin:this.data.mp+"Inline",side:""}})}}class a extends i{prop="";valFN=s;constructor({prefix:e="",data:t={bin:"",side:""},values:r={}}={}){super({prefix:e,data:t,values:r});this.prop=[this.data.bin,this.data.side].join("")}px(e){return this._value={[this.data.bin]:`${e}px`},this}pr(e){return this._value={[this.data.bin]:`${e}%`},this}rm(e){return this._value={[this.data.bin]:e},this}get END(){return new a({values:this._values,data:{bin:this.data.bin,side:"End"}})}get START(){return new a({values:this._values,data:{bin:this.data.bin,side:"Start"}})}}import{Medyas as Gt}from"shweet";import{f as Ue,med as R}from"shweet";var I=(e)=>typeof e==="string",B=(e)=>Array.isArray(e);var N=(e)=>{return B(e)?e:[e]};class We{static set i(e){console.info(...N(e))}static set e(e){console.error(...N(e))}static set w(e){console.info(...N(e))}}var z=(e)=>{if(e.startsWith("webkit"))e="-"+e;return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()};var w=Object.entries;var Ke=(e=6,t)=>{if(!t)return Math.floor(Math.random()*e);return Math.round(Math.random()*(t-e)+e)},A=()=>{let e=Object.values(Z),t=Ke(0,e.length-1);return e[t]},Z={aliceblue:["#F0F8FF","#2F4F4F"],antiquewhite:["#FAEBD7","#8B4513"],aqua:["#00FFFF","#008080"],aquamarine:["#7FFFD4","#008B8B"],azure:["#F0FFFF","#191970"],beige:["#F5F5DC","#556B2F"],bisque:["#FFE4C4","#A0522D"],black:["#000000","#FFFFFF"],blanchedalmond:["#FFEBCD","#8B4513"],blue:["#0000FF","#4169E1"],blueviolet:["#8A2BE2","#9932CC"],brown:["#A52A2A","#A0522D"],burlywood:["#DEB887","#CD853F"],cadetblue:["#5F9EA0","#2F4F4F"],chartreuse:["#7FFF00","#32CD32"],chocolate:["#D2691E","#8B4513"],coral:["#FF7F50","#FF6347"],cornflowerblue:["#6495ED","#4682B4"],cornsilk:["#FFF8DC","#B8860B"],crimson:["#DC143C","#8B0000"],cyan:["#00FFFF","#008B8B"],darkblue:["#00008B","#0000CD"],darkcyan:["#008B8B","#48D1CC"],darkgoldenrod:["#B8860B","#DAA520"],darkgray:["#A9A9A9","#696969"],darkgreen:["#006400","#228B22"],darkmagenta:["#8B008B","#800080"],darkorange:["#FF8C00","#D2691E"],darkorchid:["#9932CC","#BA55D3"],darkred:["#8B0000","#B22222"],darksalmon:["#E9967A","#F08080"],darkslategray:["#2F4F4F","#778899"],darkturquoise:["#00CED1","#40E0D0"],deeppink:["#FF1493","#C71585"],deepskyblue:["#00BFFF","#1E90FF"],dimgray:["#696969","#A9A9A9"],dodgerblue:["#1E90FF","#4682B4"],firebrick:["#B22222","#A52A2A"],forestgreen:["#228B22","#006400"],gainsboro:["#DCDCDC","#708090"],ghostwhite:["#F8F8FF","#2F4F4F"],gold:["#FFD700","#B8860B"],goldenrod:["#DAA520","#CD853F"],gray:["#808080","#696969"],green:["#008000","#006400"],honeydew:["#F0FFF0","#3CB371"],hotpink:["#FF69B4","#C71585"],indianred:["#CD5C5C","#A52A2A"],indigo:["#4B0082","#7B68EE"],ivory:["#FFFFF0","#FAFAD2"],khaki:["#F0E68C","#6B8E23"],lavender:["#E6E6FA","#D8BFD8"],lavenderblush:["#FFF0F5","#DB7093"],lawngreen:["#7CFC00","#32CD32"],lemonchiffon:["#FFFACD","#BDB76B"],lightblue:["#ADD8E6","#4682B4"],lightcoral:["#F08080","#CD5C5C"],lightcyan:["#E0FFFF","#5F9EA0"],lightgoldenrodyellow:["#FAFAD2","#BDB76B"],lightgray:["#D3D3D3","#708090"],lightgreen:["#90EE90","#3CB371"],lightskyblue:["#87CEFA","#4682B4"],lightslategray:["#778899","#708090"],lightsteelblue:["#B0C4DE","#5F9EA0"],lightyellow:["#FFFFE0","#BDB76B"],lime:["#00FF00","#228B22"],linen:["#FAF0E6","#8B4513"],maroon:["#800000","#B22222"],mediumaquamarine:["#66CDAA","#008080"],mediumblue:["#0000CD","#00008B"],mediumorchid:["#BA55D3","#9932CC"],mediumseagreen:["#3CB371","#2E8B57"],mediumslateblue:["#7B68EE","#4B0082"],mediumspringgreen:["#00FA9A","#006400"],mediumturquoise:["#48D1CC","#008B8B"],mediumvioletred:["#C71585","#8B008B"],midnightblue:["#191970","#000080"],mintcream:["#F5FFFA","#3CB371"],mistyrose:["#FFE4E1","#DB7093"],moccasin:["#FFE4B5","#CD853F"],navajowhite:["#FFDEAD","#A0522D"],oldlace:["#FDF5E6","#D2B48C"],olive:["#808000","#556B2F"],olivedrab:["#6B8E23","#006400"],orange:["#FFA500","#FF8C00"],orangered:["#FF4500","#FF6347"],orchid:["#DA70D6","#BA55D3"],palegoldenrod:["#EEE8AA","#DAA520"],palegreen:["#98FB98","#3CB371"],paleturquoise:["#AFEEEE","#5F9EA0"],palevioletred:["#DB7093","#C71585"],papayawhip:["#FFEFD5","#8B4513"],peachpuff:["#FFDAB9","#CD853F"],peru:["#CD853F","#A0522D"],pink:["#FFC0CB","#DB7093"],plum:["#DDA0DD","#9932CC"],powderblue:["#B0E0E6","#5F9EA0"],purple:["#800080","#4B0082"],rebeccapurple:["#663399","#4B0082"],red:["#FF0000","#8B0000"],rosybrown:["#BC8F8F","#A52A2A"],royalblue:["#4169E1","#191970"],saddlebrown:["#8B4513","#A0522D"],salmon:["#FA8072","#CD5C5C"],sandybrown:["#F4A460","#CD853F"],seagreen:["#2E8B57","#006400"],seashell:["#FFF5EE","#D2B48C"],sienna:["#A0522D","#8B4513"],silver:["#C0C0C0","#696969"],skyblue:["#87CEEB","#4682B4"],slategray:["#708090","#2F4F4F"],snow:["#FFFAFA","#778899"],springgreen:["#00FF7F","#3CB371"],steelblue:["#4682B4","#191970"],tan:["#D2B48C","#CD853F"],teal:["#008080","#008B8B"],thistle:["#D8BFD8","#DDA0DD"],tomato:["#FF6347","#B22222"],turquoise:["#40E0D0","#00CED1"],violet:["#EE82EE","#9932CC"],wheat:["#F5DEB3","#8B4513"],white:["#FFFFFF","#000000"],whitesmoke:["#F5F5F5","#696969"],yellow:["#FFFF00","#DAA520"],yellowgreen:["#9ACD32","#556B2F"]};class G extends i{prop="";constructor({prefix:e="",data:t={prop:""},values:r={}}={}){super({prefix:e,data:t,values:r});this.prop=this.data.prop}}var Te=(e=!1)=>{let t=Object.values(Z),r=Ke(0,t.length-1),n=t[r];if(e)n.reverse();return R(n[0],{dark:n[1]})};class Me extends G{valFN=(e)=>{let t=Z[String(e)];return R(t[1],{dark:t[0]})};get random(){return this._value={[this.prop]:Te(!0)},this}}class ke extends G{valFN=(e)=>{let t=Z[String(e)];return R(t[0],{dark:t[1]})};get random(){return this._value={[this.prop]:Te()},this}}class d extends G{valFN=(e)=>{return Z[e][0]};color(e){return this._value={[this.prop]:e},this}rgba(e,t,r,n){return this._value={[this.prop]:Ue.rgba(e,t,r,n)},this}get random(){return this._value={[this.prop]:A()[0]},this}get transparent(){return this._value={[this.prop]:"transparent"},this}get inherit(){return this._value={[this.prop]:"inherit"},this}get initial(){return this._value={[this.prop]:"initial"},this}get current(){return this._value={[this.prop]:"currentColor"},this}get AUTOLIGHT(){return new ke({values:this._value,data:{prop:this.data.prop}})}get AUTODARK(){return new Me({values:this._value,data:{prop:this.data.prop}})}get MIX(){return new He({values:this._value,data:{prop:this.data.prop}})}}var u=(e,t,r,n)=>{return{[e]:Ue.colorMix(`in ${t}`,B(r)?r:[r],B(n)?n:[n])}};class He extends i{constructor({prefix:e="",data:t={prop:""},values:r={}}={}){super({prefix:e,data:t,values:r});this.prop=this.data.prop}srgb(e,t){return this._value=u(this.prop,"srgb",e,t),this}srgb_linear(e,t){return this._value=u(this.prop,"srgb-linear",e,t),this}display_p3(e,t){return this._value=u(this.prop,"display-p3",e,t),this}a98_rgb(e,t){return this._value=u(this.prop,"a98-rgb",e,t),this}prophoto_rgb(e,t){return this._value=u(this.prop,"prophoto-rgb",e,t),this}rec2020(e,t){return this._value=u(this.prop,"rec2020",e,t),this}lab(e,t){return this._value=u(this.prop,"lab",e,t),this}oklab(e,t){return this._value=u(this.prop,"oklab",e,t),this}xyz(e,t){return this._value=u(this.prop,"xyz",e,t),this}xyz_d50(e,t){return this._value=u(this.prop,"xyz-d50",e,t),this}xyz_d65(e,t){return this._value=u(this.prop,"xyz-d65",e,t),this}hsl(e,t){return this._value=u(this.prop,"hsl",e,t),this}hwb(e,t){return this._value=u(this.prop,"hwb",e,t),this}lch(e,t){return this._value=u(this.prop,"lch",e,t),this}and(e,t){return this._value=u(this.prop,"and",e,t),this}oklch(e,t){return this._value=u(this.prop,"oklch",e,t),this}}var F=(e,t)=>{let r=["border",e.data.side,"Style"].join("");return e._value={[r]:t},e};class C extends Gt{constructor({prefix:e="",data:t={side:""},values:r={}}={}){super({prefix:e,data:t,values:r});this.width("1px"),this.solid}value(e){let t=["border",this.data.side].join("");return this._value={[t]:e},this}color(e){let t=["border",this.data.side,"Color"].join("");return this._value={[t]:e},this}width(e){let t=["border",this.data.side,"Width"].join("");return this._value={[t]:e},this}image(e,...t){let r=["border",this.data.side,"Image"].join("");return this._value={[r]:[e,...t.map(String)]},this}get solid(){return F(this,"solid")}get dotted(){return F(this,"dotted")}get none(){return F(this,"none")}get hidden(){return F(this,"hidden")}get dashed(){return F(this,"dashed")}get double(){return F(this,"double")}get groove(){return F(this,"groove")}get ridge(){return F(this,"ridge")}get inset(){return F(this,"inset")}get outset(){return F(this,"outset")}get TOP(){return new C({values:this._values,data:{side:"Top"}})}get RIGHT(){return new C({values:this._values,data:{side:"Right"}})}get LEFT(){return new C({values:this._values,data:{side:"Left"}})}get BOTTOM(){return new C({values:this._values,data:{side:"Bottom"}})}get b1(){let e=["border",this.data.side,""].join("");return this._value={[e]:"1px solid currentColor"},this}get bRed(){let e=["border",this.data.side,""].join("");return this._value={[e]:"1px solid red"},this}get bRandom(){let e=["border",this.data.side,""].join("");return this._value={[e]:["1px solid",A()[0]]},this}get COLOR(){let e=["border",this.data.side,"Color"].join("");return new d({values:this._value,data:{prop:e}})}}function W(e){return new Proxy(this,{get(t,r){let n=Number(r);if(n)t._value={[e]:n};return t}})}class P extends i{prop="borderRadius";valFN=s;v(e){this._value={borderRadius:e}}get tL(){return W.call(this,"borderTopLeftRadius")}get tR(){return W.call(this,"borderTopRightRadius")}get bR(){return W.call(this,"borderBottomRightRadius")}get bL(){return W.call(this,"borderBottomLeftRadius")}x(e){return this._value={borderTopLeftRadius:e,borderTopRightRadius:e},this}y(e){return this._value={borderBottomLeftRadius:e,borderBottomRightRadius:e},this}get b0(){return this._value={borderRadius:0},this}get b0p5(){return this._value={borderRadius:0.5},this}get b1(){return this._value={borderRadius:1},this}get b1p5(){return this._value={borderRadius:1.5},this}get b2(){return this._value={borderRadius:2},this}pr(e){return this._value={[this.prop]:`${e}%`},this}px(e){return this._value={[this.prop]:`${e}px`},this}rm(e){return this._value={[this.prop]:e},this}value(e){return this._value={[this.prop]:e},this}}import{Medyas as Wt,f as jt}from"shweet";class O extends i{prop="cursor"}class v extends i{prop="display"}class ee extends i{prop="position"}class E extends Wt{xy="";constructor({prefix:e="",data:t={xy:""},values:r={}}={}){super({prefix:e,data:t,values:r});this.xy=["overflow",t.xy].join("")}get visible(){return this._value={[this.xy]:"visible"},this}get hidden(){return this._value={[this.xy]:"hidden"},this}get scroll(){return this._value={[this.xy]:"scroll"},this}get auto(){return this._value={[this.xy]:"auto"},this}get X(){return new E({prefix:this._prefix,values:this._values,data:{xy:"X"}})}get Y(){return new E({prefix:this._prefix,values:this._values,data:{xy:"Y"}})}}class te extends i{prop="opacity";valFN=(e)=>{let t=Number(e);if(t&&t>1)return`${e}%`;return e};pr(e){return this._value={opacity:`${e}%`},this}}class re extends i{prop="zIndex"}class ie extends i{prop="whiteSpace"}class j extends i{get visible(){return this._value={visibility:"visible"},this}get hidden(){return this._value={visibility:"hidden"},this}get collapse(){return this._value={visibility:"collapse"},this}}class ne extends i{prop="verticalAlign";valFN=s;px(e){return this._value={verticalAlign:`${e}px`},this}pr(e){return this._value={verticalAlign:`${e}%`},this}}class U extends i{get select(){return this._value={userSelect:"auto"},this}get none(){return this._value={userSelect:"none"},this}}class K extends i{get auto(){return this._value={pointerEvents:"auto"},this}get none(){return this._value={pointerEvents:"none"},this}}class se extends i{prop="lineHeight";valFN=s}class he extends i{get auto(){return this._value={overscrollBehavior:"auto"},this}get contain(){return this._value={overscrollBehavior:"contain"},this}get none(){return this._value={overscrollBehavior:"none"},this}get XAuto(){return this._value={overscrollBehaviorX:"auto"},this}get XContain(){return this._value={overscrollBehaviorX:"contain"},this}get XNone(){return this._value={overscrollBehaviorX:"none"},this}get YAuto(){return this._value={overscrollBehaviorY:"auto"},this}get YContain(){return this._value={overscrollBehaviorY:"contain"},this}get YNone(){return this._value={overscrollBehaviorY:"none"},this}get INLINEAuto(){return this._value={overscrollBehaviorInline:"auto"},this}get INLINEContain(){return this._value={overscrollBehaviorInline:"contain"},this}get INLINENone(){return this._value={overscrollBehaviorInline:"none"},this}get BLOCKAuto(){return this._value={overscrollBehaviorBlock:"auto"},this}get BLOCKContain(){return this._value={overscrollBehaviorBlock:"contain"},this}get BLOCKNone(){return this._value={overscrollBehaviorBlock:"none"},this}var(e,t){return this._value={overscrollBehavior:jt.var(e,t)},this}}import{f as Xe}from"shweet";var Ut={none:["none"],all:["all"],colors:["background-color","border-color","color","fill","stroke"],font:["font","color"],background:["background"],opacity:["opacity"],shadow:["box-shadow"],transform:["transform"],dimension:["height","width","margin","padding"]};class Ye extends i{prop="transitionProperty";properties=new Set;valFN=(e)=>{return Ut[e].forEach((r)=>{this.properties.add(r)}),[...this.properties]};property(...e){return e.forEach((t)=>{this.properties.add(t)}),this._value={transitionProperty:[...this.properties]},this}}class Ve extends i{propFN=()=>{return this.data.prop};cubicBezier(e,t,r,n){return this._value={[this.propFN()]:Xe.cubicBezier(e,t,r,n)},this}steps(e,t){return this._value={[this.propFN()]:Xe.steps(e,t)},this}}class ue extends i{valFN=(e)=>{return`${e}s`};propFN=()=>{return this.data.prop}}class T{isAnim;constructor(e=!1){this.isAnim=e}get TIMING(){return new Ve({data:{prop:this.isAnim?"animationTimingFunction":"transitionTimingFunction"}})}get DELAY(){return new ue({data:{prop:this.isAnim?"animationDelay":"transitionDelay"}})}get DURATION(){return new ue({data:{prop:this.isAnim?"animationDuration":"transitionDuration"}})}}class de extends T{get PROPERTY(){return new Ye}}import{Medyas as Se,f}from"shweet";class Le extends Se{constructor({prefix:e="",data:t={kf:{}},values:r={}}){super({prefix:e,data:t,values:r})}get bounce(){return this._value={animation:["bounce","1s","infinite"]},this.data.kf.bounce={"10%, 100%":{transform:f.translateY("0%"),animationTimingFunction:f.cubicBezier(0.8,0,1,1)},"50%":{transform:f.translateY("20%"),animationTimingFunction:f.cubicBezier(0,0,0.2,1)}},this}get ping(){return this._value={animation:["ping","1s",f.cubicBezier(0,0,0.2,1),"infinite"]},this.data.kf.ping={"100%, 75%":{transform:f.scale(1.5),opacity:0}},this}get pulse(){return this._value={animation:["pulse","1s",f.cubicBezier(0.4,0,0.6,1),"infinite"]},this.data.kf.pulse={"50%":{opacity:0.5}},this}get spin(){return this._value={animation:["spin","1s","linear","infinite"]},this.data.kf.spin={"100%":{transform:f.rotate(360)}},this}}class Ie extends i{prop="animationDirection"}class Ne extends i{prop="animationFillMode"}class Re extends i{prop="animationIterationCount";get infinite(){return this._value={[this.prop]:"infinite"},this}}class oe extends Se{constructor({prefix:e="",data:t={},values:r={}}={}){super({prefix:e,data:t,values:r})}animation(e){return this._value={animation:e},this}name(e){return this._value={animationName:e},this}duration(e){return this._value={animationDuration:e},this}get paused(){return this._value={animationPlayState:"paused"},this}get running(){return this._value={animationPlayState:"running"},this}}class M extends T{SET(e){return new Le({data:{kf:e}})}name(e){return new oe().name(e)}animation(e){return new oe().animation(e)}get DIRECTION(){return new Ie}get FILL(){return new Ne}get ITERATION(){return new Re}}import{f as b}from"shweet";class Pe extends i{prop="backgroundAttachment"}class Oe extends i{prop="backgroundBlendMode"}class le extends i{valFN=(e)=>{if(this.prop==="backgroundClip"&&e==="text")this._value={webkitBackgroundClip:e};return e};constructor({prefix:e="",data:t={name:""},values:r={}}={}){super({prefix:e,data:t,values:r});this.prop=this.data.name}}class ve extends i{prop="backgroundSize";valFN=s;get auto(){let e=[this.data.mp,this.data.side].join("");return this._value={[this.prop]:"auto"},this}get cover(){return this._value={[this.prop]:"cover"},this}get contain(){return this._value={[this.prop]:"contain"},this}px(e){return this._value={[this.prop]:`${e}px`},this}rm(e){return this._value={[this.prop]:e},this}value(e){return this._value={[this.prop]:e},this}}class et extends i{prop="backgroundPosition";replacer=" ";value(e){return this._value={[this.prop]:e},this}XY(e,t){return this._value={[this.prop]:[e,t]},this}}class tt extends i{prop="backgroundImage";url(e){return this._value={[this.prop]:b.url(e)},this}conic(...e){return this._value={[this.prop]:b.conicGradient(...e)},this}repeatingConic(...e){return this._value={[this.prop]:b.repeatingConicGradient(...e)},this}linear(...e){return this._value={[this.prop]:b.linearGradient(...e)},this}repeatingLinear(...e){return this._value={[this.prop]:b.repeatingLinearGradient(...e)},this}radial(...e){return this._value={[this.prop]:b.radialGradient(...e)},this}repeatingRadial(...e){return this._value={[this.prop]:b.repeatingRadialGradient(...e)},this}get none(){return this._value={[this.prop]:"none"},this}value(e){return this._value={[this.prop]:e},this}var(e,t){return this._value={[this.prop]:b.var(e,t)},this}}class ce{get ATTACH(){return new Pe}get BLEND(){return new Oe}get CLIP(){return new le({data:{name:"backgroundClip"}})}get ORIGIN(){return new le({data:{name:"backgroundOrigin"}})}get COLOR(){return new d({data:{prop:"backgroundColor"}})}get SIZE(){return new ve}get IMAGE(){return new tt}get POSITION(){return new et}color(e){return new d({data:{prop:"backgroundColor"}}).color(e)}}class rt extends i{prop="textAlign"}var Kt=["none","underline","overline","line_through"];class it extends i{propFN=(e)=>{if(Kt.includes(e))return"textDecorationLine";return"textDecorationStyle"};get COLOR(){return new d({values:this._value,data:{prop:"textDecorationColor"}})}thickness(e){return this._value={textDecorationThickness:e},this}get auto(){return this._value={textDecorationThickness:"auto"},this}get font(){return this._value={textDecorationThickness:"from-font"},this}}var Tt=["over","under","left","right"];class nt extends i{prop="textEmphasis";propFN=(e)=>{if(Tt.includes(e))return"textEmphasisPosition";return"textEmphasisStyle"};char(e){return this._value={textEmphasisStyle:`"${e}"`},this}get COLOR(){return new d({values:this._value,data:{prop:"textEmphasisColor"}})}}class st extends i{prop="textIndent";valFN=s}class ht extends i{prop="textJustify"}class ut extends i{prop="textOrientation"}var Mt=["auto","under","from_font","left","right"];class dt extends i{propFN=(e)=>{if(Mt.includes(e))return"textUnderlinePosition";return"textUnderlineOffset"};valFN=s;get autoOffset(){return this._value={textUnderlineOffset:"auto"},this}}class ae extends i{get ALIGN(){return new rt}get DECOR(){return new it}get EMPHASIS(){return new nt}get INDENT(){return new st}get JUSTIFY(){return new ht}get ORIENTATION(){return new ut}get UNDERLINE(){return new dt}get clip(){return this._value={textOverflow:"clip"},this}get ellipsis(){return this._value={textOverflow:"ellipsis"},this}overflow(e){return this._value={textOverflow:`"${e}"`},this}decor(e){return this._value={textDecoration:e},this}get capitalize(){return this._value={textTransform:"capitalize"},this}get uppercase(){return this._value={textTransform:"uppercase"},this}get lowercase(){return this._value={textTransform:"lowercase"},this}get noTransform(){return this._value={textTransform:"none"},this}get COLOR(){return new d({values:this._value,data:{prop:"color"}})}}import{Medyas as kt}from"shweet";var g=(e,t)=>{return e._value={outlineStyle:t},e};class Fe extends kt{constructor({prefix:e="",data:t={},values:r={}}={}){super({prefix:e,data:t,values:r})}color(e){return this._value={outlineColor:e},this}width(e){return this._value={outlineWidth:e},this}get solid(){return g(this,"solid")}get dotted(){return g(this,"dotted")}get none(){return g(this,"none")}get hidden(){return g(this,"hidden")}get dashed(){return g(this,"dashed")}get double(){return g(this,"double")}get groove(){return g(this,"groove")}get ridge(){return g(this,"ridge")}get inset(){return g(this,"inset")}get outset(){return g(this,"outset")}get b1(){return this._value={outline:"1px solid currentColor"},this}get bRed(){return this._value={outline:"1px solid red"},this}get bRandom(){return this._value={outline:["1px solid",A()[0]]},this}get COLOR(){return new d({values:this._value,data:{prop:"outlineColor"}})}off(e){return x(this,e)}get off0(){return x(this,0)}get off1(){return x(this,1)}get off2(){return x(this,2)}get off3(){return x(this,3)}get off4(){return x(this,4)}get off5(){return x(this,5)}}var x=(e,t)=>{return e._value={outlineOffset:t},e};import{Medyas as ot}from"shweet";var p=(e,t)=>{return e._value={columnRuleStyle:t},e};class lt extends ot{constructor({prefix:e="",data:t={},values:r={}}={}){super({prefix:e,data:t,values:r})}color(e){return this._value={columnRuleColor:e},this}width(e){return this._value={columnRuleWidth:e},this}get solid(){return p(this,"solid")}get dotted(){return p(this,"dotted")}get none(){return p(this,"none")}get hidden(){return p(this,"hidden")}get dashed(){return p(this,"dashed")}get double(){return p(this,"double")}get groove(){return p(this,"groove")}get ridge(){return p(this,"ridge")}get inset(){return p(this,"inset")}get outset(){return p(this,"outset")}get COLOR(){return new d({values:this._value,data:{prop:"columnRuleColor"}})}}class ge extends i{constructor({prefix:e="",data:t={prop:""},values:r={}}={}){super({prefix:e,data:t,values:r});this.prop=this.data.prop}}class pe extends ot{constructor({prefix:e="",data:t={},values:r={}}={}){super({prefix:e,data:t,values:r})}width(e){return this._value={columnRuleWidth:e},this}get COUNT(){return new ge({values:this._value,data:{prop:"columnCount"}})}count(e){return this._value={columnCount:e},this}get GAP(){return new ge({values:this._value,data:{prop:"columnGap"}})}gap(e){return this._value={columnGap:e},this}get balance(){return this._value={columnFill:"balance"},this}get auto(){return this._value={columnFill:"auto"},this}get span(){return this._value={columnSpan:"all"},this}get noSpan(){return this._value={columnSpan:"none"},this}rule(e){return this._value={columnRule:e},this}get RULE(){return new lt({values:this._value})}}import{f as me}from"shweet";class k extends i{origin(...e){return this._value={transformOrigin:e},this}get flat(){return this._value={transformStyle:"flat"},this}get preserve3d(){return this._value={transformStyle:"preserve-3d"},this}get none(){return this._value={transform:"none"},this}transform(e){let t=[];if(Object.entries(e).forEach(([r,n])=>{if(r in me){let h=me[r];t.push(h(n))}}),t.length)this._value={transform:t};return this}var(e,t){return this._value={transform:me.var(e,t)},this}}class _e extends i{prop="perspective";valFN=s;get none(){return this._value={perspective:"none"},this}x(e){return this._value={perspectiveOrigin:e},this}y(e){return this._value={perspectiveOrigin:e},this}}var Ht=["break_all","keep_all"];class ye extends i{propFN=(e)=>{if(Ht.includes(e))return"wordBreak";return"wordSpacing"};valFN=s;get normalBreak(){return this._value={wordBreak:"normal"},this}get normalWrap(){return this._value={wordWrap:"normal"},this}get break(){return this._value={wordWrap:"break-word"},this}}class Be extends i{prop="listStyleType";image(e){return this._value={listStyleImage:e},this}get noImage(){return this._value={listStyleImage:"none"},this}get inside(){return this._value={listStylePosition:"inside"},this}get outside(){return this._value={listStylePosition:"outside"},this}}import{f as ct}from"shweet";class at extends i{prop="fontSize";valFN=s;px(e){return this._value={[this.prop]:`${e}px`},this}pr(e){return this._value={[this.prop]:`${e}%`},this}rm(e){return this._value={[this.prop]:e},this}value(e){return this._value={[this.prop]:e},this}var(e,t){return this._value={[this.prop]:ct.var(e,t)},this}}class fe extends i{font(e){return this._value={font:e},this}var(e,t){return this._value={font:ct.var(e,t)},this}stretch(e){return this._value={fontStretch:e},this}family(e){return this._value={fontFamily:e},this}sizeAdjust(e){return this._value={fontSizeAdjust:e},this}get arial(){return this._value={fontFamily:"Arial, Helvetica, sans-serif"},this}get brushScript(){return this._value={fontFamily:'"Brush Script MT", cursive'},this}get comicSans(){return this._value={fontFamily:'"Comic Sans MS", cursive, sans-serif'},this}get courier(){return this._value={fontFamily:'"Courier New", Courier, monospace'},this}get georgia(){return this._value={fontFamily:'Georgia, "Times New Roman", serif'},this}get google(){return this._value={fontFamily:'"Google Sans Mono", monospace'},this}get monaco(){return this._value={fontFamily:'Monaco, Consolas, "Lucida Console", monospace'},this}get palatino(){return this._value={fontFamily:'"Palatino Linotype", "Book Antiqua", Palatino, serif'},this}get system(){return this._value={fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'},this}get timesNew(){return this._value={fontFamily:'"Times New Roman", Times, serif'},this}get trebuchet(){return this._value={fontFamily:'"Trebuchet MS", Tahoma, sans-serif'},this}get verdana(){return this._value={fontFamily:"Verdana, Geneva, sans-serif"},this}get normalStretch(){return this._value={fontStretch:"normal"},this}get normalStyle(){return this._value={fontStyle:"normal"},this}get italic(){return this._value={fontStyle:"italic"},this}get oblique(){return this._value={fontStyle:"oblique"},this}get normalVariant(){return this._value={fontVariant:"normal"},this}get smallCaps(){return this._value={fontVariant:"small-caps"},this}caps(e){return this._value={fontVariantCaps:e},this}weight(e){return this._value={fontWeight:e},this}get normalWeight(){return this._value={fontWeight:"normal"},this}get bold(){return this._value={fontWeight:"bold"},this}get bolder(){return this._value={fontWeight:"bolder"},this}get lighter(){return this._value={fontWeight:"lighter"},this}get SIZE(){return new at({values:this._value})}}import{Value as Ft,f as Xt}from"shweet";var H=(e)=>{let{x:t,y:r,blur:n,spread:h,color:c,inset:D}=e;return Ft([t,r,n,h,c,D?"inset":void 0],{rem:!0})};class be extends i{shadows=new Set;value(e){return this.shadows.add(Ft(e,{rem:!0})),this._value={boxShadow:[...this.shadows].join(", ")},this}set(e){let t=H(e);return this.shadows.add(t),this._value={boxShadow:[...this.shadows].join(", ")},this}get none(){return this._value={boxShadow:"none"},this}var(e,t){return this._value={boxShadow:Xt.var(e,t)},this}}class De extends i{get slice(){return this._value={webkitBoxDecorationBreak:"slice",boxDecorationBreak:"slice"},this}get clone(){return this._value={webkitBoxDecorationBreak:"clone",boxDecorationBreak:"clone"},this}get content(){return this._value={boxSizing:"content-box"},this}get border(){return this._value={boxSizing:"border-box"},this}}import{f as Yt}from"shweet";class we extends i{get MARGIN(){return new l({values:this._value,data:{mp:"scrollMargin",side:""}})}get PADDING(){return new l({values:this._value,data:{mp:"scrollPadding",side:""}})}get SNAP(){return new gt({values:this._value,data:{mp:"scrollPadding",side:""}})}get auto(){return this._value={scrollBehavior:"auto"},this}get smooth(){return this._value={scrollBehavior:"smooth"},this}var(e,t){return this._value={scrollBehavior:Yt.var(e,t)},this}}class gt extends i{get normalStop(){return this._value={scrollSnapStop:"normal"},this}get alwaysStop(){return this._value={scrollSnapStop:"always"},this}get noType(){return this._value={scrollSnapType:"none"},this}get x(){return this._value={scrollSnapType:"x"},this}get y(){return this._value={scrollSnapType:"y"},this}get block(){return this._value={scrollSnapType:"block"},this}get inline(){return this._value={scrollSnapType:"inline"},this}get both(){return this._value={scrollSnapType:"both"},this}get mandatory(){return this._value={scrollSnapType:"mandatory"},this}get proximity(){return this._value={scrollSnapType:"proximity"},this}get none(){return this._value={scrollSnapAlign:"none"},this}get start(){return this._value={scrollSnapAlign:"start"},this}get end(){return this._value={scrollSnapAlign:"end"},this}get center(){return this._value={scrollSnapAlign:"center"},this}align(e){return this._value={scrollSnapAlign:e},this}type(e){return this._value={scrollSnapAlign:e},this}}import{Value as q}from"shweet";class xe extends i{prop="";constructor({prefix:e="",data:t={aljust:"justifyContent",_auto:"auto"},values:r={}}={}){super({prefix:e,data:t,values:r});this.prop=this.data.aljust}get start(){return this._value={[this.prop]:"flex-start"},this}get center(){return this._value={[this.prop]:"center"},this}get end(){return this._value={[this.prop]:"flex-end"},this}get none(){return this._value={[this.prop]:"none"},this}}class Ce extends xe{get around(){return this._value={[this.prop]:"space-around"},this}get between(){return this._value={[this.prop]:"space-between"},this}get even(){return this._value={[this.prop]:"space-evenly"},this}get SELF(){let e=z(this.data.aljust).split("-")[0];return new qe({values:this._value,data:{aljust:`${e}Self`,_auto:"auto"}})}}class qe extends xe{get stretch(){return this._value={[this.prop]:"stretch"},this}get baseline(){return this._value={[this.prop]:"baseline"},this}get auto(){return this._value={[this.prop]:this.data._auto},this}}class pt extends i{prop="gridTemplate";get none(){return this._value={[this.prop]:"none"},this}get noArea(){return this._value={gridTemplateAreas:"none"},this}get noColumns(){return this._value={gridTemplateColumns:"none"},this}get noRows(){return this._value={gridTemplateRows:"none"},this}areas(...e){return this._value={gridTemplateAreas:q(e.map((t)=>q(t.map((r)=>r?r:"."))),{quote:!0})},this}col(...e){return this._value={gridTemplateColumns:e},this}row(...e){return this._value={gridTemplateRows:e},this}}class mt extends i{prop="gridTemplate";col(...e){return this._value={gridAutoColumns:e},this}row(...e){return this._value={gridAutoRows:e},this}get rowFlow(){return this._value={gridAutoFlow:"row"},this}get colFlow(){return this._value={gridAutoFlow:"column"},this}get dense(){return this._value={gridAutoFlow:"dense"},this}get rowDense(){return this._value={gridAutoFlow:"row dense"},this}get colDense(){return this._value={gridAutoFlow:"column dense"},this}}var y=(e,t,r="gap")=>{return e._value={[r]:t},e};class _t extends i{prop="gap";valFN=s}class yt extends i{constructor({prefix:e="",data:t={},values:r={}}={}){super({prefix:e,data:t,values:r})}gap(e){return y(this,e)}get gap0(){return y(this,0)}get gap1(){return y(this,1)}get gap2(){return y(this,2)}get gap3(){return y(this,3)}get gap4(){return y(this,4)}get gap5(){return y(this,5)}rowGap(e){return y(this,e,"rowGap")}colGap(e){return y(this,e,"columnGap")}get GAP(){return new _t({values:this._value})}}class $e extends yt{constructor({prefix:e="",data:t={},values:r={}}={}){super({prefix:e,data:t,values:r});if(!e)this._value={display:"grid"}}get ALIGN(){return new Ce({values:this._value,data:{aljust:"alignContent",_auto:"flex-start"}})}get JUSTIFY(){return new Ce({values:this._value})}get TEMPLATE(){return new pt({values:this._value})}get AUTO(){return new mt({values:this._value})}get SELF(){return new qe({values:this._value,data:{aljust:"placeSelf",_auto:"auto"}})}grid(e){return this._value={grid:e},this}template(e,t){let r=q(e,{rem:!0}),n=q(t,{rem:!0});return this._value={gridArea:n?r+" / "+n:r},this}area(e){let t="";if(I(e))t=e;else{let{rowS:r,rowE:n,colS:h,colE:c}=e;t=q([r,h,n,c],{delimeter:" / "})}return this._value={gridArea:t},this}col(e,t){return this._value={gridColumn:q([e,"/",t])},this}colStart(e){return this._value={gridColumnStart:e},this}colEnd(e){return this._value={gridColumnStart:e},this}row(e,t){return this._value={gridRow:q([e,"/",t])},this}rowStart(e){return this._value={gridRow:e},this}rowEnd(e){return this._value={gridRow:e},this}get autoColumn(){return this._value={gridColumn:"auto / auto"},this}}import{f as m}from"shweet";class ze extends i{filters=new Set;prop="filter";get none(){return this._value={[this.prop]:"none"},this}filter(e={}){return w(e).forEach(([t,r])=>{if(t==="dropShadow"){let n=H(r);this.filters.add(m.dropShadow(n))}else if(t==="url")this.filters.add(m.url(r));else if(t==="blur")this.filters.add(m.blur(`${r}px`));else if(t==="hueRotate")this.filters.add(m.hueRotate(r));else{let n=m[t];if(n)this.filters.add(n(`${r}%`))}}),this._value={[this.prop]:[...this.filters]},this}}class Qe extends i{filters=new Set;get none(){return this._value={backdropFilter:"none",webkitBackdropFilter:"none"},this}filter(e={}){return w(e).forEach(([t,r])=>{if(t==="dropShadow"){let n=H(r);this.filters.add(m.dropShadow(n))}else if(t==="url")this.filters.add(m.url(r));else if(t==="blur")this.filters.add(m.blur(`${r}px`));else if(t==="hueRotate")this.filters.add(m.hueRotate(r));else{let n=m[t];if(n)this.filters.add(n(`${r}%`))}}),this._value={backdropFilter:[...this.filters],webkitBackdropFilter:[...this.filters]},this}}class X{VARS(e){return Object.entries(e).reduce((t,[r,n])=>{return t[`--${z(r)}`]=n,t},{})}get VAR(){return new Proxy(this,{get(e,t,r){let n=e[t];if(n)return n;return Bt.var(t)}})}optVAR(e){return new Proxy(this,{get(t,r,n){let h=t[r];if(h)return h;return Bt.var(r,e)}})}}class ft{static VARS(e){return new X().VARS(e)}static optVAR(e){return new X().optVAR(e)}static get VAR(){return new X().VAR}static get visible(){return new j().visible}static get hidden(){return new j().hidden}static get select(){return new U().select}static get noSelect(){return new U().none}static get pointer(){return new K().auto}static get noPointer(){return new K().none}}class bt extends ft{static get TRANSITION(){return new de}static get ANIMATION(){return new M(!0)}static animation(e){return new M(!0).animation(e)}}class Dt extends bt{static get BG(){return new ce}static get COLOR(){return new d({data:{prop:"color"}})}static get TEXT(){return new ae}static get FONT(){return new fe}static get FILTER(){return new ze}static get BACKDROP(){return new Qe}static get VALIGN(){return new ne}static get WORD(){return new ye}static get CURSOR(){return new O}static get DISPLAY(){return new v}static get POSITION(){return new ee}static get RADIUS(){return new P}static get BORDER(){return new C}static get OUTLINE(){return new Fe}static get COLUMN(){return new pe}static get OVERFLOW(){return new E}static get OPACITY(){return new te}static get ZIndex(){return new re}static get LINE(){return new se}static get WHITESPACE(){return new ie}}class Vt extends Dt{static get FLEX(){return new S}static get GRID(){return new $e}static get HW(){return new L}static get WIDTH(){return new o({data:{wh:"width",first:""}})}static get HEIGHT(){return new o({data:{wh:"height",first:""}})}static get TOP(){return new o({data:{wh:"top",first:""}})}static get LEFT(){return new o({data:{wh:"left",first:""}})}static get RIGHT(){return new o({data:{wh:"right",first:""}})}static get BOTTOM(){return new o({data:{wh:"bottom",first:""}})}static get MAX(){return{get WIDTH(){return new o({data:{wh:"maxWidth",first:"w"}})},get HEIGHT(){return new o({data:{wh:"maxHeight",first:"h"}})},get BLOCK(){return new a({data:{bin:"maxBlockSize",side:""}})},get INLINE(){return new a({data:{bin:"maxInlineSize",side:""}})}}}static get MIN(){return{get WIDTH(){return new o({data:{wh:"minWidth",first:"w"}})},get HEIGHT(){return new o({data:{wh:"minHeight",first:"h"}})},get BLOCK(){return new a({data:{bin:"minBlockSize",side:""}})},get INLINE(){return new a({data:{bin:"minInlineSize",side:""}})}}}static get MARGIN(){return new l({data:{mp:"margin",side:""}})}static get PADDING(){return new l({data:{mp:"padding",side:""}})}static get TRANSFORM(){return new k}static get PERSPECTIVE(){return new _e}static transform(e){return new k().transform(e)}static get LIST(){return new Be}static get BOX(){return new De}static get SHADOW(){return new be}static get SCROLL(){return new we}static get OVERSCROLL(){return new he}}export{We as log,Vt as $};
|
|
2
|
+
import{f as _t}from"shweet";import{Medyas as wt,f as xt}from"shweet";var s=(e)=>{let t=Number(e);if(t)return t;return e};class i extends wt{prop="";propFN;valFN;string=!0;replacer="-";constructor({prefix:e="",data:t={},values:r={}}={}){super({prefix:e,data:t,values:r});return new Proxy(this,{get(n,h,c){if(h in n&&typeof n[h]!=="undefined")return n[h];else if(n.prop||n.propFN){let D=n.prop;if(n.propFN)D=n.propFN(h);let A=h;if(n.string)A=h.replaceAll("_",n.replacer);if(n.valFN)A=n.valFN(A);n._value={[D]:A}}return c},set(n,h,c){if(h in n&&typeof n[h]!=="function")return n[h]=c,!0;return!1}})}var(e,t){if(this.prop)this._value={[this.prop]:xt.var(e,t)};return this}}class V{TH;prop;startEnd;_none;_auto;constructor(e,t,r=["flex-start","flex-end"],n="flex-start",h="auto"){this.TH=e;this.prop=t;this.startEnd=r;this._none=n;this._auto=h}get start(){return this.TH._value={[this.prop]:this.startEnd[0]},this.TH}get center(){return this.TH._value={[this.prop]:"center"},this.TH}get end(){return this.TH._value={[this.prop]:this.startEnd[1]},this.TH}get none(){return this.TH._value={[this.prop]:this._none},this.TH}}class k extends V{get around(){return this.TH._value={[this.prop]:"space-around"},this.TH}get between(){return this.TH._value={[this.prop]:"space-between"},this.TH}get even(){return this.TH._value={[this.prop]:"space-evenly"},this.TH}}class Ze extends V{get stretch(){return this.TH._value={[this.prop]:"stretch"},this.TH}get baseline(){return this.TH._value={[this.prop]:"baseline"},this.TH}get auto(){return this.TH._value={[this.prop]:this._auto},this.TH}}var Z=(e,t,r="justifyContent",n=["flex-start","flex-end"])=>{let{direction:h,reversed:c}=e.data,D=h==="row";if(D)e._value={alignItems:t};else{if(c)n.reverse();e._value={alignItems:t}}if(D&&c)n.reverse();return new k(e,r,n,n[0])},y=(e,t,r="gap")=>{return e._value={[r]:t},e};class Ee extends i{prop="gap";valFN=s}class Je extends i{constructor({prefix:e="",data:t={direction:"row",reversed:!1},values:r={}}={}){super({prefix:e,data:t,values:r})}gap(e){return y(this,e)}get gap0(){return y(this,0)}get gap1(){return y(this,1)}get gap2(){return y(this,2)}get gap3(){return y(this,3)}get gap4(){return y(this,4)}get gap5(){return y(this,5)}rowGap(e){return y(this,e,"rowGap")}colGap(e){return y(this,e,"columnGap")}get GAP(){return new Ee({values:this._value})}}class Ae extends i{prop="alignItems";get baseline(){return this._value={[this.prop]:"baseline"},this}get stretch(){return this._value={[this.prop]:"stretch"},this}get center(){return this._value={[this.prop]:"center"},this}get start(){return this._value={[this.prop]:"flex-start"},this}get end(){return this._value={[this.prop]:"flex-end"},this}}class Ge extends i{prop="justifyContent";get start(){return this._value={[this.prop]:"flex-start"},this}get center(){return this._value={[this.prop]:"center"},this}get end(){return this._value={[this.prop]:"flex-end"},this}get none(){return this._value={[this.prop]:"none"},this}get around(){return this._value={[this.prop]:"space-around"},this}get between(){return this._value={[this.prop]:"space-between"},this}get even(){return this._value={[this.prop]:"space-evenly"},this}}class S extends Je{constructor({prefix:e="",data:t={direction:"row",reversed:!1},values:r={}}={}){super({prefix:e,data:t,values:r});if(!e)this._value={display:"flex"}}get ALIGN(){return new Ae({values:this._value})}get JUSTIFY(){return new Ge({values:this._value})}get BASELINE(){return Z(this,"baseline")}get STRETCH(){return Z(this,"stretch")}get CENTER(){return Z(this,"center")}get START(){return Z(this,"flex-start")}get END(){return Z(this,"flex-end")}get column(){return this.data.direction="column",this.data.reversed=!1,this._value={flexDirection:"column"},this}get columnReverse(){return this.data.direction="column",this.data.reversed=!0,this._value={flexDirection:"column-reverse"},this}get row(){return this.data.direction="row",this.data.reversed=!1,this._value={flexDirection:"row"},this}get rowReverse(){return this.data.direction="row",this.data.reversed=!0,this._value={flexDirection:"row-reverse"},this}get wrap(){return this._value={flexWrap:"wrap"},this}get noWrap(){return this._value={flexWrap:"nowrap"},this}get wrapReverse(){return this._value={flexWrap:"wrap-reverse"},this}get WRAPPED(){return new k(this,"alignContent",["flex-start","flex-end"],"stretch")}get SELF(){return new Ze(this,"alignSelf",["flex-start","flex-end"],"auto")}shrink(e=1){return this._value={flexShrink:e},this}grow(e=1){return this._value={flexGrow:e},this}basis(e=1){return this._value={flexBasis:e},this}flex(e,t,r){return this._value={flex:[String(e),String(t),r.toString()]},this}}import{f as $}from"shweet";class o extends i{prop="";valFN=s;constructor({prefix:e="",data:t={wh:"",first:""},values:r={}}={}){super({prefix:e,data:t,values:r});this.prop=this.data.wh}get pr100(){return this._value={[this.data.wh]:"100%"},this}get auto(){return this._value={[this.data.wh]:"auto"},this}get screen(){let e=this.data.first;return this._value={[this.data.wh]:$.clamp("100v"+e,"100dv"+e,"100lv"+e)},this}px(e){return this._value={[this.data.wh]:`${e}px`},this}pr(e){return this._value={[this.data.wh]:`${e}%`},this}rm(e){return this._value={[this.data.wh]:e},this}value(e){return this._value={[this.data.wh]:e},this}var(e,t){return this._value={[this.data.wh]:$.var(e,t)},this}}class L extends i{get pr100(){return this._value={height:"100%",width:"100%"},this}get auto(){return this._value={height:"auto",width:"auto"},this}get screen(){return this._value={height:$.clamp("100vh","100dvh","100lvh"),width:$.clamp("100vw","100dvw","100lvw")},this}px(e){return this._value={height:`${e}px`,width:`${e}px`},this}pr(e){return this._value={height:`${e}%`,width:`${e}%`},this}rm(e){return this._value={height:e,width:e},this}value(e){return this._value={height:e,width:e},this}var(e,t){return this._value={height:$.var(e,t),width:$.var(e,t)},this}}import{f as Ct}from"shweet";class l extends i{valFN=s;propFN=()=>{return[this.data.mp,this.data.side].join("")};get auto(){return this._value={[this.propFN()]:"auto"},this}px(e){return this._value={[this.propFN()]:`${e}px`},this}rm(e){return this._value={[this.propFN()]:e},this}value(e){return this._value={[this.propFN()]:e},this}var(e,t){return this._value={[this.propFN()]:Ct.var(e,t)},this}get TOP(){return new l({values:this._values,data:{mp:this.data.mp,side:"Top"}})}get RIGHT(){return new l({values:this._values,data:{mp:this.data.mp,side:"Right"}})}get LEFT(){return new l({values:this._values,data:{mp:this.data.mp,side:"Left"}})}get BOTTOM(){return new l({values:this._values,data:{mp:this.data.mp,side:"Bottom"}})}get BLOCK(){return new a({values:this._values,data:{bin:this.data.mp+"Block",side:""}})}get INLINE(){return new a({values:this._values,data:{bin:this.data.mp+"Inline",side:""}})}}class a extends i{prop="";valFN=s;constructor({prefix:e="",data:t={bin:"",side:""},values:r={}}={}){super({prefix:e,data:t,values:r});this.prop=[this.data.bin,this.data.side].join("")}px(e){return this._value={[this.data.bin]:`${e}px`},this}pr(e){return this._value={[this.data.bin]:`${e}%`},this}rm(e){return this._value={[this.data.bin]:e},this}get END(){return new a({values:this._values,data:{bin:this.data.bin,side:"End"}})}get START(){return new a({values:this._values,data:{bin:this.data.bin,side:"Start"}})}}import{Medyas as Gt}from"shweet";import{f as Ke,med as R}from"shweet";var I=(e)=>typeof e==="string",_=(e)=>Array.isArray(e);var N=(e)=>{return _(e)?e:[e]};class We{static set i(e){console.info(...N(e))}static set e(e){console.error(...N(e))}static set w(e){console.info(...N(e))}}var z=(e)=>{if(e.startsWith("webkit"))e="-"+e;return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()};var w=Object.entries;var Ue=(e=6,t)=>{if(!t)return Math.floor(Math.random()*e);return Math.round(Math.random()*(t-e)+e)},Q=()=>{let e=Object.values(E),t=Ue(0,e.length-1);return e[t]},E={aliceblue:["#F0F8FF","#2F4F4F"],antiquewhite:["#FAEBD7","#8B4513"],aqua:["#00FFFF","#008080"],aquamarine:["#7FFFD4","#008B8B"],azure:["#F0FFFF","#191970"],beige:["#F5F5DC","#556B2F"],bisque:["#FFE4C4","#A0522D"],black:["#000000","#FFFFFF"],blanchedalmond:["#FFEBCD","#8B4513"],blue:["#0000FF","#4169E1"],blueviolet:["#8A2BE2","#9932CC"],brown:["#A52A2A","#A0522D"],burlywood:["#DEB887","#CD853F"],cadetblue:["#5F9EA0","#2F4F4F"],chartreuse:["#7FFF00","#32CD32"],chocolate:["#D2691E","#8B4513"],coral:["#FF7F50","#FF6347"],cornflowerblue:["#6495ED","#4682B4"],cornsilk:["#FFF8DC","#B8860B"],crimson:["#DC143C","#8B0000"],cyan:["#00FFFF","#008B8B"],darkblue:["#00008B","#0000CD"],darkcyan:["#008B8B","#48D1CC"],darkgoldenrod:["#B8860B","#DAA520"],darkgray:["#A9A9A9","#696969"],darkgreen:["#006400","#228B22"],darkmagenta:["#8B008B","#800080"],darkorange:["#FF8C00","#D2691E"],darkorchid:["#9932CC","#BA55D3"],darkred:["#8B0000","#B22222"],darksalmon:["#E9967A","#F08080"],darkslategray:["#2F4F4F","#778899"],darkturquoise:["#00CED1","#40E0D0"],deeppink:["#FF1493","#C71585"],deepskyblue:["#00BFFF","#1E90FF"],dimgray:["#696969","#A9A9A9"],dodgerblue:["#1E90FF","#4682B4"],firebrick:["#B22222","#A52A2A"],forestgreen:["#228B22","#006400"],gainsboro:["#DCDCDC","#708090"],ghostwhite:["#F8F8FF","#2F4F4F"],gold:["#FFD700","#B8860B"],goldenrod:["#DAA520","#CD853F"],gray:["#808080","#696969"],green:["#008000","#006400"],honeydew:["#F0FFF0","#3CB371"],hotpink:["#FF69B4","#C71585"],indianred:["#CD5C5C","#A52A2A"],indigo:["#4B0082","#7B68EE"],ivory:["#FFFFF0","#FAFAD2"],khaki:["#F0E68C","#6B8E23"],lavender:["#E6E6FA","#D8BFD8"],lavenderblush:["#FFF0F5","#DB7093"],lawngreen:["#7CFC00","#32CD32"],lemonchiffon:["#FFFACD","#BDB76B"],lightblue:["#ADD8E6","#4682B4"],lightcoral:["#F08080","#CD5C5C"],lightcyan:["#E0FFFF","#5F9EA0"],lightgoldenrodyellow:["#FAFAD2","#BDB76B"],lightgray:["#D3D3D3","#708090"],lightgreen:["#90EE90","#3CB371"],lightskyblue:["#87CEFA","#4682B4"],lightslategray:["#778899","#708090"],lightsteelblue:["#B0C4DE","#5F9EA0"],lightyellow:["#FFFFE0","#BDB76B"],lime:["#00FF00","#228B22"],linen:["#FAF0E6","#8B4513"],maroon:["#800000","#B22222"],mediumaquamarine:["#66CDAA","#008080"],mediumblue:["#0000CD","#00008B"],mediumorchid:["#BA55D3","#9932CC"],mediumseagreen:["#3CB371","#2E8B57"],mediumslateblue:["#7B68EE","#4B0082"],mediumspringgreen:["#00FA9A","#006400"],mediumturquoise:["#48D1CC","#008B8B"],mediumvioletred:["#C71585","#8B008B"],midnightblue:["#191970","#000080"],mintcream:["#F5FFFA","#3CB371"],mistyrose:["#FFE4E1","#DB7093"],moccasin:["#FFE4B5","#CD853F"],navajowhite:["#FFDEAD","#A0522D"],oldlace:["#FDF5E6","#D2B48C"],olive:["#808000","#556B2F"],olivedrab:["#6B8E23","#006400"],orange:["#FFA500","#FF8C00"],orangered:["#FF4500","#FF6347"],orchid:["#DA70D6","#BA55D3"],palegoldenrod:["#EEE8AA","#DAA520"],palegreen:["#98FB98","#3CB371"],paleturquoise:["#AFEEEE","#5F9EA0"],palevioletred:["#DB7093","#C71585"],papayawhip:["#FFEFD5","#8B4513"],peachpuff:["#FFDAB9","#CD853F"],peru:["#CD853F","#A0522D"],pink:["#FFC0CB","#DB7093"],plum:["#DDA0DD","#9932CC"],powderblue:["#B0E0E6","#5F9EA0"],purple:["#800080","#4B0082"],rebeccapurple:["#663399","#4B0082"],red:["#FF0000","#8B0000"],rosybrown:["#BC8F8F","#A52A2A"],royalblue:["#4169E1","#191970"],saddlebrown:["#8B4513","#A0522D"],salmon:["#FA8072","#CD5C5C"],sandybrown:["#F4A460","#CD853F"],seagreen:["#2E8B57","#006400"],seashell:["#FFF5EE","#D2B48C"],sienna:["#A0522D","#8B4513"],silver:["#C0C0C0","#696969"],skyblue:["#87CEEB","#4682B4"],slategray:["#708090","#2F4F4F"],snow:["#FFFAFA","#778899"],springgreen:["#00FF7F","#3CB371"],steelblue:["#4682B4","#191970"],tan:["#D2B48C","#CD853F"],teal:["#008080","#008B8B"],thistle:["#D8BFD8","#DDA0DD"],tomato:["#FF6347","#B22222"],turquoise:["#40E0D0","#00CED1"],violet:["#EE82EE","#9932CC"],wheat:["#F5DEB3","#8B4513"],white:["#FFFFFF","#000000"],whitesmoke:["#F5F5F5","#696969"],yellow:["#FFFF00","#DAA520"],yellowgreen:["#9ACD32","#556B2F"]};class G extends i{prop="";constructor({prefix:e="",data:t={prop:""},values:r={}}={}){super({prefix:e,data:t,values:r});this.prop=this.data.prop}}var Me=(e=!1)=>{let t=Object.values(E),r=Ue(0,t.length-1),n=t[r];if(e)n.reverse();return R(n[0],{dark:n[1]})};class Te extends G{valFN=(e)=>{let t=E[String(e)];return R(t[1],{dark:t[0]})};get random(){return this._value={[this.prop]:Me(!0)},this}}class He extends G{valFN=(e)=>{let t=E[String(e)];return R(t[0],{dark:t[1]})};get random(){return this._value={[this.prop]:Me()},this}}class d extends G{valFN=(e)=>{return E[e][0]};color(e){return this._value={[this.prop]:e},this}rgba(e,t,r,n){return this._value={[this.prop]:Ke.rgba(e,t,r,n)},this}get random(){return this._value={[this.prop]:Q()[0]},this}get transparent(){return this._value={[this.prop]:"transparent"},this}get inherit(){return this._value={[this.prop]:"inherit"},this}get initial(){return this._value={[this.prop]:"initial"},this}get current(){return this._value={[this.prop]:"currentColor"},this}get AUTOLIGHT(){return new He({values:this._value,data:{prop:this.data.prop}})}get AUTODARK(){return new Te({values:this._value,data:{prop:this.data.prop}})}get MIX(){return new Xe({values:this._value,data:{prop:this.data.prop}})}}var u=(e,t,r,n)=>{return{[e]:Ke.colorMix(`in ${t}`,_(r)?r:[r],_(n)?n:[n])}};class Xe extends i{constructor({prefix:e="",data:t={prop:""},values:r={}}={}){super({prefix:e,data:t,values:r});this.prop=this.data.prop}srgb(e,t){return this._value=u(this.prop,"srgb",e,t),this}srgb_linear(e,t){return this._value=u(this.prop,"srgb-linear",e,t),this}display_p3(e,t){return this._value=u(this.prop,"display-p3",e,t),this}a98_rgb(e,t){return this._value=u(this.prop,"a98-rgb",e,t),this}prophoto_rgb(e,t){return this._value=u(this.prop,"prophoto-rgb",e,t),this}rec2020(e,t){return this._value=u(this.prop,"rec2020",e,t),this}lab(e,t){return this._value=u(this.prop,"lab",e,t),this}oklab(e,t){return this._value=u(this.prop,"oklab",e,t),this}xyz(e,t){return this._value=u(this.prop,"xyz",e,t),this}xyz_d50(e,t){return this._value=u(this.prop,"xyz-d50",e,t),this}xyz_d65(e,t){return this._value=u(this.prop,"xyz-d65",e,t),this}hsl(e,t){return this._value=u(this.prop,"hsl",e,t),this}hwb(e,t){return this._value=u(this.prop,"hwb",e,t),this}lch(e,t){return this._value=u(this.prop,"lch",e,t),this}and(e,t){return this._value=u(this.prop,"and",e,t),this}oklch(e,t){return this._value=u(this.prop,"oklch",e,t),this}}var F=(e,t)=>{let r=["border",e.data.side,"Style"].join("");return e._value={[r]:t},e};class x extends Gt{constructor({prefix:e="",data:t={side:""},values:r={}}={}){super({prefix:e,data:t,values:r})}value(e){let t=["border",this.data.side].join("");return this._value={[t]:e},this}color(e){let t=["border",this.data.side,"Color"].join("");return this._value={[t]:e},this}width(e){let t=["border",this.data.side,"Width"].join("");return this._value={[t]:e},this}image(e,...t){let r=["border",this.data.side,"Image"].join("");return this._value={[r]:[e,...t.map(String)]},this}get solid(){return F(this,"solid")}get dotted(){return F(this,"dotted")}get none(){return F(this,"none")}get hidden(){return F(this,"hidden")}get dashed(){return F(this,"dashed")}get double(){return F(this,"double")}get groove(){return F(this,"groove")}get ridge(){return F(this,"ridge")}get inset(){return F(this,"inset")}get outset(){return F(this,"outset")}get TOP(){return new x({values:this._values,data:{side:"Top"}})}get RIGHT(){return new x({values:this._values,data:{side:"Right"}})}get LEFT(){return new x({values:this._values,data:{side:"Left"}})}get BOTTOM(){return new x({values:this._values,data:{side:"Bottom"}})}get b1(){let e=["border",this.data.side,""].join("");return this._value={[e]:"1px solid currentColor"},this}get bRed(){let e=["border",this.data.side,""].join("");return this._value={[e]:"1px solid red"},this}get random(){let e=["border",this.data.side,""].join("");return this._value={[e]:["1px solid",Q()[0]]},this}get bRandom(){let e=["border",this.data.side,""].join("");return this._value={[e]:["1px solid",Q()[0]]},this}get COLOR(){let e=["border",this.data.side,"Color"].join("");return new d({values:this._value,data:{prop:e}})}}function W(e){return new Proxy(this,{get(t,r){let n=Number(r);if(n)t._value={[e]:n};return t}})}class P extends i{prop="borderRadius";valFN=s;v(e){this._value={borderRadius:e}}get tL(){return W.call(this,"borderTopLeftRadius")}get tR(){return W.call(this,"borderTopRightRadius")}get bR(){return W.call(this,"borderBottomRightRadius")}get bL(){return W.call(this,"borderBottomLeftRadius")}x(e){return this._value={borderTopLeftRadius:e,borderTopRightRadius:e},this}y(e){return this._value={borderBottomLeftRadius:e,borderBottomRightRadius:e},this}get b0(){return this._value={borderRadius:0},this}get b0p5(){return this._value={borderRadius:0.5},this}get b1(){return this._value={borderRadius:1},this}get b1p5(){return this._value={borderRadius:1.5},this}get b2(){return this._value={borderRadius:2},this}pr(e){return this._value={[this.prop]:`${e}%`},this}px(e){return this._value={[this.prop]:`${e}px`},this}rm(e){return this._value={[this.prop]:e},this}value(e){return this._value={[this.prop]:e},this}}import{Medyas as Wt,f as jt}from"shweet";class O extends i{prop="cursor"}class v extends i{prop="display"}class ee extends i{prop="position"}class J extends Wt{xy="";constructor({prefix:e="",data:t={xy:""},values:r={}}={}){super({prefix:e,data:t,values:r});this.xy=["overflow",t.xy].join("")}get visible(){return this._value={[this.xy]:"visible"},this}get hidden(){return this._value={[this.xy]:"hidden"},this}get scroll(){return this._value={[this.xy]:"scroll"},this}get auto(){return this._value={[this.xy]:"auto"},this}get X(){return new J({prefix:this._prefix,values:this._values,data:{xy:"X"}})}get Y(){return new J({prefix:this._prefix,values:this._values,data:{xy:"Y"}})}}class te extends i{prop="opacity";valFN=(e)=>{let t=Number(e);if(t&&t>1)return`${e}%`;return e};pr(e){return this._value={opacity:`${e}%`},this}}class re extends i{prop="zIndex"}class ie extends i{prop="whiteSpace"}class j extends i{get visible(){return this._value={visibility:"visible"},this}get hidden(){return this._value={visibility:"hidden"},this}get collapse(){return this._value={visibility:"collapse"},this}}class ne extends i{prop="verticalAlign";valFN=s;px(e){return this._value={verticalAlign:`${e}px`},this}pr(e){return this._value={verticalAlign:`${e}%`},this}}class K extends i{get select(){return this._value={userSelect:"auto"},this}get none(){return this._value={userSelect:"none"},this}}class U extends i{get auto(){return this._value={pointerEvents:"auto"},this}get none(){return this._value={pointerEvents:"none"},this}}class se extends i{prop="lineHeight";valFN=s}class he extends i{get auto(){return this._value={overscrollBehavior:"auto"},this}get contain(){return this._value={overscrollBehavior:"contain"},this}get none(){return this._value={overscrollBehavior:"none"},this}get XAuto(){return this._value={overscrollBehaviorX:"auto"},this}get XContain(){return this._value={overscrollBehaviorX:"contain"},this}get XNone(){return this._value={overscrollBehaviorX:"none"},this}get YAuto(){return this._value={overscrollBehaviorY:"auto"},this}get YContain(){return this._value={overscrollBehaviorY:"contain"},this}get YNone(){return this._value={overscrollBehaviorY:"none"},this}get INLINEAuto(){return this._value={overscrollBehaviorInline:"auto"},this}get INLINEContain(){return this._value={overscrollBehaviorInline:"contain"},this}get INLINENone(){return this._value={overscrollBehaviorInline:"none"},this}get BLOCKAuto(){return this._value={overscrollBehaviorBlock:"auto"},this}get BLOCKContain(){return this._value={overscrollBehaviorBlock:"contain"},this}get BLOCKNone(){return this._value={overscrollBehaviorBlock:"none"},this}var(e,t){return this._value={overscrollBehavior:jt.var(e,t)},this}}import{f as Ye}from"shweet";var Kt={none:["none"],all:["all"],colors:["background-color","border-color","color","fill","stroke"],font:["font","color"],background:["background"],opacity:["opacity"],shadow:["box-shadow"],transform:["transform"],dimension:["height","width","margin","padding"]};class Ve extends i{prop="transitionProperty";properties=new Set;valFN=(e)=>{return Kt[e].forEach((r)=>{this.properties.add(r)}),[...this.properties]};property(...e){return e.forEach((t)=>{this.properties.add(t)}),this._value={transitionProperty:[...this.properties]},this}}class ke extends i{propFN=()=>{return this.data.prop};cubicBezier(e,t,r,n){return this._value={[this.propFN()]:Ye.cubicBezier(e,t,r,n)},this}steps(e,t){return this._value={[this.propFN()]:Ye.steps(e,t)},this}}class ue extends i{valFN=(e)=>{return`${e}s`};propFN=()=>{return this.data.prop}}class M{isAnim;constructor(e=!1){this.isAnim=e}get TIMING(){return new ke({data:{prop:this.isAnim?"animationTimingFunction":"transitionTimingFunction"}})}get DELAY(){return new ue({data:{prop:this.isAnim?"animationDelay":"transitionDelay"}})}get DURATION(){return new ue({data:{prop:this.isAnim?"animationDuration":"transitionDuration"}})}}class de extends M{get PROPERTY(){return new Ve}}import{Medyas as Se,f as B}from"shweet";class Le extends Se{constructor({prefix:e="",data:t={kf:{}},values:r={}}){super({prefix:e,data:t,values:r})}get bounce(){return this._value={animation:["bounce","1s","infinite"]},this.data.kf.bounce={"10%, 100%":{transform:B.translateY("0%"),animationTimingFunction:B.cubicBezier(0.8,0,1,1)},"50%":{transform:B.translateY("20%"),animationTimingFunction:B.cubicBezier(0,0,0.2,1)}},this}get ping(){return this._value={animation:["ping","1s",B.cubicBezier(0,0,0.2,1),"infinite"]},this.data.kf.ping={"100%, 75%":{transform:B.scale(1.5),opacity:0}},this}get pulse(){return this._value={animation:["pulse","1s",B.cubicBezier(0.4,0,0.6,1),"infinite"]},this.data.kf.pulse={"50%":{opacity:0.5}},this}get spin(){return this._value={animation:["spin","1s","linear","infinite"]},this.data.kf.spin={"100%":{transform:B.rotate(360)}},this}}class Ie extends i{prop="animationDirection"}class Ne extends i{prop="animationFillMode"}class Re extends i{prop="animationIterationCount";get infinite(){return this._value={[this.prop]:"infinite"},this}}class oe extends Se{constructor({prefix:e="",data:t={},values:r={}}={}){super({prefix:e,data:t,values:r})}animation(e){return this._value={animation:e},this}name(e){return this._value={animationName:e},this}duration(e){return this._value={animationDuration:e},this}get paused(){return this._value={animationPlayState:"paused"},this}get running(){return this._value={animationPlayState:"running"},this}}class T extends M{SET(e){return new Le({data:{kf:e}})}name(e){return new oe().name(e)}animation(e){return new oe().animation(e)}get DIRECTION(){return new Ie}get FILL(){return new Ne}get ITERATION(){return new Re}}import{f as b}from"shweet";class Pe extends i{prop="backgroundAttachment"}class Oe extends i{prop="backgroundBlendMode"}class le extends i{valFN=(e)=>{if(this.prop==="backgroundClip"&&e==="text")this._value={webkitBackgroundClip:e};return e};constructor({prefix:e="",data:t={name:""},values:r={}}={}){super({prefix:e,data:t,values:r});this.prop=this.data.name}}class ve extends i{prop="backgroundSize";valFN=s;get auto(){let e=[this.data.mp,this.data.side].join("");return this._value={[this.prop]:"auto"},this}get cover(){return this._value={[this.prop]:"cover"},this}get contain(){return this._value={[this.prop]:"contain"},this}px(e){return this._value={[this.prop]:`${e}px`},this}rm(e){return this._value={[this.prop]:e},this}value(e){return this._value={[this.prop]:e},this}}class et extends i{prop="backgroundPosition";replacer=" ";value(e){return this._value={[this.prop]:e},this}XY(e,t){return this._value={[this.prop]:[e,t]},this}}class tt extends i{prop="backgroundImage";url(e){return this._value={[this.prop]:b.url(e)},this}conic(...e){return this._value={[this.prop]:b.conicGradient(...e)},this}repeatingConic(...e){return this._value={[this.prop]:b.repeatingConicGradient(...e)},this}linear(...e){return this._value={[this.prop]:b.linearGradient(...e)},this}repeatingLinear(...e){return this._value={[this.prop]:b.repeatingLinearGradient(...e)},this}radial(...e){return this._value={[this.prop]:b.radialGradient(...e)},this}repeatingRadial(...e){return this._value={[this.prop]:b.repeatingRadialGradient(...e)},this}get none(){return this._value={[this.prop]:"none"},this}value(e){return this._value={[this.prop]:e},this}var(e,t){return this._value={[this.prop]:b.var(e,t)},this}}class ce{get ATTACH(){return new Pe}get BLEND(){return new Oe}get CLIP(){return new le({data:{name:"backgroundClip"}})}get ORIGIN(){return new le({data:{name:"backgroundOrigin"}})}get COLOR(){return new d({data:{prop:"backgroundColor"}})}get SIZE(){return new ve}get IMAGE(){return new tt}get POSITION(){return new et}color(e){return new d({data:{prop:"backgroundColor"}}).color(e)}}class rt extends i{prop="textAlign"}var Ut=["none","underline","overline","line_through"];class it extends i{propFN=(e)=>{if(Ut.includes(e))return"textDecorationLine";return"textDecorationStyle"};get COLOR(){return new d({values:this._value,data:{prop:"textDecorationColor"}})}thickness(e){return this._value={textDecorationThickness:e},this}get auto(){return this._value={textDecorationThickness:"auto"},this}get font(){return this._value={textDecorationThickness:"from-font"},this}}var Mt=["over","under","left","right"];class nt extends i{prop="textEmphasis";propFN=(e)=>{if(Mt.includes(e))return"textEmphasisPosition";return"textEmphasisStyle"};char(e){return this._value={textEmphasisStyle:`"${e}"`},this}get COLOR(){return new d({values:this._value,data:{prop:"textEmphasisColor"}})}}class st extends i{prop="textIndent";valFN=s}class ht extends i{prop="textJustify"}class ut extends i{prop="textOrientation"}var Tt=["auto","under","from_font","left","right"];class dt extends i{propFN=(e)=>{if(Tt.includes(e))return"textUnderlinePosition";return"textUnderlineOffset"};valFN=s;get autoOffset(){return this._value={textUnderlineOffset:"auto"},this}}class ae extends i{get ALIGN(){return new rt}get DECOR(){return new it}get EMPHASIS(){return new nt}get INDENT(){return new st}get JUSTIFY(){return new ht}get ORIENTATION(){return new ut}get UNDERLINE(){return new dt}get clip(){return this._value={textOverflow:"clip"},this}get ellipsis(){return this._value={textOverflow:"ellipsis"},this}overflow(e){return this._value={textOverflow:`"${e}"`},this}decor(e){return this._value={textDecoration:e},this}get capitalize(){return this._value={textTransform:"capitalize"},this}get uppercase(){return this._value={textTransform:"uppercase"},this}get lowercase(){return this._value={textTransform:"lowercase"},this}get noTransform(){return this._value={textTransform:"none"},this}get COLOR(){return new d({values:this._value,data:{prop:"color"}})}}import{Medyas as Ht}from"shweet";var g=(e,t)=>{return e._value={outlineStyle:t},e};class Fe extends Ht{constructor({prefix:e="",data:t={},values:r={}}={}){super({prefix:e,data:t,values:r})}color(e){return this._value={outlineColor:e},this}width(e){return this._value={outlineWidth:e},this}get solid(){return g(this,"solid")}get dotted(){return g(this,"dotted")}get none(){return g(this,"none")}get hidden(){return g(this,"hidden")}get dashed(){return g(this,"dashed")}get double(){return g(this,"double")}get groove(){return g(this,"groove")}get ridge(){return g(this,"ridge")}get inset(){return g(this,"inset")}get outset(){return g(this,"outset")}get b1(){return this._value={outline:"1px solid currentColor"},this}get bRed(){return this._value={outline:"1px solid red"},this}get bRandom(){return this._value={outline:["1px solid",Q()[0]]},this}get COLOR(){return new d({values:this._value,data:{prop:"outlineColor"}})}off(e){return C(this,e)}get off0(){return C(this,0)}get off1(){return C(this,1)}get off2(){return C(this,2)}get off3(){return C(this,3)}get off4(){return C(this,4)}get off5(){return C(this,5)}}var C=(e,t)=>{return e._value={outlineOffset:t},e};import{Medyas as ot}from"shweet";var m=(e,t)=>{return e._value={columnRuleStyle:t},e};class lt extends ot{constructor({prefix:e="",data:t={},values:r={}}={}){super({prefix:e,data:t,values:r})}color(e){return this._value={columnRuleColor:e},this}width(e){return this._value={columnRuleWidth:e},this}get solid(){return m(this,"solid")}get dotted(){return m(this,"dotted")}get none(){return m(this,"none")}get hidden(){return m(this,"hidden")}get dashed(){return m(this,"dashed")}get double(){return m(this,"double")}get groove(){return m(this,"groove")}get ridge(){return m(this,"ridge")}get inset(){return m(this,"inset")}get outset(){return m(this,"outset")}get COLOR(){return new d({values:this._value,data:{prop:"columnRuleColor"}})}}class ge extends i{constructor({prefix:e="",data:t={prop:""},values:r={}}={}){super({prefix:e,data:t,values:r});this.prop=this.data.prop}}class me extends ot{constructor({prefix:e="",data:t={},values:r={}}={}){super({prefix:e,data:t,values:r})}width(e){return this._value={columnRuleWidth:e},this}get COUNT(){return new ge({values:this._value,data:{prop:"columnCount"}})}count(e){return this._value={columnCount:e},this}get GAP(){return new ge({values:this._value,data:{prop:"columnGap"}})}gap(e){return this._value={columnGap:e},this}get balance(){return this._value={columnFill:"balance"},this}get auto(){return this._value={columnFill:"auto"},this}get span(){return this._value={columnSpan:"all"},this}get noSpan(){return this._value={columnSpan:"none"},this}rule(e){return this._value={columnRule:e},this}get RULE(){return new lt({values:this._value})}}import{f as pe}from"shweet";class H extends i{origin(...e){return this._value={transformOrigin:e},this}get flat(){return this._value={transformStyle:"flat"},this}get preserve3d(){return this._value={transformStyle:"preserve-3d"},this}get none(){return this._value={transform:"none"},this}transform(e){let t=[];if(Object.entries(e).forEach(([r,n])=>{if(r in pe){let h=pe[r];t.push(h(n))}}),t.length)this._value={transform:t};return this}var(e,t){return this._value={transform:pe.var(e,t)},this}}class ye extends i{prop="perspective";valFN=s;get none(){return this._value={perspective:"none"},this}x(e){return this._value={perspectiveOrigin:e},this}y(e){return this._value={perspectiveOrigin:e},this}}var Xt=["break_all","keep_all"];class fe extends i{propFN=(e)=>{if(Xt.includes(e))return"wordBreak";return"wordSpacing"};valFN=s;get normalBreak(){return this._value={wordBreak:"normal"},this}get normalWrap(){return this._value={wordWrap:"normal"},this}get break(){return this._value={wordWrap:"break-word"},this}}class _e extends i{prop="listStyleType";image(e){return this._value={listStyleImage:e},this}get noImage(){return this._value={listStyleImage:"none"},this}get inside(){return this._value={listStylePosition:"inside"},this}get outside(){return this._value={listStylePosition:"outside"},this}}import{f as ct}from"shweet";class at extends i{prop="fontSize";valFN=s;px(e){return this._value={[this.prop]:`${e}px`},this}pr(e){return this._value={[this.prop]:`${e}%`},this}rm(e){return this._value={[this.prop]:e},this}value(e){return this._value={[this.prop]:e},this}var(e,t){return this._value={[this.prop]:ct.var(e,t)},this}}class Be extends i{font(e){return this._value={font:e},this}var(e,t){return this._value={font:ct.var(e,t)},this}stretch(e){return this._value={fontStretch:e},this}family(e){return this._value={fontFamily:e},this}sizeAdjust(e){return this._value={fontSizeAdjust:e},this}get arial(){return this._value={fontFamily:"Arial, Helvetica, sans-serif"},this}get brushScript(){return this._value={fontFamily:'"Brush Script MT", cursive'},this}get comicSans(){return this._value={fontFamily:'"Comic Sans MS", cursive, sans-serif'},this}get courier(){return this._value={fontFamily:'"Courier New", Courier, monospace'},this}get georgia(){return this._value={fontFamily:'Georgia, "Times New Roman", serif'},this}get google(){return this._value={fontFamily:'"Google Sans Mono", monospace'},this}get monaco(){return this._value={fontFamily:'Monaco, Consolas, "Lucida Console", monospace'},this}get palatino(){return this._value={fontFamily:'"Palatino Linotype", "Book Antiqua", Palatino, serif'},this}get system(){return this._value={fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'},this}get timesNew(){return this._value={fontFamily:'"Times New Roman", Times, serif'},this}get trebuchet(){return this._value={fontFamily:'"Trebuchet MS", Tahoma, sans-serif'},this}get verdana(){return this._value={fontFamily:"Verdana, Geneva, sans-serif"},this}get normalStretch(){return this._value={fontStretch:"normal"},this}get normalStyle(){return this._value={fontStyle:"normal"},this}get italic(){return this._value={fontStyle:"italic"},this}get oblique(){return this._value={fontStyle:"oblique"},this}get normalVariant(){return this._value={fontVariant:"normal"},this}get smallCaps(){return this._value={fontVariant:"small-caps"},this}caps(e){return this._value={fontVariantCaps:e},this}weight(e){return this._value={fontWeight:e},this}get normalWeight(){return this._value={fontWeight:"normal"},this}get bold(){return this._value={fontWeight:"bold"},this}get bolder(){return this._value={fontWeight:"bolder"},this}get lighter(){return this._value={fontWeight:"lighter"},this}get SIZE(){return new at({values:this._value})}}import{Value as Ft,f as Yt}from"shweet";var X=(e)=>{let{x:t,y:r,blur:n,spread:h,color:c,inset:D}=e;return Ft([t,r,n,h,c,D?"inset":void 0],{rem:!0})};class be extends i{shadows=new Set;value(e){return this.shadows.add(Ft(e,{rem:!0})),this._value={boxShadow:[...this.shadows].join(", ")},this}set(e){let t=X(e);return this.shadows.add(t),this._value={boxShadow:[...this.shadows].join(", ")},this}get none(){return this._value={boxShadow:"none"},this}var(e,t){return this._value={boxShadow:Yt.var(e,t)},this}}class De extends i{get slice(){return this._value={webkitBoxDecorationBreak:"slice",boxDecorationBreak:"slice"},this}get clone(){return this._value={webkitBoxDecorationBreak:"clone",boxDecorationBreak:"clone"},this}get content(){return this._value={boxSizing:"content-box"},this}get border(){return this._value={boxSizing:"border-box"},this}}import{f as Vt}from"shweet";class we extends i{get MARGIN(){return new l({values:this._value,data:{mp:"scrollMargin",side:""}})}get PADDING(){return new l({values:this._value,data:{mp:"scrollPadding",side:""}})}get SNAP(){return new gt({values:this._value,data:{mp:"scrollPadding",side:""}})}get auto(){return this._value={scrollBehavior:"auto"},this}get smooth(){return this._value={scrollBehavior:"smooth"},this}var(e,t){return this._value={scrollBehavior:Vt.var(e,t)},this}}class gt extends i{get normalStop(){return this._value={scrollSnapStop:"normal"},this}get alwaysStop(){return this._value={scrollSnapStop:"always"},this}get noType(){return this._value={scrollSnapType:"none"},this}get x(){return this._value={scrollSnapType:"x"},this}get y(){return this._value={scrollSnapType:"y"},this}get block(){return this._value={scrollSnapType:"block"},this}get inline(){return this._value={scrollSnapType:"inline"},this}get both(){return this._value={scrollSnapType:"both"},this}get mandatory(){return this._value={scrollSnapType:"mandatory"},this}get proximity(){return this._value={scrollSnapType:"proximity"},this}get none(){return this._value={scrollSnapAlign:"none"},this}get start(){return this._value={scrollSnapAlign:"start"},this}get end(){return this._value={scrollSnapAlign:"end"},this}get center(){return this._value={scrollSnapAlign:"center"},this}align(e){return this._value={scrollSnapAlign:e},this}type(e){return this._value={scrollSnapAlign:e},this}}import{Value as q}from"shweet";class Ce extends i{prop="";constructor({prefix:e="",data:t={aljust:"justifyContent",_auto:"auto"},values:r={}}={}){super({prefix:e,data:t,values:r});this.prop=this.data.aljust}get start(){return this._value={[this.prop]:"flex-start"},this}get center(){return this._value={[this.prop]:"center"},this}get end(){return this._value={[this.prop]:"flex-end"},this}get none(){return this._value={[this.prop]:"none"},this}}class xe extends Ce{get around(){return this._value={[this.prop]:"space-around"},this}get between(){return this._value={[this.prop]:"space-between"},this}get even(){return this._value={[this.prop]:"space-evenly"},this}get SELF(){let e=z(this.data.aljust).split("-")[0];return new qe({values:this._value,data:{aljust:`${e}Self`,_auto:"auto"}})}}class qe extends Ce{get stretch(){return this._value={[this.prop]:"stretch"},this}get baseline(){return this._value={[this.prop]:"baseline"},this}get auto(){return this._value={[this.prop]:this.data._auto},this}}class mt extends i{prop="gridTemplate";get none(){return this._value={[this.prop]:"none"},this}get noArea(){return this._value={gridTemplateAreas:"none"},this}get noColumns(){return this._value={gridTemplateColumns:"none"},this}get noRows(){return this._value={gridTemplateRows:"none"},this}areas(...e){return this._value={gridTemplateAreas:q(e.map((t)=>q(t.map((r)=>r?r:"."))),{quote:!0})},this}col(...e){return this._value={gridTemplateColumns:e},this}row(...e){return this._value={gridTemplateRows:e},this}}class pt extends i{prop="gridTemplate";col(...e){return this._value={gridAutoColumns:e},this}row(...e){return this._value={gridAutoRows:e},this}get rowFlow(){return this._value={gridAutoFlow:"row"},this}get colFlow(){return this._value={gridAutoFlow:"column"},this}get dense(){return this._value={gridAutoFlow:"dense"},this}get rowDense(){return this._value={gridAutoFlow:"row dense"},this}get colDense(){return this._value={gridAutoFlow:"column dense"},this}}var f=(e,t,r="gap")=>{return e._value={[r]:t},e};class yt extends i{prop="gap";valFN=s}class ft extends i{constructor({prefix:e="",data:t={},values:r={}}={}){super({prefix:e,data:t,values:r})}gap(e){return f(this,e)}get gap0(){return f(this,0)}get gap1(){return f(this,1)}get gap2(){return f(this,2)}get gap3(){return f(this,3)}get gap4(){return f(this,4)}get gap5(){return f(this,5)}rowGap(e){return f(this,e,"rowGap")}colGap(e){return f(this,e,"columnGap")}get GAP(){return new yt({values:this._value})}}class $e extends ft{constructor({prefix:e="",data:t={},values:r={}}={}){super({prefix:e,data:t,values:r});if(!e)this._value={display:"grid"}}get ALIGN(){return new xe({values:this._value,data:{aljust:"alignContent",_auto:"flex-start"}})}get JUSTIFY(){return new xe({values:this._value})}get TEMPLATE(){return new mt({values:this._value})}get AUTO(){return new pt({values:this._value})}get SELF(){return new qe({values:this._value,data:{aljust:"placeSelf",_auto:"auto"}})}grid(e){return this._value={grid:e},this}template(e,t){let r=q(e,{rem:!0}),n=q(t,{rem:!0});return this._value={gridArea:n?r+" / "+n:r},this}area(e){let t="";if(I(e))t=e;else{let{rowS:r,rowE:n,colS:h,colE:c}=e;t=q([r,h,n,c],{delimeter:" / "})}return this._value={gridArea:t},this}col(e,t){return this._value={gridColumn:q([e,"/",t])},this}colStart(e){return this._value={gridColumnStart:e},this}colEnd(e){return this._value={gridColumnStart:e},this}row(e,t){return this._value={gridRow:q([e,"/",t])},this}rowStart(e){return this._value={gridRow:e},this}rowEnd(e){return this._value={gridRow:e},this}get autoColumn(){return this._value={gridColumn:"auto / auto"},this}}import{f as p}from"shweet";class ze extends i{filters=new Set;prop="filter";get none(){return this._value={[this.prop]:"none"},this}filter(e={}){return w(e).forEach(([t,r])=>{if(t==="dropShadow"){let n=X(r);this.filters.add(p.dropShadow(n))}else if(t==="url")this.filters.add(p.url(r));else if(t==="blur")this.filters.add(p.blur(`${r}px`));else if(t==="hueRotate")this.filters.add(p.hueRotate(r));else{let n=p[t];if(n)this.filters.add(n(`${r}%`))}}),this._value={[this.prop]:[...this.filters]},this}}class Qe extends i{filters=new Set;get none(){return this._value={backdropFilter:"none",webkitBackdropFilter:"none"},this}filter(e={}){return w(e).forEach(([t,r])=>{if(t==="dropShadow"){let n=X(r);this.filters.add(p.dropShadow(n))}else if(t==="url")this.filters.add(p.url(r));else if(t==="blur")this.filters.add(p.blur(`${r}px`));else if(t==="hueRotate")this.filters.add(p.hueRotate(r));else{let n=p[t];if(n)this.filters.add(n(`${r}%`))}}),this._value={backdropFilter:[...this.filters],webkitBackdropFilter:[...this.filters]},this}}class Y{VARS(e){return Object.entries(e).reduce((t,[r,n])=>{return t[`--${z(r)}`]=n,t},{})}get VAR(){return new Proxy(this,{get(e,t,r){let n=e[t];if(n)return n;return _t.var(t)}})}optVAR(e){return new Proxy(this,{get(t,r,n){let h=t[r];if(h)return h;return _t.var(r,e)}})}}class Bt{static VARS(e){return new Y().VARS(e)}static optVAR(e){return new Y().optVAR(e)}static get VAR(){return new Y().VAR}static get visible(){return new j().visible}static get hidden(){return new j().hidden}static get select(){return new K().select}static get noSelect(){return new K().none}static get pointer(){return new U().auto}static get noPointer(){return new U().none}}class bt extends Bt{static get TRANSITION(){return new de}static get ANIMATION(){return new T(!0)}static animation(e){return new T(!0).animation(e)}}class Dt extends bt{static get BG(){return new ce}static get COLOR(){return new d({data:{prop:"color"}})}static get TEXT(){return new ae}static get FONT(){return new Be}static get FILTER(){return new ze}static get BACKDROP(){return new Qe}static get VALIGN(){return new ne}static get WORD(){return new fe}static get CURSOR(){return new O}static get DISPLAY(){return new v}static get POSITION(){return new ee}static get RADIUS(){return new P}static get BORDER(){return new x}static get OUTLINE(){return new Fe}static get COLUMN(){return new me}static get OVERFLOW(){return new J}static get OPACITY(){return new te}static get ZIndex(){return new re}static get LINE(){return new se}static get WHITESPACE(){return new ie}}class kt extends Dt{static get FLEX(){return new S}static get GRID(){return new $e}static get HW(){return new L}static get WIDTH(){return new o({data:{wh:"width",first:""}})}static get HEIGHT(){return new o({data:{wh:"height",first:""}})}static get TOP(){return new o({data:{wh:"top",first:""}})}static get LEFT(){return new o({data:{wh:"left",first:""}})}static get RIGHT(){return new o({data:{wh:"right",first:""}})}static get BOTTOM(){return new o({data:{wh:"bottom",first:""}})}static get MAX(){return{get WIDTH(){return new o({data:{wh:"maxWidth",first:"w"}})},get HEIGHT(){return new o({data:{wh:"maxHeight",first:"h"}})},get BLOCK(){return new a({data:{bin:"maxBlockSize",side:""}})},get INLINE(){return new a({data:{bin:"maxInlineSize",side:""}})}}}static get MIN(){return{get WIDTH(){return new o({data:{wh:"minWidth",first:"w"}})},get HEIGHT(){return new o({data:{wh:"minHeight",first:"h"}})},get BLOCK(){return new a({data:{bin:"minBlockSize",side:""}})},get INLINE(){return new a({data:{bin:"minInlineSize",side:""}})}}}static get MARGIN(){return new l({data:{mp:"margin",side:""}})}static get PADDING(){return new l({data:{mp:"padding",side:""}})}static get TRANSFORM(){return new H}static get PERSPECTIVE(){return new ye}static transform(e){return new H().transform(e)}static get LIST(){return new _e}static get BOX(){return new De}static get SHADOW(){return new be}static get SCROLL(){return new we}static get OVERSCROLL(){return new he}}export{We as log,kt as $};
|