UNPKG

@isotope/prototope

Version:

Isotope-based JavaScript library for speedy UI prototyping

7 lines (6 loc) 24.8 kB
/*! * @isotope/prototope v0.2.0 * (c) Arek Nawo <areknawo@areknawo.com> (areknawo.com) * MIT-licensed */ !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports):"function"==typeof define&&define.amd?define(["exports"],o):o((e=e||self).Prototope={})}(this,(function(e){"use strict";const o=e=>o=>t=>{const{data:r={}}=t.getContext("prototope")||{};"function"==typeof o?(r.breakpoint=e,o(t)):o.forEach(o=>{r.breakpoint=e,o(t)})},t=o("sm"),r=o("md"),i=o("lg"),n=o("xl");class a{randomID(){return"_"+Math.random().toString(36).slice(2,11)}}class d extends a{constructor(e){super(),this.breakpoints={},this.breakpointsCount=0,this.listing={};const o=document.createElement("style");document.head.appendChild(o),this.config=e,this.styleSheet=o.sheet}addBreakpoint(e){this.styleSheet&&!this.breakpoints[e]&&(this.breakpoints[e]=this.styleSheet.cssRules[this.styleSheet.insertRule(`@media(min-width:${this.config.breakpoints[e]}px){}`,this.styleSheet.cssRules.length)],this.breakpointsCount+=1)}addRule(e,o={}){const t=o.className||this.randomID(),r=`${t}${o.subSelector?":"+o.subSelector:""}`,i=`${o.breakpoint?o.breakpoint+"-":""}${r}`;let n=this.styleSheet;if(o.breakpoint&&(this.breakpoints[o.breakpoint]||this.addBreakpoint(o.breakpoint),n=this.breakpoints[o.breakpoint]),!this.listing[i]){const e=n.cssRules.length-this.breakpointsCount;this.listing[i]=n.cssRules[n.insertRule(`.${r}{}`,e>0?e:0)]}return Object.assign(this.listing[i].style,e),t}getRule(e){const o=`${e.className}${e.subSelector?":"+e.subSelector:""}`,t=`${e.breakpoint?e.breakpoint+"-":""}${o}`,r=this.listing[t];return r?r.style:null}getCSS(){let e="";for(const o of this.styleSheet.cssRules)e+=o.cssText;return e}}const l={lg:1024,md:768,sm:640,xl:1280},s={dark:"#595b66",darker:"#1f2026",light:"#ecedef",lighter:"#f2f3f5",primary:"#e65100",secondary:"#ff9d00"},u=e=>o=>t=>{const{data:r={}}=t.getContext("prototope")||{};"function"==typeof o?(r.subSelector=e,o(t)):o.forEach(o=>{r.subSelector=e,o(t)})},b=u("first-child"),m=u("last-child"),p=u(":after"),c=u(":before"),g=u("nth-child(odd)"),f=u("nth-child(even)"),h=u("hover"),x=u("focus"),R=u("active"),w=u("visited"),S=u("disabled"),T=u(":placeholder"),B=e=>o=>{const{config:t,data:r,registry:i}=o.getContext("prototope")||{};if(t&&r&&i){const n="object"==typeof e?e:e(t,r,i);r.className&&!o.hasClass(r.className)&&(r.className=null),r.className=i.addRule(n,r),o.hasClass(r.className)||o.addClass(r.className),r.breakpoint=null,r.subSelector=null}},k=B({borderWidth:"0",clip:"rect(0, 0, 0, 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}),L=B({clip:"auto",height:"auto",margin:"0",overflow:"visible",padding:"0",position:"static",whiteSpace:"normal",width:"auto"}),y=B({backgroundAttachment:"fixed"}),v=B({backgroundAttachment:"local"}),W=B({backgroundAttachment:"scroll"}),C=B(({colors:e})=>({backgroundImage:`linear-gradient(45deg,${e.primary},${e.secondary})`})),X=B({backgroundPosition:"bottom"}),j=B({backgroundPosition:"center"}),N=B({backgroundPosition:"left"}),F=B({backgroundPosition:"left bottom"}),A=B({backgroundPosition:"left top"}),P=B({backgroundPosition:"right"}),z=B({backgroundPosition:"right bottom"}),O=B({backgroundPosition:"right top"}),$=B({backgroundPosition:"top"}),D=B({backgroundRepeat:"repeat"}),M=B({backgroundRepeat:"no-repeat"}),E=B({backgroundRepeat:"repeat-x"}),Y=B({backgroundRepeat:"repeat-y"}),H=B({backgroundRepeat:"round"}),I=B({backgroundRepeat:"space"}),G=B({backgroundSize:"auto"}),U=B({backgroundSize:"cover"}),V=B({backgroundSize:"contain"}),_=B({borderRadius:"0"}),J=B({borderRadius:"0.125rem"}),q=B({borderRadius:"0.25rem"}),K=B({borderRadius:"0.375rem"}),Q=B({borderRadius:"0.5rem"}),Z=B({borderRadius:"1rem"}),ee=B({borderRadius:"2rem"}),oe=B({borderRadius:"9999px"}),te=B({borderTopLeftRadius:"0",borderTopRightRadius:"0"}),re=B({borderBottomRightRadius:"0",borderTopRightRadius:"0"}),ie=B({borderBottomLeftRadius:"0",borderBottomRightRadius:"0"}),ne=B({borderBottomLeftRadius:"0",borderTopLeftRadius:"0"}),ae=B({borderTopLeftRadius:"0.125rem",borderTopRightRadius:"0.125rem"}),de=B({borderBottomRightRadius:"0.125rem",borderTopRightRadius:"0.125rem"}),le=B({borderBottomLeftRadius:"0.125rem",borderBottomRightRadius:"0.125rem"}),se=B({borderBottomLeftRadius:"0.125rem",borderTopLeftRadius:"0.125rem"}),ue=B({borderTopLeftRadius:"0.25rem",borderTopRightRadius:"0.25rem"}),be=B({borderBottomRightRadius:"0.25rem",borderTopRightRadius:"0.25rem"}),me=B({borderBottomLeftRadius:"0.25rem",borderBottomRightRadius:"0.25rem"}),pe=B({borderBottomLeftRadius:"0.25rem",borderTopLeftRadius:"0.25rem"}),ce=B({borderTopLeftRadius:"0.375rem",borderTopRightRadius:"0.375rem"}),ge=B({borderBottomRightRadius:"0.375rem",borderTopRightRadius:"0.375rem"}),fe=B({borderBottomLeftRadius:"0.375rem",borderBottomRightRadius:"0.375rem"}),he=B({borderBottomLeftRadius:"0.375rem",borderTopLeftRadius:"0.375rem"}),xe=B({borderTopLeftRadius:"0.5rem",borderTopRightRadius:"0.5rem"}),Re=B({borderBottomRightRadius:"0.5rem",borderTopRightRadius:"0.5rem"}),we=B({borderBottomLeftRadius:"0.5rem",borderBottomRightRadius:"0.5rem"}),Se=B({borderBottomLeftRadius:"0.5rem",borderTopLeftRadius:"0.5rem"}),Te=B({borderTopLeftRadius:"1rem",borderTopRightRadius:"1rem"}),Be=B({borderBottomRightRadius:"1rem",borderTopRightRadius:"1rem"}),ke=B({borderBottomLeftRadius:"1rem",borderBottomRightRadius:"1rem"}),Le=B({borderBottomLeftRadius:"1rem",borderTopLeftRadius:"1rem"}),ye=B({borderTopLeftRadius:"2rem",borderTopRightRadius:"2rem"}),ve=B({borderBottomRightRadius:"2rem",borderTopRightRadius:"2rem"}),We=B({borderBottomLeftRadius:"2rem",borderBottomRightRadius:"2rem"}),Ce=B({borderBottomLeftRadius:"2rem",borderTopLeftRadius:"2rem"}),Xe=B({borderTopLeftRadius:"9999px",borderTopRightRadius:"9999px"}),je=B({borderBottomRightRadius:"9999px",borderTopRightRadius:"9999px"}),Ne=B({borderBottomLeftRadius:"9999px",borderBottomRightRadius:"9999px"}),Fe=B({borderBottomLeftRadius:"9999px",borderTopLeftRadius:"9999px"}),Ae=B({borderTopLeftRadius:"0"}),Pe=B({borderTopRightRadius:"0"}),ze=B({borderBottomRightRadius:"0"}),Oe=B({borderBottomLeftRadius:"0"}),$e=B({borderTopLeftRadius:"0.125rem"}),De=B({borderTopRightRadius:"0.125rem"}),Me=B({borderBottomRightRadius:"0.125rem"}),Ee=B({borderBottomLeftRadius:"0.125rem"}),Ye=B({borderTopLeftRadius:"0.25rem"}),He=B({borderTopRightRadius:"0.25rem"}),Ie=B({borderBottomRightRadius:"0.25rem"}),Ge=B({borderBottomLeftRadius:"0.25rem"}),Ue=B({borderTopLeftRadius:"0.375rem"}),Ve=B({borderTopRightRadius:"0.375rem"}),_e=B({borderBottomRightRadius:"0.375rem"}),Je=B({borderBottomLeftRadius:"0.375rem"}),qe=B({borderTopLeftRadius:"0.5rem"}),Ke=B({borderTopRightRadius:"0.5rem"}),Qe=B({borderBottomRightRadius:"0.5rem"}),Ze=B({borderBottomLeftRadius:"0.5rem"}),eo=B({borderTopLeftRadius:"1rem"}),oo=B({borderTopRightRadius:"1rem"}),to=B({borderBottomRightRadius:"1rem"}),ro=B({borderBottomLeftRadius:"1rem"}),io=B({borderTopLeftRadius:"2rem"}),no=B({borderTopRightRadius:"2rem"}),ao=B({borderBottomRightRadius:"2rem"}),lo=B({borderBottomLeftRadius:"2rem"}),so=B({borderTopLeftRadius:"9999px"}),uo=B({borderTopRightRadius:"9999px"}),bo=B({borderBottomRightRadius:"9999px"}),mo=B({borderBottomLeftRadius:"9999px"}),po=B({borderStyle:"solid"}),co=B({borderStyle:"dashed"}),go=B({borderStyle:"dotted"}),fo=B({borderStyle:"double"}),ho=B({borderStyle:"none"}),xo=e=>0===e?"0":e?e+"px":"1px",Ro=B({boxShadow:"0 0 0 1px rgba(0, 0, 0, 0.05)"}),wo=B({boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)"}),So=B({boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)"}),To=B({boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"}),Bo=B({boxShadow:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)"}),ko=B({boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)"}),Lo=B({boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.25)"}),yo=B({boxShadow:"inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)"}),vo=B({boxShadow:"0 0 0 3px rgba(66, 153, 225, 0.5)"}),Wo=B({boxShadow:"none"}),Co=B({alignContent:"flex-start"}),Xo=B({alignContent:"center"}),jo=B({alignContent:"flex-end"}),No=B({alignContent:"space-between"}),Fo=B({alignContent:"space-around"}),Ao=B({alignItems:"stretch"}),Po=B({alignItems:"flex-start"}),zo=B({alignItems:"center"}),Oo=B({alignItems:"flex-end"}),$o=B({alignItems:"center"}),Do=B({alignSelf:"auto"}),Mo=B({alignSelf:"flex-start"}),Eo=B({alignSelf:"center"}),Yo=B({alignSelf:"flex-end"}),Ho=B({alignSelf:"stretch"}),Io=B({flexDirection:"row"}),Go=B({flexDirection:"row-reverse"}),Uo=B({flexDirection:"column"}),Vo=B({flexDirection:"column-reverse"}),_o=B({flex:"0 1 auto"}),Jo=B({flex:"1 1 0%"}),qo=B({flex:"1 1 auto"}),Ko=B({flex:"none"}),Qo=B({justifyContent:"flex-start"}),Zo=B({justifyContent:"center"}),et=B({justifyContent:"flex-end"}),ot=B({justifyContent:"space-between"}),tt=B({justifyContent:"space-around"}),rt=B({flexWrap:"nowrap"}),it=B({flexWrap:"wrap"}),nt=B({flexWrap:"wrap-reverse"}),at=e=>0===e?"0":"px"===e?"1px":e/4+"rem",dt=B({gridAutoFlow:"row"}),lt=B({gridAutoFlow:"column"}),st=B({gridAutoFlow:"row dense"}),ut=B({gridAutoFlow:"column dense"}),bt=B({gridColumn:"auto"}),mt=B({gridRow:"auto"}),pt=B({appearance:"none"}),ct=B({cursor:"auto"}),gt=B({cursor:"default"}),ft=B({cursor:"pointer"}),ht=B({cursor:"wait"}),xt=B({cursor:"text"}),Rt=B({cursor:"move"}),wt=B({cursor:"not-allowed"}),St=B({outline:"0"}),Tt=B({pointerEvents:"none"}),Bt=B({pointerEvents:"auto"}),kt=B({resize:"none"}),Lt=B({resize:"both"}),yt=B({resize:"vertical"}),vt=B({resize:"horizontal"}),Wt=B({userSelect:"none"}),Ct=B({userSelect:"text"}),Xt=B({userSelect:"all"}),jt=B({userSelect:"auto"}),Nt=B({boxSizing:"border-box"}),Ft=B({boxSizing:"content-box"}),At=B({clear:"left"}),Pt=B({clear:"right"}),zt=B({clear:"both"}),Ot=B({clear:"none"}),$t=B((e,{breakpoint:o})=>({width:o?e.breakpoints[o]+"px":"100%"})),Dt=e=>({display:e}),Mt=B(Dt("none")),Et=B(Dt("block")),Yt=B(Dt("inline-block")),Ht=B(Dt("inline")),It=B(Dt("flex")),Gt=B(Dt("inline-flex")),Ut=B(Dt("grid")),Vt=B(Dt("table")),_t=B(Dt("table-caption")),Jt=B(Dt("table-cell")),qt=B(Dt("table-column")),Kt=B(Dt("table-column-group")),Qt=B(Dt("table-footer-group")),Zt=B(Dt("table-header-group")),er=B(Dt("table-row-group")),or=B(Dt("table-row")),tr=B({float:"right"}),rr=B({float:"left"}),ir=B({float:"none"}),nr=p(B({clear:"both",content:'""',display:"table"})),ar=B({objectFit:"contain"}),dr=B({objectFit:"cover"}),lr=B({objectFit:"fill"}),sr=B({objectFit:"none"}),ur=B({objectFit:"scale-down"}),br=B({objectPosition:"bottom"}),mr=B({objectPosition:"center"}),pr=B({objectPosition:"left"}),cr=B({objectPosition:"left bottom"}),gr=B({objectPosition:"left top"}),fr=B({objectPosition:"right"}),hr=B({objectPosition:"right bottom"}),xr=B({objectPosition:"right top"}),Rr=B({objectPosition:"top"}),wr=B({overflow:"auto"}),Sr=B({overflow:"hidden"}),Tr=B({overflow:"visible"}),Br=B({overflow:"scroll"}),kr=B({overflowX:"auto"}),Lr=B({overflowY:"auto"}),yr=B({overflowX:"hidden"}),vr=B({overflowY:"hidden"}),Wr=B({overflowX:"visible"}),Cr=B({overflowY:"visible"}),Xr=B({overflowX:"scroll"}),jr=B({overflowY:"scroll"}),Nr=B({WebkitOverflowScrolling:"touch"}),Fr=B({WebkitOverflowScrolling:"auto"}),Ar=e=>(o="auto")=>B(e("number"==typeof o?o+"px":o)),Pr=Ar(e=>({bottom:e,left:e,right:e,top:e})),zr=Ar(e=>({bottom:e,top:e})),Or=Ar(e=>({left:e,right:e})),$r=Ar(e=>({bottom:e})),Dr=Ar(e=>({top:e})),Mr=Ar(e=>({left:e})),Er=Ar(e=>({right:e})),Yr=B({position:"static"}),Hr=B({position:"fixed"}),Ir=B({position:"absolute"}),Gr=B({position:"relative"}),Ur=B({position:"sticky"}),Vr=B({visibility:"visible"}),_r=B({visibility:"hidden"}),Jr=e=>0===e?"0":"px"===e?"1px":"-px"===e?"-1px":e/4+"rem",qr=e=>0===e?"0":"px"===e?"1px":e/4+"rem",Kr=B({maxHeight:"100%"}),Qr=B({maxHeight:"100vh"}),Zr=B({maxWidth:"20rem"}),ei=B({maxWidth:"24rem"}),oi=B({maxWidth:"28rem"}),ti=B({maxWidth:"32rem"}),ri=B({maxWidth:"36rem"}),ii=B({maxWidth:"42rem"}),ni=B({maxWidth:"48rem"}),ai=B({maxWidth:"56rem"}),di=B({maxWidth:"64rem"}),li=B({maxWidth:"72rem"}),si=B({maxWidth:"100%"}),ui=B(({breakpoints:e})=>({maxWidth:e.sm+"px"})),bi=B(({breakpoints:e})=>({maxWidth:e.md+"px"})),mi=B(({breakpoints:e})=>({maxWidth:e.lg+"px"})),pi=B(({breakpoints:e})=>({maxWidth:e.xl+"px"})),ci=B({maxWidth:"none"}),gi=B({minHeight:"0"}),fi=B({minHeight:"100%"}),hi=B({minHeight:"100vh"}),xi=B({minWidth:"0"}),Ri=B({minWidth:"100%"}),wi=B({fill:"currentColor"}),Si=B({stroke:"currentColor"}),Ti=B({borderCollapse:"collapse"}),Bi=B({borderCollapse:"separate"}),ki=B({tableLayout:"auto"}),Li=B({tableLayout:"fixed"}),yi=e=>B((o,t,r)=>{let{transform:i=""}=r.getRule(t)||{};return Object.entries(e).forEach(([e,o])=>{if(i.includes(e)){const t=new RegExp(e+"\\(.+?\\)","g");i=i.replace(t,`${e}(${o})`)}else i+=` ${e}(${o})`}),{transform:i.trim()}}),vi=B({transformOrigin:"center"}),Wi=B({transformOrigin:"top"}),Ci=B({transformOrigin:"top right"}),Xi=B({transformOrigin:"right"}),ji=B({transformOrigin:"bottom right"}),Ni=B({transformOrigin:"bottom"}),Fi=B({transformOrigin:"bottom left"}),Ai=B({transformOrigin:"left"}),Pi=B({transformOrigin:"top left"}),zi=e=>"1/2"===e?"50%":"-1/2"===e?"-50%":"px"===e?"1px":"-px"===e?"-1px":"full"===e?"100%":"-full"===e?"-100%":e/4+"rem",Oi=B({transitionProperty:"none"}),$i=B({transitionProperty:"all"}),Di=B({transitionProperty:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform"}),Mi=B({transitionProperty:"background-color, border-color, color, fill, stroke"}),Ei=B({transitionProperty:"opacity"}),Yi=B({transitionProperty:"box-shadow"}),Hi=B({transitionProperty:"transform"}),Ii=B({transitionTimingFunction:"linear"}),Gi=B({transitionTimingFunction:"cubic-bezier(0.4, 0, 1, 1)"}),Ui=B({transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)"}),Vi=B({transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)"}),_i=B({fontSize:".75rem"}),Ji=B({fontSize:".875rem"}),qi=B({fontSize:"1rem"}),Ki=B({fontSize:"1.125rem"}),Qi=B({fontSize:"1.25rem"}),Zi=B({fontSize:"1.5rem"}),en=B({fontSize:"1.875rem"}),on=B({fontSize:"2.25rem"}),tn=B({fontSize:"3rem"}),rn=B({fontSize:"4rem"}),nn=B({MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased"}),an=B({MozOsxFontSmoothing:"auto",WebkitFontSmoothing:"auto"}),dn=B({fontStyle:"italic"}),ln=B({fontStyle:"normal"}),sn=B({fontWeight:"100"}),un=B({fontWeight:"200"}),bn=B({fontWeight:"300"}),mn=B({fontWeight:"400"}),pn=B({fontWeight:"500"}),cn=B({fontWeight:"600"}),gn=B({fontWeight:"700"}),fn=B({fontWeight:"800"}),hn=B({fontWeight:"900"}),xn=B({letterSpacing:"-0.05em"}),Rn=B({letterSpacing:"-0.025em"}),wn=B({letterSpacing:"0"}),Sn=B({letterSpacing:"0.025em"}),Tn=B({letterSpacing:"0.05em"}),Bn=B({letterSpacing:"0.1em"}),kn=B({listStylePosition:"inside"}),Ln=B({listStylePosition:"outside"}),yn=B({listStyleType:"none"}),vn=B({listStyleType:"disc"}),Wn=B({listStyleType:"decimal"}),Cn=B({textAlign:"left"}),Xn=B({textAlign:"center"}),jn=B({textAlign:"right"}),Nn=B({textAlign:"justify"}),Fn=B({textDecoration:"underline"}),An=B({textDecoration:"line-through"}),Pn=B({textDecoration:"none"}),zn=B({textTransform:"uppercase"}),On=B({textTransform:"lowercase"}),$n=B({textTransform:"capitalize"}),Dn=B({textTransform:"none"}),Mn=B({verticalAlign:"baseline"}),En=B({verticalAlign:"top"}),Yn=B({verticalAlign:"middle"}),Hn=B({verticalAlign:"bottom"}),In=B({verticalAlign:"text-top"}),Gn=B({verticalAlign:"text-bottom"}),Un=B({whiteSpace:"normal"}),Vn=B({whiteSpace:"nowrap"}),_n=B({whiteSpace:"pre"}),Jn=B({whiteSpace:"pre-line"}),qn=B({whiteSpace:"pre-wrap"}),Kn=B({overflowWrap:"normal",wordBreak:"normal"}),Qn=B({overflowWrap:"break-word"}),Zn=B({wordBreak:"break-all"}),ea=B({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});e.$static=Yr,e.Prototope=(e={},o)=>t=>{const r=(({breakpoints:e={},colors:o={}})=>({breakpoints:Object.assign(l,e),colors:Object.assign(s,o)}))(e),i=t.child("div",{context:{prototope:{config:r,data:{},registry:o?o(r):new d(r)}}});return{getCSS:()=>{const e=i.getContext("prototope");return e?e.registry.getCSS():""},node:i}},e.PrototopeDOMRegistry=d,e.PrototopeRegistry=a,e.absolute=Ir,e.active=R,e.after=p,e.alignBaseline=Mn,e.alignBottom=Hn,e.alignMiddle=Yn,e.alignTextBottom=Gn,e.alignTextTop=In,e.alignTop=En,e.antialiased=nn,e.appearanceNone=pt,e.before=c,e.bgAuto=G,e.bgBottom=X,e.bgCenter=j,e.bgColor=e=>B(({colors:o})=>({backgroundColor:o[e]})),e.bgContain=V,e.bgCover=U,e.bgFixed=y,e.bgGradient=C,e.bgLeft=N,e.bgLeftBottom=F,e.bgLeftTop=A,e.bgLocal=v,e.bgNoRepeat=M,e.bgRepeat=D,e.bgRepeatRound=H,e.bgRepeatSpace=I,e.bgRepeatX=E,e.bgRepeatY=Y,e.bgRight=P,e.bgRightBottom=z,e.bgRightTop=O,e.bgScroll=W,e.bgTop=$,e.bgUrl=e=>B({backgroundImage:`url("${e}")`}),e.block=Et,e.border=e=>B({borderWidth:xo(e)}),e.borderB=e=>B({borderBottomWidth:xo(e)}),e.borderCollapse=Ti,e.borderColor=e=>B(({colors:o})=>({borderColor:o[e]})),e.borderDashed=co,e.borderDotted=go,e.borderDouble=fo,e.borderL=e=>B({borderLeftWidth:xo(e)}),e.borderNone=ho,e.borderR=e=>B({borderRightWidth:xo(e)}),e.borderSeparate=Bi,e.borderSolid=po,e.borderT=e=>B({borderTopWidth:xo(e)}),e.bottom=$r,e.boxBorder=Nt,e.boxContent=Ft,e.breakAll=Zn,e.breakNormal=Kn,e.breakWords=Qn,e.capitalize=$n,e.clearBoth=zt,e.clearLeft=At,e.clearNone=Ot,e.clearRight=Pt,e.clearfix=nr,e.colAuto=bt,e.colEnd=e=>B({gridColumnEnd:""+e}),e.colGap=e=>B({columnGap:at(e)}),e.colSpan=e=>B({gridColumn:`span ${e}/span ${e}`}),e.colStart=e=>B({gridColumnStart:""+e}),e.container=$t,e.contentAround=Fo,e.contentBetween=No,e.contentCenter=Xo,e.contentEnd=jo,e.contentStart=Co,e.createSubSelector=u,e.createUtil=B,e.cursorAuto=ct,e.cursorDefault=gt,e.cursorMove=Rt,e.cursorNotAllowed=wt,e.cursorPointer=ft,e.cursorText=xt,e.cursorWait=ht,e.disabled=S,e.duration=e=>B({transitionDuration:e+"ms"}),e.easeIn=Gi,e.easeInOut=Vi,e.easeLinear=Ii,e.easeOut=Ui,e.even=f,e.fillCurrent=wi,e.first=b,e.fixed=Hr,e.flex=It,e.flex1=Jo,e.flexAuto=qo,e.flexCol=Uo,e.flexColReverse=Vo,e.flexGrow=(e=0)=>B({flexGrow:""+e}),e.flexInitial=_o,e.flexNoWrap=rt,e.flexNone=Ko,e.flexRow=Io,e.flexRowReverse=Go,e.flexShrink=(e=0)=>B({flexShrink:""+e}),e.flexWrap=it,e.flexWrapReverse=nt,e.floatLeft=rr,e.floatNone=ir,e.floatRight=tr,e.focus=x,e.fontBlack=hn,e.fontBold=gn,e.fontExtrabold=fn,e.fontHairline=sn,e.fontLight=bn,e.fontMedium=pn,e.fontNormal=mn,e.fontSemibold=cn,e.fontThin=un,e.gap=e=>B({gap:at(e)}),e.grid=Ut,e.gridCols=e=>{let o="";return o="number"==typeof e?`repeat(${e},minmax(0,1fr))`:"none",B({gridTemplateColumns:o})},e.gridFlowCol=lt,e.gridFlowColDense=ut,e.gridFlowRow=dt,e.gridFlowRowDense=st,e.gridRows=e=>{let o="";return o="number"==typeof e?`repeat(${e},minmax(0,1fr))`:"none",B({gridTemplateRows:o})},e.h=e=>{let o="";return o=0===e?"0":"px"===e?"1px":"auto"===e?"auto":"full"===e?"100%":"screen"===e?"100vh":e/4+"rem",B({height:o})},e.hidden=Mt,e.hover=h,e.inline=Ht,e.inlineBlock=Yt,e.inlineFlex=Gt,e.inset=Pr,e.insetX=Or,e.insetY=zr,e.invisible=_r,e.italic=dn,e.itemsBaseline=$o,e.itemsCenter=zo,e.itemsEnd=Oo,e.itemsStart=Po,e.itemsStretch=Ao,e.justifyAround=tt,e.justifyBetween=ot,e.justifyCenter=Zo,e.justifyEnd=et,e.justifyStart=Qo,e.last=m,e.leading=e=>{let o="";return o="none"===e?"1":"tight"===e?"1.25":"snug"===e?"1.375":"normal"===e?"1.5":"relaxed"===e?"1.625":"loose"===e?"2":e/4+"rem",B({lineHeight:o})},e.left=Mr,e.lg=i,e.lineThrough=An,e.listDecimal=Wn,e.listDisc=vn,e.listInside=kn,e.listNone=yn,e.listOutside=Ln,e.lowercase=On,e.m=e=>B({margin:Jr(e)}),e.maxHFull=Kr,e.maxHScreen=Qr,e.maxW2Xl=ii,e.maxW3Xl=ni,e.maxW4Xl=ai,e.maxW5Xl=di,e.maxW6Xl=li,e.maxWFull=si,e.maxWLg=ti,e.maxWMd=oi,e.maxWNone=ci,e.maxWScreenLg=mi,e.maxWScreenMd=bi,e.maxWScreenSm=ui,e.maxWScreenXl=pi,e.maxWSm=ei,e.maxWXl=ri,e.maxWXs=Zr,e.mb=e=>B({marginBottom:Jr(e)}),e.md=r,e.minH0=gi,e.minHFull=fi,e.minHScreen=hi,e.minW0=xi,e.minWFull=Ri,e.ml=e=>B({marginLeft:Jr(e)}),e.mr=e=>B({marginRight:Jr(e)}),e.mt=e=>B({marginTop:Jr(e)}),e.mx=e=>{const o=Jr(e);return B({marginLeft:o,marginRight:o})},e.my=e=>{const o=Jr(e);return B({marginBottom:o,marginTop:o})},e.noUnderline=Pn,e.normalCase=Dn,e.notItalic=ln,e.notSrOnly=L,e.objectBottom=br,e.objectCenter=mr,e.objectContain=ar,e.objectCover=dr,e.objectFill=lr,e.objectLeft=pr,e.objectLeftBottom=cr,e.objectLeftTop=gr,e.objectNone=sr,e.objectRight=fr,e.objectRightBottom=hr,e.objectRightTop=xr,e.objectScaleDown=ur,e.objectTop=Rr,e.odd=g,e.opacity=e=>B({opacity:""+e/100}),e.order=e=>{let o="";return o="number"==typeof e?""+e:"first"===e?"-9999":"last"===e?"9999":"0",B({order:o})},e.originBottom=Ni,e.originBottomLeft=Fi,e.originBottomRight=ji,e.originCenter=vi,e.originLeft=Ai,e.originRight=Xi,e.originTop=Wi,e.originTopLeft=Pi,e.originTopRight=Ci,e.outlineNone=St,e.overflowAuto=wr,e.overflowHidden=Sr,e.overflowScroll=Br,e.overflowVisible=Tr,e.overflowXAuto=kr,e.overflowXHidden=yr,e.overflowXScroll=Xr,e.overflowXVisible=Wr,e.overflowYAuto=Lr,e.overflowYHidden=vr,e.overflowYScroll=jr,e.overflowYVisible=Cr,e.p=e=>B({padding:qr(e)}),e.pb=e=>B({paddingBottom:qr(e)}),e.pl=e=>B({paddingLeft:qr(e)}),e.placeholder=T,e.placeholderColor=e=>T(B(({colors:o})=>({color:o[e]}))),e.pointerEventsAuto=Bt,e.pointerEventsNone=Tt,e.pr=e=>B({paddingRight:qr(e)}),e.pt=e=>B({paddingTop:qr(e)}),e.px=e=>{const o=qr(e);return B({paddingLeft:o,paddingRight:o})},e.py=e=>{const o=qr(e);return B({paddingBottom:o,paddingTop:o})},e.relative=Gr,e.resize=Lt,e.resizeNone=kt,e.resizeX=vt,e.resizeY=yt,e.right=Er,e.rotate=e=>yi({rotate:0===e?"0":e+"deg"}),e.rounded=q,e.rounded2Xl=ee,e.roundedB=me,e.roundedB2Xl=We,e.roundedBFull=Ne,e.roundedBLg=we,e.roundedBMd=fe,e.roundedBNone=ie,e.roundedBSm=le,e.roundedBXl=ke,e.roundedBl=Ge,e.roundedBl2Xl=lo,e.roundedBlFull=mo,e.roundedBlLg=Ze,e.roundedBlMd=Je,e.roundedBlNone=Oe,e.roundedBlSm=Ee,e.roundedBlXl=ro,e.roundedBr=Ie,e.roundedBr2Xl=ao,e.roundedBrFull=bo,e.roundedBrLg=Qe,e.roundedBrMd=_e,e.roundedBrNone=ze,e.roundedBrSm=Me,e.roundedBrXl=to,e.roundedFull=oe,e.roundedL=pe,e.roundedL2Xl=Ce,e.roundedLFull=Fe,e.roundedLLg=Se,e.roundedLMd=he,e.roundedLNone=ne,e.roundedLSm=se,e.roundedLXl=Le,e.roundedLg=Q,e.roundedMd=K,e.roundedNone=_,e.roundedR=be,e.roundedR2Xl=ve,e.roundedRFull=je,e.roundedRLg=Re,e.roundedRMd=ge,e.roundedRNone=re,e.roundedRSm=de,e.roundedRXl=Be,e.roundedSm=J,e.roundedT=ue,e.roundedT2Xl=ye,e.roundedTFull=Xe,e.roundedTLg=xe,e.roundedTMd=ce,e.roundedTNone=te,e.roundedTSm=ae,e.roundedTXl=Te,e.roundedTl=Ye,e.roundedTl2Xl=io,e.roundedTlFull=so,e.roundedTlLg=qe,e.roundedTlMd=Ue,e.roundedTlNone=Ae,e.roundedTlSm=$e,e.roundedTlXl=eo,e.roundedTr=He,e.roundedTr2Xl=no,e.roundedTrFull=uo,e.roundedTrLg=Ke,e.roundedTrMd=Ve,e.roundedTrNone=Pe,e.roundedTrSm=De,e.roundedTrXl=oo,e.roundedXl=Z,e.rowAuto=mt,e.rowEnd=e=>B({gridRowEnd:""+e}),e.rowGap=e=>B({rowGap:at(e)}),e.rowSpan=e=>B({gridRow:`span ${e}/span ${e}`}),e.rowStart=e=>B({gridRowStart:""+e}),e.scale=e=>{const o=""+e/100;return yi({scaleX:o,scaleY:o})},e.scaleX=e=>yi({scaleX:""+e/100}),e.scaleY=e=>yi({scaleY:""+e/100}),e.scrollingAuto=Fr,e.scrollingTouch=Nr,e.selectAll=Xt,e.selectAuto=jt,e.selectNone=Wt,e.selectText=Ct,e.selfAuto=Do,e.selfCenter=Eo,e.selfEnd=Yo,e.selfStart=Mo,e.selfStretch=Ho,e.shadow=So,e.shadow2Xl=Lo,e.shadowInner=yo,e.shadowLg=Bo,e.shadowMd=To,e.shadowNone=Wo,e.shadowOutline=vo,e.shadowSm=wo,e.shadowXl=ko,e.shadowXs=Ro,e.skewX=e=>yi({skewX:0===e?"0":e+"deg"}),e.skewY=e=>yi({skewY:0===e?"0":e+"deg"}),e.sm=t,e.srOnly=k,e.sticky=Ur,e.stroke=e=>B({stroke:""+e}),e.strokeCurrent=Si,e.subpixelAntialiased=an,e.table=Vt,e.tableAuto=ki,e.tableCaption=_t,e.tableCell=Jt,e.tableColumn=qt,e.tableColumnGroup=Kt,e.tableFixed=Li,e.tableFooterGroup=Qt,e.tableHeaderGroup=Zt,e.tableRow=or,e.tableRowGroup=er,e.text2Xl=Zi,e.text3Xl=en,e.text4Xl=on,e.text5Xl=tn,e.text6Xl=rn,e.textBase=qi,e.textCenter=Xn,e.textColor=e=>B(({colors:o})=>({color:o[e]})),e.textJustify=Nn,e.textLeft=Cn,e.textLg=Ki,e.textRight=jn,e.textSm=Ji,e.textXl=Qi,e.textXs=_i,e.top=Dr,e.trackingNormal=wn,e.trackingTight=Rn,e.trackingTighter=xn,e.trackingWide=Sn,e.trackingWider=Tn,e.trackingWidest=Bn,e.transition=Di,e.transitionAll=$i,e.transitionColors=Mi,e.transitionNone=Oi,e.transitionOpacity=Ei,e.transitionShadow=Yi,e.transitionTransform=Hi,e.translateX=e=>yi({translateX:zi(e)}),e.translateY=e=>yi({translateY:zi(e)}),e.truncate=ea,e.underline=Fn,e.uppercase=zn,e.visible=Vr,e.visited=w,e.w=e=>{let o="";if(0===e)o="0";else if("px"===e)o="1px";else if("auto"===e)o="auto";else if("full"===e)o="100%";else if("screen"===e)o="100vw";else if("number"==typeof e)o=e/4+"rem";else{const[t,r]=e.split("/");o=Number(t)/Number(r)*100+"%"}return B({width:o})},e.whitespaceNoWrap=Vn,e.whitespaceNormal=Un,e.whitespacePre=_n,e.whitespacePreLine=Jn,e.whitespacePreWrap=qn,e.xl=n,e.z=e=>B({zIndex:""+e}),Object.defineProperty(e,"__esModule",{value:!0})}));