satori 0.0.44 → 0.0.46
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/README.md +22 -6
- package/dist/esm/index.js +9 -0
- package/dist/esm/index.js.LEGAL.txt +1 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/index.wasm.js +9 -0
- package/dist/esm/index.wasm.js.LEGAL.txt +1 -0
- package/dist/esm/index.wasm.js.map +1 -0
- package/dist/index.cjs +9 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +22 -3
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/index.wasm.cjs +9 -9
- package/dist/index.wasm.cjs.map +1 -1
- package/dist/index.wasm.js +9 -9
- package/dist/index.wasm.js.map +1 -1
- package/package.json +6 -4
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var Cu=Object.create;var lr=Object.defineProperty;var Du=Object.getOwnPropertyDescriptor;var Mu=Object.getOwnPropertyNames;var Fu=Object.getPrototypeOf,Nu=Object.prototype.hasOwnProperty;var Br=(e,t)=>()=>(e&&(t=e(e=0)),t);var R=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ur=(e,t)=>{for(var n in t)lr(e,n,{get:t[n],enumerable:!0})},bo=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Mu(t))!Nu.call(e,i)&&i!==n&&lr(e,i,{get:()=>t[i],enumerable:!(r=Du(t,i))||r.enumerable});return e};var ct=(e,t,n)=>(n=e!=null?Cu(Fu(e)):{},bo(t||!e||!e.__esModule?lr(n,"default",{value:e,enumerable:!0}):n,e)),dt=e=>bo(lr({},"__esModule",{value:!0}),e);var c=Br(()=>{});var bn=R(vn=>{"use strict";c();Object.defineProperty(vn,"__esModule",{value:!0});Object.defineProperty(vn,"default",{enumerable:!0,get:()=>yl});function yl(e){if(e=`${e}`,e==="0")return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(e))return e.replace(/^[+-]?/,t=>t==="-"?"":"-");if(e.includes("var(")||e.includes("calc("))return`calc(${e} * -1)`}});var Jo=R(yn=>{"use strict";c();Object.defineProperty(yn,"__esModule",{value:!0});Object.defineProperty(yn,"default",{enumerable:!0,get:()=>xl});var xl=["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","display","aspectRatio","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","borderCollapse","borderSpacing","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","whitespace","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","content"]});var Ko=R(xn=>{"use strict";c();Object.defineProperty(xn,"__esModule",{value:!0});Object.defineProperty(xn,"default",{enumerable:!0,get:()=>wl});function wl(e,t){return e===void 0?t:Array.isArray(e)?e:[...new Set(t.filter(r=>e!==!1&&e[r]!==!1).concat(Object.keys(e).filter(r=>e[r]!==!1)))]}});var wn=R((Ym,Zo)=>{c();Zo.exports={content:[],presets:[],darkMode:"media",theme:{screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:({colors:e})=>({inherit:e.inherit,current:e.current,transparent:e.transparent,black:e.black,white:e.white,slate:e.slate,gray:e.gray,zinc:e.zinc,neutral:e.neutral,stone:e.stone,red:e.red,orange:e.orange,amber:e.amber,yellow:e.yellow,lime:e.lime,green:e.green,emerald:e.emerald,teal:e.teal,cyan:e.cyan,sky:e.sky,blue:e.blue,indigo:e.indigo,violet:e.violet,purple:e.purple,fuchsia:e.fuchsia,pink:e.pink,rose:e.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","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:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},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:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>e("brightness"),backdropContrast:({theme:e})=>e("contrast"),backdropGrayscale:({theme:e})=>e("grayscale"),backdropHueRotate:({theme:e})=>e("hueRotate"),backdropInvert:({theme:e})=>e("invert"),backdropOpacity:({theme:e})=>e("opacity"),backdropSaturate:({theme:e})=>e("saturate"),backdropSepia:({theme:e})=>e("sepia"),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},borderColor:({theme:e})=>({...e("colors"),DEFAULT:e("colors.gray.200","currentColor")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>({...e("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),caretColor:({theme:e})=>e("colors"),accentColor:({theme:e})=>({...e("colors"),auto:"auto"}),contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},container:{},content:{none:"none"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>e("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>e("colors"),grayscale:{0:"0",DEFAULT:"100%"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{0:"0",DEFAULT:"100%"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},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"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("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-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-full":"1 / -1"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridTemplateColumns:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))"},height:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),inset:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"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:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({...e("spacing"),full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:e,breakpoints:t})=>({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",...t(e("screens"))}),minHeight:{0:"0px",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",40:"0.4",50:"0.5",60:"0.6",70:"0.7",75:"0.75",80:"0.8",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringColor:({theme:e})=>({DEFAULT:e("colors.blue.500","#3b82f6"),...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},scrollMargin:({theme:e})=>({...e("spacing")}),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:e})=>({...e("spacing")}),stroke:({theme:e})=>e("colors"),strokeWidth:{0:"0",1:"1",2:"2"},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:e})=>({...e("spacing")}),textOpacity:({theme:e})=>e("opacity"),transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDuration:{DEFAULT:"150ms",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},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:e})=>({...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),width:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},variantOrder:["first","last","odd","even","visited","checked","empty","read-only","group-hover","group-focus","focus-within","hover","focus","focus-visible","active","disabled"],plugins:[]}});var br={};Ur(br,{default:()=>_l});var _l,yr=Br(()=>{c();_l={info(e,t){console.info(...Array.isArray(e)?[e]:[t,e])},warn(e,t){console.warn(...Array.isArray(e)?[e]:[t,e])},risk(e,t){console.error(...Array.isArray(e)?[e]:[t,e])}}});var es=R(_n=>{"use strict";c();Object.defineProperty(_n,"__esModule",{value:!0});Object.defineProperty(_n,"default",{enumerable:!0,get:()=>Tl});var Sl=kl((yr(),dt(br)));function kl(e){return e&&e.__esModule?e:{default:e}}function _t({version:e,from:t,to:n}){Sl.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${n}\`.`,"Update your configuration file to silence this warning."])}var Tl={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},get lightBlue(){return _t({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return _t({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return _t({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return _t({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return _t({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}});var ts=R(Sn=>{"use strict";c();Object.defineProperty(Sn,"__esModule",{value:!0});Object.defineProperty(Sn,"defaults",{enumerable:!0,get:()=>Ol});function Ol(e,...t){for(let i of t){for(let s in i){var n;!(e==null||(n=e.hasOwnProperty)===null||n===void 0)&&n.call(e,s)||(e[s]=i[s])}for(let s of Object.getOwnPropertySymbols(i)){var r;!(e==null||(r=e.hasOwnProperty)===null||r===void 0)&&r.call(e,s)||(e[s]=i[s])}}return e}});var rs=R(kn=>{"use strict";c();Object.defineProperty(kn,"__esModule",{value:!0});Object.defineProperty(kn,"toPath",{enumerable:!0,get:()=>El});function El(e){if(Array.isArray(e))return e;let t=e.split("[").length-1,n=e.split("]").length-1;if(t!==n)throw new Error(`Path is invalid. Has unbalanced brackets: ${e}`);return e.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}});var is=R(Tn=>{"use strict";c();Object.defineProperty(Tn,"__esModule",{value:!0});Object.defineProperty(Tn,"normalizeConfig",{enumerable:!0,get:()=>Al});var St=Pl((yr(),dt(br)));function ns(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(ns=function(r){return r?n:t})(e)}function Pl(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=ns(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function Al(e){if((()=>{if(e.purge||!e.content||!Array.isArray(e.content)&&!(typeof e.content=="object"&&e.content!==null))return!1;if(Array.isArray(e.content))return e.content.every(r=>typeof r=="string"?!0:!(typeof(r==null?void 0:r.raw)!="string"||(r==null?void 0:r.extension)&&typeof(r==null?void 0:r.extension)!="string"));if(typeof e.content=="object"&&e.content!==null){if(Object.keys(e.content).some(r=>!["files","extract","transform"].includes(r)))return!1;if(Array.isArray(e.content.files)){if(!e.content.files.every(r=>typeof r=="string"?!0:!(typeof(r==null?void 0:r.raw)!="string"||(r==null?void 0:r.extension)&&typeof(r==null?void 0:r.extension)!="string")))return!1;if(typeof e.content.extract=="object"){for(let r of Object.values(e.content.extract))if(typeof r!="function")return!1}else if(!(e.content.extract===void 0||typeof e.content.extract=="function"))return!1;if(typeof e.content.transform=="object"){for(let r of Object.values(e.content.transform))if(typeof r!="function")return!1}else if(!(e.content.transform===void 0||typeof e.content.transform=="function"))return!1}return!0}return!1})()||St.default.warn("purge-deprecation",["The `purge`/`content` options have changed in Tailwind CSS v3.0.","Update your configuration file to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]),e.safelist=(()=>{var r;let{content:i,purge:s,safelist:o}=e;return Array.isArray(o)?o:Array.isArray(i==null?void 0:i.safelist)?i.safelist:Array.isArray(s==null?void 0:s.safelist)?s.safelist:Array.isArray(s==null||(r=s.options)===null||r===void 0?void 0:r.safelist)?s.options.safelist:[]})(),typeof e.prefix=="function")St.default.warn("prefix-function",["As of Tailwind CSS v3.0, `prefix` cannot be a function.","Update `prefix` in your configuration to be a string to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]),e.prefix="";else{var n;e.prefix=(n=e.prefix)!==null&&n!==void 0?n:""}e.content={files:(()=>{let{content:r,purge:i}=e;return Array.isArray(i)?i:Array.isArray(i==null?void 0:i.content)?i.content:Array.isArray(r)?r:Array.isArray(r==null?void 0:r.content)?r.content:Array.isArray(r==null?void 0:r.files)?r.files:[]})(),extract:(()=>{let r=(()=>{var o,a,u,f,l,p,y,h,d,m;return!((o=e.purge)===null||o===void 0)&&o.extract?e.purge.extract:!((a=e.content)===null||a===void 0)&&a.extract?e.content.extract:!((u=e.purge)===null||u===void 0||(f=u.extract)===null||f===void 0)&&f.DEFAULT?e.purge.extract.DEFAULT:!((l=e.content)===null||l===void 0||(p=l.extract)===null||p===void 0)&&p.DEFAULT?e.content.extract.DEFAULT:!((y=e.purge)===null||y===void 0||(h=y.options)===null||h===void 0)&&h.extractors?e.purge.options.extractors:!((d=e.content)===null||d===void 0||(m=d.options)===null||m===void 0)&&m.extractors?e.content.options.extractors:{}})(),i={},s=(()=>{var o,a,u,f;if(!((o=e.purge)===null||o===void 0||(a=o.options)===null||a===void 0)&&a.defaultExtractor)return e.purge.options.defaultExtractor;if(!((u=e.content)===null||u===void 0||(f=u.options)===null||f===void 0)&&f.defaultExtractor)return e.content.options.defaultExtractor})();if(s!==void 0&&(i.DEFAULT=s),typeof r=="function")i.DEFAULT=r;else if(Array.isArray(r))for(let{extensions:o,extractor:a}of r!=null?r:[])for(let u of o)i[u]=a;else typeof r=="object"&&r!==null&&Object.assign(i,r);return i})(),transform:(()=>{let r=(()=>{var s,o,a,u,f,l;return!((s=e.purge)===null||s===void 0)&&s.transform?e.purge.transform:!((o=e.content)===null||o===void 0)&&o.transform?e.content.transform:!((a=e.purge)===null||a===void 0||(u=a.transform)===null||u===void 0)&&u.DEFAULT?e.purge.transform.DEFAULT:!((f=e.content)===null||f===void 0||(l=f.transform)===null||l===void 0)&&l.DEFAULT?e.content.transform.DEFAULT:{}})(),i={};return typeof r=="function"&&(i.DEFAULT=r),typeof r=="object"&&r!==null&&Object.assign(i,r),i})()};for(let r of e.content.files)if(typeof r=="string"&&/{([^,]*?)}/g.test(r)){St.default.warn("invalid-glob-braces",[`The glob pattern ${(0,St.dim)(r)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,St.dim)(r.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return e}});var os=R(On=>{"use strict";c();Object.defineProperty(On,"__esModule",{value:!0});Object.defineProperty(On,"default",{enumerable:!0,get:()=>Rl});function Rl(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}});var ss=R(Pn=>{"use strict";c();Object.defineProperty(Pn,"__esModule",{value:!0});Object.defineProperty(Pn,"cloneDeep",{enumerable:!0,get:()=>En});function En(e){return Array.isArray(e)?e.map(t=>En(t)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).map(([t,n])=>[t,En(n)])):e}});var An=R((xr,as)=>{"use strict";c();xr.__esModule=!0;xr.default=Cl;function Il(e){for(var t=e.toLowerCase(),n="",r=!1,i=0;i<6&&t[i]!==void 0;i++){var s=t.charCodeAt(i),o=s>=97&&s<=102||s>=48&&s<=57;if(r=s===32,!o)break;n+=t[i]}if(n.length!==0){var a=parseInt(n,16),u=a>=55296&&a<=57343;return u||a===0||a>1114111?["\uFFFD",n.length+(r?1:0)]:[String.fromCodePoint(a),n.length+(r?1:0)]}}var Ll=/\\/;function Cl(e){var t=Ll.test(e);if(!t)return e;for(var n="",r=0;r<e.length;r++){if(e[r]==="\\"){var i=Il(e.slice(r+1,r+7));if(i!==void 0){n+=i[0],r+=i[1];continue}if(e[r+1]==="\\"){n+="\\",r++;continue}e.length===r+1&&(n+=e[r]);continue}n+=e[r]}return n}as.exports=xr.default});var ls=R((wr,us)=>{"use strict";c();wr.__esModule=!0;wr.default=Dl;function Dl(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(;n.length>0;){var i=n.shift();if(!e[i])return;e=e[i]}return e}us.exports=wr.default});var cs=R((_r,fs)=>{"use strict";c();_r.__esModule=!0;_r.default=Ml;function Ml(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(;n.length>0;){var i=n.shift();e[i]||(e[i]={}),e=e[i]}}fs.exports=_r.default});var ps=R((Sr,ds)=>{"use strict";c();Sr.__esModule=!0;Sr.default=Fl;function Fl(e){for(var t="",n=e.indexOf("/*"),r=0;n>=0;){t=t+e.slice(r,n);var i=e.indexOf("*/",n+2);if(i<0)return t;r=i+2,n=e.indexOf("/*",r)}return t=t+e.slice(r),t}ds.exports=Sr.default});var kt=R(Oe=>{"use strict";c();Oe.__esModule=!0;Oe.stripComments=Oe.ensureObject=Oe.getProp=Oe.unesc=void 0;var Nl=kr(An());Oe.unesc=Nl.default;var $l=kr(ls());Oe.getProp=$l.default;var ql=kr(cs());Oe.ensureObject=ql.default;var Wl=kr(ps());Oe.stripComments=Wl.default;function kr(e){return e&&e.__esModule?e:{default:e}}});var Le=R((Tt,gs)=>{"use strict";c();Tt.__esModule=!0;Tt.default=void 0;var hs=kt();function ms(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Bl(e,t,n){return t&&ms(e.prototype,t),n&&ms(e,n),e}var Ul=function e(t,n){if(typeof t!="object"||t===null)return t;var r=new t.constructor;for(var i in t)if(!!t.hasOwnProperty(i)){var s=t[i],o=typeof s;i==="parent"&&o==="object"?n&&(r[i]=n):s instanceof Array?r[i]=s.map(function(a){return e(a,r)}):r[i]=e(s,r)}return r},zl=function(){function e(n){n===void 0&&(n={}),Object.assign(this,n),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var t=e.prototype;return t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){if(this.parent){for(var r in arguments)this.parent.insertBefore(this,arguments[r]);this.remove()}return this},t.next=function(){return this.parent.at(this.parent.index(this)+1)},t.prev=function(){return this.parent.at(this.parent.index(this)-1)},t.clone=function(r){r===void 0&&(r={});var i=Ul(this);for(var s in r)i[s]=r[s];return i},t.appendToPropertyAndEscape=function(r,i,s){this.raws||(this.raws={});var o=this[r],a=this.raws[r];this[r]=o+i,a||s!==i?this.raws[r]=(a||o)+s:delete this.raws[r]},t.setPropertyAndEscape=function(r,i,s){this.raws||(this.raws={}),this[r]=i,this.raws[r]=s},t.setPropertyWithoutEscape=function(r,i){this[r]=i,this.raws&&delete this.raws[r]},t.isAtPosition=function(r,i){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>r||this.source.end.line<r||this.source.start.line===r&&this.source.start.column>i||this.source.end.line===r&&this.source.end.column<i)},t.stringifyProperty=function(r){return this.raws&&this.raws[r]||this[r]},t.valueToString=function(){return String(this.stringifyProperty("value"))},t.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},Bl(e,[{key:"rawSpaceBefore",get:function(){var r=this.raws&&this.raws.spaces&&this.raws.spaces.before;return r===void 0&&(r=this.spaces&&this.spaces.before),r||""},set:function(r){(0,hs.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=r}},{key:"rawSpaceAfter",get:function(){var r=this.raws&&this.raws.spaces&&this.raws.spaces.after;return r===void 0&&(r=this.spaces.after),r||""},set:function(r){(0,hs.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=r}}]),e}();Tt.default=zl;gs.exports=Tt.default});var ie=R(H=>{"use strict";c();H.__esModule=!0;H.UNIVERSAL=H.ATTRIBUTE=H.CLASS=H.COMBINATOR=H.COMMENT=H.ID=H.NESTING=H.PSEUDO=H.ROOT=H.SELECTOR=H.STRING=H.TAG=void 0;var Gl="tag";H.TAG=Gl;var Vl="string";H.STRING=Vl;var jl="selector";H.SELECTOR=jl;var Hl="root";H.ROOT=Hl;var Yl="pseudo";H.PSEUDO=Yl;var Xl="nesting";H.NESTING=Xl;var Ql="id";H.ID=Ql;var Jl="comment";H.COMMENT=Jl;var Kl="combinator";H.COMBINATOR=Kl;var Zl="class";H.CLASS=Zl;var ef="attribute";H.ATTRIBUTE=ef;var tf="universal";H.UNIVERSAL=tf});var Tr=R((Ot,xs)=>{"use strict";c();Ot.__esModule=!0;Ot.default=void 0;var rf=of(Le()),Ce=nf(ie());function ys(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return ys=function(){return e},e}function nf(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=ys();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var s=r?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function of(e){return e&&e.__esModule?e:{default:e}}function sf(e,t){var n;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=af(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return n=e[Symbol.iterator](),n.next.bind(n)}function af(e,t){if(!!e){if(typeof e=="string")return vs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vs(e,t)}}function vs(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function uf(e,t,n){return t&&bs(e.prototype,t),n&&bs(e,n),e}function lf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Rn(e,t)}function Rn(e,t){return Rn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Rn(e,t)}var ff=function(e){lf(t,e);function t(r){var i;return i=e.call(this,r)||this,i.nodes||(i.nodes=[]),i}var n=t.prototype;return n.append=function(i){return i.parent=this,this.nodes.push(i),this},n.prepend=function(i){return i.parent=this,this.nodes.unshift(i),this},n.at=function(i){return this.nodes[i]},n.index=function(i){return typeof i=="number"?i:this.nodes.indexOf(i)},n.removeChild=function(i){i=this.index(i),this.at(i).parent=void 0,this.nodes.splice(i,1);var s;for(var o in this.indexes)s=this.indexes[o],s>=i&&(this.indexes[o]=s-1);return this},n.removeAll=function(){for(var i=sf(this.nodes),s;!(s=i()).done;){var o=s.value;o.parent=void 0}return this.nodes=[],this},n.empty=function(){return this.removeAll()},n.insertAfter=function(i,s){s.parent=this;var o=this.index(i);this.nodes.splice(o+1,0,s),s.parent=this;var a;for(var u in this.indexes)a=this.indexes[u],o<=a&&(this.indexes[u]=a+1);return this},n.insertBefore=function(i,s){s.parent=this;var o=this.index(i);this.nodes.splice(o,0,s),s.parent=this;var a;for(var u in this.indexes)a=this.indexes[u],a<=o&&(this.indexes[u]=a+1);return this},n._findChildAtPosition=function(i,s){var o=void 0;return this.each(function(a){if(a.atPosition){var u=a.atPosition(i,s);if(u)return o=u,!1}else if(a.isAtPosition(i,s))return o=a,!1}),o},n.atPosition=function(i,s){if(this.isAtPosition(i,s))return this._findChildAtPosition(i,s)||this},n._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},n.each=function(i){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var s=this.lastEach;if(this.indexes[s]=0,!!this.length){for(var o,a;this.indexes[s]<this.length&&(o=this.indexes[s],a=i(this.at(o),o),a!==!1);)this.indexes[s]+=1;if(delete this.indexes[s],a===!1)return!1}},n.walk=function(i){return this.each(function(s,o){var a=i(s,o);if(a!==!1&&s.length&&(a=s.walk(i)),a===!1)return!1})},n.walkAttributes=function(i){var s=this;return this.walk(function(o){if(o.type===Ce.ATTRIBUTE)return i.call(s,o)})},n.walkClasses=function(i){var s=this;return this.walk(function(o){if(o.type===Ce.CLASS)return i.call(s,o)})},n.walkCombinators=function(i){var s=this;return this.walk(function(o){if(o.type===Ce.COMBINATOR)return i.call(s,o)})},n.walkComments=function(i){var s=this;return this.walk(function(o){if(o.type===Ce.COMMENT)return i.call(s,o)})},n.walkIds=function(i){var s=this;return this.walk(function(o){if(o.type===Ce.ID)return i.call(s,o)})},n.walkNesting=function(i){var s=this;return this.walk(function(o){if(o.type===Ce.NESTING)return i.call(s,o)})},n.walkPseudos=function(i){var s=this;return this.walk(function(o){if(o.type===Ce.PSEUDO)return i.call(s,o)})},n.walkTags=function(i){var s=this;return this.walk(function(o){if(o.type===Ce.TAG)return i.call(s,o)})},n.walkUniversals=function(i){var s=this;return this.walk(function(o){if(o.type===Ce.UNIVERSAL)return i.call(s,o)})},n.split=function(i){var s=this,o=[];return this.reduce(function(a,u,f){var l=i.call(s,u);return o.push(u),l?(a.push(o),o=[]):f===s.length-1&&a.push(o),a},[])},n.map=function(i){return this.nodes.map(i)},n.reduce=function(i,s){return this.nodes.reduce(i,s)},n.every=function(i){return this.nodes.every(i)},n.some=function(i){return this.nodes.some(i)},n.filter=function(i){return this.nodes.filter(i)},n.sort=function(i){return this.nodes.sort(i)},n.toString=function(){return this.map(String).join("")},uf(t,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),t}(rf.default);Ot.default=ff;xs.exports=Ot.default});var Ln=R((Et,_s)=>{"use strict";c();Et.__esModule=!0;Et.default=void 0;var cf=pf(Tr()),df=ie();function pf(e){return e&&e.__esModule?e:{default:e}}function ws(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hf(e,t,n){return t&&ws(e.prototype,t),n&&ws(e,n),e}function mf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,In(e,t)}function In(e,t){return In=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},In(e,t)}var gf=function(e){mf(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=df.ROOT,i}var n=t.prototype;return n.toString=function(){var i=this.reduce(function(s,o){return s.push(String(o)),s},[]).join(",");return this.trailingComma?i+",":i},n.error=function(i,s){return this._error?this._error(i,s):new Error(i)},hf(t,[{key:"errorGenerator",set:function(i){this._error=i}}]),t}(cf.default);Et.default=gf;_s.exports=Et.default});var Dn=R((Pt,Ss)=>{"use strict";c();Pt.__esModule=!0;Pt.default=void 0;var vf=yf(Tr()),bf=ie();function yf(e){return e&&e.__esModule?e:{default:e}}function xf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Cn(e,t)}function Cn(e,t){return Cn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Cn(e,t)}var wf=function(e){xf(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=bf.SELECTOR,r}return t}(vf.default);Pt.default=wf;Ss.exports=Pt.default});var Or=R((ng,ks)=>{"use strict";c();var _f={},Sf=_f.hasOwnProperty,kf=function(t,n){if(!t)return n;var r={};for(var i in n)r[i]=Sf.call(t,i)?t[i]:n[i];return r},Tf=/[ -,\.\/:-@\[-\^`\{-~]/,Of=/[ -,\.\/:-@\[\]\^`\{-~]/,Ef=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Mn=function e(t,n){n=kf(n,e.options),n.quotes!="single"&&n.quotes!="double"&&(n.quotes="single");for(var r=n.quotes=="double"?'"':"'",i=n.isIdentifier,s=t.charAt(0),o="",a=0,u=t.length;a<u;){var f=t.charAt(a++),l=f.charCodeAt(),p=void 0;if(l<32||l>126){if(l>=55296&&l<=56319&&a<u){var y=t.charCodeAt(a++);(y&64512)==56320?l=((l&1023)<<10)+(y&1023)+65536:a--}p="\\"+l.toString(16).toUpperCase()+" "}else n.escapeEverything?Tf.test(f)?p="\\"+f:p="\\"+l.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(f)?p="\\"+l.toString(16).toUpperCase()+" ":f=="\\"||!i&&(f=='"'&&r==f||f=="'"&&r==f)||i&&Of.test(f)?p="\\"+f:p=f;o+=p}return i&&(/^-[-\d]/.test(o)?o="\\-"+o.slice(1):/\d/.test(s)&&(o="\\3"+s+" "+o.slice(1))),o=o.replace(Ef,function(h,d,m){return d&&d.length%2?h:(d||"")+m}),!i&&n.wrap?r+o+r:o};Mn.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};Mn.version="3.0.0";ks.exports=Mn});var Nn=R((At,Es)=>{"use strict";c();At.__esModule=!0;At.default=void 0;var Pf=Os(Or()),Af=kt(),Rf=Os(Le()),If=ie();function Os(e){return e&&e.__esModule?e:{default:e}}function Ts(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Lf(e,t,n){return t&&Ts(e.prototype,t),n&&Ts(e,n),e}function Cf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fn(e,t)}function Fn(e,t){return Fn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Fn(e,t)}var Df=function(e){Cf(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=If.CLASS,i._constructed=!0,i}var n=t.prototype;return n.valueToString=function(){return"."+e.prototype.valueToString.call(this)},Lf(t,[{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var s=(0,Pf.default)(i,{isIdentifier:!0});s!==i?((0,Af.ensureObject)(this,"raws"),this.raws.value=s):this.raws&&delete this.raws.value}this._value=i}}]),t}(Rf.default);At.default=Df;Es.exports=At.default});var qn=R((Rt,Ps)=>{"use strict";c();Rt.__esModule=!0;Rt.default=void 0;var Mf=Nf(Le()),Ff=ie();function Nf(e){return e&&e.__esModule?e:{default:e}}function $f(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$n(e,t)}function $n(e,t){return $n=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},$n(e,t)}var qf=function(e){$f(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Ff.COMMENT,r}return t}(Mf.default);Rt.default=qf;Ps.exports=Rt.default});var Bn=R((It,As)=>{"use strict";c();It.__esModule=!0;It.default=void 0;var Wf=Uf(Le()),Bf=ie();function Uf(e){return e&&e.__esModule?e:{default:e}}function zf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Wn(e,t)}function Wn(e,t){return Wn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Wn(e,t)}var Gf=function(e){zf(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=Bf.ID,i}var n=t.prototype;return n.valueToString=function(){return"#"+e.prototype.valueToString.call(this)},t}(Wf.default);It.default=Gf;As.exports=It.default});var Er=R((Lt,Ls)=>{"use strict";c();Lt.__esModule=!0;Lt.default=void 0;var Vf=Is(Or()),jf=kt(),Hf=Is(Le());function Is(e){return e&&e.__esModule?e:{default:e}}function Rs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yf(e,t,n){return t&&Rs(e.prototype,t),n&&Rs(e,n),e}function Xf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Un(e,t)}function Un(e,t){return Un=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Un(e,t)}var Qf=function(e){Xf(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.qualifiedName=function(i){return this.namespace?this.namespaceString+"|"+i:i},n.valueToString=function(){return this.qualifiedName(e.prototype.valueToString.call(this))},Yf(t,[{key:"namespace",get:function(){return this._namespace},set:function(i){if(i===!0||i==="*"||i==="&"){this._namespace=i,this.raws&&delete this.raws.namespace;return}var s=(0,Vf.default)(i,{isIdentifier:!0});this._namespace=i,s!==i?((0,jf.ensureObject)(this,"raws"),this.raws.namespace=s):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(i){this.namespace=i}},{key:"namespaceString",get:function(){if(this.namespace){var i=this.stringifyProperty("namespace");return i===!0?"":i}else return""}}]),t}(Hf.default);Lt.default=Qf;Ls.exports=Lt.default});var Gn=R((Ct,Cs)=>{"use strict";c();Ct.__esModule=!0;Ct.default=void 0;var Jf=Zf(Er()),Kf=ie();function Zf(e){return e&&e.__esModule?e:{default:e}}function ec(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zn(e,t)}function zn(e,t){return zn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},zn(e,t)}var tc=function(e){ec(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Kf.TAG,r}return t}(Jf.default);Ct.default=tc;Cs.exports=Ct.default});var jn=R((Dt,Ds)=>{"use strict";c();Dt.__esModule=!0;Dt.default=void 0;var rc=ic(Le()),nc=ie();function ic(e){return e&&e.__esModule?e:{default:e}}function oc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Vn(e,t)}function Vn(e,t){return Vn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Vn(e,t)}var sc=function(e){oc(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=nc.STRING,r}return t}(rc.default);Dt.default=sc;Ds.exports=Dt.default});var Yn=R((Mt,Ms)=>{"use strict";c();Mt.__esModule=!0;Mt.default=void 0;var ac=lc(Tr()),uc=ie();function lc(e){return e&&e.__esModule?e:{default:e}}function fc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Hn(e,t)}function Hn(e,t){return Hn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Hn(e,t)}var cc=function(e){fc(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=uc.PSEUDO,i}var n=t.prototype;return n.toString=function(){var i=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),i,this.rawSpaceAfter].join("")},t}(ac.default);Mt.default=cc;Ms.exports=Mt.default});var Ns=R((ig,Fs)=>{c();Fs.exports=function(t,n){return function(...r){return console.warn(n),t(...r)}}});var ei=R($t=>{"use strict";c();$t.__esModule=!0;$t.unescapeValue=Zn;$t.default=void 0;var Ft=Kn(Or()),dc=Kn(An()),pc=Kn(Er()),hc=ie(),Xn;function Kn(e){return e&&e.__esModule?e:{default:e}}function $s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mc(e,t,n){return t&&$s(e.prototype,t),n&&$s(e,n),e}function gc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jn(e,t)}function Jn(e,t){return Jn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Jn(e,t)}var Nt=Ns(),vc=/^('|")([^]*)\1$/,bc=Nt(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),yc=Nt(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),xc=Nt(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function Zn(e){var t=!1,n=null,r=e,i=r.match(vc);return i&&(n=i[1],r=i[2]),r=(0,dc.default)(r),r!==e&&(t=!0),{deprecatedUsage:t,unescaped:r,quoteMark:n}}function wc(e){if(e.quoteMark!==void 0||e.value===void 0)return e;xc();var t=Zn(e.value),n=t.quoteMark,r=t.unescaped;return e.raws||(e.raws={}),e.raws.value===void 0&&(e.raws.value=e.value),e.value=r,e.quoteMark=n,e}var Pr=function(e){gc(t,e);function t(r){var i;return r===void 0&&(r={}),i=e.call(this,wc(r))||this,i.type=hc.ATTRIBUTE,i.raws=i.raws||{},Object.defineProperty(i.raws,"unquoted",{get:Nt(function(){return i.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:Nt(function(){return i.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),i._constructed=!0,i}var n=t.prototype;return n.getQuotedValue=function(i){i===void 0&&(i={});var s=this._determineQuoteMark(i),o=Qn[s],a=(0,Ft.default)(this._value,o);return a},n._determineQuoteMark=function(i){return i.smart?this.smartQuoteMark(i):this.preferredQuoteMark(i)},n.setValue=function(i,s){s===void 0&&(s={}),this._value=i,this._quoteMark=this._determineQuoteMark(s),this._syncRawValue()},n.smartQuoteMark=function(i){var s=this.value,o=s.replace(/[^']/g,"").length,a=s.replace(/[^"]/g,"").length;if(o+a===0){var u=(0,Ft.default)(s,{isIdentifier:!0});if(u===s)return t.NO_QUOTE;var f=this.preferredQuoteMark(i);if(f===t.NO_QUOTE){var l=this.quoteMark||i.quoteMark||t.DOUBLE_QUOTE,p=Qn[l],y=(0,Ft.default)(s,p);if(y.length<u.length)return l}return f}else return a===o?this.preferredQuoteMark(i):a<o?t.DOUBLE_QUOTE:t.SINGLE_QUOTE},n.preferredQuoteMark=function(i){var s=i.preferCurrentQuoteMark?this.quoteMark:i.quoteMark;return s===void 0&&(s=i.preferCurrentQuoteMark?i.quoteMark:this.quoteMark),s===void 0&&(s=t.DOUBLE_QUOTE),s},n._syncRawValue=function(){var i=(0,Ft.default)(this._value,Qn[this.quoteMark]);i===this._value?this.raws&&delete this.raws.value:this.raws.value=i},n._handleEscapes=function(i,s){if(this._constructed){var o=(0,Ft.default)(s,{isIdentifier:!0});o!==s?this.raws[i]=o:delete this.raws[i]}},n._spacesFor=function(i){var s={before:"",after:""},o=this.spaces[i]||{},a=this.raws.spaces&&this.raws.spaces[i]||{};return Object.assign(s,o,a)},n._stringFor=function(i,s,o){s===void 0&&(s=i),o===void 0&&(o=qs);var a=this._spacesFor(s);return o(this.stringifyProperty(i),a)},n.offsetOf=function(i){var s=1,o=this._spacesFor("attribute");if(s+=o.before.length,i==="namespace"||i==="ns")return this.namespace?s:-1;if(i==="attributeNS"||(s+=this.namespaceString.length,this.namespace&&(s+=1),i==="attribute"))return s;s+=this.stringifyProperty("attribute").length,s+=o.after.length;var a=this._spacesFor("operator");s+=a.before.length;var u=this.stringifyProperty("operator");if(i==="operator")return u?s:-1;s+=u.length,s+=a.after.length;var f=this._spacesFor("value");s+=f.before.length;var l=this.stringifyProperty("value");if(i==="value")return l?s:-1;s+=l.length,s+=f.after.length;var p=this._spacesFor("insensitive");return s+=p.before.length,i==="insensitive"&&this.insensitive?s:-1},n.toString=function(){var i=this,s=[this.rawSpaceBefore,"["];return s.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(s.push(this._stringFor("operator")),s.push(this._stringFor("value")),s.push(this._stringFor("insensitiveFlag","insensitive",function(o,a){return o.length>0&&!i.quoted&&a.before.length===0&&!(i.spaces.value&&i.spaces.value.after)&&(a.before=" "),qs(o,a)}))),s.push("]"),s.push(this.rawSpaceAfter),s.join("")},mc(t,[{key:"quoted",get:function(){var i=this.quoteMark;return i==="'"||i==='"'},set:function(i){yc()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(i){if(!this._constructed){this._quoteMark=i;return}this._quoteMark!==i&&(this._quoteMark=i,this._syncRawValue())}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var s=Zn(i),o=s.deprecatedUsage,a=s.unescaped,u=s.quoteMark;if(o&&bc(),a===this._value&&u===this._quoteMark)return;this._value=a,this._quoteMark=u,this._syncRawValue()}else this._value=i}},{key:"attribute",get:function(){return this._attribute},set:function(i){this._handleEscapes("attribute",i),this._attribute=i}}]),t}(pc.default);$t.default=Pr;Pr.NO_QUOTE=null;Pr.SINGLE_QUOTE="'";Pr.DOUBLE_QUOTE='"';var Qn=(Xn={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},Xn[null]={isIdentifier:!0},Xn);function qs(e,t){return""+t.before+e+t.after}});var ri=R((qt,Ws)=>{"use strict";c();qt.__esModule=!0;qt.default=void 0;var _c=kc(Er()),Sc=ie();function kc(e){return e&&e.__esModule?e:{default:e}}function Tc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ti(e,t)}function ti(e,t){return ti=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ti(e,t)}var Oc=function(e){Tc(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Sc.UNIVERSAL,r.value="*",r}return t}(_c.default);qt.default=Oc;Ws.exports=qt.default});var ii=R((Wt,Bs)=>{"use strict";c();Wt.__esModule=!0;Wt.default=void 0;var Ec=Ac(Le()),Pc=ie();function Ac(e){return e&&e.__esModule?e:{default:e}}function Rc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ni(e,t)}function ni(e,t){return ni=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ni(e,t)}var Ic=function(e){Rc(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Pc.COMBINATOR,r}return t}(Ec.default);Wt.default=Ic;Bs.exports=Wt.default});var si=R((Bt,Us)=>{"use strict";c();Bt.__esModule=!0;Bt.default=void 0;var Lc=Dc(Le()),Cc=ie();function Dc(e){return e&&e.__esModule?e:{default:e}}function Mc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,oi(e,t)}function oi(e,t){return oi=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},oi(e,t)}var Fc=function(e){Mc(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Cc.NESTING,r.value="&",r}return t}(Lc.default);Bt.default=Fc;Us.exports=Bt.default});var Gs=R((Ar,zs)=>{"use strict";c();Ar.__esModule=!0;Ar.default=Nc;function Nc(e){return e.sort(function(t,n){return t-n})}zs.exports=Ar.default});var ai=R(E=>{"use strict";c();E.__esModule=!0;E.combinator=E.word=E.comment=E.str=E.tab=E.newline=E.feed=E.cr=E.backslash=E.bang=E.slash=E.doubleQuote=E.singleQuote=E.space=E.greaterThan=E.pipe=E.equals=E.plus=E.caret=E.tilde=E.dollar=E.closeSquare=E.openSquare=E.closeParenthesis=E.openParenthesis=E.semicolon=E.colon=E.comma=E.at=E.asterisk=E.ampersand=void 0;var $c=38;E.ampersand=$c;var qc=42;E.asterisk=qc;var Wc=64;E.at=Wc;var Bc=44;E.comma=Bc;var Uc=58;E.colon=Uc;var zc=59;E.semicolon=zc;var Gc=40;E.openParenthesis=Gc;var Vc=41;E.closeParenthesis=Vc;var jc=91;E.openSquare=jc;var Hc=93;E.closeSquare=Hc;var Yc=36;E.dollar=Yc;var Xc=126;E.tilde=Xc;var Qc=94;E.caret=Qc;var Jc=43;E.plus=Jc;var Kc=61;E.equals=Kc;var Zc=124;E.pipe=Zc;var ed=62;E.greaterThan=ed;var td=32;E.space=td;var Vs=39;E.singleQuote=Vs;var rd=34;E.doubleQuote=rd;var nd=47;E.slash=nd;var id=33;E.bang=id;var od=92;E.backslash=od;var sd=13;E.cr=sd;var ad=12;E.feed=ad;var ud=10;E.newline=ud;var ld=9;E.tab=ld;var fd=Vs;E.str=fd;var cd=-1;E.comment=cd;var dd=-2;E.word=dd;var pd=-3;E.combinator=pd});var Ys=R(Ut=>{"use strict";c();Ut.__esModule=!0;Ut.default=xd;Ut.FIELDS=void 0;var k=hd(ai()),nt,j;function Hs(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Hs=function(){return e},e}function hd(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Hs();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var s=r?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}var md=(nt={},nt[k.tab]=!0,nt[k.newline]=!0,nt[k.cr]=!0,nt[k.feed]=!0,nt),gd=(j={},j[k.space]=!0,j[k.tab]=!0,j[k.newline]=!0,j[k.cr]=!0,j[k.feed]=!0,j[k.ampersand]=!0,j[k.asterisk]=!0,j[k.bang]=!0,j[k.comma]=!0,j[k.colon]=!0,j[k.semicolon]=!0,j[k.openParenthesis]=!0,j[k.closeParenthesis]=!0,j[k.openSquare]=!0,j[k.closeSquare]=!0,j[k.singleQuote]=!0,j[k.doubleQuote]=!0,j[k.plus]=!0,j[k.pipe]=!0,j[k.tilde]=!0,j[k.greaterThan]=!0,j[k.equals]=!0,j[k.dollar]=!0,j[k.caret]=!0,j[k.slash]=!0,j),ui={},js="0123456789abcdefABCDEF";for(Rr=0;Rr<js.length;Rr++)ui[js.charCodeAt(Rr)]=!0;var Rr;function vd(e,t){var n=t,r;do{if(r=e.charCodeAt(n),gd[r])return n-1;r===k.backslash?n=bd(e,n)+1:n++}while(n<e.length);return n-1}function bd(e,t){var n=t,r=e.charCodeAt(n+1);if(!md[r])if(ui[r]){var i=0;do n++,i++,r=e.charCodeAt(n+1);while(ui[r]&&i<6);i<6&&r===k.space&&n++}else n++;return n}var yd={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};Ut.FIELDS=yd;function xd(e){var t=[],n=e.css.valueOf(),r=n,i=r.length,s=-1,o=1,a=0,u=0,f,l,p,y,h,d,m,b,g,w,T,P,I;function F(L,C){if(e.safe)n+=C,g=n.length-1;else throw e.error("Unclosed "+L,o,a-s,a)}for(;a<i;){switch(f=n.charCodeAt(a),f===k.newline&&(s=a,o+=1),f){case k.space:case k.tab:case k.newline:case k.cr:case k.feed:g=a;do g+=1,f=n.charCodeAt(g),f===k.newline&&(s=g,o+=1);while(f===k.space||f===k.newline||f===k.tab||f===k.cr||f===k.feed);I=k.space,y=o,p=g-s-1,u=g;break;case k.plus:case k.greaterThan:case k.tilde:case k.pipe:g=a;do g+=1,f=n.charCodeAt(g);while(f===k.plus||f===k.greaterThan||f===k.tilde||f===k.pipe);I=k.combinator,y=o,p=a-s,u=g;break;case k.asterisk:case k.ampersand:case k.bang:case k.comma:case k.equals:case k.dollar:case k.caret:case k.openSquare:case k.closeSquare:case k.colon:case k.semicolon:case k.openParenthesis:case k.closeParenthesis:g=a,I=f,y=o,p=a-s,u=g+1;break;case k.singleQuote:case k.doubleQuote:P=f===k.singleQuote?"'":'"',g=a;do for(h=!1,g=n.indexOf(P,g+1),g===-1&&F("quote",P),d=g;n.charCodeAt(d-1)===k.backslash;)d-=1,h=!h;while(h);I=k.str,y=o,p=a-s,u=g+1;break;default:f===k.slash&&n.charCodeAt(a+1)===k.asterisk?(g=n.indexOf("*/",a+2)+1,g===0&&F("comment","*/"),l=n.slice(a,g+1),b=l.split(`
|
|
3
|
-
`),m=b.length-1,m>0?(w=o+m,T=g-b[m].length):(w=o,T=s),I=k.comment,o=w,y=w,p=g-T):f===k.slash?(g=a,I=f,y=o,p=a-s,u=g+1):(g=vd(n,a),I=k.word,y=o,p=g-s),u=g+1;break}t.push([I,o,a-s,y,p,a,u]),T&&(s=T,T=null),a=u}return t}});var ra=R((zt,ta)=>{"use strict";c();zt.__esModule=!0;zt.default=void 0;var wd=be(Ln()),li=be(Dn()),_d=be(Nn()),Xs=be(qn()),Sd=be(Bn()),kd=be(Gn()),fi=be(jn()),Td=be(Yn()),Qs=Ir(ei()),Od=be(ri()),ci=be(ii()),Ed=be(si()),Pd=be(Gs()),_=Ir(Ys()),O=Ir(ai()),Ad=Ir(ie()),Q=kt(),Ye,di;function ea(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return ea=function(){return e},e}function Ir(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=ea();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var s=r?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function be(e){return e&&e.__esModule?e:{default:e}}function Js(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rd(e,t,n){return t&&Js(e.prototype,t),n&&Js(e,n),e}var mi=(Ye={},Ye[O.space]=!0,Ye[O.cr]=!0,Ye[O.feed]=!0,Ye[O.newline]=!0,Ye[O.tab]=!0,Ye),Id=Object.assign({},mi,(di={},di[O.comment]=!0,di));function Ks(e){return{line:e[_.FIELDS.START_LINE],column:e[_.FIELDS.START_COL]}}function Zs(e){return{line:e[_.FIELDS.END_LINE],column:e[_.FIELDS.END_COL]}}function Xe(e,t,n,r){return{start:{line:e,column:t},end:{line:n,column:r}}}function it(e){return Xe(e[_.FIELDS.START_LINE],e[_.FIELDS.START_COL],e[_.FIELDS.END_LINE],e[_.FIELDS.END_COL])}function pi(e,t){if(!!e)return Xe(e[_.FIELDS.START_LINE],e[_.FIELDS.START_COL],t[_.FIELDS.END_LINE],t[_.FIELDS.END_COL])}function ot(e,t){var n=e[t];if(typeof n=="string")return n.indexOf("\\")!==-1&&((0,Q.ensureObject)(e,"raws"),e[t]=(0,Q.unesc)(n),e.raws[t]===void 0&&(e.raws[t]=n)),e}function hi(e,t){for(var n=-1,r=[];(n=e.indexOf(t,n+1))!==-1;)r.push(n);return r}function Ld(){var e=Array.prototype.concat.apply([],arguments);return e.filter(function(t,n){return n===e.indexOf(t)})}var Cd=function(){function e(n,r){r===void 0&&(r={}),this.rule=n,this.options=Object.assign({lossy:!1,safe:!1},r),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,_.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var i=pi(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new wd.default({source:i}),this.root.errorGenerator=this._errorGenerator();var s=new li.default({source:{start:{line:1,column:1}}});this.root.append(s),this.current=s,this.loop()}var t=e.prototype;return t._errorGenerator=function(){var r=this;return function(i,s){return typeof r.rule=="string"?new Error(i):r.rule.error(i,s)}},t.attribute=function(){var r=[],i=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[_.FIELDS.TYPE]!==O.closeSquare;)r.push(this.currToken),this.position++;if(this.currToken[_.FIELDS.TYPE]!==O.closeSquare)return this.expected("closing square bracket",this.currToken[_.FIELDS.START_POS]);var s=r.length,o={source:Xe(i[1],i[2],this.currToken[3],this.currToken[4]),sourceIndex:i[_.FIELDS.START_POS]};if(s===1&&!~[O.word].indexOf(r[0][_.FIELDS.TYPE]))return this.expected("attribute",r[0][_.FIELDS.START_POS]);for(var a=0,u="",f="",l=null,p=!1;a<s;){var y=r[a],h=this.content(y),d=r[a+1];switch(y[_.FIELDS.TYPE]){case O.space:if(p=!0,this.options.lossy)break;if(l){(0,Q.ensureObject)(o,"spaces",l);var m=o.spaces[l].after||"";o.spaces[l].after=m+h;var b=(0,Q.getProp)(o,"raws","spaces",l,"after")||null;b&&(o.raws.spaces[l].after=b+h)}else u=u+h,f=f+h;break;case O.asterisk:if(d[_.FIELDS.TYPE]===O.equals)o.operator=h,l="operator";else if((!o.namespace||l==="namespace"&&!p)&&d){u&&((0,Q.ensureObject)(o,"spaces","attribute"),o.spaces.attribute.before=u,u=""),f&&((0,Q.ensureObject)(o,"raws","spaces","attribute"),o.raws.spaces.attribute.before=u,f=""),o.namespace=(o.namespace||"")+h;var g=(0,Q.getProp)(o,"raws","namespace")||null;g&&(o.raws.namespace+=h),l="namespace"}p=!1;break;case O.dollar:if(l==="value"){var w=(0,Q.getProp)(o,"raws","value");o.value+="$",w&&(o.raws.value=w+"$");break}case O.caret:d[_.FIELDS.TYPE]===O.equals&&(o.operator=h,l="operator"),p=!1;break;case O.combinator:if(h==="~"&&d[_.FIELDS.TYPE]===O.equals&&(o.operator=h,l="operator"),h!=="|"){p=!1;break}d[_.FIELDS.TYPE]===O.equals?(o.operator=h,l="operator"):!o.namespace&&!o.attribute&&(o.namespace=!0),p=!1;break;case O.word:if(d&&this.content(d)==="|"&&r[a+2]&&r[a+2][_.FIELDS.TYPE]!==O.equals&&!o.operator&&!o.namespace)o.namespace=h,l="namespace";else if(!o.attribute||l==="attribute"&&!p){u&&((0,Q.ensureObject)(o,"spaces","attribute"),o.spaces.attribute.before=u,u=""),f&&((0,Q.ensureObject)(o,"raws","spaces","attribute"),o.raws.spaces.attribute.before=f,f=""),o.attribute=(o.attribute||"")+h;var T=(0,Q.getProp)(o,"raws","attribute")||null;T&&(o.raws.attribute+=h),l="attribute"}else if(!o.value&&o.value!==""||l==="value"&&!p){var P=(0,Q.unesc)(h),I=(0,Q.getProp)(o,"raws","value")||"",F=o.value||"";o.value=F+P,o.quoteMark=null,(P!==h||I)&&((0,Q.ensureObject)(o,"raws"),o.raws.value=(I||F)+h),l="value"}else{var L=h==="i"||h==="I";(o.value||o.value==="")&&(o.quoteMark||p)?(o.insensitive=L,(!L||h==="I")&&((0,Q.ensureObject)(o,"raws"),o.raws.insensitiveFlag=h),l="insensitive",u&&((0,Q.ensureObject)(o,"spaces","insensitive"),o.spaces.insensitive.before=u,u=""),f&&((0,Q.ensureObject)(o,"raws","spaces","insensitive"),o.raws.spaces.insensitive.before=f,f="")):(o.value||o.value==="")&&(l="value",o.value+=h,o.raws.value&&(o.raws.value+=h))}p=!1;break;case O.str:if(!o.attribute||!o.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:y[_.FIELDS.START_POS]});var C=(0,Qs.unescapeValue)(h),N=C.unescaped,U=C.quoteMark;o.value=N,o.quoteMark=U,l="value",(0,Q.ensureObject)(o,"raws"),o.raws.value=h,p=!1;break;case O.equals:if(!o.attribute)return this.expected("attribute",y[_.FIELDS.START_POS],h);if(o.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:y[_.FIELDS.START_POS]});o.operator=o.operator?o.operator+h:h,l="operator",p=!1;break;case O.comment:if(l)if(p||d&&d[_.FIELDS.TYPE]===O.space||l==="insensitive"){var B=(0,Q.getProp)(o,"spaces",l,"after")||"",D=(0,Q.getProp)(o,"raws","spaces",l,"after")||B;(0,Q.ensureObject)(o,"raws","spaces",l),o.raws.spaces[l].after=D+h}else{var $=o[l]||"",Z=(0,Q.getProp)(o,"raws",l)||$;(0,Q.ensureObject)(o,"raws"),o.raws[l]=Z+h}else f=f+h;break;default:return this.error('Unexpected "'+h+'" found.',{index:y[_.FIELDS.START_POS]})}a++}ot(o,"attribute"),ot(o,"namespace"),this.newNode(new Qs.default(o)),this.position++},t.parseWhitespaceEquivalentTokens=function(r){r<0&&(r=this.tokens.length);var i=this.position,s=[],o="",a=void 0;do if(mi[this.currToken[_.FIELDS.TYPE]])this.options.lossy||(o+=this.content());else if(this.currToken[_.FIELDS.TYPE]===O.comment){var u={};o&&(u.before=o,o=""),a=new Xs.default({value:this.content(),source:it(this.currToken),sourceIndex:this.currToken[_.FIELDS.START_POS],spaces:u}),s.push(a)}while(++this.position<r);if(o){if(a)a.spaces.after=o;else if(!this.options.lossy){var f=this.tokens[i],l=this.tokens[this.position-1];s.push(new fi.default({value:"",source:Xe(f[_.FIELDS.START_LINE],f[_.FIELDS.START_COL],l[_.FIELDS.END_LINE],l[_.FIELDS.END_COL]),sourceIndex:f[_.FIELDS.START_POS],spaces:{before:o,after:""}}))}}return s},t.convertWhitespaceNodesToSpace=function(r,i){var s=this;i===void 0&&(i=!1);var o="",a="";r.forEach(function(f){var l=s.lossySpace(f.spaces.before,i),p=s.lossySpace(f.rawSpaceBefore,i);o+=l+s.lossySpace(f.spaces.after,i&&l.length===0),a+=l+f.value+s.lossySpace(f.rawSpaceAfter,i&&p.length===0)}),a===o&&(a=void 0);var u={space:o,rawSpace:a};return u},t.isNamedCombinator=function(r){return r===void 0&&(r=this.position),this.tokens[r+0]&&this.tokens[r+0][_.FIELDS.TYPE]===O.slash&&this.tokens[r+1]&&this.tokens[r+1][_.FIELDS.TYPE]===O.word&&this.tokens[r+2]&&this.tokens[r+2][_.FIELDS.TYPE]===O.slash},t.namedCombinator=function(){if(this.isNamedCombinator()){var r=this.content(this.tokens[this.position+1]),i=(0,Q.unesc)(r).toLowerCase(),s={};i!==r&&(s.value="/"+r+"/");var o=new ci.default({value:"/"+i+"/",source:Xe(this.currToken[_.FIELDS.START_LINE],this.currToken[_.FIELDS.START_COL],this.tokens[this.position+2][_.FIELDS.END_LINE],this.tokens[this.position+2][_.FIELDS.END_COL]),sourceIndex:this.currToken[_.FIELDS.START_POS],raws:s});return this.position=this.position+3,o}else this.unexpected()},t.combinator=function(){var r=this;if(this.content()==="|")return this.namespace();var i=this.locateNextMeaningfulToken(this.position);if(i<0||this.tokens[i][_.FIELDS.TYPE]===O.comma){var s=this.parseWhitespaceEquivalentTokens(i);if(s.length>0){var o=this.current.last;if(o){var a=this.convertWhitespaceNodesToSpace(s),u=a.space,f=a.rawSpace;f!==void 0&&(o.rawSpaceAfter+=f),o.spaces.after+=u}else s.forEach(function(I){return r.newNode(I)})}return}var l=this.currToken,p=void 0;i>this.position&&(p=this.parseWhitespaceEquivalentTokens(i));var y;if(this.isNamedCombinator()?y=this.namedCombinator():this.currToken[_.FIELDS.TYPE]===O.combinator?(y=new ci.default({value:this.content(),source:it(this.currToken),sourceIndex:this.currToken[_.FIELDS.START_POS]}),this.position++):mi[this.currToken[_.FIELDS.TYPE]]||p||this.unexpected(),y){if(p){var h=this.convertWhitespaceNodesToSpace(p),d=h.space,m=h.rawSpace;y.spaces.before=d,y.rawSpaceBefore=m}}else{var b=this.convertWhitespaceNodesToSpace(p,!0),g=b.space,w=b.rawSpace;w||(w=g);var T={},P={spaces:{}};g.endsWith(" ")&&w.endsWith(" ")?(T.before=g.slice(0,g.length-1),P.spaces.before=w.slice(0,w.length-1)):g.startsWith(" ")&&w.startsWith(" ")?(T.after=g.slice(1),P.spaces.after=w.slice(1)):P.value=w,y=new ci.default({value:" ",source:pi(l,this.tokens[this.position-1]),sourceIndex:l[_.FIELDS.START_POS],spaces:T,raws:P})}return this.currToken&&this.currToken[_.FIELDS.TYPE]===O.space&&(y.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(y)},t.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var r=new li.default({source:{start:Ks(this.tokens[this.position+1])}});this.current.parent.append(r),this.current=r,this.position++},t.comment=function(){var r=this.currToken;this.newNode(new Xs.default({value:this.content(),source:it(r),sourceIndex:r[_.FIELDS.START_POS]})),this.position++},t.error=function(r,i){throw this.root.error(r,i)},t.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[_.FIELDS.START_POS]})},t.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[_.FIELDS.START_POS])},t.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[_.FIELDS.START_POS])},t.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[_.FIELDS.START_POS])},t.namespace=function(){var r=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[_.FIELDS.TYPE]===O.word)return this.position++,this.word(r);if(this.nextToken[_.FIELDS.TYPE]===O.asterisk)return this.position++,this.universal(r)},t.nesting=function(){if(this.nextToken){var r=this.content(this.nextToken);if(r==="|"){this.position++;return}}var i=this.currToken;this.newNode(new Ed.default({value:this.content(),source:it(i),sourceIndex:i[_.FIELDS.START_POS]})),this.position++},t.parentheses=function(){var r=this.current.last,i=1;if(this.position++,r&&r.type===Ad.PSEUDO){var s=new li.default({source:{start:Ks(this.tokens[this.position-1])}}),o=this.current;for(r.append(s),this.current=s;this.position<this.tokens.length&&i;)this.currToken[_.FIELDS.TYPE]===O.openParenthesis&&i++,this.currToken[_.FIELDS.TYPE]===O.closeParenthesis&&i--,i?this.parse():(this.current.source.end=Zs(this.currToken),this.current.parent.source.end=Zs(this.currToken),this.position++);this.current=o}else{for(var a=this.currToken,u="(",f;this.position<this.tokens.length&&i;)this.currToken[_.FIELDS.TYPE]===O.openParenthesis&&i++,this.currToken[_.FIELDS.TYPE]===O.closeParenthesis&&i--,f=this.currToken,u+=this.parseParenthesisToken(this.currToken),this.position++;r?r.appendToPropertyAndEscape("value",u,u):this.newNode(new fi.default({value:u,source:Xe(a[_.FIELDS.START_LINE],a[_.FIELDS.START_COL],f[_.FIELDS.END_LINE],f[_.FIELDS.END_COL]),sourceIndex:a[_.FIELDS.START_POS]}))}if(i)return this.expected("closing parenthesis",this.currToken[_.FIELDS.START_POS])},t.pseudo=function(){for(var r=this,i="",s=this.currToken;this.currToken&&this.currToken[_.FIELDS.TYPE]===O.colon;)i+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[_.FIELDS.TYPE]===O.word)this.splitWord(!1,function(o,a){i+=o,r.newNode(new Td.default({value:i,source:pi(s,r.currToken),sourceIndex:s[_.FIELDS.START_POS]})),a>1&&r.nextToken&&r.nextToken[_.FIELDS.TYPE]===O.openParenthesis&&r.error("Misplaced parenthesis.",{index:r.nextToken[_.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[_.FIELDS.START_POS])},t.space=function(){var r=this.content();this.position===0||this.prevToken[_.FIELDS.TYPE]===O.comma||this.prevToken[_.FIELDS.TYPE]===O.openParenthesis||this.current.nodes.every(function(i){return i.type==="comment"})?(this.spaces=this.optionalSpace(r),this.position++):this.position===this.tokens.length-1||this.nextToken[_.FIELDS.TYPE]===O.comma||this.nextToken[_.FIELDS.TYPE]===O.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(r),this.position++):this.combinator()},t.string=function(){var r=this.currToken;this.newNode(new fi.default({value:this.content(),source:it(r),sourceIndex:r[_.FIELDS.START_POS]})),this.position++},t.universal=function(r){var i=this.nextToken;if(i&&this.content(i)==="|")return this.position++,this.namespace();var s=this.currToken;this.newNode(new Od.default({value:this.content(),source:it(s),sourceIndex:s[_.FIELDS.START_POS]}),r),this.position++},t.splitWord=function(r,i){for(var s=this,o=this.nextToken,a=this.content();o&&~[O.dollar,O.caret,O.equals,O.word].indexOf(o[_.FIELDS.TYPE]);){this.position++;var u=this.content();if(a+=u,u.lastIndexOf("\\")===u.length-1){var f=this.nextToken;f&&f[_.FIELDS.TYPE]===O.space&&(a+=this.requiredSpace(this.content(f)),this.position++)}o=this.nextToken}var l=hi(a,".").filter(function(d){var m=a[d-1]==="\\",b=/^\d+\.\d+%$/.test(a);return!m&&!b}),p=hi(a,"#").filter(function(d){return a[d-1]!=="\\"}),y=hi(a,"#{");y.length&&(p=p.filter(function(d){return!~y.indexOf(d)}));var h=(0,Pd.default)(Ld([0].concat(l,p)));h.forEach(function(d,m){var b=h[m+1]||a.length,g=a.slice(d,b);if(m===0&&i)return i.call(s,g,h.length);var w,T=s.currToken,P=T[_.FIELDS.START_POS]+h[m],I=Xe(T[1],T[2]+d,T[3],T[2]+(b-1));if(~l.indexOf(d)){var F={value:g.slice(1),source:I,sourceIndex:P};w=new _d.default(ot(F,"value"))}else if(~p.indexOf(d)){var L={value:g.slice(1),source:I,sourceIndex:P};w=new Sd.default(ot(L,"value"))}else{var C={value:g,source:I,sourceIndex:P};ot(C,"value"),w=new kd.default(C)}s.newNode(w,r),r=null}),this.position++},t.word=function(r){var i=this.nextToken;return i&&this.content(i)==="|"?(this.position++,this.namespace()):this.splitWord(r)},t.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},t.parse=function(r){switch(this.currToken[_.FIELDS.TYPE]){case O.space:this.space();break;case O.comment:this.comment();break;case O.openParenthesis:this.parentheses();break;case O.closeParenthesis:r&&this.missingParenthesis();break;case O.openSquare:this.attribute();break;case O.dollar:case O.caret:case O.equals:case O.word:this.word();break;case O.colon:this.pseudo();break;case O.comma:this.comma();break;case O.asterisk:this.universal();break;case O.ampersand:this.nesting();break;case O.slash:case O.combinator:this.combinator();break;case O.str:this.string();break;case O.closeSquare:this.missingSquareBracket();case O.semicolon:this.missingBackslash();default:this.unexpected()}},t.expected=function(r,i,s){if(Array.isArray(r)){var o=r.pop();r=r.join(", ")+" or "+o}var a=/^[aeiou]/.test(r[0])?"an":"a";return s?this.error("Expected "+a+" "+r+', found "'+s+'" instead.',{index:i}):this.error("Expected "+a+" "+r+".",{index:i})},t.requiredSpace=function(r){return this.options.lossy?" ":r},t.optionalSpace=function(r){return this.options.lossy?"":r},t.lossySpace=function(r,i){return this.options.lossy?i?" ":"":r},t.parseParenthesisToken=function(r){var i=this.content(r);return r[_.FIELDS.TYPE]===O.space?this.requiredSpace(i):i},t.newNode=function(r,i){return i&&(/^ +$/.test(i)&&(this.options.lossy||(this.spaces=(this.spaces||"")+i),i=!0),r.namespace=i,ot(r,"namespace")),this.spaces&&(r.spaces.before=this.spaces,this.spaces=""),this.current.append(r)},t.content=function(r){return r===void 0&&(r=this.currToken),this.css.slice(r[_.FIELDS.START_POS],r[_.FIELDS.END_POS])},t.locateNextMeaningfulToken=function(r){r===void 0&&(r=this.position+1);for(var i=r;i<this.tokens.length;)if(Id[this.tokens[i][_.FIELDS.TYPE]]){i++;continue}else return i;return-1},Rd(e,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),e}();zt.default=Cd;ta.exports=zt.default});var ia=R((Gt,na)=>{"use strict";c();Gt.__esModule=!0;Gt.default=void 0;var Dd=Md(ra());function Md(e){return e&&e.__esModule?e:{default:e}}var Fd=function(){function e(n,r){this.func=n||function(){},this.funcRes=null,this.options=r}var t=e.prototype;return t._shouldUpdateSelector=function(r,i){i===void 0&&(i={});var s=Object.assign({},this.options,i);return s.updateSelector===!1?!1:typeof r!="string"},t._isLossy=function(r){r===void 0&&(r={});var i=Object.assign({},this.options,r);return i.lossless===!1},t._root=function(r,i){i===void 0&&(i={});var s=new Dd.default(r,this._parseOptions(i));return s.root},t._parseOptions=function(r){return{lossy:this._isLossy(r)}},t._run=function(r,i){var s=this;return i===void 0&&(i={}),new Promise(function(o,a){try{var u=s._root(r,i);Promise.resolve(s.func(u)).then(function(f){var l=void 0;return s._shouldUpdateSelector(r,i)&&(l=u.toString(),r.selector=l),{transform:f,root:u,string:l}}).then(o,a)}catch(f){a(f);return}})},t._runSync=function(r,i){i===void 0&&(i={});var s=this._root(r,i),o=this.func(s);if(o&&typeof o.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var a=void 0;return i.updateSelector&&typeof r!="string"&&(a=s.toString(),r.selector=a),{transform:o,root:s,string:a}},t.ast=function(r,i){return this._run(r,i).then(function(s){return s.root})},t.astSync=function(r,i){return this._runSync(r,i).root},t.transform=function(r,i){return this._run(r,i).then(function(s){return s.transform})},t.transformSync=function(r,i){return this._runSync(r,i).transform},t.process=function(r,i){return this._run(r,i).then(function(s){return s.string||s.root.toString()})},t.processSync=function(r,i){var s=this._runSync(r,i);return s.string||s.root.toString()},e}();Gt.default=Fd;na.exports=Gt.default});var oa=R(Y=>{"use strict";c();Y.__esModule=!0;Y.universal=Y.tag=Y.string=Y.selector=Y.root=Y.pseudo=Y.nesting=Y.id=Y.comment=Y.combinator=Y.className=Y.attribute=void 0;var Nd=ye(ei()),$d=ye(Nn()),qd=ye(ii()),Wd=ye(qn()),Bd=ye(Bn()),Ud=ye(si()),zd=ye(Yn()),Gd=ye(Ln()),Vd=ye(Dn()),jd=ye(jn()),Hd=ye(Gn()),Yd=ye(ri());function ye(e){return e&&e.__esModule?e:{default:e}}var Xd=function(t){return new Nd.default(t)};Y.attribute=Xd;var Qd=function(t){return new $d.default(t)};Y.className=Qd;var Jd=function(t){return new qd.default(t)};Y.combinator=Jd;var Kd=function(t){return new Wd.default(t)};Y.comment=Kd;var Zd=function(t){return new Bd.default(t)};Y.id=Zd;var ep=function(t){return new Ud.default(t)};Y.nesting=ep;var tp=function(t){return new zd.default(t)};Y.pseudo=tp;var rp=function(t){return new Gd.default(t)};Y.root=rp;var np=function(t){return new Vd.default(t)};Y.selector=np;var ip=function(t){return new jd.default(t)};Y.string=ip;var op=function(t){return new Hd.default(t)};Y.tag=op;var sp=function(t){return new Yd.default(t)};Y.universal=sp});var la=R(q=>{"use strict";c();q.__esModule=!0;q.isNode=gi;q.isPseudoElement=ua;q.isPseudoClass=vp;q.isContainer=bp;q.isNamespace=yp;q.isUniversal=q.isTag=q.isString=q.isSelector=q.isRoot=q.isPseudo=q.isNesting=q.isIdentifier=q.isComment=q.isCombinator=q.isClassName=q.isAttribute=void 0;var J=ie(),ce,ap=(ce={},ce[J.ATTRIBUTE]=!0,ce[J.CLASS]=!0,ce[J.COMBINATOR]=!0,ce[J.COMMENT]=!0,ce[J.ID]=!0,ce[J.NESTING]=!0,ce[J.PSEUDO]=!0,ce[J.ROOT]=!0,ce[J.SELECTOR]=!0,ce[J.STRING]=!0,ce[J.TAG]=!0,ce[J.UNIVERSAL]=!0,ce);function gi(e){return typeof e=="object"&&ap[e.type]}function xe(e,t){return gi(t)&&t.type===e}var sa=xe.bind(null,J.ATTRIBUTE);q.isAttribute=sa;var up=xe.bind(null,J.CLASS);q.isClassName=up;var lp=xe.bind(null,J.COMBINATOR);q.isCombinator=lp;var fp=xe.bind(null,J.COMMENT);q.isComment=fp;var cp=xe.bind(null,J.ID);q.isIdentifier=cp;var dp=xe.bind(null,J.NESTING);q.isNesting=dp;var vi=xe.bind(null,J.PSEUDO);q.isPseudo=vi;var pp=xe.bind(null,J.ROOT);q.isRoot=pp;var hp=xe.bind(null,J.SELECTOR);q.isSelector=hp;var mp=xe.bind(null,J.STRING);q.isString=mp;var aa=xe.bind(null,J.TAG);q.isTag=aa;var gp=xe.bind(null,J.UNIVERSAL);q.isUniversal=gp;function ua(e){return vi(e)&&e.value&&(e.value.startsWith("::")||e.value.toLowerCase()===":before"||e.value.toLowerCase()===":after"||e.value.toLowerCase()===":first-letter"||e.value.toLowerCase()===":first-line")}function vp(e){return vi(e)&&!ua(e)}function bp(e){return!!(gi(e)&&e.walk)}function yp(e){return sa(e)||aa(e)}});var fa=R(ke=>{"use strict";c();ke.__esModule=!0;var bi=ie();Object.keys(bi).forEach(function(e){e==="default"||e==="__esModule"||e in ke&&ke[e]===bi[e]||(ke[e]=bi[e])});var yi=oa();Object.keys(yi).forEach(function(e){e==="default"||e==="__esModule"||e in ke&&ke[e]===yi[e]||(ke[e]=yi[e])});var xi=la();Object.keys(xi).forEach(function(e){e==="default"||e==="__esModule"||e in ke&&ke[e]===xi[e]||(ke[e]=xi[e])})});var pa=R((Vt,da)=>{"use strict";c();Vt.__esModule=!0;Vt.default=void 0;var xp=Sp(ia()),wp=_p(fa());function ca(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return ca=function(){return e},e}function _p(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=ca();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var s=r?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function Sp(e){return e&&e.__esModule?e:{default:e}}var wi=function(t){return new xp.default(t)};Object.assign(wi,wp);delete wi.__esModule;var kp=wi;Vt.default=kp;da.exports=Vt.default});var ha=R(_i=>{"use strict";c();Object.defineProperty(_i,"__esModule",{value:!0});Object.defineProperty(_i,"default",{enumerable:!0,get:()=>Tp});function Tp(e){return e.replace(/\\,/g,"\\2c ")}});var ga=R((dg,ma)=>{"use strict";c();ma.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var ki=R(Si=>{"use strict";c();Object.defineProperty(Si,"__esModule",{value:!0});function Op(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Op(Si,{parseColor:()=>Lp,formatColor:()=>Cp});var va=Ep(ga());function Ep(e){return e&&e.__esModule?e:{default:e}}var Pp=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,Ap=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,Be=/(?:\d+|\d*\.\d+)%?/,Lr=/(?:\s*,\s*|\s+)/,ba=/\s*[,/]\s*/,Ue=/var\(--(?:[^ )]*?)\)/,Rp=new RegExp(`^(rgb)a?\\(\\s*(${Be.source}|${Ue.source})(?:${Lr.source}(${Be.source}|${Ue.source}))?(?:${Lr.source}(${Be.source}|${Ue.source}))?(?:${ba.source}(${Be.source}|${Ue.source}))?\\s*\\)$`),Ip=new RegExp(`^(hsl)a?\\(\\s*((?:${Be.source})(?:deg|rad|grad|turn)?|${Ue.source})(?:${Lr.source}(${Be.source}|${Ue.source}))?(?:${Lr.source}(${Be.source}|${Ue.source}))?(?:${ba.source}(${Be.source}|${Ue.source}))?\\s*\\)$`);function Lp(e,{loose:t=!1}={}){var n,r;if(typeof e!="string")return null;if(e=e.trim(),e==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(e in va.default)return{mode:"rgb",color:va.default[e].map(u=>u.toString())};let i=e.replace(Ap,(u,f,l,p,y)=>["#",f,f,l,l,p,p,y?y+y:""].join("")).match(Pp);if(i!==null)return{mode:"rgb",color:[parseInt(i[1],16),parseInt(i[2],16),parseInt(i[3],16)].map(u=>u.toString()),alpha:i[4]?(parseInt(i[4],16)/255).toString():void 0};var s;let o=(s=e.match(Rp))!==null&&s!==void 0?s:e.match(Ip);if(o===null)return null;let a=[o[2],o[3],o[4]].filter(Boolean).map(u=>u.toString());return!t&&a.length!==3||a.length<3&&!a.some(u=>/^var\(.*?\)$/.test(u))?null:{mode:o[1],color:a,alpha:(n=o[5])===null||n===void 0||(r=n.toString)===null||r===void 0?void 0:r.call(n)}}function Cp({mode:e,color:t,alpha:n}){let r=n!==void 0;return`${e}(${t.join(" ")}${r?` / ${n}`:""})`}});var Oi=R(Ti=>{"use strict";c();Object.defineProperty(Ti,"__esModule",{value:!0});function Dp(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Dp(Ti,{withAlphaValue:()=>Mp,default:()=>Fp});var Cr=ki();function Mp(e,t,n){if(typeof e=="function")return e({opacityValue:t});let r=(0,Cr.parseColor)(e,{loose:!0});return r===null?n:(0,Cr.formatColor)({...r,alpha:t})}function Fp({color:e,property:t,variable:n}){let r=[].concat(t);if(typeof e=="function")return{[n]:"1",...Object.fromEntries(r.map(s=>[s,e({opacityVariable:n,opacityValue:`var(${n})`})]))};let i=(0,Cr.parseColor)(e);return i===null?Object.fromEntries(r.map(s=>[s,e])):i.alpha!==void 0?Object.fromEntries(r.map(s=>[s,e])):{[n]:"1",...Object.fromEntries(r.map(s=>[s,(0,Cr.formatColor)({...i,alpha:`var(${n})`})]))}}});var Sa=R(Ei=>{"use strict";c();Object.defineProperty(Ei,"__esModule",{value:!0});function Np(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Np(Ei,{pattern:()=>qp,withoutCapturing:()=>xa,any:()=>wa,optional:()=>Wp,zeroOrMore:()=>Bp,nestedBrackets:()=>_a,escape:()=>Qe});var ya=/[\\^$.*+?()[\]{}|]/g,$p=RegExp(ya.source);function jt(e){return e=Array.isArray(e)?e:[e],e=e.map(t=>t instanceof RegExp?t.source:t),e.join("")}function qp(e){return new RegExp(jt(e),"g")}function xa(e){return new RegExp(`(?:${jt(e)})`,"g")}function wa(e){return`(?:${e.map(jt).join("|")})`}function Wp(e){return`(?:${jt(e)})?`}function Bp(e){return`(?:${jt(e)})*`}function _a(e,t,n=1){return xa([Qe(e),/[^\s]*/,n===1?`[^${Qe(e)}${Qe(t)}s]*`:wa([`[^${Qe(e)}${Qe(t)}s]*`,_a(e,t,n-1)]),/[^\s]*/,Qe(t)])}function Qe(e){return e&&$p.test(e)?e.replace(ya,"\\$&"):e||""}});var Ta=R(Pi=>{"use strict";c();Object.defineProperty(Pi,"__esModule",{value:!0});Object.defineProperty(Pi,"splitAtTopLevelOnly",{enumerable:!0,get:()=>Gp});var Up=zp(Sa());function ka(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(ka=function(r){return r?n:t})(e)}function zp(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=ka(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function*Gp(e,t){let n=new RegExp(`[(){}\\[\\]${Up.escape(t)}]`,"g"),r=0,i=0,s=!1,o=0,a=0,u=t.length;for(let f of e.matchAll(n)){let l=f[0]===t[o],p=o===u-1,y=l&&p;f[0]==="("&&r++,f[0]===")"&&r--,f[0]==="["&&r++,f[0]==="]"&&r--,f[0]==="{"&&r++,f[0]==="}"&&r--,l&&r===0&&(a===0&&(a=f.index),o++),y&&r===0&&(s=!0,yield e.substring(i,a),i=a+u),o===u&&(o=0,a=0)}s?yield e.substring(i):yield e}});var Ea=R(Ai=>{"use strict";c();Object.defineProperty(Ai,"__esModule",{value:!0});function Vp(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Vp(Ai,{parseBoxShadowValue:()=>Xp,formatBoxShadowValue:()=>Qp});var jp=Ta(),Hp=new Set(["inset","inherit","initial","revert","unset"]),Yp=/\ +(?![^(]*\))/g,Oa=/^-?(\d+|\.\d+)(.*?)$/g;function Xp(e){return Array.from((0,jp.splitAtTopLevelOnly)(e,",")).map(n=>{let r=n.trim(),i={raw:r},s=r.split(Yp),o=new Set;for(let a of s)Oa.lastIndex=0,!o.has("KEYWORD")&&Hp.has(a)?(i.keyword=a,o.add("KEYWORD")):Oa.test(a)?o.has("X")?o.has("Y")?o.has("BLUR")?o.has("SPREAD")||(i.spread=a,o.add("SPREAD")):(i.blur=a,o.add("BLUR")):(i.y=a,o.add("Y")):(i.x=a,o.add("X")):i.color?(i.unknown||(i.unknown=[]),i.unknown.push(a)):i.color=a;return i.valid=i.x!==void 0&&i.y!==void 0,i})}function Qp(e){return e.map(t=>t.valid?[t.keyword,t.x,t.y,t.blur,t.spread,t.color].filter(Boolean).join(" "):t.raw).join(", ")}});var Da=R(Ii=>{"use strict";c();Object.defineProperty(Ii,"__esModule",{value:!0});function Jp(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Jp(Ii,{normalize:()=>ze,url:()=>Ra,number:()=>eh,percentage:()=>Ia,length:()=>La,lineWidth:()=>nh,shadow:()=>ih,color:()=>oh,image:()=>sh,gradient:()=>Ca,position:()=>lh,familyName:()=>fh,genericName:()=>dh,absoluteSize:()=>hh,relativeSize:()=>gh});var Kp=ki(),Zp=Ea(),Ri=["min","max","clamp","calc"],Aa=/,(?![^(]*\))/g,Dr=/_(?![^(]*\))/g;function ze(e,t=!0){return e.includes("url(")?e.split(/(url\(.*?\))/g).filter(Boolean).map(n=>/^url\(.*?\)$/.test(n)?n:ze(n,!1)).join(""):(e=e.replace(/([^\\])_+/g,(n,r)=>r+" ".repeat(n.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),t&&(e=e.trim()),e=e.replace(/(calc|min|max|clamp)\(.+\)/g,n=>n.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ")),e)}function Ra(e){return e.startsWith("url(")}function eh(e){return!isNaN(Number(e))||Ri.some(t=>new RegExp(`^${t}\\(.+?`).test(e))}function Ia(e){return e.split(Dr).every(t=>/%$/g.test(t)||Ri.some(n=>new RegExp(`^${n}\\(.+?%`).test(t)))}var th=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],Pa=`(?:${th.join("|")})`;function La(e){return e.split(Dr).every(t=>t==="0"||new RegExp(`${Pa}$`).test(t)||Ri.some(n=>new RegExp(`^${n}\\(.+?${Pa}`).test(t)))}var rh=new Set(["thin","medium","thick"]);function nh(e){return rh.has(e)}function ih(e){let t=(0,Zp.parseBoxShadowValue)(ze(e));for(let n of t)if(!n.valid)return!1;return!0}function oh(e){let t=0;return e.split(Dr).every(r=>(r=ze(r),r.startsWith("var(")?!0:(0,Kp.parseColor)(r,{loose:!0})!==null?(t++,!0):!1))?t>0:!1}function sh(e){let t=0;return e.split(Aa).every(r=>(r=ze(r),r.startsWith("var(")?!0:Ra(r)||Ca(r)||["element(","image(","cross-fade(","image-set("].some(i=>r.startsWith(i))?(t++,!0):!1))?t>0:!1}var ah=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function Ca(e){e=ze(e);for(let t of ah)if(e.startsWith(`${t}(`))return!0;return!1}var uh=new Set(["center","top","right","bottom","left"]);function lh(e){let t=0;return e.split(Dr).every(r=>(r=ze(r),r.startsWith("var(")?!0:uh.has(r)||La(r)||Ia(r)?(t++,!0):!1))?t>0:!1}function fh(e){let t=0;return e.split(Aa).every(r=>(r=ze(r),r.startsWith("var(")?!0:r.includes(" ")&&!/(['"])([^"']+)\1/g.test(r)||/^\d/g.test(r)?!1:(t++,!0)))?t>0:!1}var ch=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function dh(e){return ch.has(e)}var ph=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function hh(e){return ph.has(e)}var mh=new Set(["larger","smaller"]);function gh(e){return mh.has(e)}});var Ua=R(Di=>{"use strict";c();Object.defineProperty(Di,"__esModule",{value:!0});function vh(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}vh(Di,{updateAllClasses:()=>xh,asValue:()=>Yt,parseColorFormat:()=>Li,asColor:()=>qa,asLookupValue:()=>Wa,coerceValue:()=>kh});var bh=Ci(pa()),yh=Ci(ha()),Ma=Oi(),de=Da(),Fa=Ci(bn());function Ci(e){return e&&e.__esModule?e:{default:e}}function xh(e,t){return(0,bh.default)(i=>{i.walkClasses(s=>{let o=t(s.value);s.value=o,s.raws&&s.raws.value&&(s.raws.value=(0,yh.default)(s.raws.value))})}).processSync(e)}function $a(e,t){if(!Ht(e))return;let n=e.slice(1,-1);if(!!t(n))return(0,de.normalize)(n)}function wh(e,t={},n){let r=t[e];if(r!==void 0)return(0,Fa.default)(r);if(Ht(e)){let i=$a(e,n);return i===void 0?void 0:(0,Fa.default)(i)}}function Yt(e,t={},{validate:n=()=>!0}={}){var r;let i=(r=t.values)===null||r===void 0?void 0:r[e];return i!==void 0?i:t.supportsNegativeValues&&e.startsWith("-")?wh(e.slice(1),t.values,n):$a(e,n)}function Ht(e){return e.startsWith("[")&&e.endsWith("]")}function _h(e){let t=e.lastIndexOf("/");return t===-1||t===e.length-1?[e]:[e.slice(0,t),e.slice(t+1)]}function Li(e){if(typeof e=="string"&&e.includes("<alpha-value>")){let t=e;return({opacityValue:n=1})=>t.replace("<alpha-value>",n)}return e}function qa(e,t={},{tailwindConfig:n={}}={}){var r;if(((r=t.values)===null||r===void 0?void 0:r[e])!==void 0){var i;return Li((i=t.values)===null||i===void 0?void 0:i[e])}let[s,o]=_h(e);if(o!==void 0){var a,u,f,l;let p=(l=(a=t.values)===null||a===void 0?void 0:a[s])!==null&&l!==void 0?l:Ht(s)?s.slice(1,-1):void 0;return p===void 0?void 0:(p=Li(p),Ht(o)?(0,Ma.withAlphaValue)(p,o.slice(1,-1)):((u=n.theme)===null||u===void 0||(f=u.opacity)===null||f===void 0?void 0:f[o])===void 0?void 0:(0,Ma.withAlphaValue)(p,n.theme.opacity[o]))}return Yt(e,t,{validate:de.color})}function Wa(e,t={}){var n;return(n=t.values)===null||n===void 0?void 0:n[e]}function we(e){return(t,n)=>Yt(t,n,{validate:e})}var Ba={any:Yt,color:qa,url:we(de.url),image:we(de.image),length:we(de.length),percentage:we(de.percentage),position:we(de.position),lookup:Wa,"generic-name":we(de.genericName),"family-name":we(de.familyName),number:we(de.number),"line-width":we(de.lineWidth),"absolute-size":we(de.absoluteSize),"relative-size":we(de.relativeSize),shadow:we(de.shadow)},Na=Object.keys(Ba);function Sh(e,t){let n=e.indexOf(t);return n===-1?[void 0,e]:[e.slice(0,n),e.slice(n+1)]}function kh(e,t,n,r){if(Ht(t)){let i=t.slice(1,-1),[s,o]=Sh(i,":");if(!/^[\w-_]+$/g.test(s))o=i;else if(s!==void 0&&!Na.includes(s))return[];if(o.length>0&&Na.includes(s))return[Yt(`[${o}]`,n),s]}for(let i of[].concat(e)){let s=Ba[i](t,n,{tailwindConfig:r});if(s!==void 0)return[s,i]}return[]}});var za=R(Mi=>{"use strict";c();Object.defineProperty(Mi,"__esModule",{value:!0});Object.defineProperty(Mi,"default",{enumerable:!0,get:()=>Th});function Th(e){return typeof e=="function"?e({}):e}});var Ya=R(Ni=>{"use strict";c();Object.defineProperty(Ni,"__esModule",{value:!0});Object.defineProperty(Ni,"default",{enumerable:!0,get:()=>Vh});var Oh=Je(bn()),Eh=Je(Jo()),Ph=Je(Ko()),Ah=Je(wn()),Rh=Je(es()),ja=ts(),Ga=rs(),Ih=is(),Lh=Je(os()),Ch=ss(),Dh=Ua(),Mh=Oi(),Fh=Je(za());function Je(e){return e&&e.__esModule?e:{default:e}}function st(e){return typeof e=="function"}function Xt(e){return typeof e=="object"&&e!==null}function Qt(e,...t){let n=t.pop();for(let r of t)for(let i in r){let s=n(e[i],r[i]);s===void 0?Xt(e[i])&&Xt(r[i])?e[i]=Qt(e[i],r[i],n):e[i]=r[i]:e[i]=s}return e}var Fi={colors:Rh.default,negative(e){return Object.keys(e).filter(t=>e[t]!=="0").reduce((t,n)=>{let r=(0,Oh.default)(e[n]);return r!==void 0&&(t[`-${n}`]=r),t},{})},breakpoints(e){return Object.keys(e).filter(t=>typeof e[t]=="string").reduce((t,n)=>({...t,[`screen-${n}`]:e[n]}),{})}};function Nh(e,...t){return st(e)?e(...t):e}function $h(e){return e.reduce((t,{extend:n})=>Qt(t,n,(r,i)=>r===void 0?[i]:Array.isArray(r)?[i,...r]:[i,r]),{})}function qh(e){return{...e.reduce((t,n)=>(0,ja.defaults)(t,n),{}),extend:$h(e)}}function Va(e,t){if(Array.isArray(e)&&Xt(e[0]))return e.concat(t);if(Array.isArray(t)&&Xt(t[0])&&Xt(e))return[e,...t];if(Array.isArray(t))return t}function Wh({extend:e,...t}){return Qt(t,e,(n,r)=>!st(n)&&!r.some(st)?Qt({},n,...r,Va):(i,s)=>Qt({},...[n,...r].map(o=>Nh(o,i,s)),Va))}function*Bh(e){let t=(0,Ga.toPath)(e);if(t.length===0||(yield t,Array.isArray(e)))return;let n=/^(.*?)\s*\/\s*([^/]+)$/,r=e.match(n);if(r!==null){let[,i,s]=r,o=(0,Ga.toPath)(i);o.alpha=s,yield o}}function Uh(e){let t=(n,r)=>{for(let i of Bh(n)){let s=0,o=e;for(;o!=null&&s<i.length;)o=o[i[s++]],o=st(o)&&(i.alpha===void 0||s<=i.length-1)?o(t,Fi):o;if(o!==void 0){if(i.alpha!==void 0){let a=(0,Dh.parseColorFormat)(o);return(0,Mh.withAlphaValue)(a,i.alpha,(0,Fh.default)(a))}return(0,Lh.default)(o)?(0,Ch.cloneDeep)(o):o}}return r};return Object.assign(t,{theme:t,...Fi}),Object.keys(e).reduce((n,r)=>(n[r]=st(e[r])?e[r](t,Fi):e[r],n),{})}function Ha(e){let t=[];return e.forEach(n=>{t=[...t,n];var r;let i=(r=n==null?void 0:n.plugins)!==null&&r!==void 0?r:[];i.length!==0&&i.forEach(s=>{s.__isOptionsFunction&&(s=s());var o;t=[...t,...Ha([(o=s==null?void 0:s.config)!==null&&o!==void 0?o:{}])]})}),t}function zh(e){return[...e].reduceRight((n,r)=>st(r)?r({corePlugins:n}):(0,Ph.default)(r,n),Eh.default)}function Gh(e){return[...e].reduceRight((n,r)=>[...n,...r],[])}function Vh(e){let t=[...Ha(e),{prefix:"",important:!1,separator:":",variantOrder:Ah.default.variantOrder}];var n,r;return(0,Ih.normalizeConfig)((0,ja.defaults)({theme:Uh(Wh(qh(t.map(i=>(n=i==null?void 0:i.theme)!==null&&n!==void 0?n:{})))),corePlugins:zh(t.map(i=>i.corePlugins)),plugins:Gh(e.map(i=>(r=i==null?void 0:i.plugins)!==null&&r!==void 0?r:[]))},...t))}});var Xa={};Ur(Xa,{default:()=>jh});var jh,Qa=Br(()=>{c();jh={yellow:e=>e}});var eu=R($i=>{"use strict";c();Object.defineProperty($i,"__esModule",{value:!0});function Hh(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Hh($i,{flagEnabled:()=>Qh,issueFlagNotices:()=>Jh,default:()=>Kh});var Yh=Za((Qa(),dt(Xa))),Xh=Za((yr(),dt(br)));function Za(e){return e&&e.__esModule?e:{default:e}}var Ja={optimizeUniversalDefaults:!1},Jt={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function Qh(e,t){if(Jt.future.includes(t)){var n,r,i;return e.future==="all"||((i=(r=e==null||(n=e.future)===null||n===void 0?void 0:n[t])!==null&&r!==void 0?r:Ja[t])!==null&&i!==void 0?i:!1)}if(Jt.experimental.includes(t)){var s,o,a;return e.experimental==="all"||((a=(o=e==null||(s=e.experimental)===null||s===void 0?void 0:s[t])!==null&&o!==void 0?o:Ja[t])!==null&&a!==void 0?a:!1)}return!1}function Ka(e){if(e.experimental==="all")return Jt.experimental;var t;return Object.keys((t=e==null?void 0:e.experimental)!==null&&t!==void 0?t:{}).filter(n=>Jt.experimental.includes(n)&&e.experimental[n])}function Jh(e){if(process.env.JEST_WORKER_ID===void 0&&Ka(e).length>0){let t=Ka(e).map(n=>Yh.default.yellow(n)).join(", ");Xh.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${t}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}var Kh=Jt});var ru=R(qi=>{"use strict";c();Object.defineProperty(qi,"__esModule",{value:!0});Object.defineProperty(qi,"default",{enumerable:!0,get:()=>tu});var Zh=t0(wn()),e0=eu();function t0(e){return e&&e.__esModule?e:{default:e}}function tu(e){var t;let n=((t=e==null?void 0:e.presets)!==null&&t!==void 0?t:[Zh.default]).slice().reverse().flatMap(s=>tu(typeof s=="function"?s():s)),r={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},i=Object.keys(r).filter(s=>(0,e0.flagEnabled)(e,s)).map(s=>r[s]);return[e,...i,...n]}});var iu=R(Wi=>{"use strict";c();Object.defineProperty(Wi,"__esModule",{value:!0});Object.defineProperty(Wi,"default",{enumerable:!0,get:()=>i0});var r0=nu(Ya()),n0=nu(ru());function nu(e){return e&&e.__esModule?e:{default:e}}function i0(...e){let[,...t]=(0,n0.default)(e[0]);return(0,r0.default)([...e,...t])}});var su=R((Tg,ou)=>{c();var Bi=iu();ou.exports=(Bi.__esModule?Bi:{default:Bi}).default});var S0={};Ur(S0,{default:()=>oo,init:()=>xo});module.exports=dt(S0);c();c();c();c();var $u=ct(require("yoga-layout-prebuilt"),1),yo=$u;var zr;zr=yo.default;function xo(e){zr=e}function Ie(){return zr}c();c();c();var pt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),qu=pt((e,t)=>{t.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),Wu=pt((e,t)=>{t.exports=["deg","grad","rad","turn"]}),Bu=pt((e,t)=>{t.exports=["dpi","dpcm","dppx"]}),Uu=pt((e,t)=>{t.exports=["Hz","kHz"]}),zu=pt((e,t)=>{t.exports=["s","ms"]}),Gu=qu(),wo=Wu(),_o=Bu(),So=Uu(),ko=zu();function Vr(e){if(/\.\D?$/.test(e))throw new Error("The dot should be followed by a number");if(/^[+-]{2}/.test(e))throw new Error("Only one leading +/- is allowed");if(Vu(e)>1)throw new Error("Only one dot is allowed");if(/%$/.test(e)){this.type="percentage",this.value=Gr(e),this.unit="%";return}var t=Hu(e);if(!t){this.type="number",this.value=Gr(e);return}this.type=Xu(t),this.value=Gr(e.substr(0,e.length-t.length)),this.unit=t}Vr.prototype.valueOf=function(){return this.value};Vr.prototype.toString=function(){return this.value+(this.unit||"")};function We(e){return new Vr(e)}function Vu(e){var t=e.match(/\./g);return t?t.length:0}function Gr(e){var t=parseFloat(e);if(isNaN(t))throw new Error("Invalid number: "+e);return t}var ju=[].concat(wo,So,Gu,_o,ko);function Hu(e){var t=e.match(/\D+$/),n=t&&t[0];if(n&&ju.indexOf(n)===-1)throw new Error("Invalid unit: "+n);return n}var Yu=Object.assign(fr(wo,"angle"),fr(So,"frequency"),fr(_o,"resolution"),fr(ko,"time"));function fr(e,t){return Object.fromEntries(e.map(n=>[n,t]))}function Xu(e){return Yu[e]||"length"}function Xr(e){let t=typeof e;return!(t==="number"||t==="bigint"||t==="string"||t==="boolean")}function Oo(e){return/^class\s/.test(e.toString())}function Eo(e){return"dangerouslySetInnerHTML"in e}function Po(e){let t=typeof e>"u"?[]:[].concat(e).flat(1/0),n=[];for(let r=0;r<t.length;r++){let i=t[r];typeof i>"u"||typeof i=="boolean"||i===null||(typeof i=="number"&&(i=String(i)),typeof i=="string"&&n.length&&typeof n[n.length-1]=="string"?n[n.length-1]+=i:n.push(i))}return n}function ge(e,t,n,r,i=!1){if(typeof e=="number")return e;try{if(e=e.trim(),/[ /\(,]/.test(e))return;if(e===String(+e))return+e;let s=new We(e);if(s.type==="length")switch(s.unit){case"em":return s.value*t;case"rem":return s.value*16;case"vw":return~~(s.value*r._viewportWidth/100);case"vh":return~~(s.value*r._viewportHeight/100);default:return s.value}else if(s.type==="angle")switch(s.unit){case"deg":return s.value;case"rad":return s.value*180/Math.PI;default:return s.value}else if(s.type==="percentage"&&i)return s.value/100*n}catch{}}function ht(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}function ae(e,t,n,r){let i=t[e];if(typeof i>"u"){if(r&&typeof e<"u")throw new Error(`Invalid value for CSS property "${r}". Allowed values: ${Object.keys(t).map(s=>`"${s}"`).join(" | ")}. Received: "${e}".`);i=n}return i}var To=void 0,jr,Hr,cr=[32,160,4961,65792,65793,4153,4241,10].map(e=>String.fromCodePoint(e));function He(e,t){if(!jr||!Hr){if(!(typeof Intl<"u"&&"Segmenter"in Intl))throw new Error("Intl.Segmenter does not exist, please use import a polyfill.");jr=new Intl.Segmenter(To,{granularity:"word"}),Hr=new Intl.Segmenter(To,{granularity:"grapheme"})}return t==="word"?[...jr.segment(e)].map(n=>n.segment):[...Hr.segment(e)].map(n=>n.segment)}function A(e,t,n){let r="";for(let[i,s]of Object.entries(t))typeof s<"u"&&(r+=` ${i}="${s}"`);return n?`<${e}${r}>${n}</${e}>`:`<${e}${r}/>`}function Ao(e=20){let t=new Map;function n(i,s){if(t.size>=e){let o=t.keys().next().value;t.delete(o)}t.set(i,s)}function r(i){if(!t.has(i))return;let o=t.get(i);return t.delete(i),t.set(i,o),o}return{set:n,get:r}}var Ro={accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlLang:"xml:lang",xmlSpace:"xml:space",xmlnsXlink:"xmlns:xlink"},Qu=/[\r\n%#()<>?[\\\]^`{|}"']/g;function Yr(e){if(!e)return"";if(Array.isArray(e))return e.map(Yr).join("");if(typeof e!="object")return String(e);let t=e.type;if(t==="text")throw new Error("<text> nodes are not currently supported, please convert them to <path>");let{children:n,...r}=e.props||{};return`<${t}${Object.entries(r).map(([i,s])=>` ${Ro[i]||i}="${s}"`).join("")}>${Yr(n)}</${t}>`}function mt(e){return e.split(/[, ]/).filter(Boolean).map(Number)}function Io(e){let{viewBox:t,viewbox:n,width:r,height:i,className:s,style:o,children:a,...u}=e.props||{};t||(t=n);let f=mt(t);return u.xmlns="http://www.w3.org/2000/svg",u.viewBox=t,u.width=f[2],u.height=f[3],`data:image/svg+xml;utf8,${`<svg${Object.entries(u).map(([l,p])=>` ${Ro[l]||l}="${p}"`).join("")}>${Yr(a)}</svg>`.replace(Qu,encodeURIComponent)}`}c();c();var ve="flex",Lo={p:{display:ve,marginTop:"1em",marginBottom:"1em"},div:{display:ve},blockquote:{display:ve,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:ve,textAlign:"center"},hr:{display:ve,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:ve,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:ve,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:ve,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:ve,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:ve,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:ve,fontSize:"0.67em",marginTop:"2.33em",marginBottom:"2.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},u:{textDecoration:"underline"},strong:{fontWeight:"bold"},b:{fontWeight:"bold"},i:{fontStyle:"italic"},em:{fontStyle:"italic"},code:{fontFamily:"monospace"},kbd:{fontFamily:"monospace"},pre:{display:ve,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}};c();var Ju=new Set(["color","font","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","textAlign","textTransform","textShadowOffset","textShadowColor","textShadowRadius","textDecorationLine","textDecorationStyle","textDecorationColor","whiteSpace","transform","wordBreak","opacity","filter","_viewportWidth","_viewportHeight","_inheritedClipPathId","_inheritedMaskId","_inheritedBackgroundClipTextPath"]);function Qr(e){let t={};for(let n in e)Ju.has(n)&&(t[n]=e[n]);return t}c();var Te=require("css-to-react-native"),Fo=require("css-background-parser"),No=require("css-box-shadow");c();var Co=ct(require("postcss-value-parser"),1);function Ku(e,t){try{let n=new We(e);switch(n.unit){case"px":return{absolute:n.value};case"em":return{absolute:n.value*t};case"rem":return{absolute:n.value*16};case"%":return{relative:n.value};default:return{}}}catch{return{}}}function Jr(e,t,n){switch(e){case"top":return{yRelative:0};case"left":return{xRelative:0};case"right":return{xRelative:100};case"bottom":return{yRelative:100};case"center":return{};default:{let r=Ku(e,t);return r.absolute?{[n?"xAbsolute":"yAbsolute"]:r.absolute}:r.relative?{[n?"xRelative":"yRelative"]:r.relative}:{}}}}function Kr(e,t){if(typeof e=="number")return{xAbsolute:e};let n;try{n=(0,Co.default)(e).nodes.filter(r=>r.type==="word").map(r=>r.value)}catch{return{}}return n.length===1?Jr(n[0],t,!0):n.length===2?((n[0]==="top"||n[0]==="bottom"||n[1]==="left"||n[1]==="right")&&n.reverse(),{...Jr(n[0],t,!0),...Jr(n[1],t,!1)}):{}}var Zu=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),el=new Set(["lineHeight"]);function tl(e,t,n,r){return e==="textDecoration"&&!n.includes(t.textDecorationColor)&&(t.textDecorationColor=r),t}function gt(e,t){return typeof t=="number"?Zu.has(e)?el.has(e)?t:String(t):t+"px":t}function rl(e,t,n){if(e==="lineHeight")return{lineHeight:gt(e,t)};if(e==="fontFamily")return{fontFamily:t.split(",").map(r=>r.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(e==="borderRadius"){if(typeof t!="string"||!t.includes("/"))return;let[r,i]=t.split("/"),s=(0,Te.getStylesForProperty)(e,r,!0),o=(0,Te.getStylesForProperty)(e,i,!0);for(let a in s)o[a]=gt(e,s[a])+" "+gt(e,o[a]);return o}if(/^border(Top|Right|Bottom|Left)?$/.test(e)){let r=(0,Te.getStylesForProperty)("border",t,!0);r.borderWidth===1&&!String(t).includes("1px")&&(r.borderWidth=3),r.borderColor==="black"&&!String(t).includes("black")&&(r.borderColor=n);let i={Width:gt(e+"Width",r.borderWidth),Style:ae(r.borderStyle,{solid:"solid",dashed:"dashed"},"solid",e+"Style"),Color:r.borderColor},s={};for(let o of e==="border"?["Top","Right","Bottom","Left"]:[e.slice(6)])for(let a in i)s["border"+o+a]=i[a];return s}if(e==="boxShadow"){if(!t)throw new Error('Invalid `boxShadow` value: "'+t+'".');return{[e]:typeof t=="string"?(0,No.parse)(t):t}}if(e==="transform"){if(typeof t!="string")throw new Error("Invalid `transform` value.");let r={},i=t.replace(/(-?[\d.]+%)/g,(o,a)=>{let u=~~(Math.random()*1e9);return r[u]=a,u+"px"}),s=(0,Te.getStylesForProperty)("transform",i,!0);for(let o of s.transform)for(let a in o)r[o[a]]&&(o[a]=r[o[a]]);return s}if(e==="background")return t=t.toString().trim(),/^(linear-gradient|radial-gradient|url)\(/.test(t)?(0,Te.getStylesForProperty)("backgroundImage",t,!0):(0,Te.getStylesForProperty)("background",t,!0)}function Do(e){return e==="transform"?" Only absolute lengths such as `10px` are supported.":""}var Mo=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function $o(e){if(typeof e=="string"&&Mo.test(e.trim()))return e.trim().replace(Mo,(t,n,r,i,s)=>`rgba(${n}, ${r}, ${i}, ${s})`);if(typeof e=="object"&&e!==null){for(let t in e)e[t]=$o(e[t]);return e}return e}function dr(e,t){var i;let n={};for(let s in e){if(s.startsWith("_")){n[s]=e[s];continue}let o=(0,Te.getPropertyName)(s),a=e.color||t.color;try{let u=rl(o,e[s],a)||tl(o,(0,Te.getStylesForProperty)(o,gt(o,e[s]),!0),e[s],a);Object.assign(n,u)}catch(u){throw new Error(u.message+(u.message.includes(e[s])?`
|
|
4
|
-
`+
|
|
5
|
-
in CSS rule \`${o}: ${e[s]}\`.${Do(o)}`))}}if(n.backgroundImage){let{backgrounds:s}=(0,Fo.parseElementStyle)(n);n.backgroundImage=s}let r=typeof n.fontSize=="number"?n.fontSize:t.fontSize;if(typeof r=="string")try{let s=new We(r);switch(s.unit){case"em":r=s.value*t.fontSize;break;case"rem":r=s.value*16;break}}catch{r=16}typeof n.fontSize<"u"&&(n.fontSize=r),n.transformOrigin&&(n.transformOrigin=Kr(n.transformOrigin,r));for(let s in n){let o=n[s];if(s==="lineHeight")typeof o=="string"&&(o=n[s]=ge(o,r,r,t,!0)/r);else{if(typeof o=="string"){let a=ge(o,r,r,t);typeof a<"u"&&(n[s]=a),o=n[s]}if(typeof o=="string"||typeof o=="object"){let a=$o(o);a&&(n[s]=a),o=n[s]}}if(s==="opacity"&&(o=n[s]=o*t.opacity),s==="transform"){let a=o;for(let u of a){let f=Object.keys(u)[0],l=u[f],p=typeof l=="string"&&(i=ge(l,r,r,t))!=null?i:l;u[f]=p}}}return n}c();var nl="image/avif",il="image/webp",tn="image/png",rn="image/jpeg",nn="image/gif",qo="image/svg+xml";function ol(e){let t=new DataView(e),n=4,r=t.byteLength;for(;n<r;){let i=t.getUint16(n,!1);if(i>r)throw new TypeError("Invalid JPEG");let s=t.getUint8(i+1+n);if(s===192||s===193||s===194)return[t.getUint16(i+7+n,!1),t.getUint16(i+5+n,!1)];n+=i+2}throw new TypeError("Invalid JPEG")}function sl(e){let t=new Uint8Array(e.slice(6,10));return[t[0]|t[1]<<8,t[2]|t[3]<<8]}function al(e){let t=new DataView(e);return[t.getUint16(18,!1),t.getUint16(22,!1)]}var Zr=Ao(100),en=new Map,ul=[tn,rn,nn,qo];function ll(e){let t="",n=new Uint8Array(e);for(let r=0;r<n.byteLength;r++)t+=String.fromCharCode(n[r]);return btoa(t)}async function pr(e){if(!e)throw new Error("Image source is not provided.");if(/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/.test(e)&&(e=e.slice(1,-1)),e.startsWith("data:"))return[e];if(!globalThis.fetch)throw new Error("`fetch` is required to be polyfilled to load images.");if(en.has(e))return en.get(e);let t=Zr.get(e);if(t)return t;let n=new Promise((r,i)=>{fetch(e).then(s=>{let o=s.headers.get("content-type");return o==="image/svg+xml"||o==="application/svg+xml"?s.text():s.arrayBuffer()}).then(s=>{if(typeof s=="string")try{let f=`data:image/svg+xml;base64,${btoa(s)}`,l=s.match(/<svg[^>]*>/)[0],p=l.match(/viewBox=['"](.+)['"]/),y=p?mt(p[1]):null,h=l.match(/width="(\d*\.\d+|\d+)"/),d=l.match(/height="(\d*\.\d+|\d+)"/);if(!y&&(!h||!d))throw new Error(`Failed to parse SVG from ${e}: missing "viewBox"`);let m=y?[y[2],y[3]]:[+h[1],+d[1]],b=m[0]/m[1],g=h&&d?[+h[1],+d[1]]:h?[+h[1],+h[1]/b]:d?[+d[1]*b,+d[1]]:[m[0],m[1]];Zr.set(e,[f,...g]),r([f,...g]);return}catch(f){throw new Error(`Failed to parse SVG image: ${f.message}`)}let o,a=fl(new Uint8Array(s));switch(a){case tn:o=al(s);break;case nn:o=sl(s);break;case rn:o=ol(s);break}if(!ul.includes(a))throw new Error(`Unsupported image type: ${a||"unknown"}`);let u=`data:${a};base64,${ll(s)}`;Zr.set(e,[u,...o]),r([u,...o])}).catch(s=>{i(new Error(`Can't load image ${e}: `+s.message))})});return en.set(e,n),n}function fl(e){return[255,216,255].every((t,n)=>e[n]===t)?rn:[137,80,78,71,13,10,26,10].every((t,n)=>e[n]===t)?tn:[71,73,70,56].every((t,n)=>e[n]===t)?nn:[82,73,70,70,0,0,0,0,87,69,66,80].every((t,n)=>!t||e[n]===t)?il:[60,63,120,109,108].every((t,n)=>e[n]===t)?qo:[0,0,0,0,102,116,121,112,97,118,105,102].every((t,n)=>!t||e[n]===t)?nl:null}async function on(e,t,n,r,i){let s=Ie(),o={...n,...dr(Lo[t],n),...dr(r,n)};if(t==="img"){let[a,u,f]=await pr(i.src);if(u===void 0&&f===void 0){if(i.width===void 0||i.height===void 0)throw new Error("Image size cannot be determined. Please provide the width and height of the image.");u=parseInt(i.width),f=parseInt(i.height)}let l=f/u,p=(o.borderLeftWidth||0)+(o.borderRightWidth||0)+(o.paddingLeft||0)+(o.paddingRight||0),y=(o.borderTopWidth||0)+(o.borderBottomWidth||0)+(o.paddingTop||0)+(o.paddingBottom||0),h=o.width||i.width,d=o.height||i.height,m=typeof h!="string"&&typeof d!="string";typeof h=="number"&&m&&(h-=p),typeof d=="number"&&m&&(d-=y),h===void 0&&d===void 0?(h=u,d=f):h===void 0?typeof d=="number"?h=d/l:e.setAspectRatio(1/l):d===void 0&&(typeof h=="number"?d=h*l:e.setAspectRatio(1/l)),o.width=m?h+p:h,o.height=m?d+y:d,o.__src=a}if(t==="svg"){let a=i.viewBox||i.viewbox,u=mt(a),f=u[3]/u[2],{width:l,height:p}=i;typeof l>"u"&&p?typeof p=="string"&&p.endsWith("%")?l=parseInt(p)/f+"%":(p=ge(p,n.fontSize,1,n),l=p/f):typeof p>"u"&&l?typeof l=="string"&&l.endsWith("%")?p=parseInt(l)*f+"%":(l=ge(l,n.fontSize,1,n),p=l*f):(typeof l<"u"&&(l=ge(l,n.fontSize,1,n)||l),typeof p<"u"&&(p=ge(p,n.fontSize,1,n)||p),l||(l=u[2]),p||(p=u[3])),o.width||(o.width=l),o.height||(o.height=p)}return e.setDisplay(ae(o.display,{flex:s.DISPLAY_FLEX,none:s.DISPLAY_NONE},s.DISPLAY_FLEX,"display")),e.setAlignContent(ae(o.alignContent,{stretch:s.ALIGN_STRETCH,center:s.ALIGN_CENTER,"flex-start":s.ALIGN_FLEX_START,"flex-end":s.ALIGN_FLEX_END,"space-between":s.ALIGN_SPACE_BETWEEN,"space-around":s.ALIGN_SPACE_AROUND,baseline:s.ALIGN_BASELINE,normal:s.ALIGN_AUTO},s.ALIGN_AUTO,"alignContent")),e.setAlignItems(ae(o.alignItems,{stretch:s.ALIGN_STRETCH,center:s.ALIGN_CENTER,"flex-start":s.ALIGN_FLEX_START,"flex-end":s.ALIGN_FLEX_END,baseline:s.ALIGN_BASELINE,normal:s.ALIGN_AUTO},s.ALIGN_FLEX_START,"alignItems")),e.setAlignSelf(ae(o.alignSelf,{stretch:s.ALIGN_STRETCH,center:s.ALIGN_CENTER,"flex-start":s.ALIGN_FLEX_START,"flex-end":s.ALIGN_FLEX_END,baseline:s.ALIGN_BASELINE,normal:s.ALIGN_AUTO},s.ALIGN_AUTO,"alignSelf")),e.setJustifyContent(ae(o.justifyContent,{center:s.JUSTIFY_CENTER,"flex-start":s.JUSTIFY_FLEX_START,"flex-end":s.JUSTIFY_FLEX_END,"space-between":s.JUSTIFY_SPACE_BETWEEN,"space-around":s.JUSTIFY_SPACE_AROUND},s.JUSTIFY_FLEX_START,"justifyContent")),e.setFlexDirection(ae(o.flexDirection,{row:s.FLEX_DIRECTION_ROW,column:s.FLEX_DIRECTION_COLUMN,"row-reverse":s.FLEX_DIRECTION_ROW_REVERSE,"column-reverse":s.FLEX_DIRECTION_COLUMN_REVERSE},s.FLEX_DIRECTION_ROW,"flexDirection")),e.setFlexWrap(ae(o.flexWrap,{wrap:s.WRAP_WRAP,nowrap:s.WRAP_NO_WRAP,"wrap-reverse":s.WRAP_WRAP_REVERSE},s.WRAP_NO_WRAP,"flexWrap")),typeof o.flexBasis<"u"&&e.setFlexBasis(o.flexBasis),e.setFlexGrow(typeof o.flexGrow>"u"?0:o.flexGrow),e.setFlexShrink(typeof o.flexShrink>"u"?0:o.flexShrink),typeof o.maxHeight<"u"&&e.setMaxHeight(o.maxHeight),typeof o.maxWidth<"u"&&e.setMaxWidth(o.maxWidth),typeof o.minHeight<"u"&&e.setMinHeight(o.minHeight),typeof o.minWidth<"u"&&e.setMinWidth(o.minWidth),e.setOverflow(ae(o.overflow,{visible:s.OVERFLOW_VISIBLE,hidden:s.OVERFLOW_HIDDEN},s.OVERFLOW_VISIBLE,"overflow")),e.setMargin(s.EDGE_TOP,o.marginTop||0),e.setMargin(s.EDGE_BOTTOM,o.marginBottom||0),e.setMargin(s.EDGE_LEFT,o.marginLeft||0),e.setMargin(s.EDGE_RIGHT,o.marginRight||0),e.setBorder(s.EDGE_TOP,o.borderTopWidth||0),e.setBorder(s.EDGE_BOTTOM,o.borderBottomWidth||0),e.setBorder(s.EDGE_LEFT,o.borderLeftWidth||0),e.setBorder(s.EDGE_RIGHT,o.borderRightWidth||0),e.setPadding(s.EDGE_TOP,o.paddingTop||0),e.setPadding(s.EDGE_BOTTOM,o.paddingBottom||0),e.setPadding(s.EDGE_LEFT,o.paddingLeft||0),e.setPadding(s.EDGE_RIGHT,o.paddingRight||0),e.setPositionType(ae(o.position,{absolute:s.POSITION_TYPE_ABSOLUTE,relative:s.POSITION_TYPE_RELATIVE},s.POSITION_TYPE_RELATIVE,"position")),typeof o.top<"u"&&e.setPosition(s.EDGE_TOP,o.top),typeof o.bottom<"u"&&e.setPosition(s.EDGE_BOTTOM,o.bottom),typeof o.left<"u"&&e.setPosition(s.EDGE_LEFT,o.left),typeof o.right<"u"&&e.setPosition(s.EDGE_RIGHT,o.right),typeof o.height<"u"?e.setHeight(o.height):e.setHeightAuto(),typeof o.width<"u"?e.setWidth(o.width):e.setWidthAuto(),[o,Qr(o)]}c();c();c();var Wo=[1,0,0,1,0,0];function cl(e,t,n){let r=[...Wo];for(let i of e){let s=Object.keys(i)[0],o=i[s];if(typeof o=="string")if(s==="translateX")o=parseFloat(o)/100*t,i[s]=o;else if(s==="translateY")o=parseFloat(o)/100*n,i[s]=o;else throw new Error(`Invalid transform: "${s}: ${o}".`);let a=o,u=[...Wo];switch(s){case"translateX":u[4]=a;break;case"translateY":u[5]=a;break;case"scale":u[0]=a,u[3]=a;break;case"scaleX":u[0]=a;break;case"scaleY":u[3]=a;break;case"rotate":{let f=a*Math.PI/180,l=Math.cos(f),p=Math.sin(f);u[0]=l,u[1]=p,u[2]=-p,u[3]=l;break}case"skewX":u[2]=Math.tan(a*Math.PI/180);break;case"skewY":u[1]=Math.tan(a*Math.PI/180);break}r=ht(u,r)}e.splice(0,e.length),e.push(...r),e.__resolved=!0}function vt({left:e,top:t,width:n,height:r},i,s,o){var f,l,p,y;let a;i.__resolved||cl(i,n,r);let u=i;if(s)a=u;else{let h=(l=o==null?void 0:o.xAbsolute)!=null?l:((f=o==null?void 0:o.xRelative)!=null?f:50)*n/100,d=(y=o==null?void 0:o.yAbsolute)!=null?y:((p=o==null?void 0:o.yRelative)!=null?p:50)*r/100,m=e+h,b=t+d;a=ht([1,0,0,1,m,b],ht(u,[1,0,0,1,-m,-b])),u.__parent&&(a=ht(u.__parent,a)),u.splice(0,6,...a)}return`matrix(${a.map(h=>h.toFixed(2)).join(",")})`}function Bo({left:e,top:t,width:n,height:r,isInheritingTransform:i},s){let o="",a=1;return s.transform&&(o=vt({left:e,top:t,width:n,height:r},s.transform,i,s.transformOrigin)),s.opacity!==void 0&&(a=+s.opacity),{matrix:o,opacity:a}}function sn({id:e,content:t,filter:n,left:r,top:i,width:s,height:o,matrix:a,opacity:u,image:f,clipPathId:l,debug:p,shape:y,decorationShape:h},d){let m="";if(p&&(m=A("rect",{x:r,y:i-o,width:s,height:o,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:a||void 0,"clip-path":l?`url(#${l})`:void 0})),f){let g={href:f,x:r,y:i,width:s,height:o,transform:a||void 0,"clip-path":l?`url(#${l})`:void 0,style:d.filter?`filter:${d.filter}`:void 0};return[(n?`${n}<g filter="url(#satori_s-${e})">`:"")+A("image",{...g,opacity:u!==1?u:void 0})+(h||"")+(n?"</g>":"")+m,""]}let b={x:r,y:i,width:s,height:o,"font-weight":d.fontWeight,"font-style":d.fontStyle,"font-size":d.fontSize,"font-family":d.fontFamily,"letter-spacing":d.letterSpacing||void 0,transform:a||void 0,"clip-path":l?`url(#${l})`:void 0,style:d.filter?`filter:${d.filter}`:void 0};return[(n?`${n}<g filter="url(#satori_s-${e})">`:"")+A("text",{...b,fill:d.color,opacity:u!==1?u:void 0},t)+(h||"")+(n?"</g>":"")+m,y?A("text",b,t):""]}c();function dl(e,t,n){return e.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(r,i,s,o){return i+(parseFloat(s)+t)+","+(parseFloat(o)+n)})}function Uo({id:e,width:t,height:n},r){if(!r.shadowColor||!r.shadowOffset||typeof r.shadowRadius>"u")return"";let i=r.shadowRadius*r.shadowRadius/4,s=Math.min(r.shadowOffset.width-i,0),o=Math.max(r.shadowOffset.width+i+t,t),a=Math.min(r.shadowOffset.height-i,0),u=Math.max(r.shadowOffset.height+i+n,n);return`<defs><filter id="satori_s-${e}" x="${s/t*100}%" y="${a/n*100}%" width="${(o-s)/t*100}%" height="${(u-a)/n*100}%"><feDropShadow dx="${r.shadowOffset.width}" dy="${r.shadowOffset.height}" stdDeviation="${r.shadowRadius/2}" flood-color="${r.shadowColor}" flood-opacity="1"/></filter></defs>`}function zo({width:e,height:t,shape:n,opacity:r,id:i},s){if(!s.boxShadow)return null;let o="",a="";for(let u=s.boxShadow.length-1;u>=0;u--){let f="",l=s.boxShadow[u];l.spreadRadius&&l.inset&&(l.spreadRadius=-l.spreadRadius);let p=l.blurRadius*l.blurRadius/4+(l.spreadRadius||0),y=Math.min(-p-(l.inset?l.offsetX:0),0),h=Math.max(p+e-(l.inset?l.offsetX:0),e),d=Math.min(-p-(l.inset?l.offsetY:0),0),m=Math.max(p+t-(l.inset?l.offsetY:0),t),b=`satori_s-${i}-${u}`,g=`satori_ms-${i}-${u}`,w=l.spreadRadius?n.replace('stroke-width="0"',`stroke-width="${l.spreadRadius*2}"`):n;f+=A("mask",{id:g,maskUnits:"userSpaceOnUse"},A("rect",{x:0,y:0,width:s._viewportWidth,height:s._viewportHeight,fill:l.inset?"#000":"#fff"})+w.replace('fill="#fff"',l.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let T=w.replace(/d="([^"]+)"/,(P,I)=>'d="'+dl(I,l.offsetX,l.offsetY)+'"').replace(/x="([^"]+)"/,(P,I)=>'x="'+(parseFloat(I)+l.offsetX)+'"').replace(/y="([^"]+)"/,(P,I)=>'y="'+(parseFloat(I)+l.offsetY)+'"');l.spreadRadius&&l.spreadRadius<0&&(f+=A("mask",{id:g+"-neg",maskUnits:"userSpaceOnUse"},T.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-l.spreadRadius*2}"`))),l.spreadRadius&&l.spreadRadius<0&&(T=A("g",{mask:`url(#${g}-neg)`},T)),f+=A("defs",{},A("filter",{id:b,x:`${y/e*100}%`,y:`${d/t*100}%`,width:`${(h-y)/e*100}%`,height:`${(m-d)/t*100}%`},A("feGaussianBlur",{stdDeviation:l.blurRadius/2,result:"b"})+A("feFlood",{"flood-color":l.color,in:"SourceGraphic",result:"f"})+A("feComposite",{in:"f",in2:"b",operator:l.inset?"out":"in"})))+A("g",{mask:`url(#${g})`,filter:`url(#${b})`,opacity:r},T),l.inset?a+=f:o+=f}return[o,a]}c();function an({width:e,left:t,top:n,ascender:r,clipPathId:i},s){let{textDecorationColor:o,textDecorationStyle:a,textDecorationLine:u,fontSize:f}=s;if(!u||u==="none")return"";let l=Math.max(1,f*.1),p=u==="line-through"?n+r*.5:u==="underline"?n+r*1.1:n,y=a==="dashed"?`${l*1.2} ${l*2}`:a==="dotted"?`0 ${l*2}`:void 0;return A("line",{x1:t,y1:p,x2:t+e,y2:p,stroke:o,"stroke-width":l,"stroke-dasharray":y,"stroke-linecap":a==="dotted"?"round":"square","clip-path":i?`url(#${i})`:void 0})}var un=void 0;async function*ln(e,t){var mo;let n=Ie(),{parentStyle:r,inheritedStyle:i,parent:s,font:o,id:a,isInheritingTransform:u,debug:f,embedFont:l,graphemeImages:p,canLoadAdditionalAssets:y}=t;r.textTransform==="uppercase"?e=e.toLocaleUpperCase(un):r.textTransform==="lowercase"?e=e.toLocaleLowerCase(un):r.textTransform==="capitalize"&&(e=He(e,"word").map(G=>He(G,"grapheme").map((X,V)=>V===0?X.toLocaleUpperCase(un):X).join("")).join(""));let h=ae(r.wordBreak,{normal:"word","break-all":"grapheme","break-word":"grapheme","keep-all":"word"},"word","wordBreak"),d=He(e,h),m=n.Node.create();m.setAlignItems(n.ALIGN_BASELINE),m.setJustifyContent(ae(r.textAlign,{left:n.JUSTIFY_FLEX_START,right:n.JUSTIFY_FLEX_END,center:n.JUSTIFY_CENTER,justify:n.JUSTIFY_SPACE_BETWEEN,start:n.JUSTIFY_FLEX_START,end:n.JUSTIFY_FLEX_END},n.JUSTIFY_FLEX_START,"textAlign")),s.insertChild(m,s.getChildCount());let{textAlign:b,textOverflow:g,whiteSpace:w,lineHeight:T,filter:P,_inheritedBackgroundClipTextPath:I}=r,F=r.fontSize,L=o.getEngine(F,T,r),C=y?d.filter(G=>!L.has(G)):[];yield C,C.length&&(L=o.getEngine(F,T,r));let N=[],U=[],B=[],D=[],$=new Map,Z=G=>{let X=0;for(let V of G){if($.has(V)){X+=$.get(V);continue}let ue=L.measure(V,r);$.set(V,ue),X+=ue}return X},z=0,te=[],Me=0;for(let G of d){let X=!1,V=p&&p[G];w==="pre"?X=G[0]===`
|
|
6
|
-
`:
|
|
7
|
-
`?" ":
|
|
8
|
-
`;if(so&&cr.includes(oe[0])&&!Re)V||(V=" "),ue=Z([V]),D[$e]=null;else{let me=Re?0:p&&p[oe]?r.fontSize:Z([oe]);Re&&K===0&&(K=L.height(oe)),he||(V="",ue=0);let ne=ue||",.!?:-@)>]}%#".indexOf(oe[0])<0,se=!he||!!ue;if(Re||$e&&ne&&he+ue+me>G&&w!=="nowrap"&&w!=="pre")N.push(he),U.push(je),X++,Ve+=K,he=me,K=me?L.height(oe):0,je=me?L.baseline(oe):0,B.push(1),fe=-1,Re||(le=Math.max(le,G));else{he+=ue+me;let qe=L.height(oe);qe>K&&(K=qe,je=L.baseline(oe)),se&&B[B.length-1]++}V="",ue=0,se&&fe++,le=Math.max(le,he),D[$e]={y:Ve,x:he-me,width:me,line:X,lineIndex:fe}}}return he&&(X++,N.push(he),U.push(je),Ve+=K),{width:le,height:Ve}});let[lt,Iu]=yield,$r="",nr="",Fe=i._inheritedClipPathId,ao=i._inheritedMaskId,{left:uo,top:lo,width:ir,height:fo}=m.getComputedLayout(),qr=s.getComputedWidth()-s.getComputedPadding(n.EDGE_LEFT)-s.getComputedPadding(n.EDGE_RIGHT)-s.getComputedBorder(n.EDGE_LEFT)-s.getComputedBorder(n.EDGE_RIGHT),et=lt+uo,tt=Iu+lo,{matrix:Ae,opacity:or}=Bo({left:uo,top:lo,width:ir,height:fo,isInheritingTransform:u},r),sr="";r.textShadowOffset&&(sr=Uo({width:ir,height:fo,id:a},{shadowColor:r.textShadowColor,shadowOffset:r.textShadowOffset,shadowRadius:r.textShadowRadius}));let ft="",ar="",co="",Wr=-1,po=g==="ellipsis"?Z(["\u2026"]):0,Lu=g==="ellipsis"?Z([" "]):0,ur={},Ne=null,ho=0;for(let G=0;G<d.length;G++){if(!D[G])continue;let X=D[G],V=d[G],ue=null,he=p?p[V]:null,le=X.y,fe=X.x,Ve=X.width,K=X.line;if(K===Wr)continue;let je=!1;if(N.length>1){let ne=ir-N[K];if(b==="right"||b==="end")fe+=ne;else if(b==="center")fe+=ne/2;else if(b==="justify"&&K<N.length-1){let se=B[K];fe+=(se>1?ne/(se-1):0)*X.lineIndex,je=!0}}if(ur[K]||(ur[K]=[fe,je?ir:N[K]]),g==="ellipsis"&&N[K]>qr&&X.x+Ve+po+Lu>qr){let ne=He(V,"grapheme"),se="",qe=0;for(let go of ne){let vo=X.x+Z([se+go]);if(se&&vo+po>qr)break;se+=go,qe=vo}V=se+"\u2026",Wr=K,ur[K][1]=qe}let $e=U[K],oe=L.baseline(V),Re=L.height(V),me=$e-oe;if(he)le+=0;else if(l){if(d[G+1]&&D[G+1]&&le===D[G+1].y){Ne===null&&(ho=fe),Ne=Ne===null?V:Ne+V;continue}let ne=Ne===null?V:Ne+V,se=Ne===null?fe:ho,qe=X.width+fe-se;ue=L.getSVG(ne,{...r,left:et+se,top:tt+le+oe+me,letterSpacing:r.letterSpacing}),Ne=null,f&&(co+=A("rect",{x:et+se,y:tt+le+me,width:qe,height:Re,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:Ae||void 0,"clip-path":Fe?`url(#${Fe})`:void 0})+A("line",{x1:et+fe,x2:et+fe+X.width,y1:tt+le+me+oe,y2:tt+le+me+oe,stroke:"#14c000","stroke-width":1,transform:Ae||void 0,"clip-path":Fe?`url(#${Fe})`:void 0}))}else le+=oe+me;if(r.textDecorationLine&&(K!==((mo=D[G+1])==null?void 0:mo.line)||Wr===K)){let ne=ur[K];ne&&!ne[2]&&(ft+=an({left:et+ne[0],top:tt+Re*+K,width:ne[1],ascender:L.baseline(V),clipPathId:Fe},r),ne[2]=1)}if(ue!==null)ar+=ue+" ";else{let[ne,se]=sn({content:V,filter:sr,id:a,left:et+fe,top:tt+le,width:Ve,height:Re,matrix:Ae,opacity:or,image:he,clipPathId:Fe,debug:f,shape:!!I,decorationShape:ft},r);$r+=ne,nr+=se,ft=""}}if(ar){let G=r.color!=="transparent"&&or!==0?A("path",{fill:r.color,d:ar,transform:Ae||void 0,opacity:or!==1?or:void 0,"clip-path":Fe?`url(#${Fe})`:void 0,mask:ao?`url(#${ao})`:void 0,style:P?`filter:${P}`:void 0}):"";I&&(nr=A("path",{d:ar,transform:Ae||void 0})),$r+=(sr?sr+A("g",{filter:`url(#satori_s-${a})`},G+ft):G+ft)+co}return nr&&(r._inheritedBackgroundClipTextPath.value+=nr),$r}c();c();c();var fn=fn||{},Go={type:"directional",value:"bottom"};fn.parse=function(){var e={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,zeroValue:/[0]/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},t="";function n(S){var M=new Error(t+": "+S);throw M.source=t,M}function r(){var S=i();return t.length>0&&n("Invalid input not EOF"),S}function i(){return P(s)}function s(){return o("linear-gradient",e.linearGradient,u,Go)||o("repeating-linear-gradient",e.repeatingLinearGradient,u,Go)||o("radial-gradient",e.radialGradient,y)||o("repeating-radial-gradient",e.repeatingRadialGradient,y)}function o(S,M,ee,Se){return a(M,function(so){var lt=ee();return lt?te(e.comma)||n("Missing comma before color stops"):lt=Se,{type:S,orientation:lt,colorStops:P(I)}})}function a(S,M){var ee=te(S);if(ee){te(e.startCall)||n("Missing (");var Se=M(ee);return te(e.endCall)||n("Missing )"),Se}}function u(){return f()||l()||p()}function f(){return z("directional",e.sideOrCorner,1)}function l(){return z("angular",e.angleValue,1)}function p(){return z("directional",e.zeroValue,0)}function y(){var S,M=h(),ee;return M&&(S=[],S.push(M),ee=t,te(e.comma)&&(M=h(),M?S.push(M):t=ee)),S}function h(){var S=d()||m();if(S)S.at=g();else{var M=b();if(M){S=M;var ee=g();ee&&(S.at=ee)}else{var Se=w();Se&&(S={type:"default-radial",at:Se})}}return S}function d(){var S=z("shape",/^(circle)/i,0);return S&&(S.style=Z()||b()),S}function m(){var S=z("shape",/^(ellipse)/i,0);return S&&(S.style=D()||b()),S}function b(){return z("extent-keyword",e.extentKeywords,1)}function g(){if(z("position",/^at/,0)){var S=w();return S||n("Missing positioning value"),S}}function w(){var S=T();if(S.x||S.y)return{type:"position",value:S}}function T(){return{x:D(),y:D()}}function P(S){var M=S(),ee=[];if(M)for(ee.push(M);te(e.comma);)M=S(),M?ee.push(M):n("One extra comma");return ee}function I(){var S=F();return S||n("Expected color definition"),S.length=D(),S}function F(){return C()||U()||N()||L()}function L(){return z("literal",e.literalColor,0)}function C(){return z("hex",e.hexColor,1)}function N(){return a(e.rgbColor,function(){return{type:"rgb",value:P(B)}})}function U(){return a(e.rgbaColor,function(){return{type:"rgba",value:P(B)}})}function B(){return te(e.number)[1]}function D(){return z("%",e.percentageValue,1)||$()||Z()}function $(){return z("position-keyword",e.positionKeywords,1)}function Z(){return z("px",e.pixelValue,1)||z("em",e.emValue,1)}function z(S,M,ee){var Se=te(M);if(Se)return{type:S,value:Se[ee]}}function te(S){var M,ee;return ee=/^[\n\r\t\s]+/.exec(t),ee&&Me(ee[0].length),M=S.exec(t),M&&Me(M[0].length),M}function Me(S){t=t.substr(S)}return function(S){return t=S.toString(),r()}}();var cn=fn;function pl(e){return e.type==="literal"?e.value:e.type==="hex"?`#${e.value}`:e.type==="rgb"?`rgb(${e.value.join(",")})`:e.type==="rgba"?`rgba(${e.value.join(",")})`:"transparent"}function hl(e){let t=0,n=0,r=0,i=0;return e.includes("top")?n=1:e.includes("bottom")&&(i=1),e.includes("left")?t=1:e.includes("right")&&(r=1),!t&&!r&&!n&&!i&&(n=1),[t,n,r,i]}function ml(e,t){return typeof e=="string"&&e.endsWith("%")?t*parseFloat(e)/100:+e}function dn(e,{x:t,y:n,defaultX:r,defaultY:i}){return(e?e.split(" ").map(s=>{try{let o=new We(s);return o.type==="length"||o.type==="number"?o.value:o.value+o.unit}catch{return null}}).filter(s=>s!==null):[r,i]).map((s,o)=>ml(s,[t,n][o]))}function Vo(e,t){let n=[];for(let o of t){let a=pl(o);if(!n.length&&(n.push({offset:0,color:a}),typeof o.length>"u"||o.length.value==="0"))continue;let u=typeof o.length>"u"?void 0:o.length.type==="%"?o.length.value/100:o.length.value/e;n.push({offset:u,color:a})}n.length||n.push({offset:0,color:"transparent"});let r=n[n.length-1];r.offset!==1&&(typeof r.offset>"u"?r.offset=1:n.push({offset:1,color:r.color}));let i=0,s=1;for(let o=0;o<n.length;o++)if(typeof n[o].offset>"u"){for(s<o&&(s=o);typeof n[s].offset>"u";)s++;n[o].offset=(n[s].offset-n[i].offset)/(s-i)*(o-i)+n[i].offset}else i=o;return n}async function pn({id:e,width:t,height:n,left:r,top:i},{image:s,size:o,position:a,repeat:u}){u=u||"repeat";let f=u==="repeat-x"||u==="repeat",l=u==="repeat-y"||u==="repeat",p=dn(o,{x:t,y:n,defaultX:t,defaultY:n}),y=dn(a,{x:t,y:n,defaultX:0,defaultY:0});if(s.startsWith("linear-gradient(")){let h=cn.parse(s)[0],[d,m]=p,b,g,w,T;if(h.orientation.type==="directional")[b,g,w,T]=hl(h.orientation.value);else if(h.orientation.type==="angular"){let C=+h.orientation.value/180*Math.PI-Math.PI/2,N=Math.cos(C),U=Math.sin(C);b=0,g=0,w=N,T=U,w<0&&(b-=w,w=0),T<0&&(g-=T,T=0)}let P=Vo(t,h.colorStops),I=`satori_bi${e}`,F=`satori_pattern_${e}`,L=A("pattern",{id:F,x:y[0]/t,y:y[1]/n,width:f?d/t:"1",height:l?m/n:"1",patternUnits:"objectBoundingBox"},A("linearGradient",{id:I,x1:b,y1:g,x2:w,y2:T},P.map(C=>A("stop",{offset:C.offset*100+"%","stop-color":C.color})).join(""))+A("rect",{x:0,y:0,width:d,height:m,fill:`url(#${I})`}));return[F,L]}if(s.startsWith("radial-gradient(")){let h=cn.parse(s)[0],d=h.orientation[0],[m,b]=p,g="circle",w=m/2,T=b/2;if(d.type==="shape"){if(g=d.value,d.at)if(d.at.type==="position")w=d.at.value.x.value,T=d.at.value.y.value;else throw new Error("orientation.at.type not implemented: "+d.at.type)}else throw new Error("orientation.type not implemented: "+d.type);let P=Vo(t,h.colorStops),I=`satori_radial_${e}`,F=`satori_pattern_${e}`,L=`satori_mask_${e}`,C={},N=Math.max(Math.abs(m-w),Math.abs(w)),U=Math.max(Math.abs(b-T),Math.abs(T));if(g==="circle")C.r=Math.sqrt(N*N+U*U);else if(g==="ellipse"){let $=U!==0?N/U:1;C.ry=Math.sqrt(N*N+U*U*$*$)/$,C.rx=C.ry*$}let B=A("pattern",{id:F,x:y[0]/t,y:y[1]/n,width:f?m/t:"1",height:l?b/n:"1",patternUnits:"objectBoundingBox"},A("radialGradient",{id:I},P.map($=>A("stop",{offset:$.offset,"stop-color":$.color})).join(""))+A("mask",{id:L},A("rect",{x:0,y:0,width:m,height:b,fill:"#fff"}))+A(g,{cx:w,cy:T,width:m,height:b,...C,fill:`url(#${I})`,mask:`url(#${L})`}));return[F,B]}if(s.startsWith("url(")){let h=dn(o,{x:t,y:n,defaultX:0,defaultY:0}),[d,m,b]=await pr(s.slice(4,-1)),g=h[0]||m,w=h[1]||b;return[`satori_bi${e}`,A("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:y[0]+r,y:y[1]+i,width:f?g:"100%",height:l?w:"100%"},A("image",{x:0,y:0,width:g,height:w,preserveAspectRatio:"none",href:d}))]}throw new Error(`Invalid background image: "${s}"`)}c();function gl([e,t]){return Math.round(e*1e3)===0&&Math.round(t*1e3)===0?0:Math.round(e*t/Math.sqrt(e*e+t*t)*1e3)/1e3}function hr(e,t,n){return n<e+t&&(n/2<e&&n/2<t?e=t=n/2:n/2<e?e=n-t:n/2<t&&(t=n-e)),[e,t]}function mr(e){e[0]=e[1]=Math.min(e[0],e[1])}function gr(e,t,n,r,i){if(typeof e=="string"){let s=e.split(" ").map(a=>a.trim()),o=!s[1]&&!s[0].endsWith("%");return s[1]=s[1]||s[0],[o,[Math.min(ge(s[0],r,t,i,!0),t),Math.min(ge(s[1],r,n,i,!0),n)]]}return typeof e=="number"?[!0,[Math.min(e,t),Math.min(e,n)]]:[!0,void 0]}function rt({left:e,top:t,width:n,height:r},i,s){let{borderTopLeftRadius:o,borderTopRightRadius:a,borderBottomLeftRadius:u,borderBottomRightRadius:f,fontSize:l}=i,p,y,h,d;if([p,o]=gr(o,n,r,l,i),[y,a]=gr(a,n,r,l,i),[h,u]=gr(u,n,r,l,i),[d,f]=gr(f,n,r,l,i),!s&&!o&&!a&&!u&&!f)return"";o||(o=[0,0]),a||(a=[0,0]),u||(u=[0,0]),f||(f=[0,0]),[o[0],a[0]]=hr(o[0],a[0],n),[u[0],f[0]]=hr(u[0],f[0],n),[o[1],u[1]]=hr(o[1],u[1],r),[a[1],f[1]]=hr(a[1],f[1],r),p&&mr(o),y&&mr(a),h&&mr(u),d&&mr(f);let m=[];m[0]=[a,a],m[1]=[f,[-f[0],f[1]]],m[2]=[u,[-u[0],-u[1]]],m[3]=[o,[o[0],-o[1]]];let b=`h${n-o[0]-a[0]} a${m[0][0]} 0 0 1 ${m[0][1]}`,g=`v${r-a[1]-f[1]} a${m[1][0]} 0 0 1 ${m[1][1]}`,w=`h${f[0]+u[0]-n} a${m[2][0]} 0 0 1 ${m[2][1]}`,T=`v${u[1]+o[1]-r} a${m[3][0]} 0 0 1 ${m[3][1]}`;if(s){let I=function(D){let $=gl([o,a,f,u][D]);return D===0?[[e+o[0]-$,t+o[1]-$],[e+o[0],t]]:D===1?[[e+n-a[0]+$,t+a[1]-$],[e+n,t+a[1]]]:D===2?[[e+n-f[0]+$,t+r-f[1]+$],[e+n-f[0],t+r]]:[[e+u[0]-$,t+r-u[1]+$],[e,t+r-u[1]]]},P=s.indexOf(!1);if(!s.includes(!0))throw new Error("Invalid `partialSides`.");if(P===-1)P=0;else for(;!s[P];)P=(P+1)%4;let F="",L=I(P),C=`M${L[0]} A${m[(P+3)%4][0]} 0 0 1 ${L[1]}`,N=0;for(;N<4&&s[(P+N)%4];N++)F+=C+" ",C=[b,g,w,T][(P+N)%4];let U=(P+N)%4;F+=C.split(" ")[0];let B=I(U);return F+=` A${m[(U+3)%4][0]} 0 0 1 ${B[0]}`,F}return`M${e+o[0]},${t} ${b} ${g} ${w} ${T}`}c();c();c();function jo(e,t,n){return n[e+"Width"]===n[t+"Width"]&&n[e+"Style"]===n[t+"Style"]&&n[e+"Color"]===n[t+"Color"]}function Ho({id:e,currentClipPathId:t,borderPath:n,borderType:r,left:i,top:s,width:o,height:a},u){if(!(u.borderTopWidth||u.borderRightWidth||u.borderBottomWidth||u.borderLeftWidth))return null;let l=`satori_bc-${e}`;return[A("clipPath",{id:l,"clip-path":t?`url(#${t})`:void 0},A(r,{x:i,y:s,width:o,height:a,d:n||void 0})),l]}function bt({left:e,top:t,width:n,height:r,props:i,asContentMask:s,maskBorderOnly:o},a){let u=["borderTop","borderRight","borderBottom","borderLeft"];if(!s&&!u.some(h=>a[h+"Width"]))return"";let f="",l=0;for(;l>0&&jo(u[l],u[(l+3)%4],a);)l=(l+3)%4;let p=[!1,!1,!1,!1],y=[];for(let h=0;h<4;h++){let d=(l+h)%4,m=(l+h+1)%4,b=u[d],g=u[m];if(p[d]=!0,y=[a[b+"Width"],a[b+"Style"],a[b+"Color"],b],!jo(b,g,a)){let w=(y[0]||0)+(s&&!o&&a[b.replace("border","padding")]||0);w&&(f+=A("path",{width:n,height:r,...i,fill:"none",stroke:s?"#000":y[2],"stroke-width":w*2,"stroke-dasharray":!s&&y[1]==="dashed"?w*2+" "+w:void 0,d:rt({left:e,top:t,width:n,height:r},a,p)})),p=[!1,!1,!1,!1]}}if(p.some(Boolean)){let h=(y[0]||0)+(s&&!o&&a[y[3].replace("border","padding")]||0);h&&(f+=A("path",{width:n,height:r,...i,fill:"none",stroke:s?"#000":y[2],"stroke-width":h*2,"stroke-dasharray":!s&&y[1]==="dashed"?h*2+" "+h:void 0,d:rt({left:e,top:t,width:n,height:r},a,p)}))}return f}function hn({id:e,left:t,top:n,width:r,height:i,matrix:s,borderOnly:o},a){let u=(a.borderLeftWidth||0)+(o?0:a.paddingLeft||0),f=(a.borderTopWidth||0)+(o?0:a.paddingTop||0),l=(a.borderRightWidth||0)+(o?0:a.paddingRight||0),p=(a.borderBottomWidth||0)+(o?0:a.paddingBottom||0),y={x:t+u,y:n+f,width:r-u-l,height:i-f-p};return A("mask",{id:e},A("rect",{...y,fill:"#fff",mask:a._inheritedMaskId?`url(#${a._inheritedMaskId})`:void 0})+bt({left:t,top:n,width:r,height:i,props:{transform:s||void 0},asContentMask:!0,maskBorderOnly:o},a))}function mn({left:e,top:t,width:n,height:r,path:i,matrix:s,id:o,currentClipPath:a,src:u},f){if(f.overflow!=="hidden"&&!u)return"";let l=hn({id:`satori_om-${o}`,left:e,top:t,width:n,height:r,matrix:s,borderOnly:!u},f);return A("clipPath",{id:`satori_cp-${o}`,"clip-path":a},A(i?"path":"rect",{x:e,y:t,width:n,height:r,d:i||void 0}))+l}async function yt({id:e,left:t,top:n,width:r,height:i,isInheritingTransform:s,src:o,debug:a},u){if(u.display==="none")return"";let f=!!o,l="rect",p="",y="",h=[],d=1,m="";u.backgroundColor&&h.push(u.backgroundColor),u.opacity!==void 0&&(d=+u.opacity),u.transform&&(p=vt({left:t,top:n,width:r,height:i},u.transform,s,u.transformOrigin));let b="";if(u.backgroundImage){let B=[];for(let D=0;D<u.backgroundImage.length;D++){let $=u.backgroundImage[D],Z=await pn({id:e+"_"+D,width:r,height:i,left:t,top:n},$);Z&&B.unshift(Z)}for(let D of B)h.push(`url(#${D[0]})`),y+=D[1],D[2]&&(b+=D[2])}let g=rt({left:t,top:n,width:r,height:i},u);g&&(l="path");let w=u._inheritedClipPathId,T=u._inheritedMaskId;a&&(m=A("rect",{x:t,y:n,width:r,height:i,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:p||void 0,"clip-path":w?`url(#${w})`:void 0}));let{backgroundClip:P,filter:I}=u,F=P==="text"?`url(#satori_bct-${e})`:w?`url(#${w})`:void 0,L=mn({left:t,top:n,width:r,height:i,path:g,id:e,matrix:p,currentClipPath:F,src:o},u),C=h.map(B=>A(l,{x:t,y:n,width:r,height:i,fill:B,d:g||void 0,transform:p||void 0,"clip-path":F,style:I?`filter:${I}`:void 0,mask:T?`url(#${T})`:void 0})).join(""),N=Ho({id:e,left:t,top:n,width:r,height:i,currentClipPathId:w,borderPath:g,borderType:l},u);if(f){let B=(u.borderLeftWidth||0)+(u.paddingLeft||0),D=(u.borderTopWidth||0)+(u.paddingTop||0),$=(u.borderRightWidth||0)+(u.paddingRight||0),Z=(u.borderBottomWidth||0)+(u.paddingBottom||0),z=u.objectFit==="contain"?"xMidYMid":u.objectFit==="cover"?"xMidYMid slice":"none";C+=A("image",{x:t+B,y:n+D,width:r-B-$,height:i-D-Z,href:o,preserveAspectRatio:z,transform:p||void 0,style:I?`filter:${I}`:void 0,"clip-path":`url(#satori_cp-${e})`,mask:`url(#satori_om-${e})`})}if(N){y+=N[0];let B=N[1];C+=bt({left:t,top:n,width:r,height:i,props:{transform:p||void 0,"clip-path":`url(#${B})`}},u)}let U=zo({width:r,height:i,id:e,opacity:d,shape:A(l,{x:t,y:n,width:r,height:i,fill:"#fff",stroke:"#fff","stroke-width":0,d:g||void 0,transform:p||void 0,"clip-path":F,mask:T?`url(#${T})`:void 0})},u);return(y?A("defs",{},y):"")+(U?U[0]:"")+L+(d!==1?`<g opacity="${d}">`:"")+(b||C)+(d!==1?"</g>":"")+(U?U[1]:"")+m}async function*xt(e,t){let n=Ie(),{id:r,inheritedStyle:i,parent:s,font:o,debug:a,embedFont:u=!0,graphemeImages:f,canLoadAdditionalAssets:l,getTwStyles:p}=t;if(e===null||typeof e>"u")return yield,yield,"";if(!Xr(e)||typeof e.type=="function"){let S;if(!Xr(e))S=ln(String(e),t),yield(await S.next()).value;else{if(Oo(e.type))throw new Error("Class component is not supported.");S=xt(e.type(e.props),t),yield(await S.next()).value}await S.next();let M=yield;return(await S.next(M)).value}let{type:y,props:h}=e;if(h&&Eo(h))throw new Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:d,children:m,tw:b}=h||{};if(b){let S=p(b,d);d=Object.assign(S,d)}let g=n.Node.create();s.insertChild(g,s.getChildCount());let[w,T]=await on(g,y,i,d,h),P=w.transform===i.transform;if(P||(w.transform.__parent=i.transform),w.overflow==="hidden"&&(T._inheritedClipPathId=`satori_cp-${r}`,T._inheritedMaskId=`satori_om-${r}`),w.backgroundClip==="text"){let S={value:""};T._inheritedBackgroundClipTextPath=S,w._inheritedBackgroundClipTextPath=S}let I=Po(m),F=[],L=0,C=[];for(let S of I){let M=xt(S,{id:r+"-"+L++,parentStyle:w,inheritedStyle:T,isInheritingTransform:!0,parent:g,font:o,embedFont:u,debug:a,graphemeImages:f,canLoadAdditionalAssets:l,getTwStyles:p});l?C.push(...(await M.next()).value||[]):await M.next(),F.push(M)}yield C;for(let S of F)await S.next();let[N,U]=yield,{left:B,top:D,width:$,height:Z}=g.getComputedLayout();B+=N,D+=U;let z="",te="",Me="";if(y==="img"){let S=w.__src;te=await yt({id:r,left:B,top:D,width:$,height:Z,src:S,isInheritingTransform:P,debug:a},w)}else if(y==="svg"){let S=Io(e);te=await yt({id:r,left:B,top:D,width:$,height:Z,src:S,isInheritingTransform:P,debug:a},w)}else{let S=d==null?void 0:d.display;if(y==="div"&&m&&typeof m!="string"&&S!=="flex"&&S!=="none")throw new Error('Expected <div> to have explicit "display: flex" or "display: none" if it has more than one child node.');te=await yt({id:r,left:B,top:D,width:$,height:Z,isInheritingTransform:P,debug:a},w)}for(let S of F)z+=(await S.next([B,D])).value;return w._inheritedBackgroundClipTextPath&&(Me+=A("clipPath",{id:`satori_bct-${r}`,"clip-path":w._inheritedClipPathId?`url(#${w._inheritedClipPathId})`:void 0},w._inheritedBackgroundClipTextPath.value)),Me+te+z}c();var vr=ct(require("@shuding/opentype.js"),1);function vl(e,t,[n,r],[i,s]){if(n!==i)return n?!i||n===e?-1:i===e?1:e===400&&n===500||e===500&&n===400?-1:e===400&&i===500||e===500&&i===400?1:e<400?n<e&&i<e?i-n:n<e?-1:i<e?1:n-i:e<n&&e<i?n-i:e<n?-1:e<i?1:i-n:1;if(r!==s){if(r===t)return-1;if(s===t)return 1}return-1}var wt=class{constructor(t){this.fonts=new Map;this.addFonts(t)}get({name:t,weight:n,style:r}){if(!this.fonts.has(t))return null;n==="normal"&&(n=400),n==="bold"&&(n=700),typeof n=="string"&&(n=Number.parseInt(n,10));let i=[...this.fonts.get(t)],s=i[0];for(let o=1;o<i.length;o++){let[,a,u]=s,[,f,l]=i[o];vl(n,r,[a,u],[f,l])>0&&(s=i[o])}return s[0]}addFonts(t){for(let n of t){let r=n.data,i=vr.default.parse("buffer"in r?r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength):r,{lowMemory:!0}),s=i.charToGlyphIndex;i.charToGlyphIndex=a=>{let u=s.call(i,a);return u===0&&i._trackBrokenChars&&i._trackBrokenChars.push(a),u},this.defaultFont||(this.defaultFont=i);let o=n.name.toLowerCase();this.fonts.has(o)||this.fonts.set(o,[]),this.fonts.get(o).push([i,n.weight,n.style])}}getEngine(t=16,n=1.2,{fontFamily:r,fontWeight:i=400,fontStyle:s="normal"}){if(!this.fonts.size)throw new Error("No fonts are loaded. At least one font is required to calculate the layout.");r=(Array.isArray(r)?r:[r]).map(d=>d.toLowerCase());let o=r.map(d=>this.get({name:d,weight:i,style:s})).filter(Boolean),a=Array.from(this.fonts.keys());for(let d of a)r.includes(d)||o.push(this.get({name:d,weight:i,style:s}));let u=new Map,f=(d,m=!0)=>{let b=d.charCodeAt(0);if(u.has(b))return u.get(b);let g=o.find((w,T)=>!!w.charToGlyphIndex(d)||m&&T===o.length-1);return g&&u.set(b,g),g},l=(d,m=!1)=>{var g,w;return((m?(w=(g=d.tables)==null?void 0:g.os2)==null?void 0:w.sTypoAscender:0)||d.ascender)/d.unitsPerEm*t},p=(d,m=!1)=>{var g,w;return((m?(w=(g=d.tables)==null?void 0:g.os2)==null?void 0:w.sTypoDescender:0)||d.descender)/d.unitsPerEm*t},y=d=>f(d,!1),h={has:d=>{if(d===`
|
|
9
|
-
`)return!0;let m=y(d);return m?(m._trackBrokenChars=[],m.stringToGlyphs(d),m._trackBrokenChars.length?(m._trackBrokenChars=void 0,!1):!0):!1},baseline:(d,m=typeof d>"u"?o[0]:f(d))=>{let b=l(m,!0),g=p(m,!0),w=h.height(d,m),{yMax:T,yMin:P}=m.tables.head,I=b-g,F=(T/(T-P)-1)*I;return w*((1.2/n+1)/2)+F},height:(d,m=typeof d>"u"?o[0]:f(d))=>(l(m)-p(m))*(n/1.2),measure:(d,m)=>this.measure(f,d,m),getSVG:(d,m)=>this.getSVG(f,d,m)};return h}patchFontFallbackResolver(t,n){let r=[];t._trackBrokenChars=r;let i=t.stringToGlyphs;return t.stringToGlyphs=(s,...o)=>{let a=i.call(t,s,...o);for(let u=0;u<a.length;u++)if(a[u].unicode===void 0){let f=r.shift(),l=n(f);if(l!==t){let p=l.charToGlyph(f),y=t.unitsPerEm/l.unitsPerEm,h=new vr.default.Path;h.unitsPerEm=t.unitsPerEm,h.commands=p.path.commands.map(m=>{let b={...m};for(let g in b)typeof b[g]=="number"&&(b[g]*=y);return b});let d=new vr.default.Glyph({...p,advanceWidth:p.advanceWidth*y,xMin:p.xMin*y,xMax:p.xMax*y,yMin:p.yMin*y,yMax:p.yMax*y,path:h});a[u]=d}}return a},()=>{t.stringToGlyphs=i,t._trackBrokenChars=void 0}}measure(t,n,{fontSize:r,letterSpacing:i=0}){let s=t(n),o=this.patchFontFallbackResolver(s,t);try{return s.getAdvanceWidth(n,r,{letterSpacing:i/r})}finally{o()}}getSVG(t,n,{fontSize:r,top:i,left:s,letterSpacing:o=0}){let a=t(n),u=this.patchFontFallbackResolver(a,t);try{return r===0?"":a.getPath(n.replace(/\n/g,""),s,i,r,{letterSpacing:o/r}).toPathData(1)}finally{u()}}};c();function gn({width:e,height:t,content:n}){return A("svg",{width:e,height:t,viewBox:`0 0 ${e} ${t}`,xmlns:"http://www.w3.org/2000/svg"},n)}c();var Xo=ct(require("emoji-regex"),1),bl=new RegExp((0,Xo.default)(),""),Yo={emoji:bl,ja:/\p{scx=Hira}|\p{scx=Kana}|[,;:]/u,ko:/\p{scx=Hangul}/u,zh:/\p{scx=Han}/u,th:/\p{scx=Thai}/u,bn:/\p{scx=Bengali}/u,ar:/\p{scx=Arabic}/u,ta:/\p{scx=Tamil}/u,ml:/\p{scx=Malayalam}/u,he:/\p{scx=Hebrew}/u,te:/\p{scx=Telugu}/u,devanagari:/\p{scx=Devanagari}/u,symbol:/\p{Symbol}/u,math:/\p{Math}/u};function Qo(e){for(let t in Yo)if(Yo[t].test(e))return t;return"unknown"}c();c();var Au=ct(su());c();c();c();c();var o0=["ios","android","windows","macos","web"];function uu(e){return o0.includes(e)}var s0=["portrait","landscape"];function lu(e){return s0.includes(e)}var au;(function(e){e.fontSize="fontSize",e.lineHeight="lineHeight"})(au||(au={}));var W;(function(e){e.rem="rem",e.em="em",e.px="px",e.percent="%",e.vw="vw",e.vh="vh",e.none="<no-css-unit>"})(W||(W={}));function Ui(e){return typeof e=="string"}function zi(e){return typeof e=="object"}var Gi;function v(e){return{kind:"complete",style:e}}function re(e,t={}){let{fractions:n}=t;if(n&&e.includes("/")){let[s="",o=""]=e.split("/",2),a=re(s),u=re(o);return!a||!u?null:[a[0]/u[0],u[1]]}let r=parseFloat(e);if(Number.isNaN(r))return null;let i=e.match(/(([a-z]{2,}|%))$/);if(!i)return[r,W.none];switch(i==null?void 0:i[1]){case"rem":return[r,W.rem];case"px":return[r,W.px];case"em":return[r,W.em];case"%":return[r,W.percent];case"vw":return[r,W.vw];case"vh":return[r,W.vh];default:return null}}function De(e,t,n={}){let r=Ee(t,n);return r===null?null:v({[e]:r})}function Mr(e,t,n){let r=Ee(t);return r!==null&&(n[e]=r),n}function cu(e,t){let n=Ee(t);return n===null?null:{[e]:n}}function Ee(e,t={}){if(e===void 0)return null;let n=re(String(e),t);return n?Ge(...n,t):null}function Ge(e,t,n={}){let{isNegative:r,device:i}=n;switch(t){case W.rem:return e*16*(r?-1:1);case W.px:return e*(r?-1:1);case W.percent:return`${r?"-":""}${e}%`;case W.none:return e*(r?-1:1);case W.vw:return i!=null&&i.windowDimensions?i.windowDimensions.width*(e/100):(pe("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case W.vh:return i!=null&&i.windowDimensions?i.windowDimensions.height*(e/100):(pe("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function Vi(e){let t=re(e);if(!t)return null;let[n,r]=t;switch(r){case W.rem:return n*16;case W.px:return n;default:return null}}var a0={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function ji(e){return a0[e!=null?e:""]||"All"}function Hi(e){let t="All";return[e.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(r,i)=>(t=ji(i),"")),t]}function Ke(e,t={}){if(e.includes("/")){let n=fu(e,{...t,fractions:!0});if(n)return n}return e[0]==="["&&(e=e.slice(1,-1)),fu(e,t)}function _e(e,t,n={}){let r=Ke(t,n);return r===null?null:v({[e]:r})}function fu(e,t={}){if(e==="px")return 1;let n=re(e,t);if(!n)return null;let[r,i]=n;return t.fractions&&(i=W.percent,r*=100),i===W.none&&(r=r/4,i=W.rem),Ge(r,i,t)}function u0(...e){console.warn(...e)}function l0(...e){}var pe=typeof process>"u"||((Gi=process==null?void 0:process.env)===null||Gi===void 0?void 0:Gi.JEST_WORKER_ID)===void 0?u0:l0;var f0=[["aspect-square",v({aspectRatio:1})],["aspect-video",v({aspectRatio:16/9})],["items-center",v({alignItems:"center"})],["items-start",v({alignItems:"flex-start"})],["items-end",v({alignItems:"flex-end"})],["items-baseline",v({alignItems:"baseline"})],["items-stretch",v({alignItems:"stretch"})],["justify-start",v({justifyContent:"flex-start"})],["justify-end",v({justifyContent:"flex-end"})],["justify-center",v({justifyContent:"center"})],["justify-between",v({justifyContent:"space-between"})],["justify-around",v({justifyContent:"space-around"})],["justify-evenly",v({justifyContent:"space-evenly"})],["content-start",v({alignContent:"flex-start"})],["content-end",v({alignContent:"flex-end"})],["content-between",v({alignContent:"space-between"})],["content-around",v({alignContent:"space-around"})],["content-stretch",v({alignContent:"stretch"})],["content-center",v({alignContent:"center"})],["self-auto",v({alignSelf:"auto"})],["self-start",v({alignSelf:"flex-start"})],["self-end",v({alignSelf:"flex-end"})],["self-center",v({alignSelf:"center"})],["self-stretch",v({alignSelf:"stretch"})],["self-baseline",v({alignSelf:"baseline"})],["direction-inherit",v({direction:"inherit"})],["direction-ltr",v({direction:"ltr"})],["direction-rtl",v({direction:"rtl"})],["hidden",v({display:"none"})],["flex",v({display:"flex"})],["flex-row",v({flexDirection:"row"})],["flex-row-reverse",v({flexDirection:"row-reverse"})],["flex-col",v({flexDirection:"column"})],["flex-col-reverse",v({flexDirection:"column-reverse"})],["flex-wrap",v({flexWrap:"wrap"})],["flex-wrap-reverse",v({flexWrap:"wrap-reverse"})],["flex-nowrap",v({flexWrap:"nowrap"})],["flex-auto",v({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",v({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",v({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",v({overflow:"hidden"})],["overflow-visible",v({overflow:"visible"})],["overflow-scroll",v({overflow:"scroll"})],["absolute",v({position:"absolute"})],["relative",v({position:"relative"})],["italic",v({fontStyle:"italic"})],["not-italic",v({fontStyle:"normal"})],["oldstyle-nums",Kt("oldstyle-nums")],["small-caps",Kt("small-caps")],["lining-nums",Kt("lining-nums")],["tabular-nums",Kt("tabular-nums")],["proportional-nums",Kt("proportional-nums")],["font-thin",v({fontWeight:"100"})],["font-100",v({fontWeight:"100"})],["font-extralight",v({fontWeight:"200"})],["font-200",v({fontWeight:"200"})],["font-light",v({fontWeight:"300"})],["font-300",v({fontWeight:"300"})],["font-normal",v({fontWeight:"normal"})],["font-400",v({fontWeight:"400"})],["font-medium",v({fontWeight:"500"})],["font-500",v({fontWeight:"500"})],["font-semibold",v({fontWeight:"600"})],["font-600",v({fontWeight:"600"})],["font-bold",v({fontWeight:"bold"})],["font-700",v({fontWeight:"700"})],["font-extrabold",v({fontWeight:"800"})],["font-800",v({fontWeight:"800"})],["font-black",v({fontWeight:"900"})],["font-900",v({fontWeight:"900"})],["include-font-padding",v({includeFontPadding:!0})],["remove-font-padding",v({includeFontPadding:!1})],["max-w-none",v({maxWidth:"99999%"})],["text-left",v({textAlign:"left"})],["text-center",v({textAlign:"center"})],["text-right",v({textAlign:"right"})],["text-justify",v({textAlign:"justify"})],["text-auto",v({textAlign:"auto"})],["underline",v({textDecorationLine:"underline"})],["line-through",v({textDecorationLine:"line-through"})],["no-underline",v({textDecorationLine:"none"})],["uppercase",v({textTransform:"uppercase"})],["lowercase",v({textTransform:"lowercase"})],["capitalize",v({textTransform:"capitalize"})],["normal-case",v({textTransform:"none"})],["w-auto",v({width:"auto"})],["h-auto",v({height:"auto"})],["shadow-sm",v({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.025,elevation:1})],["shadow",v({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.075,elevation:2})],["shadow-md",v({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:.125,elevation:3})],["shadow-lg",v({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.15,shadowRadius:8,elevation:8})],["shadow-xl",v({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.19,shadowRadius:20,elevation:12})],["shadow-2xl",v({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.25,shadowRadius:30,elevation:16})],["shadow-none",v({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],Yi=f0;function Kt(e){return{kind:"dependent",complete(t){(!t.fontVariant||!Array.isArray(t.fontVariant))&&(t.fontVariant=[]),t.fontVariant.push(e)}}}var Zt=class{constructor(t){this.ir=new Map(Yi),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...Yi,...t!=null?t:[]])}getStyle(t){return this.styles.get(t)}setStyle(t,n){this.styles.set(t,n)}getIr(t){return this.ir.get(t)}setIr(t,n){this.ir.set(t,n)}getPrefixMatch(t){return this.prefixes.get(t)}setPrefixMatch(t,n){this.prefixes.set(t,n)}};c();c();function Xi(e,t,n={}){let r=t==null?void 0:t[e];if(!r)return _e("fontSize",e,n);if(typeof r=="string")return De("fontSize",r);let i={},[s,o]=r,a=cu("fontSize",s);if(a&&(i=a),typeof o=="string")return v(Mr("lineHeight",du(o,i),i));let{lineHeight:u,letterSpacing:f}=o;return u&&Mr("lineHeight",du(u,i),i),f&&Mr("letterSpacing",f,i),v(i)}function du(e,t){let n=re(e);if(n){let[r,i]=n;if((i===W.none||i===W.em)&&typeof t.fontSize=="number")return t.fontSize*r}return e}c();function Qi(e,t){var n;let r=(n=t==null?void 0:t[e])!==null&&n!==void 0?n:e.startsWith("[")?e.slice(1,-1):e,i=re(r);if(!i)return null;let[s,o]=i;if(o===W.none)return{kind:"dependent",complete(u){if(typeof u.fontSize!="number")return"relative line-height utilities require that font-size be set";u.lineHeight=u.fontSize*s}};let a=Ge(s,o);return a!==null?v({lineHeight:a}):null}c();function Ji(e,t,n,r,i){let s="";if(r[0]==="[")s=r.slice(1,-1);else{let f=i==null?void 0:i[r];if(f)s=f;else{let l=Ke(r);return l&&typeof l=="number"?pu(l,W.px,t,e):null}}if(s==="auto")return hu(t,e,"auto");let o=re(s);if(!o)return null;let[a,u]=o;return n&&(a=-a),pu(a,u,t,e)}function pu(e,t,n,r){let i=Ge(e,t);return i===null?null:hu(n,r,i)}function hu(e,t,n){switch(e){case"All":return{kind:"complete",style:{[`${t}Top`]:n,[`${t}Right`]:n,[`${t}Bottom`]:n,[`${t}Left`]:n}};case"Bottom":case"Top":case"Left":case"Right":return{kind:"complete",style:{[`${t}${e}`]:n}};case"Vertical":return{kind:"complete",style:{[`${t}Top`]:n,[`${t}Bottom`]:n}};case"Horizontal":return{kind:"complete",style:{[`${t}Left`]:n,[`${t}Right`]:n}};default:return null}}c();function Ki(e){if(!e)return{};let t=Object.entries(e).reduce((i,[s,o])=>{let a=[0,1/0,0],u=typeof o=="string"?{min:o}:o,f=u.min?Vi(u.min):0;f===null?pe(`invalid screen config value: ${s}->min: ${u.min}`):a[0]=f;let l=u.max?Vi(u.max):1/0;return l===null?pe(`invalid screen config value: ${s}->max: ${u.max}`):a[1]=l,i[s]=a,i},{}),n=Object.values(t);n.sort((i,s)=>{let[o,a]=i,[u,f]=s;return a===1/0||f===1/0?o-u:a-f});let r=0;return n.forEach(i=>i[2]=r++),t}c();function Zi(e,t){let n=t==null?void 0:t[e];if(!n)return null;if(typeof n=="string")return v({fontFamily:n});let r=n[0];return r?v({fontFamily:r}):null}c();function Ze(e,t,n){if(!n)return null;let r;t.includes("/")&&([t="",r]=t.split("/",2));let i="";if(t.startsWith("[#")||t.startsWith("[rgb")?i=t.slice(1,-1):i=vu(t,n),!i)return null;if(r){let s=Number(r);if(!Number.isNaN(s))return i=mu(i,s/100),v({[Fr[e].color]:i})}return{kind:"dependent",complete(s){let o=Fr[e].opacity,a=s[o];typeof a=="number"&&(i=mu(i,a)),s[Fr[e].color]=i}}}function er(e,t){let n=parseInt(t,10);if(Number.isNaN(n))return null;let r=n/100,i={[Fr[e].opacity]:r};return{kind:"complete",style:i}}function mu(e,t){return e.startsWith("#")?e=c0(e):e.startsWith("rgb(")&&(e=e.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),e.replace(/, ?\d*\.?(\d+)\)$/,`, ${t})`)}function gu(e){for(let t in e)t.startsWith("__opacity_")&&delete e[t]}var Fr={bg:{opacity:"__opacity_bg",color:"backgroundColor"},text:{opacity:"__opacity_text",color:"color"},border:{opacity:"__opacity_border",color:"borderColor"},borderTop:{opacity:"__opacity_border",color:"borderTopColor"},borderBottom:{opacity:"__opacity_border",color:"borderBottomColor"},borderLeft:{opacity:"__opacity_border",color:"borderLeftColor"},borderRight:{opacity:"__opacity_border",color:"borderRightColor"},shadow:{opacity:"__opacity_shadow",color:"shadowColor"},tint:{opacity:"__opacity_tint",color:"tintColor"}};function c0(e){let t=e;e=e.replace(d0,(o,a,u,f)=>a+a+u+u+f+f);let n=p0.exec(e);if(!n)return pe(`invalid config hex color value: ${t}`),"rgba(0, 0, 0, 1)";let r=parseInt(n[1],16),i=parseInt(n[2],16),s=parseInt(n[3],16);return`rgba(${r}, ${i}, ${s}, 1)`}function vu(e,t){let n=t[e];if(Ui(n))return n;if(zi(n)&&Ui(n.DEFAULT))return n.DEFAULT;let[r="",...i]=e.split("-");for(;r!==e;){let s=t[r];if(zi(s))return vu(i.join("-"),s);if(i.length===0)return"";r=`${r}-${i.shift()}`}return""}var d0=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,p0=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;c();function yu(e,t){let[n,r]=Hi(e);if(n.match(/^(-?(\d)+)?$/))return h0(n,r,t==null?void 0:t.borderWidth);if(n=n.replace(/^-/,""),["dashed","solid","dotted"].includes(n))return v({borderStyle:n});let s="border";switch(r){case"Bottom":s="borderBottom";break;case"Top":s="borderTop";break;case"Left":s="borderLeft";break;case"Right":s="borderRight";break}let o=Ze(s,n,t==null?void 0:t.borderColor);if(o)return o;let a=`border${r==="All"?"":r}Width`;n=n.replace(/^-/,"");let u=n.slice(1,-1),f=_e(a,u);return typeof(f==null?void 0:f.style[a])!="number"?null:f}function h0(e,t,n){if(!n)return null;e=e.replace(/^-/,"");let i=n[e===""?"DEFAULT":e];if(i===void 0)return null;let s=`border${t==="All"?"":t}Width`;return De(s,i)}function xu(e,t){if(!t)return null;let[n,r]=Hi(e);n=n.replace(/^-/,""),n===""&&(n="DEFAULT");let i=`border${r==="All"?"":r}Radius`,s=t[n];if(s)return bu(De(i,s));let o=_e(i,n);return typeof(o==null?void 0:o.style[i])!="number"?null:bu(o)}function bu(e){if((e==null?void 0:e.kind)!=="complete")return e;let t=e.style.borderTopRadius;t!==void 0&&(e.style.borderTopLeftRadius=t,e.style.borderTopRightRadius=t,delete e.style.borderTopRadius);let n=e.style.borderBottomRadius;n!==void 0&&(e.style.borderBottomLeftRadius=n,e.style.borderBottomRightRadius=n,delete e.style.borderBottomRadius);let r=e.style.borderLeftRadius;r!==void 0&&(e.style.borderBottomLeftRadius=r,e.style.borderTopLeftRadius=r,delete e.style.borderLeftRadius);let i=e.style.borderRightRadius;return i!==void 0&&(e.style.borderBottomRightRadius=i,e.style.borderTopRightRadius=i,delete e.style.borderRightRadius),e}c();function at(e,t,n,r){let i=null;e==="inset"&&(t=t.replace(/^(x|y)-/,(a,u)=>(i=u==="x"?"x":"y","")));let s=r==null?void 0:r[t];if(s){let a=Ee(s,{isNegative:n});if(a!==null)return wu(e,i,a)}let o=Ke(t,{isNegative:n});return o!==null?wu(e,i,o):null}function wu(e,t,n){if(e!=="inset")return v({[e]:n});switch(t){case null:return v({top:n,left:n,right:n,bottom:n});case"y":return v({top:n,bottom:n});case"x":return v({left:n,right:n})}}c();function tr(e,t,n){var r;t=t.replace(/^-/,"");let i=t===""?"DEFAULT":t,s=Number((r=n==null?void 0:n[i])!==null&&r!==void 0?r:t);return Number.isNaN(s)?null:v({[`flex${e}`]:s})}function _u(e,t){var n,r;if(e=(t==null?void 0:t[e])||e,["min-content","revert","unset"].includes(e))return null;if(e.match(/^\d+(\.\d+)?$/))return v({flexGrow:Number(e),flexBasis:"0%"});let i=e.match(/^(\d+)\s+(\d+)$/);if(i)return v({flexGrow:Number(i[1]),flexShrink:Number(i[2])});if(i=e.match(/^(\d+)\s+([^ ]+)$/),i){let s=Ee((n=i[2])!==null&&n!==void 0?n:"");return s?v({flexGrow:Number(i[1]),flexBasis:s}):null}if(i=e.match(/^(\d+)\s+(\d+)\s+(.+)$/),i){let s=Ee((r=i[3])!==null&&r!==void 0?r:"");return s?v({flexGrow:Number(i[1]),flexShrink:Number(i[2]),flexBasis:s}):null}return null}c();function eo(e,t,n={},r){let i=r==null?void 0:r[t];return i!==void 0?De(e,i,n):_e(e,t,n)}function rr(e,t,n={},r){let i=Ee(r==null?void 0:r[t],n);return i?v({[e]:i}):(t==="screen"&&(t=e.includes("Width")?"100vw":"100vh"),_e(e,t,n))}c();function Su(e,t,n){let r=n==null?void 0:n[e];if(r){let i=re(r,{isNegative:t});if(!i)return null;let[s,o]=i;if(o===W.em)return m0(s);if(o===W.percent)return pe("percentage-based letter-spacing configuration currently unsupported, switch to `em`s, or open an issue if you'd like to see support added."),null;let a=Ge(s,o,{isNegative:t});return a!==null?v({letterSpacing:a}):null}return _e("letterSpacing",e,{isNegative:t})}function m0(e){return{kind:"dependent",complete(t){let n=t.fontSize;if(typeof n!="number"||Number.isNaN(n))return"tracking-X relative letter spacing classes require font-size to be set";t.letterSpacing=Math.round((e*n+Number.EPSILON)*100)/100}}}c();function ku(e,t){let n=t==null?void 0:t[e];if(n){let i=re(String(n));if(i)return v({opacity:i[0]})}let r=re(e);return r?v({opacity:r[0]/100}):null}c();function Tu(e){let t=parseInt(e,10);return Number.isNaN(t)?null:{kind:"complete",style:{shadowOpacity:t/100}}}function Ou(e){if(e.includes("/")){let[n="",r=""]=e.split("/",2),i=to(n),s=to(r);return i===null||s===null?null:{kind:"complete",style:{shadowOffset:{width:i,height:s}}}}let t=to(e);return t===null?null:{kind:"complete",style:{shadowOffset:{width:t,height:t}}}}function to(e){let t=Ke(e);return typeof t=="number"?t:null}var ut=class{constructor(t,n={},r,i,s){var o,a,u,f,l,p;this.config=n,this.cache=r,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=i;let y=t.trim().split(":"),h=[];y.length===1?this.string=t:(this.string=(o=y.pop())!==null&&o!==void 0?o:"",h=y),this.char=this.string[0];let d=Ki((a=this.config.theme)===null||a===void 0?void 0:a.screens);for(let m of h)if(d[m]){let b=(u=d[m])===null||u===void 0?void 0:u[2];b!==void 0&&(this.order=((f=this.order)!==null&&f!==void 0?f:0)+b);let g=(l=i.windowDimensions)===null||l===void 0?void 0:l.width;if(g){let[w,T]=(p=d[m])!==null&&p!==void 0?p:[0,0];(g<=w||g>T)&&(this.isNull=!0)}else this.isNull=!0}else uu(m)?this.isNull=m!==s:lu(m)?i.windowDimensions?(i.windowDimensions.width>i.windowDimensions.height?"landscape":"portrait")!==m?this.isNull=!0:this.incrementOrder():this.isNull=!0:m==="retina"?i.pixelDensity===2?this.incrementOrder():this.isNull=!0:m==="dark"?i.colorScheme!=="dark"?this.isNull=!0:this.incrementOrder():this.handlePossibleArbitraryBreakpointPrefix(m)||(this.isNull=!0)}parse(){if(this.isNull)return{kind:"null"};let t=this.cache.getIr(this.rest);if(t)return t;this.parseIsNegative();let n=this.parseUtility();return n?this.order!==void 0?{kind:"ordered",order:this.order,styleIr:n}:n:{kind:"null"}}parseUtility(){var t,n,r,i,s;let o=this.config.theme,a=null;switch(this.char){case"m":case"p":{let u=this.peekSlice(1,3).match(/^(t|b|r|l|x|y)?-/);if(u){let f=this.char==="m"?"margin":"padding";this.advance(((n=(t=u[0])===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+1);let l=ji(u[1]),p=Ji(f,l,this.isNegative,this.rest,(r=this.config.theme)===null||r===void 0?void 0:r[f]);if(p)return p}}}if(this.consumePeeked("h-")&&(a=eo("height",this.rest,this.context,o==null?void 0:o.height),a)||this.consumePeeked("w-")&&(a=eo("width",this.rest,this.context,o==null?void 0:o.width),a)||this.consumePeeked("min-w-")&&(a=rr("minWidth",this.rest,this.context,o==null?void 0:o.minWidth),a)||this.consumePeeked("min-h-")&&(a=rr("minHeight",this.rest,this.context,o==null?void 0:o.minHeight),a)||this.consumePeeked("max-w-")&&(a=rr("maxWidth",this.rest,this.context,o==null?void 0:o.maxWidth),a)||this.consumePeeked("max-h-")&&(a=rr("maxHeight",this.rest,this.context,o==null?void 0:o.maxHeight),a)||this.consumePeeked("leading-")&&(a=Qi(this.rest,o==null?void 0:o.lineHeight),a)||this.consumePeeked("text-")&&(a=Xi(this.rest,o==null?void 0:o.fontSize,this.context),a||(a=Ze("text",this.rest,o==null?void 0:o.textColor),a)||this.consumePeeked("opacity-")&&(a=er("text",this.rest),a))||this.consumePeeked("font-")&&(a=Zi(this.rest,o==null?void 0:o.fontFamily),a)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&pe("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),a=De("aspectRatio",this.rest,{fractions:!0}),a)||this.consumePeeked("tint-")&&(a=Ze("tint",this.rest,o==null?void 0:o.colors),a)||this.consumePeeked("bg-")&&(a=Ze("bg",this.rest,o==null?void 0:o.backgroundColor),a||this.consumePeeked("opacity-")&&(a=er("bg",this.rest),a))||this.consumePeeked("border")&&(a=yu(this.rest,o),a||this.consumePeeked("-opacity-")&&(a=er("border",this.rest),a))||this.consumePeeked("rounded")&&(a=xu(this.rest,o==null?void 0:o.borderRadius),a)||this.consumePeeked("bottom-")&&(a=at("bottom",this.rest,this.isNegative,o==null?void 0:o.inset),a)||this.consumePeeked("top-")&&(a=at("top",this.rest,this.isNegative,o==null?void 0:o.inset),a)||this.consumePeeked("left-")&&(a=at("left",this.rest,this.isNegative,o==null?void 0:o.inset),a)||this.consumePeeked("right-")&&(a=at("right",this.rest,this.isNegative,o==null?void 0:o.inset),a)||this.consumePeeked("inset-")&&(a=at("inset",this.rest,this.isNegative,o==null?void 0:o.inset),a)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?a=tr("Grow",this.rest,o==null?void 0:o.flexGrow):this.consumePeeked("shrink")?a=tr("Shrink",this.rest,o==null?void 0:o.flexShrink):a=_u(this.rest,o==null?void 0:o.flex),a)||this.consumePeeked("grow")&&(a=tr("Grow",this.rest,o==null?void 0:o.flexGrow),a)||this.consumePeeked("shrink")&&(a=tr("Shrink",this.rest,o==null?void 0:o.flexShrink),a)||this.consumePeeked("shadow-color-opacity-")&&(a=er("shadow",this.rest),a)||this.consumePeeked("shadow-opacity-")&&(a=Tu(this.rest),a)||this.consumePeeked("shadow-offset-")&&(a=Ou(this.rest),a)||this.consumePeeked("shadow-radius-")&&(a=_e("shadowRadius",this.rest),a)||this.consumePeeked("shadow-")&&(a=Ze("shadow",this.rest,o==null?void 0:o.colors),a))return a;if(this.consumePeeked("elevation-")){let u=parseInt(this.rest,10);if(!Number.isNaN(u))return v({elevation:u})}if(this.consumePeeked("opacity-")&&(a=ku(this.rest,o==null?void 0:o.opacity),a)||this.consumePeeked("tracking-")&&(a=Su(this.rest,this.isNegative,o==null?void 0:o.letterSpacing),a))return a;if(this.consumePeeked("z-")){let u=Number((s=(i=o==null?void 0:o.zIndex)===null||i===void 0?void 0:i[this.rest])!==null&&s!==void 0?s:this.rest);if(!Number.isNaN(u))return v({zIndex:u})}return pe(`\`${this.rest}\` unknown or invalid utility`),null}handlePossibleArbitraryBreakpointPrefix(t){var n;if(t[0]!=="m")return!1;let r=t.match(/^(min|max)-(w|h)-\[([^\]]+)\]$/);if(!r)return!1;if(!(!((n=this.context.device)===null||n===void 0)&&n.windowDimensions))return this.isNull=!0,!0;let i=this.context.device.windowDimensions,[,s="",o="",a=""]=r,u=o==="w"?i.width:i.height,f=re(a,this.context);if(f===null)return this.isNull=!0,!0;let[l,p]=f;return p!=="px"&&(this.isNull=!0),(s==="min"?u>=l:u<=l)?this.incrementOrder():this.isNull=!0,!0}advance(t=1){this.position+=t,this.char=this.string[this.position]}get rest(){return this.peekSlice(0,this.string.length)}peekSlice(t,n){return this.string.slice(this.position+t,this.position+n)}consumePeeked(t){return this.peekSlice(0,t.length)===t?(this.advance(t.length),!0):!1}parseIsNegative(){this.char==="-"&&(this.advance(),this.isNegative=!0,this.context.isNegative=!0)}incrementOrder(){var t;this.order=((t=this.order)!==null&&t!==void 0?t:0)+1}};c();function Eu(e){let t=[],n=null;return e.forEach(r=>{if(typeof r=="string")t=[...t,...ro(r)];else if(Array.isArray(r))t=[...t,...r.flatMap(ro)];else if(typeof r=="object"&&r!==null)for(let[i,s]of Object.entries(r))typeof s=="boolean"?t=[...t,...s?ro(i):[]]:n?n[i]=s:n={[i]:s}}),[t.filter(Boolean).filter(g0),n]}function ro(e){return e.trim().split(/\s+/)}function g0(e,t,n){return n.indexOf(e)===t}c();function Pu(e){var t;return(t=e==null?void 0:e.reduce((n,r)=>({...n,...v0(r.handler)}),{}))!==null&&t!==void 0?t:{}}function v0(e){let t={};return e({addUtilities:n=>{t=n},...b0}),t}function Pe(e){throw new Error(`tailwindcss plugin function argument object prop "${e}" not implemented`)}var b0={addComponents:Pe,addBase:Pe,addVariant:Pe,e:Pe,prefix:Pe,theme:Pe,variants:Pe,config:Pe,corePlugins:Pe,matchUtilities:Pe,postcss:null};function Ru(e,t){let n=(0,Au.default)(y0(e)),r={},i=Pu(n.plugins),s={},o=Object.entries(i).map(([d,m])=>typeof m=="string"?(s[d]=m,[d,{kind:"null"}]):[d,v(m)]).filter(([,d])=>d.kind!=="null");function a(){return[r.windowDimensions?`w${r.windowDimensions.width}`:!1,r.windowDimensions?`h${r.windowDimensions.height}`:!1,r.fontScale?`fs${r.fontScale}`:!1,r.colorScheme==="dark"?"dark":!1,r.pixelDensity===2?"retina":!1].filter(Boolean).join("--")||"default"}let u=a(),f={};function l(){let d=f[u];if(d)return d;let m=new Zt(o);return f[u]=m,m}function p(...d){let m=l(),b={},g=[],w=[],[T,P]=Eu(d),I=T.join(" "),F=m.getStyle(I);if(F)return{...F,...P||{}};for(let L of T){let C=m.getIr(L);if(!C&&L in s){let U=p(s[L]);m.setIr(L,v(U)),b={...b,...U};continue}switch(C=new ut(L,n,m,r,t).parse(),C.kind){case"complete":b={...b,...C.style},m.setIr(L,C);break;case"dependent":g.push(C);break;case"ordered":w.push(C);break;case"null":m.setIr(L,C);break}}if(w.length>0){w.sort((L,C)=>L.order-C.order);for(let L of w)switch(L.styleIr.kind){case"complete":b={...b,...L.styleIr.style};break;case"dependent":g.push(L.styleIr);break}}if(g.length>0){for(let L of g){let C=L.complete(b);C&&pe(C)}gu(b)}return I!==""&&m.setStyle(I,b),P&&(b={...b,...P}),b}function y(d){let m=p(d.split(/\s+/g).map(b=>b.replace(/^(bg|text|border)-/,"")).map(b=>`bg-${b}`).join(" "));return typeof m.backgroundColor=="string"?m.backgroundColor:void 0}let h=(d,...m)=>{let b="";return d.forEach((g,w)=>{var T;b+=g+((T=m[w])!==null&&T!==void 0?T:"")}),p(b)};return h.style=p,h.color=y,h.prefixMatch=(...d)=>{let m=d.sort().join(":"),b=l(),g=b.getPrefixMatch(m);if(g!==void 0)return g;let P=new ut(`${m}:flex`,n,b,r,t).parse().kind!=="null";return b.setPrefixMatch(m,P),P},h.setWindowDimensions=d=>{r.windowDimensions=d,u=a()},h.setFontScale=d=>{r.fontScale=d,u=a()},h.setPixelDensity=d=>{r.pixelDensity=d,u=a()},h.setColorScheme=d=>{r.colorScheme=d,u=a()},h}function y0(e){return{...e,content:["_no_warnings_please"]}}var w0={plugins:[{handler:({addUtilities:e})=>{e({"shadow-sm":{boxShadow:"0 1px 2px 0 rgb(0 0 0 / 0.05)"},shadow:{boxShadow:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)"},"shadow-md":{boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"},"shadow-lg":{boxShadow:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)"},"shadow-xl":{boxShadow:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"},"shadow-2xl":{boxShadow:"0 25px 50px -12px rgb(0 0 0 / 0.25)"},"shadow-inner":{boxShadow:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"},"shadow-none":{boxShadow:"0 0 #0000"}})}}]};function _0(){return Ru(w0,"web")}var Nr;function no({width:e,height:t}){return Nr||(Nr=_0()),Nr.setWindowDimensions({width:+e,height:+t}),Nr}var io=new WeakMap;async function oo(e,t){let n=Ie();if(!n||!n.Node)throw new Error("Satori is not initialized: expect `yoga` to be loaded, got "+n);t.fonts=t.fonts||[];let r;io.has(t.fonts)?r=io.get(t.fonts):io.set(t.fonts,r=new wt(t.fonts));let i="width"in t?t.width:void 0,s="height"in t?t.height:void 0,o=n.Node.create();i&&o.setWidth(i),s&&o.setHeight(s),o.setFlexDirection(n.FLEX_DIRECTION_ROW),o.setFlexWrap(n.WRAP_WRAP),o.setAlignContent(n.ALIGN_AUTO),o.setAlignItems(n.ALIGN_FLEX_START),o.setJustifyContent(n.JUSTIFY_FLEX_START),o.setOverflow(n.OVERFLOW_HIDDEN);let a={...t.graphemeImages},u=xt(e,{id:"id",parentStyle:{},inheritedStyle:{fontSize:16,fontWeight:"normal",fontFamily:"serif",fontStyle:"normal",lineHeight:1.2,color:"black",opacity:1,whiteSpace:"normal",_viewportWidth:i,_viewportHeight:s},parent:o,font:r,embedFont:t.embedFont,debug:t.debug,graphemeImages:a,canLoadAdditionalAssets:!!t.loadAdditionalAsset,getTwStyles:(h,d)=>{let b={...no({width:i,height:s})([h])};return typeof b.lineHeight=="number"&&(b.lineHeight=b.lineHeight/(+b.fontSize||d.fontSize||16)),b.shadowColor&&b.boxShadow&&(b.boxShadow=b.boxShadow.replace(/rgba?\([^)]+\)/,b.shadowColor)),b}}),f=(await u.next()).value;if(t.loadAdditionalAsset&&f.length){f=Array.from(new Set(He(f.join(""),"grapheme")));let h={};f.forEach(b=>{let g=Qo(b);h[g]=h[g]||[],g==="emoji"?h[g].push(b):h[g][0]=(h[g][0]||"")+b});let d=[],m={};await Promise.all(Object.entries(h).flatMap(([b,g])=>g.map(w=>t.loadAdditionalAsset(b,w).then(T=>{typeof T=="string"?m[w]=T:T&&d.push(T)})))),r.addFonts(d),Object.assign(a,m)}await u.next(),o.calculateLayout(i,s,n.DIRECTION_LTR);let l=(await u.next([0,0])).value,p=o.getComputedWidth(),y=o.getComputedHeight();return o.freeRecursive(),gn({width:p,height:y,content:l})}0&&(module.exports={init});
|
|
1
|
+
var Vu=Object.create;var pr=Object.defineProperty;var Hu=Object.getOwnPropertyDescriptor;var ju=Object.getOwnPropertyNames;var Yu=Object.getPrototypeOf,Xu=Object.prototype.hasOwnProperty;var Xr=(e,t)=>()=>(e&&(t=e(e=0)),t);var R=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Qr=(e,t)=>{for(var n in t)pr(e,n,{get:t[n],enumerable:!0})},wo=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ju(t))!Xu.call(e,i)&&i!==n&&pr(e,i,{get:()=>t[i],enumerable:!(r=Hu(t,i))||r.enumerable});return e};var pt=(e,t,n)=>(n=e!=null?Vu(Yu(e)):{},wo(t||!e||!e.__esModule?pr(n,"default",{value:e,enumerable:!0}):n,e)),ht=e=>wo(pr({},"__esModule",{value:!0}),e);var c=Xr(()=>{});var kn=R(Sn=>{"use strict";c();Object.defineProperty(Sn,"__esModule",{value:!0});Object.defineProperty(Sn,"default",{enumerable:!0,get:()=>Cl});function Cl(e){if(e=`${e}`,e==="0")return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(e))return e.replace(/^[+-]?/,t=>t==="-"?"":"-");if(e.includes("var(")||e.includes("calc("))return`calc(${e} * -1)`}});var ss=R(Tn=>{"use strict";c();Object.defineProperty(Tn,"__esModule",{value:!0});Object.defineProperty(Tn,"default",{enumerable:!0,get:()=>Dl});var Dl=["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","display","aspectRatio","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","borderCollapse","borderSpacing","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","whitespace","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","content"]});var as=R(On=>{"use strict";c();Object.defineProperty(On,"__esModule",{value:!0});Object.defineProperty(On,"default",{enumerable:!0,get:()=>Fl});function Fl(e,t){return e===void 0?t:Array.isArray(e)?e:[...new Set(t.filter(r=>e!==!1&&e[r]!==!1).concat(Object.keys(e).filter(r=>e[r]!==!1)))]}});var En=R((pg,us)=>{c();us.exports={content:[],presets:[],darkMode:"media",theme:{screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:({colors:e})=>({inherit:e.inherit,current:e.current,transparent:e.transparent,black:e.black,white:e.white,slate:e.slate,gray:e.gray,zinc:e.zinc,neutral:e.neutral,stone:e.stone,red:e.red,orange:e.orange,amber:e.amber,yellow:e.yellow,lime:e.lime,green:e.green,emerald:e.emerald,teal:e.teal,cyan:e.cyan,sky:e.sky,blue:e.blue,indigo:e.indigo,violet:e.violet,purple:e.purple,fuchsia:e.fuchsia,pink:e.pink,rose:e.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","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:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},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:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>e("brightness"),backdropContrast:({theme:e})=>e("contrast"),backdropGrayscale:({theme:e})=>e("grayscale"),backdropHueRotate:({theme:e})=>e("hueRotate"),backdropInvert:({theme:e})=>e("invert"),backdropOpacity:({theme:e})=>e("opacity"),backdropSaturate:({theme:e})=>e("saturate"),backdropSepia:({theme:e})=>e("sepia"),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},borderColor:({theme:e})=>({...e("colors"),DEFAULT:e("colors.gray.200","currentColor")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>({...e("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),caretColor:({theme:e})=>e("colors"),accentColor:({theme:e})=>({...e("colors"),auto:"auto"}),contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},container:{},content:{none:"none"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>e("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>e("colors"),grayscale:{0:"0",DEFAULT:"100%"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{0:"0",DEFAULT:"100%"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},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"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("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-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-full":"1 / -1"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridTemplateColumns:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))"},height:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),inset:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"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:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({...e("spacing"),full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:e,breakpoints:t})=>({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",...t(e("screens"))}),minHeight:{0:"0px",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",40:"0.4",50:"0.5",60:"0.6",70:"0.7",75:"0.75",80:"0.8",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringColor:({theme:e})=>({DEFAULT:e("colors.blue.500","#3b82f6"),...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},scrollMargin:({theme:e})=>({...e("spacing")}),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:e})=>({...e("spacing")}),stroke:({theme:e})=>e("colors"),strokeWidth:{0:"0",1:"1",2:"2"},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:e})=>({...e("spacing")}),textOpacity:({theme:e})=>e("opacity"),transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDuration:{DEFAULT:"150ms",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},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:e})=>({...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),width:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},variantOrder:["first","last","odd","even","visited","checked","empty","read-only","group-hover","group-focus","focus-within","hover","focus","focus-visible","active","disabled"],plugins:[]}});var Tr={};Qr(Tr,{default:()=>Ml});var Ml,Or=Xr(()=>{c();Ml={info(e,t){console.info(...Array.isArray(e)?[e]:[t,e])},warn(e,t){console.warn(...Array.isArray(e)?[e]:[t,e])},risk(e,t){console.error(...Array.isArray(e)?[e]:[t,e])}}});var ls=R(Pn=>{"use strict";c();Object.defineProperty(Pn,"__esModule",{value:!0});Object.defineProperty(Pn,"default",{enumerable:!0,get:()=>Wl});var Nl=$l((Or(),ht(Tr)));function $l(e){return e&&e.__esModule?e:{default:e}}function Ot({version:e,from:t,to:n}){Nl.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${n}\`.`,"Update your configuration file to silence this warning."])}var Wl={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},get lightBlue(){return Ot({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return Ot({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return Ot({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return Ot({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return Ot({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}});var fs=R(An=>{"use strict";c();Object.defineProperty(An,"__esModule",{value:!0});Object.defineProperty(An,"defaults",{enumerable:!0,get:()=>ql});function ql(e,...t){for(let i of t){for(let s in i){var n;!(e==null||(n=e.hasOwnProperty)===null||n===void 0)&&n.call(e,s)||(e[s]=i[s])}for(let s of Object.getOwnPropertySymbols(i)){var r;!(e==null||(r=e.hasOwnProperty)===null||r===void 0)&&r.call(e,s)||(e[s]=i[s])}}return e}});var cs=R(In=>{"use strict";c();Object.defineProperty(In,"__esModule",{value:!0});Object.defineProperty(In,"toPath",{enumerable:!0,get:()=>Bl});function Bl(e){if(Array.isArray(e))return e;let t=e.split("[").length-1,n=e.split("]").length-1;if(t!==n)throw new Error(`Path is invalid. Has unbalanced brackets: ${e}`);return e.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}});var ps=R(Rn=>{"use strict";c();Object.defineProperty(Rn,"__esModule",{value:!0});Object.defineProperty(Rn,"normalizeConfig",{enumerable:!0,get:()=>zl});var Et=Ul((Or(),ht(Tr)));function ds(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(ds=function(r){return r?n:t})(e)}function Ul(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=ds(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function zl(e){if((()=>{if(e.purge||!e.content||!Array.isArray(e.content)&&!(typeof e.content=="object"&&e.content!==null))return!1;if(Array.isArray(e.content))return e.content.every(r=>typeof r=="string"?!0:!(typeof(r==null?void 0:r.raw)!="string"||(r==null?void 0:r.extension)&&typeof(r==null?void 0:r.extension)!="string"));if(typeof e.content=="object"&&e.content!==null){if(Object.keys(e.content).some(r=>!["files","extract","transform"].includes(r)))return!1;if(Array.isArray(e.content.files)){if(!e.content.files.every(r=>typeof r=="string"?!0:!(typeof(r==null?void 0:r.raw)!="string"||(r==null?void 0:r.extension)&&typeof(r==null?void 0:r.extension)!="string")))return!1;if(typeof e.content.extract=="object"){for(let r of Object.values(e.content.extract))if(typeof r!="function")return!1}else if(!(e.content.extract===void 0||typeof e.content.extract=="function"))return!1;if(typeof e.content.transform=="object"){for(let r of Object.values(e.content.transform))if(typeof r!="function")return!1}else if(!(e.content.transform===void 0||typeof e.content.transform=="function"))return!1}return!0}return!1})()||Et.default.warn("purge-deprecation",["The `purge`/`content` options have changed in Tailwind CSS v3.0.","Update your configuration file to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]),e.safelist=(()=>{var r;let{content:i,purge:s,safelist:o}=e;return Array.isArray(o)?o:Array.isArray(i==null?void 0:i.safelist)?i.safelist:Array.isArray(s==null?void 0:s.safelist)?s.safelist:Array.isArray(s==null||(r=s.options)===null||r===void 0?void 0:r.safelist)?s.options.safelist:[]})(),typeof e.prefix=="function")Et.default.warn("prefix-function",["As of Tailwind CSS v3.0, `prefix` cannot be a function.","Update `prefix` in your configuration to be a string to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]),e.prefix="";else{var n;e.prefix=(n=e.prefix)!==null&&n!==void 0?n:""}e.content={files:(()=>{let{content:r,purge:i}=e;return Array.isArray(i)?i:Array.isArray(i==null?void 0:i.content)?i.content:Array.isArray(r)?r:Array.isArray(r==null?void 0:r.content)?r.content:Array.isArray(r==null?void 0:r.files)?r.files:[]})(),extract:(()=>{let r=(()=>{var o,a,u,l,f,d,g,p,h,v;return!((o=e.purge)===null||o===void 0)&&o.extract?e.purge.extract:!((a=e.content)===null||a===void 0)&&a.extract?e.content.extract:!((u=e.purge)===null||u===void 0||(l=u.extract)===null||l===void 0)&&l.DEFAULT?e.purge.extract.DEFAULT:!((f=e.content)===null||f===void 0||(d=f.extract)===null||d===void 0)&&d.DEFAULT?e.content.extract.DEFAULT:!((g=e.purge)===null||g===void 0||(p=g.options)===null||p===void 0)&&p.extractors?e.purge.options.extractors:!((h=e.content)===null||h===void 0||(v=h.options)===null||v===void 0)&&v.extractors?e.content.options.extractors:{}})(),i={},s=(()=>{var o,a,u,l;if(!((o=e.purge)===null||o===void 0||(a=o.options)===null||a===void 0)&&a.defaultExtractor)return e.purge.options.defaultExtractor;if(!((u=e.content)===null||u===void 0||(l=u.options)===null||l===void 0)&&l.defaultExtractor)return e.content.options.defaultExtractor})();if(s!==void 0&&(i.DEFAULT=s),typeof r=="function")i.DEFAULT=r;else if(Array.isArray(r))for(let{extensions:o,extractor:a}of r!=null?r:[])for(let u of o)i[u]=a;else typeof r=="object"&&r!==null&&Object.assign(i,r);return i})(),transform:(()=>{let r=(()=>{var s,o,a,u,l,f;return!((s=e.purge)===null||s===void 0)&&s.transform?e.purge.transform:!((o=e.content)===null||o===void 0)&&o.transform?e.content.transform:!((a=e.purge)===null||a===void 0||(u=a.transform)===null||u===void 0)&&u.DEFAULT?e.purge.transform.DEFAULT:!((l=e.content)===null||l===void 0||(f=l.transform)===null||f===void 0)&&f.DEFAULT?e.content.transform.DEFAULT:{}})(),i={};return typeof r=="function"&&(i.DEFAULT=r),typeof r=="object"&&r!==null&&Object.assign(i,r),i})()};for(let r of e.content.files)if(typeof r=="string"&&/{([^,]*?)}/g.test(r)){Et.default.warn("invalid-glob-braces",[`The glob pattern ${(0,Et.dim)(r)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,Et.dim)(r.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return e}});var hs=R(Ln=>{"use strict";c();Object.defineProperty(Ln,"__esModule",{value:!0});Object.defineProperty(Ln,"default",{enumerable:!0,get:()=>Gl});function Gl(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}});var ms=R(Dn=>{"use strict";c();Object.defineProperty(Dn,"__esModule",{value:!0});Object.defineProperty(Dn,"cloneDeep",{enumerable:!0,get:()=>Cn});function Cn(e){return Array.isArray(e)?e.map(t=>Cn(t)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).map(([t,n])=>[t,Cn(n)])):e}});var Fn=R((Er,gs)=>{"use strict";c();Er.__esModule=!0;Er.default=jl;function Vl(e){for(var t=e.toLowerCase(),n="",r=!1,i=0;i<6&&t[i]!==void 0;i++){var s=t.charCodeAt(i),o=s>=97&&s<=102||s>=48&&s<=57;if(r=s===32,!o)break;n+=t[i]}if(n.length!==0){var a=parseInt(n,16),u=a>=55296&&a<=57343;return u||a===0||a>1114111?["\uFFFD",n.length+(r?1:0)]:[String.fromCodePoint(a),n.length+(r?1:0)]}}var Hl=/\\/;function jl(e){var t=Hl.test(e);if(!t)return e;for(var n="",r=0;r<e.length;r++){if(e[r]==="\\"){var i=Vl(e.slice(r+1,r+7));if(i!==void 0){n+=i[0],r+=i[1];continue}if(e[r+1]==="\\"){n+="\\",r++;continue}e.length===r+1&&(n+=e[r]);continue}n+=e[r]}return n}gs.exports=Er.default});var bs=R((Pr,vs)=>{"use strict";c();Pr.__esModule=!0;Pr.default=Yl;function Yl(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(;n.length>0;){var i=n.shift();if(!e[i])return;e=e[i]}return e}vs.exports=Pr.default});var xs=R((Ar,ys)=>{"use strict";c();Ar.__esModule=!0;Ar.default=Xl;function Xl(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(;n.length>0;){var i=n.shift();e[i]||(e[i]={}),e=e[i]}}ys.exports=Ar.default});var _s=R((Ir,ws)=>{"use strict";c();Ir.__esModule=!0;Ir.default=Ql;function Ql(e){for(var t="",n=e.indexOf("/*"),r=0;n>=0;){t=t+e.slice(r,n);var i=e.indexOf("*/",n+2);if(i<0)return t;r=i+2,n=e.indexOf("/*",r)}return t=t+e.slice(r),t}ws.exports=Ir.default});var Pt=R(Ae=>{"use strict";c();Ae.__esModule=!0;Ae.stripComments=Ae.ensureObject=Ae.getProp=Ae.unesc=void 0;var Kl=Rr(Fn());Ae.unesc=Kl.default;var Jl=Rr(bs());Ae.getProp=Jl.default;var Zl=Rr(xs());Ae.ensureObject=Zl.default;var ef=Rr(_s());Ae.stripComments=ef.default;function Rr(e){return e&&e.__esModule?e:{default:e}}});var Ne=R((At,Ts)=>{"use strict";c();At.__esModule=!0;At.default=void 0;var Ss=Pt();function ks(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tf(e,t,n){return t&&ks(e.prototype,t),n&&ks(e,n),e}var rf=function e(t,n){if(typeof t!="object"||t===null)return t;var r=new t.constructor;for(var i in t)if(!!t.hasOwnProperty(i)){var s=t[i],o=typeof s;i==="parent"&&o==="object"?n&&(r[i]=n):s instanceof Array?r[i]=s.map(function(a){return e(a,r)}):r[i]=e(s,r)}return r},nf=function(){function e(n){n===void 0&&(n={}),Object.assign(this,n),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var t=e.prototype;return t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){if(this.parent){for(var r in arguments)this.parent.insertBefore(this,arguments[r]);this.remove()}return this},t.next=function(){return this.parent.at(this.parent.index(this)+1)},t.prev=function(){return this.parent.at(this.parent.index(this)-1)},t.clone=function(r){r===void 0&&(r={});var i=rf(this);for(var s in r)i[s]=r[s];return i},t.appendToPropertyAndEscape=function(r,i,s){this.raws||(this.raws={});var o=this[r],a=this.raws[r];this[r]=o+i,a||s!==i?this.raws[r]=(a||o)+s:delete this.raws[r]},t.setPropertyAndEscape=function(r,i,s){this.raws||(this.raws={}),this[r]=i,this.raws[r]=s},t.setPropertyWithoutEscape=function(r,i){this[r]=i,this.raws&&delete this.raws[r]},t.isAtPosition=function(r,i){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>r||this.source.end.line<r||this.source.start.line===r&&this.source.start.column>i||this.source.end.line===r&&this.source.end.column<i)},t.stringifyProperty=function(r){return this.raws&&this.raws[r]||this[r]},t.valueToString=function(){return String(this.stringifyProperty("value"))},t.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},tf(e,[{key:"rawSpaceBefore",get:function(){var r=this.raws&&this.raws.spaces&&this.raws.spaces.before;return r===void 0&&(r=this.spaces&&this.spaces.before),r||""},set:function(r){(0,Ss.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=r}},{key:"rawSpaceAfter",get:function(){var r=this.raws&&this.raws.spaces&&this.raws.spaces.after;return r===void 0&&(r=this.spaces.after),r||""},set:function(r){(0,Ss.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=r}}]),e}();At.default=nf;Ts.exports=At.default});var ue=R(Y=>{"use strict";c();Y.__esModule=!0;Y.UNIVERSAL=Y.ATTRIBUTE=Y.CLASS=Y.COMBINATOR=Y.COMMENT=Y.ID=Y.NESTING=Y.PSEUDO=Y.ROOT=Y.SELECTOR=Y.STRING=Y.TAG=void 0;var of="tag";Y.TAG=of;var sf="string";Y.STRING=sf;var af="selector";Y.SELECTOR=af;var uf="root";Y.ROOT=uf;var lf="pseudo";Y.PSEUDO=lf;var ff="nesting";Y.NESTING=ff;var cf="id";Y.ID=cf;var df="comment";Y.COMMENT=df;var pf="combinator";Y.COMBINATOR=pf;var hf="class";Y.CLASS=hf;var mf="attribute";Y.ATTRIBUTE=mf;var gf="universal";Y.UNIVERSAL=gf});var Lr=R((It,As)=>{"use strict";c();It.__esModule=!0;It.default=void 0;var vf=yf(Ne()),$e=bf(ue());function Ps(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Ps=function(){return e},e}function bf(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Ps();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var s=r?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function yf(e){return e&&e.__esModule?e:{default:e}}function xf(e,t){var n;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=wf(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return n=e[Symbol.iterator](),n.next.bind(n)}function wf(e,t){if(!!e){if(typeof e=="string")return Os(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Os(e,t)}}function Os(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Es(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _f(e,t,n){return t&&Es(e.prototype,t),n&&Es(e,n),e}function Sf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Mn(e,t)}function Mn(e,t){return Mn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Mn(e,t)}var kf=function(e){Sf(t,e);function t(r){var i;return i=e.call(this,r)||this,i.nodes||(i.nodes=[]),i}var n=t.prototype;return n.append=function(i){return i.parent=this,this.nodes.push(i),this},n.prepend=function(i){return i.parent=this,this.nodes.unshift(i),this},n.at=function(i){return this.nodes[i]},n.index=function(i){return typeof i=="number"?i:this.nodes.indexOf(i)},n.removeChild=function(i){i=this.index(i),this.at(i).parent=void 0,this.nodes.splice(i,1);var s;for(var o in this.indexes)s=this.indexes[o],s>=i&&(this.indexes[o]=s-1);return this},n.removeAll=function(){for(var i=xf(this.nodes),s;!(s=i()).done;){var o=s.value;o.parent=void 0}return this.nodes=[],this},n.empty=function(){return this.removeAll()},n.insertAfter=function(i,s){s.parent=this;var o=this.index(i);this.nodes.splice(o+1,0,s),s.parent=this;var a;for(var u in this.indexes)a=this.indexes[u],o<=a&&(this.indexes[u]=a+1);return this},n.insertBefore=function(i,s){s.parent=this;var o=this.index(i);this.nodes.splice(o,0,s),s.parent=this;var a;for(var u in this.indexes)a=this.indexes[u],a<=o&&(this.indexes[u]=a+1);return this},n._findChildAtPosition=function(i,s){var o=void 0;return this.each(function(a){if(a.atPosition){var u=a.atPosition(i,s);if(u)return o=u,!1}else if(a.isAtPosition(i,s))return o=a,!1}),o},n.atPosition=function(i,s){if(this.isAtPosition(i,s))return this._findChildAtPosition(i,s)||this},n._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},n.each=function(i){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var s=this.lastEach;if(this.indexes[s]=0,!!this.length){for(var o,a;this.indexes[s]<this.length&&(o=this.indexes[s],a=i(this.at(o),o),a!==!1);)this.indexes[s]+=1;if(delete this.indexes[s],a===!1)return!1}},n.walk=function(i){return this.each(function(s,o){var a=i(s,o);if(a!==!1&&s.length&&(a=s.walk(i)),a===!1)return!1})},n.walkAttributes=function(i){var s=this;return this.walk(function(o){if(o.type===$e.ATTRIBUTE)return i.call(s,o)})},n.walkClasses=function(i){var s=this;return this.walk(function(o){if(o.type===$e.CLASS)return i.call(s,o)})},n.walkCombinators=function(i){var s=this;return this.walk(function(o){if(o.type===$e.COMBINATOR)return i.call(s,o)})},n.walkComments=function(i){var s=this;return this.walk(function(o){if(o.type===$e.COMMENT)return i.call(s,o)})},n.walkIds=function(i){var s=this;return this.walk(function(o){if(o.type===$e.ID)return i.call(s,o)})},n.walkNesting=function(i){var s=this;return this.walk(function(o){if(o.type===$e.NESTING)return i.call(s,o)})},n.walkPseudos=function(i){var s=this;return this.walk(function(o){if(o.type===$e.PSEUDO)return i.call(s,o)})},n.walkTags=function(i){var s=this;return this.walk(function(o){if(o.type===$e.TAG)return i.call(s,o)})},n.walkUniversals=function(i){var s=this;return this.walk(function(o){if(o.type===$e.UNIVERSAL)return i.call(s,o)})},n.split=function(i){var s=this,o=[];return this.reduce(function(a,u,l){var f=i.call(s,u);return o.push(u),f?(a.push(o),o=[]):l===s.length-1&&a.push(o),a},[])},n.map=function(i){return this.nodes.map(i)},n.reduce=function(i,s){return this.nodes.reduce(i,s)},n.every=function(i){return this.nodes.every(i)},n.some=function(i){return this.nodes.some(i)},n.filter=function(i){return this.nodes.filter(i)},n.sort=function(i){return this.nodes.sort(i)},n.toString=function(){return this.map(String).join("")},_f(t,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),t}(vf.default);It.default=kf;As.exports=It.default});var $n=R((Rt,Rs)=>{"use strict";c();Rt.__esModule=!0;Rt.default=void 0;var Tf=Ef(Lr()),Of=ue();function Ef(e){return e&&e.__esModule?e:{default:e}}function Is(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pf(e,t,n){return t&&Is(e.prototype,t),n&&Is(e,n),e}function Af(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Nn(e,t)}function Nn(e,t){return Nn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Nn(e,t)}var If=function(e){Af(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=Of.ROOT,i}var n=t.prototype;return n.toString=function(){var i=this.reduce(function(s,o){return s.push(String(o)),s},[]).join(",");return this.trailingComma?i+",":i},n.error=function(i,s){return this._error?this._error(i,s):new Error(i)},Pf(t,[{key:"errorGenerator",set:function(i){this._error=i}}]),t}(Tf.default);Rt.default=If;Rs.exports=Rt.default});var qn=R((Lt,Ls)=>{"use strict";c();Lt.__esModule=!0;Lt.default=void 0;var Rf=Cf(Lr()),Lf=ue();function Cf(e){return e&&e.__esModule?e:{default:e}}function Df(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Wn(e,t)}function Wn(e,t){return Wn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Wn(e,t)}var Ff=function(e){Df(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Lf.SELECTOR,r}return t}(Rf.default);Lt.default=Ff;Ls.exports=Lt.default});var Cr=R((_g,Cs)=>{"use strict";c();var Mf={},Nf=Mf.hasOwnProperty,$f=function(t,n){if(!t)return n;var r={};for(var i in n)r[i]=Nf.call(t,i)?t[i]:n[i];return r},Wf=/[ -,\.\/:-@\[-\^`\{-~]/,qf=/[ -,\.\/:-@\[\]\^`\{-~]/,Bf=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Bn=function e(t,n){n=$f(n,e.options),n.quotes!="single"&&n.quotes!="double"&&(n.quotes="single");for(var r=n.quotes=="double"?'"':"'",i=n.isIdentifier,s=t.charAt(0),o="",a=0,u=t.length;a<u;){var l=t.charAt(a++),f=l.charCodeAt(),d=void 0;if(f<32||f>126){if(f>=55296&&f<=56319&&a<u){var g=t.charCodeAt(a++);(g&64512)==56320?f=((f&1023)<<10)+(g&1023)+65536:a--}d="\\"+f.toString(16).toUpperCase()+" "}else n.escapeEverything?Wf.test(l)?d="\\"+l:d="\\"+f.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?d="\\"+f.toString(16).toUpperCase()+" ":l=="\\"||!i&&(l=='"'&&r==l||l=="'"&&r==l)||i&&qf.test(l)?d="\\"+l:d=l;o+=d}return i&&(/^-[-\d]/.test(o)?o="\\-"+o.slice(1):/\d/.test(s)&&(o="\\3"+s+" "+o.slice(1))),o=o.replace(Bf,function(p,h,v){return h&&h.length%2?p:(h||"")+v}),!i&&n.wrap?r+o+r:o};Bn.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};Bn.version="3.0.0";Cs.exports=Bn});var zn=R((Ct,Ms)=>{"use strict";c();Ct.__esModule=!0;Ct.default=void 0;var Uf=Fs(Cr()),zf=Pt(),Gf=Fs(Ne()),Vf=ue();function Fs(e){return e&&e.__esModule?e:{default:e}}function Ds(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Hf(e,t,n){return t&&Ds(e.prototype,t),n&&Ds(e,n),e}function jf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Un(e,t)}function Un(e,t){return Un=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Un(e,t)}var Yf=function(e){jf(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=Vf.CLASS,i._constructed=!0,i}var n=t.prototype;return n.valueToString=function(){return"."+e.prototype.valueToString.call(this)},Hf(t,[{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var s=(0,Uf.default)(i,{isIdentifier:!0});s!==i?((0,zf.ensureObject)(this,"raws"),this.raws.value=s):this.raws&&delete this.raws.value}this._value=i}}]),t}(Gf.default);Ct.default=Yf;Ms.exports=Ct.default});var Vn=R((Dt,Ns)=>{"use strict";c();Dt.__esModule=!0;Dt.default=void 0;var Xf=Kf(Ne()),Qf=ue();function Kf(e){return e&&e.__esModule?e:{default:e}}function Jf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Gn(e,t)}function Gn(e,t){return Gn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Gn(e,t)}var Zf=function(e){Jf(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Qf.COMMENT,r}return t}(Xf.default);Dt.default=Zf;Ns.exports=Dt.default});var jn=R((Ft,$s)=>{"use strict";c();Ft.__esModule=!0;Ft.default=void 0;var ec=rc(Ne()),tc=ue();function rc(e){return e&&e.__esModule?e:{default:e}}function nc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Hn(e,t)}function Hn(e,t){return Hn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Hn(e,t)}var ic=function(e){nc(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=tc.ID,i}var n=t.prototype;return n.valueToString=function(){return"#"+e.prototype.valueToString.call(this)},t}(ec.default);Ft.default=ic;$s.exports=Ft.default});var Dr=R((Mt,Bs)=>{"use strict";c();Mt.__esModule=!0;Mt.default=void 0;var oc=qs(Cr()),sc=Pt(),ac=qs(Ne());function qs(e){return e&&e.__esModule?e:{default:e}}function Ws(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function uc(e,t,n){return t&&Ws(e.prototype,t),n&&Ws(e,n),e}function lc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Yn(e,t)}function Yn(e,t){return Yn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Yn(e,t)}var fc=function(e){lc(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.qualifiedName=function(i){return this.namespace?this.namespaceString+"|"+i:i},n.valueToString=function(){return this.qualifiedName(e.prototype.valueToString.call(this))},uc(t,[{key:"namespace",get:function(){return this._namespace},set:function(i){if(i===!0||i==="*"||i==="&"){this._namespace=i,this.raws&&delete this.raws.namespace;return}var s=(0,oc.default)(i,{isIdentifier:!0});this._namespace=i,s!==i?((0,sc.ensureObject)(this,"raws"),this.raws.namespace=s):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(i){this.namespace=i}},{key:"namespaceString",get:function(){if(this.namespace){var i=this.stringifyProperty("namespace");return i===!0?"":i}else return""}}]),t}(ac.default);Mt.default=fc;Bs.exports=Mt.default});var Qn=R((Nt,Us)=>{"use strict";c();Nt.__esModule=!0;Nt.default=void 0;var cc=pc(Dr()),dc=ue();function pc(e){return e&&e.__esModule?e:{default:e}}function hc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xn(e,t)}function Xn(e,t){return Xn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Xn(e,t)}var mc=function(e){hc(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=dc.TAG,r}return t}(cc.default);Nt.default=mc;Us.exports=Nt.default});var Jn=R(($t,zs)=>{"use strict";c();$t.__esModule=!0;$t.default=void 0;var gc=bc(Ne()),vc=ue();function bc(e){return e&&e.__esModule?e:{default:e}}function yc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Kn(e,t)}function Kn(e,t){return Kn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Kn(e,t)}var xc=function(e){yc(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=vc.STRING,r}return t}(gc.default);$t.default=xc;zs.exports=$t.default});var ei=R((Wt,Gs)=>{"use strict";c();Wt.__esModule=!0;Wt.default=void 0;var wc=Sc(Lr()),_c=ue();function Sc(e){return e&&e.__esModule?e:{default:e}}function kc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zn(e,t)}function Zn(e,t){return Zn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Zn(e,t)}var Tc=function(e){kc(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=_c.PSEUDO,i}var n=t.prototype;return n.toString=function(){var i=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),i,this.rawSpaceAfter].join("")},t}(wc.default);Wt.default=Tc;Gs.exports=Wt.default});var Hs=R((Sg,Vs)=>{c();Vs.exports=function(t,n){return function(...r){return console.warn(n),t(...r)}}});var si=R(Ut=>{"use strict";c();Ut.__esModule=!0;Ut.unescapeValue=oi;Ut.default=void 0;var qt=ii(Cr()),Oc=ii(Fn()),Ec=ii(Dr()),Pc=ue(),ti;function ii(e){return e&&e.__esModule?e:{default:e}}function js(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ac(e,t,n){return t&&js(e.prototype,t),n&&js(e,n),e}function Ic(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ni(e,t)}function ni(e,t){return ni=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ni(e,t)}var Bt=Hs(),Rc=/^('|")([^]*)\1$/,Lc=Bt(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),Cc=Bt(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),Dc=Bt(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function oi(e){var t=!1,n=null,r=e,i=r.match(Rc);return i&&(n=i[1],r=i[2]),r=(0,Oc.default)(r),r!==e&&(t=!0),{deprecatedUsage:t,unescaped:r,quoteMark:n}}function Fc(e){if(e.quoteMark!==void 0||e.value===void 0)return e;Dc();var t=oi(e.value),n=t.quoteMark,r=t.unescaped;return e.raws||(e.raws={}),e.raws.value===void 0&&(e.raws.value=e.value),e.value=r,e.quoteMark=n,e}var Fr=function(e){Ic(t,e);function t(r){var i;return r===void 0&&(r={}),i=e.call(this,Fc(r))||this,i.type=Pc.ATTRIBUTE,i.raws=i.raws||{},Object.defineProperty(i.raws,"unquoted",{get:Bt(function(){return i.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:Bt(function(){return i.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),i._constructed=!0,i}var n=t.prototype;return n.getQuotedValue=function(i){i===void 0&&(i={});var s=this._determineQuoteMark(i),o=ri[s],a=(0,qt.default)(this._value,o);return a},n._determineQuoteMark=function(i){return i.smart?this.smartQuoteMark(i):this.preferredQuoteMark(i)},n.setValue=function(i,s){s===void 0&&(s={}),this._value=i,this._quoteMark=this._determineQuoteMark(s),this._syncRawValue()},n.smartQuoteMark=function(i){var s=this.value,o=s.replace(/[^']/g,"").length,a=s.replace(/[^"]/g,"").length;if(o+a===0){var u=(0,qt.default)(s,{isIdentifier:!0});if(u===s)return t.NO_QUOTE;var l=this.preferredQuoteMark(i);if(l===t.NO_QUOTE){var f=this.quoteMark||i.quoteMark||t.DOUBLE_QUOTE,d=ri[f],g=(0,qt.default)(s,d);if(g.length<u.length)return f}return l}else return a===o?this.preferredQuoteMark(i):a<o?t.DOUBLE_QUOTE:t.SINGLE_QUOTE},n.preferredQuoteMark=function(i){var s=i.preferCurrentQuoteMark?this.quoteMark:i.quoteMark;return s===void 0&&(s=i.preferCurrentQuoteMark?i.quoteMark:this.quoteMark),s===void 0&&(s=t.DOUBLE_QUOTE),s},n._syncRawValue=function(){var i=(0,qt.default)(this._value,ri[this.quoteMark]);i===this._value?this.raws&&delete this.raws.value:this.raws.value=i},n._handleEscapes=function(i,s){if(this._constructed){var o=(0,qt.default)(s,{isIdentifier:!0});o!==s?this.raws[i]=o:delete this.raws[i]}},n._spacesFor=function(i){var s={before:"",after:""},o=this.spaces[i]||{},a=this.raws.spaces&&this.raws.spaces[i]||{};return Object.assign(s,o,a)},n._stringFor=function(i,s,o){s===void 0&&(s=i),o===void 0&&(o=Ys);var a=this._spacesFor(s);return o(this.stringifyProperty(i),a)},n.offsetOf=function(i){var s=1,o=this._spacesFor("attribute");if(s+=o.before.length,i==="namespace"||i==="ns")return this.namespace?s:-1;if(i==="attributeNS"||(s+=this.namespaceString.length,this.namespace&&(s+=1),i==="attribute"))return s;s+=this.stringifyProperty("attribute").length,s+=o.after.length;var a=this._spacesFor("operator");s+=a.before.length;var u=this.stringifyProperty("operator");if(i==="operator")return u?s:-1;s+=u.length,s+=a.after.length;var l=this._spacesFor("value");s+=l.before.length;var f=this.stringifyProperty("value");if(i==="value")return f?s:-1;s+=f.length,s+=l.after.length;var d=this._spacesFor("insensitive");return s+=d.before.length,i==="insensitive"&&this.insensitive?s:-1},n.toString=function(){var i=this,s=[this.rawSpaceBefore,"["];return s.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(s.push(this._stringFor("operator")),s.push(this._stringFor("value")),s.push(this._stringFor("insensitiveFlag","insensitive",function(o,a){return o.length>0&&!i.quoted&&a.before.length===0&&!(i.spaces.value&&i.spaces.value.after)&&(a.before=" "),Ys(o,a)}))),s.push("]"),s.push(this.rawSpaceAfter),s.join("")},Ac(t,[{key:"quoted",get:function(){var i=this.quoteMark;return i==="'"||i==='"'},set:function(i){Cc()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(i){if(!this._constructed){this._quoteMark=i;return}this._quoteMark!==i&&(this._quoteMark=i,this._syncRawValue())}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var s=oi(i),o=s.deprecatedUsage,a=s.unescaped,u=s.quoteMark;if(o&&Lc(),a===this._value&&u===this._quoteMark)return;this._value=a,this._quoteMark=u,this._syncRawValue()}else this._value=i}},{key:"attribute",get:function(){return this._attribute},set:function(i){this._handleEscapes("attribute",i),this._attribute=i}}]),t}(Ec.default);Ut.default=Fr;Fr.NO_QUOTE=null;Fr.SINGLE_QUOTE="'";Fr.DOUBLE_QUOTE='"';var ri=(ti={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},ti[null]={isIdentifier:!0},ti);function Ys(e,t){return""+t.before+e+t.after}});var ui=R((zt,Xs)=>{"use strict";c();zt.__esModule=!0;zt.default=void 0;var Mc=$c(Dr()),Nc=ue();function $c(e){return e&&e.__esModule?e:{default:e}}function Wc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ai(e,t)}function ai(e,t){return ai=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ai(e,t)}var qc=function(e){Wc(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Nc.UNIVERSAL,r.value="*",r}return t}(Mc.default);zt.default=qc;Xs.exports=zt.default});var fi=R((Gt,Qs)=>{"use strict";c();Gt.__esModule=!0;Gt.default=void 0;var Bc=zc(Ne()),Uc=ue();function zc(e){return e&&e.__esModule?e:{default:e}}function Gc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,li(e,t)}function li(e,t){return li=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},li(e,t)}var Vc=function(e){Gc(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Uc.COMBINATOR,r}return t}(Bc.default);Gt.default=Vc;Qs.exports=Gt.default});var di=R((Vt,Ks)=>{"use strict";c();Vt.__esModule=!0;Vt.default=void 0;var Hc=Yc(Ne()),jc=ue();function Yc(e){return e&&e.__esModule?e:{default:e}}function Xc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ci(e,t)}function ci(e,t){return ci=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ci(e,t)}var Qc=function(e){Xc(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=jc.NESTING,r.value="&",r}return t}(Hc.default);Vt.default=Qc;Ks.exports=Vt.default});var Zs=R((Mr,Js)=>{"use strict";c();Mr.__esModule=!0;Mr.default=Kc;function Kc(e){return e.sort(function(t,n){return t-n})}Js.exports=Mr.default});var pi=R(P=>{"use strict";c();P.__esModule=!0;P.combinator=P.word=P.comment=P.str=P.tab=P.newline=P.feed=P.cr=P.backslash=P.bang=P.slash=P.doubleQuote=P.singleQuote=P.space=P.greaterThan=P.pipe=P.equals=P.plus=P.caret=P.tilde=P.dollar=P.closeSquare=P.openSquare=P.closeParenthesis=P.openParenthesis=P.semicolon=P.colon=P.comma=P.at=P.asterisk=P.ampersand=void 0;var Jc=38;P.ampersand=Jc;var Zc=42;P.asterisk=Zc;var ed=64;P.at=ed;var td=44;P.comma=td;var rd=58;P.colon=rd;var nd=59;P.semicolon=nd;var id=40;P.openParenthesis=id;var od=41;P.closeParenthesis=od;var sd=91;P.openSquare=sd;var ad=93;P.closeSquare=ad;var ud=36;P.dollar=ud;var ld=126;P.tilde=ld;var fd=94;P.caret=fd;var cd=43;P.plus=cd;var dd=61;P.equals=dd;var pd=124;P.pipe=pd;var hd=62;P.greaterThan=hd;var md=32;P.space=md;var ea=39;P.singleQuote=ea;var gd=34;P.doubleQuote=gd;var vd=47;P.slash=vd;var bd=33;P.bang=bd;var yd=92;P.backslash=yd;var xd=13;P.cr=xd;var wd=12;P.feed=wd;var _d=10;P.newline=_d;var Sd=9;P.tab=Sd;var kd=ea;P.str=kd;var Td=-1;P.comment=Td;var Od=-2;P.word=Od;var Ed=-3;P.combinator=Ed});var na=R(Ht=>{"use strict";c();Ht.__esModule=!0;Ht.default=Dd;Ht.FIELDS=void 0;var T=Pd(pi()),ot,j;function ra(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return ra=function(){return e},e}function Pd(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=ra();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var s=r?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}var Ad=(ot={},ot[T.tab]=!0,ot[T.newline]=!0,ot[T.cr]=!0,ot[T.feed]=!0,ot),Id=(j={},j[T.space]=!0,j[T.tab]=!0,j[T.newline]=!0,j[T.cr]=!0,j[T.feed]=!0,j[T.ampersand]=!0,j[T.asterisk]=!0,j[T.bang]=!0,j[T.comma]=!0,j[T.colon]=!0,j[T.semicolon]=!0,j[T.openParenthesis]=!0,j[T.closeParenthesis]=!0,j[T.openSquare]=!0,j[T.closeSquare]=!0,j[T.singleQuote]=!0,j[T.doubleQuote]=!0,j[T.plus]=!0,j[T.pipe]=!0,j[T.tilde]=!0,j[T.greaterThan]=!0,j[T.equals]=!0,j[T.dollar]=!0,j[T.caret]=!0,j[T.slash]=!0,j),hi={},ta="0123456789abcdefABCDEF";for(Nr=0;Nr<ta.length;Nr++)hi[ta.charCodeAt(Nr)]=!0;var Nr;function Rd(e,t){var n=t,r;do{if(r=e.charCodeAt(n),Id[r])return n-1;r===T.backslash?n=Ld(e,n)+1:n++}while(n<e.length);return n-1}function Ld(e,t){var n=t,r=e.charCodeAt(n+1);if(!Ad[r])if(hi[r]){var i=0;do n++,i++,r=e.charCodeAt(n+1);while(hi[r]&&i<6);i<6&&r===T.space&&n++}else n++;return n}var Cd={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};Ht.FIELDS=Cd;function Dd(e){var t=[],n=e.css.valueOf(),r=n,i=r.length,s=-1,o=1,a=0,u=0,l,f,d,g,p,h,v,w,b,y,_,O,k;function C(D,L){if(e.safe)n+=L,b=n.length-1;else throw e.error("Unclosed "+D,o,a-s,a)}for(;a<i;){switch(l=n.charCodeAt(a),l===T.newline&&(s=a,o+=1),l){case T.space:case T.tab:case T.newline:case T.cr:case T.feed:b=a;do b+=1,l=n.charCodeAt(b),l===T.newline&&(s=b,o+=1);while(l===T.space||l===T.newline||l===T.tab||l===T.cr||l===T.feed);k=T.space,g=o,d=b-s-1,u=b;break;case T.plus:case T.greaterThan:case T.tilde:case T.pipe:b=a;do b+=1,l=n.charCodeAt(b);while(l===T.plus||l===T.greaterThan||l===T.tilde||l===T.pipe);k=T.combinator,g=o,d=a-s,u=b;break;case T.asterisk:case T.ampersand:case T.bang:case T.comma:case T.equals:case T.dollar:case T.caret:case T.openSquare:case T.closeSquare:case T.colon:case T.semicolon:case T.openParenthesis:case T.closeParenthesis:b=a,k=l,g=o,d=a-s,u=b+1;break;case T.singleQuote:case T.doubleQuote:O=l===T.singleQuote?"'":'"',b=a;do for(p=!1,b=n.indexOf(O,b+1),b===-1&&C("quote",O),h=b;n.charCodeAt(h-1)===T.backslash;)h-=1,p=!p;while(p);k=T.str,g=o,d=a-s,u=b+1;break;default:l===T.slash&&n.charCodeAt(a+1)===T.asterisk?(b=n.indexOf("*/",a+2)+1,b===0&&C("comment","*/"),f=n.slice(a,b+1),w=f.split(`
|
|
3
|
+
`),v=w.length-1,v>0?(y=o+v,_=b-w[v].length):(y=o,_=s),k=T.comment,o=y,g=y,d=b-_):l===T.slash?(b=a,k=l,g=o,d=a-s,u=b+1):(b=Rd(n,a),k=T.word,g=o,d=b-s),u=b+1;break}t.push([k,o,a-s,g,d,a,u]),_&&(s=_,_=null),a=u}return t}});var ca=R((jt,fa)=>{"use strict";c();jt.__esModule=!0;jt.default=void 0;var Fd=xe($n()),mi=xe(qn()),Md=xe(zn()),ia=xe(Vn()),Nd=xe(jn()),$d=xe(Qn()),gi=xe(Jn()),Wd=xe(ei()),oa=$r(si()),qd=xe(ui()),vi=xe(fi()),Bd=xe(di()),Ud=xe(Zs()),S=$r(na()),E=$r(pi()),zd=$r(ue()),Z=Pt(),Qe,bi;function la(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return la=function(){return e},e}function $r(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=la();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var s=r?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function xe(e){return e&&e.__esModule?e:{default:e}}function sa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gd(e,t,n){return t&&sa(e.prototype,t),n&&sa(e,n),e}var wi=(Qe={},Qe[E.space]=!0,Qe[E.cr]=!0,Qe[E.feed]=!0,Qe[E.newline]=!0,Qe[E.tab]=!0,Qe),Vd=Object.assign({},wi,(bi={},bi[E.comment]=!0,bi));function aa(e){return{line:e[S.FIELDS.START_LINE],column:e[S.FIELDS.START_COL]}}function ua(e){return{line:e[S.FIELDS.END_LINE],column:e[S.FIELDS.END_COL]}}function Ke(e,t,n,r){return{start:{line:e,column:t},end:{line:n,column:r}}}function st(e){return Ke(e[S.FIELDS.START_LINE],e[S.FIELDS.START_COL],e[S.FIELDS.END_LINE],e[S.FIELDS.END_COL])}function yi(e,t){if(!!e)return Ke(e[S.FIELDS.START_LINE],e[S.FIELDS.START_COL],t[S.FIELDS.END_LINE],t[S.FIELDS.END_COL])}function at(e,t){var n=e[t];if(typeof n=="string")return n.indexOf("\\")!==-1&&((0,Z.ensureObject)(e,"raws"),e[t]=(0,Z.unesc)(n),e.raws[t]===void 0&&(e.raws[t]=n)),e}function xi(e,t){for(var n=-1,r=[];(n=e.indexOf(t,n+1))!==-1;)r.push(n);return r}function Hd(){var e=Array.prototype.concat.apply([],arguments);return e.filter(function(t,n){return n===e.indexOf(t)})}var jd=function(){function e(n,r){r===void 0&&(r={}),this.rule=n,this.options=Object.assign({lossy:!1,safe:!1},r),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,S.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var i=yi(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new Fd.default({source:i}),this.root.errorGenerator=this._errorGenerator();var s=new mi.default({source:{start:{line:1,column:1}}});this.root.append(s),this.current=s,this.loop()}var t=e.prototype;return t._errorGenerator=function(){var r=this;return function(i,s){return typeof r.rule=="string"?new Error(i):r.rule.error(i,s)}},t.attribute=function(){var r=[],i=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[S.FIELDS.TYPE]!==E.closeSquare;)r.push(this.currToken),this.position++;if(this.currToken[S.FIELDS.TYPE]!==E.closeSquare)return this.expected("closing square bracket",this.currToken[S.FIELDS.START_POS]);var s=r.length,o={source:Ke(i[1],i[2],this.currToken[3],this.currToken[4]),sourceIndex:i[S.FIELDS.START_POS]};if(s===1&&!~[E.word].indexOf(r[0][S.FIELDS.TYPE]))return this.expected("attribute",r[0][S.FIELDS.START_POS]);for(var a=0,u="",l="",f=null,d=!1;a<s;){var g=r[a],p=this.content(g),h=r[a+1];switch(g[S.FIELDS.TYPE]){case E.space:if(d=!0,this.options.lossy)break;if(f){(0,Z.ensureObject)(o,"spaces",f);var v=o.spaces[f].after||"";o.spaces[f].after=v+p;var w=(0,Z.getProp)(o,"raws","spaces",f,"after")||null;w&&(o.raws.spaces[f].after=w+p)}else u=u+p,l=l+p;break;case E.asterisk:if(h[S.FIELDS.TYPE]===E.equals)o.operator=p,f="operator";else if((!o.namespace||f==="namespace"&&!d)&&h){u&&((0,Z.ensureObject)(o,"spaces","attribute"),o.spaces.attribute.before=u,u=""),l&&((0,Z.ensureObject)(o,"raws","spaces","attribute"),o.raws.spaces.attribute.before=u,l=""),o.namespace=(o.namespace||"")+p;var b=(0,Z.getProp)(o,"raws","namespace")||null;b&&(o.raws.namespace+=p),f="namespace"}d=!1;break;case E.dollar:if(f==="value"){var y=(0,Z.getProp)(o,"raws","value");o.value+="$",y&&(o.raws.value=y+"$");break}case E.caret:h[S.FIELDS.TYPE]===E.equals&&(o.operator=p,f="operator"),d=!1;break;case E.combinator:if(p==="~"&&h[S.FIELDS.TYPE]===E.equals&&(o.operator=p,f="operator"),p!=="|"){d=!1;break}h[S.FIELDS.TYPE]===E.equals?(o.operator=p,f="operator"):!o.namespace&&!o.attribute&&(o.namespace=!0),d=!1;break;case E.word:if(h&&this.content(h)==="|"&&r[a+2]&&r[a+2][S.FIELDS.TYPE]!==E.equals&&!o.operator&&!o.namespace)o.namespace=p,f="namespace";else if(!o.attribute||f==="attribute"&&!d){u&&((0,Z.ensureObject)(o,"spaces","attribute"),o.spaces.attribute.before=u,u=""),l&&((0,Z.ensureObject)(o,"raws","spaces","attribute"),o.raws.spaces.attribute.before=l,l=""),o.attribute=(o.attribute||"")+p;var _=(0,Z.getProp)(o,"raws","attribute")||null;_&&(o.raws.attribute+=p),f="attribute"}else if(!o.value&&o.value!==""||f==="value"&&!d){var O=(0,Z.unesc)(p),k=(0,Z.getProp)(o,"raws","value")||"",C=o.value||"";o.value=C+O,o.quoteMark=null,(O!==p||k)&&((0,Z.ensureObject)(o,"raws"),o.raws.value=(k||C)+p),f="value"}else{var D=p==="i"||p==="I";(o.value||o.value==="")&&(o.quoteMark||d)?(o.insensitive=D,(!D||p==="I")&&((0,Z.ensureObject)(o,"raws"),o.raws.insensitiveFlag=p),f="insensitive",u&&((0,Z.ensureObject)(o,"spaces","insensitive"),o.spaces.insensitive.before=u,u=""),l&&((0,Z.ensureObject)(o,"raws","spaces","insensitive"),o.raws.spaces.insensitive.before=l,l="")):(o.value||o.value==="")&&(f="value",o.value+=p,o.raws.value&&(o.raws.value+=p))}d=!1;break;case E.str:if(!o.attribute||!o.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:g[S.FIELDS.START_POS]});var L=(0,oa.unescapeValue)(p),F=L.unescaped,G=L.quoteMark;o.value=F,o.quoteMark=G,f="value",(0,Z.ensureObject)(o,"raws"),o.raws.value=p,d=!1;break;case E.equals:if(!o.attribute)return this.expected("attribute",g[S.FIELDS.START_POS],p);if(o.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:g[S.FIELDS.START_POS]});o.operator=o.operator?o.operator+p:p,f="operator",d=!1;break;case E.comment:if(f)if(d||h&&h[S.FIELDS.TYPE]===E.space||f==="insensitive"){var B=(0,Z.getProp)(o,"spaces",f,"after")||"",W=(0,Z.getProp)(o,"raws","spaces",f,"after")||B;(0,Z.ensureObject)(o,"raws","spaces",f),o.raws.spaces[f].after=W+p}else{var $=o[f]||"",te=(0,Z.getProp)(o,"raws",f)||$;(0,Z.ensureObject)(o,"raws"),o.raws[f]=te+p}else l=l+p;break;default:return this.error('Unexpected "'+p+'" found.',{index:g[S.FIELDS.START_POS]})}a++}at(o,"attribute"),at(o,"namespace"),this.newNode(new oa.default(o)),this.position++},t.parseWhitespaceEquivalentTokens=function(r){r<0&&(r=this.tokens.length);var i=this.position,s=[],o="",a=void 0;do if(wi[this.currToken[S.FIELDS.TYPE]])this.options.lossy||(o+=this.content());else if(this.currToken[S.FIELDS.TYPE]===E.comment){var u={};o&&(u.before=o,o=""),a=new ia.default({value:this.content(),source:st(this.currToken),sourceIndex:this.currToken[S.FIELDS.START_POS],spaces:u}),s.push(a)}while(++this.position<r);if(o){if(a)a.spaces.after=o;else if(!this.options.lossy){var l=this.tokens[i],f=this.tokens[this.position-1];s.push(new gi.default({value:"",source:Ke(l[S.FIELDS.START_LINE],l[S.FIELDS.START_COL],f[S.FIELDS.END_LINE],f[S.FIELDS.END_COL]),sourceIndex:l[S.FIELDS.START_POS],spaces:{before:o,after:""}}))}}return s},t.convertWhitespaceNodesToSpace=function(r,i){var s=this;i===void 0&&(i=!1);var o="",a="";r.forEach(function(l){var f=s.lossySpace(l.spaces.before,i),d=s.lossySpace(l.rawSpaceBefore,i);o+=f+s.lossySpace(l.spaces.after,i&&f.length===0),a+=f+l.value+s.lossySpace(l.rawSpaceAfter,i&&d.length===0)}),a===o&&(a=void 0);var u={space:o,rawSpace:a};return u},t.isNamedCombinator=function(r){return r===void 0&&(r=this.position),this.tokens[r+0]&&this.tokens[r+0][S.FIELDS.TYPE]===E.slash&&this.tokens[r+1]&&this.tokens[r+1][S.FIELDS.TYPE]===E.word&&this.tokens[r+2]&&this.tokens[r+2][S.FIELDS.TYPE]===E.slash},t.namedCombinator=function(){if(this.isNamedCombinator()){var r=this.content(this.tokens[this.position+1]),i=(0,Z.unesc)(r).toLowerCase(),s={};i!==r&&(s.value="/"+r+"/");var o=new vi.default({value:"/"+i+"/",source:Ke(this.currToken[S.FIELDS.START_LINE],this.currToken[S.FIELDS.START_COL],this.tokens[this.position+2][S.FIELDS.END_LINE],this.tokens[this.position+2][S.FIELDS.END_COL]),sourceIndex:this.currToken[S.FIELDS.START_POS],raws:s});return this.position=this.position+3,o}else this.unexpected()},t.combinator=function(){var r=this;if(this.content()==="|")return this.namespace();var i=this.locateNextMeaningfulToken(this.position);if(i<0||this.tokens[i][S.FIELDS.TYPE]===E.comma){var s=this.parseWhitespaceEquivalentTokens(i);if(s.length>0){var o=this.current.last;if(o){var a=this.convertWhitespaceNodesToSpace(s),u=a.space,l=a.rawSpace;l!==void 0&&(o.rawSpaceAfter+=l),o.spaces.after+=u}else s.forEach(function(k){return r.newNode(k)})}return}var f=this.currToken,d=void 0;i>this.position&&(d=this.parseWhitespaceEquivalentTokens(i));var g;if(this.isNamedCombinator()?g=this.namedCombinator():this.currToken[S.FIELDS.TYPE]===E.combinator?(g=new vi.default({value:this.content(),source:st(this.currToken),sourceIndex:this.currToken[S.FIELDS.START_POS]}),this.position++):wi[this.currToken[S.FIELDS.TYPE]]||d||this.unexpected(),g){if(d){var p=this.convertWhitespaceNodesToSpace(d),h=p.space,v=p.rawSpace;g.spaces.before=h,g.rawSpaceBefore=v}}else{var w=this.convertWhitespaceNodesToSpace(d,!0),b=w.space,y=w.rawSpace;y||(y=b);var _={},O={spaces:{}};b.endsWith(" ")&&y.endsWith(" ")?(_.before=b.slice(0,b.length-1),O.spaces.before=y.slice(0,y.length-1)):b.startsWith(" ")&&y.startsWith(" ")?(_.after=b.slice(1),O.spaces.after=y.slice(1)):O.value=y,g=new vi.default({value:" ",source:yi(f,this.tokens[this.position-1]),sourceIndex:f[S.FIELDS.START_POS],spaces:_,raws:O})}return this.currToken&&this.currToken[S.FIELDS.TYPE]===E.space&&(g.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(g)},t.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var r=new mi.default({source:{start:aa(this.tokens[this.position+1])}});this.current.parent.append(r),this.current=r,this.position++},t.comment=function(){var r=this.currToken;this.newNode(new ia.default({value:this.content(),source:st(r),sourceIndex:r[S.FIELDS.START_POS]})),this.position++},t.error=function(r,i){throw this.root.error(r,i)},t.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[S.FIELDS.START_POS]})},t.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[S.FIELDS.START_POS])},t.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[S.FIELDS.START_POS])},t.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[S.FIELDS.START_POS])},t.namespace=function(){var r=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[S.FIELDS.TYPE]===E.word)return this.position++,this.word(r);if(this.nextToken[S.FIELDS.TYPE]===E.asterisk)return this.position++,this.universal(r)},t.nesting=function(){if(this.nextToken){var r=this.content(this.nextToken);if(r==="|"){this.position++;return}}var i=this.currToken;this.newNode(new Bd.default({value:this.content(),source:st(i),sourceIndex:i[S.FIELDS.START_POS]})),this.position++},t.parentheses=function(){var r=this.current.last,i=1;if(this.position++,r&&r.type===zd.PSEUDO){var s=new mi.default({source:{start:aa(this.tokens[this.position-1])}}),o=this.current;for(r.append(s),this.current=s;this.position<this.tokens.length&&i;)this.currToken[S.FIELDS.TYPE]===E.openParenthesis&&i++,this.currToken[S.FIELDS.TYPE]===E.closeParenthesis&&i--,i?this.parse():(this.current.source.end=ua(this.currToken),this.current.parent.source.end=ua(this.currToken),this.position++);this.current=o}else{for(var a=this.currToken,u="(",l;this.position<this.tokens.length&&i;)this.currToken[S.FIELDS.TYPE]===E.openParenthesis&&i++,this.currToken[S.FIELDS.TYPE]===E.closeParenthesis&&i--,l=this.currToken,u+=this.parseParenthesisToken(this.currToken),this.position++;r?r.appendToPropertyAndEscape("value",u,u):this.newNode(new gi.default({value:u,source:Ke(a[S.FIELDS.START_LINE],a[S.FIELDS.START_COL],l[S.FIELDS.END_LINE],l[S.FIELDS.END_COL]),sourceIndex:a[S.FIELDS.START_POS]}))}if(i)return this.expected("closing parenthesis",this.currToken[S.FIELDS.START_POS])},t.pseudo=function(){for(var r=this,i="",s=this.currToken;this.currToken&&this.currToken[S.FIELDS.TYPE]===E.colon;)i+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[S.FIELDS.TYPE]===E.word)this.splitWord(!1,function(o,a){i+=o,r.newNode(new Wd.default({value:i,source:yi(s,r.currToken),sourceIndex:s[S.FIELDS.START_POS]})),a>1&&r.nextToken&&r.nextToken[S.FIELDS.TYPE]===E.openParenthesis&&r.error("Misplaced parenthesis.",{index:r.nextToken[S.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[S.FIELDS.START_POS])},t.space=function(){var r=this.content();this.position===0||this.prevToken[S.FIELDS.TYPE]===E.comma||this.prevToken[S.FIELDS.TYPE]===E.openParenthesis||this.current.nodes.every(function(i){return i.type==="comment"})?(this.spaces=this.optionalSpace(r),this.position++):this.position===this.tokens.length-1||this.nextToken[S.FIELDS.TYPE]===E.comma||this.nextToken[S.FIELDS.TYPE]===E.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(r),this.position++):this.combinator()},t.string=function(){var r=this.currToken;this.newNode(new gi.default({value:this.content(),source:st(r),sourceIndex:r[S.FIELDS.START_POS]})),this.position++},t.universal=function(r){var i=this.nextToken;if(i&&this.content(i)==="|")return this.position++,this.namespace();var s=this.currToken;this.newNode(new qd.default({value:this.content(),source:st(s),sourceIndex:s[S.FIELDS.START_POS]}),r),this.position++},t.splitWord=function(r,i){for(var s=this,o=this.nextToken,a=this.content();o&&~[E.dollar,E.caret,E.equals,E.word].indexOf(o[S.FIELDS.TYPE]);){this.position++;var u=this.content();if(a+=u,u.lastIndexOf("\\")===u.length-1){var l=this.nextToken;l&&l[S.FIELDS.TYPE]===E.space&&(a+=this.requiredSpace(this.content(l)),this.position++)}o=this.nextToken}var f=xi(a,".").filter(function(h){var v=a[h-1]==="\\",w=/^\d+\.\d+%$/.test(a);return!v&&!w}),d=xi(a,"#").filter(function(h){return a[h-1]!=="\\"}),g=xi(a,"#{");g.length&&(d=d.filter(function(h){return!~g.indexOf(h)}));var p=(0,Ud.default)(Hd([0].concat(f,d)));p.forEach(function(h,v){var w=p[v+1]||a.length,b=a.slice(h,w);if(v===0&&i)return i.call(s,b,p.length);var y,_=s.currToken,O=_[S.FIELDS.START_POS]+p[v],k=Ke(_[1],_[2]+h,_[3],_[2]+(w-1));if(~f.indexOf(h)){var C={value:b.slice(1),source:k,sourceIndex:O};y=new Md.default(at(C,"value"))}else if(~d.indexOf(h)){var D={value:b.slice(1),source:k,sourceIndex:O};y=new Nd.default(at(D,"value"))}else{var L={value:b,source:k,sourceIndex:O};at(L,"value"),y=new $d.default(L)}s.newNode(y,r),r=null}),this.position++},t.word=function(r){var i=this.nextToken;return i&&this.content(i)==="|"?(this.position++,this.namespace()):this.splitWord(r)},t.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},t.parse=function(r){switch(this.currToken[S.FIELDS.TYPE]){case E.space:this.space();break;case E.comment:this.comment();break;case E.openParenthesis:this.parentheses();break;case E.closeParenthesis:r&&this.missingParenthesis();break;case E.openSquare:this.attribute();break;case E.dollar:case E.caret:case E.equals:case E.word:this.word();break;case E.colon:this.pseudo();break;case E.comma:this.comma();break;case E.asterisk:this.universal();break;case E.ampersand:this.nesting();break;case E.slash:case E.combinator:this.combinator();break;case E.str:this.string();break;case E.closeSquare:this.missingSquareBracket();case E.semicolon:this.missingBackslash();default:this.unexpected()}},t.expected=function(r,i,s){if(Array.isArray(r)){var o=r.pop();r=r.join(", ")+" or "+o}var a=/^[aeiou]/.test(r[0])?"an":"a";return s?this.error("Expected "+a+" "+r+', found "'+s+'" instead.',{index:i}):this.error("Expected "+a+" "+r+".",{index:i})},t.requiredSpace=function(r){return this.options.lossy?" ":r},t.optionalSpace=function(r){return this.options.lossy?"":r},t.lossySpace=function(r,i){return this.options.lossy?i?" ":"":r},t.parseParenthesisToken=function(r){var i=this.content(r);return r[S.FIELDS.TYPE]===E.space?this.requiredSpace(i):i},t.newNode=function(r,i){return i&&(/^ +$/.test(i)&&(this.options.lossy||(this.spaces=(this.spaces||"")+i),i=!0),r.namespace=i,at(r,"namespace")),this.spaces&&(r.spaces.before=this.spaces,this.spaces=""),this.current.append(r)},t.content=function(r){return r===void 0&&(r=this.currToken),this.css.slice(r[S.FIELDS.START_POS],r[S.FIELDS.END_POS])},t.locateNextMeaningfulToken=function(r){r===void 0&&(r=this.position+1);for(var i=r;i<this.tokens.length;)if(Vd[this.tokens[i][S.FIELDS.TYPE]]){i++;continue}else return i;return-1},Gd(e,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),e}();jt.default=jd;fa.exports=jt.default});var pa=R((Yt,da)=>{"use strict";c();Yt.__esModule=!0;Yt.default=void 0;var Yd=Xd(ca());function Xd(e){return e&&e.__esModule?e:{default:e}}var Qd=function(){function e(n,r){this.func=n||function(){},this.funcRes=null,this.options=r}var t=e.prototype;return t._shouldUpdateSelector=function(r,i){i===void 0&&(i={});var s=Object.assign({},this.options,i);return s.updateSelector===!1?!1:typeof r!="string"},t._isLossy=function(r){r===void 0&&(r={});var i=Object.assign({},this.options,r);return i.lossless===!1},t._root=function(r,i){i===void 0&&(i={});var s=new Yd.default(r,this._parseOptions(i));return s.root},t._parseOptions=function(r){return{lossy:this._isLossy(r)}},t._run=function(r,i){var s=this;return i===void 0&&(i={}),new Promise(function(o,a){try{var u=s._root(r,i);Promise.resolve(s.func(u)).then(function(l){var f=void 0;return s._shouldUpdateSelector(r,i)&&(f=u.toString(),r.selector=f),{transform:l,root:u,string:f}}).then(o,a)}catch(l){a(l);return}})},t._runSync=function(r,i){i===void 0&&(i={});var s=this._root(r,i),o=this.func(s);if(o&&typeof o.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var a=void 0;return i.updateSelector&&typeof r!="string"&&(a=s.toString(),r.selector=a),{transform:o,root:s,string:a}},t.ast=function(r,i){return this._run(r,i).then(function(s){return s.root})},t.astSync=function(r,i){return this._runSync(r,i).root},t.transform=function(r,i){return this._run(r,i).then(function(s){return s.transform})},t.transformSync=function(r,i){return this._runSync(r,i).transform},t.process=function(r,i){return this._run(r,i).then(function(s){return s.string||s.root.toString()})},t.processSync=function(r,i){var s=this._runSync(r,i);return s.string||s.root.toString()},e}();Yt.default=Qd;da.exports=Yt.default});var ha=R(X=>{"use strict";c();X.__esModule=!0;X.universal=X.tag=X.string=X.selector=X.root=X.pseudo=X.nesting=X.id=X.comment=X.combinator=X.className=X.attribute=void 0;var Kd=we(si()),Jd=we(zn()),Zd=we(fi()),ep=we(Vn()),tp=we(jn()),rp=we(di()),np=we(ei()),ip=we($n()),op=we(qn()),sp=we(Jn()),ap=we(Qn()),up=we(ui());function we(e){return e&&e.__esModule?e:{default:e}}var lp=function(t){return new Kd.default(t)};X.attribute=lp;var fp=function(t){return new Jd.default(t)};X.className=fp;var cp=function(t){return new Zd.default(t)};X.combinator=cp;var dp=function(t){return new ep.default(t)};X.comment=dp;var pp=function(t){return new tp.default(t)};X.id=pp;var hp=function(t){return new rp.default(t)};X.nesting=hp;var mp=function(t){return new np.default(t)};X.pseudo=mp;var gp=function(t){return new ip.default(t)};X.root=gp;var vp=function(t){return new op.default(t)};X.selector=vp;var bp=function(t){return new sp.default(t)};X.string=bp;var yp=function(t){return new ap.default(t)};X.tag=yp;var xp=function(t){return new up.default(t)};X.universal=xp});var ba=R(U=>{"use strict";c();U.__esModule=!0;U.isNode=_i;U.isPseudoElement=va;U.isPseudoClass=Rp;U.isContainer=Lp;U.isNamespace=Cp;U.isUniversal=U.isTag=U.isString=U.isSelector=U.isRoot=U.isPseudo=U.isNesting=U.isIdentifier=U.isComment=U.isCombinator=U.isClassName=U.isAttribute=void 0;var ee=ue(),me,wp=(me={},me[ee.ATTRIBUTE]=!0,me[ee.CLASS]=!0,me[ee.COMBINATOR]=!0,me[ee.COMMENT]=!0,me[ee.ID]=!0,me[ee.NESTING]=!0,me[ee.PSEUDO]=!0,me[ee.ROOT]=!0,me[ee.SELECTOR]=!0,me[ee.STRING]=!0,me[ee.TAG]=!0,me[ee.UNIVERSAL]=!0,me);function _i(e){return typeof e=="object"&&wp[e.type]}function _e(e,t){return _i(t)&&t.type===e}var ma=_e.bind(null,ee.ATTRIBUTE);U.isAttribute=ma;var _p=_e.bind(null,ee.CLASS);U.isClassName=_p;var Sp=_e.bind(null,ee.COMBINATOR);U.isCombinator=Sp;var kp=_e.bind(null,ee.COMMENT);U.isComment=kp;var Tp=_e.bind(null,ee.ID);U.isIdentifier=Tp;var Op=_e.bind(null,ee.NESTING);U.isNesting=Op;var Si=_e.bind(null,ee.PSEUDO);U.isPseudo=Si;var Ep=_e.bind(null,ee.ROOT);U.isRoot=Ep;var Pp=_e.bind(null,ee.SELECTOR);U.isSelector=Pp;var Ap=_e.bind(null,ee.STRING);U.isString=Ap;var ga=_e.bind(null,ee.TAG);U.isTag=ga;var Ip=_e.bind(null,ee.UNIVERSAL);U.isUniversal=Ip;function va(e){return Si(e)&&e.value&&(e.value.startsWith("::")||e.value.toLowerCase()===":before"||e.value.toLowerCase()===":after"||e.value.toLowerCase()===":first-letter"||e.value.toLowerCase()===":first-line")}function Rp(e){return Si(e)&&!va(e)}function Lp(e){return!!(_i(e)&&e.walk)}function Cp(e){return ma(e)||ga(e)}});var ya=R(Te=>{"use strict";c();Te.__esModule=!0;var ki=ue();Object.keys(ki).forEach(function(e){e==="default"||e==="__esModule"||e in Te&&Te[e]===ki[e]||(Te[e]=ki[e])});var Ti=ha();Object.keys(Ti).forEach(function(e){e==="default"||e==="__esModule"||e in Te&&Te[e]===Ti[e]||(Te[e]=Ti[e])});var Oi=ba();Object.keys(Oi).forEach(function(e){e==="default"||e==="__esModule"||e in Te&&Te[e]===Oi[e]||(Te[e]=Oi[e])})});var _a=R((Xt,wa)=>{"use strict";c();Xt.__esModule=!0;Xt.default=void 0;var Dp=Np(pa()),Fp=Mp(ya());function xa(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return xa=function(){return e},e}function Mp(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=xa();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var s=r?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function Np(e){return e&&e.__esModule?e:{default:e}}var Ei=function(t){return new Dp.default(t)};Object.assign(Ei,Fp);delete Ei.__esModule;var $p=Ei;Xt.default=$p;wa.exports=Xt.default});var Sa=R(Pi=>{"use strict";c();Object.defineProperty(Pi,"__esModule",{value:!0});Object.defineProperty(Pi,"default",{enumerable:!0,get:()=>Wp});function Wp(e){return e.replace(/\\,/g,"\\2c ")}});var Ta=R((Rg,ka)=>{"use strict";c();ka.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Ii=R(Ai=>{"use strict";c();Object.defineProperty(Ai,"__esModule",{value:!0});function qp(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}qp(Ai,{parseColor:()=>Hp,formatColor:()=>jp});var Oa=Bp(Ta());function Bp(e){return e&&e.__esModule?e:{default:e}}var Up=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,zp=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,Ve=/(?:\d+|\d*\.\d+)%?/,Wr=/(?:\s*,\s*|\s+)/,Ea=/\s*[,/]\s*/,He=/var\(--(?:[^ )]*?)\)/,Gp=new RegExp(`^(rgb)a?\\(\\s*(${Ve.source}|${He.source})(?:${Wr.source}(${Ve.source}|${He.source}))?(?:${Wr.source}(${Ve.source}|${He.source}))?(?:${Ea.source}(${Ve.source}|${He.source}))?\\s*\\)$`),Vp=new RegExp(`^(hsl)a?\\(\\s*((?:${Ve.source})(?:deg|rad|grad|turn)?|${He.source})(?:${Wr.source}(${Ve.source}|${He.source}))?(?:${Wr.source}(${Ve.source}|${He.source}))?(?:${Ea.source}(${Ve.source}|${He.source}))?\\s*\\)$`);function Hp(e,{loose:t=!1}={}){var n,r;if(typeof e!="string")return null;if(e=e.trim(),e==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(e in Oa.default)return{mode:"rgb",color:Oa.default[e].map(u=>u.toString())};let i=e.replace(zp,(u,l,f,d,g)=>["#",l,l,f,f,d,d,g?g+g:""].join("")).match(Up);if(i!==null)return{mode:"rgb",color:[parseInt(i[1],16),parseInt(i[2],16),parseInt(i[3],16)].map(u=>u.toString()),alpha:i[4]?(parseInt(i[4],16)/255).toString():void 0};var s;let o=(s=e.match(Gp))!==null&&s!==void 0?s:e.match(Vp);if(o===null)return null;let a=[o[2],o[3],o[4]].filter(Boolean).map(u=>u.toString());return!t&&a.length!==3||a.length<3&&!a.some(u=>/^var\(.*?\)$/.test(u))?null:{mode:o[1],color:a,alpha:(n=o[5])===null||n===void 0||(r=n.toString)===null||r===void 0?void 0:r.call(n)}}function jp({mode:e,color:t,alpha:n}){let r=n!==void 0;return`${e}(${t.join(" ")}${r?` / ${n}`:""})`}});var Li=R(Ri=>{"use strict";c();Object.defineProperty(Ri,"__esModule",{value:!0});function Yp(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Yp(Ri,{withAlphaValue:()=>Xp,default:()=>Qp});var qr=Ii();function Xp(e,t,n){if(typeof e=="function")return e({opacityValue:t});let r=(0,qr.parseColor)(e,{loose:!0});return r===null?n:(0,qr.formatColor)({...r,alpha:t})}function Qp({color:e,property:t,variable:n}){let r=[].concat(t);if(typeof e=="function")return{[n]:"1",...Object.fromEntries(r.map(s=>[s,e({opacityVariable:n,opacityValue:`var(${n})`})]))};let i=(0,qr.parseColor)(e);return i===null?Object.fromEntries(r.map(s=>[s,e])):i.alpha!==void 0?Object.fromEntries(r.map(s=>[s,e])):{[n]:"1",...Object.fromEntries(r.map(s=>[s,(0,qr.formatColor)({...i,alpha:`var(${n})`})]))}}});var La=R(Ci=>{"use strict";c();Object.defineProperty(Ci,"__esModule",{value:!0});function Kp(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Kp(Ci,{pattern:()=>Zp,withoutCapturing:()=>Aa,any:()=>Ia,optional:()=>eh,zeroOrMore:()=>th,nestedBrackets:()=>Ra,escape:()=>Je});var Pa=/[\\^$.*+?()[\]{}|]/g,Jp=RegExp(Pa.source);function Qt(e){return e=Array.isArray(e)?e:[e],e=e.map(t=>t instanceof RegExp?t.source:t),e.join("")}function Zp(e){return new RegExp(Qt(e),"g")}function Aa(e){return new RegExp(`(?:${Qt(e)})`,"g")}function Ia(e){return`(?:${e.map(Qt).join("|")})`}function eh(e){return`(?:${Qt(e)})?`}function th(e){return`(?:${Qt(e)})*`}function Ra(e,t,n=1){return Aa([Je(e),/[^\s]*/,n===1?`[^${Je(e)}${Je(t)}s]*`:Ia([`[^${Je(e)}${Je(t)}s]*`,Ra(e,t,n-1)]),/[^\s]*/,Je(t)])}function Je(e){return e&&Jp.test(e)?e.replace(Pa,"\\$&"):e||""}});var Da=R(Di=>{"use strict";c();Object.defineProperty(Di,"__esModule",{value:!0});Object.defineProperty(Di,"splitAtTopLevelOnly",{enumerable:!0,get:()=>ih});var rh=nh(La());function Ca(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Ca=function(r){return r?n:t})(e)}function nh(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Ca(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function*ih(e,t){let n=new RegExp(`[(){}\\[\\]${rh.escape(t)}]`,"g"),r=0,i=0,s=!1,o=0,a=0,u=t.length;for(let l of e.matchAll(n)){let f=l[0]===t[o],d=o===u-1,g=f&&d;l[0]==="("&&r++,l[0]===")"&&r--,l[0]==="["&&r++,l[0]==="]"&&r--,l[0]==="{"&&r++,l[0]==="}"&&r--,f&&r===0&&(a===0&&(a=l.index),o++),g&&r===0&&(s=!0,yield e.substring(i,a),i=a+u),o===u&&(o=0,a=0)}s?yield e.substring(i):yield e}});var Ma=R(Fi=>{"use strict";c();Object.defineProperty(Fi,"__esModule",{value:!0});function oh(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}oh(Fi,{parseBoxShadowValue:()=>lh,formatBoxShadowValue:()=>fh});var sh=Da(),ah=new Set(["inset","inherit","initial","revert","unset"]),uh=/\ +(?![^(]*\))/g,Fa=/^-?(\d+|\.\d+)(.*?)$/g;function lh(e){return Array.from((0,sh.splitAtTopLevelOnly)(e,",")).map(n=>{let r=n.trim(),i={raw:r},s=r.split(uh),o=new Set;for(let a of s)Fa.lastIndex=0,!o.has("KEYWORD")&&ah.has(a)?(i.keyword=a,o.add("KEYWORD")):Fa.test(a)?o.has("X")?o.has("Y")?o.has("BLUR")?o.has("SPREAD")||(i.spread=a,o.add("SPREAD")):(i.blur=a,o.add("BLUR")):(i.y=a,o.add("Y")):(i.x=a,o.add("X")):i.color?(i.unknown||(i.unknown=[]),i.unknown.push(a)):i.color=a;return i.valid=i.x!==void 0&&i.y!==void 0,i})}function fh(e){return e.map(t=>t.valid?[t.keyword,t.x,t.y,t.blur,t.spread,t.color].filter(Boolean).join(" "):t.raw).join(", ")}});var za=R(Ni=>{"use strict";c();Object.defineProperty(Ni,"__esModule",{value:!0});function ch(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}ch(Ni,{normalize:()=>je,url:()=>Wa,number:()=>hh,percentage:()=>qa,length:()=>Ba,lineWidth:()=>vh,shadow:()=>bh,color:()=>yh,image:()=>xh,gradient:()=>Ua,position:()=>Sh,familyName:()=>kh,genericName:()=>Oh,absoluteSize:()=>Ph,relativeSize:()=>Ih});var dh=Ii(),ph=Ma(),Mi=["min","max","clamp","calc"],$a=/,(?![^(]*\))/g,Br=/_(?![^(]*\))/g;function je(e,t=!0){return e.includes("url(")?e.split(/(url\(.*?\))/g).filter(Boolean).map(n=>/^url\(.*?\)$/.test(n)?n:je(n,!1)).join(""):(e=e.replace(/([^\\])_+/g,(n,r)=>r+" ".repeat(n.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),t&&(e=e.trim()),e=e.replace(/(calc|min|max|clamp)\(.+\)/g,n=>n.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ")),e)}function Wa(e){return e.startsWith("url(")}function hh(e){return!isNaN(Number(e))||Mi.some(t=>new RegExp(`^${t}\\(.+?`).test(e))}function qa(e){return e.split(Br).every(t=>/%$/g.test(t)||Mi.some(n=>new RegExp(`^${n}\\(.+?%`).test(t)))}var mh=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],Na=`(?:${mh.join("|")})`;function Ba(e){return e.split(Br).every(t=>t==="0"||new RegExp(`${Na}$`).test(t)||Mi.some(n=>new RegExp(`^${n}\\(.+?${Na}`).test(t)))}var gh=new Set(["thin","medium","thick"]);function vh(e){return gh.has(e)}function bh(e){let t=(0,ph.parseBoxShadowValue)(je(e));for(let n of t)if(!n.valid)return!1;return!0}function yh(e){let t=0;return e.split(Br).every(r=>(r=je(r),r.startsWith("var(")?!0:(0,dh.parseColor)(r,{loose:!0})!==null?(t++,!0):!1))?t>0:!1}function xh(e){let t=0;return e.split($a).every(r=>(r=je(r),r.startsWith("var(")?!0:Wa(r)||Ua(r)||["element(","image(","cross-fade(","image-set("].some(i=>r.startsWith(i))?(t++,!0):!1))?t>0:!1}var wh=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function Ua(e){e=je(e);for(let t of wh)if(e.startsWith(`${t}(`))return!0;return!1}var _h=new Set(["center","top","right","bottom","left"]);function Sh(e){let t=0;return e.split(Br).every(r=>(r=je(r),r.startsWith("var(")?!0:_h.has(r)||Ba(r)||qa(r)?(t++,!0):!1))?t>0:!1}function kh(e){let t=0;return e.split($a).every(r=>(r=je(r),r.startsWith("var(")?!0:r.includes(" ")&&!/(['"])([^"']+)\1/g.test(r)||/^\d/g.test(r)?!1:(t++,!0)))?t>0:!1}var Th=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function Oh(e){return Th.has(e)}var Eh=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function Ph(e){return Eh.has(e)}var Ah=new Set(["larger","smaller"]);function Ih(e){return Ah.has(e)}});var Ka=R(qi=>{"use strict";c();Object.defineProperty(qi,"__esModule",{value:!0});function Rh(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Rh(qi,{updateAllClasses:()=>Dh,asValue:()=>Jt,parseColorFormat:()=>$i,asColor:()=>Ya,asLookupValue:()=>Xa,coerceValue:()=>$h});var Lh=Wi(_a()),Ch=Wi(Sa()),Ga=Li(),ge=za(),Va=Wi(kn());function Wi(e){return e&&e.__esModule?e:{default:e}}function Dh(e,t){return(0,Lh.default)(i=>{i.walkClasses(s=>{let o=t(s.value);s.value=o,s.raws&&s.raws.value&&(s.raws.value=(0,Ch.default)(s.raws.value))})}).processSync(e)}function ja(e,t){if(!Kt(e))return;let n=e.slice(1,-1);if(!!t(n))return(0,ge.normalize)(n)}function Fh(e,t={},n){let r=t[e];if(r!==void 0)return(0,Va.default)(r);if(Kt(e)){let i=ja(e,n);return i===void 0?void 0:(0,Va.default)(i)}}function Jt(e,t={},{validate:n=()=>!0}={}){var r;let i=(r=t.values)===null||r===void 0?void 0:r[e];return i!==void 0?i:t.supportsNegativeValues&&e.startsWith("-")?Fh(e.slice(1),t.values,n):ja(e,n)}function Kt(e){return e.startsWith("[")&&e.endsWith("]")}function Mh(e){let t=e.lastIndexOf("/");return t===-1||t===e.length-1?[e]:[e.slice(0,t),e.slice(t+1)]}function $i(e){if(typeof e=="string"&&e.includes("<alpha-value>")){let t=e;return({opacityValue:n=1})=>t.replace("<alpha-value>",n)}return e}function Ya(e,t={},{tailwindConfig:n={}}={}){var r;if(((r=t.values)===null||r===void 0?void 0:r[e])!==void 0){var i;return $i((i=t.values)===null||i===void 0?void 0:i[e])}let[s,o]=Mh(e);if(o!==void 0){var a,u,l,f;let d=(f=(a=t.values)===null||a===void 0?void 0:a[s])!==null&&f!==void 0?f:Kt(s)?s.slice(1,-1):void 0;return d===void 0?void 0:(d=$i(d),Kt(o)?(0,Ga.withAlphaValue)(d,o.slice(1,-1)):((u=n.theme)===null||u===void 0||(l=u.opacity)===null||l===void 0?void 0:l[o])===void 0?void 0:(0,Ga.withAlphaValue)(d,n.theme.opacity[o]))}return Jt(e,t,{validate:ge.color})}function Xa(e,t={}){var n;return(n=t.values)===null||n===void 0?void 0:n[e]}function Se(e){return(t,n)=>Jt(t,n,{validate:e})}var Qa={any:Jt,color:Ya,url:Se(ge.url),image:Se(ge.image),length:Se(ge.length),percentage:Se(ge.percentage),position:Se(ge.position),lookup:Xa,"generic-name":Se(ge.genericName),"family-name":Se(ge.familyName),number:Se(ge.number),"line-width":Se(ge.lineWidth),"absolute-size":Se(ge.absoluteSize),"relative-size":Se(ge.relativeSize),shadow:Se(ge.shadow)},Ha=Object.keys(Qa);function Nh(e,t){let n=e.indexOf(t);return n===-1?[void 0,e]:[e.slice(0,n),e.slice(n+1)]}function $h(e,t,n,r){if(Kt(t)){let i=t.slice(1,-1),[s,o]=Nh(i,":");if(!/^[\w-_]+$/g.test(s))o=i;else if(s!==void 0&&!Ha.includes(s))return[];if(o.length>0&&Ha.includes(s))return[Jt(`[${o}]`,n),s]}for(let i of[].concat(e)){let s=Qa[i](t,n,{tailwindConfig:r});if(s!==void 0)return[s,i]}return[]}});var Ja=R(Bi=>{"use strict";c();Object.defineProperty(Bi,"__esModule",{value:!0});Object.defineProperty(Bi,"default",{enumerable:!0,get:()=>Wh});function Wh(e){return typeof e=="function"?e({}):e}});var nu=R(zi=>{"use strict";c();Object.defineProperty(zi,"__esModule",{value:!0});Object.defineProperty(zi,"default",{enumerable:!0,get:()=>o0});var qh=Ze(kn()),Bh=Ze(ss()),Uh=Ze(as()),zh=Ze(En()),Gh=Ze(ls()),tu=fs(),Za=cs(),Vh=ps(),Hh=Ze(hs()),jh=ms(),Yh=Ka(),Xh=Li(),Qh=Ze(Ja());function Ze(e){return e&&e.__esModule?e:{default:e}}function ut(e){return typeof e=="function"}function Zt(e){return typeof e=="object"&&e!==null}function er(e,...t){let n=t.pop();for(let r of t)for(let i in r){let s=n(e[i],r[i]);s===void 0?Zt(e[i])&&Zt(r[i])?e[i]=er(e[i],r[i],n):e[i]=r[i]:e[i]=s}return e}var Ui={colors:Gh.default,negative(e){return Object.keys(e).filter(t=>e[t]!=="0").reduce((t,n)=>{let r=(0,qh.default)(e[n]);return r!==void 0&&(t[`-${n}`]=r),t},{})},breakpoints(e){return Object.keys(e).filter(t=>typeof e[t]=="string").reduce((t,n)=>({...t,[`screen-${n}`]:e[n]}),{})}};function Kh(e,...t){return ut(e)?e(...t):e}function Jh(e){return e.reduce((t,{extend:n})=>er(t,n,(r,i)=>r===void 0?[i]:Array.isArray(r)?[i,...r]:[i,r]),{})}function Zh(e){return{...e.reduce((t,n)=>(0,tu.defaults)(t,n),{}),extend:Jh(e)}}function eu(e,t){if(Array.isArray(e)&&Zt(e[0]))return e.concat(t);if(Array.isArray(t)&&Zt(t[0])&&Zt(e))return[e,...t];if(Array.isArray(t))return t}function e0({extend:e,...t}){return er(t,e,(n,r)=>!ut(n)&&!r.some(ut)?er({},n,...r,eu):(i,s)=>er({},...[n,...r].map(o=>Kh(o,i,s)),eu))}function*t0(e){let t=(0,Za.toPath)(e);if(t.length===0||(yield t,Array.isArray(e)))return;let n=/^(.*?)\s*\/\s*([^/]+)$/,r=e.match(n);if(r!==null){let[,i,s]=r,o=(0,Za.toPath)(i);o.alpha=s,yield o}}function r0(e){let t=(n,r)=>{for(let i of t0(n)){let s=0,o=e;for(;o!=null&&s<i.length;)o=o[i[s++]],o=ut(o)&&(i.alpha===void 0||s<=i.length-1)?o(t,Ui):o;if(o!==void 0){if(i.alpha!==void 0){let a=(0,Yh.parseColorFormat)(o);return(0,Xh.withAlphaValue)(a,i.alpha,(0,Qh.default)(a))}return(0,Hh.default)(o)?(0,jh.cloneDeep)(o):o}}return r};return Object.assign(t,{theme:t,...Ui}),Object.keys(e).reduce((n,r)=>(n[r]=ut(e[r])?e[r](t,Ui):e[r],n),{})}function ru(e){let t=[];return e.forEach(n=>{t=[...t,n];var r;let i=(r=n==null?void 0:n.plugins)!==null&&r!==void 0?r:[];i.length!==0&&i.forEach(s=>{s.__isOptionsFunction&&(s=s());var o;t=[...t,...ru([(o=s==null?void 0:s.config)!==null&&o!==void 0?o:{}])]})}),t}function n0(e){return[...e].reduceRight((n,r)=>ut(r)?r({corePlugins:n}):(0,Uh.default)(r,n),Bh.default)}function i0(e){return[...e].reduceRight((n,r)=>[...n,...r],[])}function o0(e){let t=[...ru(e),{prefix:"",important:!1,separator:":",variantOrder:zh.default.variantOrder}];var n,r;return(0,Vh.normalizeConfig)((0,tu.defaults)({theme:r0(e0(Zh(t.map(i=>(n=i==null?void 0:i.theme)!==null&&n!==void 0?n:{})))),corePlugins:n0(t.map(i=>i.corePlugins)),plugins:i0(e.map(i=>(r=i==null?void 0:i.plugins)!==null&&r!==void 0?r:[]))},...t))}});var iu={};Qr(iu,{default:()=>s0});var s0,ou=Xr(()=>{c();s0={yellow:e=>e}});var lu=R(Gi=>{"use strict";c();Object.defineProperty(Gi,"__esModule",{value:!0});function a0(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}a0(Gi,{flagEnabled:()=>f0,issueFlagNotices:()=>c0,default:()=>d0});var u0=uu((ou(),ht(iu))),l0=uu((Or(),ht(Tr)));function uu(e){return e&&e.__esModule?e:{default:e}}var su={optimizeUniversalDefaults:!1},tr={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function f0(e,t){if(tr.future.includes(t)){var n,r,i;return e.future==="all"||((i=(r=e==null||(n=e.future)===null||n===void 0?void 0:n[t])!==null&&r!==void 0?r:su[t])!==null&&i!==void 0?i:!1)}if(tr.experimental.includes(t)){var s,o,a;return e.experimental==="all"||((a=(o=e==null||(s=e.experimental)===null||s===void 0?void 0:s[t])!==null&&o!==void 0?o:su[t])!==null&&a!==void 0?a:!1)}return!1}function au(e){if(e.experimental==="all")return tr.experimental;var t;return Object.keys((t=e==null?void 0:e.experimental)!==null&&t!==void 0?t:{}).filter(n=>tr.experimental.includes(n)&&e.experimental[n])}function c0(e){if(process.env.JEST_WORKER_ID===void 0&&au(e).length>0){let t=au(e).map(n=>u0.default.yellow(n)).join(", ");l0.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${t}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}var d0=tr});var cu=R(Vi=>{"use strict";c();Object.defineProperty(Vi,"__esModule",{value:!0});Object.defineProperty(Vi,"default",{enumerable:!0,get:()=>fu});var p0=m0(En()),h0=lu();function m0(e){return e&&e.__esModule?e:{default:e}}function fu(e){var t;let n=((t=e==null?void 0:e.presets)!==null&&t!==void 0?t:[p0.default]).slice().reverse().flatMap(s=>fu(typeof s=="function"?s():s)),r={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},i=Object.keys(r).filter(s=>(0,h0.flagEnabled)(e,s)).map(s=>r[s]);return[e,...i,...n]}});var pu=R(Hi=>{"use strict";c();Object.defineProperty(Hi,"__esModule",{value:!0});Object.defineProperty(Hi,"default",{enumerable:!0,get:()=>b0});var g0=du(nu()),v0=du(cu());function du(e){return e&&e.__esModule?e:{default:e}}function b0(...e){let[,...t]=(0,v0.default)(e[0]);return(0,g0.default)([...e,...t])}});var mu=R((Gg,hu)=>{c();var ji=pu();hu.exports=(ji.__esModule?ji:{default:ji}).default});var $0={};Qr($0,{default:()=>co,init:()=>So});module.exports=ht($0);c();c();c();c();var _o=pt(require("yoga-wasm-web/asm"),1),Qu=(0,_o.default)(),Kr=Qu;var Jr;Jr=Kr.default||Kr;function So(e){Jr=e}function Fe(){return Jr}c();c();c();var mt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ku=mt((e,t)=>{t.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),Ju=mt((e,t)=>{t.exports=["deg","grad","rad","turn"]}),Zu=mt((e,t)=>{t.exports=["dpi","dpcm","dppx"]}),el=mt((e,t)=>{t.exports=["Hz","kHz"]}),tl=mt((e,t)=>{t.exports=["s","ms"]}),rl=Ku(),ko=Ju(),To=Zu(),Oo=el(),Eo=tl();function en(e){if(/\.\D?$/.test(e))throw new Error("The dot should be followed by a number");if(/^[+-]{2}/.test(e))throw new Error("Only one leading +/- is allowed");if(nl(e)>1)throw new Error("Only one dot is allowed");if(/%$/.test(e)){this.type="percentage",this.value=Zr(e),this.unit="%";return}var t=ol(e);if(!t){this.type="number",this.value=Zr(e);return}this.type=al(t),this.value=Zr(e.substr(0,e.length-t.length)),this.unit=t}en.prototype.valueOf=function(){return this.value};en.prototype.toString=function(){return this.value+(this.unit||"")};function Ge(e){return new en(e)}function nl(e){var t=e.match(/\./g);return t?t.length:0}function Zr(e){var t=parseFloat(e);if(isNaN(t))throw new Error("Invalid number: "+e);return t}var il=[].concat(ko,Oo,rl,To,Eo);function ol(e){var t=e.match(/\D+$/),n=t&&t[0];if(n&&il.indexOf(n)===-1)throw new Error("Invalid unit: "+n);return n}var sl=Object.assign(hr(ko,"angle"),hr(Oo,"frequency"),hr(To,"resolution"),hr(Eo,"time"));function hr(e,t){return Object.fromEntries(e.map(n=>[n,t]))}function al(e){return sl[e]||"length"}function on(e){let t=typeof e;return!(t==="number"||t==="bigint"||t==="string"||t==="boolean")}function Po(e){return/^class\s/.test(e.toString())}function Ao(e){return"dangerouslySetInnerHTML"in e}function Io(e){let t=typeof e>"u"?[]:[].concat(e).flat(1/0),n=[];for(let r=0;r<t.length;r++){let i=t[r];typeof i>"u"||typeof i=="boolean"||i===null||(typeof i=="number"&&(i=String(i)),typeof i=="string"&&n.length&&typeof n[n.length-1]=="string"?n[n.length-1]+=i:n.push(i))}return n}function be(e,t,n,r,i=!1){if(typeof e=="number")return e;try{if(e=e.trim(),/[ /\(,]/.test(e))return;if(e===String(+e))return+e;let s=new Ge(e);if(s.type==="length")switch(s.unit){case"em":return s.value*t;case"rem":return s.value*16;case"vw":return~~(s.value*r._viewportWidth/100);case"vh":return~~(s.value*r._viewportHeight/100);default:return s.value}else if(s.type==="angle")switch(s.unit){case"deg":return s.value;case"rad":return s.value*180/Math.PI;default:return s.value}else if(s.type==="percentage"&&i)return s.value/100*n}catch{}}function gt(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}function ce(e,t,n,r){let i=t[e];if(typeof i>"u"){if(r&&typeof e<"u")throw new Error(`Invalid value for CSS property "${r}". Allowed values: ${Object.keys(t).map(s=>`"${s}"`).join(" | ")}. Received: "${e}".`);i=n}return i}var tn,rn,vt=[32,160,4961,65792,65793,4153,4241,10].map(e=>String.fromCodePoint(e));function Me(e,t,n){if(!tn||!rn){if(!(typeof Intl<"u"&&"Segmenter"in Intl))throw new Error("Intl.Segmenter does not exist, please use import a polyfill.");tn=new Intl.Segmenter(n,{granularity:"word"}),rn=new Intl.Segmenter(n,{granularity:"grapheme"})}return t==="word"?[...tn.segment(e)].map(r=>r.segment):[...rn.segment(e)].map(r=>r.segment)}function I(e,t,n){let r="";for(let[i,s]of Object.entries(t))typeof s<"u"&&(r+=` ${i}="${s}"`);return n?`<${e}${r}>${n}</${e}>`:`<${e}${r}/>`}function Ro(e=20){let t=new Map;function n(i,s){if(t.size>=e){let o=t.keys().next().value;t.delete(o)}t.set(i,s)}function r(i){if(!t.has(i))return;let o=t.get(i);return t.delete(i),t.set(i,o),o}return{set:n,get:r}}var Lo={accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlLang:"xml:lang",xmlSpace:"xml:space",xmlnsXlink:"xmlns:xlink"},ul=/[\r\n%#()<>?[\\\]^`{|}"']/g;function nn(e,t){if(!e)return"";if(Array.isArray(e))return e.map(a=>nn(a,t)).join("");if(typeof e!="object")return String(e);let n=e.type;if(n==="text")throw new Error("<text> nodes are not currently supported, please convert them to <path>");let{children:r,style:i,...s}=e.props||{},o=(i==null?void 0:i.color)||t;return`<${n}${Object.entries(s).map(([a,u])=>(typeof u=="string"&&u.toLowerCase()==="currentcolor"&&(u=o),` ${Lo[a]||a}="${u}"`)).join("")}>${nn(r,o)}</${n}>`}function bt(e){return e?e.split(/[, ]/).filter(Boolean).map(Number):null}function Co(e,t){let{viewBox:n,viewbox:r,width:i,height:s,className:o,style:a,children:u,...l}=e.props||{};n||(n=r),l.xmlns="http://www.w3.org/2000/svg";let f=(a==null?void 0:a.color)||t,d=bt(n),g=d?d[3]/d[2]:null;return i=i||g&&s?s/g:null,s=s||g&&i?i*g:null,l.width=i,l.height=s,n&&(l.viewBox=n),`data:image/svg+xml;utf8,${`<svg ${Object.entries(l).map(([p,h])=>(typeof h=="string"&&h.toLowerCase()==="currentcolor"&&(h=f),` ${Lo[p]||p}="${h}"`)).join("")}>${nn(u,f)}</svg>`.replace(ul,encodeURIComponent)}`}function Do(e){return typeof e=="string"}c();c();var ye="flex",Fo={p:{display:ye,marginTop:"1em",marginBottom:"1em"},div:{display:ye},blockquote:{display:ye,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:ye,textAlign:"center"},hr:{display:ye,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:ye,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:ye,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:ye,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:ye,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:ye,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:ye,fontSize:"0.67em",marginTop:"2.33em",marginBottom:"2.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},u:{textDecoration:"underline"},strong:{fontWeight:"bold"},b:{fontWeight:"bold"},i:{fontStyle:"italic"},em:{fontStyle:"italic"},code:{fontFamily:"monospace"},kbd:{fontFamily:"monospace"},pre:{display:ye,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}};c();var ll=new Set(["color","font","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","textAlign","textTransform","textShadowOffset","textShadowColor","textShadowRadius","textDecorationLine","textDecorationStyle","textDecorationColor","whiteSpace","transform","wordBreak","opacity","filter","_viewportWidth","_viewportHeight","_inheritedClipPathId","_inheritedMaskId","_inheritedBackgroundClipTextPath"]);function sn(e){let t={};for(let n in e)ll.has(n)&&(t[n]=e[n]);return t}c();var Pe=require("css-to-react-native"),Wo=require("css-background-parser"),qo=require("css-box-shadow");c();var Mo=pt(require("postcss-value-parser"),1);function fl(e,t){try{let n=new Ge(e);switch(n.unit){case"px":return{absolute:n.value};case"em":return{absolute:n.value*t};case"rem":return{absolute:n.value*16};case"%":return{relative:n.value};default:return{}}}catch{return{}}}function an(e,t,n){switch(e){case"top":return{yRelative:0};case"left":return{xRelative:0};case"right":return{xRelative:100};case"bottom":return{yRelative:100};case"center":return{};default:{let r=fl(e,t);return r.absolute?{[n?"xAbsolute":"yAbsolute"]:r.absolute}:r.relative?{[n?"xRelative":"yRelative"]:r.relative}:{}}}}function un(e,t){if(typeof e=="number")return{xAbsolute:e};let n;try{n=(0,Mo.default)(e).nodes.filter(r=>r.type==="word").map(r=>r.value)}catch{return{}}return n.length===1?an(n[0],t,!0):n.length===2?((n[0]==="top"||n[0]==="bottom"||n[1]==="left"||n[1]==="right")&&n.reverse(),{...an(n[0],t,!0),...an(n[1],t,!1)}):{}}var cl=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),dl=new Set(["lineHeight"]);function pl(e,t,n,r){return e==="textDecoration"&&!n.includes(t.textDecorationColor)&&(t.textDecorationColor=r),t}function yt(e,t){return typeof t=="number"?cl.has(e)?dl.has(e)?t:String(t):t+"px":t}function hl(e,t,n){if(e==="lineHeight")return{lineHeight:yt(e,t)};if(e==="fontFamily")return{fontFamily:t.split(",").map(r=>r.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(e==="borderRadius"){if(typeof t!="string"||!t.includes("/"))return;let[r,i]=t.split("/"),s=(0,Pe.getStylesForProperty)(e,r,!0),o=(0,Pe.getStylesForProperty)(e,i,!0);for(let a in s)o[a]=yt(e,s[a])+" "+yt(e,o[a]);return o}if(/^border(Top|Right|Bottom|Left)?$/.test(e)){let r=(0,Pe.getStylesForProperty)("border",t,!0);r.borderWidth===1&&!String(t).includes("1px")&&(r.borderWidth=3),r.borderColor==="black"&&!String(t).includes("black")&&(r.borderColor=n);let i={Width:yt(e+"Width",r.borderWidth),Style:ce(r.borderStyle,{solid:"solid",dashed:"dashed"},"solid",e+"Style"),Color:r.borderColor},s={};for(let o of e==="border"?["Top","Right","Bottom","Left"]:[e.slice(6)])for(let a in i)s["border"+o+a]=i[a];return s}if(e==="boxShadow"){if(!t)throw new Error('Invalid `boxShadow` value: "'+t+'".');return{[e]:typeof t=="string"?(0,qo.parse)(t):t}}if(e==="transform"){if(typeof t!="string")throw new Error("Invalid `transform` value.");let r={},i=t.replace(/(-?[\d.]+%)/g,(o,a)=>{let u=~~(Math.random()*1e9);return r[u]=a,u+"px"}),s=(0,Pe.getStylesForProperty)("transform",i,!0);for(let o of s.transform)for(let a in o)r[o[a]]&&(o[a]=r[o[a]]);return s}if(e==="background")return t=t.toString().trim(),/^(linear-gradient|radial-gradient|url)\(/.test(t)?(0,Pe.getStylesForProperty)("backgroundImage",t,!0):(0,Pe.getStylesForProperty)("background",t,!0)}function No(e){return e==="transform"?" Only absolute lengths such as `10px` are supported.":""}var $o=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function Bo(e){if(typeof e=="string"&&$o.test(e.trim()))return e.trim().replace($o,(t,n,r,i,s)=>`rgba(${n}, ${r}, ${i}, ${s})`);if(typeof e=="object"&&e!==null){for(let t in e)e[t]=Bo(e[t]);return e}return e}function mr(e,t){var i;let n={};if(e){let s=ml(e.color,t.color);n.color=s;for(let o in e){if(o.startsWith("_")){n[o]=e[o];continue}if(o==="color")continue;let a=(0,Pe.getPropertyName)(o),u=vl(e[o],s);try{let l=hl(a,u,s)||pl(a,(0,Pe.getStylesForProperty)(a,yt(a,u),!0),u,s);Object.assign(n,l)}catch(l){throw new Error(l.message+(l.message.includes(u)?`
|
|
4
|
+
`+No(a):`
|
|
5
|
+
in CSS rule \`${a}: ${u}\`.${No(a)}`))}}}if(n.backgroundImage){let{backgrounds:s}=(0,Wo.parseElementStyle)(n);n.backgroundImage=s}let r=typeof n.fontSize=="number"?n.fontSize:t.fontSize;if(typeof r=="string")try{let s=new Ge(r);switch(s.unit){case"em":r=s.value*t.fontSize;break;case"rem":r=s.value*16;break}}catch{r=16}typeof n.fontSize<"u"&&(n.fontSize=r),n.transformOrigin&&(n.transformOrigin=un(n.transformOrigin,r));for(let s in n){let o=n[s];if(s==="lineHeight")typeof o=="string"&&(o=n[s]=be(o,r,r,t,!0)/r);else{if(typeof o=="string"){let a=be(o,r,r,t);typeof a<"u"&&(n[s]=a),o=n[s]}if(typeof o=="string"||typeof o=="object"){let a=Bo(o);a&&(n[s]=a),o=n[s]}}if(s==="opacity"&&(o=n[s]=o*t.opacity),s==="transform"){let a=o;for(let u of a){let l=Object.keys(u)[0],f=u[l],d=typeof f=="string"&&(i=be(f,r,r,t))!=null?i:f;u[l]=d}}}return n}function ml(e,t){return e&&e.toLowerCase()!=="currentcolor"?e:t}function gl(e,t){return e.replace(/currentcolor/ig,t)}function vl(e,t){return Do(e)&&(e=gl(e,t)),e}c();var bl="image/avif",yl="image/webp",gr="image/png",vr="image/jpeg",br="image/gif",cn="image/svg+xml";function Uo(e){let t=new DataView(e),n=4,r=t.byteLength;for(;n<r;){let i=t.getUint16(n,!1);if(i>r)throw new TypeError("Invalid JPEG");let s=t.getUint8(i+1+n);if(s===192||s===193||s===194)return[t.getUint16(i+7+n,!1),t.getUint16(i+5+n,!1)];n+=i+2}throw new TypeError("Invalid JPEG")}function zo(e){let t=new Uint8Array(e.slice(6,10));return[t[0]|t[1]<<8,t[2]|t[3]<<8]}function Go(e){let t=new DataView(e);return[t.getUint16(18,!1),t.getUint16(22,!1)]}var ln=Ro(100),fn=new Map,xl=[gr,vr,br,cn];function wl(e){let t="",n=new Uint8Array(e);for(let r=0;r<n.byteLength;r++)t+=String.fromCharCode(n[r]);return btoa(t)}function _l(e){let t=atob(e),n=t.length,r=new Uint8Array(n);for(let i=0;i<n;i++)r[i]=t.charCodeAt(i);return r.buffer}function Vo(e,t){let n=t.match(/<svg[^>]*>/)[0],r=n.match(/viewBox=['"](.+)['"]/),i=r?bt(r[1]):null,s=n.match(/width=['"](\d*\.\d+|\d+)['"]/),o=n.match(/height=['"](\d*\.\d+|\d+)['"]/);if(!i&&(!s||!o))throw new Error(`Failed to parse SVG from ${e}: missing "viewBox"`);let a=i?[i[2],i[3]]:[+s[1],+o[1]],u=a[0]/a[1];return s&&o?[+s[1],+o[1]]:s?[+s[1],+s[1]/u]:o?[+o[1]*u,+o[1]]:[a[0],a[1]]}async function yr(e){if(!e)throw new Error("Image source is not provided.");if((e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1)),e.startsWith("data:")){let r;try{r=/data:(?<imageType>[a-z/+]+)(;(?<encodingType>base64|utf8))?,(?<dataString>.*)/g.exec(e).groups}catch{return console.warn("Image data URI resolved without size:"+e),[e]}let{imageType:i,encodingType:s,dataString:o}=r;if(i===cn){let a=s==="base64"?atob(o):decodeURIComponent(o.replace(/ /g,"%20")),u=s==="base64"?e:`data:image/svg+xml;base64,${btoa(a)}`,l=Vo(e,a);return[u,...l]}else if(s==="base64"){let a,u=_l(o);switch(i){case gr:a=Go(u);break;case br:a=zo(u);break;case vr:a=Uo(u);break}return[e,...a]}else return console.warn("Image data URI resolved without size:"+e),[e]}if(!globalThis.fetch)throw new Error("`fetch` is required to be polyfilled to load images.");if(fn.has(e))return fn.get(e);let t=ln.get(e);if(t)return t;let n=new Promise((r,i)=>{fetch(e).then(s=>{let o=s.headers.get("content-type");return o==="image/svg+xml"||o==="application/svg+xml"?s.text():s.arrayBuffer()}).then(s=>{if(typeof s=="string")try{let l=`data:image/svg+xml;base64,${btoa(s)}`,f=Vo(e,s);ln.set(e,[l,...f]),r([l,...f]);return}catch(l){throw new Error(`Failed to parse SVG image: ${l.message}`)}let o,a=Sl(new Uint8Array(s));switch(a){case gr:o=Go(s);break;case br:o=zo(s);break;case vr:o=Uo(s);break}if(!xl.includes(a))throw new Error(`Unsupported image type: ${a||"unknown"}`);let u=`data:${a};base64,${wl(s)}`;ln.set(e,[u,...o]),r([u,...o])}).catch(s=>{i(new Error(`Can't load image ${e}: `+s.message))})});return fn.set(e,n),n}function Sl(e){return[255,216,255].every((t,n)=>e[n]===t)?vr:[137,80,78,71,13,10,26,10].every((t,n)=>e[n]===t)?gr:[71,73,70,56].every((t,n)=>e[n]===t)?br:[82,73,70,70,0,0,0,0,87,69,66,80].every((t,n)=>!t||e[n]===t)?yl:[60,63,120,109,108].every((t,n)=>e[n]===t)?cn:[0,0,0,0,102,116,121,112,97,118,105,102].every((t,n)=>!t||e[n]===t)?bl:null}async function dn(e,t,n,r,i){let s=Fe(),o={...n,...mr(Fo[t],n),...mr(r,n)};if(t==="img"){let[a,u,l]=await yr(i.src);if(u===void 0&&l===void 0){if(i.width===void 0||i.height===void 0)throw new Error("Image size cannot be determined. Please provide the width and height of the image.");u=parseInt(i.width),l=parseInt(i.height)}let f=l/u,d=(o.borderLeftWidth||0)+(o.borderRightWidth||0)+(o.paddingLeft||0)+(o.paddingRight||0),g=(o.borderTopWidth||0)+(o.borderBottomWidth||0)+(o.paddingTop||0)+(o.paddingBottom||0),p=o.width||i.width,h=o.height||i.height,v=typeof p!="string"&&typeof h!="string";typeof p=="number"&&v&&(p-=d),typeof h=="number"&&v&&(h-=g),p===void 0&&h===void 0?(p=u,h=l):p===void 0?typeof h=="number"?p=h/f:e.setAspectRatio(1/f):h===void 0&&(typeof p=="number"?h=p*f:e.setAspectRatio(1/f)),o.width=v?p+d:p,o.height=v?h+g:h,o.__src=a}if(t==="svg"){let a=i.viewBox||i.viewbox,u=bt(a),l=u?u[3]/u[2]:null,{width:f,height:d}=i;typeof f>"u"&&d?l==null?f=0:typeof d=="string"&&d.endsWith("%")?f=parseInt(d)/l+"%":(d=be(d,n.fontSize,1,n),f=d/l):typeof d>"u"&&f?l==null?f=0:typeof f=="string"&&f.endsWith("%")?d=parseInt(f)*l+"%":(f=be(f,n.fontSize,1,n),d=f*l):(typeof f<"u"&&(f=be(f,n.fontSize,1,n)||f),typeof d<"u"&&(d=be(d,n.fontSize,1,n)||d),f||(f=u==null?void 0:u[2]),d||(d=u==null?void 0:u[3])),!o.width&&f&&(o.width=f),!o.height&&d&&(o.height=d)}return e.setDisplay(ce(o.display,{flex:s.DISPLAY_FLEX,none:s.DISPLAY_NONE},s.DISPLAY_FLEX,"display")),e.setAlignContent(ce(o.alignContent,{stretch:s.ALIGN_STRETCH,center:s.ALIGN_CENTER,"flex-start":s.ALIGN_FLEX_START,"flex-end":s.ALIGN_FLEX_END,"space-between":s.ALIGN_SPACE_BETWEEN,"space-around":s.ALIGN_SPACE_AROUND,baseline:s.ALIGN_BASELINE,normal:s.ALIGN_AUTO},s.ALIGN_AUTO,"alignContent")),e.setAlignItems(ce(o.alignItems,{stretch:s.ALIGN_STRETCH,center:s.ALIGN_CENTER,"flex-start":s.ALIGN_FLEX_START,"flex-end":s.ALIGN_FLEX_END,baseline:s.ALIGN_BASELINE,normal:s.ALIGN_AUTO},s.ALIGN_FLEX_START,"alignItems")),e.setAlignSelf(ce(o.alignSelf,{stretch:s.ALIGN_STRETCH,center:s.ALIGN_CENTER,"flex-start":s.ALIGN_FLEX_START,"flex-end":s.ALIGN_FLEX_END,baseline:s.ALIGN_BASELINE,normal:s.ALIGN_AUTO},s.ALIGN_AUTO,"alignSelf")),e.setJustifyContent(ce(o.justifyContent,{center:s.JUSTIFY_CENTER,"flex-start":s.JUSTIFY_FLEX_START,"flex-end":s.JUSTIFY_FLEX_END,"space-between":s.JUSTIFY_SPACE_BETWEEN,"space-around":s.JUSTIFY_SPACE_AROUND},s.JUSTIFY_FLEX_START,"justifyContent")),e.setFlexDirection(ce(o.flexDirection,{row:s.FLEX_DIRECTION_ROW,column:s.FLEX_DIRECTION_COLUMN,"row-reverse":s.FLEX_DIRECTION_ROW_REVERSE,"column-reverse":s.FLEX_DIRECTION_COLUMN_REVERSE},s.FLEX_DIRECTION_ROW,"flexDirection")),e.setFlexWrap(ce(o.flexWrap,{wrap:s.WRAP_WRAP,nowrap:s.WRAP_NO_WRAP,"wrap-reverse":s.WRAP_WRAP_REVERSE},s.WRAP_NO_WRAP,"flexWrap")),typeof e.setGap<"u"&&typeof e.getGap<"u"&&(typeof o.gap<"u"&&e.setGap(s.GUTTER_ALL,o.gap),typeof o.rowGap<"u"&&e.setGap(s.GUTTER_ROW,o.rowGap),typeof o.columnGap<"u"&&e.setGap(s.GUTTER_COLUMN,o.columnGap)),typeof o.flexBasis<"u"&&e.setFlexBasis(o.flexBasis),e.setFlexGrow(typeof o.flexGrow>"u"?0:o.flexGrow),e.setFlexShrink(typeof o.flexShrink>"u"?0:o.flexShrink),typeof o.maxHeight<"u"&&e.setMaxHeight(o.maxHeight),typeof o.maxWidth<"u"&&e.setMaxWidth(o.maxWidth),typeof o.minHeight<"u"&&e.setMinHeight(o.minHeight),typeof o.minWidth<"u"&&e.setMinWidth(o.minWidth),e.setOverflow(ce(o.overflow,{visible:s.OVERFLOW_VISIBLE,hidden:s.OVERFLOW_HIDDEN},s.OVERFLOW_VISIBLE,"overflow")),e.setMargin(s.EDGE_TOP,o.marginTop||0),e.setMargin(s.EDGE_BOTTOM,o.marginBottom||0),e.setMargin(s.EDGE_LEFT,o.marginLeft||0),e.setMargin(s.EDGE_RIGHT,o.marginRight||0),e.setBorder(s.EDGE_TOP,o.borderTopWidth||0),e.setBorder(s.EDGE_BOTTOM,o.borderBottomWidth||0),e.setBorder(s.EDGE_LEFT,o.borderLeftWidth||0),e.setBorder(s.EDGE_RIGHT,o.borderRightWidth||0),e.setPadding(s.EDGE_TOP,o.paddingTop||0),e.setPadding(s.EDGE_BOTTOM,o.paddingBottom||0),e.setPadding(s.EDGE_LEFT,o.paddingLeft||0),e.setPadding(s.EDGE_RIGHT,o.paddingRight||0),e.setPositionType(ce(o.position,{absolute:s.POSITION_TYPE_ABSOLUTE,relative:s.POSITION_TYPE_RELATIVE},s.POSITION_TYPE_RELATIVE,"position")),typeof o.top<"u"&&e.setPosition(s.EDGE_TOP,o.top),typeof o.bottom<"u"&&e.setPosition(s.EDGE_BOTTOM,o.bottom),typeof o.left<"u"&&e.setPosition(s.EDGE_LEFT,o.left),typeof o.right<"u"&&e.setPosition(s.EDGE_RIGHT,o.right),typeof o.height<"u"?e.setHeight(o.height):e.setHeightAuto(),typeof o.width<"u"?e.setWidth(o.width):e.setWidthAuto(),[o,sn(o)]}c();c();c();var Ho=[1,0,0,1,0,0];function kl(e,t,n){let r=[...Ho];for(let i of e){let s=Object.keys(i)[0],o=i[s];if(typeof o=="string")if(s==="translateX")o=parseFloat(o)/100*t,i[s]=o;else if(s==="translateY")o=parseFloat(o)/100*n,i[s]=o;else throw new Error(`Invalid transform: "${s}: ${o}".`);let a=o,u=[...Ho];switch(s){case"translateX":u[4]=a;break;case"translateY":u[5]=a;break;case"scale":u[0]=a,u[3]=a;break;case"scaleX":u[0]=a;break;case"scaleY":u[3]=a;break;case"rotate":{let l=a*Math.PI/180,f=Math.cos(l),d=Math.sin(l);u[0]=f,u[1]=d,u[2]=-d,u[3]=f;break}case"skewX":u[2]=Math.tan(a*Math.PI/180);break;case"skewY":u[1]=Math.tan(a*Math.PI/180);break}r=gt(u,r)}e.splice(0,e.length),e.push(...r),e.__resolved=!0}function xt({left:e,top:t,width:n,height:r},i,s,o){var l,f,d,g;let a;i.__resolved||kl(i,n,r);let u=i;if(s)a=u;else{let p=(f=o==null?void 0:o.xAbsolute)!=null?f:((l=o==null?void 0:o.xRelative)!=null?l:50)*n/100,h=(g=o==null?void 0:o.yAbsolute)!=null?g:((d=o==null?void 0:o.yRelative)!=null?d:50)*r/100,v=e+p,w=t+h;a=gt([1,0,0,1,v,w],gt(u,[1,0,0,1,-v,-w])),u.__parent&&(a=gt(u.__parent,a)),u.splice(0,6,...a)}return`matrix(${a.map(p=>p.toFixed(2)).join(",")})`}function jo({left:e,top:t,width:n,height:r,isInheritingTransform:i},s){let o="",a=1;return s.transform&&(o=xt({left:e,top:t,width:n,height:r},s.transform,i,s.transformOrigin)),s.opacity!==void 0&&(a=+s.opacity),{matrix:o,opacity:a}}function pn({id:e,content:t,filter:n,left:r,top:i,width:s,height:o,matrix:a,opacity:u,image:l,clipPathId:f,debug:d,shape:g,decorationShape:p},h){let v="";if(d&&(v=I("rect",{x:r,y:i-o,width:s,height:o,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:a||void 0,"clip-path":f?`url(#${f})`:void 0})),l){let b={href:l,x:r,y:i,width:s,height:o,transform:a||void 0,"clip-path":f?`url(#${f})`:void 0,style:h.filter?`filter:${h.filter}`:void 0};return[(n?`${n}<g filter="url(#satori_s-${e})">`:"")+I("image",{...b,opacity:u!==1?u:void 0})+(p||"")+(n?"</g>":"")+v,""]}let w={x:r,y:i,width:s,height:o,"font-weight":h.fontWeight,"font-style":h.fontStyle,"font-size":h.fontSize,"font-family":h.fontFamily,"letter-spacing":h.letterSpacing||void 0,transform:a||void 0,"clip-path":f?`url(#${f})`:void 0,style:h.filter?`filter:${h.filter}`:void 0};return[(n?`${n}<g filter="url(#satori_s-${e})">`:"")+I("text",{...w,fill:h.color,opacity:u!==1?u:void 0},t)+(p||"")+(n?"</g>":"")+v,g?I("text",w,t):""]}c();function Tl(e,t,n){return e.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(r,i,s,o){return i+(parseFloat(s)+t)+","+(parseFloat(o)+n)})}function Yo({id:e,width:t,height:n},r){if(!r.shadowColor||!r.shadowOffset||typeof r.shadowRadius>"u")return"";let i=r.shadowRadius*r.shadowRadius/4,s=Math.min(r.shadowOffset.width-i,0),o=Math.max(r.shadowOffset.width+i+t,t),a=Math.min(r.shadowOffset.height-i,0),u=Math.max(r.shadowOffset.height+i+n,n);return`<defs><filter id="satori_s-${e}" x="${s/t*100}%" y="${a/n*100}%" width="${(o-s)/t*100}%" height="${(u-a)/n*100}%"><feDropShadow dx="${r.shadowOffset.width}" dy="${r.shadowOffset.height}" stdDeviation="${r.shadowRadius/2}" flood-color="${r.shadowColor}" flood-opacity="1"/></filter></defs>`}function Xo({width:e,height:t,shape:n,opacity:r,id:i},s){if(!s.boxShadow)return null;let o="",a="";for(let u=s.boxShadow.length-1;u>=0;u--){let l="",f=s.boxShadow[u];f.spreadRadius&&f.inset&&(f.spreadRadius=-f.spreadRadius);let d=f.blurRadius*f.blurRadius/4+(f.spreadRadius||0),g=Math.min(-d-(f.inset?f.offsetX:0),0),p=Math.max(d+e-(f.inset?f.offsetX:0),e),h=Math.min(-d-(f.inset?f.offsetY:0),0),v=Math.max(d+t-(f.inset?f.offsetY:0),t),w=`satori_s-${i}-${u}`,b=`satori_ms-${i}-${u}`,y=f.spreadRadius?n.replace('stroke-width="0"',`stroke-width="${f.spreadRadius*2}"`):n;l+=I("mask",{id:b,maskUnits:"userSpaceOnUse"},I("rect",{x:0,y:0,width:s._viewportWidth,height:s._viewportHeight,fill:f.inset?"#000":"#fff"})+y.replace('fill="#fff"',f.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let _=y.replace(/d="([^"]+)"/,(O,k)=>'d="'+Tl(k,f.offsetX,f.offsetY)+'"').replace(/x="([^"]+)"/,(O,k)=>'x="'+(parseFloat(k)+f.offsetX)+'"').replace(/y="([^"]+)"/,(O,k)=>'y="'+(parseFloat(k)+f.offsetY)+'"');f.spreadRadius&&f.spreadRadius<0&&(l+=I("mask",{id:b+"-neg",maskUnits:"userSpaceOnUse"},_.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-f.spreadRadius*2}"`))),f.spreadRadius&&f.spreadRadius<0&&(_=I("g",{mask:`url(#${b}-neg)`},_)),l+=I("defs",{},I("filter",{id:w,x:`${g/e*100}%`,y:`${h/t*100}%`,width:`${(p-g)/e*100}%`,height:`${(v-h)/t*100}%`},I("feGaussianBlur",{stdDeviation:f.blurRadius/2,result:"b"})+I("feFlood",{"flood-color":f.color,in:"SourceGraphic",result:"f"})+I("feComposite",{in:"f",in2:"b",operator:f.inset?"out":"in"})))+I("g",{mask:`url(#${b})`,filter:`url(#${w})`,opacity:r},_),f.inset?a+=l:o+=l}return[o,a]}c();function hn({width:e,left:t,top:n,ascender:r,clipPathId:i},s){let{textDecorationColor:o,textDecorationStyle:a,textDecorationLine:u,fontSize:l}=s;if(!u||u==="none")return"";let f=Math.max(1,l*.1),d=u==="line-through"?n+r*.5:u==="underline"?n+r*1.1:n,g=a==="dashed"?`${f*1.2} ${f*2}`:a==="dotted"?`0 ${f*2}`:void 0;return I("line",{x1:t,y1:d,x2:t+e,y2:d,stroke:o,"stroke-width":f,"stroke-dasharray":g,"stroke-linecap":a==="dotted"?"round":"square","clip-path":i?`url(#${i})`:void 0})}async function*mn(e,t){var xo;let n=Fe(),{parentStyle:r,inheritedStyle:i,parent:s,font:o,id:a,isInheritingTransform:u,debug:l,embedFont:f,graphemeImages:d,locale:g,canLoadAdditionalAssets:p}=t;r.textTransform==="uppercase"?e=e.toLocaleUpperCase(g):r.textTransform==="lowercase"?e=e.toLocaleLowerCase(g):r.textTransform==="capitalize"&&(e=Me(e,"word",g).map(q=>Me(q,"grapheme",g).map((K,V)=>V===0?K.toLocaleUpperCase(g):K).join("")).join(""));let h=r.wordBreak==="break-word",v=ce(r.wordBreak,{normal:"word","break-all":"grapheme","break-word":"word","keep-all":"word"},"word","wordBreak"),w=Me(e,v,g),b=n.Node.create();b.setAlignItems(n.ALIGN_BASELINE),b.setJustifyContent(ce(r.textAlign,{left:n.JUSTIFY_FLEX_START,right:n.JUSTIFY_FLEX_END,center:n.JUSTIFY_CENTER,justify:n.JUSTIFY_SPACE_BETWEEN,start:n.JUSTIFY_FLEX_START,end:n.JUSTIFY_FLEX_END},n.JUSTIFY_FLEX_START,"textAlign")),s.insertChild(b,s.getChildCount());let{textAlign:y,textOverflow:_,whiteSpace:O,lineHeight:k,filter:C,_inheritedBackgroundClipTextPath:D}=r,L=r.fontSize,F=o.getEngine(L,k,r,g),G=p?w.filter(q=>!F.has(q)):[];yield G.map(q=>({word:q,locale:g})),G.length&&(F=o.getEngine(L,k,r,g));let B=[],W=[],$=[],te=[],Q=new Map,re=q=>{let K=0;for(let V of q){if(Q.has(V)){K+=Q.get(V);continue}let de=F.measure(V,r);Q.set(V,de),K+=de}return K},ie=0,A=[],N=0;for(let q of w){let K=!1,V=d&&d[q];O==="pre"?K=q[0]===`
|
|
6
|
+
`:O!=="nowrap"&&(V||vt.includes(q[0]))&&(K=!0),K?(O==="nowrap"?N+=re(A)+r.fontSize:(ie=Math.max(ie,re(A)),V&&(ie=Math.max(ie,r.fontSize))),A=[]):(!vt.includes(q[0])||!A.length)&&A.push(q===`
|
|
7
|
+
`?" ":q)}ie=Math.max(ie,re(A)+N);let H=s.getMinWidth(),M=s.getMaxWidth(),Oe=s.getWidth();isNaN(Oe.value)&&(isNaN(H.value)||H.unit===1&&H.value>ie)&&(isNaN(M.value)||M.unit===1&&(ie=Math.min(ie,M.value)),s.setMinWidth(ie)),typeof r.flexShrink>"u"&&s.setFlexShrink(1);let ct=["pre","pre-wrap","pre-line"].includes(O),Bu=!["pre","pre-wrap"].includes(O);b.setMeasureFunc(q=>{let K=0,V="",de=0,oe=0,pe=0,fe=-1,Ue=0,J=0,Ce=0;B=[],$=[0];for(let De=0;De<w.length;De++){let se=w[De],Ee=ct&&se===`
|
|
8
|
+
`;if(Bu&&vt.includes(se[0])&&!Ee)V||(V=" "),de=re([V]),te[De]=null;else{let he=Ee?0:d&&d[se]?r.fontSize:re([se]);Ee&&J===0&&(J=F.height(se)),oe||(V="",de=0);let ae=de||",.!?:-@)>]}%#".indexOf(se[0])<0,le=!oe||!!de,ze=De&&ae&&oe+de+he>q&&O!=="nowrap"&&O!=="pre";if(h&&he>q&&(!oe||ze||Ee)){let Xe=Me(se,"grapheme");w.splice(De,1,"",...Xe),oe>0&&(B.push(oe),W.push(Ce),K++,Ue+=J,oe=0,J=0,Ce=0,$.push(1),fe=-1);continue}if(Ee||ze)B.push(oe),W.push(Ce),K++,Ue+=J,oe=he,J=he?F.height(se):0,Ce=he?F.baseline(se):0,$.push(1),fe=-1,Ee||(pe=Math.max(pe,q));else{oe+=de+he;let Xe=F.height(se);Xe>J&&(J=Xe,Ce=F.baseline(se)),le&&$[$.length-1]++}V="",de=0,le&&fe++,pe=Math.max(pe,oe),te[De]={y:Ue,x:oe-he,width:he,line:K,lineIndex:fe}}}return oe&&(K++,B.push(oe),W.push(Ce),Ue+=J),{width:pe,height:Ue}});let[Uu,zu]=yield,Vr="",ar="",qe=i._inheritedClipPathId,po=i._inheritedMaskId,{left:ho,top:mo,width:ur,height:go}=b.getComputedLayout(),Hr=s.getComputedWidth()-s.getComputedPadding(n.EDGE_LEFT)-s.getComputedPadding(n.EDGE_RIGHT)-s.getComputedBorder(n.EDGE_LEFT)-s.getComputedBorder(n.EDGE_RIGHT),rt=Uu+ho,nt=zu+mo,{matrix:Le,opacity:lr}=jo({left:ho,top:mo,width:ur,height:go,isInheritingTransform:u},r),fr="";r.textShadowOffset&&(fr=Yo({width:ur,height:go,id:a},{shadowColor:r.textShadowColor,shadowOffset:r.textShadowOffset,shadowRadius:r.textShadowRadius}));let dt="",cr="",vo="",jr=-1,bo=_==="ellipsis"?re(["\u2026"]):0,Gu=_==="ellipsis"?re([" "]):0,dr={},Be=null,yo=0;for(let q=0;q<w.length;q++){if(!te[q])continue;let K=te[q],V=w[q],de=null,oe=d?d[V]:null,pe=K.y,fe=K.x,Ue=K.width,J=K.line;if(J===jr)continue;let Ce=!1;if(B.length>1){let ae=ur-B[J];if(y==="right"||y==="end")fe+=ae;else if(y==="center")fe+=ae/2;else if(y==="justify"&&J<B.length-1){let le=$[J];fe+=(le>1?ae/(le-1):0)*K.lineIndex,Ce=!0}}if(dr[J]||(dr[J]=[fe,Ce?ur:B[J]]),_==="ellipsis"&&B[J]>Hr&&K.x+Ue+bo+Gu>Hr){let ae=Me(V,"grapheme",g),le="",ze=0;for(let Yr of ae){let Xe=K.x+re([le+Yr]);if(le&&Xe+bo>Hr)break;le+=Yr,ze=Xe}V=le+"\u2026",jr=J,dr[J][1]=ze}let De=W[J],se=F.baseline(V),Ee=F.height(V),he=De-se;if(oe)pe+=0;else if(f){if(!vt.includes(V)&&w[q+1]&&!d[w[q+1]]&&te[q+1]&&pe===te[q+1].y){Be===null&&(yo=fe),Be=Be===null?V:Be+V;continue}let ae=Be===null?V:Be+V,le=Be===null?fe:yo,ze=K.width+fe-le;de=F.getSVG(ae,{...r,left:rt+le,top:nt+pe+se+he,letterSpacing:r.letterSpacing}),Be=null,l&&(vo+=I("rect",{x:rt+le,y:nt+pe+he,width:ze,height:Ee,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:Le||void 0,"clip-path":qe?`url(#${qe})`:void 0})+I("line",{x1:rt+fe,x2:rt+fe+K.width,y1:nt+pe+he+se,y2:nt+pe+he+se,stroke:"#14c000","stroke-width":1,transform:Le||void 0,"clip-path":qe?`url(#${qe})`:void 0}))}else pe+=se+he;if(r.textDecorationLine&&(J!==((xo=te[q+1])==null?void 0:xo.line)||jr===J)){let ae=dr[J];ae&&!ae[2]&&(dt+=hn({left:rt+ae[0],top:nt+Ee*+J,width:ae[1],ascender:F.baseline(V),clipPathId:qe},r),ae[2]=1)}if(de!==null)cr+=de+" ";else{let[ae,le]=pn({content:V,filter:fr,id:a,left:rt+fe,top:nt+pe,width:Ue,height:Ee,matrix:Le,opacity:lr,image:oe,clipPathId:qe,debug:l,shape:!!D,decorationShape:dt},r);Vr+=ae,ar+=le,dt=""}}if(cr){let q=r.color!=="transparent"&&lr!==0?I("path",{fill:r.color,d:cr,transform:Le||void 0,opacity:lr!==1?lr:void 0,"clip-path":qe?`url(#${qe})`:void 0,mask:po?`url(#${po})`:void 0,style:C?`filter:${C}`:void 0}):"";D&&(ar=I("path",{d:cr,transform:Le||void 0})),Vr+=(fr?fr+I("g",{filter:`url(#satori_s-${a})`},q+dt):q+dt)+vo}return ar&&(r._inheritedBackgroundClipTextPath.value+=ar),Vr}c();c();c();var gn=gn||{},Qo={type:"directional",value:"bottom"};gn.parse=function(){var e={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,zeroValue:/[0]/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},t="";function n(A){var N=new Error(t+": "+A);throw N.source=t,N}function r(){var A=i();return t.length>0&&n("Invalid input not EOF"),A}function i(){return O(s)}function s(){return o("linear-gradient",e.linearGradient,u,Qo)||o("repeating-linear-gradient",e.repeatingLinearGradient,u,Qo)||o("radial-gradient",e.radialGradient,g)||o("repeating-radial-gradient",e.repeatingRadialGradient,g)}function o(A,N,H,M){return a(N,function(Oe){var ct=H();return ct?re(e.comma)||n("Missing comma before color stops"):ct=M,{type:A,orientation:ct,colorStops:O(k)}})}function a(A,N){var H=re(A);if(H){re(e.startCall)||n("Missing (");var M=N(H);return re(e.endCall)||n("Missing )"),M}}function u(){return l()||f()||d()}function l(){return Q("directional",e.sideOrCorner,1)}function f(){return Q("angular",e.angleValue,1)}function d(){return Q("directional",e.zeroValue,0)}function g(){var A,N=p(),H;return N&&(A=[],A.push(N),H=t,re(e.comma)&&(N=p(),N?A.push(N):t=H)),A}function p(){var A=h()||v();if(A)A.at=b();else{var N=w();if(N){A=N;var H=b();H&&(A.at=H)}else{var M=y();M&&(A={type:"default-radial",at:M})}}return A}function h(){var A=Q("shape",/^(circle)/i,0);return A&&(A.style=te()||w()),A}function v(){var A=Q("shape",/^(ellipse)/i,0);return A&&(A.style=W()||w()),A}function w(){return Q("extent-keyword",e.extentKeywords,1)}function b(){if(Q("position",/^at/,0)){var A=y();return A||n("Missing positioning value"),A}}function y(){var A=_();if(A.x||A.y)return{type:"position",value:A}}function _(){return{x:W(),y:W()}}function O(A){var N=A(),H=[];if(N)for(H.push(N);re(e.comma);)N=A(),N?H.push(N):n("One extra comma");return H}function k(){var A=C();return A||n("Expected color definition"),A.length=W(),A}function C(){return L()||G()||F()||D()}function D(){return Q("literal",e.literalColor,0)}function L(){return Q("hex",e.hexColor,1)}function F(){return a(e.rgbColor,function(){return{type:"rgb",value:O(B)}})}function G(){return a(e.rgbaColor,function(){return{type:"rgba",value:O(B)}})}function B(){return re(e.number)[1]}function W(){return Q("%",e.percentageValue,1)||$()||te()}function $(){return Q("position-keyword",e.positionKeywords,1)}function te(){return Q("px",e.pixelValue,1)||Q("em",e.emValue,1)}function Q(A,N,H){var M=re(N);if(M)return{type:A,value:M[H]}}function re(A){var N,H;return H=/^[\n\r\t\s]+/.exec(t),H&&ie(H[0].length),N=A.exec(t),N&&ie(N[0].length),N}function ie(A){t=t.substr(A)}return function(A){return t=A.toString(),r()}}();var vn=gn;function Ol(e){return e.type==="literal"?e.value:e.type==="hex"?`#${e.value}`:e.type==="rgb"?`rgb(${e.value.join(",")})`:e.type==="rgba"?`rgba(${e.value.join(",")})`:"transparent"}function El(e){let t=0,n=0,r=0,i=0;return e.includes("top")?n=1:e.includes("bottom")&&(i=1),e.includes("left")?t=1:e.includes("right")&&(r=1),!t&&!r&&!n&&!i&&(n=1),[t,n,r,i]}function Pl(e,t){return typeof e=="string"&&e.endsWith("%")?t*parseFloat(e)/100:+e}function bn(e,{x:t,y:n,defaultX:r,defaultY:i}){return(e?e.split(" ").map(s=>{try{let o=new Ge(s);return o.type==="length"||o.type==="number"?o.value:o.value+o.unit}catch{return null}}).filter(s=>s!==null):[r,i]).map((s,o)=>Pl(s,[t,n][o]))}function Ko(e,t){let n=[];for(let o of t){let a=Ol(o);if(!n.length&&(n.push({offset:0,color:a}),typeof o.length>"u"||o.length.value==="0"))continue;let u=typeof o.length>"u"?void 0:o.length.type==="%"?o.length.value/100:o.length.value/e;n.push({offset:u,color:a})}n.length||n.push({offset:0,color:"transparent"});let r=n[n.length-1];r.offset!==1&&(typeof r.offset>"u"?r.offset=1:n.push({offset:1,color:r.color}));let i=0,s=1;for(let o=0;o<n.length;o++)if(typeof n[o].offset>"u"){for(s<o&&(s=o);typeof n[s].offset>"u";)s++;n[o].offset=(n[s].offset-n[i].offset)/(s-i)*(o-i)+n[i].offset}else i=o;return n}async function yn({id:e,width:t,height:n,left:r,top:i},{image:s,size:o,position:a,repeat:u}){u=u||"repeat";let l=u==="repeat-x"||u==="repeat",f=u==="repeat-y"||u==="repeat",d=bn(o,{x:t,y:n,defaultX:t,defaultY:n}),g=bn(a,{x:t,y:n,defaultX:0,defaultY:0});if(s.startsWith("linear-gradient(")){let p=vn.parse(s)[0],[h,v]=d,w,b,y,_;if(p.orientation.type==="directional")[w,b,y,_]=El(p.orientation.value);else if(p.orientation.type==="angular"){let L=+p.orientation.value/180*Math.PI-Math.PI/2,F=Math.cos(L),G=Math.sin(L);w=0,b=0,y=F,_=G,y<0&&(w-=y,y=0),_<0&&(b-=_,_=0)}let O=Ko(t,p.colorStops),k=`satori_bi${e}`,C=`satori_pattern_${e}`,D=I("pattern",{id:C,x:g[0]/t,y:g[1]/n,width:l?h/t:"1",height:f?v/n:"1",patternUnits:"objectBoundingBox"},I("linearGradient",{id:k,x1:w,y1:b,x2:y,y2:_},O.map(L=>I("stop",{offset:L.offset*100+"%","stop-color":L.color})).join(""))+I("rect",{x:0,y:0,width:h,height:v,fill:`url(#${k})`}));return[C,D]}if(s.startsWith("radial-gradient(")){let p=vn.parse(s)[0],h=p.orientation[0],[v,w]=d,b="circle",y=v/2,_=w/2;if(h.type==="shape"){if(b=h.value,h.at)if(h.at.type==="position")y=h.at.value.x.value,_=h.at.value.y.value;else throw new Error("orientation.at.type not implemented: "+h.at.type)}else throw new Error("orientation.type not implemented: "+h.type);let O=Ko(t,p.colorStops),k=`satori_radial_${e}`,C=`satori_pattern_${e}`,D=`satori_mask_${e}`,L={},F=Math.max(Math.abs(v-y),Math.abs(y)),G=Math.max(Math.abs(w-_),Math.abs(_));if(b==="circle")L.r=Math.sqrt(F*F+G*G);else if(b==="ellipse"){let $=G!==0?F/G:1;L.ry=Math.sqrt(F*F+G*G*$*$)/$,L.rx=L.ry*$}let B=I("pattern",{id:C,x:g[0]/t,y:g[1]/n,width:l?v/t:"1",height:f?w/n:"1",patternUnits:"objectBoundingBox"},I("radialGradient",{id:k},O.map($=>I("stop",{offset:$.offset,"stop-color":$.color})).join(""))+I("mask",{id:D},I("rect",{x:0,y:0,width:v,height:w,fill:"#fff"}))+I(b,{cx:y,cy:_,width:v,height:w,...L,fill:`url(#${k})`,mask:`url(#${D})`}));return[C,B]}if(s.startsWith("url(")){let p=bn(o,{x:t,y:n,defaultX:0,defaultY:0}),[h,v,w]=await yr(s.slice(4,-1)),b=p[0]||v,y=p[1]||w;return[`satori_bi${e}`,I("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:g[0]+r,y:g[1]+i,width:l?b:"100%",height:f?y:"100%"},I("image",{x:0,y:0,width:b,height:y,preserveAspectRatio:"none",href:h}))]}throw new Error(`Invalid background image: "${s}"`)}c();function Al([e,t]){return Math.round(e*1e3)===0&&Math.round(t*1e3)===0?0:Math.round(e*t/Math.sqrt(e*e+t*t)*1e3)/1e3}function xr(e,t,n){return n<e+t&&(n/2<e&&n/2<t?e=t=n/2:n/2<e?e=n-t:n/2<t&&(t=n-e)),[e,t]}function wr(e){e[0]=e[1]=Math.min(e[0],e[1])}function _r(e,t,n,r,i){if(typeof e=="string"){let s=e.split(" ").map(a=>a.trim()),o=!s[1]&&!s[0].endsWith("%");return s[1]=s[1]||s[0],[o,[Math.min(be(s[0],r,t,i,!0),t),Math.min(be(s[1],r,n,i,!0),n)]]}return typeof e=="number"?[!0,[Math.min(e,t),Math.min(e,n)]]:[!0,void 0]}function it({left:e,top:t,width:n,height:r},i,s){let{borderTopLeftRadius:o,borderTopRightRadius:a,borderBottomLeftRadius:u,borderBottomRightRadius:l,fontSize:f}=i,d,g,p,h;if([d,o]=_r(o,n,r,f,i),[g,a]=_r(a,n,r,f,i),[p,u]=_r(u,n,r,f,i),[h,l]=_r(l,n,r,f,i),!s&&!o&&!a&&!u&&!l)return"";o||(o=[0,0]),a||(a=[0,0]),u||(u=[0,0]),l||(l=[0,0]),[o[0],a[0]]=xr(o[0],a[0],n),[u[0],l[0]]=xr(u[0],l[0],n),[o[1],u[1]]=xr(o[1],u[1],r),[a[1],l[1]]=xr(a[1],l[1],r),d&&wr(o),g&&wr(a),p&&wr(u),h&&wr(l);let v=[];v[0]=[a,a],v[1]=[l,[-l[0],l[1]]],v[2]=[u,[-u[0],-u[1]]],v[3]=[o,[o[0],-o[1]]];let w=`h${n-o[0]-a[0]} a${v[0][0]} 0 0 1 ${v[0][1]}`,b=`v${r-a[1]-l[1]} a${v[1][0]} 0 0 1 ${v[1][1]}`,y=`h${l[0]+u[0]-n} a${v[2][0]} 0 0 1 ${v[2][1]}`,_=`v${u[1]+o[1]-r} a${v[3][0]} 0 0 1 ${v[3][1]}`;if(s){let k=function(W){let $=Al([o,a,l,u][W]);return W===0?[[e+o[0]-$,t+o[1]-$],[e+o[0],t]]:W===1?[[e+n-a[0]+$,t+a[1]-$],[e+n,t+a[1]]]:W===2?[[e+n-l[0]+$,t+r-l[1]+$],[e+n-l[0],t+r]]:[[e+u[0]-$,t+r-u[1]+$],[e,t+r-u[1]]]},O=s.indexOf(!1);if(!s.includes(!0))throw new Error("Invalid `partialSides`.");if(O===-1)O=0;else for(;!s[O];)O=(O+1)%4;let C="",D=k(O),L=`M${D[0]} A${v[(O+3)%4][0]} 0 0 1 ${D[1]}`,F=0;for(;F<4&&s[(O+F)%4];F++)C+=L+" ",L=[w,b,y,_][(O+F)%4];let G=(O+F)%4;C+=L.split(" ")[0];let B=k(G);return C+=` A${v[(G+3)%4][0]} 0 0 1 ${B[0]}`,C}return`M${e+o[0]},${t} ${w} ${b} ${y} ${_}`}c();c();c();function Jo(e,t,n){return n[e+"Width"]===n[t+"Width"]&&n[e+"Style"]===n[t+"Style"]&&n[e+"Color"]===n[t+"Color"]}function Zo({id:e,currentClipPathId:t,borderPath:n,borderType:r,left:i,top:s,width:o,height:a},u){if(!(u.borderTopWidth||u.borderRightWidth||u.borderBottomWidth||u.borderLeftWidth))return null;let f=`satori_bc-${e}`;return[I("clipPath",{id:f,"clip-path":t?`url(#${t})`:void 0},I(r,{x:i,y:s,width:o,height:a,d:n||void 0})),f]}function wt({left:e,top:t,width:n,height:r,props:i,asContentMask:s,maskBorderOnly:o},a){let u=["borderTop","borderRight","borderBottom","borderLeft"];if(!s&&!u.some(p=>a[p+"Width"]))return"";let l="",f=0;for(;f>0&&Jo(u[f],u[(f+3)%4],a);)f=(f+3)%4;let d=[!1,!1,!1,!1],g=[];for(let p=0;p<4;p++){let h=(f+p)%4,v=(f+p+1)%4,w=u[h],b=u[v];if(d[h]=!0,g=[a[w+"Width"],a[w+"Style"],a[w+"Color"],w],!Jo(w,b,a)){let y=(g[0]||0)+(s&&!o&&a[w.replace("border","padding")]||0);y&&(l+=I("path",{width:n,height:r,...i,fill:"none",stroke:s?"#000":g[2],"stroke-width":y*2,"stroke-dasharray":!s&&g[1]==="dashed"?y*2+" "+y:void 0,d:it({left:e,top:t,width:n,height:r},a,d)})),d=[!1,!1,!1,!1]}}if(d.some(Boolean)){let p=(g[0]||0)+(s&&!o&&a[g[3].replace("border","padding")]||0);p&&(l+=I("path",{width:n,height:r,...i,fill:"none",stroke:s?"#000":g[2],"stroke-width":p*2,"stroke-dasharray":!s&&g[1]==="dashed"?p*2+" "+p:void 0,d:it({left:e,top:t,width:n,height:r},a,d)}))}return l}function xn({id:e,left:t,top:n,width:r,height:i,matrix:s,borderOnly:o},a){let u=(a.borderLeftWidth||0)+(o?0:a.paddingLeft||0),l=(a.borderTopWidth||0)+(o?0:a.paddingTop||0),f=(a.borderRightWidth||0)+(o?0:a.paddingRight||0),d=(a.borderBottomWidth||0)+(o?0:a.paddingBottom||0),g={x:t+u,y:n+l,width:r-u-f,height:i-l-d};return I("mask",{id:e},I("rect",{...g,fill:"#fff",mask:a._inheritedMaskId?`url(#${a._inheritedMaskId})`:void 0})+wt({left:t,top:n,width:r,height:i,props:{transform:s||void 0},asContentMask:!0,maskBorderOnly:o},a))}function wn({left:e,top:t,width:n,height:r,path:i,matrix:s,id:o,currentClipPath:a,src:u},l){if(l.overflow!=="hidden"&&!u)return"";let f=xn({id:`satori_om-${o}`,left:e,top:t,width:n,height:r,matrix:s,borderOnly:!u},l);return I("clipPath",{id:`satori_cp-${o}`,"clip-path":a},I(i?"path":"rect",{x:e,y:t,width:n,height:r,d:i||void 0}))+f}async function _t({id:e,left:t,top:n,width:r,height:i,isInheritingTransform:s,src:o,debug:a},u){if(u.display==="none")return"";let l=!!o,f="rect",d="",g="",p=[],h=1,v="";u.backgroundColor&&p.push(u.backgroundColor),u.opacity!==void 0&&(h=+u.opacity),u.transform&&(d=xt({left:t,top:n,width:r,height:i},u.transform,s,u.transformOrigin));let w="";if(u.backgroundImage){let B=[];for(let W=0;W<u.backgroundImage.length;W++){let $=u.backgroundImage[W],te=await yn({id:e+"_"+W,width:r,height:i,left:t,top:n},$);te&&B.unshift(te)}for(let W of B)p.push(`url(#${W[0]})`),g+=W[1],W[2]&&(w+=W[2])}let b=it({left:t,top:n,width:r,height:i},u);b&&(f="path");let y=u._inheritedClipPathId,_=u._inheritedMaskId;a&&(v=I("rect",{x:t,y:n,width:r,height:i,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:d||void 0,"clip-path":y?`url(#${y})`:void 0}));let{backgroundClip:O,filter:k}=u,C=O==="text"?`url(#satori_bct-${e})`:y?`url(#${y})`:void 0,D=wn({left:t,top:n,width:r,height:i,path:b,id:e,matrix:d,currentClipPath:C,src:o},u),L=p.map(B=>I(f,{x:t,y:n,width:r,height:i,fill:B,d:b||void 0,transform:d||void 0,"clip-path":C,style:k?`filter:${k}`:void 0,mask:_?`url(#${_})`:void 0})).join(""),F=Zo({id:e,left:t,top:n,width:r,height:i,currentClipPathId:y,borderPath:b,borderType:f},u);if(l){let B=(u.borderLeftWidth||0)+(u.paddingLeft||0),W=(u.borderTopWidth||0)+(u.paddingTop||0),$=(u.borderRightWidth||0)+(u.paddingRight||0),te=(u.borderBottomWidth||0)+(u.paddingBottom||0),Q=u.objectFit==="contain"?"xMidYMid":u.objectFit==="cover"?"xMidYMid slice":"none";L+=I("image",{x:t+B,y:n+W,width:r-B-$,height:i-W-te,href:o,preserveAspectRatio:Q,transform:d||void 0,style:k?`filter:${k}`:void 0,"clip-path":`url(#satori_cp-${e})`,mask:`url(#satori_om-${e})`})}if(F){g+=F[0];let B=F[1];L+=wt({left:t,top:n,width:r,height:i,props:{transform:d||void 0,"clip-path":`url(#${B})`}},u)}let G=Xo({width:r,height:i,id:e,opacity:h,shape:I(f,{x:t,y:n,width:r,height:i,fill:"#fff",stroke:"#fff","stroke-width":0,d:b||void 0,transform:d||void 0,"clip-path":C,mask:_?`url(#${_})`:void 0})},u);return(g?I("defs",{},g):"")+(G?G[0]:"")+D+(h!==1?`<g opacity="${h}">`:"")+(w||L)+(h!==1?"</g>":"")+(G?G[1]:"")+v}c();var ts=pt(require("emoji-regex"),1),Il=new RegExp((0,ts.default)(),""),es={emoji:Il,symbol:/\p{Symbol}/u,math:/\p{Math}/u},St={"ja-JP":/\p{scx=Hira}|\p{scx=Kana}|\p{scx=Han}|[\u3000]|[\uFF00-\uFFEF]/u,"ko-KR":/\p{scx=Hangul}/u,"zh-CN":/\p{scx=Han}/u,"zh-TW":/\p{scx=Han}/u,"zh-HK":/\p{scx=Han}/u,"th-TH":/\p{scx=Thai}/u,"bn-IN":/\p{scx=Bengali}/u,"ar-AR":/\p{scx=Arabic}/u,"ta-IN":/\p{scx=Tamil}/u,"ml-IN":/\p{scx=Malayalam}/u,"he-IL":/\p{scx=Hebrew}/u,"te-IN":/\p{scx=Telugu}/u,devanagari:/\p{scx=Devanagari}/u,kannada:/\p{scx=Kannada}/u},Sr=Object.keys(St);function rs(e){return Sr.includes(e)}function ns(e,t){if(t&&St[t]&&St[t].test(e))return t;for(let n of Object.keys(es))if(es[n].test(e))return n;for(let n of Object.keys(St))if(St[n].test(e))return n;return"unknown"}function is(e){if(e)return Sr.find(t=>t.toLowerCase()===e.toLowerCase()||t.toLowerCase().startsWith(e.toLowerCase()))}async function*kt(e,t){let n=Fe(),{id:r,inheritedStyle:i,parent:s,font:o,debug:a,locale:u,embedFont:l=!0,graphemeImages:f,canLoadAdditionalAssets:d,getTwStyles:g}=t;if(e===null||typeof e>"u")return yield,yield,"";if(!on(e)||typeof e.type=="function"){let M;if(!on(e))M=mn(String(e),t),yield(await M.next()).value;else{if(Po(e.type))throw new Error("Class component is not supported.");M=kt(e.type(e.props),t),yield(await M.next()).value}await M.next();let Oe=yield;return(await M.next(Oe)).value}let{type:p,props:h}=e;if(h&&Ao(h))throw new Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:v,children:w,tw:b,lang:y=u}=h||{},_=is(y);if(b){let M=g(b,v);v=Object.assign(M,v)}let O=n.Node.create();s.insertChild(O,s.getChildCount());let[k,C]=await dn(O,p,i,v,h),D=k.transform===i.transform;if(D||(k.transform.__parent=i.transform),k.overflow==="hidden"&&(C._inheritedClipPathId=`satori_cp-${r}`,C._inheritedMaskId=`satori_om-${r}`),k.backgroundClip==="text"){let M={value:""};C._inheritedBackgroundClipTextPath=M,k._inheritedBackgroundClipTextPath=M}let L=Io(w),F=[],G=0,B=[];for(let M of L){let Oe=kt(M,{id:r+"-"+G++,parentStyle:k,inheritedStyle:C,isInheritingTransform:!0,parent:O,font:o,embedFont:l,debug:a,graphemeImages:f,canLoadAdditionalAssets:d,locale:_,getTwStyles:g});d?B.push(...(await Oe.next()).value||[]):await Oe.next(),F.push(Oe)}yield B;for(let M of F)await M.next();let[W,$]=yield,{left:te,top:Q,width:re,height:ie}=O.getComputedLayout();te+=W,Q+=$;let A="",N="",H="";if(p==="img"){let M=k.__src;N=await _t({id:r,left:te,top:Q,width:re,height:ie,src:M,isInheritingTransform:D,debug:a},k)}else if(p==="svg"){let M=k.color,Oe=Co(e,M);N=await _t({id:r,left:te,top:Q,width:re,height:ie,src:Oe,isInheritingTransform:D,debug:a},k)}else{let M=v==null?void 0:v.display;if(p==="div"&&w&&typeof w!="string"&&M!=="flex"&&M!=="none")throw new Error('Expected <div> to have explicit "display: flex" or "display: none" if it has more than one child node.');N=await _t({id:r,left:te,top:Q,width:re,height:ie,isInheritingTransform:D,debug:a},k)}for(let M of F)A+=(await M.next([te,Q])).value;return k._inheritedBackgroundClipTextPath&&(H+=I("clipPath",{id:`satori_bct-${r}`,"clip-path":k._inheritedClipPathId?`url(#${k._inheritedClipPathId})`:void 0},k._inheritedBackgroundClipTextPath.value)),H+N+A}c();var kr=pt(require("@shuding/opentype.js"),1);var os="unknown";function Rl(e,t,[n,r],[i,s]){if(n!==i)return n?!i||n===e?-1:i===e?1:e===400&&n===500||e===500&&n===400?-1:e===400&&i===500||e===500&&i===400?1:e<400?n<e&&i<e?i-n:n<e?-1:i<e?1:n-i:e<n&&e<i?n-i:e<n?-1:e<i?1:i-n:1;if(r!==s){if(r===t)return-1;if(s===t)return 1}return-1}var Tt=class{constructor(t){this.fonts=new Map;this.addFonts(t)}get({name:t,weight:n,style:r}){if(!this.fonts.has(t))return null;n==="normal"&&(n=400),n==="bold"&&(n=700),typeof n=="string"&&(n=Number.parseInt(n,10));let i=[...this.fonts.get(t)],s=i[0];for(let o=1;o<i.length;o++){let[,a,u]=s,[,l,f]=i[o];Rl(n,r,[a,u],[l,f])>0&&(s=i[o])}return s[0]}addFonts(t){for(let n of t){let{name:r,data:i,lang:s}=n;if(s&&!rs(s))throw new Error(`Invalid value for props 'lang': ${s}. The value must be one of the following: ${Sr}.`);let o=s!=null?s:os,a=kr.default.parse("buffer"in i?i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength):i,{lowMemory:!0}),u=a.charToGlyphIndex;a.charToGlyphIndex=f=>{let d=u.call(a,f);return d===0&&a._trackBrokenChars&&a._trackBrokenChars.push(f),d},this.defaultFont||(this.defaultFont=a);let l=`${r.toLowerCase()}_${o}`;this.fonts.has(l)||this.fonts.set(l,[]),this.fonts.get(l).push([a,n.weight,n.style])}}getEngine(t=16,n=1.2,{fontFamily:r,fontWeight:i=400,fontStyle:s="normal"},o){if(!this.fonts.size)throw new Error("No fonts are loaded. At least one font is required to calculate the layout.");r=(Array.isArray(r)?r:[r]).map(y=>y.toLowerCase());let a=r.map(y=>this.get({name:y,weight:i,style:s})).filter(Boolean),u=Array.from(this.fonts.keys()),l=[],f=[],d=[];for(let y of u)if(!r.includes(y))if(o){let _=Ll(y);_?_===o?l.push(this.get({name:y,weight:i,style:s})):f.push(this.get({name:y,weight:i,style:s})):d.push(this.get({name:y,weight:i,style:s}))}else d.push(this.get({name:y,weight:i,style:s}));let g=new Map,p=(y,_=!0)=>{let O=y.charCodeAt(0);if(g.has(O))return g.get(O);let k=[...a,...d,...l,..._?f:[]],C=k.find((D,L)=>!!D.charToGlyphIndex(y)||_&&L===k.length-1);return C&&g.set(O,C),C},h=(y,_=!1)=>{var k,C;return((_?(C=(k=y.tables)==null?void 0:k.os2)==null?void 0:C.sTypoAscender:0)||y.ascender)/y.unitsPerEm*t},v=(y,_=!1)=>{var k,C;return((_?(C=(k=y.tables)==null?void 0:k.os2)==null?void 0:C.sTypoDescender:0)||y.descender)/y.unitsPerEm*t},w=y=>p(y,!1),b={has:y=>{if(y===`
|
|
9
|
+
`)return!0;let _=w(y);return _?(_._trackBrokenChars=[],_.stringToGlyphs(y),_._trackBrokenChars.length?(_._trackBrokenChars=void 0,!1):!0):!1},baseline:(y,_=typeof y>"u"?a[0]:p(y))=>{let O=h(_,!0),k=v(_,!0),C=b.height(y,_),{yMax:D,yMin:L}=_.tables.head,F=O-k,G=(D/(D-L)-1)*F;return C*((1.2/n+1)/2)+G},height:(y,_=typeof y>"u"?a[0]:p(y))=>(h(_)-v(_))*(n/1.2),measure:(y,_)=>this.measure(p,y,_),getSVG:(y,_)=>this.getSVG(p,y,_)};return b}patchFontFallbackResolver(t,n){let r=[];t._trackBrokenChars=r;let i=t.stringToGlyphs;return t.stringToGlyphs=(s,...o)=>{let a=i.call(t,s,...o);for(let u=0;u<a.length;u++)if(a[u].unicode===void 0){let l=r.shift(),f=n(l);if(f!==t){let d=f.charToGlyph(l),g=t.unitsPerEm/f.unitsPerEm,p=new kr.default.Path;p.unitsPerEm=t.unitsPerEm,p.commands=d.path.commands.map(v=>{let w={...v};for(let b in w)typeof w[b]=="number"&&(w[b]*=g);return w});let h=new kr.default.Glyph({...d,advanceWidth:d.advanceWidth*g,xMin:d.xMin*g,xMax:d.xMax*g,yMin:d.yMin*g,yMax:d.yMax*g,path:p});a[u]=h}}return a},()=>{t.stringToGlyphs=i,t._trackBrokenChars=void 0}}measure(t,n,{fontSize:r,letterSpacing:i=0}){let s=t(n),o=this.patchFontFallbackResolver(s,t);try{return s.getAdvanceWidth(n,r,{letterSpacing:i/r})}finally{o()}}getSVG(t,n,{fontSize:r,top:i,left:s,letterSpacing:o=0}){let a=t(n),u=this.patchFontFallbackResolver(a,t);try{return r===0?"":a.getPath(n.replace(/\n/g,""),s,i,r,{letterSpacing:o/r}).toPathData(1)}finally{u()}}};function Ll(e){let t=e.split("_"),n=t[t.length-1];return n===os?void 0:n}c();function _n({width:e,height:t,content:n}){return I("svg",{width:e,height:t,viewBox:`0 0 ${e} ${t}`,xmlns:"http://www.w3.org/2000/svg"},n)}c();c();var $u=pt(mu());c();c();c();c();var y0=["ios","android","windows","macos","web"];function vu(e){return y0.includes(e)}var x0=["portrait","landscape"];function bu(e){return x0.includes(e)}var gu;(function(e){e.fontSize="fontSize",e.lineHeight="lineHeight"})(gu||(gu={}));var z;(function(e){e.rem="rem",e.em="em",e.px="px",e.percent="%",e.vw="vw",e.vh="vh",e.none="<no-css-unit>"})(z||(z={}));function Yi(e){return typeof e=="string"}function Xi(e){return typeof e=="object"}var Qi;function m(e){return{kind:"complete",style:e}}function ne(e,t={}){let{fractions:n}=t;if(n&&e.includes("/")){let[s="",o=""]=e.split("/",2),a=ne(s),u=ne(o);return!a||!u?null:[a[0]/u[0],u[1]]}let r=parseFloat(e);if(Number.isNaN(r))return null;let i=e.match(/(([a-z]{2,}|%))$/);if(!i)return[r,z.none];switch(i==null?void 0:i[1]){case"rem":return[r,z.rem];case"px":return[r,z.px];case"em":return[r,z.em];case"%":return[r,z.percent];case"vw":return[r,z.vw];case"vh":return[r,z.vh];default:return null}}function We(e,t,n={}){let r=Ie(t,n);return r===null?null:m({[e]:r})}function Ur(e,t,n){let r=Ie(t);return r!==null&&(n[e]=r),n}function xu(e,t){let n=Ie(t);return n===null?null:{[e]:n}}function Ie(e,t={}){if(e===void 0)return null;let n=ne(String(e),t);return n?Ye(...n,t):null}function Ye(e,t,n={}){let{isNegative:r,device:i}=n;switch(t){case z.rem:return e*16*(r?-1:1);case z.px:return e*(r?-1:1);case z.percent:return`${r?"-":""}${e}%`;case z.none:return e*(r?-1:1);case z.vw:return i!=null&&i.windowDimensions?i.windowDimensions.width*(e/100):(ve("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case z.vh:return i!=null&&i.windowDimensions?i.windowDimensions.height*(e/100):(ve("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function Ki(e){let t=ne(e);if(!t)return null;let[n,r]=t;switch(r){case z.rem:return n*16;case z.px:return n;default:return null}}var w0={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function Ji(e){return w0[e!=null?e:""]||"All"}function Zi(e){let t="All";return[e.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(r,i)=>(t=Ji(i),"")),t]}function et(e,t={}){if(e.includes("/")){let n=yu(e,{...t,fractions:!0});if(n)return n}return e[0]==="["&&(e=e.slice(1,-1)),yu(e,t)}function ke(e,t,n={}){let r=et(t,n);return r===null?null:m({[e]:r})}function yu(e,t={}){if(e==="px")return 1;let n=ne(e,t);if(!n)return null;let[r,i]=n;return t.fractions&&(i=z.percent,r*=100),i===z.none&&(r=r/4,i=z.rem),Ye(r,i,t)}function _0(...e){console.warn(...e)}function S0(...e){}var ve=typeof process>"u"||((Qi=process==null?void 0:process.env)===null||Qi===void 0?void 0:Qi.JEST_WORKER_ID)===void 0?_0:S0;var k0=[["aspect-square",m({aspectRatio:1})],["aspect-video",m({aspectRatio:16/9})],["items-center",m({alignItems:"center"})],["items-start",m({alignItems:"flex-start"})],["items-end",m({alignItems:"flex-end"})],["items-baseline",m({alignItems:"baseline"})],["items-stretch",m({alignItems:"stretch"})],["justify-start",m({justifyContent:"flex-start"})],["justify-end",m({justifyContent:"flex-end"})],["justify-center",m({justifyContent:"center"})],["justify-between",m({justifyContent:"space-between"})],["justify-around",m({justifyContent:"space-around"})],["justify-evenly",m({justifyContent:"space-evenly"})],["content-start",m({alignContent:"flex-start"})],["content-end",m({alignContent:"flex-end"})],["content-between",m({alignContent:"space-between"})],["content-around",m({alignContent:"space-around"})],["content-stretch",m({alignContent:"stretch"})],["content-center",m({alignContent:"center"})],["self-auto",m({alignSelf:"auto"})],["self-start",m({alignSelf:"flex-start"})],["self-end",m({alignSelf:"flex-end"})],["self-center",m({alignSelf:"center"})],["self-stretch",m({alignSelf:"stretch"})],["self-baseline",m({alignSelf:"baseline"})],["direction-inherit",m({direction:"inherit"})],["direction-ltr",m({direction:"ltr"})],["direction-rtl",m({direction:"rtl"})],["hidden",m({display:"none"})],["flex",m({display:"flex"})],["flex-row",m({flexDirection:"row"})],["flex-row-reverse",m({flexDirection:"row-reverse"})],["flex-col",m({flexDirection:"column"})],["flex-col-reverse",m({flexDirection:"column-reverse"})],["flex-wrap",m({flexWrap:"wrap"})],["flex-wrap-reverse",m({flexWrap:"wrap-reverse"})],["flex-nowrap",m({flexWrap:"nowrap"})],["flex-auto",m({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",m({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",m({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",m({overflow:"hidden"})],["overflow-visible",m({overflow:"visible"})],["overflow-scroll",m({overflow:"scroll"})],["absolute",m({position:"absolute"})],["relative",m({position:"relative"})],["italic",m({fontStyle:"italic"})],["not-italic",m({fontStyle:"normal"})],["oldstyle-nums",rr("oldstyle-nums")],["small-caps",rr("small-caps")],["lining-nums",rr("lining-nums")],["tabular-nums",rr("tabular-nums")],["proportional-nums",rr("proportional-nums")],["font-thin",m({fontWeight:"100"})],["font-100",m({fontWeight:"100"})],["font-extralight",m({fontWeight:"200"})],["font-200",m({fontWeight:"200"})],["font-light",m({fontWeight:"300"})],["font-300",m({fontWeight:"300"})],["font-normal",m({fontWeight:"normal"})],["font-400",m({fontWeight:"400"})],["font-medium",m({fontWeight:"500"})],["font-500",m({fontWeight:"500"})],["font-semibold",m({fontWeight:"600"})],["font-600",m({fontWeight:"600"})],["font-bold",m({fontWeight:"bold"})],["font-700",m({fontWeight:"700"})],["font-extrabold",m({fontWeight:"800"})],["font-800",m({fontWeight:"800"})],["font-black",m({fontWeight:"900"})],["font-900",m({fontWeight:"900"})],["include-font-padding",m({includeFontPadding:!0})],["remove-font-padding",m({includeFontPadding:!1})],["max-w-none",m({maxWidth:"99999%"})],["text-left",m({textAlign:"left"})],["text-center",m({textAlign:"center"})],["text-right",m({textAlign:"right"})],["text-justify",m({textAlign:"justify"})],["text-auto",m({textAlign:"auto"})],["underline",m({textDecorationLine:"underline"})],["line-through",m({textDecorationLine:"line-through"})],["no-underline",m({textDecorationLine:"none"})],["uppercase",m({textTransform:"uppercase"})],["lowercase",m({textTransform:"lowercase"})],["capitalize",m({textTransform:"capitalize"})],["normal-case",m({textTransform:"none"})],["w-auto",m({width:"auto"})],["h-auto",m({height:"auto"})],["shadow-sm",m({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.025,elevation:1})],["shadow",m({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.075,elevation:2})],["shadow-md",m({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:.125,elevation:3})],["shadow-lg",m({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.15,shadowRadius:8,elevation:8})],["shadow-xl",m({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.19,shadowRadius:20,elevation:12})],["shadow-2xl",m({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.25,shadowRadius:30,elevation:16})],["shadow-none",m({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],eo=k0;function rr(e){return{kind:"dependent",complete(t){(!t.fontVariant||!Array.isArray(t.fontVariant))&&(t.fontVariant=[]),t.fontVariant.push(e)}}}var nr=class{constructor(t){this.ir=new Map(eo),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...eo,...t!=null?t:[]])}getStyle(t){return this.styles.get(t)}setStyle(t,n){this.styles.set(t,n)}getIr(t){return this.ir.get(t)}setIr(t,n){this.ir.set(t,n)}getPrefixMatch(t){return this.prefixes.get(t)}setPrefixMatch(t,n){this.prefixes.set(t,n)}};c();c();function to(e,t,n={}){let r=t==null?void 0:t[e];if(!r)return ke("fontSize",e,n);if(typeof r=="string")return We("fontSize",r);let i={},[s,o]=r,a=xu("fontSize",s);if(a&&(i=a),typeof o=="string")return m(Ur("lineHeight",wu(o,i),i));let{lineHeight:u,letterSpacing:l}=o;return u&&Ur("lineHeight",wu(u,i),i),l&&Ur("letterSpacing",l,i),m(i)}function wu(e,t){let n=ne(e);if(n){let[r,i]=n;if((i===z.none||i===z.em)&&typeof t.fontSize=="number")return t.fontSize*r}return e}c();function ro(e,t){var n;let r=(n=t==null?void 0:t[e])!==null&&n!==void 0?n:e.startsWith("[")?e.slice(1,-1):e,i=ne(r);if(!i)return null;let[s,o]=i;if(o===z.none)return{kind:"dependent",complete(u){if(typeof u.fontSize!="number")return"relative line-height utilities require that font-size be set";u.lineHeight=u.fontSize*s}};let a=Ye(s,o);return a!==null?m({lineHeight:a}):null}c();function no(e,t,n,r,i){let s="";if(r[0]==="[")s=r.slice(1,-1);else{let l=i==null?void 0:i[r];if(l)s=l;else{let f=et(r);return f&&typeof f=="number"?_u(f,z.px,t,e):null}}if(s==="auto")return Su(t,e,"auto");let o=ne(s);if(!o)return null;let[a,u]=o;return n&&(a=-a),_u(a,u,t,e)}function _u(e,t,n,r){let i=Ye(e,t);return i===null?null:Su(n,r,i)}function Su(e,t,n){switch(e){case"All":return{kind:"complete",style:{[`${t}Top`]:n,[`${t}Right`]:n,[`${t}Bottom`]:n,[`${t}Left`]:n}};case"Bottom":case"Top":case"Left":case"Right":return{kind:"complete",style:{[`${t}${e}`]:n}};case"Vertical":return{kind:"complete",style:{[`${t}Top`]:n,[`${t}Bottom`]:n}};case"Horizontal":return{kind:"complete",style:{[`${t}Left`]:n,[`${t}Right`]:n}};default:return null}}c();function io(e){if(!e)return{};let t=Object.entries(e).reduce((i,[s,o])=>{let a=[0,1/0,0],u=typeof o=="string"?{min:o}:o,l=u.min?Ki(u.min):0;l===null?ve(`invalid screen config value: ${s}->min: ${u.min}`):a[0]=l;let f=u.max?Ki(u.max):1/0;return f===null?ve(`invalid screen config value: ${s}->max: ${u.max}`):a[1]=f,i[s]=a,i},{}),n=Object.values(t);n.sort((i,s)=>{let[o,a]=i,[u,l]=s;return a===1/0||l===1/0?o-u:a-l});let r=0;return n.forEach(i=>i[2]=r++),t}c();function oo(e,t){let n=t==null?void 0:t[e];if(!n)return null;if(typeof n=="string")return m({fontFamily:n});let r=n[0];return r?m({fontFamily:r}):null}c();function tt(e,t,n){if(!n)return null;let r;t.includes("/")&&([t="",r]=t.split("/",2));let i="";if(t.startsWith("[#")||t.startsWith("[rgb")?i=t.slice(1,-1):i=Ou(t,n),!i)return null;if(r){let s=Number(r);if(!Number.isNaN(s))return i=ku(i,s/100),m({[zr[e].color]:i})}return{kind:"dependent",complete(s){let o=zr[e].opacity,a=s[o];typeof a=="number"&&(i=ku(i,a)),s[zr[e].color]=i}}}function ir(e,t){let n=parseInt(t,10);if(Number.isNaN(n))return null;let r=n/100,i={[zr[e].opacity]:r};return{kind:"complete",style:i}}function ku(e,t){return e.startsWith("#")?e=T0(e):e.startsWith("rgb(")&&(e=e.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),e.replace(/, ?\d*\.?(\d+)\)$/,`, ${t})`)}function Tu(e){for(let t in e)t.startsWith("__opacity_")&&delete e[t]}var zr={bg:{opacity:"__opacity_bg",color:"backgroundColor"},text:{opacity:"__opacity_text",color:"color"},border:{opacity:"__opacity_border",color:"borderColor"},borderTop:{opacity:"__opacity_border",color:"borderTopColor"},borderBottom:{opacity:"__opacity_border",color:"borderBottomColor"},borderLeft:{opacity:"__opacity_border",color:"borderLeftColor"},borderRight:{opacity:"__opacity_border",color:"borderRightColor"},shadow:{opacity:"__opacity_shadow",color:"shadowColor"},tint:{opacity:"__opacity_tint",color:"tintColor"}};function T0(e){let t=e;e=e.replace(O0,(o,a,u,l)=>a+a+u+u+l+l);let n=E0.exec(e);if(!n)return ve(`invalid config hex color value: ${t}`),"rgba(0, 0, 0, 1)";let r=parseInt(n[1],16),i=parseInt(n[2],16),s=parseInt(n[3],16);return`rgba(${r}, ${i}, ${s}, 1)`}function Ou(e,t){let n=t[e];if(Yi(n))return n;if(Xi(n)&&Yi(n.DEFAULT))return n.DEFAULT;let[r="",...i]=e.split("-");for(;r!==e;){let s=t[r];if(Xi(s))return Ou(i.join("-"),s);if(i.length===0)return"";r=`${r}-${i.shift()}`}return""}var O0=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,E0=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;c();function Pu(e,t){let[n,r]=Zi(e);if(n.match(/^(-?(\d)+)?$/))return P0(n,r,t==null?void 0:t.borderWidth);if(n=n.replace(/^-/,""),["dashed","solid","dotted"].includes(n))return m({borderStyle:n});let s="border";switch(r){case"Bottom":s="borderBottom";break;case"Top":s="borderTop";break;case"Left":s="borderLeft";break;case"Right":s="borderRight";break}let o=tt(s,n,t==null?void 0:t.borderColor);if(o)return o;let a=`border${r==="All"?"":r}Width`;n=n.replace(/^-/,"");let u=n.slice(1,-1),l=ke(a,u);return typeof(l==null?void 0:l.style[a])!="number"?null:l}function P0(e,t,n){if(!n)return null;e=e.replace(/^-/,"");let i=n[e===""?"DEFAULT":e];if(i===void 0)return null;let s=`border${t==="All"?"":t}Width`;return We(s,i)}function Au(e,t){if(!t)return null;let[n,r]=Zi(e);n=n.replace(/^-/,""),n===""&&(n="DEFAULT");let i=`border${r==="All"?"":r}Radius`,s=t[n];if(s)return Eu(We(i,s));let o=ke(i,n);return typeof(o==null?void 0:o.style[i])!="number"?null:Eu(o)}function Eu(e){if((e==null?void 0:e.kind)!=="complete")return e;let t=e.style.borderTopRadius;t!==void 0&&(e.style.borderTopLeftRadius=t,e.style.borderTopRightRadius=t,delete e.style.borderTopRadius);let n=e.style.borderBottomRadius;n!==void 0&&(e.style.borderBottomLeftRadius=n,e.style.borderBottomRightRadius=n,delete e.style.borderBottomRadius);let r=e.style.borderLeftRadius;r!==void 0&&(e.style.borderBottomLeftRadius=r,e.style.borderTopLeftRadius=r,delete e.style.borderLeftRadius);let i=e.style.borderRightRadius;return i!==void 0&&(e.style.borderBottomRightRadius=i,e.style.borderTopRightRadius=i,delete e.style.borderRightRadius),e}c();function lt(e,t,n,r){let i=null;e==="inset"&&(t=t.replace(/^(x|y)-/,(a,u)=>(i=u==="x"?"x":"y","")));let s=r==null?void 0:r[t];if(s){let a=Ie(s,{isNegative:n});if(a!==null)return Iu(e,i,a)}let o=et(t,{isNegative:n});return o!==null?Iu(e,i,o):null}function Iu(e,t,n){if(e!=="inset")return m({[e]:n});switch(t){case null:return m({top:n,left:n,right:n,bottom:n});case"y":return m({top:n,bottom:n});case"x":return m({left:n,right:n})}}c();function or(e,t,n){var r;t=t.replace(/^-/,"");let i=t===""?"DEFAULT":t,s=Number((r=n==null?void 0:n[i])!==null&&r!==void 0?r:t);return Number.isNaN(s)?null:m({[`flex${e}`]:s})}function Ru(e,t){var n,r;if(e=(t==null?void 0:t[e])||e,["min-content","revert","unset"].includes(e))return null;if(e.match(/^\d+(\.\d+)?$/))return m({flexGrow:Number(e),flexBasis:"0%"});let i=e.match(/^(\d+)\s+(\d+)$/);if(i)return m({flexGrow:Number(i[1]),flexShrink:Number(i[2])});if(i=e.match(/^(\d+)\s+([^ ]+)$/),i){let s=Ie((n=i[2])!==null&&n!==void 0?n:"");return s?m({flexGrow:Number(i[1]),flexBasis:s}):null}if(i=e.match(/^(\d+)\s+(\d+)\s+(.+)$/),i){let s=Ie((r=i[3])!==null&&r!==void 0?r:"");return s?m({flexGrow:Number(i[1]),flexShrink:Number(i[2]),flexBasis:s}):null}return null}c();function so(e,t,n={},r){let i=r==null?void 0:r[t];return i!==void 0?We(e,i,n):ke(e,t,n)}function sr(e,t,n={},r){let i=Ie(r==null?void 0:r[t],n);return i?m({[e]:i}):(t==="screen"&&(t=e.includes("Width")?"100vw":"100vh"),ke(e,t,n))}c();function Lu(e,t,n){let r=n==null?void 0:n[e];if(r){let i=ne(r,{isNegative:t});if(!i)return null;let[s,o]=i;if(o===z.em)return A0(s);if(o===z.percent)return ve("percentage-based letter-spacing configuration currently unsupported, switch to `em`s, or open an issue if you'd like to see support added."),null;let a=Ye(s,o,{isNegative:t});return a!==null?m({letterSpacing:a}):null}return ke("letterSpacing",e,{isNegative:t})}function A0(e){return{kind:"dependent",complete(t){let n=t.fontSize;if(typeof n!="number"||Number.isNaN(n))return"tracking-X relative letter spacing classes require font-size to be set";t.letterSpacing=Math.round((e*n+Number.EPSILON)*100)/100}}}c();function Cu(e,t){let n=t==null?void 0:t[e];if(n){let i=ne(String(n));if(i)return m({opacity:i[0]})}let r=ne(e);return r?m({opacity:r[0]/100}):null}c();function Du(e){let t=parseInt(e,10);return Number.isNaN(t)?null:{kind:"complete",style:{shadowOpacity:t/100}}}function Fu(e){if(e.includes("/")){let[n="",r=""]=e.split("/",2),i=ao(n),s=ao(r);return i===null||s===null?null:{kind:"complete",style:{shadowOffset:{width:i,height:s}}}}let t=ao(e);return t===null?null:{kind:"complete",style:{shadowOffset:{width:t,height:t}}}}function ao(e){let t=et(e);return typeof t=="number"?t:null}var ft=class{constructor(t,n={},r,i,s){var o,a,u,l,f,d;this.config=n,this.cache=r,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=i;let g=t.trim().split(":"),p=[];g.length===1?this.string=t:(this.string=(o=g.pop())!==null&&o!==void 0?o:"",p=g),this.char=this.string[0];let h=io((a=this.config.theme)===null||a===void 0?void 0:a.screens);for(let v of p)if(h[v]){let w=(u=h[v])===null||u===void 0?void 0:u[2];w!==void 0&&(this.order=((l=this.order)!==null&&l!==void 0?l:0)+w);let b=(f=i.windowDimensions)===null||f===void 0?void 0:f.width;if(b){let[y,_]=(d=h[v])!==null&&d!==void 0?d:[0,0];(b<=y||b>_)&&(this.isNull=!0)}else this.isNull=!0}else vu(v)?this.isNull=v!==s:bu(v)?i.windowDimensions?(i.windowDimensions.width>i.windowDimensions.height?"landscape":"portrait")!==v?this.isNull=!0:this.incrementOrder():this.isNull=!0:v==="retina"?i.pixelDensity===2?this.incrementOrder():this.isNull=!0:v==="dark"?i.colorScheme!=="dark"?this.isNull=!0:this.incrementOrder():this.handlePossibleArbitraryBreakpointPrefix(v)||(this.isNull=!0)}parse(){if(this.isNull)return{kind:"null"};let t=this.cache.getIr(this.rest);if(t)return t;this.parseIsNegative();let n=this.parseUtility();return n?this.order!==void 0?{kind:"ordered",order:this.order,styleIr:n}:n:{kind:"null"}}parseUtility(){var t,n,r,i,s;let o=this.config.theme,a=null;switch(this.char){case"m":case"p":{let u=this.peekSlice(1,3).match(/^(t|b|r|l|x|y)?-/);if(u){let l=this.char==="m"?"margin":"padding";this.advance(((n=(t=u[0])===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+1);let f=Ji(u[1]),d=no(l,f,this.isNegative,this.rest,(r=this.config.theme)===null||r===void 0?void 0:r[l]);if(d)return d}}}if(this.consumePeeked("h-")&&(a=so("height",this.rest,this.context,o==null?void 0:o.height),a)||this.consumePeeked("w-")&&(a=so("width",this.rest,this.context,o==null?void 0:o.width),a)||this.consumePeeked("min-w-")&&(a=sr("minWidth",this.rest,this.context,o==null?void 0:o.minWidth),a)||this.consumePeeked("min-h-")&&(a=sr("minHeight",this.rest,this.context,o==null?void 0:o.minHeight),a)||this.consumePeeked("max-w-")&&(a=sr("maxWidth",this.rest,this.context,o==null?void 0:o.maxWidth),a)||this.consumePeeked("max-h-")&&(a=sr("maxHeight",this.rest,this.context,o==null?void 0:o.maxHeight),a)||this.consumePeeked("leading-")&&(a=ro(this.rest,o==null?void 0:o.lineHeight),a)||this.consumePeeked("text-")&&(a=to(this.rest,o==null?void 0:o.fontSize,this.context),a||(a=tt("text",this.rest,o==null?void 0:o.textColor),a)||this.consumePeeked("opacity-")&&(a=ir("text",this.rest),a))||this.consumePeeked("font-")&&(a=oo(this.rest,o==null?void 0:o.fontFamily),a)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&ve("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),a=We("aspectRatio",this.rest,{fractions:!0}),a)||this.consumePeeked("tint-")&&(a=tt("tint",this.rest,o==null?void 0:o.colors),a)||this.consumePeeked("bg-")&&(a=tt("bg",this.rest,o==null?void 0:o.backgroundColor),a||this.consumePeeked("opacity-")&&(a=ir("bg",this.rest),a))||this.consumePeeked("border")&&(a=Pu(this.rest,o),a||this.consumePeeked("-opacity-")&&(a=ir("border",this.rest),a))||this.consumePeeked("rounded")&&(a=Au(this.rest,o==null?void 0:o.borderRadius),a)||this.consumePeeked("bottom-")&&(a=lt("bottom",this.rest,this.isNegative,o==null?void 0:o.inset),a)||this.consumePeeked("top-")&&(a=lt("top",this.rest,this.isNegative,o==null?void 0:o.inset),a)||this.consumePeeked("left-")&&(a=lt("left",this.rest,this.isNegative,o==null?void 0:o.inset),a)||this.consumePeeked("right-")&&(a=lt("right",this.rest,this.isNegative,o==null?void 0:o.inset),a)||this.consumePeeked("inset-")&&(a=lt("inset",this.rest,this.isNegative,o==null?void 0:o.inset),a)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?a=or("Grow",this.rest,o==null?void 0:o.flexGrow):this.consumePeeked("shrink")?a=or("Shrink",this.rest,o==null?void 0:o.flexShrink):a=Ru(this.rest,o==null?void 0:o.flex),a)||this.consumePeeked("grow")&&(a=or("Grow",this.rest,o==null?void 0:o.flexGrow),a)||this.consumePeeked("shrink")&&(a=or("Shrink",this.rest,o==null?void 0:o.flexShrink),a)||this.consumePeeked("shadow-color-opacity-")&&(a=ir("shadow",this.rest),a)||this.consumePeeked("shadow-opacity-")&&(a=Du(this.rest),a)||this.consumePeeked("shadow-offset-")&&(a=Fu(this.rest),a)||this.consumePeeked("shadow-radius-")&&(a=ke("shadowRadius",this.rest),a)||this.consumePeeked("shadow-")&&(a=tt("shadow",this.rest,o==null?void 0:o.colors),a))return a;if(this.consumePeeked("elevation-")){let u=parseInt(this.rest,10);if(!Number.isNaN(u))return m({elevation:u})}if(this.consumePeeked("opacity-")&&(a=Cu(this.rest,o==null?void 0:o.opacity),a)||this.consumePeeked("tracking-")&&(a=Lu(this.rest,this.isNegative,o==null?void 0:o.letterSpacing),a))return a;if(this.consumePeeked("z-")){let u=Number((s=(i=o==null?void 0:o.zIndex)===null||i===void 0?void 0:i[this.rest])!==null&&s!==void 0?s:this.rest);if(!Number.isNaN(u))return m({zIndex:u})}return ve(`\`${this.rest}\` unknown or invalid utility`),null}handlePossibleArbitraryBreakpointPrefix(t){var n;if(t[0]!=="m")return!1;let r=t.match(/^(min|max)-(w|h)-\[([^\]]+)\]$/);if(!r)return!1;if(!(!((n=this.context.device)===null||n===void 0)&&n.windowDimensions))return this.isNull=!0,!0;let i=this.context.device.windowDimensions,[,s="",o="",a=""]=r,u=o==="w"?i.width:i.height,l=ne(a,this.context);if(l===null)return this.isNull=!0,!0;let[f,d]=l;return d!=="px"&&(this.isNull=!0),(s==="min"?u>=f:u<=f)?this.incrementOrder():this.isNull=!0,!0}advance(t=1){this.position+=t,this.char=this.string[this.position]}get rest(){return this.peekSlice(0,this.string.length)}peekSlice(t,n){return this.string.slice(this.position+t,this.position+n)}consumePeeked(t){return this.peekSlice(0,t.length)===t?(this.advance(t.length),!0):!1}parseIsNegative(){this.char==="-"&&(this.advance(),this.isNegative=!0,this.context.isNegative=!0)}incrementOrder(){var t;this.order=((t=this.order)!==null&&t!==void 0?t:0)+1}};c();function Mu(e){let t=[],n=null;return e.forEach(r=>{if(typeof r=="string")t=[...t,...uo(r)];else if(Array.isArray(r))t=[...t,...r.flatMap(uo)];else if(typeof r=="object"&&r!==null)for(let[i,s]of Object.entries(r))typeof s=="boolean"?t=[...t,...s?uo(i):[]]:n?n[i]=s:n={[i]:s}}),[t.filter(Boolean).filter(I0),n]}function uo(e){return e.trim().split(/\s+/)}function I0(e,t,n){return n.indexOf(e)===t}c();function Nu(e){var t;return(t=e==null?void 0:e.reduce((n,r)=>({...n,...R0(r.handler)}),{}))!==null&&t!==void 0?t:{}}function R0(e){let t={};return e({addUtilities:n=>{t=n},...L0}),t}function Re(e){throw new Error(`tailwindcss plugin function argument object prop "${e}" not implemented`)}var L0={addComponents:Re,addBase:Re,addVariant:Re,e:Re,prefix:Re,theme:Re,variants:Re,config:Re,corePlugins:Re,matchUtilities:Re,postcss:null};function Wu(e,t){let n=(0,$u.default)(C0(e)),r={},i=Nu(n.plugins),s={},o=Object.entries(i).map(([h,v])=>typeof v=="string"?(s[h]=v,[h,{kind:"null"}]):[h,m(v)]).filter(([,h])=>h.kind!=="null");function a(){return[r.windowDimensions?`w${r.windowDimensions.width}`:!1,r.windowDimensions?`h${r.windowDimensions.height}`:!1,r.fontScale?`fs${r.fontScale}`:!1,r.colorScheme==="dark"?"dark":!1,r.pixelDensity===2?"retina":!1].filter(Boolean).join("--")||"default"}let u=a(),l={};function f(){let h=l[u];if(h)return h;let v=new nr(o);return l[u]=v,v}function d(...h){let v=f(),w={},b=[],y=[],[_,O]=Mu(h),k=_.join(" "),C=v.getStyle(k);if(C)return{...C,...O||{}};for(let D of _){let L=v.getIr(D);if(!L&&D in s){let G=d(s[D]);v.setIr(D,m(G)),w={...w,...G};continue}switch(L=new ft(D,n,v,r,t).parse(),L.kind){case"complete":w={...w,...L.style},v.setIr(D,L);break;case"dependent":b.push(L);break;case"ordered":y.push(L);break;case"null":v.setIr(D,L);break}}if(y.length>0){y.sort((D,L)=>D.order-L.order);for(let D of y)switch(D.styleIr.kind){case"complete":w={...w,...D.styleIr.style};break;case"dependent":b.push(D.styleIr);break}}if(b.length>0){for(let D of b){let L=D.complete(w);L&&ve(L)}Tu(w)}return k!==""&&v.setStyle(k,w),O&&(w={...w,...O}),w}function g(h){let v=d(h.split(/\s+/g).map(w=>w.replace(/^(bg|text|border)-/,"")).map(w=>`bg-${w}`).join(" "));return typeof v.backgroundColor=="string"?v.backgroundColor:void 0}let p=(h,...v)=>{let w="";return h.forEach((b,y)=>{var _;w+=b+((_=v[y])!==null&&_!==void 0?_:"")}),d(w)};return p.style=d,p.color=g,p.prefixMatch=(...h)=>{let v=h.sort().join(":"),w=f(),b=w.getPrefixMatch(v);if(b!==void 0)return b;let O=new ft(`${v}:flex`,n,w,r,t).parse().kind!=="null";return w.setPrefixMatch(v,O),O},p.setWindowDimensions=h=>{r.windowDimensions=h,u=a()},p.setFontScale=h=>{r.fontScale=h,u=a()},p.setPixelDensity=h=>{r.pixelDensity=h,u=a()},p.setColorScheme=h=>{r.colorScheme=h,u=a()},p}function C0(e){return{...e,content:["_no_warnings_please"]}}var F0={plugins:[{handler:({addUtilities:e})=>{e({"shadow-sm":{boxShadow:"0 1px 2px 0 rgb(0 0 0 / 0.05)"},shadow:{boxShadow:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)"},"shadow-md":{boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"},"shadow-lg":{boxShadow:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)"},"shadow-xl":{boxShadow:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"},"shadow-2xl":{boxShadow:"0 25px 50px -12px rgb(0 0 0 / 0.25)"},"shadow-inner":{boxShadow:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"},"shadow-none":{boxShadow:"0 0 #0000"}})}}]};function M0(){return Wu(F0,"web")}var Gr;function lo({width:e,height:t}){return Gr||(Gr=M0()),Gr.setWindowDimensions({width:+e,height:+t}),Gr}var fo=new WeakMap;async function co(e,t){let n=Fe();if(!n||!n.Node)throw new Error("Satori is not initialized: expect `yoga` to be loaded, got "+n);t.fonts=t.fonts||[];let r;fo.has(t.fonts)?r=fo.get(t.fonts):fo.set(t.fonts,r=new Tt(t.fonts));let i="width"in t?t.width:void 0,s="height"in t?t.height:void 0,o=n.Node.create();i&&o.setWidth(i),s&&o.setHeight(s),o.setFlexDirection(n.FLEX_DIRECTION_ROW),o.setFlexWrap(n.WRAP_WRAP),o.setAlignContent(n.ALIGN_AUTO),o.setAlignItems(n.ALIGN_FLEX_START),o.setJustifyContent(n.JUSTIFY_FLEX_START),o.setOverflow(n.OVERFLOW_HIDDEN);let a={...t.graphemeImages},u=new Set,l=kt(e,{id:"id",parentStyle:{},inheritedStyle:{fontSize:16,fontWeight:"normal",fontFamily:"serif",fontStyle:"normal",lineHeight:1.2,color:"black",opacity:1,whiteSpace:"normal",_viewportWidth:i,_viewportHeight:s},parent:o,font:r,embedFont:t.embedFont,debug:t.debug,graphemeImages:a,canLoadAdditionalAssets:!!t.loadAdditionalAsset,getTwStyles:(h,v)=>{let b={...lo({width:i,height:s})([h])};return typeof b.lineHeight=="number"&&(b.lineHeight=b.lineHeight/(+b.fontSize||v.fontSize||16)),b.shadowColor&&b.boxShadow&&(b.boxShadow=b.boxShadow.replace(/rgba?\([^)]+\)/,b.shadowColor)),b}}),f=(await l.next()).value;if(t.loadAdditionalAsset&&f.length){let h=N0(f),v=[],w={};await Promise.all(Object.entries(h).flatMap(([b,y])=>y.map(_=>{let O=`${b}_${_}`;return u.has(O)?null:(u.add(O),t.loadAdditionalAsset(b,_).then(k=>{typeof k=="string"?w[_]=k:k&&v.push(k)}))}))),r.addFonts(v),Object.assign(a,w)}await l.next(),o.calculateLayout(i,s,n.DIRECTION_LTR);let d=(await l.next([0,0])).value,g=o.getComputedWidth(),p=o.getComputedHeight();return o.freeRecursive(),_n({width:g,height:p,content:d})}function N0(e){let t={},n={};for(let{word:r,locale:i}of e){let s=ns(r,i);n[s]=n[s]||"",n[s]+=r}return Object.keys(n).forEach(r=>{t[r]=t[r]||[],r==="emoji"?t[r].push(...qu(Me(n[r],"grapheme"))):(t[r][0]=t[r][0]||"",t[r][0]+=qu(Me(n[r],"grapheme",r==="unknown"?void 0:r)).join(""))}),t}function qu(e){return Array.from(new Set(e))}0&&(module.exports={init});
|
|
10
10
|
//# sourceMappingURL=index.cjs.map
|