@twind/preset-tailwind
Version:
Tailwind CSS preset for twind
2 lines (1 loc) • 30 kB
JavaScript
this.twind=this.twind||{},this.twind.presetTailwind_base=function(t){"use strict";function e(){return(e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])}return t}).apply(this,arguments)}function o(){return e.apply(this,arguments)}let r={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:o({px:"1px",0:"0px"},n(4,"rem",4,.5,.5),n(12,"rem",4,5),{14:"3.5rem"},n(64,"rem",4,16,4),{72:"18rem",80:"20rem",96:"24rem"}),durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:c("blur"),backdropBrightness:c("brightness"),backdropContrast:c("contrast"),backdropGrayscale:c("grayscale"),backdropHueRotate:c("hueRotate"),backdropInvert:c("invert"),backdropOpacity:c("opacity"),backdropSaturate:c("saturate"),backdropSepia:c("sepia"),backgroundColor:c("colors"),backgroundImage:{none:"none"},backgroundOpacity:c("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:o({},n(200,"",100,0,50),n(110,"",100,90,5),{75:"0.75",125:"1.25"}),borderColor:({theme:t})=>o({DEFAULT:t("colors.gray.200","currentColor")},t("colors")),borderOpacity:c("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:c("spacing"),borderWidth:o({DEFAULT:"1px"},i(8,"px")),boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:c("colors"),caretColor:c("colors"),accentColor:({theme:t})=>o({auto:"auto"},t("colors")),contrast:o({},n(200,"",100,0,50),{75:"0.75",125:"1.25"}),content:{none:"none"},divideColor:c("borderColor"),divideOpacity:c("borderOpacity"),divideWidth:c("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:t})=>o({},t("colors"),{none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:t})=>o({},t("spacing"),a(2,6),a(12,12),{auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:c("spacing"),gradientColorStops:c("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:t})=>o({},t("spacing"),a(2,6),{min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:t})=>o({},t("spacing"),a(2,4),{auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:o({},n(10,"rem",4,3),{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"}),margin:({theme:t})=>o({auto:"auto"},t("spacing")),maxHeight:({theme:t})=>o({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},t("spacing")),maxWidth:({theme:t,breakpoints:e})=>o({},e(t("screens")),{none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:o({},n(100,"",100,0,10),{5:"0.05",25:"0.25",75:"0.75",95:"0.95"}),order:{first:"-9999",last:"9999",none:"0"},padding:c("spacing"),placeholderColor:c("colors"),placeholderOpacity:c("opacity"),outlineColor:c("colors"),outlineOffset:i(8,"px"),outlineWidth:i(8,"px"),ringColor:({theme:t})=>o({},t("colors"),{DEFAULT:"#3b82f6"}),ringOffsetColor:c("colors"),ringOffsetWidth:i(8,"px"),ringOpacity:({theme:t})=>o({},t("opacity"),{DEFAULT:"0.5"}),ringWidth:o({DEFAULT:"3px"},i(8,"px")),rotate:o({},i(2,"deg"),i(12,"deg",3),i(180,"deg",45)),saturate:n(200,"",100,0,50),scale:o({},n(150,"",100,0,50),n(110,"",100,90,5),{75:"0.75",125:"1.25"}),scrollMargin:c("spacing"),scrollPadding:c("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:o({},i(2,"deg"),i(12,"deg",3)),space:c("spacing"),stroke:({theme:t})=>o({},t("colors"),{none:"none"}),strokeWidth:n(2),textColor:c("colors"),textDecorationColor:c("colors"),textDecorationThickness:o({"from-font":"from-font",auto:"auto"},i(8,"px")),textUnderlineOffset:o({auto:"auto"},i(8,"px")),textIndent:c("spacing"),textOpacity:c("opacity"),transitionDuration:({theme:t})=>o({},t("durations"),{DEFAULT:"150ms"}),transitionDelay:c("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:t})=>o({},t("spacing"),a(2,4),{full:"100%"}),width:({theme:t})=>o({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw"},t("flexBasis")),willChange:{scroll:"scroll-position"},zIndex:o({},n(50,"",1,0,10),{auto:"auto"})};function a(t,e){let o={};do for(var r=1;r<t;r++)o[`${r}/${t}`]=Number((r/t*100).toFixed(6))+"%";while(++t<=e)return o}function i(t,e,o=0){let r={};for(;o<=t;o=2*o||1)r[o]=o+e;return r}function n(t,e="",o=1,r=0,a=1,i={}){for(;r<=t;r+=a)i[r]=r/o+e;return i}function c(t){return({theme:e})=>e(t)}let l={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${r.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${r.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},s=[t.match("\\[([-\\w]+):(.+)]",({1:e,2:o},r)=>({"@layer overrides":{"&":{[e]:t.arbitrary(`[${o}]`,"",r)}}})),t.match("(group|peer)([~/][^-[]+)?",({input:t},{h:e})=>[{c:e(t)}]),t.matchTheme("aspect-","aspectRatio"),t.match("container",(e,{theme:r})=>{let{screens:a=r("screens"),center:i,padding:n}=r("container"),c=o({width:"100%",marginRight:i&&"auto",marginLeft:i&&"auto"},m("xs"));for(let l in a){let s=a[l];"string"==typeof s&&(c[t.mql(s)]={"&":o({maxWidth:s},m(l))})}return c;function m(t){let e=n&&("string"==typeof n?n:n[t]||n.DEFAULT);if(e)return{paddingRight:e,paddingLeft:e}}}),t.matchTheme("content-","content",({_:t})=>({"--tw-content":t,content:"var(--tw-content)"})),t.match("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),t.match("box-(border|content)","boxSizing",({1:t})=>t+"-box"),t.match("hidden",{display:"none"}),t.match("table-(auto|fixed)","tableLayout"),t.match(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",t.match("isolate","isolation"),t.match("object-(contain|cover|fill|none|scale-down)","objectFit"),t.matchTheme("object-","objectPosition"),t.match("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",m),t.match("overscroll(-[xy])?-(auto|contain|none)",({1:t="",2:e})=>({["overscroll-behavior"+t]:e})),t.match("(static|fixed|absolute|relative|sticky)","position"),t.matchTheme("-?inset(-[xy])?(?:$|-)","inset",({1:t,_:e})=>({top:"-x"!=t&&e,right:"-y"!=t&&e,bottom:"-x"!=t&&e,left:"-y"!=t&&e})),t.matchTheme("-?(top|bottom|left|right)(?:$|-)","inset"),t.match("(visible|collapse)","visibility"),t.match("invisible",{visibility:"hidden"}),t.matchTheme("-?z-","zIndex"),t.match("flex-((row|col)(-reverse)?)","flexDirection",d),t.match("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),t.matchTheme("(flex-(?:grow|shrink))(?:$|-)"),t.matchTheme("(flex)-"),t.matchTheme("grow(?:$|-)","flexGrow"),t.matchTheme("shrink(?:$|-)","flexShrink"),t.matchTheme("basis-","flexBasis"),t.matchTheme("-?(order)-"),"-?(order)-(\\d+)",t.matchTheme("grid-cols-","gridTemplateColumns"),t.match("grid-cols-(\\d+)","gridTemplateColumns",v),t.matchTheme("col-","gridColumn"),t.match("col-(span)-(\\d+)","gridColumn",y),t.matchTheme("col-start-","gridColumnStart"),t.match("col-start-(auto|\\d+)","gridColumnStart"),t.matchTheme("col-end-","gridColumnEnd"),t.match("col-end-(auto|\\d+)","gridColumnEnd"),t.matchTheme("grid-rows-","gridTemplateRows"),t.match("grid-rows-(\\d+)","gridTemplateRows",v),t.matchTheme("row-","gridRow"),t.match("row-(span)-(\\d+)","gridRow",y),t.matchTheme("row-start-","gridRowStart"),t.match("row-start-(auto|\\d+)","gridRowStart"),t.matchTheme("row-end-","gridRowEnd"),t.match("row-end-(auto|\\d+)","gridRowEnd"),t.match("grid-flow-((row|col)(-dense)?)","gridAutoFlow",t=>m(d(t))),t.match("grid-flow-(dense)","gridAutoFlow"),t.matchTheme("auto-cols-","gridAutoColumns"),t.matchTheme("auto-rows-","gridAutoRows"),t.matchTheme("gap-x(?:$|-)","gap","columnGap"),t.matchTheme("gap-y(?:$|-)","gap","rowGap"),t.matchTheme("gap(?:$|-)","gap"),"(justify-(?:items|self))-",t.match("justify-","justifyContent",g),t.match("(content|items|self)-",t=>({["align-"+t[1]]:g(t)})),t.match("(place-(content|items|self))-",({1:t,$$:e})=>({[t]:("wun".includes(e[3])?"space-":"")+e})),t.matchTheme("p([xytrbl])?(?:$|-)","padding",u("padding")),t.matchTheme("-?m([xytrbl])?(?:$|-)","margin",u("margin")),t.matchTheme("-?space-(x|y)(?:$|-)","space",({1:t,_:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${t}-reverse`]:"0",["margin-"+({y:"top",x:"left"})[t]]:`calc(${e} * calc(1 - var(--tw-space-${t}-reverse)))`,["margin-"+({y:"bottom",x:"right"})[t]]:`calc(${e} * var(--tw-space-${t}-reverse))`}})),t.match("space-(x|y)-reverse",({1:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${t}-reverse`]:"1"}})),t.matchTheme("w-","width"),t.matchTheme("min-w-","minWidth"),t.matchTheme("max-w-","maxWidth"),t.matchTheme("h-","height"),t.matchTheme("min-h-","minHeight"),t.matchTheme("max-h-","maxHeight"),t.matchTheme("font-","fontWeight"),t.matchTheme("font-","fontFamily",({_:e})=>"string"==typeof(e=t.asArray(e))[1]?{fontFamily:p(e)}:o({fontFamily:p(e[0])},e[1])),t.match("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),t.match("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),t.match("italic","fontStyle"),t.match("not-italic",{fontStyle:"normal"}),t.match("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:t,2:e="",3:r})=>"normal"==e?{fontVariantNumeric:"normal"}:o({["--tw-"+(r?"numeric-fraction":"pt".includes(e[0])?"numeric-spacing":e?"numeric-figure":t)]:t,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)"},T({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"}))),t.matchTheme("tracking-","letterSpacing"),t.matchTheme("leading-","lineHeight"),t.match("list-(inside|outside)","listStylePosition"),t.matchTheme("list-","listStyleType"),t.match("list-","listStyleType"),t.matchTheme("placeholder-opacity-","placeholderOpacity",({_:t})=>({"&::placeholder":{"--tw-placeholder-opacity":t}})),t.matchColor("placeholder-",{property:"color",selector:"&::placeholder"}),t.match("text-(left|center|right|justify|start|end)","textAlign"),t.match("text-(ellipsis|clip)","textOverflow"),t.matchTheme("text-opacity-","textOpacity","--tw-text-opacity"),t.matchColor("text-",{property:"color"}),t.matchTheme("text-","fontSize",({_:t})=>"string"==typeof t?{fontSize:t}:o({fontSize:t[0]},"string"==typeof t[1]?{lineHeight:t[1]}:t[1])),t.matchTheme("indent-","textIndent"),t.match("(overline|underline|line-through)","textDecorationLine"),t.match("no-underline",{textDecorationLine:"none"}),t.matchTheme("underline-offset-","textUnderlineOffset"),t.matchColor("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),t.matchTheme("decoration-","textDecorationThickness"),t.match("decoration-","textDecorationStyle"),t.match("(uppercase|lowercase|capitalize)","textTransform"),t.match("normal-case",{textTransform:"none"}),t.match("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),t.match("align-","verticalAlign"),t.match("whitespace-","whiteSpace"),t.match("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),t.match("break-words",{overflowWrap:"break-word"}),t.match("break-all",{wordBreak:"break-all"}),t.match("break-keep",{wordBreak:"keep-all"}),t.matchColor("caret-",{opacityVariable:!1,opacitySection:"opacity"}),t.matchColor("accent-",{opacityVariable:!1,opacitySection:"opacity"}),t.match("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:t})=>`linear-gradient(to ${h(t," ")},var(--tw-gradient-stops))`),t.matchColor("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-gradient-from":t.value,"--tw-gradient-to":t.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),t.matchColor("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-gradient-to":t.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${t.value},var(--tw-gradient-to)`})),t.matchColor("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),t.match("bg-(fixed|local|scroll)","backgroundAttachment"),t.match("bg-origin-(border|padding|content)","backgroundOrigin",({1:t})=>t+"-box"),t.match(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),t.match("bg-blend-","backgroundBlendMode"),t.match("bg-clip-(border|padding|content|text)","backgroundClip",({1:t})=>t+("text"==t?"":"-box")),t.matchTheme("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),t.matchColor("bg-",{section:"backgroundColor"}),t.matchTheme("bg-","backgroundImage"),t.matchTheme("bg-","backgroundPosition"),t.match("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",m),t.matchTheme("bg-","backgroundSize"),t.matchTheme("rounded(?:$|-)","borderRadius"),t.matchTheme("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:t,_:e})=>{let o={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[t]||[t,t];return{[`border-${h(o[0])}-radius`]:e,[`border-${h(o[1])}-radius`]:e}}),t.match("border-(collapse|separate)","borderCollapse"),t.matchTheme("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),t.match("border-(solid|dashed|dotted|double|none)","borderStyle"),t.matchTheme("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:t,_:e})=>o({},T({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),{["--tw-border-spacing"+(t||"-x")]:e,["--tw-border-spacing"+(t||"-y")]:e,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),t.matchColor("border-([xytrbl])-",{section:"borderColor"},u("border","Color")),t.matchColor("border-"),t.matchTheme("border-([xytrbl])(?:$|-)","borderWidth",u("border","Width")),t.matchTheme("border(?:$|-)","borderWidth"),t.matchTheme("divide-opacity(?:$|-)","divideOpacity",({_:t})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":t}})),t.match("divide-(solid|dashed|dotted|double|none)",({1:t})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:t}})),t.match("divide-([xy]-reverse)",({1:t})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+t]:"1"}})),t.matchTheme("divide-([xy])(?:$|-)","divideWidth",({1:t,_:e})=>{let o={x:"lr",y:"tb"}[t];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${t}-reverse`]:"0",[`border-${h(o[0])}Width`]:`calc(${e} * calc(1 - var(--tw-divide-${t}-reverse)))`,[`border-${h(o[1])}Width`]:`calc(${e} * var(--tw-divide-${t}-reverse))`}}}),t.matchColor("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),t.matchTheme("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),t.matchColor("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),t.matchTheme("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),t.match("ring-inset",{"--tw-ring-inset":"inset"}),t.matchColor("ring-",{property:"--tw-ring-color"}),t.matchTheme("ring(?:$|-)","ringWidth",({_:e},{theme:r})=>o({},T({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":r("ringOffsetWidth","","0px"),"--tw-ring-offset-color":t.toColorValue(r("ringOffsetColor","","#fff")),"--tw-ring-color":t.toColorValue(r("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":r("ringOpacity","","0.5")}}),{"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),t.matchColor("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-shadow-color":t.value,"--tw-shadow":"var(--tw-shadow-colored)"})),t.matchTheme("shadow(?:$|-)","boxShadow",({_:t})=>o({},T({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),{"--tw-shadow":p(t),"--tw-shadow-colored":p(t).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),t.matchTheme("(opacity)-"),t.match("mix-blend-","mixBlendMode"),...b(),...b("backdrop-"),t.matchTheme("transition(?:$|-)","transitionProperty",(t,{theme:e})=>({transitionProperty:p(t),transitionTimingFunction:"none"==t._?void 0:p(e("transitionTimingFunction","")),transitionDuration:"none"==t._?void 0:p(e("transitionDuration",""))})),t.matchTheme("duration(?:$|-)","transitionDuration","transitionDuration",p),t.matchTheme("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",p),t.matchTheme("delay(?:$|-)","transitionDelay","transitionDelay",p),t.matchTheme("animate(?:$|-)","animation",(t,{theme:e,h:o,e:r})=>{let a=p(t),i=a.split(" "),n=e("keyframes",i[0]);return n?{["@keyframes "+(i[0]=r(o(i[0])))]:n,animation:i.join(" ")}:{animation:a}}),"(transform)-(none)",t.match("transform",x),t.match("transform-(cpu|gpu)",({1:t})=>({"--tw-transform":w("gpu"==t)})),t.matchTheme("scale(-[xy])?-","scale",({1:t,_:e})=>o({["--tw-scale"+(t||"-x")]:e,["--tw-scale"+(t||"-y")]:e},x())),t.matchTheme("-?(rotate)-","rotate",f),t.matchTheme("-?(translate-[xy])-","translate",f),t.matchTheme("-?(skew-[xy])-","skew",f),t.match("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",m),"(appearance)-",t.matchTheme("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",t.matchTheme("(cursor)-"),"(cursor)-",t.match("snap-(none)","scroll-snap-type"),t.match("snap-(x|y|both)",({1:t})=>o({},T({"--tw-scroll-snap-strictness":"proximity"}),{"scroll-snap-type":t+" var(--tw-scroll-snap-strictness)"})),t.match("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),t.match("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),t.match("snap-(normal|always)","scroll-snap-stop"),t.match("scroll-(auto|smooth)","scroll-behavior"),t.matchTheme("scroll-p([xytrbl])?(?:$|-)","padding",u("scroll-padding")),t.matchTheme("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",u("scroll-margin")),t.match("touch-(auto|none|manipulation)","touch-action"),t.match("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:t,2:e,3:r})=>o({},T({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),{[`--tw-${e?"pan-x":r?"pan-y":t}`]:t,"touch-action":"var(--tw-touch-action)"})),t.match("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),t.match("outline",{outlineStyle:"solid"}),t.match("outline-(dashed|dotted|double)","outlineStyle"),t.matchTheme("-?(outline-offset)-"),t.matchColor("outline-",{opacityVariable:!1,opacitySection:"opacity"}),t.matchTheme("outline-","outlineWidth"),"(pointer-events)-",t.matchTheme("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:t})=>({x:"horizontal",y:"vertical"})[t]||t||"both"],t.match("select-(none|text|all|auto)","userSelect"),t.matchColor("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),t.matchColor("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),t.matchTheme("stroke-","strokeWidth"),t.match("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),t.match("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function m(t){return("string"==typeof t?t:t[1]).replace(/-/g," ").trim()}function d(t){return("string"==typeof t?t:t[1]).replace("col","column")}function h(t,e="-"){let o=[];for(let r of t)o.push({t:"top",r:"right",b:"bottom",l:"left"}[r]);return o.join(e)}function p(t){return t&&""+(t._||t)}function g({$$:t}){return(({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"})[t[3]||""]||"")+t}function u(e,r=""){return({1:a,_:i})=>{let n={x:"lr",y:"tb"}[a]||a+a;return n?o({},t.toCSS(e+"-"+h(n[0])+r,i),t.toCSS(e+"-"+h(n[1])+r,i)):t.toCSS(e+r,i)}}function b(e=""){let r=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),a={};for(let i of r)a[`--tw-${e}${i}`]="var(--tw-empty,/*!*/ /*!*/)";return a=o({},T(a),{[`${e}filter`]:r.map(t=>`var(--tw-${e}${t})`).join(" ")}),[`(${e}filter)-(none)`,t.match(`${e}filter`,a),...r.map(r=>t.matchTheme(`${"h"==r[0]?"-?":""}(${e}${r})(?:$|-)`,r,({1:e,_:i})=>o({[`--tw-${e}`]:t.asArray(i).map(t=>`${r}(${t})`).join(" ")},a)))]}function f({1:t,_:e}){return o({["--tw-"+t]:e},x())}function x(){return o({},T({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":w()}),{transform:"var(--tw-transform)"})}function w(t){return[t?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function y({1:t,2:e}){return`${t} ${e} / ${t} ${e}`}function v({1:t}){return`repeat(${t},minmax(0,1fr))`}function T(t){return{"@layer defaults":{"*,::before,::after":t,"::backdrop":t}}}let k=[["sticky","@supports ((position: -webkit-sticky) or (position:sticky))"],["motion-reduce","@media (prefers-reduced-motion:reduce)"],["motion-safe","@media (prefers-reduced-motion:no-preference)"],["print","@media print"],["(portrait|landscape)",({1:t})=>`@media (orientation:${t})`],["contrast-(more|less)",({1:t})=>`@media (prefers-contrast:${t})`],["(first-(letter|line)|placeholder|backdrop|before|after)",({1:t})=>`&::${t}`],["(marker|selection)",({1:t})=>`& *::${t},&::${t}`],["file","&::file-selector-button"],["(first|last|only)",({1:t})=>`&:${t}-child`],["even","&:nth-child(2n)"],["odd","&:nth-child(odd)"],["open","&[open]"],["(aria|data)-",({1:e,$$:o},r)=>o&&`&[${e}-${r.theme(e,o)||t.arbitrary(o,"",r)||`${o}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:e,3:o="",4:r,5:a="",6:i=o},{e:n,h:c,v:l})=>{let s=t.normalize(a)||("["==r[0]?r:l(r.slice(1)));return`${(s.includes("&")?s:"&"+s).replace(/&/g,`:merge(.${n(c(e+i))})`)}${"p"==e[0]?"~":" "}&`}],["(ltr|rtl)",({1:t})=>`[dir="${t}"] &`],["supports-",({$$:e},o)=>{if(e&&(e=o.theme("supports",e)||t.arbitrary(e,"",o)),e)return e.includes(":")||(e+=":var(--tw)"),/^\w*\s*\(/.test(e)||(e=`(${e})`),`@supports ${e.replace(/\b(and|or|not)\b/g," $1 ").trim()}`}],["max-",({$$:e},o)=>{if(e&&(e=o.theme("screens",e)||t.arbitrary(e,"",o)),"string"==typeof e)return`@media not all and (min-width:${e})`}],["min-",({$$:e},o)=>(e&&(e=t.arbitrary(e,"",o)),e&&`@media (min-width:${e})`)],[/^\[(.+)]$/,({1:e})=>/[&@]/.test(e)&&t.normalize(e).replace(/[}]+$/,"").split("{")]];return function({colors:t,disablePreflight:e}={}){return{preflight:e?void 0:l,theme:o({},r,{colors:o({inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff"},t)}),variants:k,rules:s,finalize:t=>t.n&&t.d&&t.r.some(t=>/^&::(before|after)$/.test(t))&&!/(^|;)content:/.test(t.d)?o({},t,{d:"content:var(--tw-content);"+t.d}):t}}}(twind.core);//# sourceMappingURL=base.global.js.map