satori 0.12.2 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.wasm.cjs +6 -6
- package/dist/index.wasm.cjs.map +1 -1
- package/dist/index.wasm.js +6 -6
- package/dist/index.wasm.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var $l=Object.create;var Rr=Object.defineProperty;var ql=Object.getOwnPropertyDescriptor;var zl=Object.getOwnPropertyNames;var Ul=Object.getPrototypeOf,Gl=Object.prototype.hasOwnProperty;var En=(e,t)=>()=>(e&&(t=e(e=0)),t);var k=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Lr=(e,t)=>{for(var n in t)Rr(e,n,{get:t[n],enumerable:!0})},Yo=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of zl(t))!Gl.call(e,i)&&i!==n&&Rr(e,i,{get:()=>t[i],enumerable:!(r=ql(t,i))||r.enumerable});return e};var He=(e,t,n)=>(n=e!=null?$l(Ul(e)):{},Yo(t||!e||!e.__esModule?Rr(n,"default",{value:e,enumerable:!0}):n,e)),Ot=e=>Yo(Rr({},"__esModule",{value:!0}),e);var Xo={};Lr(Xo,{getYogaModule:()=>jl});async function jl(){let{default:e}=await import("yoga-wasm-web/asm");return e()}var Qo=En(()=>{});var Jn=k(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Object.defineProperty(Kn,"default",{enumerable:!0,get:()=>Vf});function Vf(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 ts=k(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Object.defineProperty(Zn,"default",{enumerable:!0,get:()=>Yf});var Yf=["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 rs=k(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});Object.defineProperty(ei,"default",{enumerable:!0,get:()=>Xf});function Xf(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 ti=k((pb,ns)=>{ns.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 en={};Lr(en,{default:()=>Qf});var Qf,tn=En(()=>{Qf={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 is=k(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});Object.defineProperty(ri,"default",{enumerable:!0,get:()=>Zf});var Kf=Jf((tn(),Ot(en)));function Jf(e){return e&&e.__esModule?e:{default:e}}function Gt({version:e,from:t,to:n}){Kf.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 Zf={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 Gt({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return Gt({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return Gt({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return Gt({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return Gt({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}});var os=k(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});Object.defineProperty(ni,"defaults",{enumerable:!0,get:()=>ec});function ec(e,...t){for(let i of t){for(let o in i){var n;!(e==null||(n=e.hasOwnProperty)===null||n===void 0)&&n.call(e,o)||(e[o]=i[o])}for(let o of Object.getOwnPropertySymbols(i)){var r;!(e==null||(r=e.hasOwnProperty)===null||r===void 0)&&r.call(e,o)||(e[o]=i[o])}}return e}});var us=k(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});Object.defineProperty(ii,"toPath",{enumerable:!0,get:()=>tc});function tc(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 as=k(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});Object.defineProperty(oi,"normalizeConfig",{enumerable:!0,get:()=>nc});var jt=rc((tn(),Ot(en)));function ss(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(ss=function(r){return r?n:t})(e)}function rc(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=ss(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var u=i?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(r,o,u):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function nc(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&&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&&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})()||jt.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:o,safelist:u}=e;return Array.isArray(u)?u:Array.isArray(i==null?void 0:i.safelist)?i.safelist:Array.isArray(o==null?void 0:o.safelist)?o.safelist:Array.isArray(o==null||(r=o.options)===null||r===void 0?void 0:r.safelist)?o.options.safelist:[]})(),typeof e.prefix=="function")jt.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 u,s,a,l,f,c,p,d,h,m;return!((u=e.purge)===null||u===void 0)&&u.extract?e.purge.extract:!((s=e.content)===null||s===void 0)&&s.extract?e.content.extract:!((a=e.purge)===null||a===void 0||(l=a.extract)===null||l===void 0)&&l.DEFAULT?e.purge.extract.DEFAULT:!((f=e.content)===null||f===void 0||(c=f.extract)===null||c===void 0)&&c.DEFAULT?e.content.extract.DEFAULT:!((p=e.purge)===null||p===void 0||(d=p.options)===null||d===void 0)&&d.extractors?e.purge.options.extractors:!((h=e.content)===null||h===void 0||(m=h.options)===null||m===void 0)&&m.extractors?e.content.options.extractors:{}})(),i={},o=(()=>{var u,s,a,l;if(!((u=e.purge)===null||u===void 0||(s=u.options)===null||s===void 0)&&s.defaultExtractor)return e.purge.options.defaultExtractor;if(!((a=e.content)===null||a===void 0||(l=a.options)===null||l===void 0)&&l.defaultExtractor)return e.content.options.defaultExtractor})();if(o!==void 0&&(i.DEFAULT=o),typeof r=="function")i.DEFAULT=r;else if(Array.isArray(r))for(let{extensions:u,extractor:s}of r??[])for(let a of u)i[a]=s;else typeof r=="object"&&r!==null&&Object.assign(i,r);return i})(),transform:(()=>{let r=(()=>{var o,u,s,a,l,f;return!((o=e.purge)===null||o===void 0)&&o.transform?e.purge.transform:!((u=e.content)===null||u===void 0)&&u.transform?e.content.transform:!((s=e.purge)===null||s===void 0||(a=s.transform)===null||a===void 0)&&a.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)){jt.default.warn("invalid-glob-braces",[`The glob pattern ${(0,jt.dim)(r)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,jt.dim)(r.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return e}});var ls=k(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});Object.defineProperty(ui,"default",{enumerable:!0,get:()=>ic});function ic(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}});var fs=k(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});Object.defineProperty(ai,"cloneDeep",{enumerable:!0,get:()=>si});function si(e){return Array.isArray(e)?e.map(t=>si(t)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).map(([t,n])=>[t,si(n)])):e}});var li=k((rn,cs)=>{"use strict";rn.__esModule=!0;rn.default=sc;function oc(e){for(var t=e.toLowerCase(),n="",r=!1,i=0;i<6&&t[i]!==void 0;i++){var o=t.charCodeAt(i),u=o>=97&&o<=102||o>=48&&o<=57;if(r=o===32,!u)break;n+=t[i]}if(n.length!==0){var s=parseInt(n,16),a=s>=55296&&s<=57343;return a||s===0||s>1114111?["\uFFFD",n.length+(r?1:0)]:[String.fromCodePoint(s),n.length+(r?1:0)]}}var uc=/\\/;function sc(e){var t=uc.test(e);if(!t)return e;for(var n="",r=0;r<e.length;r++){if(e[r]==="\\"){var i=oc(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}cs.exports=rn.default});var ps=k((nn,ds)=>{"use strict";nn.__esModule=!0;nn.default=ac;function ac(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}ds.exports=nn.default});var ms=k((on,hs)=>{"use strict";on.__esModule=!0;on.default=lc;function lc(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]}}hs.exports=on.default});var gs=k((un,Ds)=>{"use strict";un.__esModule=!0;un.default=fc;function fc(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=un.default});var Ht=k(Pe=>{"use strict";Pe.__esModule=!0;Pe.stripComments=Pe.ensureObject=Pe.getProp=Pe.unesc=void 0;var cc=sn(li());Pe.unesc=cc.default;var dc=sn(ps());Pe.getProp=dc.default;var pc=sn(ms());Pe.ensureObject=pc.default;var hc=sn(gs());Pe.stripComments=hc.default;function sn(e){return e&&e.__esModule?e:{default:e}}});var Ne=k((Vt,ys)=>{"use strict";Vt.__esModule=!0;Vt.default=void 0;var bs=Ht();function vs(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&&vs(e.prototype,t),n&&vs(e,n),e}var Dc=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 o=t[i],u=typeof o;i==="parent"&&u==="object"?n&&(r[i]=n):o instanceof Array?r[i]=o.map(function(s){return e(s,r)}):r[i]=e(o,r)}return r},gc=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=Dc(this);for(var o in r)i[o]=r[o];return i},t.appendToPropertyAndEscape=function(r,i,o){this.raws||(this.raws={});var u=this[r],s=this.raws[r];this[r]=u+i,s||o!==i?this.raws[r]=(s||u)+o:delete this.raws[r]},t.setPropertyAndEscape=function(r,i,o){this.raws||(this.raws={}),this[r]=i,this.raws[r]=o},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("")},mc(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,bs.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,bs.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=r}}]),e}();Vt.default=gc;ys.exports=Vt.default});var ne=k(U=>{"use strict";U.__esModule=!0;U.UNIVERSAL=U.ATTRIBUTE=U.CLASS=U.COMBINATOR=U.COMMENT=U.ID=U.NESTING=U.PSEUDO=U.ROOT=U.SELECTOR=U.STRING=U.TAG=void 0;var bc="tag";U.TAG=bc;var vc="string";U.STRING=vc;var yc="selector";U.SELECTOR=yc;var xc="root";U.ROOT=xc;var Fc="pseudo";U.PSEUDO=Fc;var wc="nesting";U.NESTING=wc;var Ec="id";U.ID=Ec;var Sc="comment";U.COMMENT=Sc;var Cc="combinator";U.COMBINATOR=Cc;var _c="class";U.CLASS=_c;var kc="attribute";U.ATTRIBUTE=kc;var Tc="universal";U.UNIVERSAL=Tc});var an=k((Yt,Es)=>{"use strict";Yt.__esModule=!0;Yt.default=void 0;var Ac=Pc(Ne()),We=Oc(ne());function ws(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return ws=function(){return e},e}function Oc(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=ws();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 o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function Pc(e){return e&&e.__esModule?e:{default:e}}function Bc(e,t){var n;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=Ic(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 Ic(e,t){if(e){if(typeof e=="string")return xs(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 xs(e,t)}}function xs(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 Fs(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 Rc(e,t,n){return t&&Fs(e.prototype,t),n&&Fs(e,n),e}function Lc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fi(e,t)}function fi(e,t){return fi=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},fi(e,t)}var Mc=function(e){Lc(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 o;for(var u in this.indexes)o=this.indexes[u],o>=i&&(this.indexes[u]=o-1);return this},n.removeAll=function(){for(var i=Bc(this.nodes),o;!(o=i()).done;){var u=o.value;u.parent=void 0}return this.nodes=[],this},n.empty=function(){return this.removeAll()},n.insertAfter=function(i,o){o.parent=this;var u=this.index(i);this.nodes.splice(u+1,0,o),o.parent=this;var s;for(var a in this.indexes)s=this.indexes[a],u<=s&&(this.indexes[a]=s+1);return this},n.insertBefore=function(i,o){o.parent=this;var u=this.index(i);this.nodes.splice(u,0,o),o.parent=this;var s;for(var a in this.indexes)s=this.indexes[a],s<=u&&(this.indexes[a]=s+1);return this},n._findChildAtPosition=function(i,o){var u=void 0;return this.each(function(s){if(s.atPosition){var a=s.atPosition(i,o);if(a)return u=a,!1}else if(s.isAtPosition(i,o))return u=s,!1}),u},n.atPosition=function(i,o){if(this.isAtPosition(i,o))return this._findChildAtPosition(i,o)||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 o=this.lastEach;if(this.indexes[o]=0,!!this.length){for(var u,s;this.indexes[o]<this.length&&(u=this.indexes[o],s=i(this.at(u),u),s!==!1);)this.indexes[o]+=1;if(delete this.indexes[o],s===!1)return!1}},n.walk=function(i){return this.each(function(o,u){var s=i(o,u);if(s!==!1&&o.length&&(s=o.walk(i)),s===!1)return!1})},n.walkAttributes=function(i){var o=this;return this.walk(function(u){if(u.type===We.ATTRIBUTE)return i.call(o,u)})},n.walkClasses=function(i){var o=this;return this.walk(function(u){if(u.type===We.CLASS)return i.call(o,u)})},n.walkCombinators=function(i){var o=this;return this.walk(function(u){if(u.type===We.COMBINATOR)return i.call(o,u)})},n.walkComments=function(i){var o=this;return this.walk(function(u){if(u.type===We.COMMENT)return i.call(o,u)})},n.walkIds=function(i){var o=this;return this.walk(function(u){if(u.type===We.ID)return i.call(o,u)})},n.walkNesting=function(i){var o=this;return this.walk(function(u){if(u.type===We.NESTING)return i.call(o,u)})},n.walkPseudos=function(i){var o=this;return this.walk(function(u){if(u.type===We.PSEUDO)return i.call(o,u)})},n.walkTags=function(i){var o=this;return this.walk(function(u){if(u.type===We.TAG)return i.call(o,u)})},n.walkUniversals=function(i){var o=this;return this.walk(function(u){if(u.type===We.UNIVERSAL)return i.call(o,u)})},n.split=function(i){var o=this,u=[];return this.reduce(function(s,a,l){var f=i.call(o,a);return u.push(a),f?(s.push(u),u=[]):l===o.length-1&&s.push(u),s},[])},n.map=function(i){return this.nodes.map(i)},n.reduce=function(i,o){return this.nodes.reduce(i,o)},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("")},Rc(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}(Ac.default);Yt.default=Mc;Es.exports=Yt.default});var di=k((Xt,Cs)=>{"use strict";Xt.__esModule=!0;Xt.default=void 0;var Nc=$c(an()),Wc=ne();function $c(e){return e&&e.__esModule?e:{default:e}}function Ss(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 qc(e,t,n){return t&&Ss(e.prototype,t),n&&Ss(e,n),e}function zc(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 Uc=function(e){zc(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=Wc.ROOT,i}var n=t.prototype;return n.toString=function(){var i=this.reduce(function(o,u){return o.push(String(u)),o},[]).join(",");return this.trailingComma?i+",":i},n.error=function(i,o){return this._error?this._error(i,o):new Error(i)},qc(t,[{key:"errorGenerator",set:function(i){this._error=i}}]),t}(Nc.default);Xt.default=Uc;Cs.exports=Xt.default});var hi=k((Qt,_s)=>{"use strict";Qt.__esModule=!0;Qt.default=void 0;var Gc=Hc(an()),jc=ne();function Hc(e){return e&&e.__esModule?e:{default:e}}function Vc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,pi(e,t)}function pi(e,t){return pi=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},pi(e,t)}var Yc=function(e){Vc(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=jc.SELECTOR,r}return t}(Gc.default);Qt.default=Yc;_s.exports=Qt.default});var ln=k((Fb,ks)=>{"use strict";var Xc={},Qc=Xc.hasOwnProperty,Kc=function(t,n){if(!t)return n;var r={};for(var i in n)r[i]=Qc.call(t,i)?t[i]:n[i];return r},Jc=/[ -,\.\/:-@\[-\^`\{-~]/,Zc=/[ -,\.\/:-@\[\]\^`\{-~]/,ed=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,mi=function e(t,n){n=Kc(n,e.options),n.quotes!="single"&&n.quotes!="double"&&(n.quotes="single");for(var r=n.quotes=="double"?'"':"'",i=n.isIdentifier,o=t.charAt(0),u="",s=0,a=t.length;s<a;){var l=t.charAt(s++),f=l.charCodeAt(),c=void 0;if(f<32||f>126){if(f>=55296&&f<=56319&&s<a){var p=t.charCodeAt(s++);(p&64512)==56320?f=((f&1023)<<10)+(p&1023)+65536:s--}c="\\"+f.toString(16).toUpperCase()+" "}else n.escapeEverything?Jc.test(l)?c="\\"+l:c="\\"+f.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?c="\\"+f.toString(16).toUpperCase()+" ":l=="\\"||!i&&(l=='"'&&r==l||l=="'"&&r==l)||i&&Zc.test(l)?c="\\"+l:c=l;u+=c}return i&&(/^-[-\d]/.test(u)?u="\\-"+u.slice(1):/\d/.test(o)&&(u="\\3"+o+" "+u.slice(1))),u=u.replace(ed,function(d,h,m){return h&&h.length%2?d:(h||"")+m}),!i&&n.wrap?r+u+r:u};mi.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};mi.version="3.0.0";ks.exports=mi});var gi=k((Kt,Os)=>{"use strict";Kt.__esModule=!0;Kt.default=void 0;var td=As(ln()),rd=Ht(),nd=As(Ne()),id=ne();function As(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 od(e,t,n){return t&&Ts(e.prototype,t),n&&Ts(e,n),e}function ud(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Di(e,t)}function Di(e,t){return Di=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Di(e,t)}var sd=function(e){ud(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=id.CLASS,i._constructed=!0,i}var n=t.prototype;return n.valueToString=function(){return"."+e.prototype.valueToString.call(this)},od(t,[{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var o=(0,td.default)(i,{isIdentifier:!0});o!==i?((0,rd.ensureObject)(this,"raws"),this.raws.value=o):this.raws&&delete this.raws.value}this._value=i}}]),t}(nd.default);Kt.default=sd;Os.exports=Kt.default});var vi=k((Jt,Ps)=>{"use strict";Jt.__esModule=!0;Jt.default=void 0;var ad=fd(Ne()),ld=ne();function fd(e){return e&&e.__esModule?e:{default:e}}function cd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,bi(e,t)}function bi(e,t){return bi=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},bi(e,t)}var dd=function(e){cd(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=ld.COMMENT,r}return t}(ad.default);Jt.default=dd;Ps.exports=Jt.default});var xi=k((Zt,Bs)=>{"use strict";Zt.__esModule=!0;Zt.default=void 0;var pd=md(Ne()),hd=ne();function md(e){return e&&e.__esModule?e:{default:e}}function Dd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,yi(e,t)}function yi(e,t){return yi=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},yi(e,t)}var gd=function(e){Dd(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=hd.ID,i}var n=t.prototype;return n.valueToString=function(){return"#"+e.prototype.valueToString.call(this)},t}(pd.default);Zt.default=gd;Bs.exports=Zt.default});var fn=k((er,Ls)=>{"use strict";er.__esModule=!0;er.default=void 0;var bd=Rs(ln()),vd=Ht(),yd=Rs(Ne());function Rs(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 xd(e,t,n){return t&&Is(e.prototype,t),n&&Is(e,n),e}function Fd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fi(e,t)}function Fi(e,t){return Fi=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Fi(e,t)}var wd=function(e){Fd(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))},xd(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 o=(0,bd.default)(i,{isIdentifier:!0});this._namespace=i,o!==i?((0,vd.ensureObject)(this,"raws"),this.raws.namespace=o):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}(yd.default);er.default=wd;Ls.exports=er.default});var Ei=k((tr,Ms)=>{"use strict";tr.__esModule=!0;tr.default=void 0;var Ed=Cd(fn()),Sd=ne();function Cd(e){return e&&e.__esModule?e:{default:e}}function _d(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,wi(e,t)}function wi(e,t){return wi=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},wi(e,t)}var kd=function(e){_d(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Sd.TAG,r}return t}(Ed.default);tr.default=kd;Ms.exports=tr.default});var Ci=k((rr,Ns)=>{"use strict";rr.__esModule=!0;rr.default=void 0;var Td=Od(Ne()),Ad=ne();function Od(e){return e&&e.__esModule?e:{default:e}}function Pd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Si(e,t)}function Si(e,t){return Si=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Si(e,t)}var Bd=function(e){Pd(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Ad.STRING,r}return t}(Td.default);rr.default=Bd;Ns.exports=rr.default});var ki=k((nr,Ws)=>{"use strict";nr.__esModule=!0;nr.default=void 0;var Id=Ld(an()),Rd=ne();function Ld(e){return e&&e.__esModule?e:{default:e}}function Md(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_i(e,t)}function _i(e,t){return _i=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},_i(e,t)}var Nd=function(e){Md(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=Rd.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}(Id.default);nr.default=Nd;Ws.exports=nr.default});var qs=k((wb,$s)=>{$s.exports=function(t,n){return function(...r){return console.warn(n),t(...r)}}});var Ii=k(ur=>{"use strict";ur.__esModule=!0;ur.unescapeValue=Bi;ur.default=void 0;var ir=Pi(ln()),Wd=Pi(li()),$d=Pi(fn()),qd=ne(),Ti;function Pi(e){return e&&e.__esModule?e:{default:e}}function zs(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 zd(e,t,n){return t&&zs(e.prototype,t),n&&zs(e,n),e}function Ud(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 or=qs(),Gd=/^('|")([^]*)\1$/,jd=or(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),Hd=or(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),Vd=or(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function Bi(e){var t=!1,n=null,r=e,i=r.match(Gd);return i&&(n=i[1],r=i[2]),r=(0,Wd.default)(r),r!==e&&(t=!0),{deprecatedUsage:t,unescaped:r,quoteMark:n}}function Yd(e){if(e.quoteMark!==void 0||e.value===void 0)return e;Vd();var t=Bi(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 cn=function(e){Ud(t,e);function t(r){var i;return r===void 0&&(r={}),i=e.call(this,Yd(r))||this,i.type=qd.ATTRIBUTE,i.raws=i.raws||{},Object.defineProperty(i.raws,"unquoted",{get:or(function(){return i.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:or(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 o=this._determineQuoteMark(i),u=Ai[o],s=(0,ir.default)(this._value,u);return s},n._determineQuoteMark=function(i){return i.smart?this.smartQuoteMark(i):this.preferredQuoteMark(i)},n.setValue=function(i,o){o===void 0&&(o={}),this._value=i,this._quoteMark=this._determineQuoteMark(o),this._syncRawValue()},n.smartQuoteMark=function(i){var o=this.value,u=o.replace(/[^']/g,"").length,s=o.replace(/[^"]/g,"").length;if(u+s===0){var a=(0,ir.default)(o,{isIdentifier:!0});if(a===o)return t.NO_QUOTE;var l=this.preferredQuoteMark(i);if(l===t.NO_QUOTE){var f=this.quoteMark||i.quoteMark||t.DOUBLE_QUOTE,c=Ai[f],p=(0,ir.default)(o,c);if(p.length<a.length)return f}return l}else return s===u?this.preferredQuoteMark(i):s<u?t.DOUBLE_QUOTE:t.SINGLE_QUOTE},n.preferredQuoteMark=function(i){var o=i.preferCurrentQuoteMark?this.quoteMark:i.quoteMark;return o===void 0&&(o=i.preferCurrentQuoteMark?i.quoteMark:this.quoteMark),o===void 0&&(o=t.DOUBLE_QUOTE),o},n._syncRawValue=function(){var i=(0,ir.default)(this._value,Ai[this.quoteMark]);i===this._value?this.raws&&delete this.raws.value:this.raws.value=i},n._handleEscapes=function(i,o){if(this._constructed){var u=(0,ir.default)(o,{isIdentifier:!0});u!==o?this.raws[i]=u:delete this.raws[i]}},n._spacesFor=function(i){var o={before:"",after:""},u=this.spaces[i]||{},s=this.raws.spaces&&this.raws.spaces[i]||{};return Object.assign(o,u,s)},n._stringFor=function(i,o,u){o===void 0&&(o=i),u===void 0&&(u=Us);var s=this._spacesFor(o);return u(this.stringifyProperty(i),s)},n.offsetOf=function(i){var o=1,u=this._spacesFor("attribute");if(o+=u.before.length,i==="namespace"||i==="ns")return this.namespace?o:-1;if(i==="attributeNS"||(o+=this.namespaceString.length,this.namespace&&(o+=1),i==="attribute"))return o;o+=this.stringifyProperty("attribute").length,o+=u.after.length;var s=this._spacesFor("operator");o+=s.before.length;var a=this.stringifyProperty("operator");if(i==="operator")return a?o:-1;o+=a.length,o+=s.after.length;var l=this._spacesFor("value");o+=l.before.length;var f=this.stringifyProperty("value");if(i==="value")return f?o:-1;o+=f.length,o+=l.after.length;var c=this._spacesFor("insensitive");return o+=c.before.length,i==="insensitive"&&this.insensitive?o:-1},n.toString=function(){var i=this,o=[this.rawSpaceBefore,"["];return o.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(o.push(this._stringFor("operator")),o.push(this._stringFor("value")),o.push(this._stringFor("insensitiveFlag","insensitive",function(u,s){return u.length>0&&!i.quoted&&s.before.length===0&&!(i.spaces.value&&i.spaces.value.after)&&(s.before=" "),Us(u,s)}))),o.push("]"),o.push(this.rawSpaceAfter),o.join("")},zd(t,[{key:"quoted",get:function(){var i=this.quoteMark;return i==="'"||i==='"'},set:function(i){Hd()}},{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 o=Bi(i),u=o.deprecatedUsage,s=o.unescaped,a=o.quoteMark;if(u&&jd(),s===this._value&&a===this._quoteMark)return;this._value=s,this._quoteMark=a,this._syncRawValue()}else this._value=i}},{key:"attribute",get:function(){return this._attribute},set:function(i){this._handleEscapes("attribute",i),this._attribute=i}}]),t}($d.default);ur.default=cn;cn.NO_QUOTE=null;cn.SINGLE_QUOTE="'";cn.DOUBLE_QUOTE='"';var Ai=(Ti={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},Ti[null]={isIdentifier:!0},Ti);function Us(e,t){return""+t.before+e+t.after}});var Li=k((sr,Gs)=>{"use strict";sr.__esModule=!0;sr.default=void 0;var Xd=Kd(fn()),Qd=ne();function Kd(e){return e&&e.__esModule?e:{default:e}}function Jd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ri(e,t)}function Ri(e,t){return Ri=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ri(e,t)}var Zd=function(e){Jd(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Qd.UNIVERSAL,r.value="*",r}return t}(Xd.default);sr.default=Zd;Gs.exports=sr.default});var Ni=k((ar,js)=>{"use strict";ar.__esModule=!0;ar.default=void 0;var ep=rp(Ne()),tp=ne();function rp(e){return e&&e.__esModule?e:{default:e}}function np(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Mi(e,t)}function Mi(e,t){return Mi=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Mi(e,t)}var ip=function(e){np(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=tp.COMBINATOR,r}return t}(ep.default);ar.default=ip;js.exports=ar.default});var $i=k((lr,Hs)=>{"use strict";lr.__esModule=!0;lr.default=void 0;var op=sp(Ne()),up=ne();function sp(e){return e&&e.__esModule?e:{default:e}}function ap(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Wi(e,t)}function Wi(e,t){return Wi=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Wi(e,t)}var lp=function(e){ap(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=up.NESTING,r.value="&",r}return t}(op.default);lr.default=lp;Hs.exports=lr.default});var Ys=k((dn,Vs)=>{"use strict";dn.__esModule=!0;dn.default=fp;function fp(e){return e.sort(function(t,n){return t-n})}Vs.exports=dn.default});var qi=k(_=>{"use strict";_.__esModule=!0;_.combinator=_.word=_.comment=_.str=_.tab=_.newline=_.feed=_.cr=_.backslash=_.bang=_.slash=_.doubleQuote=_.singleQuote=_.space=_.greaterThan=_.pipe=_.equals=_.plus=_.caret=_.tilde=_.dollar=_.closeSquare=_.openSquare=_.closeParenthesis=_.openParenthesis=_.semicolon=_.colon=_.comma=_.at=_.asterisk=_.ampersand=void 0;var cp=38;_.ampersand=cp;var dp=42;_.asterisk=dp;var pp=64;_.at=pp;var hp=44;_.comma=hp;var mp=58;_.colon=mp;var Dp=59;_.semicolon=Dp;var gp=40;_.openParenthesis=gp;var bp=41;_.closeParenthesis=bp;var vp=91;_.openSquare=vp;var yp=93;_.closeSquare=yp;var xp=36;_.dollar=xp;var Fp=126;_.tilde=Fp;var wp=94;_.caret=wp;var Ep=43;_.plus=Ep;var Sp=61;_.equals=Sp;var Cp=124;_.pipe=Cp;var _p=62;_.greaterThan=_p;var kp=32;_.space=kp;var Xs=39;_.singleQuote=Xs;var Tp=34;_.doubleQuote=Tp;var Ap=47;_.slash=Ap;var Op=33;_.bang=Op;var Pp=92;_.backslash=Pp;var Bp=13;_.cr=Bp;var Ip=12;_.feed=Ip;var Rp=10;_.newline=Rp;var Lp=9;_.tab=Lp;var Mp=Xs;_.str=Mp;var Np=-1;_.comment=Np;var Wp=-2;_.word=Wp;var $p=-3;_.combinator=$p});var Js=k(fr=>{"use strict";fr.__esModule=!0;fr.default=Vp;fr.FIELDS=void 0;var w=qp(qi()),xt,q;function Ks(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Ks=function(){return e},e}function qp(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Ks();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 o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}var zp=(xt={},xt[w.tab]=!0,xt[w.newline]=!0,xt[w.cr]=!0,xt[w.feed]=!0,xt),Up=(q={},q[w.space]=!0,q[w.tab]=!0,q[w.newline]=!0,q[w.cr]=!0,q[w.feed]=!0,q[w.ampersand]=!0,q[w.asterisk]=!0,q[w.bang]=!0,q[w.comma]=!0,q[w.colon]=!0,q[w.semicolon]=!0,q[w.openParenthesis]=!0,q[w.closeParenthesis]=!0,q[w.openSquare]=!0,q[w.closeSquare]=!0,q[w.singleQuote]=!0,q[w.doubleQuote]=!0,q[w.plus]=!0,q[w.pipe]=!0,q[w.tilde]=!0,q[w.greaterThan]=!0,q[w.equals]=!0,q[w.dollar]=!0,q[w.caret]=!0,q[w.slash]=!0,q),zi={},Qs="0123456789abcdefABCDEF";for(pn=0;pn<Qs.length;pn++)zi[Qs.charCodeAt(pn)]=!0;var pn;function Gp(e,t){var n=t,r;do{if(r=e.charCodeAt(n),Up[r])return n-1;r===w.backslash?n=jp(e,n)+1:n++}while(n<e.length);return n-1}function jp(e,t){var n=t,r=e.charCodeAt(n+1);if(!zp[r])if(zi[r]){var i=0;do n++,i++,r=e.charCodeAt(n+1);while(zi[r]&&i<6);i<6&&r===w.space&&n++}else n++;return n}var Hp={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};fr.FIELDS=Hp;function Vp(e){var t=[],n=e.css.valueOf(),r=n,i=r.length,o=-1,u=1,s=0,a=0,l,f,c,p,d,h,m,x,g,S,v,b,y;function T(A,P){if(e.safe)n+=P,g=n.length-1;else throw e.error("Unclosed "+A,u,s-o,s)}for(;s<i;){switch(l=n.charCodeAt(s),l===w.newline&&(o=s,u+=1),l){case w.space:case w.tab:case w.newline:case w.cr:case w.feed:g=s;do g+=1,l=n.charCodeAt(g),l===w.newline&&(o=g,u+=1);while(l===w.space||l===w.newline||l===w.tab||l===w.cr||l===w.feed);y=w.space,p=u,c=g-o-1,a=g;break;case w.plus:case w.greaterThan:case w.tilde:case w.pipe:g=s;do g+=1,l=n.charCodeAt(g);while(l===w.plus||l===w.greaterThan||l===w.tilde||l===w.pipe);y=w.combinator,p=u,c=s-o,a=g;break;case w.asterisk:case w.ampersand:case w.bang:case w.comma:case w.equals:case w.dollar:case w.caret:case w.openSquare:case w.closeSquare:case w.colon:case w.semicolon:case w.openParenthesis:case w.closeParenthesis:g=s,y=l,p=u,c=s-o,a=g+1;break;case w.singleQuote:case w.doubleQuote:b=l===w.singleQuote?"'":'"',g=s;do for(d=!1,g=n.indexOf(b,g+1),g===-1&&T("quote",b),h=g;n.charCodeAt(h-1)===w.backslash;)h-=1,d=!d;while(d);y=w.str,p=u,c=s-o,a=g+1;break;default:l===w.slash&&n.charCodeAt(s+1)===w.asterisk?(g=n.indexOf("*/",s+2)+1,g===0&&T("comment","*/"),f=n.slice(s,g+1),x=f.split(`
|
|
3
|
-
`),m=x.length-1,m>0?(S=u+m,v=g-x[m].length):(S=u,v=o),y=w.comment,u=S,p=S,c=g-v):l===w.slash?(g=s,y=l,p=u,c=s-o,a=g+1):(g=Gp(n,s),y=w.word,p=u,c=g-o),a=g+1;break}t.push([y,u,s-o,p,c,s,a]),v&&(o=v,v=null),s=a}return t}});var ua=k((cr,oa)=>{"use strict";cr.__esModule=!0;cr.default=void 0;var Yp=ve(di()),Ui=ve(hi()),Xp=ve(gi()),Zs=ve(vi()),Qp=ve(xi()),Kp=ve(Ei()),Gi=ve(Ci()),Jp=ve(ki()),ea=hn(Ii()),Zp=ve(Li()),ji=ve(Ni()),e0=ve($i()),t0=ve(Ys()),F=hn(Js()),C=hn(qi()),r0=hn(ne()),Y=Ht(),it,Hi;function ia(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return ia=function(){return e},e}function hn(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=ia();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 o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function ve(e){return e&&e.__esModule?e:{default:e}}function ta(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 n0(e,t,n){return t&&ta(e.prototype,t),n&&ta(e,n),e}var Xi=(it={},it[C.space]=!0,it[C.cr]=!0,it[C.feed]=!0,it[C.newline]=!0,it[C.tab]=!0,it),i0=Object.assign({},Xi,(Hi={},Hi[C.comment]=!0,Hi));function ra(e){return{line:e[F.FIELDS.START_LINE],column:e[F.FIELDS.START_COL]}}function na(e){return{line:e[F.FIELDS.END_LINE],column:e[F.FIELDS.END_COL]}}function ot(e,t,n,r){return{start:{line:e,column:t},end:{line:n,column:r}}}function Ft(e){return ot(e[F.FIELDS.START_LINE],e[F.FIELDS.START_COL],e[F.FIELDS.END_LINE],e[F.FIELDS.END_COL])}function Vi(e,t){if(e)return ot(e[F.FIELDS.START_LINE],e[F.FIELDS.START_COL],t[F.FIELDS.END_LINE],t[F.FIELDS.END_COL])}function wt(e,t){var n=e[t];if(typeof n=="string")return n.indexOf("\\")!==-1&&((0,Y.ensureObject)(e,"raws"),e[t]=(0,Y.unesc)(n),e.raws[t]===void 0&&(e.raws[t]=n)),e}function Yi(e,t){for(var n=-1,r=[];(n=e.indexOf(t,n+1))!==-1;)r.push(n);return r}function o0(){var e=Array.prototype.concat.apply([],arguments);return e.filter(function(t,n){return n===e.indexOf(t)})}var u0=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,F.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var i=Vi(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new Yp.default({source:i}),this.root.errorGenerator=this._errorGenerator();var o=new Ui.default({source:{start:{line:1,column:1}}});this.root.append(o),this.current=o,this.loop()}var t=e.prototype;return t._errorGenerator=function(){var r=this;return function(i,o){return typeof r.rule=="string"?new Error(i):r.rule.error(i,o)}},t.attribute=function(){var r=[],i=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[F.FIELDS.TYPE]!==C.closeSquare;)r.push(this.currToken),this.position++;if(this.currToken[F.FIELDS.TYPE]!==C.closeSquare)return this.expected("closing square bracket",this.currToken[F.FIELDS.START_POS]);var o=r.length,u={source:ot(i[1],i[2],this.currToken[3],this.currToken[4]),sourceIndex:i[F.FIELDS.START_POS]};if(o===1&&!~[C.word].indexOf(r[0][F.FIELDS.TYPE]))return this.expected("attribute",r[0][F.FIELDS.START_POS]);for(var s=0,a="",l="",f=null,c=!1;s<o;){var p=r[s],d=this.content(p),h=r[s+1];switch(p[F.FIELDS.TYPE]){case C.space:if(c=!0,this.options.lossy)break;if(f){(0,Y.ensureObject)(u,"spaces",f);var m=u.spaces[f].after||"";u.spaces[f].after=m+d;var x=(0,Y.getProp)(u,"raws","spaces",f,"after")||null;x&&(u.raws.spaces[f].after=x+d)}else a=a+d,l=l+d;break;case C.asterisk:if(h[F.FIELDS.TYPE]===C.equals)u.operator=d,f="operator";else if((!u.namespace||f==="namespace"&&!c)&&h){a&&((0,Y.ensureObject)(u,"spaces","attribute"),u.spaces.attribute.before=a,a=""),l&&((0,Y.ensureObject)(u,"raws","spaces","attribute"),u.raws.spaces.attribute.before=a,l=""),u.namespace=(u.namespace||"")+d;var g=(0,Y.getProp)(u,"raws","namespace")||null;g&&(u.raws.namespace+=d),f="namespace"}c=!1;break;case C.dollar:if(f==="value"){var S=(0,Y.getProp)(u,"raws","value");u.value+="$",S&&(u.raws.value=S+"$");break}case C.caret:h[F.FIELDS.TYPE]===C.equals&&(u.operator=d,f="operator"),c=!1;break;case C.combinator:if(d==="~"&&h[F.FIELDS.TYPE]===C.equals&&(u.operator=d,f="operator"),d!=="|"){c=!1;break}h[F.FIELDS.TYPE]===C.equals?(u.operator=d,f="operator"):!u.namespace&&!u.attribute&&(u.namespace=!0),c=!1;break;case C.word:if(h&&this.content(h)==="|"&&r[s+2]&&r[s+2][F.FIELDS.TYPE]!==C.equals&&!u.operator&&!u.namespace)u.namespace=d,f="namespace";else if(!u.attribute||f==="attribute"&&!c){a&&((0,Y.ensureObject)(u,"spaces","attribute"),u.spaces.attribute.before=a,a=""),l&&((0,Y.ensureObject)(u,"raws","spaces","attribute"),u.raws.spaces.attribute.before=l,l=""),u.attribute=(u.attribute||"")+d;var v=(0,Y.getProp)(u,"raws","attribute")||null;v&&(u.raws.attribute+=d),f="attribute"}else if(!u.value&&u.value!==""||f==="value"&&!c){var b=(0,Y.unesc)(d),y=(0,Y.getProp)(u,"raws","value")||"",T=u.value||"";u.value=T+b,u.quoteMark=null,(b!==d||y)&&((0,Y.ensureObject)(u,"raws"),u.raws.value=(y||T)+d),f="value"}else{var A=d==="i"||d==="I";(u.value||u.value==="")&&(u.quoteMark||c)?(u.insensitive=A,(!A||d==="I")&&((0,Y.ensureObject)(u,"raws"),u.raws.insensitiveFlag=d),f="insensitive",a&&((0,Y.ensureObject)(u,"spaces","insensitive"),u.spaces.insensitive.before=a,a=""),l&&((0,Y.ensureObject)(u,"raws","spaces","insensitive"),u.raws.spaces.insensitive.before=l,l="")):(u.value||u.value==="")&&(f="value",u.value+=d,u.raws.value&&(u.raws.value+=d))}c=!1;break;case C.str:if(!u.attribute||!u.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:p[F.FIELDS.START_POS]});var P=(0,ea.unescapeValue)(d),j=P.unescaped,ie=P.quoteMark;u.value=j,u.quoteMark=ie,f="value",(0,Y.ensureObject)(u,"raws"),u.raws.value=d,c=!1;break;case C.equals:if(!u.attribute)return this.expected("attribute",p[F.FIELDS.START_POS],d);if(u.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:p[F.FIELDS.START_POS]});u.operator=u.operator?u.operator+d:d,f="operator",c=!1;break;case C.comment:if(f)if(c||h&&h[F.FIELDS.TYPE]===C.space||f==="insensitive"){var ue=(0,Y.getProp)(u,"spaces",f,"after")||"",fe=(0,Y.getProp)(u,"raws","spaces",f,"after")||ue;(0,Y.ensureObject)(u,"raws","spaces",f),u.raws.spaces[f].after=fe+d}else{var Q=u[f]||"",oe=(0,Y.getProp)(u,"raws",f)||Q;(0,Y.ensureObject)(u,"raws"),u.raws[f]=oe+d}else l=l+d;break;default:return this.error('Unexpected "'+d+'" found.',{index:p[F.FIELDS.START_POS]})}s++}wt(u,"attribute"),wt(u,"namespace"),this.newNode(new ea.default(u)),this.position++},t.parseWhitespaceEquivalentTokens=function(r){r<0&&(r=this.tokens.length);var i=this.position,o=[],u="",s=void 0;do if(Xi[this.currToken[F.FIELDS.TYPE]])this.options.lossy||(u+=this.content());else if(this.currToken[F.FIELDS.TYPE]===C.comment){var a={};u&&(a.before=u,u=""),s=new Zs.default({value:this.content(),source:Ft(this.currToken),sourceIndex:this.currToken[F.FIELDS.START_POS],spaces:a}),o.push(s)}while(++this.position<r);if(u){if(s)s.spaces.after=u;else if(!this.options.lossy){var l=this.tokens[i],f=this.tokens[this.position-1];o.push(new Gi.default({value:"",source:ot(l[F.FIELDS.START_LINE],l[F.FIELDS.START_COL],f[F.FIELDS.END_LINE],f[F.FIELDS.END_COL]),sourceIndex:l[F.FIELDS.START_POS],spaces:{before:u,after:""}}))}}return o},t.convertWhitespaceNodesToSpace=function(r,i){var o=this;i===void 0&&(i=!1);var u="",s="";r.forEach(function(l){var f=o.lossySpace(l.spaces.before,i),c=o.lossySpace(l.rawSpaceBefore,i);u+=f+o.lossySpace(l.spaces.after,i&&f.length===0),s+=f+l.value+o.lossySpace(l.rawSpaceAfter,i&&c.length===0)}),s===u&&(s=void 0);var a={space:u,rawSpace:s};return a},t.isNamedCombinator=function(r){return r===void 0&&(r=this.position),this.tokens[r+0]&&this.tokens[r+0][F.FIELDS.TYPE]===C.slash&&this.tokens[r+1]&&this.tokens[r+1][F.FIELDS.TYPE]===C.word&&this.tokens[r+2]&&this.tokens[r+2][F.FIELDS.TYPE]===C.slash},t.namedCombinator=function(){if(this.isNamedCombinator()){var r=this.content(this.tokens[this.position+1]),i=(0,Y.unesc)(r).toLowerCase(),o={};i!==r&&(o.value="/"+r+"/");var u=new ji.default({value:"/"+i+"/",source:ot(this.currToken[F.FIELDS.START_LINE],this.currToken[F.FIELDS.START_COL],this.tokens[this.position+2][F.FIELDS.END_LINE],this.tokens[this.position+2][F.FIELDS.END_COL]),sourceIndex:this.currToken[F.FIELDS.START_POS],raws:o});return this.position=this.position+3,u}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][F.FIELDS.TYPE]===C.comma){var o=this.parseWhitespaceEquivalentTokens(i);if(o.length>0){var u=this.current.last;if(u){var s=this.convertWhitespaceNodesToSpace(o),a=s.space,l=s.rawSpace;l!==void 0&&(u.rawSpaceAfter+=l),u.spaces.after+=a}else o.forEach(function(y){return r.newNode(y)})}return}var f=this.currToken,c=void 0;i>this.position&&(c=this.parseWhitespaceEquivalentTokens(i));var p;if(this.isNamedCombinator()?p=this.namedCombinator():this.currToken[F.FIELDS.TYPE]===C.combinator?(p=new ji.default({value:this.content(),source:Ft(this.currToken),sourceIndex:this.currToken[F.FIELDS.START_POS]}),this.position++):Xi[this.currToken[F.FIELDS.TYPE]]||c||this.unexpected(),p){if(c){var d=this.convertWhitespaceNodesToSpace(c),h=d.space,m=d.rawSpace;p.spaces.before=h,p.rawSpaceBefore=m}}else{var x=this.convertWhitespaceNodesToSpace(c,!0),g=x.space,S=x.rawSpace;S||(S=g);var v={},b={spaces:{}};g.endsWith(" ")&&S.endsWith(" ")?(v.before=g.slice(0,g.length-1),b.spaces.before=S.slice(0,S.length-1)):g.startsWith(" ")&&S.startsWith(" ")?(v.after=g.slice(1),b.spaces.after=S.slice(1)):b.value=S,p=new ji.default({value:" ",source:Vi(f,this.tokens[this.position-1]),sourceIndex:f[F.FIELDS.START_POS],spaces:v,raws:b})}return this.currToken&&this.currToken[F.FIELDS.TYPE]===C.space&&(p.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(p)},t.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var r=new Ui.default({source:{start:ra(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 Zs.default({value:this.content(),source:Ft(r),sourceIndex:r[F.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[F.FIELDS.START_POS]})},t.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[F.FIELDS.START_POS])},t.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[F.FIELDS.START_POS])},t.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[F.FIELDS.START_POS])},t.namespace=function(){var r=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[F.FIELDS.TYPE]===C.word)return this.position++,this.word(r);if(this.nextToken[F.FIELDS.TYPE]===C.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 e0.default({value:this.content(),source:Ft(i),sourceIndex:i[F.FIELDS.START_POS]})),this.position++},t.parentheses=function(){var r=this.current.last,i=1;if(this.position++,r&&r.type===r0.PSEUDO){var o=new Ui.default({source:{start:ra(this.tokens[this.position-1])}}),u=this.current;for(r.append(o),this.current=o;this.position<this.tokens.length&&i;)this.currToken[F.FIELDS.TYPE]===C.openParenthesis&&i++,this.currToken[F.FIELDS.TYPE]===C.closeParenthesis&&i--,i?this.parse():(this.current.source.end=na(this.currToken),this.current.parent.source.end=na(this.currToken),this.position++);this.current=u}else{for(var s=this.currToken,a="(",l;this.position<this.tokens.length&&i;)this.currToken[F.FIELDS.TYPE]===C.openParenthesis&&i++,this.currToken[F.FIELDS.TYPE]===C.closeParenthesis&&i--,l=this.currToken,a+=this.parseParenthesisToken(this.currToken),this.position++;r?r.appendToPropertyAndEscape("value",a,a):this.newNode(new Gi.default({value:a,source:ot(s[F.FIELDS.START_LINE],s[F.FIELDS.START_COL],l[F.FIELDS.END_LINE],l[F.FIELDS.END_COL]),sourceIndex:s[F.FIELDS.START_POS]}))}if(i)return this.expected("closing parenthesis",this.currToken[F.FIELDS.START_POS])},t.pseudo=function(){for(var r=this,i="",o=this.currToken;this.currToken&&this.currToken[F.FIELDS.TYPE]===C.colon;)i+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[F.FIELDS.TYPE]===C.word)this.splitWord(!1,function(u,s){i+=u,r.newNode(new Jp.default({value:i,source:Vi(o,r.currToken),sourceIndex:o[F.FIELDS.START_POS]})),s>1&&r.nextToken&&r.nextToken[F.FIELDS.TYPE]===C.openParenthesis&&r.error("Misplaced parenthesis.",{index:r.nextToken[F.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[F.FIELDS.START_POS])},t.space=function(){var r=this.content();this.position===0||this.prevToken[F.FIELDS.TYPE]===C.comma||this.prevToken[F.FIELDS.TYPE]===C.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[F.FIELDS.TYPE]===C.comma||this.nextToken[F.FIELDS.TYPE]===C.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:Ft(r),sourceIndex:r[F.FIELDS.START_POS]})),this.position++},t.universal=function(r){var i=this.nextToken;if(i&&this.content(i)==="|")return this.position++,this.namespace();var o=this.currToken;this.newNode(new Zp.default({value:this.content(),source:Ft(o),sourceIndex:o[F.FIELDS.START_POS]}),r),this.position++},t.splitWord=function(r,i){for(var o=this,u=this.nextToken,s=this.content();u&&~[C.dollar,C.caret,C.equals,C.word].indexOf(u[F.FIELDS.TYPE]);){this.position++;var a=this.content();if(s+=a,a.lastIndexOf("\\")===a.length-1){var l=this.nextToken;l&&l[F.FIELDS.TYPE]===C.space&&(s+=this.requiredSpace(this.content(l)),this.position++)}u=this.nextToken}var f=Yi(s,".").filter(function(h){var m=s[h-1]==="\\",x=/^\d+\.\d+%$/.test(s);return!m&&!x}),c=Yi(s,"#").filter(function(h){return s[h-1]!=="\\"}),p=Yi(s,"#{");p.length&&(c=c.filter(function(h){return!~p.indexOf(h)}));var d=(0,t0.default)(o0([0].concat(f,c)));d.forEach(function(h,m){var x=d[m+1]||s.length,g=s.slice(h,x);if(m===0&&i)return i.call(o,g,d.length);var S,v=o.currToken,b=v[F.FIELDS.START_POS]+d[m],y=ot(v[1],v[2]+h,v[3],v[2]+(x-1));if(~f.indexOf(h)){var T={value:g.slice(1),source:y,sourceIndex:b};S=new Xp.default(wt(T,"value"))}else if(~c.indexOf(h)){var A={value:g.slice(1),source:y,sourceIndex:b};S=new Qp.default(wt(A,"value"))}else{var P={value:g,source:y,sourceIndex:b};wt(P,"value"),S=new Kp.default(P)}o.newNode(S,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[F.FIELDS.TYPE]){case C.space:this.space();break;case C.comment:this.comment();break;case C.openParenthesis:this.parentheses();break;case C.closeParenthesis:r&&this.missingParenthesis();break;case C.openSquare:this.attribute();break;case C.dollar:case C.caret:case C.equals:case C.word:this.word();break;case C.colon:this.pseudo();break;case C.comma:this.comma();break;case C.asterisk:this.universal();break;case C.ampersand:this.nesting();break;case C.slash:case C.combinator:this.combinator();break;case C.str:this.string();break;case C.closeSquare:this.missingSquareBracket();case C.semicolon:this.missingBackslash();default:this.unexpected()}},t.expected=function(r,i,o){if(Array.isArray(r)){var u=r.pop();r=r.join(", ")+" or "+u}var s=/^[aeiou]/.test(r[0])?"an":"a";return o?this.error("Expected "+s+" "+r+', found "'+o+'" instead.',{index:i}):this.error("Expected "+s+" "+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[F.FIELDS.TYPE]===C.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,wt(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[F.FIELDS.START_POS],r[F.FIELDS.END_POS])},t.locateNextMeaningfulToken=function(r){r===void 0&&(r=this.position+1);for(var i=r;i<this.tokens.length;)if(i0[this.tokens[i][F.FIELDS.TYPE]]){i++;continue}else return i;return-1},n0(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}();cr.default=u0;oa.exports=cr.default});var aa=k((dr,sa)=>{"use strict";dr.__esModule=!0;dr.default=void 0;var s0=a0(ua());function a0(e){return e&&e.__esModule?e:{default:e}}var l0=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 o=Object.assign({},this.options,i);return o.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 o=new s0.default(r,this._parseOptions(i));return o.root},t._parseOptions=function(r){return{lossy:this._isLossy(r)}},t._run=function(r,i){var o=this;return i===void 0&&(i={}),new Promise(function(u,s){try{var a=o._root(r,i);Promise.resolve(o.func(a)).then(function(l){var f=void 0;return o._shouldUpdateSelector(r,i)&&(f=a.toString(),r.selector=f),{transform:l,root:a,string:f}}).then(u,s)}catch(l){s(l);return}})},t._runSync=function(r,i){i===void 0&&(i={});var o=this._root(r,i),u=this.func(o);if(u&&typeof u.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var s=void 0;return i.updateSelector&&typeof r!="string"&&(s=o.toString(),r.selector=s),{transform:u,root:o,string:s}},t.ast=function(r,i){return this._run(r,i).then(function(o){return o.root})},t.astSync=function(r,i){return this._runSync(r,i).root},t.transform=function(r,i){return this._run(r,i).then(function(o){return o.transform})},t.transformSync=function(r,i){return this._runSync(r,i).transform},t.process=function(r,i){return this._run(r,i).then(function(o){return o.string||o.root.toString()})},t.processSync=function(r,i){var o=this._runSync(r,i);return o.string||o.root.toString()},e}();dr.default=l0;sa.exports=dr.default});var la=k(G=>{"use strict";G.__esModule=!0;G.universal=G.tag=G.string=G.selector=G.root=G.pseudo=G.nesting=G.id=G.comment=G.combinator=G.className=G.attribute=void 0;var f0=ye(Ii()),c0=ye(gi()),d0=ye(Ni()),p0=ye(vi()),h0=ye(xi()),m0=ye($i()),D0=ye(ki()),g0=ye(di()),b0=ye(hi()),v0=ye(Ci()),y0=ye(Ei()),x0=ye(Li());function ye(e){return e&&e.__esModule?e:{default:e}}var F0=function(t){return new f0.default(t)};G.attribute=F0;var w0=function(t){return new c0.default(t)};G.className=w0;var E0=function(t){return new d0.default(t)};G.combinator=E0;var S0=function(t){return new p0.default(t)};G.comment=S0;var C0=function(t){return new h0.default(t)};G.id=C0;var _0=function(t){return new m0.default(t)};G.nesting=_0;var k0=function(t){return new D0.default(t)};G.pseudo=k0;var T0=function(t){return new g0.default(t)};G.root=T0;var A0=function(t){return new b0.default(t)};G.selector=A0;var O0=function(t){return new v0.default(t)};G.string=O0;var P0=function(t){return new y0.default(t)};G.tag=P0;var B0=function(t){return new x0.default(t)};G.universal=B0});var pa=k(L=>{"use strict";L.__esModule=!0;L.isNode=Qi;L.isPseudoElement=da;L.isPseudoClass=G0;L.isContainer=j0;L.isNamespace=H0;L.isUniversal=L.isTag=L.isString=L.isSelector=L.isRoot=L.isPseudo=L.isNesting=L.isIdentifier=L.isComment=L.isCombinator=L.isClassName=L.isAttribute=void 0;var X=ne(),de,I0=(de={},de[X.ATTRIBUTE]=!0,de[X.CLASS]=!0,de[X.COMBINATOR]=!0,de[X.COMMENT]=!0,de[X.ID]=!0,de[X.NESTING]=!0,de[X.PSEUDO]=!0,de[X.ROOT]=!0,de[X.SELECTOR]=!0,de[X.STRING]=!0,de[X.TAG]=!0,de[X.UNIVERSAL]=!0,de);function Qi(e){return typeof e=="object"&&I0[e.type]}function xe(e,t){return Qi(t)&&t.type===e}var fa=xe.bind(null,X.ATTRIBUTE);L.isAttribute=fa;var R0=xe.bind(null,X.CLASS);L.isClassName=R0;var L0=xe.bind(null,X.COMBINATOR);L.isCombinator=L0;var M0=xe.bind(null,X.COMMENT);L.isComment=M0;var N0=xe.bind(null,X.ID);L.isIdentifier=N0;var W0=xe.bind(null,X.NESTING);L.isNesting=W0;var Ki=xe.bind(null,X.PSEUDO);L.isPseudo=Ki;var $0=xe.bind(null,X.ROOT);L.isRoot=$0;var q0=xe.bind(null,X.SELECTOR);L.isSelector=q0;var z0=xe.bind(null,X.STRING);L.isString=z0;var ca=xe.bind(null,X.TAG);L.isTag=ca;var U0=xe.bind(null,X.UNIVERSAL);L.isUniversal=U0;function da(e){return Ki(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 G0(e){return Ki(e)&&!da(e)}function j0(e){return!!(Qi(e)&&e.walk)}function H0(e){return fa(e)||ca(e)}});var ha=k(_e=>{"use strict";_e.__esModule=!0;var Ji=ne();Object.keys(Ji).forEach(function(e){e==="default"||e==="__esModule"||e in _e&&_e[e]===Ji[e]||(_e[e]=Ji[e])});var Zi=la();Object.keys(Zi).forEach(function(e){e==="default"||e==="__esModule"||e in _e&&_e[e]===Zi[e]||(_e[e]=Zi[e])});var eo=pa();Object.keys(eo).forEach(function(e){e==="default"||e==="__esModule"||e in _e&&_e[e]===eo[e]||(_e[e]=eo[e])})});var ga=k((pr,Da)=>{"use strict";pr.__esModule=!0;pr.default=void 0;var V0=Q0(aa()),Y0=X0(ha());function ma(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return ma=function(){return e},e}function X0(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=ma();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 o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function Q0(e){return e&&e.__esModule?e:{default:e}}var to=function(t){return new V0.default(t)};Object.assign(to,Y0);delete to.__esModule;var K0=to;pr.default=K0;Da.exports=pr.default});var ba=k(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});Object.defineProperty(ro,"default",{enumerable:!0,get:()=>J0});function J0(e){return e.replace(/\\,/g,"\\2c ")}});var ya=k((Ob,va)=>{"use strict";va.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 io=k(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});function Z0(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Z0(no,{parseColor:()=>oh,formatColor:()=>uh});var xa=eh(ya());function eh(e){return e&&e.__esModule?e:{default:e}}var th=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,rh=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,Ye=/(?:\d+|\d*\.\d+)%?/,mn=/(?:\s*,\s*|\s+)/,Fa=/\s*[,/]\s*/,Xe=/var\(--(?:[^ )]*?)\)/,nh=new RegExp(`^(rgb)a?\\(\\s*(${Ye.source}|${Xe.source})(?:${mn.source}(${Ye.source}|${Xe.source}))?(?:${mn.source}(${Ye.source}|${Xe.source}))?(?:${Fa.source}(${Ye.source}|${Xe.source}))?\\s*\\)$`),ih=new RegExp(`^(hsl)a?\\(\\s*((?:${Ye.source})(?:deg|rad|grad|turn)?|${Xe.source})(?:${mn.source}(${Ye.source}|${Xe.source}))?(?:${mn.source}(${Ye.source}|${Xe.source}))?(?:${Fa.source}(${Ye.source}|${Xe.source}))?\\s*\\)$`);function oh(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 xa.default)return{mode:"rgb",color:xa.default[e].map(a=>a.toString())};let i=e.replace(rh,(a,l,f,c,p)=>["#",l,l,f,f,c,c,p?p+p:""].join("")).match(th);if(i!==null)return{mode:"rgb",color:[parseInt(i[1],16),parseInt(i[2],16),parseInt(i[3],16)].map(a=>a.toString()),alpha:i[4]?(parseInt(i[4],16)/255).toString():void 0};var o;let u=(o=e.match(nh))!==null&&o!==void 0?o:e.match(ih);if(u===null)return null;let s=[u[2],u[3],u[4]].filter(Boolean).map(a=>a.toString());return!t&&s.length!==3||s.length<3&&!s.some(a=>/^var\(.*?\)$/.test(a))?null:{mode:u[1],color:s,alpha:(n=u[5])===null||n===void 0||(r=n.toString)===null||r===void 0?void 0:r.call(n)}}function uh({mode:e,color:t,alpha:n}){let r=n!==void 0;return`${e}(${t.join(" ")}${r?` / ${n}`:""})`}});var uo=k(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});function sh(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}sh(oo,{withAlphaValue:()=>ah,default:()=>lh});var Dn=io();function ah(e,t,n){if(typeof e=="function")return e({opacityValue:t});let r=(0,Dn.parseColor)(e,{loose:!0});return r===null?n:(0,Dn.formatColor)({...r,alpha:t})}function lh({color:e,property:t,variable:n}){let r=[].concat(t);if(typeof e=="function")return{[n]:"1",...Object.fromEntries(r.map(o=>[o,e({opacityVariable:n,opacityValue:`var(${n})`})]))};let i=(0,Dn.parseColor)(e);return i===null?Object.fromEntries(r.map(o=>[o,e])):i.alpha!==void 0?Object.fromEntries(r.map(o=>[o,e])):{[n]:"1",...Object.fromEntries(r.map(o=>[o,(0,Dn.formatColor)({...i,alpha:`var(${n})`})]))}}});var _a=k(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});function fh(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}fh(so,{pattern:()=>dh,withoutCapturing:()=>Ea,any:()=>Sa,optional:()=>ph,zeroOrMore:()=>hh,nestedBrackets:()=>Ca,escape:()=>ut});var wa=/[\\^$.*+?()[\]{}|]/g,ch=RegExp(wa.source);function hr(e){return e=Array.isArray(e)?e:[e],e=e.map(t=>t instanceof RegExp?t.source:t),e.join("")}function dh(e){return new RegExp(hr(e),"g")}function Ea(e){return new RegExp(`(?:${hr(e)})`,"g")}function Sa(e){return`(?:${e.map(hr).join("|")})`}function ph(e){return`(?:${hr(e)})?`}function hh(e){return`(?:${hr(e)})*`}function Ca(e,t,n=1){return Ea([ut(e),/[^\s]*/,n===1?`[^${ut(e)}${ut(t)}s]*`:Sa([`[^${ut(e)}${ut(t)}s]*`,Ca(e,t,n-1)]),/[^\s]*/,ut(t)])}function ut(e){return e&&ch.test(e)?e.replace(wa,"\\$&"):e||""}});var Ta=k(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});Object.defineProperty(ao,"splitAtTopLevelOnly",{enumerable:!0,get:()=>gh});var mh=Dh(_a());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 Dh(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 o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var u=i?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(r,o,u):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function*gh(e,t){let n=new RegExp(`[(){}\\[\\]${mh.escape(t)}]`,"g"),r=0,i=0,o=!1,u=0,s=0,a=t.length;for(let l of e.matchAll(n)){let f=l[0]===t[u],c=u===a-1,p=f&&c;l[0]==="("&&r++,l[0]===")"&&r--,l[0]==="["&&r++,l[0]==="]"&&r--,l[0]==="{"&&r++,l[0]==="}"&&r--,f&&r===0&&(s===0&&(s=l.index),u++),p&&r===0&&(o=!0,yield e.substring(i,s),i=s+a),u===a&&(u=0,s=0)}o?yield e.substring(i):yield e}});var Oa=k(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});function bh(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}bh(lo,{parseBoxShadowValue:()=>Fh,formatBoxShadowValue:()=>wh});var vh=Ta(),yh=new Set(["inset","inherit","initial","revert","unset"]),xh=/\ +(?![^(]*\))/g,Aa=/^-?(\d+|\.\d+)(.*?)$/g;function Fh(e){return Array.from((0,vh.splitAtTopLevelOnly)(e,",")).map(n=>{let r=n.trim(),i={raw:r},o=r.split(xh),u=new Set;for(let s of o)Aa.lastIndex=0,!u.has("KEYWORD")&&yh.has(s)?(i.keyword=s,u.add("KEYWORD")):Aa.test(s)?u.has("X")?u.has("Y")?u.has("BLUR")?u.has("SPREAD")||(i.spread=s,u.add("SPREAD")):(i.blur=s,u.add("BLUR")):(i.y=s,u.add("Y")):(i.x=s,u.add("X")):i.color?(i.unknown||(i.unknown=[]),i.unknown.push(s)):i.color=s;return i.valid=i.x!==void 0&&i.y!==void 0,i})}function wh(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 Na=k(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});function Eh(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Eh(co,{normalize:()=>Qe,url:()=>Ia,number:()=>_h,percentage:()=>Ra,length:()=>La,lineWidth:()=>Ah,shadow:()=>Oh,color:()=>Ph,image:()=>Bh,gradient:()=>Ma,position:()=>Lh,familyName:()=>Mh,genericName:()=>Wh,absoluteSize:()=>qh,relativeSize:()=>Uh});var Sh=io(),Ch=Oa(),fo=["min","max","clamp","calc"],Ba=/,(?![^(]*\))/g,gn=/_(?![^(]*\))/g;function Qe(e,t=!0){return e.includes("url(")?e.split(/(url\(.*?\))/g).filter(Boolean).map(n=>/^url\(.*?\)$/.test(n)?n:Qe(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 Ia(e){return e.startsWith("url(")}function _h(e){return!isNaN(Number(e))||fo.some(t=>new RegExp(`^${t}\\(.+?`).test(e))}function Ra(e){return e.split(gn).every(t=>/%$/g.test(t)||fo.some(n=>new RegExp(`^${n}\\(.+?%`).test(t)))}var kh=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],Pa=`(?:${kh.join("|")})`;function La(e){return e.split(gn).every(t=>t==="0"||new RegExp(`${Pa}$`).test(t)||fo.some(n=>new RegExp(`^${n}\\(.+?${Pa}`).test(t)))}var Th=new Set(["thin","medium","thick"]);function Ah(e){return Th.has(e)}function Oh(e){let t=(0,Ch.parseBoxShadowValue)(Qe(e));for(let n of t)if(!n.valid)return!1;return!0}function Ph(e){let t=0;return e.split(gn).every(r=>(r=Qe(r),r.startsWith("var(")?!0:(0,Sh.parseColor)(r,{loose:!0})!==null?(t++,!0):!1))?t>0:!1}function Bh(e){let t=0;return e.split(Ba).every(r=>(r=Qe(r),r.startsWith("var(")?!0:Ia(r)||Ma(r)||["element(","image(","cross-fade(","image-set("].some(i=>r.startsWith(i))?(t++,!0):!1))?t>0:!1}var Ih=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function Ma(e){e=Qe(e);for(let t of Ih)if(e.startsWith(`${t}(`))return!0;return!1}var Rh=new Set(["center","top","right","bottom","left"]);function Lh(e){let t=0;return e.split(gn).every(r=>(r=Qe(r),r.startsWith("var(")?!0:Rh.has(r)||La(r)||Ra(r)?(t++,!0):!1))?t>0:!1}function Mh(e){let t=0;return e.split(Ba).every(r=>(r=Qe(r),r.startsWith("var(")?!0:r.includes(" ")&&!/(['"])([^"']+)\1/g.test(r)||/^\d/g.test(r)?!1:(t++,!0)))?t>0:!1}var Nh=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function Wh(e){return Nh.has(e)}var $h=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function qh(e){return $h.has(e)}var zh=new Set(["larger","smaller"]);function Uh(e){return zh.has(e)}});var Ha=k(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});function Gh(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Gh(mo,{updateAllClasses:()=>Vh,asValue:()=>Dr,parseColorFormat:()=>po,asColor:()=>Ua,asLookupValue:()=>Ga,coerceValue:()=>Kh});var jh=ho(ga()),Hh=ho(ba()),Wa=uo(),pe=Na(),$a=ho(Jn());function ho(e){return e&&e.__esModule?e:{default:e}}function Vh(e,t){return(0,jh.default)(i=>{i.walkClasses(o=>{let u=t(o.value);o.value=u,o.raws&&o.raws.value&&(o.raws.value=(0,Hh.default)(o.raws.value))})}).processSync(e)}function za(e,t){if(!mr(e))return;let n=e.slice(1,-1);if(t(n))return(0,pe.normalize)(n)}function Yh(e,t={},n){let r=t[e];if(r!==void 0)return(0,$a.default)(r);if(mr(e)){let i=za(e,n);return i===void 0?void 0:(0,$a.default)(i)}}function Dr(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("-")?Yh(e.slice(1),t.values,n):za(e,n)}function mr(e){return e.startsWith("[")&&e.endsWith("]")}function Xh(e){let t=e.lastIndexOf("/");return t===-1||t===e.length-1?[e]:[e.slice(0,t),e.slice(t+1)]}function po(e){if(typeof e=="string"&&e.includes("<alpha-value>")){let t=e;return({opacityValue:n=1})=>t.replace("<alpha-value>",n)}return e}function Ua(e,t={},{tailwindConfig:n={}}={}){var r;if(((r=t.values)===null||r===void 0?void 0:r[e])!==void 0){var i;return po((i=t.values)===null||i===void 0?void 0:i[e])}let[o,u]=Xh(e);if(u!==void 0){var s,a,l,f;let c=(f=(s=t.values)===null||s===void 0?void 0:s[o])!==null&&f!==void 0?f:mr(o)?o.slice(1,-1):void 0;return c===void 0?void 0:(c=po(c),mr(u)?(0,Wa.withAlphaValue)(c,u.slice(1,-1)):((a=n.theme)===null||a===void 0||(l=a.opacity)===null||l===void 0?void 0:l[u])===void 0?void 0:(0,Wa.withAlphaValue)(c,n.theme.opacity[u]))}return Dr(e,t,{validate:pe.color})}function Ga(e,t={}){var n;return(n=t.values)===null||n===void 0?void 0:n[e]}function Fe(e){return(t,n)=>Dr(t,n,{validate:e})}var ja={any:Dr,color:Ua,url:Fe(pe.url),image:Fe(pe.image),length:Fe(pe.length),percentage:Fe(pe.percentage),position:Fe(pe.position),lookup:Ga,"generic-name":Fe(pe.genericName),"family-name":Fe(pe.familyName),number:Fe(pe.number),"line-width":Fe(pe.lineWidth),"absolute-size":Fe(pe.absoluteSize),"relative-size":Fe(pe.relativeSize),shadow:Fe(pe.shadow)},qa=Object.keys(ja);function Qh(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(mr(t)){let i=t.slice(1,-1),[o,u]=Qh(i,":");if(!/^[\w-_]+$/g.test(o))u=i;else if(o!==void 0&&!qa.includes(o))return[];if(u.length>0&&qa.includes(o))return[Dr(`[${u}]`,n),o]}for(let i of[].concat(e)){let o=ja[i](t,n,{tailwindConfig:r});if(o!==void 0)return[o,i]}return[]}});var Va=k(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Object.defineProperty(Do,"default",{enumerable:!0,get:()=>Jh});function Jh(e){return typeof e=="function"?e({}):e}});var Ja=k(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});Object.defineProperty(bo,"default",{enumerable:!0,get:()=>bm});var Zh=st(Jn()),em=st(ts()),tm=st(rs()),rm=st(ti()),nm=st(is()),Qa=os(),Ya=us(),im=as(),om=st(ls()),um=fs(),sm=Ha(),am=uo(),lm=st(Va());function st(e){return e&&e.__esModule?e:{default:e}}function Et(e){return typeof e=="function"}function gr(e){return typeof e=="object"&&e!==null}function br(e,...t){let n=t.pop();for(let r of t)for(let i in r){let o=n(e[i],r[i]);o===void 0?gr(e[i])&&gr(r[i])?e[i]=br(e[i],r[i],n):e[i]=r[i]:e[i]=o}return e}var go={colors:nm.default,negative(e){return Object.keys(e).filter(t=>e[t]!=="0").reduce((t,n)=>{let r=(0,Zh.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 fm(e,...t){return Et(e)?e(...t):e}function cm(e){return e.reduce((t,{extend:n})=>br(t,n,(r,i)=>r===void 0?[i]:Array.isArray(r)?[i,...r]:[i,r]),{})}function dm(e){return{...e.reduce((t,n)=>(0,Qa.defaults)(t,n),{}),extend:cm(e)}}function Xa(e,t){if(Array.isArray(e)&&gr(e[0]))return e.concat(t);if(Array.isArray(t)&&gr(t[0])&&gr(e))return[e,...t];if(Array.isArray(t))return t}function pm({extend:e,...t}){return br(t,e,(n,r)=>!Et(n)&&!r.some(Et)?br({},n,...r,Xa):(i,o)=>br({},...[n,...r].map(u=>fm(u,i,o)),Xa))}function*hm(e){let t=(0,Ya.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,o]=r,u=(0,Ya.toPath)(i);u.alpha=o,yield u}}function mm(e){let t=(n,r)=>{for(let i of hm(n)){let o=0,u=e;for(;u!=null&&o<i.length;)u=u[i[o++]],u=Et(u)&&(i.alpha===void 0||o<=i.length-1)?u(t,go):u;if(u!==void 0){if(i.alpha!==void 0){let s=(0,sm.parseColorFormat)(u);return(0,am.withAlphaValue)(s,i.alpha,(0,lm.default)(s))}return(0,om.default)(u)?(0,um.cloneDeep)(u):u}}return r};return Object.assign(t,{theme:t,...go}),Object.keys(e).reduce((n,r)=>(n[r]=Et(e[r])?e[r](t,go):e[r],n),{})}function Ka(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(o=>{o.__isOptionsFunction&&(o=o());var u;t=[...t,...Ka([(u=o==null?void 0:o.config)!==null&&u!==void 0?u:{}])]})}),t}function Dm(e){return[...e].reduceRight((n,r)=>Et(r)?r({corePlugins:n}):(0,tm.default)(r,n),em.default)}function gm(e){return[...e].reduceRight((n,r)=>[...n,...r],[])}function bm(e){let t=[...Ka(e),{prefix:"",important:!1,separator:":",variantOrder:rm.default.variantOrder}];var n,r;return(0,im.normalizeConfig)((0,Qa.defaults)({theme:mm(pm(dm(t.map(i=>(n=i==null?void 0:i.theme)!==null&&n!==void 0?n:{})))),corePlugins:Dm(t.map(i=>i.corePlugins)),plugins:gm(e.map(i=>(r=i==null?void 0:i.plugins)!==null&&r!==void 0?r:[]))},...t))}});var Za={};Lr(Za,{default:()=>vm});var vm,el=En(()=>{vm={yellow:e=>e}});var il=k(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});function ym(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}ym(vo,{flagEnabled:()=>wm,issueFlagNotices:()=>Em,default:()=>Sm});var xm=nl((el(),Ot(Za))),Fm=nl((tn(),Ot(en)));function nl(e){return e&&e.__esModule?e:{default:e}}var tl={optimizeUniversalDefaults:!1},vr={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function wm(e,t){if(vr.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:tl[t])!==null&&i!==void 0?i:!1)}if(vr.experimental.includes(t)){var o,u,s;return e.experimental==="all"||((s=(u=e==null||(o=e.experimental)===null||o===void 0?void 0:o[t])!==null&&u!==void 0?u:tl[t])!==null&&s!==void 0?s:!1)}return!1}function rl(e){if(e.experimental==="all")return vr.experimental;var t;return Object.keys((t=e==null?void 0:e.experimental)!==null&&t!==void 0?t:{}).filter(n=>vr.experimental.includes(n)&&e.experimental[n])}function Em(e){if(process.env.JEST_WORKER_ID===void 0&&rl(e).length>0){let t=rl(e).map(n=>xm.default.yellow(n)).join(", ");Fm.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 Sm=vr});var ul=k(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});Object.defineProperty(yo,"default",{enumerable:!0,get:()=>ol});var Cm=km(ti()),_m=il();function km(e){return e&&e.__esModule?e:{default:e}}function ol(e){var t;let n=((t=e==null?void 0:e.presets)!==null&&t!==void 0?t:[Cm.default]).slice().reverse().flatMap(o=>ol(typeof o=="function"?o():o)),r={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},i=Object.keys(r).filter(o=>(0,_m.flagEnabled)(e,o)).map(o=>r[o]);return[e,...i,...n]}});var al=k(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});Object.defineProperty(xo,"default",{enumerable:!0,get:()=>Om});var Tm=sl(Ja()),Am=sl(ul());function sl(e){return e&&e.__esModule?e:{default:e}}function Om(...e){let[,...t]=(0,Am.default)(e[0]);return(0,Tm.default)([...e,...t])}});var fl=k((Gb,ll)=>{var Fo=al();ll.exports=(Fo.__esModule?Fo:{default:Fo}).default});var Km={};Lr(Km,{default:()=>$o,init:()=>Ko});module.exports=Ot(Km);var Dt;function Ko(e){Dt=e}var Pt=null;async function Le(){return Dt||(Pt?(await Pt,Dt):(Pt=Promise.resolve().then(()=>(Qo(),Xo)).then(e=>e.getYogaModule()).then(e=>Dt=e),await Pt,Pt=null,Dt))}var Bt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Hl=Bt((e,t)=>{t.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),Vl=Bt((e,t)=>{t.exports=["deg","grad","rad","turn"]}),Yl=Bt((e,t)=>{t.exports=["dpi","dpcm","dppx"]}),Xl=Bt((e,t)=>{t.exports=["Hz","kHz"]}),Ql=Bt((e,t)=>{t.exports=["s","ms"]}),Kl=Hl(),Jo=Vl(),Zo=Yl(),eu=Xl(),tu=Ql();function Cn(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(Jl(e)>1)throw new Error("Only one dot is allowed");if(/%$/.test(e)){this.type="percentage",this.value=Sn(e),this.unit="%";return}var t=ef(e);if(!t){this.type="number",this.value=Sn(e);return}this.type=rf(t),this.value=Sn(e.substr(0,e.length-t.length)),this.unit=t}Cn.prototype.valueOf=function(){return this.value};Cn.prototype.toString=function(){return this.value+(this.unit||"")};function Me(e){return new Cn(e)}function Jl(e){var t=e.match(/\./g);return t?t.length:0}function Sn(e){var t=parseFloat(e);if(isNaN(t))throw new Error("Invalid number: "+e);return t}var Zl=[].concat(Jo,eu,Kl,Zo,tu);function ef(e){var t=e.match(/\D+$/),n=t&&t[0];if(n&&Zl.indexOf(n)===-1)throw new Error("Invalid unit: "+n);return n}var tf=Object.assign(Mr(Jo,"angle"),Mr(eu,"frequency"),Mr(Zo,"resolution"),Mr(tu,"time"));function Mr(e,t){return Object.fromEntries(e.map(n=>[n,t]))}function rf(e){return tf[e]||"length"}var ru=He(require("linebreak"),1);function gt(e){let t=typeof e;return!(t==="number"||t==="bigint"||t==="string"||t==="boolean")}function nu(e){return/^class\s/.test(e.toString())}function iu(e){return"dangerouslySetInnerHTML"in e}function ou(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 O(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 o=new Me(e);if(o.type==="length")switch(o.unit){case"em":return o.value*t;case"rem":return o.value*16;case"vw":return~~(o.value*r._viewportWidth/100);case"vh":return~~(o.value*r._viewportHeight/100);default:return o.value}else{if(o.type==="angle")return Tn(e);if(o.type==="percentage"&&i)return o.value/100*n}}catch{}}function Tn(e){let t=new Me(e);switch(t.unit){case"deg":return t.value;case"rad":return t.value*180/Math.PI;case"turn":return t.value*360;case"grad":return .9*t.value}}function It(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(o=>`"${o}"`).join(" | ")}. Received: "${e}".`);i=n}return i}var _n,kn,uu=[32,160,4961,65792,65793,4153,4241,10].map(e=>String.fromCodePoint(e));function le(e,t,n){if(!_n||!kn){if(!(typeof Intl<"u"&&"Segmenter"in Intl))throw new Error("Intl.Segmenter does not exist, please use import a polyfill.");_n=new Intl.Segmenter(n,{granularity:"word"}),kn=new Intl.Segmenter(n,{granularity:"grapheme"})}if(t==="grapheme")return[...kn.segment(e)].map(r=>r.segment);{let r=[..._n.segment(e)].map(u=>u.segment),i=[],o=0;for(;o<r.length;){let u=r[o];if(u=="\xA0"){let s=o===0?"":i.pop(),a=o===r.length-1?"":r[o+1];i.push(s+"\xA0"+a),o+=2}else i.push(u),o++}return i}}function E(e,t,n){let r="";for(let[i,o]of Object.entries(t))typeof o<"u"&&(r+=` ${i}="${o}"`);return n?`<${e}${r}>${n}</${e}>`:`<${e}${r}/>`}function su(e=20){let t=new Map;function n(o,u){if(t.size>=e){let s=t.keys().next().value;t.delete(s)}t.set(o,u)}function r(o){if(!t.has(o))return;let s=t.get(o);return t.delete(o),t.set(o,s),s}function i(){t.clear()}return{set:n,get:r,clear:i}}function bt(e){return e?e.split(/[, ]/).filter(Boolean).map(Number):null}function nf(e){return Object.prototype.toString.call(e)}function Nr(e){return typeof e=="string"}function au(e){return typeof e=="number"}function lu(e){return nf(e)==="[object Undefined]"}function fu(e,t){if(t==="break-all")return{words:le(e,"grapheme"),requiredBreaks:[]};if(t==="keep-all")return{words:le(e,"word"),requiredBreaks:[]};let n=new ru.default(e),r=0,i=n.nextBreak(),o=[],u=[!1];for(;i;){let s=e.slice(r,i.position);o.push(s),i.required?u.push(!0):u.push(!1),r=i.position,i=n.nextBreak()}return{words:o,requiredBreaks:u}}var cu=e=>e.replaceAll(/([A-Z])/g,(t,n)=>`-${n.toLowerCase()}`);function Wr(e,t=","){let n=[],r=0,i=0;t=new RegExp(t);for(let o=0;o<e.length;o++)e[o]==="("?i++:e[o]===")"&&i--,i===0&&t.test(e[o])&&(n.push(e.slice(r,o).trim()),r=o+1);return n.push(e.slice(r).trim()),n}var of="image/avif",uf="image/webp",$r="image/apng",qr="image/png",zr="image/jpeg",Ur="image/gif",An="image/svg+xml";function hu(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 o=t.getUint8(i+1+n);if(o===192||o===193||o===194)return[t.getUint16(i+7+n,!1),t.getUint16(i+5+n,!1)];n+=i+2}throw new TypeError("Invalid JPEG")}function mu(e){let t=new Uint8Array(e.slice(6,10));return[t[0]|t[1]<<8,t[2]|t[3]<<8]}function Du(e){let t=new DataView(e);return[t.getUint16(18,!1),t.getUint16(22,!1)]}var Oe=su(100),Rt=new Map,sf=[qr,$r,zr,Ur,An];function af(e){let t="",n=new Uint8Array(e);for(let r=0;r<n.byteLength;r++)t+=String.fromCharCode(n[r]);return btoa(t)}function lf(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 du(e,t){let n=t.match(/<svg[^>]*>/)[0],r=n.match(/viewBox=['"](.+)['"]/),i=r?bt(r[1]):null,o=n.match(/width=['"](\d*\.\d+|\d+)['"]/),u=n.match(/height=['"](\d*\.\d+|\d+)['"]/);if(!i&&(!o||!u))throw new Error(`Failed to parse SVG from ${e}: missing "viewBox"`);let s=i?[i[2],i[3]]:[+o[1],+u[1]],a=s[0]/s[1];return o&&u?[+o[1],+u[1]]:o?[+o[1],+o[1]/a]:u?[+u[1]*a,+u[1]]:[s[0],s[1]]}function pu(e){let t,n=ff(new Uint8Array(e));switch(n){case qr:case $r:t=Du(e);break;case Ur:t=mu(e);break;case zr:t=hu(e);break}if(!sf.includes(n))throw new Error(`Unsupported image type: ${n||"unknown"}`);return[`data:${n};base64,${af(e)}`,t]}async function vt(e){if(!e)throw new Error("Image source is not provided.");if(typeof e=="object"){let[i,o]=pu(e);return[i,...o]}if((e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1)),typeof window>"u"&&!e.startsWith("http")&&!e.startsWith("data:"))throw new Error(`Image source must be an absolute URL: ${e}`);if(e.startsWith("data:")){let i;try{i=/data:(?<imageType>[a-z/+]+)(;[^;=]+=[^;=]+)*?(;(?<encodingType>[^;,]+))?,(?<dataString>.*)/g.exec(e).groups}catch{return console.warn("Image data URI resolved without size:"+e),[e]}let{imageType:o,encodingType:u,dataString:s}=i;if(o===An){let a=u==="base64"?atob(s):decodeURIComponent(s.replace(/ /g,"%20")),l=u==="base64"?e:`data:image/svg+xml;base64,${btoa(a)}`,f=du(e,a);return Oe.set(e,[l,...f]),[l,...f]}else if(u==="base64"){let a,l=lf(s);switch(o){case qr:case $r:a=Du(l);break;case Ur:a=mu(l);break;case zr:a=hu(l);break}return Oe.set(e,[e,...a]),[e,...a]}else return console.warn("Image data URI resolved without size:"+e),Oe.set(e,[e]),[e]}if(!globalThis.fetch)throw new Error("`fetch` is required to be polyfilled to load images.");if(Rt.has(e))return Rt.get(e);let t=Oe.get(e);if(t)return t;let n=e,r=fetch(n).then(i=>{let o=i.headers.get("content-type");return o==="image/svg+xml"||o==="application/svg+xml"?i.text():i.arrayBuffer()}).then(i=>{if(typeof i=="string")try{let s=`data:image/svg+xml;base64,${btoa(i)}`,a=du(n,i);return[s,...a]}catch(s){throw new Error(`Failed to parse SVG image: ${s.message}`)}let[o,u]=pu(i);return[o,...u]}).then(i=>(Oe.set(n,i),i)).catch(i=>(console.error(`Can't load image ${n}: `+i.message),Oe.set(n,[]),[]));return Rt.set(n,r),r}function ff(e){return[255,216,255].every((t,n)=>e[n]===t)?zr:[137,80,78,71,13,10,26,10].every((t,n)=>e[n]===t)?cf(e)?$r:qr:[71,73,70,56].every((t,n)=>e[n]===t)?Ur:[82,73,70,70,0,0,0,0,87,69,66,80].every((t,n)=>!t||e[n]===t)?uf:[60,63,120,109,108].every((t,n)=>e[n]===t)?An:[0,0,0,0,102,116,121,112,97,118,105,102].every((t,n)=>!t||e[n]===t)?of:null}function cf(e){let t=new DataView(e.buffer),n,r,i=8,o=!1;for(;!o&&n!=="IEND"&&i<e.length;){r=t.getUint32(i);let u=e.subarray(i+4,i+8);n=String.fromCharCode(...u),o=n==="acTL",i+=12+r}return o}var On={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",href:"href",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"},df=/[\r\n%#()<>?[\\\]^`{|}"']/g;function Pn(e,t){if(!e)return"";if(Array.isArray(e))return e.map(l=>Pn(l,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,...o}=e.props||{},u=(i==null?void 0:i.color)||t,s=`${Object.entries(o).map(([l,f])=>(typeof f=="string"&&f.toLowerCase()==="currentcolor"&&(f=u),l==="href"&&n==="image"?` ${On[l]||l}="${Oe.get(f)[0]}"`:` ${On[l]||l}="${f}"`)).join("")}`,a=i?` style="${Object.entries(i).map(([l,f])=>`${cu(l)}:${f}`).join(";")}"`:"";return`<${n}${s}${a}>${Pn(r,u)}</${n}>`}async function gu(e){let t=new Set,n=r=>{if(r&>(r)){if(Array.isArray(r)){r.forEach(i=>n(i));return}else typeof r=="object"&&(r.type==="image"?t.has(r.props.href)||t.add(r.props.href):r.type==="img"&&(t.has(r.props.src)||t.add(r.props.src)));Array.isArray(r.props.children)?r.props.children.map(i=>n(i)):n(r.props.children)}};return n(e),Promise.all(Array.from(t).map(r=>vt(r)))}async function bu(e,t){let{viewBox:n,viewbox:r,width:i,height:o,className:u,style:s,children:a,...l}=e.props||{};n||=r,l.xmlns="http://www.w3.org/2000/svg";let f=(s==null?void 0:s.color)||t,c=bt(n),p=c?c[3]/c[2]:null;return i=i||p&&o?o/p:null,o=o||p&&i?i*p:null,l.width=i,l.height=o,n&&(l.viewBox=n),`data:image/svg+xml;utf8,${`<svg ${Object.entries(l).map(([d,h])=>(typeof h=="string"&&h.toLowerCase()==="currentcolor"&&(h=f),` ${On[d]||d}="${h}"`)).join("")}>${Pn(a,f)}</svg>`.replace(df,encodeURIComponent)}`}var be="flex",vu={p:{display:be,marginTop:"1em",marginBottom:"1em"},div:{display:be},blockquote:{display:be,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:be,textAlign:"center"},hr:{display:be,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:be,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:be,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:be,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:be,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:be,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:be,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:be,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}};var pf=new Set(["color","font","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","textAlign","textTransform","textShadowOffset","textShadowColor","textShadowRadius","WebkitTextStrokeWidth","WebkitTextStrokeColor","textDecorationLine","textDecorationStyle","textDecorationColor","whiteSpace","transform","wordBreak","tabSize","opacity","filter","_viewportWidth","_viewportHeight","_inheritedClipPathId","_inheritedMaskId","_inheritedBackgroundClipTextPath"]);function Bn(e){let t={};for(let n in e)pf.has(n)&&(t[n]=e[n]);return t}var Ce=require("css-to-react-native"),Cu=require("css-background-parser"),_u=require("css-box-shadow"),ku=He(require("parse-css-color"),1);var yu=He(require("postcss-value-parser"),1);function hf(e,t){try{let n=new Me(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 In(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=hf(e,t);return r.absolute?{[n?"xAbsolute":"yAbsolute"]:r.absolute}:r.relative?{[n?"xRelative":"yRelative"]:r.relative}:{}}}}function Rn(e,t){if(typeof e=="number")return{xAbsolute:e};let n;try{n=(0,yu.default)(e).nodes.filter(r=>r.type==="word").map(r=>r.value)}catch{return{}}return n.length===1?In(n[0],t,!0):n.length===2?((n[0]==="top"||n[0]==="bottom"||n[1]==="left"||n[1]==="right")&&n.reverse(),{...In(n[0],t,!0),...In(n[1],t,!1)}):{}}var xu=require("css-to-react-native");function Lt(e,t){let n=(0,xu.getPropertyName)(`mask-${t}`);return e[n]||e[`WebkitM${n.substring(1)}`]}function Fu(e){let t=e.maskImage||e.WebkitMaskImage,n={position:Lt(e,"position")||"0% 0%",size:Lt(e,"size")||"100% 100%",repeat:Lt(e,"repeat")||"repeat",origin:Lt(e,"origin")||"border-box",clip:Lt(e,"origin")||"border-box"};return Wr(t).filter(i=>i&&i!=="none").reverse().map(i=>({image:i,...n}))}var mf=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),Df=new Set(["lineHeight"]);function gf(e,t,n,r){return e==="textDecoration"&&!n.includes(t.textDecorationColor)&&(t.textDecorationColor=r),t}function rt(e,t){let n=Number(t);return isNaN(n)?t:mf.has(e)?Df.has(e)?n:String(t):n+"px"}function bf(e,t,n){if(e==="lineHeight")return{lineHeight:rt(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("/"),o=(0,Ce.getStylesForProperty)(e,r,!0),u=(0,Ce.getStylesForProperty)(e,i,!0);for(let s in o)u[s]=rt(e,o[s])+" "+rt(e,u[s]);return u}if(/^border(Top|Right|Bottom|Left)?$/.test(e)){let r=(0,Ce.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:rt(e+"Width",r.borderWidth),Style:ce(r.borderStyle,{solid:"solid",dashed:"dashed"},"solid",e+"Style"),Color:r.borderColor},o={};for(let u of e==="border"?["Top","Right","Bottom","Left"]:[e.slice(6)])for(let s in i)o["border"+u+s]=i[s];return o}if(e==="boxShadow"){if(!t)throw new Error('Invalid `boxShadow` value: "'+t+'".');return{[e]:typeof t=="string"?(0,_u.parse)(t):t}}if(e==="transform"){if(typeof t!="string")throw new Error("Invalid `transform` value.");let r={},i=t.replace(/(-?[\d.]+%)/g,(u,s)=>{let a=~~(Math.random()*1e9);return r[a]=s,a+"px"}),o=(0,Ce.getStylesForProperty)("transform",i,!0);for(let u of o.transform)for(let s in u)r[u[s]]&&(u[s]=r[u[s]]);return o}if(e==="background")return t=t.toString().trim(),/^(linear-gradient|radial-gradient|url|repeating-linear-gradient)\(/.test(t)?(0,Ce.getStylesForProperty)("backgroundImage",t,!0):(0,Ce.getStylesForProperty)("background",t,!0);if(e==="textShadow"){t=t.toString().trim();let r={},i=Wr(t);for(let o of i){let u=(0,Ce.getStylesForProperty)("textShadow",o,!0);for(let s in u)r[s]?r[s].push(u[s]):r[s]=[u[s]]}return r}if(e==="WebkitTextStroke"){t=t.toString().trim();let r=t.split(" ");if(r.length!==2)throw new Error("Invalid `WebkitTextStroke` value.");return{WebkitTextStrokeWidth:rt(e,r[0]),WebkitTextStrokeColor:rt(e,r[1])}}}function wu(e){return e==="transform"?" Only absolute lengths such as `10px` are supported.":""}var Eu=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function Tu(e){if(typeof e=="string"&&Eu.test(e.trim()))return e.trim().replace(Eu,(t,n,r,i,o)=>`rgba(${n}, ${r}, ${i}, ${o})`);if(typeof e=="object"&&e!==null){for(let t in e)e[t]=Tu(e[t]);return e}return e}function Gr(e,t){let n={};if(e){let i=yf(e.color,t.color);n.color=i;for(let o in e){if(o.startsWith("_")){n[o]=e[o];continue}if(o==="color")continue;let u=(0,Ce.getPropertyName)(o),s=Ff(e[o],i);try{let a=bf(u,s,i)||gf(u,(0,Ce.getStylesForProperty)(u,rt(u,s),!0),s,i);Object.assign(n,a)}catch(a){throw new Error(a.message+(a.message.includes(s)?`
|
|
4
|
-
`+
|
|
5
|
-
in CSS rule \`${u}: ${s}\`.${wu(u)}`))}}}if(n.backgroundImage){let{backgrounds:i}=(0,Cu.parseElementStyle)(n);n.backgroundImage=i}(n.maskImage||n.WebkitMaskImage)&&(n.maskImage=Fu(n));let r=vf(n.fontSize,t.fontSize);typeof n.fontSize<"u"&&(n.fontSize=r),n.transformOrigin&&(n.transformOrigin=Rn(n.transformOrigin,r));for(let i in n){let o=n[i];if(i==="lineHeight")typeof o=="string"&&o!=="normal"&&(o=n[i]=O(o,r,r,t,!0)/r);else{if(typeof o=="string"){let u=O(o,r,r,t);typeof u<"u"&&(n[i]=u),o=n[i]}if(typeof o=="string"||typeof o=="object"){let u=Tu(o);u&&(n[i]=u),o=n[i]}}if(i==="opacity"&&typeof o=="number"&&(n.opacity=o*t.opacity),i==="transform"){let u=o;for(let s of u){let a=Object.keys(s)[0],l=s[a],f=typeof l=="string"?O(l,r,r,t)??l:l;s[a]=f}}if(i==="textShadowRadius"){let u=o;n.textShadowRadius=u.map(s=>O(s,r,0,t,!1))}if(i==="textShadowOffset"){let u=o;n.textShadowOffset=u.map(({height:s,width:a})=>({height:O(s,r,0,t,!1),width:O(a,r,0,t,!1)}))}}return n}function vf(e,t){if(typeof e=="number")return e;try{let n=new Me(e);switch(n.unit){case"em":return n.value*t;case"rem":return n.value*16}}catch{return t}}function Su(e){if(e.startsWith("hsl")){let t=(0,ku.default)(e),[n,r,i]=t.values;return`hsl(${[n,`${r}%`,`${i}%`].concat(t.alpha===1?[]:[t.alpha]).join(",")})`}return e}function yf(e,t){return e&&e.toLowerCase()!=="currentcolor"?Su(e):Su(t)}function xf(e,t){return e.replace(/currentcolor/gi,t)}function Ff(e,t){return Nr(e)&&(e=xf(e,t)),e}async function Ln(e,t,n,r,i){let o=await Le(),u={...n,...Gr(vu[t],n),...Gr(r,n)};if(t==="img"){let[s,a,l]=await vt(i.src);if(a===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.");a=parseInt(i.width),l=parseInt(i.height)}let f=l/a,c=(u.borderLeftWidth||0)+(u.borderRightWidth||0)+(u.paddingLeft||0)+(u.paddingRight||0),p=(u.borderTopWidth||0)+(u.borderBottomWidth||0)+(u.paddingTop||0)+(u.paddingBottom||0),d=u.width||i.width,h=u.height||i.height,m=typeof d=="number"&&typeof h=="number";m&&(d-=c,h-=p),d===void 0&&h===void 0?(d="100%",e.setAspectRatio(1/f)):d===void 0?typeof h=="number"?d=h/f:e.setAspectRatio(1/f):h===void 0&&(typeof d=="number"?h=d*f:e.setAspectRatio(1/f)),u.width=m?d+c:d,u.height=m?h+p:h,u.__src=s}if(t==="svg"){let s=i.viewBox||i.viewbox,a=bt(s),l=a?a[3]/a[2]:null,{width:f,height:c}=i;typeof f>"u"&&c?l==null?f=0:typeof c=="string"&&c.endsWith("%")?f=parseInt(c)/l+"%":(c=O(c,n.fontSize,1,n),f=c/l):typeof c>"u"&&f?l==null?f=0:typeof f=="string"&&f.endsWith("%")?c=parseInt(f)*l+"%":(f=O(f,n.fontSize,1,n),c=f*l):(typeof f<"u"&&(f=O(f,n.fontSize,1,n)||f),typeof c<"u"&&(c=O(c,n.fontSize,1,n)||c),f||=a==null?void 0:a[2],c||=a==null?void 0:a[3]),!u.width&&f&&(u.width=f),!u.height&&c&&(u.height=c)}return e.setDisplay(ce(u.display,{flex:o.DISPLAY_FLEX,block:o.DISPLAY_FLEX,none:o.DISPLAY_NONE,"-webkit-box":o.DISPLAY_FLEX},o.DISPLAY_FLEX,"display")),e.setAlignContent(ce(u.alignContent,{stretch:o.ALIGN_STRETCH,center:o.ALIGN_CENTER,"flex-start":o.ALIGN_FLEX_START,"flex-end":o.ALIGN_FLEX_END,"space-between":o.ALIGN_SPACE_BETWEEN,"space-around":o.ALIGN_SPACE_AROUND,baseline:o.ALIGN_BASELINE,normal:o.ALIGN_AUTO},o.ALIGN_AUTO,"alignContent")),e.setAlignItems(ce(u.alignItems,{stretch:o.ALIGN_STRETCH,center:o.ALIGN_CENTER,"flex-start":o.ALIGN_FLEX_START,"flex-end":o.ALIGN_FLEX_END,baseline:o.ALIGN_BASELINE,normal:o.ALIGN_AUTO},o.ALIGN_STRETCH,"alignItems")),e.setAlignSelf(ce(u.alignSelf,{stretch:o.ALIGN_STRETCH,center:o.ALIGN_CENTER,"flex-start":o.ALIGN_FLEX_START,"flex-end":o.ALIGN_FLEX_END,baseline:o.ALIGN_BASELINE,normal:o.ALIGN_AUTO},o.ALIGN_AUTO,"alignSelf")),e.setJustifyContent(ce(u.justifyContent,{center:o.JUSTIFY_CENTER,"flex-start":o.JUSTIFY_FLEX_START,"flex-end":o.JUSTIFY_FLEX_END,"space-between":o.JUSTIFY_SPACE_BETWEEN,"space-around":o.JUSTIFY_SPACE_AROUND},o.JUSTIFY_FLEX_START,"justifyContent")),e.setFlexDirection(ce(u.flexDirection,{row:o.FLEX_DIRECTION_ROW,column:o.FLEX_DIRECTION_COLUMN,"row-reverse":o.FLEX_DIRECTION_ROW_REVERSE,"column-reverse":o.FLEX_DIRECTION_COLUMN_REVERSE},o.FLEX_DIRECTION_ROW,"flexDirection")),e.setFlexWrap(ce(u.flexWrap,{wrap:o.WRAP_WRAP,nowrap:o.WRAP_NO_WRAP,"wrap-reverse":o.WRAP_WRAP_REVERSE},o.WRAP_NO_WRAP,"flexWrap")),typeof u.gap<"u"&&e.setGap(o.GUTTER_ALL,u.gap),typeof u.rowGap<"u"&&e.setGap(o.GUTTER_ROW,u.rowGap),typeof u.columnGap<"u"&&e.setGap(o.GUTTER_COLUMN,u.columnGap),typeof u.flexBasis<"u"&&e.setFlexBasis(u.flexBasis),e.setFlexGrow(typeof u.flexGrow>"u"?0:u.flexGrow),e.setFlexShrink(typeof u.flexShrink>"u"?0:u.flexShrink),typeof u.maxHeight<"u"&&e.setMaxHeight(u.maxHeight),typeof u.maxWidth<"u"&&e.setMaxWidth(u.maxWidth),typeof u.minHeight<"u"&&e.setMinHeight(u.minHeight),typeof u.minWidth<"u"&&e.setMinWidth(u.minWidth),e.setOverflow(ce(u.overflow,{visible:o.OVERFLOW_VISIBLE,hidden:o.OVERFLOW_HIDDEN},o.OVERFLOW_VISIBLE,"overflow")),e.setMargin(o.EDGE_TOP,u.marginTop||0),e.setMargin(o.EDGE_BOTTOM,u.marginBottom||0),e.setMargin(o.EDGE_LEFT,u.marginLeft||0),e.setMargin(o.EDGE_RIGHT,u.marginRight||0),e.setBorder(o.EDGE_TOP,u.borderTopWidth||0),e.setBorder(o.EDGE_BOTTOM,u.borderBottomWidth||0),e.setBorder(o.EDGE_LEFT,u.borderLeftWidth||0),e.setBorder(o.EDGE_RIGHT,u.borderRightWidth||0),e.setPadding(o.EDGE_TOP,u.paddingTop||0),e.setPadding(o.EDGE_BOTTOM,u.paddingBottom||0),e.setPadding(o.EDGE_LEFT,u.paddingLeft||0),e.setPadding(o.EDGE_RIGHT,u.paddingRight||0),e.setPositionType(ce(u.position,{absolute:o.POSITION_TYPE_ABSOLUTE,relative:o.POSITION_TYPE_RELATIVE},o.POSITION_TYPE_RELATIVE,"position")),typeof u.top<"u"&&e.setPosition(o.EDGE_TOP,u.top),typeof u.bottom<"u"&&e.setPosition(o.EDGE_BOTTOM,u.bottom),typeof u.left<"u"&&e.setPosition(o.EDGE_LEFT,u.left),typeof u.right<"u"&&e.setPosition(o.EDGE_RIGHT,u.right),typeof u.height<"u"?e.setHeight(u.height):e.setHeightAuto(),typeof u.width<"u"?e.setWidth(u.width):e.setWidthAuto(),[u,Bn(u)]}var Mn=He(require("escape-html"),1);var Au=[1,0,0,1,0,0];function wf(e,t,n){let r=[...Au];for(let i of e){let o=Object.keys(i)[0],u=i[o];if(typeof u=="string")if(o==="translateX")u=parseFloat(u)/100*t,i[o]=u;else if(o==="translateY")u=parseFloat(u)/100*n,i[o]=u;else throw new Error(`Invalid transform: "${o}: ${u}".`);let s=u,a=[...Au];switch(o){case"translateX":a[4]=s;break;case"translateY":a[5]=s;break;case"scale":a[0]=s,a[3]=s;break;case"scaleX":a[0]=s;break;case"scaleY":a[3]=s;break;case"rotate":{let l=s*Math.PI/180,f=Math.cos(l),c=Math.sin(l);a[0]=f,a[1]=c,a[2]=-c,a[3]=f;break}case"skewX":a[2]=Math.tan(s*Math.PI/180);break;case"skewY":a[1]=Math.tan(s*Math.PI/180);break}r=It(a,r)}e.splice(0,e.length),e.push(...r),e.__resolved=!0}function Mt({left:e,top:t,width:n,height:r},i,o,u){let s;i.__resolved||wf(i,n,r);let a=i;if(o)s=a;else{let l=(u==null?void 0:u.xAbsolute)??((u==null?void 0:u.xRelative)??50)*n/100,f=(u==null?void 0:u.yAbsolute)??((u==null?void 0:u.yRelative)??50)*r/100,c=e+l,p=t+f;s=It([1,0,0,1,c,p],It(a,[1,0,0,1,-c,-p])),a.__parent&&(s=It(a.__parent,s)),a.splice(0,6,...s)}return`matrix(${s.map(l=>l.toFixed(2)).join(",")})`}function Ou({left:e,top:t,width:n,height:r,isInheritingTransform:i},o){let u="",s=1;return o.transform&&(u=Mt({left:e,top:t,width:n,height:r},o.transform,i,o.transformOrigin)),o.opacity!==void 0&&(s=+o.opacity),{matrix:u,opacity:s}}function Nn({id:e,content:t,filter:n,left:r,top:i,width:o,height:u,matrix:s,opacity:a,image:l,clipPathId:f,debug:c,shape:p,decorationShape:d},h){let m="";if(c&&(m=E("rect",{x:r,y:i-u,width:o,height:u,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:s||void 0,"clip-path":f?`url(#${f})`:void 0})),l){let g={href:l,x:r,y:i,width:o,height:u,transform:s||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})">`:"")+E("image",{...g,opacity:a!==1?a:void 0})+(d||"")+(n?"</g>":"")+m,""]}let x={x:r,y:i,width:o,height:u,"font-weight":h.fontWeight,"font-style":h.fontStyle,"font-size":h.fontSize,"font-family":h.fontFamily,"letter-spacing":h.letterSpacing||void 0,transform:s||void 0,"clip-path":f?`url(#${f})`:void 0,style:h.filter?`filter:${h.filter}`:void 0,"stroke-width":h.WebkitTextStrokeWidth?`${h.WebkitTextStrokeWidth}px`:void 0,stroke:h.WebkitTextStrokeWidth?h.WebkitTextStrokeColor:void 0,"stroke-linejoin":h.WebkitTextStrokeWidth?"round":void 0,"paint-order":h.WebkitTextStrokeWidth?"stroke":void 0};return[(n?`${n}<g filter="url(#satori_s-${e})">`:"")+E("text",{...x,fill:h.color,opacity:a!==1?a:void 0},(0,Mn.default)(t))+(d||"")+(n?"</g>":"")+m,p?E("text",x,(0,Mn.default)(t)):""]}function Ef(e,t,n){return e.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(r,i,o,u){return i+(parseFloat(o)+t)+","+(parseFloat(u)+n)})}var jr=1.1;function Pu({id:e,width:t,height:n},r){if(!r.shadowColor||!r.shadowOffset||typeof r.shadowRadius>"u")return"";let i=r.shadowColor.length,o="",u="",s=0,a=t,l=0,f=n;for(let c=0;c<i;c++){let p=r.shadowRadius[c]*r.shadowRadius[c]/4;s=Math.min(r.shadowOffset[c].width-p,s),a=Math.max(r.shadowOffset[c].width+p+t,a),l=Math.min(r.shadowOffset[c].height-p,l),f=Math.max(r.shadowOffset[c].height+p+n,f),o+=E("feDropShadow",{dx:r.shadowOffset[c].width,dy:r.shadowOffset[c].height,stdDeviation:r.shadowRadius[c]/2,"flood-color":r.shadowColor[c],"flood-opacity":1,...i>1?{in:"SourceGraphic",result:`satori_s-${e}-result-${c}`}:{}}),i>1&&(u=E("feMergeNode",{in:`satori_s-${e}-result-${c}`})+u)}return E("filter",{id:`satori_s-${e}`,x:(s/t*100*jr).toFixed(2)+"%",y:(l/n*100*jr).toFixed(2)+"%",width:((a-s)/t*100*jr).toFixed(2)+"%",height:((f-l)/n*100*jr).toFixed(2)+"%"},o+(u?E("feMerge",{},u):""))}function Bu({width:e,height:t,shape:n,opacity:r,id:i},o){if(!o.boxShadow)return null;let u="",s="";for(let a=o.boxShadow.length-1;a>=0;a--){let l="",f=o.boxShadow[a];f.spreadRadius&&f.inset&&(f.spreadRadius=-f.spreadRadius);let c=f.blurRadius*f.blurRadius/4+(f.spreadRadius||0),p=Math.min(-c-(f.inset?f.offsetX:0),0),d=Math.max(c+e-(f.inset?f.offsetX:0),e),h=Math.min(-c-(f.inset?f.offsetY:0),0),m=Math.max(c+t-(f.inset?f.offsetY:0),t),x=`satori_s-${i}-${a}`,g=`satori_ms-${i}-${a}`,S=f.spreadRadius?n.replace('stroke-width="0"',`stroke-width="${f.spreadRadius*2}"`):n;l+=E("mask",{id:g,maskUnits:"userSpaceOnUse"},E("rect",{x:0,y:0,width:o._viewportWidth||"100%",height:o._viewportHeight||"100%",fill:f.inset?"#000":"#fff"})+S.replace('fill="#fff"',f.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let v=S.replace(/d="([^"]+)"/,(b,y)=>'d="'+Ef(y,f.offsetX,f.offsetY)+'"').replace(/x="([^"]+)"/,(b,y)=>'x="'+(parseFloat(y)+f.offsetX)+'"').replace(/y="([^"]+)"/,(b,y)=>'y="'+(parseFloat(y)+f.offsetY)+'"');f.spreadRadius&&f.spreadRadius<0&&(l+=E("mask",{id:g+"-neg",maskUnits:"userSpaceOnUse"},v.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-f.spreadRadius*2}"`))),f.spreadRadius&&f.spreadRadius<0&&(v=E("g",{mask:`url(#${g}-neg)`},v)),l+=E("defs",{},E("filter",{id:x,x:`${p/e*100}%`,y:`${h/t*100}%`,width:`${(d-p)/e*100}%`,height:`${(m-h)/t*100}%`},E("feGaussianBlur",{stdDeviation:f.blurRadius/2,result:"b"})+E("feFlood",{"flood-color":f.color,in:"SourceGraphic",result:"f"})+E("feComposite",{in:"f",in2:"b",operator:f.inset?"out":"in"})))+E("g",{mask:`url(#${g})`,filter:`url(#${x})`,opacity:r},v),f.inset?s+=l:u+=l}return[u,s]}function Wn({width:e,left:t,top:n,ascender:r,clipPathId:i,matrix:o},u){let{textDecorationColor:s,textDecorationStyle:a,textDecorationLine:l,fontSize:f,color:c}=u;if(!l||l==="none")return"";let p=Math.max(1,f*.1),d=l==="line-through"?n+r*.7:l==="underline"?n+r*1.1:n,h=a==="dashed"?`${p*1.2} ${p*2}`:a==="dotted"?`0 ${p*2}`:void 0;return(i?`<g clip-path="url(#${i})">`:"")+E("line",{x1:t,y1:d,x2:t+e,y2:d,stroke:s||c,"stroke-width":p,"stroke-dasharray":h,"stroke-linecap":a==="dotted"?"round":"square",transform:o})+(i?"</g>":"")}function $n(e){return e=e.replace("U+","0x"),String.fromCodePoint(Number(e))}var nt=$n("U+0020"),qn=$n("U+0009"),yt=$n("U+2026");function Iu(e,t,n){let{fontSize:r,letterSpacing:i}=n,o=new Map;function u(l){if(o.has(l))return o.get(l);let f=e.measure(l,{fontSize:r,letterSpacing:i});return o.set(l,f),f}function s(l){let f=0;for(let c of l)t(c)?f+=r:f+=u(c);return f}function a(l){return s(le(l,"grapheme"))}return{measureGrapheme:u,measureGraphemeArray:s,measureText:a}}function Ru(e,t,n){let{textTransform:r,whiteSpace:i,wordBreak:o}=t;e=Sf(e,r,n);let{content:u,shouldCollapseTabsAndSpaces:s,allowSoftWrap:a}=kf(e,i),{words:l,requiredBreaks:f,allowBreakWord:c}=_f(u,o),[p,d]=Cf(t,a);return{words:l,requiredBreaks:f,allowSoftWrap:a,allowBreakWord:c,processedContent:u,shouldCollapseTabsAndSpaces:s,lineLimit:p,blockEllipsis:d}}function Sf(e,t,n){return t==="uppercase"?e=e.toLocaleUpperCase(n):t==="lowercase"?e=e.toLocaleLowerCase(n):t==="capitalize"&&(e=le(e,"word",n).map(r=>le(r,"grapheme",n).map((i,o)=>o===0?i.toLocaleUpperCase(n):i).join("")).join("")),e}function Cf(e,t){let{textOverflow:n,lineClamp:r,WebkitLineClamp:i,WebkitBoxOrient:o,overflow:u,display:s}=e;if(s==="block"&&r){let[a,l=yt]=Tf(r);if(a)return[a,l]}return n==="ellipsis"&&s==="-webkit-box"&&o==="vertical"&&au(i)&&i>0?[i,yt]:n==="ellipsis"&&u==="hidden"&&!t?[1,yt]:[1/0]}function _f(e,t){let n=["break-all","break-word"].includes(t),{words:r,requiredBreaks:i}=fu(e,t);return{words:r,requiredBreaks:i,allowBreakWord:n}}function kf(e,t){let n=["pre","pre-wrap","pre-line"].includes(t),r=["normal","nowrap","pre-line"].includes(t),i=!["pre","nowrap"].includes(t);return n||(e=e.replace(/\n/g,nt)),r&&(e=e.replace(/([ ]|\t)+/g,nt).replace(/^[ ]|[ ]$/g,"")),{content:e,shouldCollapseTabsAndSpaces:r,allowSoftWrap:i}}function Tf(e){if(typeof e=="number")return[e];let t=/^(\d+)\s*"(.*)"$/,n=/^(\d+)\s*'(.*)'$/,r=t.exec(e),i=n.exec(e);if(r){let o=+r[1],u=r[2];return[o,u]}else if(i){let o=+i[1],u=i[2];return[o,u]}return[]}var Af=new Set([qn]);function Of(e){return Af.has(e)}async function*zn(e,t){let n=await Le(),{parentStyle:r,inheritedStyle:i,parent:o,font:u,id:s,isInheritingTransform:a,debug:l,embedFont:f,graphemeImages:c,locale:p,canLoadAdditionalAssets:d}=t,{textAlign:h,lineHeight:m,textWrap:x,fontSize:g,filter:S,tabSize:v=8,letterSpacing:b,_inheritedBackgroundClipTextPath:y,flexShrink:T}=r,{words:A,requiredBreaks:P,allowSoftWrap:j,allowBreakWord:ie,processedContent:ue,shouldCollapseTabsAndSpaces:fe,lineLimit:Q,blockEllipsis:oe}=Ru(e,r,p),Z=Pf(n,h);o.insertChild(Z,o.getChildCount()),lu(T)&&o.setFlexShrink(1);let N=u.getEngine(g,m,r,p),Ee=d?le(ue,"grapheme").filter(B=>!Of(B)&&!N.has(B)):[];yield Ee.map(B=>({word:B,locale:p})),Ee.length&&(N=u.getEngine(g,m,r,p));function ke(B){return!!(c&&c[B])}let{measureGrapheme:me,measureGraphemeArray:Sr,measureText:Je}=Iu(N,ke,{fontSize:g,letterSpacing:b}),_t=Nr(v)?O(v,g,1,r):me(nt)*v,Cr=(B,H)=>{if(B.length===0)return{originWidth:0,endingSpacesWidth:0,text:B};let{index:K,tabCount:W}=Bf(B),ee=0;if(W>0){let te=B.slice(0,K),J=B.slice(K+W),z=Je(te),Ae=z+H;ee=(_t===0?z:(Math.floor(Ae/_t)+W)*_t)+Je(J)}else ee=Je(B);let $=B.trimEnd()===B?ee:Je(B.trimEnd());return{originWidth:ee,endingSpacesWidth:ee-$,text:B}},I=[],De=[],ft=[],ct=[],kt=[];function xn(B){let H=0,K=0,W=-1,ee=0,$=0,te=0,J=0;I=[],ft=[0],ct=[],kt=[];let z=0,Ae=0;for(;z<A.length&&H<Q;){let R=A[z],Ze=P[z],ge=0,{originWidth:Ue,endingSpacesWidth:Br,text:Ge}=Cr(R,$);R=Ge,ge=Ue;let V=Br;Ze&&te===0&&(te=N.height(R));let se=",.!?:-@)>]}%#".indexOf(R[0])<0,je=!$,Ir=z&&se&&$+ge>B+V&&j;if(ie&&ge>B&&(!$||Ir||Ze)){let ae=le(R,"grapheme");A.splice(z,1,...ae),$>0&&(I.push($-Ae),De.push(J),H++,ee+=te,$=0,te=0,J=0,ft.push(1),W=-1),Ae=V;continue}if(Ze||Ir)fe&&R===nt&&(ge=0),I.push($-Ae),De.push(J),H++,ee+=te,$=ge,te=ge?N.height(R):0,J=ge?N.baseline(R):0,ft.push(1),W=-1,Ze||(K=Math.max(K,B));else{$+=ge;let ae=N.height(R);ae>te&&(te=ae,J=N.baseline(R)),je&&ft[ft.length-1]++}je&&W++,K=Math.max(K,$);let et=$-ge;if(ge===0)kt.push({y:ee,x:et,width:0,line:H,lineIndex:W,isImage:!1});else{let ae=le(R,"word");for(let Se=0;Se<ae.length;Se++){let tt=ae[Se],Re=0,At=!1;ke(tt)?(Re=g,At=!0):Re=me(tt),ct.push(tt),kt.push({y:ee,x:et,width:Re,line:H,lineIndex:W,isImage:At}),et+=Re}}z++,Ae=V}return $&&(H<Q&&(ee+=te),H++,I.push($),De.push(J)),{width:K,height:ee}}let _r={width:0,height:0};Z.setMeasureFunc(B=>{let{width:H,height:K}=xn(B);if(x==="balance"){let ee=H/2,$=H,te=H;for(;ee+1<$;){te=(ee+$)/2;let{height:z}=xn(te);z>K?ee=te:$=te}xn($);let J=Math.ceil($);return _r={width:J,height:K},{width:J,height:K}}let W=Math.ceil(H);return _r={width:W,height:K},{width:W,height:K}});let[Ll,Ml]=yield,Fn="",kr="",qe=i._inheritedClipPathId,qo=i._inheritedMaskId,{left:zo,top:Uo,width:wn,height:Nl}=Z.getComputedLayout(),Tr=o.getComputedWidth()-o.getComputedPadding(n.EDGE_LEFT)-o.getComputedPadding(n.EDGE_RIGHT)-o.getComputedBorder(n.EDGE_LEFT)-o.getComputedBorder(n.EDGE_RIGHT),dt=Ll+zo,pt=Ml+Uo,{matrix:Te,opacity:Ar}=Ou({left:zo,top:Uo,width:wn,height:Nl,isInheritingTransform:a},r),ht="";if(r.textShadowOffset){let{textShadowColor:B,textShadowOffset:H,textShadowRadius:K}=r;ht=Pu({width:_r.width,height:_r.height,id:s},{shadowColor:B,shadowOffset:H,shadowRadius:K}),ht=E("defs",{},ht)}let Tt="",Or="",Go="",Pr=-1,mt={},ze=null,jo=0;for(let B=0;B<ct.length;B++){let H=kt[B],K=kt[B+1];if(!H)continue;let W=ct[B],ee=null,$=!1,te=c?c[W]:null,J=H.y,z=H.x,Ae=H.width,R=H.line;if(R===Pr)continue;let Ze=!1;if(I.length>1){let V=wn-I[R];if(h==="right"||h==="end")z+=V;else if(h==="center")z+=V/2;else if(h==="justify"&&R<I.length-1){let se=ft[R],je=se>1?V/(se-1):0;z+=je*H.lineIndex,Ze=!0}}let ge=De[R],Ue=N.baseline(W),Br=N.height(W),Ge=ge-Ue;if(mt[R]||(mt[R]=[z,pt+J+Ge,Ue,Ze?wn:I[R]]),Q!==1/0){let et=function(ae,Se){let tt=le(Se,"grapheme",p),Re="",At=0;for(let Ho of tt){let Vo=ae+Sr([Re+Ho]);if(Re&&Vo+se>Tr)break;Re+=Ho,At=Vo}return{subset:Re,resolvedWidth:At}},V=oe,se=me(oe);se>Tr&&(V=yt,se=me(V));let je=me(nt),Ir=R<I.length-1;if(R+1===Q&&(Ir||I[R]>Tr)){if(z+Ae+se+je>Tr){let{subset:ae,resolvedWidth:Se}=et(z,W);W=ae+V,Pr=R,mt[R][2]=Se,$=!0}else if(K&&K.line!==R)if(h==="center"){let{subset:ae,resolvedWidth:Se}=et(z,W);W=ae+V,Pr=R,mt[R][2]=Se,$=!0}else{let ae=ct[B+1],{subset:Se,resolvedWidth:tt}=et(Ae+z,ae);W=W+Se+V,Pr=R,mt[R][2]=tt,$=!0}}}if(te)J+=0;else if(f){if(!W.includes(qn)&&!uu.includes(W)&&ct[B+1]&&K&&!K.isImage&&J===K.y&&!$){ze===null&&(jo=z),ze=ze===null?W:ze+W;continue}let V=ze===null?W:ze+W,se=ze===null?z:jo,je=H.width+z-se;ee=N.getSVG(V.replace(/(\t)+/g,""),{fontSize:g,left:dt+se,top:pt+J+Ue+Ge,letterSpacing:b}),ze=null,l&&(Go+=E("rect",{x:dt+se,y:pt+J+Ge,width:je,height:Br,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:Te||void 0,"clip-path":qe?`url(#${qe})`:void 0})+E("line",{x1:dt+z,x2:dt+z+H.width,y1:pt+J+Ge+Ue,y2:pt+J+Ge+Ue,stroke:"#14c000","stroke-width":1,transform:Te||void 0,"clip-path":qe?`url(#${qe})`:void 0}))}else J+=Ue+Ge;if(r.textDecorationLine){let V=mt[R];V&&!V[4]&&(Tt+=Wn({left:dt+V[0],top:V[1],width:V[3],ascender:V[2],clipPathId:qe,matrix:Te},r),V[4]=1)}if(ee!==null)Or+=ee+" ";else{let[V,se]=Nn({content:W,filter:ht,id:s,left:dt+z,top:pt+J,width:Ae,height:Br,matrix:Te,opacity:Ar,image:te,clipPathId:qe,debug:l,shape:!!y,decorationShape:Tt},r);Fn+=V,kr+=se,Tt=""}if($)break}if(Or){let B=r.color!=="transparent"&&Ar!==0?E("path",{fill:r.color,d:Or,transform:Te||void 0,opacity:Ar!==1?Ar:void 0,"clip-path":qe?`url(#${qe})`:void 0,mask:qo?`url(#${qo})`:void 0,style:S?`filter:${S}`:void 0,"stroke-width":i.WebkitTextStrokeWidth?`${i.WebkitTextStrokeWidth}px`:void 0,stroke:i.WebkitTextStrokeWidth?i.WebkitTextStrokeColor:void 0,"stroke-linejoin":i.WebkitTextStrokeWidth?"round":void 0,"paint-order":i.WebkitTextStrokeWidth?"stroke":void 0}):"";y&&(kr=E("path",{d:Or,transform:Te||void 0})),Fn+=(ht?ht+E("g",{filter:`url(#satori_s-${s})`},B+Tt):B+Tt)+Go}return kr&&(r._inheritedBackgroundClipTextPath.value+=kr),Fn}function Pf(e,t){let n=e.Node.create();return n.setAlignItems(e.ALIGN_BASELINE),n.setJustifyContent(ce(t,{left:e.JUSTIFY_FLEX_START,right:e.JUSTIFY_FLEX_END,center:e.JUSTIFY_CENTER,justify:e.JUSTIFY_SPACE_BETWEEN,start:e.JUSTIFY_FLEX_START,end:e.JUSTIFY_FLEX_END},e.JUSTIFY_FLEX_START,"textAlign")),n}function Bf(e){let t=/(\t)+/.exec(e);return t?{index:t.index,tabCount:t[0].length}:{index:null,tabCount:0}}var Mu=require("css-gradient-parser");var Lu=He(require("parse-css-color"),1);function Hr(e,t,n,r,i){let o=[];for(let l of t){let{color:f}=l;if(!o.length&&(o.push({offset:0,color:f}),!l.offset||l.offset.value==="0"))continue;let c=typeof l.offset>"u"?void 0:l.offset.unit==="%"?+l.offset.value/100:Number(O(`${l.offset.value}${l.offset.unit}`,n.fontSize,e,n,!0))/e;o.push({offset:c,color:f})}o.length||o.push({offset:0,color:"transparent"});let u=o[o.length-1];u.offset!==1&&(typeof u.offset>"u"?u.offset=1:r?o[o.length-1]={offset:1,color:u.color}:o.push({offset:1,color:u.color}));let s=0,a=1;for(let l=0;l<o.length;l++)if(typeof o[l].offset>"u"){for(a<l&&(a=l);typeof o[a].offset>"u";)a++;o[l].offset=(o[a].offset-o[s].offset)/(a-s)*(l-s)+o[s].offset}else s=l;return i==="mask"?o.map(l=>{let f=(0,Lu.default)(l.color);return f?f.alpha===0?{...l,color:"rgba(0, 0, 0, 1)"}:{...l,color:`rgba(255, 255, 255, ${f.alpha})`}:l}):o}function Nu({id:e,width:t,height:n,repeatX:r,repeatY:i},o,u,s,a,l){let f=(0,Mu.parseLinearGradient)(o),[c,p]=u,d=o.startsWith("repeating"),h,m,x;if(f.orientation.type==="directional")h=Rf(f.orientation.value),m=Math.sqrt(Math.pow((h.x2-h.x1)*c,2)+Math.pow((h.y2-h.y1)*p,2));else if(f.orientation.type==="angular"){let{length:y,...T}=Lf(Tn(`${f.orientation.value.value}${f.orientation.value.unit}`)/180*Math.PI,c,p);m=y,h=T}x=d?Mf(f.stops,m,h,a):h;let g=Hr(d?If(f.stops,m):m,f.stops,a,d,l),S=`satori_bi${e}`,v=`satori_pattern_${e}`,b=E("pattern",{id:v,x:s[0]/t,y:s[1]/n,width:r?c/t:"1",height:i?p/n:"1",patternUnits:"objectBoundingBox"},E("linearGradient",{id:S,...x,spreadMethod:d?"repeat":"pad"},g.map(y=>E("stop",{offset:(y.offset??0)*100+"%","stop-color":y.color})).join(""))+E("rect",{x:0,y:0,width:c,height:p,fill:`url(#${S})`}));return[v,b]}function If(e,t){let n=e[e.length-1],{offset:r}=n;return r?r.unit==="%"?Number(r.value)/100*t:Number(r.value):t}function Rf(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),{x1:t,y1:n,x2:r,y2:i}}function Lf(e,t,n){let r=Math.pow(n/t,2);e=(e%(Math.PI*2)+Math.PI*2)%(Math.PI*2);let i,o,u,s,a,l,f,c,p=d=>{if(d===0){i=0,o=n,u=0,s=0,a=n;return}else if(d===Math.PI/2){i=0,o=0,u=t,s=0,a=t;return}if(d>0&&d<Math.PI/2){i=(r*t/2/Math.tan(d)-n/2)/(Math.tan(d)+r/Math.tan(d)),o=Math.tan(d)*i+n,u=Math.abs(t/2-i)+t/2,s=n/2-Math.abs(o-n/2),a=Math.sqrt(Math.pow(u-i,2)+Math.pow(s-o,2)),f=(t/2/Math.tan(d)-n/2)/(Math.tan(d)+1/Math.tan(d)),c=Math.tan(d)*f+n,a=2*Math.sqrt(Math.pow(t/2-f,2)+Math.pow(n/2-c,2));return}else if(d>Math.PI/2&&d<Math.PI){i=(n/2+r*t/2/Math.tan(d))/(Math.tan(d)+r/Math.tan(d)),o=Math.tan(d)*i,u=Math.abs(t/2-i)+t/2,s=n/2+Math.abs(o-n/2),f=(t/2/Math.tan(d)+n/2)/(Math.tan(d)+1/Math.tan(d)),c=Math.tan(d)*f,a=2*Math.sqrt(Math.pow(t/2-f,2)+Math.pow(n/2-c,2));return}else d>=Math.PI&&(p(d-Math.PI),l=i,i=u,u=l,l=o,o=s,s=l)};return p(e),{x1:i/t,y1:o/n,x2:u/t,y2:s/n,length:a}}function Mf(e,t,n,r){let{x1:i,x2:o,y1:u,y2:s}=n,a=e[0].offset?e[0].offset.unit==="%"?Number(e[0].offset.value)/100:O(`${e[0].offset.value}${e[0].offset.unit}`,r.fontSize,t,r,!0)/t:0,l=e.at(-1).offset?e.at(-1).offset.unit==="%"?Number(e.at(-1).offset.value)/100:O(`${e.at(-1).offset.value}${e.at(-1).offset.unit}`,r.fontSize,t,r,!0)/t:1,f=(o-i)*a+i,c=(s-u)*a+u,p=(o-i)*l+i,d=(s-u)*l+u;return{x1:f,y1:c,x2:p,y2:d}}var $u=require("css-gradient-parser");function qu({id:e,width:t,height:n,repeatX:r,repeatY:i},o,u,s,a,l){var ie;let{shape:f,stops:c,position:p,size:d}=(0,$u.parseRadialGradient)(o),[h,m]=u,x=h/2,g=m/2,S=Nf(p.x,p.y,h,m,a.fontSize,a);x=S.x,g=S.y;let v=Hr(t,c,a,!1,l),b=`satori_radial_${e}`,y=`satori_pattern_${e}`,T=`satori_mask_${e}`,A=Wf(f,d,a.fontSize,{x,y:g},[h,m],a),P=E("pattern",{id:y,x:s[0]/t,y:s[1]/n,width:r?h/t:"1",height:i?m/n:"1",patternUnits:"objectBoundingBox"},E("radialGradient",{id:b},v.map(ue=>E("stop",{offset:ue.offset||0,"stop-color":ue.color})).join(""))+E("mask",{id:T},E("rect",{x:0,y:0,width:h,height:m,fill:"#fff"}))+E("rect",{x:0,y:0,width:h,height:m,fill:((ie=v.at(-1))==null?void 0:ie.color)||"transparent"})+E(f,{cx:x,cy:g,width:h,height:m,...A,fill:`url(#${b})`,mask:`url(#${T})`}));return[y,P]}function Nf(e,t,n,r,i,o){let u={x:n/2,y:r/2};return e.type==="keyword"?Object.assign(u,Wu(e.value,n,r,"x")):u.x=O(`${e.value.value}${e.value.unit}`,i,n,o,!0)||n/2,t.type==="keyword"?Object.assign(u,Wu(t.value,n,r,"y")):u.y=O(`${t.value.value}${t.value.unit}`,i,r,o,!0)||r/2,u}function Wu(e,t,n,r){switch(e){case"center":return{[r]:r==="x"?t/2:n/2};case"left":return{x:0};case"top":return{y:0};case"right":return{x:t};case"bottom":return{y:n}}}function Wf(e,t,n,r,i,o){let[u,s]=i,{x:a,y:l}=r,f={},c=0,p=0;if($f(t)){if(t.some(d=>d.value.value.startsWith("-")))throw new Error("disallow setting negative values to the size of the shape. Check https://w3c.github.io/csswg-drafts/css-images/#valdef-rg-size-length-0");return e==="circle"?{r:Number(O(`${t[0].value.value}${t[0].value.unit}`,n,u,o,!0))}:{rx:Number(O(`${t[0].value.value}${t[0].value.unit}`,n,u,o,!0)),ry:Number(O(`${t[1].value.value}${t[1].value.unit}`,n,s,o,!0))}}switch(t[0].value){case"farthest-corner":c=Math.max(Math.abs(u-a),Math.abs(a)),p=Math.max(Math.abs(s-l),Math.abs(l));break;case"closest-corner":c=Math.min(Math.abs(u-a),Math.abs(a)),p=Math.min(Math.abs(s-l),Math.abs(l));break;case"farthest-side":return e==="circle"?f.r=Math.max(Math.abs(u-a),Math.abs(a),Math.abs(s-l),Math.abs(l)):(f.rx=Math.max(Math.abs(u-a),Math.abs(a)),f.ry=Math.max(Math.abs(s-l),Math.abs(l))),f;case"closest-side":return e==="circle"?f.r=Math.min(Math.abs(u-a),Math.abs(a),Math.abs(s-l),Math.abs(l)):(f.rx=Math.min(Math.abs(u-a),Math.abs(a)),f.ry=Math.min(Math.abs(s-l),Math.abs(l))),f}if(e==="circle")f.r=Math.sqrt(c*c+p*p);else{let d=p!==0?c/p:1;c===0?(f.rx=0,f.ry=0):(f.ry=Math.sqrt(c*c+p*p*d*d)/d,f.rx=f.ry*d)}return f}function $f(e){return!e.some(t=>t.type==="keyword")}function qf(e,t){return typeof e=="string"&&e.endsWith("%")?t*parseFloat(e)/100:+e}function Un(e,{x:t,y:n,defaultX:r,defaultY:i}){return(e?e.split(" ").map(o=>{try{let u=new Me(o);return u.type==="length"||u.type==="number"?u.value:u.value+u.unit}catch{return null}}).filter(o=>o!==null):[r,i]).map((o,u)=>qf(o,[t,n][u]))}async function Nt({id:e,width:t,height:n,left:r,top:i},{image:o,size:u,position:s,repeat:a},l,f){a=a||"repeat",f=f||"background";let c=a==="repeat-x"||a==="repeat",p=a==="repeat-y"||a==="repeat",d=Un(u,{x:t,y:n,defaultX:t,defaultY:n}),h=Un(s,{x:t,y:n,defaultX:0,defaultY:0});if(o.startsWith("linear-gradient(")||o.startsWith("repeating-linear-gradient("))return Nu({id:e,width:t,height:n,repeatX:c,repeatY:p},o,d,h,l,f);if(o.startsWith("radial-gradient("))return qu({id:e,width:t,height:n,repeatX:c,repeatY:p},o,d,h,l,f);if(o.startsWith("url(")){let m=Un(u,{x:t,y:n,defaultX:0,defaultY:0}),[x,g,S]=await vt(o.slice(4,-1)),v=f==="mask"?g||m[0]:m[0]||g,b=f==="mask"?S||m[1]:m[1]||S;return[`satori_bi${e}`,E("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:h[0]+r,y:h[1]+i,width:c?v:"100%",height:p?b:"100%"},E("image",{x:0,y:0,width:v,height:b,preserveAspectRatio:"none",href:x}))]}throw new Error(`Invalid background image: "${o}"`)}function zf([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 Vr(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 Yr(e){e[0]=e[1]=Math.min(e[0],e[1])}function Xr(e,t,n,r,i){if(typeof e=="string"){let o=e.split(" ").map(s=>s.trim()),u=!o[1]&&!o[0].endsWith("%");return o[1]=o[1]||o[0],[u,[Math.min(O(o[0],r,t,i,!0),t),Math.min(O(o[1],r,n,i,!0),n)]]}return typeof e=="number"?[!0,[Math.min(e,t),Math.min(e,n)]]:[!0,void 0]}var Qr=e=>e&&e[0]!==0&&e[1]!==0;function zu({id:e,borderRadiusPath:t,borderType:n,left:r,top:i,width:o,height:u},s){let a=`satori_brc-${e}`;return[E("clipPath",{id:a},E(n,{x:r,y:i,width:o,height:u,d:t||void 0})),a]}function Ve({left:e,top:t,width:n,height:r},i,o){let{borderTopLeftRadius:u,borderTopRightRadius:s,borderBottomLeftRadius:a,borderBottomRightRadius:l,fontSize:f}=i,c,p,d,h;if([c,u]=Xr(u,n,r,f,i),[p,s]=Xr(s,n,r,f,i),[d,a]=Xr(a,n,r,f,i),[h,l]=Xr(l,n,r,f,i),!o&&!Qr(u)&&!Qr(s)&&!Qr(a)&&!Qr(l))return"";u||=[0,0],s||=[0,0],a||=[0,0],l||=[0,0],[u[0],s[0]]=Vr(u[0],s[0],n),[a[0],l[0]]=Vr(a[0],l[0],n),[u[1],a[1]]=Vr(u[1],a[1],r),[s[1],l[1]]=Vr(s[1],l[1],r),c&&Yr(u),p&&Yr(s),d&&Yr(a),h&&Yr(l);let m=[];m[0]=[s,s],m[1]=[l,[-l[0],l[1]]],m[2]=[a,[-a[0],-a[1]]],m[3]=[u,[u[0],-u[1]]];let x=`h${n-u[0]-s[0]} a${m[0][0]} 0 0 1 ${m[0][1]}`,g=`v${r-s[1]-l[1]} a${m[1][0]} 0 0 1 ${m[1][1]}`,S=`h${l[0]+a[0]-n} a${m[2][0]} 0 0 1 ${m[2][1]}`,v=`v${a[1]+u[1]-r} a${m[3][0]} 0 0 1 ${m[3][1]}`;if(o){let y=function(fe){let Q=zf([u,s,l,a][fe]);return fe===0?[[e+u[0]-Q,t+u[1]-Q],[e+u[0],t]]:fe===1?[[e+n-s[0]+Q,t+s[1]-Q],[e+n,t+s[1]]]:fe===2?[[e+n-l[0]+Q,t+r-l[1]+Q],[e+n-l[0],t+r]]:[[e+a[0]-Q,t+r-a[1]+Q],[e,t+r-a[1]]]},b=o.indexOf(!1);if(!o.includes(!0))throw new Error("Invalid `partialSides`.");if(b===-1)b=0;else for(;!o[b];)b=(b+1)%4;let T="",A=y(b),P=`M${A[0]} A${m[(b+3)%4][0]} 0 0 1 ${A[1]}`,j=0;for(;j<4&&o[(b+j)%4];j++)T+=P+" ",P=[x,g,S,v][(b+j)%4];let ie=(b+j)%4;T+=P.split(" ")[0];let ue=y(ie);return T+=` A${m[(ie+3)%4][0]} 0 0 1 ${ue[0]}`,T}return`M${e+u[0]},${t} ${x} ${g} ${S} ${v}`}function Uu(e,t,n){return n[e+"Width"]===n[t+"Width"]&&n[e+"Style"]===n[t+"Style"]&&n[e+"Color"]===n[t+"Color"]}function Gu({id:e,currentClipPathId:t,borderPath:n,borderType:r,left:i,top:o,width:u,height:s},a){if(!(a.borderTopWidth||a.borderRightWidth||a.borderBottomWidth||a.borderLeftWidth))return null;let f=`satori_bc-${e}`;return[E("clipPath",{id:f,"clip-path":t?`url(#${t})`:void 0},E(r,{x:i,y:o,width:u,height:s,d:n||void 0})),f]}function Wt({left:e,top:t,width:n,height:r,props:i,asContentMask:o,maskBorderOnly:u},s){let a=["borderTop","borderRight","borderBottom","borderLeft"];if(!o&&!a.some(d=>s[d+"Width"]))return"";let l="",f=0;for(;f>0&&Uu(a[f],a[(f+3)%4],s);)f=(f+3)%4;let c=[!1,!1,!1,!1],p=[];for(let d=0;d<4;d++){let h=(f+d)%4,m=(f+d+1)%4,x=a[h],g=a[m];if(c[h]=!0,p=[s[x+"Width"],s[x+"Style"],s[x+"Color"],x],!Uu(x,g,s)){let S=(p[0]||0)+(o&&!u&&s[x.replace("border","padding")]||0);S&&(l+=E("path",{width:n,height:r,...i,fill:"none",stroke:o?"#000":p[2],"stroke-width":S*2,"stroke-dasharray":!o&&p[1]==="dashed"?S*2+" "+S:void 0,d:Ve({left:e,top:t,width:n,height:r},s,c)})),c=[!1,!1,!1,!1]}}if(c.some(Boolean)){let d=(p[0]||0)+(o&&!u&&s[p[3].replace("border","padding")]||0);d&&(l+=E("path",{width:n,height:r,...i,fill:"none",stroke:o?"#000":p[2],"stroke-width":d*2,"stroke-dasharray":!o&&p[1]==="dashed"?d*2+" "+d:void 0,d:Ve({left:e,top:t,width:n,height:r},s,c)}))}return l}function Gn({id:e,left:t,top:n,width:r,height:i,matrix:o,borderOnly:u},s){let a=(s.borderLeftWidth||0)+(u?0:s.paddingLeft||0),l=(s.borderTopWidth||0)+(u?0:s.paddingTop||0),f=(s.borderRightWidth||0)+(u?0:s.paddingRight||0),c=(s.borderBottomWidth||0)+(u?0:s.paddingBottom||0),p={x:t+a,y:n+l,width:r-a-f,height:i-l-c};return E("mask",{id:e},E("rect",{...p,fill:"#fff",transform:s.overflow==="hidden"&&s.transform&&o?o:void 0,mask:s._inheritedMaskId?`url(#${s._inheritedMaskId})`:void 0})+Wt({left:t,top:n,width:r,height:i,props:{transform:o||void 0},asContentMask:!0,maskBorderOnly:u},s))}var jn=require("css-to-react-native"),$t={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/};function Vu({width:e,height:t},n,r){function i(l){let f=l.match($t.circle);if(!f)return null;let[,c]=f,[p,d=""]=c.split("at").map(x=>x.trim()),{x:h,y:m}=Hu(d,e,t);return{type:"circle",r:O(p,r.fontSize,Math.sqrt(Math.pow(e,2)+Math.pow(t,2))/Math.sqrt(2),r,!0),cx:O(h,r.fontSize,e,r,!0),cy:O(m,r.fontSize,t,r,!0)}}function o(l){let f=l.match($t.ellipse);if(!f)return null;let[,c]=f,[p,d=""]=c.split("at").map(S=>S.trim()),[h,m]=p.split(" "),{x,y:g}=Hu(d,e,t);return{type:"ellipse",rx:O(h||"50%",r.fontSize,e,r,!0),ry:O(m||"50%",r.fontSize,t,r,!0),cx:O(x,r.fontSize,e,r,!0),cy:O(g,r.fontSize,t,r,!0)}}function u(l){let f=l.match($t.path);if(!f)return null;let[c,p]=ju(f[1]);return{type:"path",d:p,"fill-rule":c}}function s(l){let f=l.match($t.polygon);if(!f)return null;let[c,p]=ju(f[1]);return{type:"polygon","fill-rule":c,points:p.split(",").map(d=>d.split(" ").map((h,m)=>O(h,r.fontSize,m===0?e:t,r,!0)).join(" ")).join(",")}}function a(l){let f=l.match($t.inset);if(!f)return null;let[c,p]=(f[1].includes("round")?f[1]:`${f[1].trim()} round 0`).split("round"),d=(0,jn.getStylesForProperty)("borderRadius",p,!0),h=Object.values(d).map(b=>String(b)).map((b,y)=>O(b,r.fontSize,y===0||y===2?t:e,r,!0)||0),m=Object.values((0,jn.getStylesForProperty)("margin",c,!0)).map(b=>String(b)).map((b,y)=>O(b,r.fontSize,y===0||y===2?t:e,r,!0)||0),x=m[3],g=m[0],S=e-(m[1]+m[3]),v=t-(m[0]+m[2]);return h.some(b=>b>0)?{type:"path",d:Ve({left:x,top:g,width:S,height:v},{...n,...d})}:{type:"rect",x,y:g,width:S,height:v}}return{parseCircle:i,parseEllipse:o,parsePath:u,parsePolygon:s,parseInset:a}}function ju(e){let[,t="nonzero",n]=e.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[t,n]}function Hu(e,t,n){let r=e.split(" "),i={x:r[0]||"50%",y:r[1]||"50%"};return r.forEach(o=>{o==="top"?i.y=0:o==="bottom"?i.y=n:o==="left"?i.x=0:o==="right"?i.x=t:o==="center"&&(i.x=t/2,i.y=n/2)}),i}function Kr(e){return`satori_cp-${e}`}function Yu(e){return`url(#${Kr(e)})`}function Xu(e,t,n){if(t.clipPath==="none")return"";let r=Vu(e,t,n),i=t.clipPath,o={type:""};for(let u of Object.keys(r))if(o=r[u](i),o)break;if(o){let{type:u,...s}=o;return E("clipPath",{id:Kr(e.id),"clip-path":e.currentClipPath,transform:`translate(${e.left}, ${e.top})`},E(u,s))}return""}function Hn({left:e,top:t,width:n,height:r,path:i,matrix:o,id:u,currentClipPath:s,src:a},l,f){let c="",p=l.clipPath&&l.clipPath!=="none"?Xu({left:e,top:t,width:n,height:r,path:i,id:u,matrix:o,currentClipPath:s,src:a},l,f):"";if(l.overflow!=="hidden"&&!a)c="";else{let h=p?`satori_ocp-${u}`:Kr(u);c=E("clipPath",{id:h,"clip-path":s},E(i?"path":"rect",{x:e,y:t,width:n,height:r,d:i||void 0,transform:l.overflow==="hidden"&&l.transform&&o?o:void 0}))}let d=Gn({id:`satori_om-${u}`,left:e,top:t,width:n,height:r,matrix:o,borderOnly:!a},l);return p+c+d}var Uf=e=>`satori_mi-${e}`;async function Vn(e,t,n){if(!t.maskImage)return["",""];let{left:r,top:i,width:o,height:u,id:s}=e,a=t.maskImage,l=a.length;if(!l)return["",""];let f=Uf(s),c="";for(let p=0;p<l;p++){let d=a[p],[h,m]=await Nt({id:`${f}-${p}`,left:r,top:i,width:o,height:u},d,n,"mask");c+=m+E("rect",{x:r,y:i,width:o,height:u,fill:`url(#${h})`})}return c=E("mask",{id:f},c),[f,c]}async function qt({id:e,left:t,top:n,width:r,height:i,isInheritingTransform:o,src:u,debug:s},a,l){if(a.display==="none")return"";let f=!!u,c="rect",p="",d="",h=[],m=1,x="";a.backgroundColor&&h.push(a.backgroundColor),a.opacity!==void 0&&(m=+a.opacity),a.transform&&(p=Mt({left:t,top:n,width:r,height:i},a.transform,o,a.transformOrigin));let g="";if(a.backgroundImage){let Z=[];for(let N=0;N<a.backgroundImage.length;N++){let Ee=a.backgroundImage[N],ke=await Nt({id:e+"_"+N,width:r,height:i,left:t,top:n},Ee,l);ke&&Z.unshift(ke)}for(let N of Z)h.push(`url(#${N[0]})`),d+=N[1],N[2]&&(g+=N[2])}let[S,v]=await Vn({id:e,left:t,top:n,width:r,height:i},a,l);d+=v;let b=S?`url(#${S})`:a._inheritedMaskId?`url(#${a._inheritedMaskId})`:void 0,y=Ve({left:t,top:n,width:r,height:i},a);y&&(c="path");let T=a._inheritedClipPathId;s&&(x=E("rect",{x:t,y:n,width:r,height:i,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:p||void 0,"clip-path":T?`url(#${T})`:void 0}));let{backgroundClip:A,filter:P}=a,j=A==="text"?`url(#satori_bct-${e})`:T?`url(#${T})`:a.clipPath?Yu(e):void 0,ie=Hn({left:t,top:n,width:r,height:i,path:y,id:e,matrix:p,currentClipPath:j,src:u},a,l),ue=h.map(Z=>E(c,{x:t,y:n,width:r,height:i,fill:Z,d:y||void 0,transform:p||void 0,"clip-path":a.transform?void 0:j,style:P?`filter:${P}`:void 0,mask:a.transform?void 0:b})).join(""),fe=Gu({id:e,left:t,top:n,width:r,height:i,currentClipPathId:T,borderPath:y,borderType:c},a),Q;if(f){let Z=(a.borderLeftWidth||0)+(a.paddingLeft||0),N=(a.borderTopWidth||0)+(a.paddingTop||0),Ee=(a.borderRightWidth||0)+(a.paddingRight||0),ke=(a.borderBottomWidth||0)+(a.paddingBottom||0),me=a.objectFit==="contain"?"xMidYMid":a.objectFit==="cover"?"xMidYMid slice":"none";a.transform&&(Q=zu({id:e,borderRadiusPath:y,borderType:c,left:t,top:n,width:r,height:i},a)),ue+=E("image",{x:t+Z,y:n+N,width:r-Z-Ee,height:i-N-ke,href:u,preserveAspectRatio:me,transform:p||void 0,style:P?`filter:${P}`:void 0,"clip-path":a.transform?Q?`url(#${Q[1]})`:void 0:`url(#satori_cp-${e})`,mask:a.transform?void 0:S?`url(#${S})`:`url(#satori_om-${e})`})}if(fe){d+=fe[0];let Z=fe[1];ue+=Wt({left:t,top:n,width:r,height:i,props:{transform:p||void 0,"clip-path":`url(#${Z})`}},a)}let oe=Bu({width:r,height:i,id:e,opacity:m,shape:E(c,{x:t,y:n,width:r,height:i,fill:"#fff",stroke:"#fff","stroke-width":0,d:y||void 0,transform:p||void 0,"clip-path":j,mask:b})},a);return(d?E("defs",{},d):"")+(oe?oe[0]:"")+(Q?Q[0]:"")+ie+(m!==1?`<g opacity="${m}">`:"")+(a.transform&&(j||b)?`<g${j?` clip-path="${j}"`:""}${b?` mask="${b}"`:""}>`:"")+(g||ue)+(a.transform&&(j||b)?"</g>":"")+(m!==1?"</g>":"")+(oe?oe[1]:"")+x}var Qu=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;var Gf=new RegExp(Qu(),""),Yn={emoji:Gf,symbol:/\p{Symbol}/u,math:/\p{Math}/u},Xn={"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},Jr=Object.keys({...Xn,...Yn});function Ku(e){return Jr.includes(e)}function Ju(e,t){for(let r of Object.keys(Yn))if(Yn[r].test(e))return[r];let n=Object.keys(Xn).filter(r=>Xn[r].test(e));if(n.length===0)return["unknown"];if(t){let r=n.findIndex(i=>i===t);r!==-1&&(n.splice(r,1),n.unshift(t))}return n}function Zu(e){if(e)return Jr.find(t=>t.toLowerCase().startsWith(e.toLowerCase()))}async function*zt(e,t){var Cr;let n=await Le(),{id:r,inheritedStyle:i,parent:o,font:u,debug:s,locale:a,embedFont:l=!0,graphemeImages:f,canLoadAdditionalAssets:c,getTwStyles:p}=t;if(e===null||typeof e>"u")return yield,yield,"";if(!gt(e)||typeof e.type=="function"){let I;if(!gt(e))I=zn(String(e),t),yield(await I.next()).value;else{if(nu(e.type))throw new Error("Class component is not supported.");I=zt(e.type(e.props),t),yield(await I.next()).value}await I.next();let De=yield;return(await I.next(De)).value}let{type:d,props:h}=e;if(h&&iu(h))throw new Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:m,children:x,tw:g,lang:S=a}=h||{},v=Zu(S);if(g){let I=p(g,m);m=Object.assign(I,m)}let b=n.Node.create();o.insertChild(b,o.getChildCount());let[y,T]=await Ln(b,d,i,m,h),A=y.transform===i.transform;if(A||(y.transform.__parent=i.transform),(y.overflow==="hidden"||y.clipPath&&y.clipPath!=="none")&&(T._inheritedClipPathId=`satori_cp-${r}`,T._inheritedMaskId=`satori_om-${r}`),y.maskImage&&(T._inheritedMaskId=`satori_mi-${r}`),y.backgroundClip==="text"){let I={value:""};T._inheritedBackgroundClipTextPath=I,y._inheritedBackgroundClipTextPath=I}let P=ou(x),j=[],ie=0,ue=[];for(let I of P){let De=zt(I,{id:r+"-"+ie++,parentStyle:y,inheritedStyle:T,isInheritingTransform:!0,parent:b,font:u,embedFont:l,debug:s,graphemeImages:f,canLoadAdditionalAssets:c,locale:v,getTwStyles:p,onNodeDetected:t.onNodeDetected});c?ue.push(...(await De.next()).value||[]):await De.next(),j.push(De)}yield ue;for(let I of j)await I.next();let[fe,Q]=yield,{left:oe,top:Z,width:N,height:Ee}=b.getComputedLayout();oe+=fe,Z+=Q;let ke="",me="",Sr="",{children:Je,..._t}=h;if((Cr=t.onNodeDetected)==null||Cr.call(t,{left:oe,top:Z,width:N,height:Ee,type:d,props:_t,key:e.key,textContent:gt(Je)?void 0:Je}),d==="img"){let I=y.__src;me=await qt({id:r,left:oe,top:Z,width:N,height:Ee,src:I,isInheritingTransform:A,debug:s},y,T)}else if(d==="svg"){let I=y.color,De=await bu(e,I);me=await qt({id:r,left:oe,top:Z,width:N,height:Ee,src:De,isInheritingTransform:A,debug:s},y,T)}else{let I=m==null?void 0:m.display;if(d==="div"&&x&&typeof x!="string"&&I!=="flex"&&I!=="none")throw new Error('Expected <div> to have explicit "display: flex" or "display: none" if it has more than one child node.');me=await qt({id:r,left:oe,top:Z,width:N,height:Ee,isInheritingTransform:A,debug:s},y,T)}for(let I of j)ke+=(await I.next([oe,Z])).value;return y._inheritedBackgroundClipTextPath&&(Sr+=E("clipPath",{id:`satori_bct-${r}`,"clip-path":y._inheritedClipPathId?`url(#${y._inheritedClipPathId})`:void 0},y._inheritedBackgroundClipTextPath.value)),Sr+me+ke}var Zr=He(require("@shuding/opentype.js"),1);var es="unknown";function jf(e,t,[n,r],[i,o]){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!==o){if(r===t)return-1;if(o===t)return 1}return-1}var Ut=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)],o=i[0];for(let u=1;u<i.length;u++){let[,s,a]=o,[,l,f]=i[u];jf(n,r,[s,a],[l,f])>0&&(o=i[u])}return o[0]}addFonts(t){for(let n of t){let{name:r,data:i,lang:o}=n;if(o&&!Ku(o))throw new Error(`Invalid value for props \`lang\`: "${o}". The value must be one of the following: ${Jr.join(", ")}.`);let u=o??es,s=Zr.default.parse("buffer"in i?i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength):i,{lowMemory:!0}),a=s.charToGlyphIndex;s.charToGlyphIndex=f=>{let c=a.call(s,f);return c===0&&s._trackBrokenChars&&s._trackBrokenChars.push(f),c},this.defaultFont||(this.defaultFont=s);let l=`${r.toLowerCase()}_${u}`;this.fonts.has(l)||this.fonts.set(l,[]),this.fonts.get(l).push([s,n.weight,n.style])}}getEngine(t=16,n="normal",{fontFamily:r="sans-serif",fontWeight:i=400,fontStyle:o="normal"},u){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(v=>v.toLowerCase());let s=[];r.forEach(v=>{let b=this.get({name:v,weight:i,style:o});if(b){s.push(b);return}let y=this.get({name:v+"_unknown",weight:i,style:o});if(y){s.push(y);return}});let a=Array.from(this.fonts.keys()),l=[],f=[],c=[];for(let v of a)if(!r.includes(v))if(u){let b=Hf(v);b?b===u?l.push(this.get({name:v,weight:i,style:o})):f.push(this.get({name:v,weight:i,style:o})):c.push(this.get({name:v,weight:i,style:o}))}else c.push(this.get({name:v,weight:i,style:o}));let p=new Map,d=(v,b=!0)=>{let y=[...s,...c,...l,...b?f:[]];if(typeof v>"u")return b?y[y.length-1]:void 0;let T=v.charCodeAt(0);if(p.has(T))return p.get(T);let A=y.find((P,j)=>!!P.charToGlyphIndex(v)||b&&j===y.length-1);return A&&p.set(T,A),A},h=(v,b=!1)=>{var T,A;return((b?(A=(T=v.tables)==null?void 0:T.os2)==null?void 0:A.sTypoAscender:0)||v.ascender)/v.unitsPerEm*t},m=(v,b=!1)=>{var T,A;return((b?(A=(T=v.tables)==null?void 0:T.os2)==null?void 0:A.sTypoDescender:0)||v.descender)/v.unitsPerEm*t},x=(v,b=!1)=>{var y,T;if(typeof n=="string"&&n==="normal"){let A=(b?(T=(y=v.tables)==null?void 0:y.os2)==null?void 0:T.sTypoLineGap:0)||0;return h(v,b)-m(v,b)+A/v.unitsPerEm*t}else if(typeof n=="number")return t*n},g=v=>d(v,!1);return{has:v=>{if(v===`
|
|
6
|
-
`)return!0;let b=g(v);return b?(b._trackBrokenChars=[],b.stringToGlyphs(v),b._trackBrokenChars.length?(b._trackBrokenChars=void 0,!1):!0):!1},baseline:(v,b=typeof v>"u"?s[0]:d(v))=>{let y=h(b),T=m(b),A=y-T;return y+(x(b)-A)/2},height:(v,b=typeof v>"u"?s[0]:d(v))=>x(b),measure:(v,b)=>this.measure(d,v,b),getSVG:(v,b)=>this.getSVG(d,v,b)}}patchFontFallbackResolver(t,n){let r=[];t._trackBrokenChars=r;let i=t.stringToGlyphs;return t.stringToGlyphs=(o,...u)=>{let s=i.call(t,o,...u);for(let a=0;a<s.length;a++)if(s[a].unicode===void 0){let l=r.shift(),f=n(l);if(f!==t){let c=f.charToGlyph(l),p=t.unitsPerEm/f.unitsPerEm,d=new Zr.default.Path;d.unitsPerEm=t.unitsPerEm,d.commands=c.path.commands.map(m=>{let x={...m};for(let g in x)typeof x[g]=="number"&&(x[g]*=p);return x});let h=new Zr.default.Glyph({...c,advanceWidth:c.advanceWidth*p,xMin:c.xMin*p,xMax:c.xMax*p,yMin:c.yMin*p,yMax:c.yMax*p,path:d});s[a]=h}}return s},()=>{t.stringToGlyphs=i,t._trackBrokenChars=void 0}}measure(t,n,{fontSize:r,letterSpacing:i=0}){let o=t(n),u=this.patchFontFallbackResolver(o,t);try{return o.getAdvanceWidth(n,r,{letterSpacing:i/r})}finally{u()}}getSVG(t,n,{fontSize:r,top:i,left:o,letterSpacing:u=0}){let s=t(n),a=this.patchFontFallbackResolver(s,t);try{return r===0?"":s.getPath(n.replace(/\n/g,""),o,i,r,{letterSpacing:u/r}).toPathData(1)}finally{a()}}};function Hf(e){let t=e.split("_"),n=t[t.length-1];return n===es?void 0:n}function Qn({width:e,height:t,content:n}){return E("svg",{width:e,height:t,viewBox:`0 0 ${e} ${t}`,xmlns:"http://www.w3.org/2000/svg"},n)}var Bl=He(fl());var Pm=["ios","android","windows","macos","web"];function dl(e){return Pm.includes(e)}var Bm=["portrait","landscape"];function pl(e){return Bm.includes(e)}var cl;(function(e){e.fontSize="fontSize",e.lineHeight="lineHeight"})(cl||(cl={}));var M;(function(e){e.rem="rem",e.em="em",e.px="px",e.percent="%",e.vw="vw",e.vh="vh",e.none="<no-css-unit>"})(M||(M={}));function wo(e){return typeof e=="string"}function Eo(e){return typeof e=="object"}var So;function D(e){return{kind:"complete",style:e}}function re(e,t={}){let{fractions:n}=t;if(n&&e.includes("/")){let[o="",u=""]=e.split("/",2),s=re(o),a=re(u);return!s||!a?null:[s[0]/a[0],a[1]]}let r=parseFloat(e);if(Number.isNaN(r))return null;let i=e.match(/(([a-z]{2,}|%))$/);if(!i)return[r,M.none];switch(i==null?void 0:i[1]){case"rem":return[r,M.rem];case"px":return[r,M.px];case"em":return[r,M.em];case"%":return[r,M.percent];case"vw":return[r,M.vw];case"vh":return[r,M.vh];default:return null}}function $e(e,t,n={}){let r=Be(t,n);return r===null?null:D({[e]:r})}function bn(e,t,n){let r=Be(t);return r!==null&&(n[e]=r),n}function ml(e,t){let n=Be(t);return n===null?null:{[e]:n}}function Be(e,t={}){if(e===void 0)return null;let n=re(String(e),t);return n?Ke(...n,t):null}function Ke(e,t,n={}){let{isNegative:r,device:i}=n;switch(t){case M.rem:return e*16*(r?-1:1);case M.px:return e*(r?-1:1);case M.percent:return`${r?"-":""}${e}%`;case M.none:return e*(r?-1:1);case M.vw:return i!=null&&i.windowDimensions?i.windowDimensions.width*(e/100):(he("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case M.vh:return i!=null&&i.windowDimensions?i.windowDimensions.height*(e/100):(he("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function Co(e){let t=re(e);if(!t)return null;let[n,r]=t;switch(r){case M.rem:return n*16;case M.px:return n;default:return null}}var Im={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function _o(e){return Im[e??""]||"All"}function ko(e){let t="All";return[e.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(r,i)=>(t=_o(i),"")),t]}function at(e,t={}){if(e.includes("/")){let n=hl(e,{...t,fractions:!0});if(n)return n}return e[0]==="["&&(e=e.slice(1,-1)),hl(e,t)}function we(e,t,n={}){let r=at(t,n);return r===null?null:D({[e]:r})}function hl(e,t={}){if(e==="px")return 1;let n=re(e,t);if(!n)return null;let[r,i]=n;return t.fractions&&(i=M.percent,r*=100),i===M.none&&(r=r/4,i=M.rem),Ke(r,i,t)}function Rm(...e){console.warn(...e)}function Lm(...e){}var he=typeof process>"u"||((So=process==null?void 0:process.env)===null||So===void 0?void 0:So.JEST_WORKER_ID)===void 0?Rm:Lm;var Mm=[["aspect-square",D({aspectRatio:1})],["aspect-video",D({aspectRatio:16/9})],["items-center",D({alignItems:"center"})],["items-start",D({alignItems:"flex-start"})],["items-end",D({alignItems:"flex-end"})],["items-baseline",D({alignItems:"baseline"})],["items-stretch",D({alignItems:"stretch"})],["justify-start",D({justifyContent:"flex-start"})],["justify-end",D({justifyContent:"flex-end"})],["justify-center",D({justifyContent:"center"})],["justify-between",D({justifyContent:"space-between"})],["justify-around",D({justifyContent:"space-around"})],["justify-evenly",D({justifyContent:"space-evenly"})],["content-start",D({alignContent:"flex-start"})],["content-end",D({alignContent:"flex-end"})],["content-between",D({alignContent:"space-between"})],["content-around",D({alignContent:"space-around"})],["content-stretch",D({alignContent:"stretch"})],["content-center",D({alignContent:"center"})],["self-auto",D({alignSelf:"auto"})],["self-start",D({alignSelf:"flex-start"})],["self-end",D({alignSelf:"flex-end"})],["self-center",D({alignSelf:"center"})],["self-stretch",D({alignSelf:"stretch"})],["self-baseline",D({alignSelf:"baseline"})],["direction-inherit",D({direction:"inherit"})],["direction-ltr",D({direction:"ltr"})],["direction-rtl",D({direction:"rtl"})],["hidden",D({display:"none"})],["flex",D({display:"flex"})],["flex-row",D({flexDirection:"row"})],["flex-row-reverse",D({flexDirection:"row-reverse"})],["flex-col",D({flexDirection:"column"})],["flex-col-reverse",D({flexDirection:"column-reverse"})],["flex-wrap",D({flexWrap:"wrap"})],["flex-wrap-reverse",D({flexWrap:"wrap-reverse"})],["flex-nowrap",D({flexWrap:"nowrap"})],["flex-auto",D({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",D({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",D({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",D({overflow:"hidden"})],["overflow-visible",D({overflow:"visible"})],["overflow-scroll",D({overflow:"scroll"})],["absolute",D({position:"absolute"})],["relative",D({position:"relative"})],["italic",D({fontStyle:"italic"})],["not-italic",D({fontStyle:"normal"})],["oldstyle-nums",yr("oldstyle-nums")],["small-caps",yr("small-caps")],["lining-nums",yr("lining-nums")],["tabular-nums",yr("tabular-nums")],["proportional-nums",yr("proportional-nums")],["font-thin",D({fontWeight:"100"})],["font-100",D({fontWeight:"100"})],["font-extralight",D({fontWeight:"200"})],["font-200",D({fontWeight:"200"})],["font-light",D({fontWeight:"300"})],["font-300",D({fontWeight:"300"})],["font-normal",D({fontWeight:"normal"})],["font-400",D({fontWeight:"400"})],["font-medium",D({fontWeight:"500"})],["font-500",D({fontWeight:"500"})],["font-semibold",D({fontWeight:"600"})],["font-600",D({fontWeight:"600"})],["font-bold",D({fontWeight:"bold"})],["font-700",D({fontWeight:"700"})],["font-extrabold",D({fontWeight:"800"})],["font-800",D({fontWeight:"800"})],["font-black",D({fontWeight:"900"})],["font-900",D({fontWeight:"900"})],["include-font-padding",D({includeFontPadding:!0})],["remove-font-padding",D({includeFontPadding:!1})],["max-w-none",D({maxWidth:"99999%"})],["text-left",D({textAlign:"left"})],["text-center",D({textAlign:"center"})],["text-right",D({textAlign:"right"})],["text-justify",D({textAlign:"justify"})],["text-auto",D({textAlign:"auto"})],["underline",D({textDecorationLine:"underline"})],["line-through",D({textDecorationLine:"line-through"})],["no-underline",D({textDecorationLine:"none"})],["uppercase",D({textTransform:"uppercase"})],["lowercase",D({textTransform:"lowercase"})],["capitalize",D({textTransform:"capitalize"})],["normal-case",D({textTransform:"none"})],["w-auto",D({width:"auto"})],["h-auto",D({height:"auto"})],["shadow-sm",D({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.025,elevation:1})],["shadow",D({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.075,elevation:2})],["shadow-md",D({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:.125,elevation:3})],["shadow-lg",D({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.15,shadowRadius:8,elevation:8})],["shadow-xl",D({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.19,shadowRadius:20,elevation:12})],["shadow-2xl",D({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.25,shadowRadius:30,elevation:16})],["shadow-none",D({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],To=Mm;function yr(e){return{kind:"dependent",complete(t){(!t.fontVariant||!Array.isArray(t.fontVariant))&&(t.fontVariant=[]),t.fontVariant.push(e)}}}var xr=class{constructor(t){this.ir=new Map(To),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...To,...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)}};function Ao(e,t,n={}){let r=t==null?void 0:t[e];if(!r)return we("fontSize",e,n);if(typeof r=="string")return $e("fontSize",r);let i={},[o,u]=r,s=ml("fontSize",o);if(s&&(i=s),typeof u=="string")return D(bn("lineHeight",Dl(u,i),i));let{lineHeight:a,letterSpacing:l}=u;return a&&bn("lineHeight",Dl(a,i),i),l&&bn("letterSpacing",l,i),D(i)}function Dl(e,t){let n=re(e);if(n){let[r,i]=n;if((i===M.none||i===M.em)&&typeof t.fontSize=="number")return t.fontSize*r}return e}function Oo(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[o,u]=i;if(u===M.none)return{kind:"dependent",complete(a){if(typeof a.fontSize!="number")return"relative line-height utilities require that font-size be set";a.lineHeight=a.fontSize*o}};let s=Ke(o,u);return s!==null?D({lineHeight:s}):null}function Po(e,t,n,r,i){let o="";if(r[0]==="[")o=r.slice(1,-1);else{let l=i==null?void 0:i[r];if(l)o=l;else{let f=at(r);return f&&typeof f=="number"?gl(f,M.px,t,e):null}}if(o==="auto")return bl(t,e,"auto");let u=re(o);if(!u)return null;let[s,a]=u;return n&&(s=-s),gl(s,a,t,e)}function gl(e,t,n,r){let i=Ke(e,t);return i===null?null:bl(n,r,i)}function bl(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}}function Bo(e){if(!e)return{};let t=Object.entries(e).reduce((i,[o,u])=>{let s=[0,1/0,0],a=typeof u=="string"?{min:u}:u,l=a.min?Co(a.min):0;l===null?he(`invalid screen config value: ${o}->min: ${a.min}`):s[0]=l;let f=a.max?Co(a.max):1/0;return f===null?he(`invalid screen config value: ${o}->max: ${a.max}`):s[1]=f,i[o]=s,i},{}),n=Object.values(t);n.sort((i,o)=>{let[u,s]=i,[a,l]=o;return s===1/0||l===1/0?u-a:s-l});let r=0;return n.forEach(i=>i[2]=r++),t}function Io(e,t){let n=t==null?void 0:t[e];if(!n)return null;if(typeof n=="string")return D({fontFamily:n});let r=n[0];return r?D({fontFamily:r}):null}function lt(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=xl(t,n),!i)return null;if(r){let o=Number(r);if(!Number.isNaN(o))return i=vl(i,o/100),D({[vn[e].color]:i})}return{kind:"dependent",complete(o){let u=vn[e].opacity,s=o[u];typeof s=="number"&&(i=vl(i,s)),o[vn[e].color]=i}}}function Fr(e,t){let n=parseInt(t,10);if(Number.isNaN(n))return null;let r=n/100;return{kind:"complete",style:{[vn[e].opacity]:r}}}function vl(e,t){return e.startsWith("#")?e=Nm(e):e.startsWith("rgb(")&&(e=e.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),e.replace(/, ?\d*\.?(\d+)\)$/,`, ${t})`)}function yl(e){for(let t in e)t.startsWith("__opacity_")&&delete e[t]}var vn={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 Nm(e){let t=e;e=e.replace(Wm,(u,s,a,l)=>s+s+a+a+l+l);let n=$m.exec(e);if(!n)return he(`invalid config hex color value: ${t}`),"rgba(0, 0, 0, 1)";let r=parseInt(n[1],16),i=parseInt(n[2],16),o=parseInt(n[3],16);return`rgba(${r}, ${i}, ${o}, 1)`}function xl(e,t){let n=t[e];if(wo(n))return n;if(Eo(n)&&wo(n.DEFAULT))return n.DEFAULT;let[r="",...i]=e.split("-");for(;r!==e;){let o=t[r];if(Eo(o))return xl(i.join("-"),o);if(i.length===0)return"";r=`${r}-${i.shift()}`}return""}var Wm=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,$m=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function wl(e,t){let[n,r]=ko(e);if(n.match(/^(-?(\d)+)?$/))return qm(n,r,t==null?void 0:t.borderWidth);if(n=n.replace(/^-/,""),["dashed","solid","dotted"].includes(n))return D({borderStyle:n});let o="border";switch(r){case"Bottom":o="borderBottom";break;case"Top":o="borderTop";break;case"Left":o="borderLeft";break;case"Right":o="borderRight";break}let u=lt(o,n,t==null?void 0:t.borderColor);if(u)return u;let s=`border${r==="All"?"":r}Width`;n=n.replace(/^-/,"");let a=n.slice(1,-1),l=we(s,a);return typeof(l==null?void 0:l.style[s])!="number"?null:l}function qm(e,t,n){if(!n)return null;e=e.replace(/^-/,"");let i=n[e===""?"DEFAULT":e];if(i===void 0)return null;let o=`border${t==="All"?"":t}Width`;return $e(o,i)}function El(e,t){if(!t)return null;let[n,r]=ko(e);n=n.replace(/^-/,""),n===""&&(n="DEFAULT");let i=`border${r==="All"?"":r}Radius`,o=t[n];if(o)return Fl($e(i,o));let u=we(i,n);return typeof(u==null?void 0:u.style[i])!="number"?null:Fl(u)}function Fl(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}function St(e,t,n,r){let i=null;e==="inset"&&(t=t.replace(/^(x|y)-/,(s,a)=>(i=a==="x"?"x":"y","")));let o=r==null?void 0:r[t];if(o){let s=Be(o,{isNegative:n});if(s!==null)return Sl(e,i,s)}let u=at(t,{isNegative:n});return u!==null?Sl(e,i,u):null}function Sl(e,t,n){if(e!=="inset")return D({[e]:n});switch(t){case null:return D({top:n,left:n,right:n,bottom:n});case"y":return D({top:n,bottom:n});case"x":return D({left:n,right:n})}}function wr(e,t,n){var r;t=t.replace(/^-/,"");let i=t===""?"DEFAULT":t,o=Number((r=n==null?void 0:n[i])!==null&&r!==void 0?r:t);return Number.isNaN(o)?null:D({[`flex${e}`]:o})}function Cl(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 D({flexGrow:Number(e),flexBasis:"0%"});let i=e.match(/^(\d+)\s+(\d+)$/);if(i)return D({flexGrow:Number(i[1]),flexShrink:Number(i[2])});if(i=e.match(/^(\d+)\s+([^ ]+)$/),i){let o=Be((n=i[2])!==null&&n!==void 0?n:"");return o?D({flexGrow:Number(i[1]),flexBasis:o}):null}if(i=e.match(/^(\d+)\s+(\d+)\s+(.+)$/),i){let o=Be((r=i[3])!==null&&r!==void 0?r:"");return o?D({flexGrow:Number(i[1]),flexShrink:Number(i[2]),flexBasis:o}):null}return null}function Ro(e,t,n={},r){let i=r==null?void 0:r[t];return i!==void 0?$e(e,i,n):we(e,t,n)}function Er(e,t,n={},r){let i=Be(r==null?void 0:r[t],n);return i?D({[e]:i}):(t==="screen"&&(t=e.includes("Width")?"100vw":"100vh"),we(e,t,n))}function _l(e,t,n){let r=n==null?void 0:n[e];if(r){let i=re(r,{isNegative:t});if(!i)return null;let[o,u]=i;if(u===M.em)return zm(o);if(u===M.percent)return he("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 s=Ke(o,u,{isNegative:t});return s!==null?D({letterSpacing:s}):null}return we("letterSpacing",e,{isNegative:t})}function zm(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}}}function kl(e,t){let n=t==null?void 0:t[e];if(n){let i=re(String(n));if(i)return D({opacity:i[0]})}let r=re(e);return r?D({opacity:r[0]/100}):null}function Tl(e){let t=parseInt(e,10);return Number.isNaN(t)?null:{kind:"complete",style:{shadowOpacity:t/100}}}function Al(e){if(e.includes("/")){let[n="",r=""]=e.split("/",2),i=Lo(n),o=Lo(r);return i===null||o===null?null:{kind:"complete",style:{shadowOffset:{width:i,height:o}}}}let t=Lo(e);return t===null?null:{kind:"complete",style:{shadowOffset:{width:t,height:t}}}}function Lo(e){let t=at(e);return typeof t=="number"?t:null}var Ct=class{constructor(t,n={},r,i,o){var u,s,a,l,f,c;this.config=n,this.cache=r,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=i;let p=t.trim().split(":"),d=[];p.length===1?this.string=t:(this.string=(u=p.pop())!==null&&u!==void 0?u:"",d=p),this.char=this.string[0];let h=Bo((s=this.config.theme)===null||s===void 0?void 0:s.screens);for(let m of d)if(h[m]){let x=(a=h[m])===null||a===void 0?void 0:a[2];x!==void 0&&(this.order=((l=this.order)!==null&&l!==void 0?l:0)+x);let g=(f=i.windowDimensions)===null||f===void 0?void 0:f.width;if(g){let[S,v]=(c=h[m])!==null&&c!==void 0?c:[0,0];(g<=S||g>v)&&(this.isNull=!0)}else this.isNull=!0}else dl(m)?this.isNull=m!==o:pl(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,o;let u=this.config.theme,s=null;switch(this.char){case"m":case"p":{let a=this.peekSlice(1,3).match(/^(t|b|r|l|x|y)?-/);if(a){let l=this.char==="m"?"margin":"padding";this.advance(((n=(t=a[0])===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+1);let f=_o(a[1]),c=Po(l,f,this.isNegative,this.rest,(r=this.config.theme)===null||r===void 0?void 0:r[l]);if(c)return c}}}if(this.consumePeeked("h-")&&(s=Ro("height",this.rest,this.context,u==null?void 0:u.height),s)||this.consumePeeked("w-")&&(s=Ro("width",this.rest,this.context,u==null?void 0:u.width),s)||this.consumePeeked("min-w-")&&(s=Er("minWidth",this.rest,this.context,u==null?void 0:u.minWidth),s)||this.consumePeeked("min-h-")&&(s=Er("minHeight",this.rest,this.context,u==null?void 0:u.minHeight),s)||this.consumePeeked("max-w-")&&(s=Er("maxWidth",this.rest,this.context,u==null?void 0:u.maxWidth),s)||this.consumePeeked("max-h-")&&(s=Er("maxHeight",this.rest,this.context,u==null?void 0:u.maxHeight),s)||this.consumePeeked("leading-")&&(s=Oo(this.rest,u==null?void 0:u.lineHeight),s)||this.consumePeeked("text-")&&(s=Ao(this.rest,u==null?void 0:u.fontSize,this.context),s||(s=lt("text",this.rest,u==null?void 0:u.textColor),s)||this.consumePeeked("opacity-")&&(s=Fr("text",this.rest),s))||this.consumePeeked("font-")&&(s=Io(this.rest,u==null?void 0:u.fontFamily),s)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&he("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),s=$e("aspectRatio",this.rest,{fractions:!0}),s)||this.consumePeeked("tint-")&&(s=lt("tint",this.rest,u==null?void 0:u.colors),s)||this.consumePeeked("bg-")&&(s=lt("bg",this.rest,u==null?void 0:u.backgroundColor),s||this.consumePeeked("opacity-")&&(s=Fr("bg",this.rest),s))||this.consumePeeked("border")&&(s=wl(this.rest,u),s||this.consumePeeked("-opacity-")&&(s=Fr("border",this.rest),s))||this.consumePeeked("rounded")&&(s=El(this.rest,u==null?void 0:u.borderRadius),s)||this.consumePeeked("bottom-")&&(s=St("bottom",this.rest,this.isNegative,u==null?void 0:u.inset),s)||this.consumePeeked("top-")&&(s=St("top",this.rest,this.isNegative,u==null?void 0:u.inset),s)||this.consumePeeked("left-")&&(s=St("left",this.rest,this.isNegative,u==null?void 0:u.inset),s)||this.consumePeeked("right-")&&(s=St("right",this.rest,this.isNegative,u==null?void 0:u.inset),s)||this.consumePeeked("inset-")&&(s=St("inset",this.rest,this.isNegative,u==null?void 0:u.inset),s)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?s=wr("Grow",this.rest,u==null?void 0:u.flexGrow):this.consumePeeked("shrink")?s=wr("Shrink",this.rest,u==null?void 0:u.flexShrink):s=Cl(this.rest,u==null?void 0:u.flex),s)||this.consumePeeked("grow")&&(s=wr("Grow",this.rest,u==null?void 0:u.flexGrow),s)||this.consumePeeked("shrink")&&(s=wr("Shrink",this.rest,u==null?void 0:u.flexShrink),s)||this.consumePeeked("shadow-color-opacity-")&&(s=Fr("shadow",this.rest),s)||this.consumePeeked("shadow-opacity-")&&(s=Tl(this.rest),s)||this.consumePeeked("shadow-offset-")&&(s=Al(this.rest),s)||this.consumePeeked("shadow-radius-")&&(s=we("shadowRadius",this.rest),s)||this.consumePeeked("shadow-")&&(s=lt("shadow",this.rest,u==null?void 0:u.colors),s))return s;if(this.consumePeeked("elevation-")){let a=parseInt(this.rest,10);if(!Number.isNaN(a))return D({elevation:a})}if(this.consumePeeked("opacity-")&&(s=kl(this.rest,u==null?void 0:u.opacity),s)||this.consumePeeked("tracking-")&&(s=_l(this.rest,this.isNegative,u==null?void 0:u.letterSpacing),s))return s;if(this.consumePeeked("z-")){let a=Number((o=(i=u==null?void 0:u.zIndex)===null||i===void 0?void 0:i[this.rest])!==null&&o!==void 0?o:this.rest);if(!Number.isNaN(a))return D({zIndex:a})}return he(`\`${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,[,o="",u="",s=""]=r,a=u==="w"?i.width:i.height,l=re(s,this.context);if(l===null)return this.isNull=!0,!0;let[f,c]=l;return c!=="px"&&(this.isNull=!0),(o==="min"?a>=f:a<=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}};function Ol(e){let t=[],n=null;return e.forEach(r=>{if(typeof r=="string")t=[...t,...Mo(r)];else if(Array.isArray(r))t=[...t,...r.flatMap(Mo)];else if(typeof r=="object"&&r!==null)for(let[i,o]of Object.entries(r))typeof o=="boolean"?t=[...t,...o?Mo(i):[]]:n?n[i]=o:n={[i]:o}}),[t.filter(Boolean).filter(Um),n]}function Mo(e){return e.trim().split(/\s+/)}function Um(e,t,n){return n.indexOf(e)===t}function Pl(e){var t;return(t=e==null?void 0:e.reduce((n,r)=>({...n,...Gm(r.handler)}),{}))!==null&&t!==void 0?t:{}}function Gm(e){let t={};return e({addUtilities:n=>{t=n},...jm}),t}function Ie(e){throw new Error(`tailwindcss plugin function argument object prop "${e}" not implemented`)}var jm={addComponents:Ie,addBase:Ie,addVariant:Ie,e:Ie,prefix:Ie,theme:Ie,variants:Ie,config:Ie,corePlugins:Ie,matchUtilities:Ie,postcss:null};function Il(e,t){let n=(0,Bl.default)(Hm(e)),r={},i=Pl(n.plugins),o={},u=Object.entries(i).map(([h,m])=>typeof m=="string"?(o[h]=m,[h,{kind:"null"}]):[h,D(m)]).filter(([,h])=>h.kind!=="null");function s(){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 a=s(),l={};function f(){let h=l[a];if(h)return h;let m=new xr(u);return l[a]=m,m}function c(...h){let m=f(),x={},g=[],S=[],[v,b]=Ol(h),y=v.join(" "),T=m.getStyle(y);if(T)return{...T,...b||{}};for(let A of v){let P=m.getIr(A);if(!P&&A in o){let ie=c(o[A]);m.setIr(A,D(ie)),x={...x,...ie};continue}switch(P=new Ct(A,n,m,r,t).parse(),P.kind){case"complete":x={...x,...P.style},m.setIr(A,P);break;case"dependent":g.push(P);break;case"ordered":S.push(P);break;case"null":m.setIr(A,P);break}}if(S.length>0){S.sort((A,P)=>A.order-P.order);for(let A of S)switch(A.styleIr.kind){case"complete":x={...x,...A.styleIr.style};break;case"dependent":g.push(A.styleIr);break}}if(g.length>0){for(let A of g){let P=A.complete(x);P&&he(P)}yl(x)}return y!==""&&m.setStyle(y,x),b&&(x={...x,...b}),x}function p(h){let m=c(h.split(/\s+/g).map(x=>x.replace(/^(bg|text|border)-/,"")).map(x=>`bg-${x}`).join(" "));return typeof m.backgroundColor=="string"?m.backgroundColor:void 0}let d=(h,...m)=>{let x="";return h.forEach((g,S)=>{var v;x+=g+((v=m[S])!==null&&v!==void 0?v:"")}),c(x)};return d.style=c,d.color=p,d.prefixMatch=(...h)=>{let m=h.sort().join(":"),x=f(),g=x.getPrefixMatch(m);if(g!==void 0)return g;let b=new Ct(`${m}:flex`,n,x,r,t).parse().kind!=="null";return x.setPrefixMatch(m,b),b},d.setWindowDimensions=h=>{r.windowDimensions=h,a=s()},d.setFontScale=h=>{r.fontScale=h,a=s()},d.setPixelDensity=h=>{r.pixelDensity=h,a=s()},d.setColorScheme=h=>{r.colorScheme=h,a=s()},d}function Hm(e){return{...e,content:["_no_warnings_please"]}}var Ym={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 Xm(e){return Il({...e,plugins:[...(e==null?void 0:e.plugins)??[],Ym]},"web")}var yn;function No({width:e,height:t,config:n}){return yn||(yn=Xm(n)),yn.setWindowDimensions({width:+e,height:+t}),yn}var Wo=new WeakMap;async function $o(e,t){let n=await Le();if(!n||!n.Node)throw new Error("Satori is not initialized: expect `yoga` to be loaded, got "+n);t.fonts=t.fonts||[];let r;Wo.has(t.fonts)?r=Wo.get(t.fonts):Wo.set(t.fonts,r=new Ut(t.fonts));let i="width"in t?t.width:void 0,o="height"in t?t.height:void 0,u=n.Node.create();i&&u.setWidth(i),o&&u.setHeight(o),u.setFlexDirection(n.FLEX_DIRECTION_ROW),u.setFlexWrap(n.WRAP_WRAP),u.setAlignContent(n.ALIGN_AUTO),u.setAlignItems(n.ALIGN_FLEX_START),u.setJustifyContent(n.JUSTIFY_FLEX_START),u.setOverflow(n.OVERFLOW_HIDDEN);let s={...t.graphemeImages},a=new Set;Oe.clear(),Rt.clear(),await gu(e);let l=zt(e,{id:"id",parentStyle:{},inheritedStyle:{fontSize:16,fontWeight:"normal",fontFamily:"serif",fontStyle:"normal",lineHeight:"normal",color:"black",opacity:1,whiteSpace:"normal",_viewportWidth:i,_viewportHeight:o},parent:u,font:r,embedFont:t.embedFont,debug:t.debug,graphemeImages:s,canLoadAdditionalAssets:!!t.loadAdditionalAsset,onNodeDetected:t.onNodeDetected,getTwStyles:(h,m)=>{let g={...No({width:i,height:o,config:t.tailwindConfig})([h])};return typeof g.lineHeight=="number"&&(g.lineHeight=g.lineHeight/(+g.fontSize||m.fontSize||16)),g.shadowColor&&g.boxShadow&&(g.boxShadow=g.boxShadow.replace(/rgba?\([^)]+\)/,g.shadowColor)),g}}),f=(await l.next()).value;if(t.loadAdditionalAsset&&f.length){let h=Qm(f),m=[],x={};await Promise.all(Object.entries(h).flatMap(([g,S])=>S.map(v=>{let b=`${g}_${v}`;return a.has(b)?null:(a.add(b),t.loadAdditionalAsset(g,v).then(y=>{typeof y=="string"?x[v]=y:y&&(Array.isArray(y)?m.push(...y):m.push(y))}))}))),r.addFonts(m),Object.assign(s,x)}await l.next(),u.calculateLayout(i,o,n.DIRECTION_LTR);let c=(await l.next([0,0])).value,p=u.getComputedWidth(),d=u.getComputedHeight();return u.freeRecursive(),Qn({width:p,height:d,content:c})}function Qm(e){let t={},n={};for(let{word:r,locale:i}of e){let o=Ju(r,i).join("|");n[o]=n[o]||"",n[o]+=r}return Object.keys(n).forEach(r=>{t[r]=t[r]||[],r==="emoji"?t[r].push(...Rl(le(n[r],"grapheme"))):(t[r][0]=t[r][0]||"",t[r][0]+=Rl(le(n[r],"grapheme",r==="unknown"?void 0:r)).join(""))}),t}function Rl(e){return Array.from(new Set(e))}0&&(module.exports={init});
|
|
1
|
+
var zl=Object.create;var Nr=Object.defineProperty;var Ul=Object.getOwnPropertyDescriptor;var Gl=Object.getOwnPropertyNames;var jl=Object.getPrototypeOf,Hl=Object.prototype.hasOwnProperty;var kn=(e,t)=>()=>(e&&(t=e(e=0)),t);var P=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Fr=(e,t)=>{for(var n in t)Nr(e,n,{get:t[n],enumerable:!0})},Yo=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Gl(t))!Hl.call(e,i)&&i!==n&&Nr(e,i,{get:()=>t[i],enumerable:!(r=Ul(t,i))||r.enumerable});return e};var He=(e,t,n)=>(n=e!=null?zl(jl(e)):{},Yo(t||!e||!e.__esModule?Nr(n,"default",{value:e,enumerable:!0}):n,e)),Lt=e=>Yo(Nr({},"__esModule",{value:!0}),e);var Xo={};Fr(Xo,{getYogaModule:()=>Vl});async function Vl(){let{default:e}=await import("yoga-wasm-web/asm");return e()}var Qo=kn(()=>{});var Jn=P(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Object.defineProperty(Kn,"default",{enumerable:!0,get:()=>Xf});function Xf(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 na=P(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Object.defineProperty(Zn,"default",{enumerable:!0,get:()=>Qf});var Qf=["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 ia=P(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});Object.defineProperty(ei,"default",{enumerable:!0,get:()=>Kf});function Kf(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 ti=P((mv,oa)=>{oa.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 tn={};Fr(tn,{default:()=>Jf});var Jf,rn=kn(()=>{Jf={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 sa=P(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});Object.defineProperty(ri,"default",{enumerable:!0,get:()=>tc});var Zf=ec((rn(),Lt(tn)));function ec(e){return e&&e.__esModule?e:{default:e}}function jt({version:e,from:t,to:n}){Zf.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 tc={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 jt({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return jt({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return jt({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return jt({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return jt({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}});var aa=P(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});Object.defineProperty(ni,"defaults",{enumerable:!0,get:()=>rc});function rc(e,...t){for(let i of t){for(let o in i){var n;!(e==null||(n=e.hasOwnProperty)===null||n===void 0)&&n.call(e,o)||(e[o]=i[o])}for(let o of Object.getOwnPropertySymbols(i)){var r;!(e==null||(r=e.hasOwnProperty)===null||r===void 0)&&r.call(e,o)||(e[o]=i[o])}}return e}});var ua=P(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});Object.defineProperty(ii,"toPath",{enumerable:!0,get:()=>nc});function nc(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 fa=P(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});Object.defineProperty(oi,"normalizeConfig",{enumerable:!0,get:()=>oc});var Ht=ic((rn(),Lt(tn)));function la(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(la=function(r){return r?n:t})(e)}function ic(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=la(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function oc(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&&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&&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})()||Ht.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:o,safelist:s}=e;return Array.isArray(s)?s:Array.isArray(i==null?void 0:i.safelist)?i.safelist:Array.isArray(o==null?void 0:o.safelist)?o.safelist:Array.isArray(o==null||(r=o.options)===null||r===void 0?void 0:r.safelist)?o.options.safelist:[]})(),typeof e.prefix=="function")Ht.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 s,a,u,l,f,c,p,d,h,m;return!((s=e.purge)===null||s===void 0)&&s.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||(c=f.extract)===null||c===void 0)&&c.DEFAULT?e.content.extract.DEFAULT:!((p=e.purge)===null||p===void 0||(d=p.options)===null||d===void 0)&&d.extractors?e.purge.options.extractors:!((h=e.content)===null||h===void 0||(m=h.options)===null||m===void 0)&&m.extractors?e.content.options.extractors:{}})(),i={},o=(()=>{var s,a,u,l;if(!((s=e.purge)===null||s===void 0||(a=s.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(o!==void 0&&(i.DEFAULT=o),typeof r=="function")i.DEFAULT=r;else if(Array.isArray(r))for(let{extensions:s,extractor:a}of r??[])for(let u of s)i[u]=a;else typeof r=="object"&&r!==null&&Object.assign(i,r);return i})(),transform:(()=>{let r=(()=>{var o,s,a,u,l,f;return!((o=e.purge)===null||o===void 0)&&o.transform?e.purge.transform:!((s=e.content)===null||s===void 0)&&s.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)){Ht.default.warn("invalid-glob-braces",[`The glob pattern ${(0,Ht.dim)(r)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,Ht.dim)(r.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return e}});var ca=P(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});Object.defineProperty(si,"default",{enumerable:!0,get:()=>sc});function sc(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}});var da=P(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});Object.defineProperty(ui,"cloneDeep",{enumerable:!0,get:()=>ai});function ai(e){return Array.isArray(e)?e.map(t=>ai(t)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).map(([t,n])=>[t,ai(n)])):e}});var li=P((nn,pa)=>{"use strict";nn.__esModule=!0;nn.default=lc;function ac(e){for(var t=e.toLowerCase(),n="",r=!1,i=0;i<6&&t[i]!==void 0;i++){var o=t.charCodeAt(i),s=o>=97&&o<=102||o>=48&&o<=57;if(r=o===32,!s)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 uc=/\\/;function lc(e){var t=uc.test(e);if(!t)return e;for(var n="",r=0;r<e.length;r++){if(e[r]==="\\"){var i=ac(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}pa.exports=nn.default});var ma=P((on,ha)=>{"use strict";on.__esModule=!0;on.default=fc;function fc(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}ha.exports=on.default});var ba=P((sn,ga)=>{"use strict";sn.__esModule=!0;sn.default=cc;function cc(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]}}ga.exports=sn.default});var ya=P((an,va)=>{"use strict";an.__esModule=!0;an.default=dc;function dc(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}va.exports=an.default});var Vt=P(Le=>{"use strict";Le.__esModule=!0;Le.stripComments=Le.ensureObject=Le.getProp=Le.unesc=void 0;var pc=un(li());Le.unesc=pc.default;var hc=un(ma());Le.getProp=hc.default;var mc=un(ba());Le.ensureObject=mc.default;var gc=un(ya());Le.stripComments=gc.default;function un(e){return e&&e.__esModule?e:{default:e}}});var We=P((Yt,Sa)=>{"use strict";Yt.__esModule=!0;Yt.default=void 0;var xa=Vt();function wa(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 bc(e,t,n){return t&&wa(e.prototype,t),n&&wa(e,n),e}var vc=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 o=t[i],s=typeof o;i==="parent"&&s==="object"?n&&(r[i]=n):o instanceof Array?r[i]=o.map(function(a){return e(a,r)}):r[i]=e(o,r)}return r},yc=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=vc(this);for(var o in r)i[o]=r[o];return i},t.appendToPropertyAndEscape=function(r,i,o){this.raws||(this.raws={});var s=this[r],a=this.raws[r];this[r]=s+i,a||o!==i?this.raws[r]=(a||s)+o:delete this.raws[r]},t.setPropertyAndEscape=function(r,i,o){this.raws||(this.raws={}),this[r]=i,this.raws[r]=o},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("")},bc(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,xa.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,xa.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=r}}]),e}();Yt.default=yc;Sa.exports=Yt.default});var ne=P(G=>{"use strict";G.__esModule=!0;G.UNIVERSAL=G.ATTRIBUTE=G.CLASS=G.COMBINATOR=G.COMMENT=G.ID=G.NESTING=G.PSEUDO=G.ROOT=G.SELECTOR=G.STRING=G.TAG=void 0;var xc="tag";G.TAG=xc;var wc="string";G.STRING=wc;var Sc="selector";G.SELECTOR=Sc;var _c="root";G.ROOT=_c;var kc="pseudo";G.PSEUDO=kc;var Tc="nesting";G.NESTING=Tc;var Ec="id";G.ID=Ec;var Oc="comment";G.COMMENT=Oc;var Pc="combinator";G.COMBINATOR=Pc;var Ac="class";G.CLASS=Ac;var Ic="attribute";G.ATTRIBUTE=Ic;var Rc="universal";G.UNIVERSAL=Rc});var ln=P((Xt,Ea)=>{"use strict";Xt.__esModule=!0;Xt.default=void 0;var Lc=Mc(We()),$e=Cc(ne());function Ta(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Ta=function(){return e},e}function Cc(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Ta();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 o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function Mc(e){return e&&e.__esModule?e:{default:e}}function Dc(e,t){var n;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=Nc(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 Nc(e,t){if(e){if(typeof e=="string")return _a(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 _a(e,t)}}function _a(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 ka(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 Fc(e,t,n){return t&&ka(e.prototype,t),n&&ka(e,n),e}function Wc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fi(e,t)}function fi(e,t){return fi=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},fi(e,t)}var $c=function(e){Wc(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 o;for(var s in this.indexes)o=this.indexes[s],o>=i&&(this.indexes[s]=o-1);return this},n.removeAll=function(){for(var i=Dc(this.nodes),o;!(o=i()).done;){var s=o.value;s.parent=void 0}return this.nodes=[],this},n.empty=function(){return this.removeAll()},n.insertAfter=function(i,o){o.parent=this;var s=this.index(i);this.nodes.splice(s+1,0,o),o.parent=this;var a;for(var u in this.indexes)a=this.indexes[u],s<=a&&(this.indexes[u]=a+1);return this},n.insertBefore=function(i,o){o.parent=this;var s=this.index(i);this.nodes.splice(s,0,o),o.parent=this;var a;for(var u in this.indexes)a=this.indexes[u],a<=s&&(this.indexes[u]=a+1);return this},n._findChildAtPosition=function(i,o){var s=void 0;return this.each(function(a){if(a.atPosition){var u=a.atPosition(i,o);if(u)return s=u,!1}else if(a.isAtPosition(i,o))return s=a,!1}),s},n.atPosition=function(i,o){if(this.isAtPosition(i,o))return this._findChildAtPosition(i,o)||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 o=this.lastEach;if(this.indexes[o]=0,!!this.length){for(var s,a;this.indexes[o]<this.length&&(s=this.indexes[o],a=i(this.at(s),s),a!==!1);)this.indexes[o]+=1;if(delete this.indexes[o],a===!1)return!1}},n.walk=function(i){return this.each(function(o,s){var a=i(o,s);if(a!==!1&&o.length&&(a=o.walk(i)),a===!1)return!1})},n.walkAttributes=function(i){var o=this;return this.walk(function(s){if(s.type===$e.ATTRIBUTE)return i.call(o,s)})},n.walkClasses=function(i){var o=this;return this.walk(function(s){if(s.type===$e.CLASS)return i.call(o,s)})},n.walkCombinators=function(i){var o=this;return this.walk(function(s){if(s.type===$e.COMBINATOR)return i.call(o,s)})},n.walkComments=function(i){var o=this;return this.walk(function(s){if(s.type===$e.COMMENT)return i.call(o,s)})},n.walkIds=function(i){var o=this;return this.walk(function(s){if(s.type===$e.ID)return i.call(o,s)})},n.walkNesting=function(i){var o=this;return this.walk(function(s){if(s.type===$e.NESTING)return i.call(o,s)})},n.walkPseudos=function(i){var o=this;return this.walk(function(s){if(s.type===$e.PSEUDO)return i.call(o,s)})},n.walkTags=function(i){var o=this;return this.walk(function(s){if(s.type===$e.TAG)return i.call(o,s)})},n.walkUniversals=function(i){var o=this;return this.walk(function(s){if(s.type===$e.UNIVERSAL)return i.call(o,s)})},n.split=function(i){var o=this,s=[];return this.reduce(function(a,u,l){var f=i.call(o,u);return s.push(u),f?(a.push(s),s=[]):l===o.length-1&&a.push(s),a},[])},n.map=function(i){return this.nodes.map(i)},n.reduce=function(i,o){return this.nodes.reduce(i,o)},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("")},Fc(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}(Lc.default);Xt.default=$c;Ea.exports=Xt.default});var di=P((Qt,Pa)=>{"use strict";Qt.__esModule=!0;Qt.default=void 0;var qc=zc(ln()),Bc=ne();function zc(e){return e&&e.__esModule?e:{default:e}}function Oa(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&&Oa(e.prototype,t),n&&Oa(e,n),e}function Gc(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 jc=function(e){Gc(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=Bc.ROOT,i}var n=t.prototype;return n.toString=function(){var i=this.reduce(function(o,s){return o.push(String(s)),o},[]).join(",");return this.trailingComma?i+",":i},n.error=function(i,o){return this._error?this._error(i,o):new Error(i)},Uc(t,[{key:"errorGenerator",set:function(i){this._error=i}}]),t}(qc.default);Qt.default=jc;Pa.exports=Qt.default});var hi=P((Kt,Aa)=>{"use strict";Kt.__esModule=!0;Kt.default=void 0;var Hc=Yc(ln()),Vc=ne();function Yc(e){return e&&e.__esModule?e:{default:e}}function Xc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,pi(e,t)}function pi(e,t){return pi=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},pi(e,t)}var Qc=function(e){Xc(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Vc.SELECTOR,r}return t}(Hc.default);Kt.default=Qc;Aa.exports=Kt.default});var fn=P((kv,Ia)=>{"use strict";var Kc={},Jc=Kc.hasOwnProperty,Zc=function(t,n){if(!t)return n;var r={};for(var i in n)r[i]=Jc.call(t,i)?t[i]:n[i];return r},ed=/[ -,\.\/:-@\[-\^`\{-~]/,td=/[ -,\.\/:-@\[\]\^`\{-~]/,rd=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,mi=function e(t,n){n=Zc(n,e.options),n.quotes!="single"&&n.quotes!="double"&&(n.quotes="single");for(var r=n.quotes=="double"?'"':"'",i=n.isIdentifier,o=t.charAt(0),s="",a=0,u=t.length;a<u;){var l=t.charAt(a++),f=l.charCodeAt(),c=void 0;if(f<32||f>126){if(f>=55296&&f<=56319&&a<u){var p=t.charCodeAt(a++);(p&64512)==56320?f=((f&1023)<<10)+(p&1023)+65536:a--}c="\\"+f.toString(16).toUpperCase()+" "}else n.escapeEverything?ed.test(l)?c="\\"+l:c="\\"+f.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?c="\\"+f.toString(16).toUpperCase()+" ":l=="\\"||!i&&(l=='"'&&r==l||l=="'"&&r==l)||i&&td.test(l)?c="\\"+l:c=l;s+=c}return i&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(o)&&(s="\\3"+o+" "+s.slice(1))),s=s.replace(rd,function(d,h,m){return h&&h.length%2?d:(h||"")+m}),!i&&n.wrap?r+s+r:s};mi.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};mi.version="3.0.0";Ia.exports=mi});var bi=P((Jt,Ca)=>{"use strict";Jt.__esModule=!0;Jt.default=void 0;var nd=La(fn()),id=Vt(),od=La(We()),sd=ne();function La(e){return e&&e.__esModule?e:{default:e}}function Ra(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 ad(e,t,n){return t&&Ra(e.prototype,t),n&&Ra(e,n),e}function ud(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gi(e,t)}function gi(e,t){return gi=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},gi(e,t)}var ld=function(e){ud(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=sd.CLASS,i._constructed=!0,i}var n=t.prototype;return n.valueToString=function(){return"."+e.prototype.valueToString.call(this)},ad(t,[{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var o=(0,nd.default)(i,{isIdentifier:!0});o!==i?((0,id.ensureObject)(this,"raws"),this.raws.value=o):this.raws&&delete this.raws.value}this._value=i}}]),t}(od.default);Jt.default=ld;Ca.exports=Jt.default});var yi=P((Zt,Ma)=>{"use strict";Zt.__esModule=!0;Zt.default=void 0;var fd=dd(We()),cd=ne();function dd(e){return e&&e.__esModule?e:{default:e}}function pd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vi(e,t)}function vi(e,t){return vi=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},vi(e,t)}var hd=function(e){pd(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=cd.COMMENT,r}return t}(fd.default);Zt.default=hd;Ma.exports=Zt.default});var wi=P((er,Da)=>{"use strict";er.__esModule=!0;er.default=void 0;var md=bd(We()),gd=ne();function bd(e){return e&&e.__esModule?e:{default:e}}function vd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,xi(e,t)}function xi(e,t){return xi=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},xi(e,t)}var yd=function(e){vd(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=gd.ID,i}var n=t.prototype;return n.valueToString=function(){return"#"+e.prototype.valueToString.call(this)},t}(md.default);er.default=yd;Da.exports=er.default});var cn=P((tr,Wa)=>{"use strict";tr.__esModule=!0;tr.default=void 0;var xd=Fa(fn()),wd=Vt(),Sd=Fa(We());function Fa(e){return e&&e.__esModule?e:{default:e}}function Na(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 _d(e,t,n){return t&&Na(e.prototype,t),n&&Na(e,n),e}function kd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Si(e,t)}function Si(e,t){return Si=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Si(e,t)}var Td=function(e){kd(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))},_d(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 o=(0,xd.default)(i,{isIdentifier:!0});this._namespace=i,o!==i?((0,wd.ensureObject)(this,"raws"),this.raws.namespace=o):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}(Sd.default);tr.default=Td;Wa.exports=tr.default});var ki=P((rr,$a)=>{"use strict";rr.__esModule=!0;rr.default=void 0;var Ed=Pd(cn()),Od=ne();function Pd(e){return e&&e.__esModule?e:{default:e}}function Ad(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_i(e,t)}function _i(e,t){return _i=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},_i(e,t)}var Id=function(e){Ad(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Od.TAG,r}return t}(Ed.default);rr.default=Id;$a.exports=rr.default});var Ei=P((nr,qa)=>{"use strict";nr.__esModule=!0;nr.default=void 0;var Rd=Cd(We()),Ld=ne();function Cd(e){return e&&e.__esModule?e:{default:e}}function Md(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 Dd=function(e){Md(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Ld.STRING,r}return t}(Rd.default);nr.default=Dd;qa.exports=nr.default});var Pi=P((ir,Ba)=>{"use strict";ir.__esModule=!0;ir.default=void 0;var Nd=Wd(ln()),Fd=ne();function Wd(e){return e&&e.__esModule?e:{default:e}}function $d(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 qd=function(e){$d(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=Fd.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}(Nd.default);ir.default=qd;Ba.exports=ir.default});var Ua=P((Tv,za)=>{za.exports=function(t,n){return function(...r){return console.warn(n),t(...r)}}});var Mi=P(ar=>{"use strict";ar.__esModule=!0;ar.unescapeValue=Ci;ar.default=void 0;var or=Li(fn()),Bd=Li(li()),zd=Li(cn()),Ud=ne(),Ai;function Li(e){return e&&e.__esModule?e:{default:e}}function Ga(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&&Ga(e.prototype,t),n&&Ga(e,n),e}function jd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ri(e,t)}function Ri(e,t){return Ri=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ri(e,t)}var sr=Ua(),Hd=/^('|")([^]*)\1$/,Vd=sr(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),Yd=sr(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),Xd=sr(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function Ci(e){var t=!1,n=null,r=e,i=r.match(Hd);return i&&(n=i[1],r=i[2]),r=(0,Bd.default)(r),r!==e&&(t=!0),{deprecatedUsage:t,unescaped:r,quoteMark:n}}function Qd(e){if(e.quoteMark!==void 0||e.value===void 0)return e;Xd();var t=Ci(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 dn=function(e){jd(t,e);function t(r){var i;return r===void 0&&(r={}),i=e.call(this,Qd(r))||this,i.type=Ud.ATTRIBUTE,i.raws=i.raws||{},Object.defineProperty(i.raws,"unquoted",{get:sr(function(){return i.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:sr(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 o=this._determineQuoteMark(i),s=Ii[o],a=(0,or.default)(this._value,s);return a},n._determineQuoteMark=function(i){return i.smart?this.smartQuoteMark(i):this.preferredQuoteMark(i)},n.setValue=function(i,o){o===void 0&&(o={}),this._value=i,this._quoteMark=this._determineQuoteMark(o),this._syncRawValue()},n.smartQuoteMark=function(i){var o=this.value,s=o.replace(/[^']/g,"").length,a=o.replace(/[^"]/g,"").length;if(s+a===0){var u=(0,or.default)(o,{isIdentifier:!0});if(u===o)return t.NO_QUOTE;var l=this.preferredQuoteMark(i);if(l===t.NO_QUOTE){var f=this.quoteMark||i.quoteMark||t.DOUBLE_QUOTE,c=Ii[f],p=(0,or.default)(o,c);if(p.length<u.length)return f}return l}else return a===s?this.preferredQuoteMark(i):a<s?t.DOUBLE_QUOTE:t.SINGLE_QUOTE},n.preferredQuoteMark=function(i){var o=i.preferCurrentQuoteMark?this.quoteMark:i.quoteMark;return o===void 0&&(o=i.preferCurrentQuoteMark?i.quoteMark:this.quoteMark),o===void 0&&(o=t.DOUBLE_QUOTE),o},n._syncRawValue=function(){var i=(0,or.default)(this._value,Ii[this.quoteMark]);i===this._value?this.raws&&delete this.raws.value:this.raws.value=i},n._handleEscapes=function(i,o){if(this._constructed){var s=(0,or.default)(o,{isIdentifier:!0});s!==o?this.raws[i]=s:delete this.raws[i]}},n._spacesFor=function(i){var o={before:"",after:""},s=this.spaces[i]||{},a=this.raws.spaces&&this.raws.spaces[i]||{};return Object.assign(o,s,a)},n._stringFor=function(i,o,s){o===void 0&&(o=i),s===void 0&&(s=ja);var a=this._spacesFor(o);return s(this.stringifyProperty(i),a)},n.offsetOf=function(i){var o=1,s=this._spacesFor("attribute");if(o+=s.before.length,i==="namespace"||i==="ns")return this.namespace?o:-1;if(i==="attributeNS"||(o+=this.namespaceString.length,this.namespace&&(o+=1),i==="attribute"))return o;o+=this.stringifyProperty("attribute").length,o+=s.after.length;var a=this._spacesFor("operator");o+=a.before.length;var u=this.stringifyProperty("operator");if(i==="operator")return u?o:-1;o+=u.length,o+=a.after.length;var l=this._spacesFor("value");o+=l.before.length;var f=this.stringifyProperty("value");if(i==="value")return f?o:-1;o+=f.length,o+=l.after.length;var c=this._spacesFor("insensitive");return o+=c.before.length,i==="insensitive"&&this.insensitive?o:-1},n.toString=function(){var i=this,o=[this.rawSpaceBefore,"["];return o.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(o.push(this._stringFor("operator")),o.push(this._stringFor("value")),o.push(this._stringFor("insensitiveFlag","insensitive",function(s,a){return s.length>0&&!i.quoted&&a.before.length===0&&!(i.spaces.value&&i.spaces.value.after)&&(a.before=" "),ja(s,a)}))),o.push("]"),o.push(this.rawSpaceAfter),o.join("")},Gd(t,[{key:"quoted",get:function(){var i=this.quoteMark;return i==="'"||i==='"'},set:function(i){Yd()}},{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 o=Ci(i),s=o.deprecatedUsage,a=o.unescaped,u=o.quoteMark;if(s&&Vd(),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}(zd.default);ar.default=dn;dn.NO_QUOTE=null;dn.SINGLE_QUOTE="'";dn.DOUBLE_QUOTE='"';var Ii=(Ai={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},Ai[null]={isIdentifier:!0},Ai);function ja(e,t){return""+t.before+e+t.after}});var Ni=P((ur,Ha)=>{"use strict";ur.__esModule=!0;ur.default=void 0;var Kd=Zd(cn()),Jd=ne();function Zd(e){return e&&e.__esModule?e:{default:e}}function ep(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Di(e,t)}function Di(e,t){return Di=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Di(e,t)}var tp=function(e){ep(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Jd.UNIVERSAL,r.value="*",r}return t}(Kd.default);ur.default=tp;Ha.exports=ur.default});var Wi=P((lr,Va)=>{"use strict";lr.__esModule=!0;lr.default=void 0;var rp=ip(We()),np=ne();function ip(e){return e&&e.__esModule?e:{default:e}}function op(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fi(e,t)}function Fi(e,t){return Fi=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Fi(e,t)}var sp=function(e){op(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=np.COMBINATOR,r}return t}(rp.default);lr.default=sp;Va.exports=lr.default});var qi=P((fr,Ya)=>{"use strict";fr.__esModule=!0;fr.default=void 0;var ap=lp(We()),up=ne();function lp(e){return e&&e.__esModule?e:{default:e}}function fp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$i(e,t)}function $i(e,t){return $i=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},$i(e,t)}var cp=function(e){fp(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=up.NESTING,r.value="&",r}return t}(ap.default);fr.default=cp;Ya.exports=fr.default});var Qa=P((pn,Xa)=>{"use strict";pn.__esModule=!0;pn.default=dp;function dp(e){return e.sort(function(t,n){return t-n})}Xa.exports=pn.default});var Bi=P(O=>{"use strict";O.__esModule=!0;O.combinator=O.word=O.comment=O.str=O.tab=O.newline=O.feed=O.cr=O.backslash=O.bang=O.slash=O.doubleQuote=O.singleQuote=O.space=O.greaterThan=O.pipe=O.equals=O.plus=O.caret=O.tilde=O.dollar=O.closeSquare=O.openSquare=O.closeParenthesis=O.openParenthesis=O.semicolon=O.colon=O.comma=O.at=O.asterisk=O.ampersand=void 0;var pp=38;O.ampersand=pp;var hp=42;O.asterisk=hp;var mp=64;O.at=mp;var gp=44;O.comma=gp;var bp=58;O.colon=bp;var vp=59;O.semicolon=vp;var yp=40;O.openParenthesis=yp;var xp=41;O.closeParenthesis=xp;var wp=91;O.openSquare=wp;var Sp=93;O.closeSquare=Sp;var _p=36;O.dollar=_p;var kp=126;O.tilde=kp;var Tp=94;O.caret=Tp;var Ep=43;O.plus=Ep;var Op=61;O.equals=Op;var Pp=124;O.pipe=Pp;var Ap=62;O.greaterThan=Ap;var Ip=32;O.space=Ip;var Ka=39;O.singleQuote=Ka;var Rp=34;O.doubleQuote=Rp;var Lp=47;O.slash=Lp;var Cp=33;O.bang=Cp;var Mp=92;O.backslash=Mp;var Dp=13;O.cr=Dp;var Np=12;O.feed=Np;var Fp=10;O.newline=Fp;var Wp=9;O.tab=Wp;var $p=Ka;O.str=$p;var qp=-1;O.comment=qp;var Bp=-2;O.word=Bp;var zp=-3;O.combinator=zp});var eu=P(cr=>{"use strict";cr.__esModule=!0;cr.default=Xp;cr.FIELDS=void 0;var _=Up(Bi()),wt,z;function Za(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Za=function(){return e},e}function Up(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Za();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 o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}var Gp=(wt={},wt[_.tab]=!0,wt[_.newline]=!0,wt[_.cr]=!0,wt[_.feed]=!0,wt),jp=(z={},z[_.space]=!0,z[_.tab]=!0,z[_.newline]=!0,z[_.cr]=!0,z[_.feed]=!0,z[_.ampersand]=!0,z[_.asterisk]=!0,z[_.bang]=!0,z[_.comma]=!0,z[_.colon]=!0,z[_.semicolon]=!0,z[_.openParenthesis]=!0,z[_.closeParenthesis]=!0,z[_.openSquare]=!0,z[_.closeSquare]=!0,z[_.singleQuote]=!0,z[_.doubleQuote]=!0,z[_.plus]=!0,z[_.pipe]=!0,z[_.tilde]=!0,z[_.greaterThan]=!0,z[_.equals]=!0,z[_.dollar]=!0,z[_.caret]=!0,z[_.slash]=!0,z),zi={},Ja="0123456789abcdefABCDEF";for(hn=0;hn<Ja.length;hn++)zi[Ja.charCodeAt(hn)]=!0;var hn;function Hp(e,t){var n=t,r;do{if(r=e.charCodeAt(n),jp[r])return n-1;r===_.backslash?n=Vp(e,n)+1:n++}while(n<e.length);return n-1}function Vp(e,t){var n=t,r=e.charCodeAt(n+1);if(!Gp[r])if(zi[r]){var i=0;do n++,i++,r=e.charCodeAt(n+1);while(zi[r]&&i<6);i<6&&r===_.space&&n++}else n++;return n}var Yp={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};cr.FIELDS=Yp;function Xp(e){var t=[],n=e.css.valueOf(),r=n,i=r.length,o=-1,s=1,a=0,u=0,l,f,c,p,d,h,m,w,b,T,y,v,x;function A(I,L){if(e.safe)n+=L,b=n.length-1;else throw e.error("Unclosed "+I,s,a-o,a)}for(;a<i;){switch(l=n.charCodeAt(a),l===_.newline&&(o=a,s+=1),l){case _.space:case _.tab:case _.newline:case _.cr:case _.feed:b=a;do b+=1,l=n.charCodeAt(b),l===_.newline&&(o=b,s+=1);while(l===_.space||l===_.newline||l===_.tab||l===_.cr||l===_.feed);x=_.space,p=s,c=b-o-1,u=b;break;case _.plus:case _.greaterThan:case _.tilde:case _.pipe:b=a;do b+=1,l=n.charCodeAt(b);while(l===_.plus||l===_.greaterThan||l===_.tilde||l===_.pipe);x=_.combinator,p=s,c=a-o,u=b;break;case _.asterisk:case _.ampersand:case _.bang:case _.comma:case _.equals:case _.dollar:case _.caret:case _.openSquare:case _.closeSquare:case _.colon:case _.semicolon:case _.openParenthesis:case _.closeParenthesis:b=a,x=l,p=s,c=a-o,u=b+1;break;case _.singleQuote:case _.doubleQuote:v=l===_.singleQuote?"'":'"',b=a;do for(d=!1,b=n.indexOf(v,b+1),b===-1&&A("quote",v),h=b;n.charCodeAt(h-1)===_.backslash;)h-=1,d=!d;while(d);x=_.str,p=s,c=a-o,u=b+1;break;default:l===_.slash&&n.charCodeAt(a+1)===_.asterisk?(b=n.indexOf("*/",a+2)+1,b===0&&A("comment","*/"),f=n.slice(a,b+1),w=f.split(`
|
|
3
|
+
`),m=w.length-1,m>0?(T=s+m,y=b-w[m].length):(T=s,y=o),x=_.comment,s=T,p=T,c=b-y):l===_.slash?(b=a,x=l,p=s,c=a-o,u=b+1):(b=Hp(n,a),x=_.word,p=s,c=b-o),u=b+1;break}t.push([x,s,a-o,p,c,a,u]),y&&(o=y,y=null),a=u}return t}});var uu=P((dr,au)=>{"use strict";dr.__esModule=!0;dr.default=void 0;var Qp=ye(di()),Ui=ye(hi()),Kp=ye(bi()),tu=ye(yi()),Jp=ye(wi()),Zp=ye(ki()),Gi=ye(Ei()),eh=ye(Pi()),ru=mn(Mi()),th=ye(Ni()),ji=ye(Wi()),rh=ye(qi()),nh=ye(Qa()),S=mn(eu()),E=mn(Bi()),ih=mn(ne()),X=Vt(),it,Hi;function su(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return su=function(){return e},e}function mn(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=su();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 o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function ye(e){return e&&e.__esModule?e:{default:e}}function nu(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 oh(e,t,n){return t&&nu(e.prototype,t),n&&nu(e,n),e}var Xi=(it={},it[E.space]=!0,it[E.cr]=!0,it[E.feed]=!0,it[E.newline]=!0,it[E.tab]=!0,it),sh=Object.assign({},Xi,(Hi={},Hi[E.comment]=!0,Hi));function iu(e){return{line:e[S.FIELDS.START_LINE],column:e[S.FIELDS.START_COL]}}function ou(e){return{line:e[S.FIELDS.END_LINE],column:e[S.FIELDS.END_COL]}}function ot(e,t,n,r){return{start:{line:e,column:t},end:{line:n,column:r}}}function St(e){return ot(e[S.FIELDS.START_LINE],e[S.FIELDS.START_COL],e[S.FIELDS.END_LINE],e[S.FIELDS.END_COL])}function Vi(e,t){if(e)return ot(e[S.FIELDS.START_LINE],e[S.FIELDS.START_COL],t[S.FIELDS.END_LINE],t[S.FIELDS.END_COL])}function _t(e,t){var n=e[t];if(typeof n=="string")return n.indexOf("\\")!==-1&&((0,X.ensureObject)(e,"raws"),e[t]=(0,X.unesc)(n),e.raws[t]===void 0&&(e.raws[t]=n)),e}function Yi(e,t){for(var n=-1,r=[];(n=e.indexOf(t,n+1))!==-1;)r.push(n);return r}function ah(){var e=Array.prototype.concat.apply([],arguments);return e.filter(function(t,n){return n===e.indexOf(t)})}var uh=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=Vi(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new Qp.default({source:i}),this.root.errorGenerator=this._errorGenerator();var o=new Ui.default({source:{start:{line:1,column:1}}});this.root.append(o),this.current=o,this.loop()}var t=e.prototype;return t._errorGenerator=function(){var r=this;return function(i,o){return typeof r.rule=="string"?new Error(i):r.rule.error(i,o)}},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 o=r.length,s={source:ot(i[1],i[2],this.currToken[3],this.currToken[4]),sourceIndex:i[S.FIELDS.START_POS]};if(o===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,c=!1;a<o;){var p=r[a],d=this.content(p),h=r[a+1];switch(p[S.FIELDS.TYPE]){case E.space:if(c=!0,this.options.lossy)break;if(f){(0,X.ensureObject)(s,"spaces",f);var m=s.spaces[f].after||"";s.spaces[f].after=m+d;var w=(0,X.getProp)(s,"raws","spaces",f,"after")||null;w&&(s.raws.spaces[f].after=w+d)}else u=u+d,l=l+d;break;case E.asterisk:if(h[S.FIELDS.TYPE]===E.equals)s.operator=d,f="operator";else if((!s.namespace||f==="namespace"&&!c)&&h){u&&((0,X.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),l&&((0,X.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=u,l=""),s.namespace=(s.namespace||"")+d;var b=(0,X.getProp)(s,"raws","namespace")||null;b&&(s.raws.namespace+=d),f="namespace"}c=!1;break;case E.dollar:if(f==="value"){var T=(0,X.getProp)(s,"raws","value");s.value+="$",T&&(s.raws.value=T+"$");break}case E.caret:h[S.FIELDS.TYPE]===E.equals&&(s.operator=d,f="operator"),c=!1;break;case E.combinator:if(d==="~"&&h[S.FIELDS.TYPE]===E.equals&&(s.operator=d,f="operator"),d!=="|"){c=!1;break}h[S.FIELDS.TYPE]===E.equals?(s.operator=d,f="operator"):!s.namespace&&!s.attribute&&(s.namespace=!0),c=!1;break;case E.word:if(h&&this.content(h)==="|"&&r[a+2]&&r[a+2][S.FIELDS.TYPE]!==E.equals&&!s.operator&&!s.namespace)s.namespace=d,f="namespace";else if(!s.attribute||f==="attribute"&&!c){u&&((0,X.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),l&&((0,X.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=l,l=""),s.attribute=(s.attribute||"")+d;var y=(0,X.getProp)(s,"raws","attribute")||null;y&&(s.raws.attribute+=d),f="attribute"}else if(!s.value&&s.value!==""||f==="value"&&!c){var v=(0,X.unesc)(d),x=(0,X.getProp)(s,"raws","value")||"",A=s.value||"";s.value=A+v,s.quoteMark=null,(v!==d||x)&&((0,X.ensureObject)(s,"raws"),s.raws.value=(x||A)+d),f="value"}else{var I=d==="i"||d==="I";(s.value||s.value==="")&&(s.quoteMark||c)?(s.insensitive=I,(!I||d==="I")&&((0,X.ensureObject)(s,"raws"),s.raws.insensitiveFlag=d),f="insensitive",u&&((0,X.ensureObject)(s,"spaces","insensitive"),s.spaces.insensitive.before=u,u=""),l&&((0,X.ensureObject)(s,"raws","spaces","insensitive"),s.raws.spaces.insensitive.before=l,l="")):(s.value||s.value==="")&&(f="value",s.value+=d,s.raws.value&&(s.raws.value+=d))}c=!1;break;case E.str:if(!s.attribute||!s.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:p[S.FIELDS.START_POS]});var L=(0,ru.unescapeValue)(d),H=L.unescaped,ie=L.quoteMark;s.value=H,s.quoteMark=ie,f="value",(0,X.ensureObject)(s,"raws"),s.raws.value=d,c=!1;break;case E.equals:if(!s.attribute)return this.expected("attribute",p[S.FIELDS.START_POS],d);if(s.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:p[S.FIELDS.START_POS]});s.operator=s.operator?s.operator+d:d,f="operator",c=!1;break;case E.comment:if(f)if(c||h&&h[S.FIELDS.TYPE]===E.space||f==="insensitive"){var se=(0,X.getProp)(s,"spaces",f,"after")||"",fe=(0,X.getProp)(s,"raws","spaces",f,"after")||se;(0,X.ensureObject)(s,"raws","spaces",f),s.raws.spaces[f].after=fe+d}else{var K=s[f]||"",oe=(0,X.getProp)(s,"raws",f)||K;(0,X.ensureObject)(s,"raws"),s.raws[f]=oe+d}else l=l+d;break;default:return this.error('Unexpected "'+d+'" found.',{index:p[S.FIELDS.START_POS]})}a++}_t(s,"attribute"),_t(s,"namespace"),this.newNode(new ru.default(s)),this.position++},t.parseWhitespaceEquivalentTokens=function(r){r<0&&(r=this.tokens.length);var i=this.position,o=[],s="",a=void 0;do if(Xi[this.currToken[S.FIELDS.TYPE]])this.options.lossy||(s+=this.content());else if(this.currToken[S.FIELDS.TYPE]===E.comment){var u={};s&&(u.before=s,s=""),a=new tu.default({value:this.content(),source:St(this.currToken),sourceIndex:this.currToken[S.FIELDS.START_POS],spaces:u}),o.push(a)}while(++this.position<r);if(s){if(a)a.spaces.after=s;else if(!this.options.lossy){var l=this.tokens[i],f=this.tokens[this.position-1];o.push(new Gi.default({value:"",source:ot(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:s,after:""}}))}}return o},t.convertWhitespaceNodesToSpace=function(r,i){var o=this;i===void 0&&(i=!1);var s="",a="";r.forEach(function(l){var f=o.lossySpace(l.spaces.before,i),c=o.lossySpace(l.rawSpaceBefore,i);s+=f+o.lossySpace(l.spaces.after,i&&f.length===0),a+=f+l.value+o.lossySpace(l.rawSpaceAfter,i&&c.length===0)}),a===s&&(a=void 0);var u={space:s,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,X.unesc)(r).toLowerCase(),o={};i!==r&&(o.value="/"+r+"/");var s=new ji.default({value:"/"+i+"/",source:ot(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:o});return this.position=this.position+3,s}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 o=this.parseWhitespaceEquivalentTokens(i);if(o.length>0){var s=this.current.last;if(s){var a=this.convertWhitespaceNodesToSpace(o),u=a.space,l=a.rawSpace;l!==void 0&&(s.rawSpaceAfter+=l),s.spaces.after+=u}else o.forEach(function(x){return r.newNode(x)})}return}var f=this.currToken,c=void 0;i>this.position&&(c=this.parseWhitespaceEquivalentTokens(i));var p;if(this.isNamedCombinator()?p=this.namedCombinator():this.currToken[S.FIELDS.TYPE]===E.combinator?(p=new ji.default({value:this.content(),source:St(this.currToken),sourceIndex:this.currToken[S.FIELDS.START_POS]}),this.position++):Xi[this.currToken[S.FIELDS.TYPE]]||c||this.unexpected(),p){if(c){var d=this.convertWhitespaceNodesToSpace(c),h=d.space,m=d.rawSpace;p.spaces.before=h,p.rawSpaceBefore=m}}else{var w=this.convertWhitespaceNodesToSpace(c,!0),b=w.space,T=w.rawSpace;T||(T=b);var y={},v={spaces:{}};b.endsWith(" ")&&T.endsWith(" ")?(y.before=b.slice(0,b.length-1),v.spaces.before=T.slice(0,T.length-1)):b.startsWith(" ")&&T.startsWith(" ")?(y.after=b.slice(1),v.spaces.after=T.slice(1)):v.value=T,p=new ji.default({value:" ",source:Vi(f,this.tokens[this.position-1]),sourceIndex:f[S.FIELDS.START_POS],spaces:y,raws:v})}return this.currToken&&this.currToken[S.FIELDS.TYPE]===E.space&&(p.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(p)},t.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var r=new Ui.default({source:{start:iu(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 tu.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 rh.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===ih.PSEUDO){var o=new Ui.default({source:{start:iu(this.tokens[this.position-1])}}),s=this.current;for(r.append(o),this.current=o;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=ou(this.currToken),this.current.parent.source.end=ou(this.currToken),this.position++);this.current=s}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:ot(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="",o=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(s,a){i+=s,r.newNode(new eh.default({value:i,source:Vi(o,r.currToken),sourceIndex:o[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 o=this.currToken;this.newNode(new th.default({value:this.content(),source:St(o),sourceIndex:o[S.FIELDS.START_POS]}),r),this.position++},t.splitWord=function(r,i){for(var o=this,s=this.nextToken,a=this.content();s&&~[E.dollar,E.caret,E.equals,E.word].indexOf(s[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++)}s=this.nextToken}var f=Yi(a,".").filter(function(h){var m=a[h-1]==="\\",w=/^\d+\.\d+%$/.test(a);return!m&&!w}),c=Yi(a,"#").filter(function(h){return a[h-1]!=="\\"}),p=Yi(a,"#{");p.length&&(c=c.filter(function(h){return!~p.indexOf(h)}));var d=(0,nh.default)(ah([0].concat(f,c)));d.forEach(function(h,m){var w=d[m+1]||a.length,b=a.slice(h,w);if(m===0&&i)return i.call(o,b,d.length);var T,y=o.currToken,v=y[S.FIELDS.START_POS]+d[m],x=ot(y[1],y[2]+h,y[3],y[2]+(w-1));if(~f.indexOf(h)){var A={value:b.slice(1),source:x,sourceIndex:v};T=new Kp.default(_t(A,"value"))}else if(~c.indexOf(h)){var I={value:b.slice(1),source:x,sourceIndex:v};T=new Jp.default(_t(I,"value"))}else{var L={value:b,source:x,sourceIndex:v};_t(L,"value"),T=new Zp.default(L)}o.newNode(T,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,o){if(Array.isArray(r)){var s=r.pop();r=r.join(", ")+" or "+s}var a=/^[aeiou]/.test(r[0])?"an":"a";return o?this.error("Expected "+a+" "+r+', found "'+o+'" 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,_t(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(sh[this.tokens[i][S.FIELDS.TYPE]]){i++;continue}else return i;return-1},oh(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}();dr.default=uh;au.exports=dr.default});var fu=P((pr,lu)=>{"use strict";pr.__esModule=!0;pr.default=void 0;var lh=fh(uu());function fh(e){return e&&e.__esModule?e:{default:e}}var ch=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 o=Object.assign({},this.options,i);return o.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 o=new lh.default(r,this._parseOptions(i));return o.root},t._parseOptions=function(r){return{lossy:this._isLossy(r)}},t._run=function(r,i){var o=this;return i===void 0&&(i={}),new Promise(function(s,a){try{var u=o._root(r,i);Promise.resolve(o.func(u)).then(function(l){var f=void 0;return o._shouldUpdateSelector(r,i)&&(f=u.toString(),r.selector=f),{transform:l,root:u,string:f}}).then(s,a)}catch(l){a(l);return}})},t._runSync=function(r,i){i===void 0&&(i={});var o=this._root(r,i),s=this.func(o);if(s&&typeof s.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=o.toString(),r.selector=a),{transform:s,root:o,string:a}},t.ast=function(r,i){return this._run(r,i).then(function(o){return o.root})},t.astSync=function(r,i){return this._runSync(r,i).root},t.transform=function(r,i){return this._run(r,i).then(function(o){return o.transform})},t.transformSync=function(r,i){return this._runSync(r,i).transform},t.process=function(r,i){return this._run(r,i).then(function(o){return o.string||o.root.toString()})},t.processSync=function(r,i){var o=this._runSync(r,i);return o.string||o.root.toString()},e}();pr.default=ch;lu.exports=pr.default});var cu=P(j=>{"use strict";j.__esModule=!0;j.universal=j.tag=j.string=j.selector=j.root=j.pseudo=j.nesting=j.id=j.comment=j.combinator=j.className=j.attribute=void 0;var dh=xe(Mi()),ph=xe(bi()),hh=xe(Wi()),mh=xe(yi()),gh=xe(wi()),bh=xe(qi()),vh=xe(Pi()),yh=xe(di()),xh=xe(hi()),wh=xe(Ei()),Sh=xe(ki()),_h=xe(Ni());function xe(e){return e&&e.__esModule?e:{default:e}}var kh=function(t){return new dh.default(t)};j.attribute=kh;var Th=function(t){return new ph.default(t)};j.className=Th;var Eh=function(t){return new hh.default(t)};j.combinator=Eh;var Oh=function(t){return new mh.default(t)};j.comment=Oh;var Ph=function(t){return new gh.default(t)};j.id=Ph;var Ah=function(t){return new bh.default(t)};j.nesting=Ah;var Ih=function(t){return new vh.default(t)};j.pseudo=Ih;var Rh=function(t){return new yh.default(t)};j.root=Rh;var Lh=function(t){return new xh.default(t)};j.selector=Lh;var Ch=function(t){return new wh.default(t)};j.string=Ch;var Mh=function(t){return new Sh.default(t)};j.tag=Mh;var Dh=function(t){return new _h.default(t)};j.universal=Dh});var mu=P(N=>{"use strict";N.__esModule=!0;N.isNode=Qi;N.isPseudoElement=hu;N.isPseudoClass=Hh;N.isContainer=Vh;N.isNamespace=Yh;N.isUniversal=N.isTag=N.isString=N.isSelector=N.isRoot=N.isPseudo=N.isNesting=N.isIdentifier=N.isComment=N.isCombinator=N.isClassName=N.isAttribute=void 0;var Q=ne(),de,Nh=(de={},de[Q.ATTRIBUTE]=!0,de[Q.CLASS]=!0,de[Q.COMBINATOR]=!0,de[Q.COMMENT]=!0,de[Q.ID]=!0,de[Q.NESTING]=!0,de[Q.PSEUDO]=!0,de[Q.ROOT]=!0,de[Q.SELECTOR]=!0,de[Q.STRING]=!0,de[Q.TAG]=!0,de[Q.UNIVERSAL]=!0,de);function Qi(e){return typeof e=="object"&&Nh[e.type]}function we(e,t){return Qi(t)&&t.type===e}var du=we.bind(null,Q.ATTRIBUTE);N.isAttribute=du;var Fh=we.bind(null,Q.CLASS);N.isClassName=Fh;var Wh=we.bind(null,Q.COMBINATOR);N.isCombinator=Wh;var $h=we.bind(null,Q.COMMENT);N.isComment=$h;var qh=we.bind(null,Q.ID);N.isIdentifier=qh;var Bh=we.bind(null,Q.NESTING);N.isNesting=Bh;var Ki=we.bind(null,Q.PSEUDO);N.isPseudo=Ki;var zh=we.bind(null,Q.ROOT);N.isRoot=zh;var Uh=we.bind(null,Q.SELECTOR);N.isSelector=Uh;var Gh=we.bind(null,Q.STRING);N.isString=Gh;var pu=we.bind(null,Q.TAG);N.isTag=pu;var jh=we.bind(null,Q.UNIVERSAL);N.isUniversal=jh;function hu(e){return Ki(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 Hh(e){return Ki(e)&&!hu(e)}function Vh(e){return!!(Qi(e)&&e.walk)}function Yh(e){return du(e)||pu(e)}});var gu=P(Oe=>{"use strict";Oe.__esModule=!0;var Ji=ne();Object.keys(Ji).forEach(function(e){e==="default"||e==="__esModule"||e in Oe&&Oe[e]===Ji[e]||(Oe[e]=Ji[e])});var Zi=cu();Object.keys(Zi).forEach(function(e){e==="default"||e==="__esModule"||e in Oe&&Oe[e]===Zi[e]||(Oe[e]=Zi[e])});var eo=mu();Object.keys(eo).forEach(function(e){e==="default"||e==="__esModule"||e in Oe&&Oe[e]===eo[e]||(Oe[e]=eo[e])})});var yu=P((hr,vu)=>{"use strict";hr.__esModule=!0;hr.default=void 0;var Xh=Jh(fu()),Qh=Kh(gu());function bu(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return bu=function(){return e},e}function Kh(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=bu();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 o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function Jh(e){return e&&e.__esModule?e:{default:e}}var to=function(t){return new Xh.default(t)};Object.assign(to,Qh);delete to.__esModule;var Zh=to;hr.default=Zh;vu.exports=hr.default});var xu=P(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});Object.defineProperty(ro,"default",{enumerable:!0,get:()=>em});function em(e){return e.replace(/\\,/g,"\\2c ")}});var Su=P((Cv,wu)=>{"use strict";wu.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 io=P(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});function tm(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}tm(no,{parseColor:()=>am,formatColor:()=>um});var _u=rm(Su());function rm(e){return e&&e.__esModule?e:{default:e}}var nm=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,im=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,Ye=/(?:\d+|\d*\.\d+)%?/,gn=/(?:\s*,\s*|\s+)/,ku=/\s*[,/]\s*/,Xe=/var\(--(?:[^ )]*?)\)/,om=new RegExp(`^(rgb)a?\\(\\s*(${Ye.source}|${Xe.source})(?:${gn.source}(${Ye.source}|${Xe.source}))?(?:${gn.source}(${Ye.source}|${Xe.source}))?(?:${ku.source}(${Ye.source}|${Xe.source}))?\\s*\\)$`),sm=new RegExp(`^(hsl)a?\\(\\s*((?:${Ye.source})(?:deg|rad|grad|turn)?|${Xe.source})(?:${gn.source}(${Ye.source}|${Xe.source}))?(?:${gn.source}(${Ye.source}|${Xe.source}))?(?:${ku.source}(${Ye.source}|${Xe.source}))?\\s*\\)$`);function am(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 _u.default)return{mode:"rgb",color:_u.default[e].map(u=>u.toString())};let i=e.replace(im,(u,l,f,c,p)=>["#",l,l,f,f,c,c,p?p+p:""].join("")).match(nm);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 o;let s=(o=e.match(om))!==null&&o!==void 0?o:e.match(sm);if(s===null)return null;let a=[s[2],s[3],s[4]].filter(Boolean).map(u=>u.toString());return!t&&a.length!==3||a.length<3&&!a.some(u=>/^var\(.*?\)$/.test(u))?null:{mode:s[1],color:a,alpha:(n=s[5])===null||n===void 0||(r=n.toString)===null||r===void 0?void 0:r.call(n)}}function um({mode:e,color:t,alpha:n}){let r=n!==void 0;return`${e}(${t.join(" ")}${r?` / ${n}`:""})`}});var so=P(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});function lm(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}lm(oo,{withAlphaValue:()=>fm,default:()=>cm});var bn=io();function fm(e,t,n){if(typeof e=="function")return e({opacityValue:t});let r=(0,bn.parseColor)(e,{loose:!0});return r===null?n:(0,bn.formatColor)({...r,alpha:t})}function cm({color:e,property:t,variable:n}){let r=[].concat(t);if(typeof e=="function")return{[n]:"1",...Object.fromEntries(r.map(o=>[o,e({opacityVariable:n,opacityValue:`var(${n})`})]))};let i=(0,bn.parseColor)(e);return i===null?Object.fromEntries(r.map(o=>[o,e])):i.alpha!==void 0?Object.fromEntries(r.map(o=>[o,e])):{[n]:"1",...Object.fromEntries(r.map(o=>[o,(0,bn.formatColor)({...i,alpha:`var(${n})`})]))}}});var Au=P(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});function dm(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}dm(ao,{pattern:()=>hm,withoutCapturing:()=>Eu,any:()=>Ou,optional:()=>mm,zeroOrMore:()=>gm,nestedBrackets:()=>Pu,escape:()=>st});var Tu=/[\\^$.*+?()[\]{}|]/g,pm=RegExp(Tu.source);function mr(e){return e=Array.isArray(e)?e:[e],e=e.map(t=>t instanceof RegExp?t.source:t),e.join("")}function hm(e){return new RegExp(mr(e),"g")}function Eu(e){return new RegExp(`(?:${mr(e)})`,"g")}function Ou(e){return`(?:${e.map(mr).join("|")})`}function mm(e){return`(?:${mr(e)})?`}function gm(e){return`(?:${mr(e)})*`}function Pu(e,t,n=1){return Eu([st(e),/[^\s]*/,n===1?`[^${st(e)}${st(t)}s]*`:Ou([`[^${st(e)}${st(t)}s]*`,Pu(e,t,n-1)]),/[^\s]*/,st(t)])}function st(e){return e&&pm.test(e)?e.replace(Tu,"\\$&"):e||""}});var Ru=P(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});Object.defineProperty(uo,"splitAtTopLevelOnly",{enumerable:!0,get:()=>ym});var bm=vm(Au());function Iu(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Iu=function(r){return r?n:t})(e)}function vm(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Iu(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function*ym(e,t){let n=new RegExp(`[(){}\\[\\]${bm.escape(t)}]`,"g"),r=0,i=0,o=!1,s=0,a=0,u=t.length;for(let l of e.matchAll(n)){let f=l[0]===t[s],c=s===u-1,p=f&&c;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),s++),p&&r===0&&(o=!0,yield e.substring(i,a),i=a+u),s===u&&(s=0,a=0)}o?yield e.substring(i):yield e}});var Cu=P(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});function xm(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}xm(lo,{parseBoxShadowValue:()=>km,formatBoxShadowValue:()=>Tm});var wm=Ru(),Sm=new Set(["inset","inherit","initial","revert","unset"]),_m=/\ +(?![^(]*\))/g,Lu=/^-?(\d+|\.\d+)(.*?)$/g;function km(e){return Array.from((0,wm.splitAtTopLevelOnly)(e,",")).map(n=>{let r=n.trim(),i={raw:r},o=r.split(_m),s=new Set;for(let a of o)Lu.lastIndex=0,!s.has("KEYWORD")&&Sm.has(a)?(i.keyword=a,s.add("KEYWORD")):Lu.test(a)?s.has("X")?s.has("Y")?s.has("BLUR")?s.has("SPREAD")||(i.spread=a,s.add("SPREAD")):(i.blur=a,s.add("BLUR")):(i.y=a,s.add("Y")):(i.x=a,s.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 Tm(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 qu=P(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});function Em(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Em(co,{normalize:()=>Qe,url:()=>Nu,number:()=>Am,percentage:()=>Fu,length:()=>Wu,lineWidth:()=>Lm,shadow:()=>Cm,color:()=>Mm,image:()=>Dm,gradient:()=>$u,position:()=>Wm,familyName:()=>$m,genericName:()=>Bm,absoluteSize:()=>Um,relativeSize:()=>jm});var Om=io(),Pm=Cu(),fo=["min","max","clamp","calc"],Du=/,(?![^(]*\))/g,vn=/_(?![^(]*\))/g;function Qe(e,t=!0){return e.includes("url(")?e.split(/(url\(.*?\))/g).filter(Boolean).map(n=>/^url\(.*?\)$/.test(n)?n:Qe(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 Nu(e){return e.startsWith("url(")}function Am(e){return!isNaN(Number(e))||fo.some(t=>new RegExp(`^${t}\\(.+?`).test(e))}function Fu(e){return e.split(vn).every(t=>/%$/g.test(t)||fo.some(n=>new RegExp(`^${n}\\(.+?%`).test(t)))}var Im=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],Mu=`(?:${Im.join("|")})`;function Wu(e){return e.split(vn).every(t=>t==="0"||new RegExp(`${Mu}$`).test(t)||fo.some(n=>new RegExp(`^${n}\\(.+?${Mu}`).test(t)))}var Rm=new Set(["thin","medium","thick"]);function Lm(e){return Rm.has(e)}function Cm(e){let t=(0,Pm.parseBoxShadowValue)(Qe(e));for(let n of t)if(!n.valid)return!1;return!0}function Mm(e){let t=0;return e.split(vn).every(r=>(r=Qe(r),r.startsWith("var(")?!0:(0,Om.parseColor)(r,{loose:!0})!==null?(t++,!0):!1))?t>0:!1}function Dm(e){let t=0;return e.split(Du).every(r=>(r=Qe(r),r.startsWith("var(")?!0:Nu(r)||$u(r)||["element(","image(","cross-fade(","image-set("].some(i=>r.startsWith(i))?(t++,!0):!1))?t>0:!1}var Nm=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function $u(e){e=Qe(e);for(let t of Nm)if(e.startsWith(`${t}(`))return!0;return!1}var Fm=new Set(["center","top","right","bottom","left"]);function Wm(e){let t=0;return e.split(vn).every(r=>(r=Qe(r),r.startsWith("var(")?!0:Fm.has(r)||Wu(r)||Fu(r)?(t++,!0):!1))?t>0:!1}function $m(e){let t=0;return e.split(Du).every(r=>(r=Qe(r),r.startsWith("var(")?!0:r.includes(" ")&&!/(['"])([^"']+)\1/g.test(r)||/^\d/g.test(r)?!1:(t++,!0)))?t>0:!1}var qm=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function Bm(e){return qm.has(e)}var zm=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function Um(e){return zm.has(e)}var Gm=new Set(["larger","smaller"]);function jm(e){return Gm.has(e)}});var Yu=P(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});function Hm(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Hm(mo,{updateAllClasses:()=>Xm,asValue:()=>br,parseColorFormat:()=>po,asColor:()=>ju,asLookupValue:()=>Hu,coerceValue:()=>Zm});var Vm=ho(yu()),Ym=ho(xu()),Bu=so(),pe=qu(),zu=ho(Jn());function ho(e){return e&&e.__esModule?e:{default:e}}function Xm(e,t){return(0,Vm.default)(i=>{i.walkClasses(o=>{let s=t(o.value);o.value=s,o.raws&&o.raws.value&&(o.raws.value=(0,Ym.default)(o.raws.value))})}).processSync(e)}function Gu(e,t){if(!gr(e))return;let n=e.slice(1,-1);if(t(n))return(0,pe.normalize)(n)}function Qm(e,t={},n){let r=t[e];if(r!==void 0)return(0,zu.default)(r);if(gr(e)){let i=Gu(e,n);return i===void 0?void 0:(0,zu.default)(i)}}function br(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("-")?Qm(e.slice(1),t.values,n):Gu(e,n)}function gr(e){return e.startsWith("[")&&e.endsWith("]")}function Km(e){let t=e.lastIndexOf("/");return t===-1||t===e.length-1?[e]:[e.slice(0,t),e.slice(t+1)]}function po(e){if(typeof e=="string"&&e.includes("<alpha-value>")){let t=e;return({opacityValue:n=1})=>t.replace("<alpha-value>",n)}return e}function ju(e,t={},{tailwindConfig:n={}}={}){var r;if(((r=t.values)===null||r===void 0?void 0:r[e])!==void 0){var i;return po((i=t.values)===null||i===void 0?void 0:i[e])}let[o,s]=Km(e);if(s!==void 0){var a,u,l,f;let c=(f=(a=t.values)===null||a===void 0?void 0:a[o])!==null&&f!==void 0?f:gr(o)?o.slice(1,-1):void 0;return c===void 0?void 0:(c=po(c),gr(s)?(0,Bu.withAlphaValue)(c,s.slice(1,-1)):((u=n.theme)===null||u===void 0||(l=u.opacity)===null||l===void 0?void 0:l[s])===void 0?void 0:(0,Bu.withAlphaValue)(c,n.theme.opacity[s]))}return br(e,t,{validate:pe.color})}function Hu(e,t={}){var n;return(n=t.values)===null||n===void 0?void 0:n[e]}function Se(e){return(t,n)=>br(t,n,{validate:e})}var Vu={any:br,color:ju,url:Se(pe.url),image:Se(pe.image),length:Se(pe.length),percentage:Se(pe.percentage),position:Se(pe.position),lookup:Hu,"generic-name":Se(pe.genericName),"family-name":Se(pe.familyName),number:Se(pe.number),"line-width":Se(pe.lineWidth),"absolute-size":Se(pe.absoluteSize),"relative-size":Se(pe.relativeSize),shadow:Se(pe.shadow)},Uu=Object.keys(Vu);function Jm(e,t){let n=e.indexOf(t);return n===-1?[void 0,e]:[e.slice(0,n),e.slice(n+1)]}function Zm(e,t,n,r){if(gr(t)){let i=t.slice(1,-1),[o,s]=Jm(i,":");if(!/^[\w-_]+$/g.test(o))s=i;else if(o!==void 0&&!Uu.includes(o))return[];if(s.length>0&&Uu.includes(o))return[br(`[${s}]`,n),o]}for(let i of[].concat(e)){let o=Vu[i](t,n,{tailwindConfig:r});if(o!==void 0)return[o,i]}return[]}});var Xu=P(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});Object.defineProperty(go,"default",{enumerable:!0,get:()=>e0});function e0(e){return typeof e=="function"?e({}):e}});var el=P(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});Object.defineProperty(vo,"default",{enumerable:!0,get:()=>x0});var t0=at(Jn()),r0=at(na()),n0=at(ia()),i0=at(ti()),o0=at(sa()),Ju=aa(),Qu=ua(),s0=fa(),a0=at(ca()),u0=da(),l0=Yu(),f0=so(),c0=at(Xu());function at(e){return e&&e.__esModule?e:{default:e}}function kt(e){return typeof e=="function"}function vr(e){return typeof e=="object"&&e!==null}function yr(e,...t){let n=t.pop();for(let r of t)for(let i in r){let o=n(e[i],r[i]);o===void 0?vr(e[i])&&vr(r[i])?e[i]=yr(e[i],r[i],n):e[i]=r[i]:e[i]=o}return e}var bo={colors:o0.default,negative(e){return Object.keys(e).filter(t=>e[t]!=="0").reduce((t,n)=>{let r=(0,t0.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 d0(e,...t){return kt(e)?e(...t):e}function p0(e){return e.reduce((t,{extend:n})=>yr(t,n,(r,i)=>r===void 0?[i]:Array.isArray(r)?[i,...r]:[i,r]),{})}function h0(e){return{...e.reduce((t,n)=>(0,Ju.defaults)(t,n),{}),extend:p0(e)}}function Ku(e,t){if(Array.isArray(e)&&vr(e[0]))return e.concat(t);if(Array.isArray(t)&&vr(t[0])&&vr(e))return[e,...t];if(Array.isArray(t))return t}function m0({extend:e,...t}){return yr(t,e,(n,r)=>!kt(n)&&!r.some(kt)?yr({},n,...r,Ku):(i,o)=>yr({},...[n,...r].map(s=>d0(s,i,o)),Ku))}function*g0(e){let t=(0,Qu.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,o]=r,s=(0,Qu.toPath)(i);s.alpha=o,yield s}}function b0(e){let t=(n,r)=>{for(let i of g0(n)){let o=0,s=e;for(;s!=null&&o<i.length;)s=s[i[o++]],s=kt(s)&&(i.alpha===void 0||o<=i.length-1)?s(t,bo):s;if(s!==void 0){if(i.alpha!==void 0){let a=(0,l0.parseColorFormat)(s);return(0,f0.withAlphaValue)(a,i.alpha,(0,c0.default)(a))}return(0,a0.default)(s)?(0,u0.cloneDeep)(s):s}}return r};return Object.assign(t,{theme:t,...bo}),Object.keys(e).reduce((n,r)=>(n[r]=kt(e[r])?e[r](t,bo):e[r],n),{})}function Zu(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(o=>{o.__isOptionsFunction&&(o=o());var s;t=[...t,...Zu([(s=o==null?void 0:o.config)!==null&&s!==void 0?s:{}])]})}),t}function v0(e){return[...e].reduceRight((n,r)=>kt(r)?r({corePlugins:n}):(0,n0.default)(r,n),r0.default)}function y0(e){return[...e].reduceRight((n,r)=>[...n,...r],[])}function x0(e){let t=[...Zu(e),{prefix:"",important:!1,separator:":",variantOrder:i0.default.variantOrder}];var n,r;return(0,s0.normalizeConfig)((0,Ju.defaults)({theme:b0(m0(h0(t.map(i=>(n=i==null?void 0:i.theme)!==null&&n!==void 0?n:{})))),corePlugins:v0(t.map(i=>i.corePlugins)),plugins:y0(e.map(i=>(r=i==null?void 0:i.plugins)!==null&&r!==void 0?r:[]))},...t))}});var tl={};Fr(tl,{default:()=>w0});var w0,rl=kn(()=>{w0={yellow:e=>e}});var sl=P(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});function S0(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}S0(yo,{flagEnabled:()=>T0,issueFlagNotices:()=>E0,default:()=>O0});var _0=ol((rl(),Lt(tl))),k0=ol((rn(),Lt(tn)));function ol(e){return e&&e.__esModule?e:{default:e}}var nl={optimizeUniversalDefaults:!1},xr={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function T0(e,t){if(xr.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:nl[t])!==null&&i!==void 0?i:!1)}if(xr.experimental.includes(t)){var o,s,a;return e.experimental==="all"||((a=(s=e==null||(o=e.experimental)===null||o===void 0?void 0:o[t])!==null&&s!==void 0?s:nl[t])!==null&&a!==void 0?a:!1)}return!1}function il(e){if(e.experimental==="all")return xr.experimental;var t;return Object.keys((t=e==null?void 0:e.experimental)!==null&&t!==void 0?t:{}).filter(n=>xr.experimental.includes(n)&&e.experimental[n])}function E0(e){if(process.env.JEST_WORKER_ID===void 0&&il(e).length>0){let t=il(e).map(n=>_0.default.yellow(n)).join(", ");k0.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 O0=xr});var ul=P(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});Object.defineProperty(xo,"default",{enumerable:!0,get:()=>al});var P0=I0(ti()),A0=sl();function I0(e){return e&&e.__esModule?e:{default:e}}function al(e){var t;let n=((t=e==null?void 0:e.presets)!==null&&t!==void 0?t:[P0.default]).slice().reverse().flatMap(o=>al(typeof o=="function"?o():o)),r={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},i=Object.keys(r).filter(o=>(0,A0.flagEnabled)(e,o)).map(o=>r[o]);return[e,...i,...n]}});var fl=P(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});Object.defineProperty(wo,"default",{enumerable:!0,get:()=>C0});var R0=ll(el()),L0=ll(ul());function ll(e){return e&&e.__esModule?e:{default:e}}function C0(...e){let[,...t]=(0,L0.default)(e[0]);return(0,R0.default)([...e,...t])}});var dl=P((Hv,cl)=>{var So=fl();cl.exports=(So.__esModule?So:{default:So}).default});var Z0={};Fr(Z0,{default:()=>qo,init:()=>Ko});module.exports=Lt(Z0);var gt;function Ko(e){gt=e}var Ct=null;async function Ne(){return gt||(Ct?(await Ct,gt):(Ct=Promise.resolve().then(()=>(Qo(),Xo)).then(e=>e.getYogaModule()).then(e=>gt=e),await Ct,Ct=null,gt))}var Mt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Yl=Mt((e,t)=>{t.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),Xl=Mt((e,t)=>{t.exports=["deg","grad","rad","turn"]}),Ql=Mt((e,t)=>{t.exports=["dpi","dpcm","dppx"]}),Kl=Mt((e,t)=>{t.exports=["Hz","kHz"]}),Jl=Mt((e,t)=>{t.exports=["s","ms"]}),Zl=Yl(),Jo=Xl(),Zo=Ql(),es=Kl(),ts=Jl();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(ef(e)>1)throw new Error("Only one dot is allowed");if(/%$/.test(e)){this.type="percentage",this.value=Tn(e),this.unit="%";return}var t=rf(e);if(!t){this.type="number",this.value=Tn(e);return}this.type=of(t),this.value=Tn(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 Fe(e){return new En(e)}function ef(e){var t=e.match(/\./g);return t?t.length:0}function Tn(e){var t=parseFloat(e);if(isNaN(t))throw new Error("Invalid number: "+e);return t}var tf=[].concat(Jo,es,Zl,Zo,ts);function rf(e){var t=e.match(/\D+$/),n=t&&t[0];if(n&&tf.indexOf(n)===-1)throw new Error("Invalid unit: "+n);return n}var nf=Object.assign(Wr(Jo,"angle"),Wr(es,"frequency"),Wr(Zo,"resolution"),Wr(ts,"time"));function Wr(e,t){return Object.fromEntries(e.map(n=>[n,t]))}function of(e){return nf[e]||"length"}var rs=He(require("linebreak"),1);function bt(e){let t=typeof e;return!(t==="number"||t==="bigint"||t==="string"||t==="boolean")}function ns(e){return/^class\s/.test(e.toString())}function is(e){return"dangerouslySetInnerHTML"in e}function os(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 R(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 o=new Fe(e);if(o.type==="length")switch(o.unit){case"em":return o.value*t;case"rem":return o.value*16;case"vw":return~~(o.value*r._viewportWidth/100);case"vh":return~~(o.value*r._viewportHeight/100);default:return o.value}else{if(o.type==="angle")return An(e);if(o.type==="percentage"&&i)return o.value/100*n}}catch{}}function An(e){let t=new Fe(e);switch(t.unit){case"deg":return t.value;case"rad":return t.value*180/Math.PI;case"turn":return t.value*360;case"grad":return .9*t.value}}function Dt(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(o=>`"${o}"`).join(" | ")}. Received: "${e}".`);i=n}return i}var On,Pn,ss=[32,160,4961,65792,65793,4153,4241,10].map(e=>String.fromCodePoint(e));function le(e,t,n){if(!On||!Pn){if(!(typeof Intl<"u"&&"Segmenter"in Intl))throw new Error("Intl.Segmenter does not exist, please use import a polyfill.");On=new Intl.Segmenter(n,{granularity:"word"}),Pn=new Intl.Segmenter(n,{granularity:"grapheme"})}if(t==="grapheme")return[...Pn.segment(e)].map(r=>r.segment);{let r=[...On.segment(e)].map(s=>s.segment),i=[],o=0;for(;o<r.length;){let s=r[o];if(s=="\xA0"){let a=o===0?"":i.pop(),u=o===r.length-1?"":r[o+1];i.push(a+"\xA0"+u),o+=2}else i.push(s),o++}return i}}function k(e,t,n){let r="";for(let[i,o]of Object.entries(t))typeof o<"u"&&(r+=` ${i}="${o}"`);return n?`<${e}${r}>${n}</${e}>`:`<${e}${r}/>`}function as(e=20){let t=new Map;function n(o,s){if(t.size>=e){let a=t.keys().next().value;t.delete(a)}t.set(o,s)}function r(o){if(!t.has(o))return;let a=t.get(o);return t.delete(o),t.set(o,a),a}function i(){t.clear()}return{set:n,get:r,clear:i}}function vt(e){return e?e.split(/[, ]/).filter(Boolean).map(Number):null}function sf(e){return Object.prototype.toString.call(e)}function $r(e){return typeof e=="string"}function us(e){return typeof e=="number"}function ls(e){return sf(e)==="[object Undefined]"}function fs(e,t){if(t==="break-all")return{words:le(e,"grapheme"),requiredBreaks:[]};if(t==="keep-all")return{words:le(e,"word"),requiredBreaks:[]};let n=new rs.default(e),r=0,i=n.nextBreak(),o=[],s=[!1];for(;i;){let a=e.slice(r,i.position);o.push(a),i.required?s.push(!0):s.push(!1),r=i.position,i=n.nextBreak()}return{words:o,requiredBreaks:s}}var cs=e=>e.replaceAll(/([A-Z])/g,(t,n)=>`-${n.toLowerCase()}`);function qr(e,t=","){let n=[],r=0,i=0;t=new RegExp(t);for(let o=0;o<e.length;o++)e[o]==="("?i++:e[o]===")"&&i--,i===0&&t.test(e[o])&&(n.push(e.slice(r,o).trim()),r=o+1);return n.push(e.slice(r).trim()),n}var af="image/avif",uf="image/webp",Br="image/apng",zr="image/png",Ur="image/jpeg",Gr="image/gif",In="image/svg+xml";function hs(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 o=t.getUint8(i+1+n);if(o===192||o===193||o===194)return[t.getUint16(i+7+n,!1),t.getUint16(i+5+n,!1)];n+=i+2}throw new TypeError("Invalid JPEG")}function ms(e){let t=new Uint8Array(e.slice(6,10));return[t[0]|t[1]<<8,t[2]|t[3]<<8]}function gs(e){let t=new DataView(e);return[t.getUint16(18,!1),t.getUint16(22,!1)]}var Re=as(100),Nt=new Map,lf=[zr,Br,Ur,Gr,In];function ff(e){let t="",n=new Uint8Array(e);for(let r=0;r<n.byteLength;r++)t+=String.fromCharCode(n[r]);return btoa(t)}function cf(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 ds(e,t){let n=t.match(/<svg[^>]*>/)[0],r=n.match(/viewBox=['"](.+)['"]/),i=r?vt(r[1]):null,o=n.match(/width=['"](\d*\.\d+|\d+)['"]/),s=n.match(/height=['"](\d*\.\d+|\d+)['"]/);if(!i&&(!o||!s))throw new Error(`Failed to parse SVG from ${e}: missing "viewBox"`);let a=i?[i[2],i[3]]:[+o[1],+s[1]],u=a[0]/a[1];return o&&s?[+o[1],+s[1]]:o?[+o[1],+o[1]/u]:s?[+s[1]*u,+s[1]]:[a[0],a[1]]}function ps(e){let t,n=df(new Uint8Array(e));switch(n){case zr:case Br:t=gs(e);break;case Gr:t=ms(e);break;case Ur:t=hs(e);break}if(!lf.includes(n))throw new Error(`Unsupported image type: ${n||"unknown"}`);return[`data:${n};base64,${ff(e)}`,t]}async function yt(e){if(!e)throw new Error("Image source is not provided.");if(typeof e=="object"){let[i,o]=ps(e);return[i,...o]}if((e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1)),typeof window>"u"&&!e.startsWith("http")&&!e.startsWith("data:"))throw new Error(`Image source must be an absolute URL: ${e}`);if(e.startsWith("data:")){let i;try{i=/data:(?<imageType>[a-z/+]+)(;[^;=]+=[^;=]+)*?(;(?<encodingType>[^;,]+))?,(?<dataString>.*)/g.exec(e).groups}catch{return console.warn("Image data URI resolved without size:"+e),[e]}let{imageType:o,encodingType:s,dataString:a}=i;if(o===In){let u=s==="base64"?atob(a):decodeURIComponent(a.replace(/ /g,"%20")),l=s==="base64"?e:`data:image/svg+xml;base64,${btoa(u)}`,f=ds(e,u);return Re.set(e,[l,...f]),[l,...f]}else if(s==="base64"){let u,l=cf(a);switch(o){case zr:case Br:u=gs(l);break;case Gr:u=ms(l);break;case Ur:u=hs(l);break}return Re.set(e,[e,...u]),[e,...u]}else return console.warn("Image data URI resolved without size:"+e),Re.set(e,[e]),[e]}if(!globalThis.fetch)throw new Error("`fetch` is required to be polyfilled to load images.");if(Nt.has(e))return Nt.get(e);let t=Re.get(e);if(t)return t;let n=e,r=fetch(n).then(i=>{let o=i.headers.get("content-type");return o==="image/svg+xml"||o==="application/svg+xml"?i.text():i.arrayBuffer()}).then(i=>{if(typeof i=="string")try{let a=`data:image/svg+xml;base64,${btoa(i)}`,u=ds(n,i);return[a,...u]}catch(a){throw new Error(`Failed to parse SVG image: ${a.message}`)}let[o,s]=ps(i);return[o,...s]}).then(i=>(Re.set(n,i),i)).catch(i=>(console.error(`Can't load image ${n}: `+i.message),Re.set(n,[]),[]));return Nt.set(n,r),r}function df(e){return[255,216,255].every((t,n)=>e[n]===t)?Ur:[137,80,78,71,13,10,26,10].every((t,n)=>e[n]===t)?pf(e)?Br:zr:[71,73,70,56].every((t,n)=>e[n]===t)?Gr:[82,73,70,70,0,0,0,0,87,69,66,80].every((t,n)=>!t||e[n]===t)?uf:[60,63,120,109,108].every((t,n)=>e[n]===t)?In:[0,0,0,0,102,116,121,112,97,118,105,102].every((t,n)=>!t||e[n]===t)?af:null}function pf(e){let t=new DataView(e.buffer),n,r,i=8,o=!1;for(;!o&&n!=="IEND"&&i<e.length;){r=t.getUint32(i);let s=e.subarray(i+4,i+8);n=String.fromCharCode(...s),o=n==="acTL",i+=12+r}return o}var Rn={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",href:"href",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"},hf=/[\r\n%#()<>?[\\\]^`{|}"']/g;function Ln(e,t){if(!e)return"";if(Array.isArray(e))return e.map(l=>Ln(l,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,...o}=e.props||{},s=(i==null?void 0:i.color)||t,a=`${Object.entries(o).map(([l,f])=>(typeof f=="string"&&f.toLowerCase()==="currentcolor"&&(f=s),l==="href"&&n==="image"?` ${Rn[l]||l}="${Re.get(f)[0]}"`:` ${Rn[l]||l}="${f}"`)).join("")}`,u=i?` style="${Object.entries(i).map(([l,f])=>`${cs(l)}:${f}`).join(";")}"`:"";return`<${n}${a}${u}>${Ln(r,s)}</${n}>`}async function bs(e){let t=new Set,n=r=>{if(r&&bt(r)){if(Array.isArray(r)){r.forEach(i=>n(i));return}else typeof r=="object"&&(r.type==="image"?t.has(r.props.href)||t.add(r.props.href):r.type==="img"&&(t.has(r.props.src)||t.add(r.props.src)));Array.isArray(r.props.children)?r.props.children.map(i=>n(i)):n(r.props.children)}};return n(e),Promise.all(Array.from(t).map(r=>yt(r)))}async function vs(e,t){let{viewBox:n,viewbox:r,width:i,height:o,className:s,style:a,children:u,...l}=e.props||{};n||=r,l.xmlns="http://www.w3.org/2000/svg";let f=(a==null?void 0:a.color)||t,c=vt(n),p=c?c[3]/c[2]:null;return i=i||p&&o?o/p:null,o=o||p&&i?i*p:null,l.width=i,l.height=o,n&&(l.viewBox=n),`data:image/svg+xml;utf8,${`<svg ${Object.entries(l).map(([d,h])=>(typeof h=="string"&&h.toLowerCase()==="currentcolor"&&(h=f),` ${Rn[d]||d}="${h}"`)).join("")}>${Ln(u,f)}</svg>`.replace(hf,encodeURIComponent)}`}var ve="flex",ys={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"}};var mf=new Set(["color","font","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","textAlign","textTransform","textShadowOffset","textShadowColor","textShadowRadius","WebkitTextStrokeWidth","WebkitTextStrokeColor","textDecorationLine","textDecorationStyle","textDecorationColor","whiteSpace","transform","wordBreak","tabSize","opacity","filter","_viewportWidth","_viewportHeight","_inheritedClipPathId","_inheritedMaskId","_inheritedBackgroundClipTextPath"]);function Cn(e){let t={};for(let n in e)mf.has(n)&&(t[n]=e[n]);return t}var Ee=require("css-to-react-native"),Es=require("css-background-parser"),Os=require("css-box-shadow"),Ps=He(require("parse-css-color"),1);var xs=He(require("postcss-value-parser"),1);function gf(e,t){try{let n=new Fe(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 Mn(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=gf(e,t);return r.absolute?{[n?"xAbsolute":"yAbsolute"]:r.absolute}:r.relative?{[n?"xRelative":"yRelative"]:r.relative}:{}}}}function Dn(e,t){if(typeof e=="number")return{xAbsolute:e};let n;try{n=(0,xs.default)(e).nodes.filter(r=>r.type==="word").map(r=>r.value)}catch{return{}}return n.length===1?Mn(n[0],t,!0):n.length===2?((n[0]==="top"||n[0]==="bottom"||n[1]==="left"||n[1]==="right")&&n.reverse(),{...Mn(n[0],t,!0),...Mn(n[1],t,!1)}):{}}var ws=require("css-to-react-native");function Ft(e,t){let n=(0,ws.getPropertyName)(`mask-${t}`);return e[n]||e[`WebkitM${n.substring(1)}`]}function Ss(e){let t=e.maskImage||e.WebkitMaskImage,n={position:Ft(e,"position")||"0% 0%",size:Ft(e,"size")||"100% 100%",repeat:Ft(e,"repeat")||"repeat",origin:Ft(e,"origin")||"border-box",clip:Ft(e,"origin")||"border-box"};return qr(t).filter(i=>i&&i!=="none").reverse().map(i=>({image:i,...n}))}var bf=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),vf=new Set(["lineHeight"]);function yf(e,t,n,r){return e==="textDecoration"&&!n.includes(t.textDecorationColor)&&(t.textDecorationColor=r),t}function rt(e,t){let n=Number(t);return isNaN(n)?t:bf.has(e)?vf.has(e)?n:String(t):n+"px"}function xf(e,t,n){if(e==="lineHeight")return{lineHeight:rt(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("/"),o=(0,Ee.getStylesForProperty)(e,r,!0),s=(0,Ee.getStylesForProperty)(e,i,!0);for(let a in o)s[a]=rt(e,o[a])+" "+rt(e,s[a]);return s}if(/^border(Top|Right|Bottom|Left)?$/.test(e)){let r=(0,Ee.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:rt(e+"Width",r.borderWidth),Style:ce(r.borderStyle,{solid:"solid",dashed:"dashed"},"solid",e+"Style"),Color:r.borderColor},o={};for(let s of e==="border"?["Top","Right","Bottom","Left"]:[e.slice(6)])for(let a in i)o["border"+s+a]=i[a];return o}if(e==="boxShadow"){if(!t)throw new Error('Invalid `boxShadow` value: "'+t+'".');return{[e]:typeof t=="string"?(0,Os.parse)(t):t}}if(e==="transform"){if(typeof t!="string")throw new Error("Invalid `transform` value.");let r={},i=t.replace(/(-?[\d.]+%)/g,(s,a)=>{let u=~~(Math.random()*1e9);return r[u]=a,u+"px"}),o=(0,Ee.getStylesForProperty)("transform",i,!0);for(let s of o.transform)for(let a in s)r[s[a]]&&(s[a]=r[s[a]]);return o}if(e==="background")return t=t.toString().trim(),/^(linear-gradient|radial-gradient|url|repeating-linear-gradient)\(/.test(t)?(0,Ee.getStylesForProperty)("backgroundImage",t,!0):(0,Ee.getStylesForProperty)("background",t,!0);if(e==="textShadow"){t=t.toString().trim();let r={},i=qr(t);for(let o of i){let s=(0,Ee.getStylesForProperty)("textShadow",o,!0);for(let a in s)r[a]?r[a].push(s[a]):r[a]=[s[a]]}return r}if(e==="WebkitTextStroke"){t=t.toString().trim();let r=t.split(" ");if(r.length!==2)throw new Error("Invalid `WebkitTextStroke` value.");return{WebkitTextStrokeWidth:rt(e,r[0]),WebkitTextStrokeColor:rt(e,r[1])}}}function _s(e){return e==="transform"?" Only absolute lengths such as `10px` are supported.":""}var ks=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function As(e){if(typeof e=="string"&&ks.test(e.trim()))return e.trim().replace(ks,(t,n,r,i,o)=>`rgba(${n}, ${r}, ${i}, ${o})`);if(typeof e=="object"&&e!==null){for(let t in e)e[t]=As(e[t]);return e}return e}function jr(e,t){let n={};if(e){let i=Sf(e.color,t.color);n.color=i;for(let o in e){if(o.startsWith("_")){n[o]=e[o];continue}if(o==="color")continue;let s=(0,Ee.getPropertyName)(o),a=kf(e[o],i);try{let u=xf(s,a,i)||yf(s,(0,Ee.getStylesForProperty)(s,rt(s,a),!0),a,i);Object.assign(n,u)}catch(u){throw new Error(u.message+(u.message.includes(a)?`
|
|
4
|
+
`+_s(s):`
|
|
5
|
+
in CSS rule \`${s}: ${a}\`.${_s(s)}`))}}}if(n.backgroundImage){let{backgrounds:i}=(0,Es.parseElementStyle)(n);n.backgroundImage=i}(n.maskImage||n.WebkitMaskImage)&&(n.maskImage=Ss(n));let r=wf(n.fontSize,t.fontSize);typeof n.fontSize<"u"&&(n.fontSize=r),n.transformOrigin&&(n.transformOrigin=Dn(n.transformOrigin,r));for(let i in n){let o=n[i];if(i==="lineHeight")typeof o=="string"&&o!=="normal"&&(o=n[i]=R(o,r,r,t,!0)/r);else{if(typeof o=="string"){let s=R(o,r,r,t);typeof s<"u"&&(n[i]=s),o=n[i]}if(typeof o=="string"||typeof o=="object"){let s=As(o);s&&(n[i]=s),o=n[i]}}if(i==="opacity"&&typeof o=="number"&&(n.opacity=o*t.opacity),i==="transform"){let s=o;for(let a of s){let u=Object.keys(a)[0],l=a[u],f=typeof l=="string"?R(l,r,r,t)??l:l;a[u]=f}}if(i==="textShadowRadius"){let s=o;n.textShadowRadius=s.map(a=>R(a,r,0,t,!1))}if(i==="textShadowOffset"){let s=o;n.textShadowOffset=s.map(({height:a,width:u})=>({height:R(a,r,0,t,!1),width:R(u,r,0,t,!1)}))}}return n}function wf(e,t){if(typeof e=="number")return e;try{let n=new Fe(e);switch(n.unit){case"em":return n.value*t;case"rem":return n.value*16}}catch{return t}}function Ts(e){if(e.startsWith("hsl")){let t=(0,Ps.default)(e),[n,r,i]=t.values;return`hsl(${[n,`${r}%`,`${i}%`].concat(t.alpha===1?[]:[t.alpha]).join(",")})`}return e}function Sf(e,t){return e&&e.toLowerCase()!=="currentcolor"?Ts(e):Ts(t)}function _f(e,t){return e.replace(/currentcolor/gi,t)}function kf(e,t){return $r(e)&&(e=_f(e,t)),e}async function Nn(e,t,n,r,i){let o=await Ne(),s={...n,...jr(ys[t],n),...jr(r,n)};if(t==="img"){let[a,u,l]=await yt(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,c=(s.borderLeftWidth||0)+(s.borderRightWidth||0)+(s.paddingLeft||0)+(s.paddingRight||0),p=(s.borderTopWidth||0)+(s.borderBottomWidth||0)+(s.paddingTop||0)+(s.paddingBottom||0),d=s.width||i.width,h=s.height||i.height,m=typeof d=="number"&&typeof h=="number";m&&(d-=c,h-=p),d===void 0&&h===void 0?(d="100%",e.setAspectRatio(1/f)):d===void 0?typeof h=="number"?d=h/f:e.setAspectRatio(1/f):h===void 0&&(typeof d=="number"?h=d*f:e.setAspectRatio(1/f)),s.width=m?d+c:d,s.height=m?h+p:h,s.__src=a}if(t==="svg"){let a=i.viewBox||i.viewbox,u=vt(a),l=u?u[3]/u[2]:null,{width:f,height:c}=i;typeof f>"u"&&c?l==null?f=0:typeof c=="string"&&c.endsWith("%")?f=parseInt(c)/l+"%":(c=R(c,n.fontSize,1,n),f=c/l):typeof c>"u"&&f?l==null?f=0:typeof f=="string"&&f.endsWith("%")?c=parseInt(f)*l+"%":(f=R(f,n.fontSize,1,n),c=f*l):(typeof f<"u"&&(f=R(f,n.fontSize,1,n)||f),typeof c<"u"&&(c=R(c,n.fontSize,1,n)||c),f||=u==null?void 0:u[2],c||=u==null?void 0:u[3]),!s.width&&f&&(s.width=f),!s.height&&c&&(s.height=c)}return e.setDisplay(ce(s.display,{flex:o.DISPLAY_FLEX,block:o.DISPLAY_FLEX,none:o.DISPLAY_NONE,"-webkit-box":o.DISPLAY_FLEX},o.DISPLAY_FLEX,"display")),e.setAlignContent(ce(s.alignContent,{stretch:o.ALIGN_STRETCH,center:o.ALIGN_CENTER,"flex-start":o.ALIGN_FLEX_START,"flex-end":o.ALIGN_FLEX_END,"space-between":o.ALIGN_SPACE_BETWEEN,"space-around":o.ALIGN_SPACE_AROUND,baseline:o.ALIGN_BASELINE,normal:o.ALIGN_AUTO},o.ALIGN_AUTO,"alignContent")),e.setAlignItems(ce(s.alignItems,{stretch:o.ALIGN_STRETCH,center:o.ALIGN_CENTER,"flex-start":o.ALIGN_FLEX_START,"flex-end":o.ALIGN_FLEX_END,baseline:o.ALIGN_BASELINE,normal:o.ALIGN_AUTO},o.ALIGN_STRETCH,"alignItems")),e.setAlignSelf(ce(s.alignSelf,{stretch:o.ALIGN_STRETCH,center:o.ALIGN_CENTER,"flex-start":o.ALIGN_FLEX_START,"flex-end":o.ALIGN_FLEX_END,baseline:o.ALIGN_BASELINE,normal:o.ALIGN_AUTO},o.ALIGN_AUTO,"alignSelf")),e.setJustifyContent(ce(s.justifyContent,{center:o.JUSTIFY_CENTER,"flex-start":o.JUSTIFY_FLEX_START,"flex-end":o.JUSTIFY_FLEX_END,"space-between":o.JUSTIFY_SPACE_BETWEEN,"space-around":o.JUSTIFY_SPACE_AROUND},o.JUSTIFY_FLEX_START,"justifyContent")),e.setFlexDirection(ce(s.flexDirection,{row:o.FLEX_DIRECTION_ROW,column:o.FLEX_DIRECTION_COLUMN,"row-reverse":o.FLEX_DIRECTION_ROW_REVERSE,"column-reverse":o.FLEX_DIRECTION_COLUMN_REVERSE},o.FLEX_DIRECTION_ROW,"flexDirection")),e.setFlexWrap(ce(s.flexWrap,{wrap:o.WRAP_WRAP,nowrap:o.WRAP_NO_WRAP,"wrap-reverse":o.WRAP_WRAP_REVERSE},o.WRAP_NO_WRAP,"flexWrap")),typeof s.gap<"u"&&e.setGap(o.GUTTER_ALL,s.gap),typeof s.rowGap<"u"&&e.setGap(o.GUTTER_ROW,s.rowGap),typeof s.columnGap<"u"&&e.setGap(o.GUTTER_COLUMN,s.columnGap),typeof s.flexBasis<"u"&&e.setFlexBasis(s.flexBasis),e.setFlexGrow(typeof s.flexGrow>"u"?0:s.flexGrow),e.setFlexShrink(typeof s.flexShrink>"u"?0:s.flexShrink),typeof s.maxHeight<"u"&&e.setMaxHeight(s.maxHeight),typeof s.maxWidth<"u"&&e.setMaxWidth(s.maxWidth),typeof s.minHeight<"u"&&e.setMinHeight(s.minHeight),typeof s.minWidth<"u"&&e.setMinWidth(s.minWidth),e.setOverflow(ce(s.overflow,{visible:o.OVERFLOW_VISIBLE,hidden:o.OVERFLOW_HIDDEN},o.OVERFLOW_VISIBLE,"overflow")),e.setMargin(o.EDGE_TOP,s.marginTop||0),e.setMargin(o.EDGE_BOTTOM,s.marginBottom||0),e.setMargin(o.EDGE_LEFT,s.marginLeft||0),e.setMargin(o.EDGE_RIGHT,s.marginRight||0),e.setBorder(o.EDGE_TOP,s.borderTopWidth||0),e.setBorder(o.EDGE_BOTTOM,s.borderBottomWidth||0),e.setBorder(o.EDGE_LEFT,s.borderLeftWidth||0),e.setBorder(o.EDGE_RIGHT,s.borderRightWidth||0),e.setPadding(o.EDGE_TOP,s.paddingTop||0),e.setPadding(o.EDGE_BOTTOM,s.paddingBottom||0),e.setPadding(o.EDGE_LEFT,s.paddingLeft||0),e.setPadding(o.EDGE_RIGHT,s.paddingRight||0),e.setPositionType(ce(s.position,{absolute:o.POSITION_TYPE_ABSOLUTE,relative:o.POSITION_TYPE_RELATIVE},o.POSITION_TYPE_RELATIVE,"position")),typeof s.top<"u"&&e.setPosition(o.EDGE_TOP,s.top),typeof s.bottom<"u"&&e.setPosition(o.EDGE_BOTTOM,s.bottom),typeof s.left<"u"&&e.setPosition(o.EDGE_LEFT,s.left),typeof s.right<"u"&&e.setPosition(o.EDGE_RIGHT,s.right),typeof s.height<"u"?e.setHeight(s.height):e.setHeightAuto(),typeof s.width<"u"?e.setWidth(s.width):e.setWidthAuto(),[s,Cn(s)]}var Fn=He(require("escape-html"),1);var Is=[1,0,0,1,0,0];function Tf(e,t,n){let r=[...Is];for(let i of e){let o=Object.keys(i)[0],s=i[o];if(typeof s=="string")if(o==="translateX")s=parseFloat(s)/100*t,i[o]=s;else if(o==="translateY")s=parseFloat(s)/100*n,i[o]=s;else throw new Error(`Invalid transform: "${o}: ${s}".`);let a=s,u=[...Is];switch(o){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),c=Math.sin(l);u[0]=f,u[1]=c,u[2]=-c,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=Dt(u,r)}e.splice(0,e.length),e.push(...r),e.__resolved=!0}function Wt({left:e,top:t,width:n,height:r},i,o,s){let a;i.__resolved||Tf(i,n,r);let u=i;if(o)a=u;else{let l=(s==null?void 0:s.xAbsolute)??((s==null?void 0:s.xRelative)??50)*n/100,f=(s==null?void 0:s.yAbsolute)??((s==null?void 0:s.yRelative)??50)*r/100,c=e+l,p=t+f;a=Dt([1,0,0,1,c,p],Dt(u,[1,0,0,1,-c,-p])),u.__parent&&(a=Dt(u.__parent,a)),u.splice(0,6,...a)}return`matrix(${a.map(l=>l.toFixed(2)).join(",")})`}function Rs({left:e,top:t,width:n,height:r,isInheritingTransform:i},o){let s="",a=1;return o.transform&&(s=Wt({left:e,top:t,width:n,height:r},o.transform,i,o.transformOrigin)),o.opacity!==void 0&&(a=+o.opacity),{matrix:s,opacity:a}}function Wn({id:e,content:t,filter:n,left:r,top:i,width:o,height:s,matrix:a,opacity:u,image:l,clipPathId:f,debug:c,shape:p,decorationShape:d},h){let m="";if(c&&(m=k("rect",{x:r,y:i-s,width:o,height:s,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:o,height:s,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})">`:"")+k("image",{...b,opacity:u!==1?u:void 0})+(d||"")+(n?"</g>":"")+m,""]}let w={x:r,y:i,width:o,height:s,"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,"stroke-width":h.WebkitTextStrokeWidth?`${h.WebkitTextStrokeWidth}px`:void 0,stroke:h.WebkitTextStrokeWidth?h.WebkitTextStrokeColor:void 0,"stroke-linejoin":h.WebkitTextStrokeWidth?"round":void 0,"paint-order":h.WebkitTextStrokeWidth?"stroke":void 0};return[(n?`${n}<g filter="url(#satori_s-${e})">`:"")+k("text",{...w,fill:h.color,opacity:u!==1?u:void 0},(0,Fn.default)(t))+(d||"")+(n?"</g>":"")+m,p?k("text",w,(0,Fn.default)(t)):""]}function Ef(e,t,n){return e.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(r,i,o,s){return i+(parseFloat(o)+t)+","+(parseFloat(s)+n)})}var Hr=1.1;function Ls({id:e,width:t,height:n},r){if(!r.shadowColor||!r.shadowOffset||typeof r.shadowRadius>"u")return"";let i=r.shadowColor.length,o="",s="",a=0,u=t,l=0,f=n;for(let c=0;c<i;c++){let p=r.shadowRadius[c]*r.shadowRadius[c]/4;a=Math.min(r.shadowOffset[c].width-p,a),u=Math.max(r.shadowOffset[c].width+p+t,u),l=Math.min(r.shadowOffset[c].height-p,l),f=Math.max(r.shadowOffset[c].height+p+n,f),o+=k("feDropShadow",{dx:r.shadowOffset[c].width,dy:r.shadowOffset[c].height,stdDeviation:r.shadowRadius[c]/2,"flood-color":r.shadowColor[c],"flood-opacity":1,...i>1?{in:"SourceGraphic",result:`satori_s-${e}-result-${c}`}:{}}),i>1&&(s=k("feMergeNode",{in:`satori_s-${e}-result-${c}`})+s)}return k("filter",{id:`satori_s-${e}`,x:(a/t*100*Hr).toFixed(2)+"%",y:(l/n*100*Hr).toFixed(2)+"%",width:((u-a)/t*100*Hr).toFixed(2)+"%",height:((f-l)/n*100*Hr).toFixed(2)+"%"},o+(s?k("feMerge",{},s):""))}function Cs({width:e,height:t,shape:n,opacity:r,id:i},o){if(!o.boxShadow)return null;let s="",a="";for(let u=o.boxShadow.length-1;u>=0;u--){let l="",f=o.boxShadow[u];f.spreadRadius&&f.inset&&(f.spreadRadius=-f.spreadRadius);let c=f.blurRadius*f.blurRadius/4+(f.spreadRadius||0),p=Math.min(-c-(f.inset?f.offsetX:0),0),d=Math.max(c+e-(f.inset?f.offsetX:0),e),h=Math.min(-c-(f.inset?f.offsetY:0),0),m=Math.max(c+t-(f.inset?f.offsetY:0),t),w=`satori_s-${i}-${u}`,b=`satori_ms-${i}-${u}`,T=f.spreadRadius?n.replace('stroke-width="0"',`stroke-width="${f.spreadRadius*2}"`):n;l+=k("mask",{id:b,maskUnits:"userSpaceOnUse"},k("rect",{x:0,y:0,width:o._viewportWidth||"100%",height:o._viewportHeight||"100%",fill:f.inset?"#000":"#fff"})+T.replace('fill="#fff"',f.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let y=T.replace(/d="([^"]+)"/,(v,x)=>'d="'+Ef(x,f.offsetX,f.offsetY)+'"').replace(/x="([^"]+)"/,(v,x)=>'x="'+(parseFloat(x)+f.offsetX)+'"').replace(/y="([^"]+)"/,(v,x)=>'y="'+(parseFloat(x)+f.offsetY)+'"');f.spreadRadius&&f.spreadRadius<0&&(l+=k("mask",{id:b+"-neg",maskUnits:"userSpaceOnUse"},y.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-f.spreadRadius*2}"`))),f.spreadRadius&&f.spreadRadius<0&&(y=k("g",{mask:`url(#${b}-neg)`},y)),l+=k("defs",{},k("filter",{id:w,x:`${p/e*100}%`,y:`${h/t*100}%`,width:`${(d-p)/e*100}%`,height:`${(m-h)/t*100}%`},k("feGaussianBlur",{stdDeviation:f.blurRadius/2,result:"b"})+k("feFlood",{"flood-color":f.color,in:"SourceGraphic",result:"f"})+k("feComposite",{in:"f",in2:"b",operator:f.inset?"out":"in"})))+k("g",{mask:`url(#${b})`,filter:`url(#${w})`,opacity:r},y),f.inset?a+=l:s+=l}return[s,a]}function $n({width:e,left:t,top:n,ascender:r,clipPathId:i,matrix:o},s){let{textDecorationColor:a,textDecorationStyle:u,textDecorationLine:l,fontSize:f,color:c}=s;if(!l||l==="none")return"";let p=Math.max(1,f*.1),d=l==="line-through"?n+r*.7:l==="underline"?n+r*1.1:n,h=u==="dashed"?`${p*1.2} ${p*2}`:u==="dotted"?`0 ${p*2}`:void 0;return(i?`<g clip-path="url(#${i})">`:"")+k("line",{x1:t,y1:d,x2:t+e,y2:d,stroke:a||c,"stroke-width":p,"stroke-dasharray":h,"stroke-linecap":u==="dotted"?"round":"square",transform:o})+(i?"</g>":"")}function qn(e){return e=e.replace("U+","0x"),String.fromCodePoint(Number(e))}var nt=qn("U+0020"),Bn=qn("U+0009"),xt=qn("U+2026");function Ms(e,t,n){let{fontSize:r,letterSpacing:i}=n,o=new Map;function s(l){if(o.has(l))return o.get(l);let f=e.measure(l,{fontSize:r,letterSpacing:i});return o.set(l,f),f}function a(l){let f=0;for(let c of l)t(c)?f+=r:f+=s(c);return f}function u(l){return a(le(l,"grapheme"))}return{measureGrapheme:s,measureGraphemeArray:a,measureText:u}}function Ds(e,t,n){let{textTransform:r,whiteSpace:i,wordBreak:o}=t;e=Of(e,r,n);let{content:s,shouldCollapseTabsAndSpaces:a,allowSoftWrap:u}=If(e,i),{words:l,requiredBreaks:f,allowBreakWord:c}=Af(s,o),[p,d]=Pf(t,u);return{words:l,requiredBreaks:f,allowSoftWrap:u,allowBreakWord:c,processedContent:s,shouldCollapseTabsAndSpaces:a,lineLimit:p,blockEllipsis:d}}function Of(e,t,n){return t==="uppercase"?e=e.toLocaleUpperCase(n):t==="lowercase"?e=e.toLocaleLowerCase(n):t==="capitalize"&&(e=le(e,"word",n).map(r=>le(r,"grapheme",n).map((i,o)=>o===0?i.toLocaleUpperCase(n):i).join("")).join("")),e}function Pf(e,t){let{textOverflow:n,lineClamp:r,WebkitLineClamp:i,WebkitBoxOrient:o,overflow:s,display:a}=e;if(a==="block"&&r){let[u,l=xt]=Rf(r);if(u)return[u,l]}return n==="ellipsis"&&a==="-webkit-box"&&o==="vertical"&&us(i)&&i>0?[i,xt]:n==="ellipsis"&&s==="hidden"&&!t?[1,xt]:[1/0]}function Af(e,t){let n=["break-all","break-word"].includes(t),{words:r,requiredBreaks:i}=fs(e,t);return{words:r,requiredBreaks:i,allowBreakWord:n}}function If(e,t){let n=["pre","pre-wrap","pre-line"].includes(t),r=["normal","nowrap","pre-line"].includes(t),i=!["pre","nowrap"].includes(t);return n||(e=e.replace(/\n/g,nt)),r&&(e=e.replace(/([ ]|\t)+/g,nt).replace(/^[ ]|[ ]$/g,"")),{content:e,shouldCollapseTabsAndSpaces:r,allowSoftWrap:i}}function Rf(e){if(typeof e=="number")return[e];let t=/^(\d+)\s*"(.*)"$/,n=/^(\d+)\s*'(.*)'$/,r=t.exec(e),i=n.exec(e);if(r){let o=+r[1],s=r[2];return[o,s]}else if(i){let o=+i[1],s=i[2];return[o,s]}return[]}var Lf=new Set([Bn]);function Cf(e){return Lf.has(e)}async function*zn(e,t){let n=await Ne(),{parentStyle:r,inheritedStyle:i,parent:o,font:s,id:a,isInheritingTransform:u,debug:l,embedFont:f,graphemeImages:c,locale:p,canLoadAdditionalAssets:d}=t,{textAlign:h,lineHeight:m,textWrap:w,fontSize:b,filter:T,tabSize:y=8,letterSpacing:v,_inheritedBackgroundClipTextPath:x,flexShrink:A}=r,{words:I,requiredBreaks:L,allowSoftWrap:H,allowBreakWord:ie,processedContent:se,shouldCollapseTabsAndSpaces:fe,lineLimit:K,blockEllipsis:oe}=Ds(e,r,p),te=Mf(n,h);o.insertChild(te,o.getChildCount()),ls(A)&&o.setFlexShrink(1);let W=s.getEngine(b,m,r,p),ke=d?le(se,"grapheme").filter(M=>!Cf(M)&&!W.has(M)):[];yield ke.map(M=>({word:M,locale:p})),ke.length&&(W=s.getEngine(b,m,r,p));function Pe(M){return!!(c&&c[M])}let{measureGrapheme:me,measureGraphemeArray:Er,measureText:Je}=Ms(W,Pe,{fontSize:b,letterSpacing:v}),Ot=$r(y)?R(y,b,1,r):me(nt)*y,Or=(M,$)=>{if(M.length===0)return{originWidth:0,endingSpacesWidth:0,text:M};let{index:J,tabCount:q}=Df(M),Z=0;if(q>0){let ee=M.slice(0,J),V=M.slice(J+q),U=Je(ee),Ie=U+$;Z=(Ot===0?U:(Math.floor(Ie/Ot)+q)*Ot)+Je(V)}else Z=Je(M);let B=M.trimEnd()===M?Z:Je(M.trimEnd());return{originWidth:Z,endingSpacesWidth:Z-B,text:M}},C=[],ge=[],ft=[],ct=[],Pt=[];function Pr(M){let $=0,J=0,q=-1,Z=0,B=0,ee=0,V=0;C=[],ft=[0],ct=[],Pt=[];let U=0,Ie=0;for(;U<I.length&&$<K;){let D=I[U],Ze=L[U],be=0,{originWidth:Ue,endingSpacesWidth:Mr,text:Ge}=Or(D,B);D=Ge,be=Ue;let Y=Mr;Ze&&ee===0&&(ee=W.height(D));let ae=",.!?:-@)>]}%#".indexOf(D[0])<0,je=!B,Dr=U&&ae&&B+be>M+Y&&H;if(ie&&be>M&&(!B||Dr||Ze)){let ue=le(D,"grapheme");I.splice(U,1,...ue),B>0&&(C.push(B-Ie),ge.push(V),$++,Z+=ee,B=0,ee=0,V=0,ft.push(1),q=-1),Ie=Y;continue}if(Ze||Dr)fe&&D===nt&&(be=0),C.push(B-Ie),ge.push(V),$++,Z+=ee,B=be,ee=be?W.height(D):0,V=be?W.baseline(D):0,ft.push(1),q=-1,Ze||(J=Math.max(J,M));else{B+=be;let ue=W.height(D);ue>ee&&(ee=ue,V=W.baseline(D)),je&&ft[ft.length-1]++}je&&q++,J=Math.max(J,B);let et=B-be;if(be===0)Pt.push({y:Z,x:et,width:0,line:$,lineIndex:q,isImage:!1});else{let ue=le(D,"word");for(let Te=0;Te<ue.length;Te++){let tt=ue[Te],De=0,Rt=!1;Pe(tt)?(De=b,Rt=!0):De=me(tt),ct.push(tt),Pt.push({y:Z,x:et,width:De,line:$,lineIndex:q,isImage:Rt}),et+=De}}U++,Ie=Y}return B&&($<K&&(Z+=ee),$++,C.push(B),ge.push(V)),{width:J,height:Z}}let At={width:0,height:0};te.setMeasureFunc(M=>{let{width:$,height:J}=Pr(M);if(w==="balance"){let Z=$/2,B=$,ee=$;for(;Z+1<B;){ee=(Z+B)/2;let{height:U}=Pr(ee);U>J?Z=ee:B=ee}Pr(B);let V=Math.ceil(B);return At={width:V,height:J},{width:V,height:J}}if(w==="pretty"&&C[C.length-1]<$/3){let ee=$*.9,V=Pr(ee);if(V.height<=J*1.3)return At={width:$,height:V.height},{width:$,height:V.height}}let q=Math.ceil($);return At={width:q,height:J},{width:q,height:J}});let[Wl,$l]=yield,Sn="",Ar="",Be=i._inheritedClipPathId,Bo=i._inheritedMaskId,{left:zo,top:Uo,width:_n,height:ql}=te.getComputedLayout(),Ir=o.getComputedWidth()-o.getComputedPadding(n.EDGE_LEFT)-o.getComputedPadding(n.EDGE_RIGHT)-o.getComputedBorder(n.EDGE_LEFT)-o.getComputedBorder(n.EDGE_RIGHT),dt=Wl+zo,pt=$l+Uo,{matrix:Ae,opacity:Rr}=Rs({left:zo,top:Uo,width:_n,height:ql,isInheritingTransform:u},r),ht="";if(r.textShadowOffset){let{textShadowColor:M,textShadowOffset:$,textShadowRadius:J}=r;ht=Ls({width:At.width,height:At.height,id:a},{shadowColor:M,shadowOffset:$,shadowRadius:J}),ht=k("defs",{},ht)}let It="",Lr="",Go="",Cr=-1,mt={},ze=null,jo=0;for(let M=0;M<ct.length;M++){let $=Pt[M],J=Pt[M+1];if(!$)continue;let q=ct[M],Z=null,B=!1,ee=c?c[q]:null,V=$.y,U=$.x,Ie=$.width,D=$.line;if(D===Cr)continue;let Ze=!1;if(C.length>1){let Y=_n-C[D];if(h==="right"||h==="end")U+=Y;else if(h==="center")U+=Y/2;else if(h==="justify"&&D<C.length-1){let ae=ft[D],je=ae>1?Y/(ae-1):0;U+=je*$.lineIndex,Ze=!0}}let be=ge[D],Ue=W.baseline(q),Mr=W.height(q),Ge=be-Ue;if(mt[D]||(mt[D]=[U,pt+V+Ge,Ue,Ze?_n:C[D]]),K!==1/0){let et=function(ue,Te){let tt=le(Te,"grapheme",p),De="",Rt=0;for(let Ho of tt){let Vo=ue+Er([De+Ho]);if(De&&Vo+ae>Ir)break;De+=Ho,Rt=Vo}return{subset:De,resolvedWidth:Rt}},Y=oe,ae=me(oe);ae>Ir&&(Y=xt,ae=me(Y));let je=me(nt),Dr=D<C.length-1;if(D+1===K&&(Dr||C[D]>Ir)){if(U+Ie+ae+je>Ir){let{subset:ue,resolvedWidth:Te}=et(U,q);q=ue+Y,Cr=D,mt[D][2]=Te,B=!0}else if(J&&J.line!==D)if(h==="center"){let{subset:ue,resolvedWidth:Te}=et(U,q);q=ue+Y,Cr=D,mt[D][2]=Te,B=!0}else{let ue=ct[M+1],{subset:Te,resolvedWidth:tt}=et(Ie+U,ue);q=q+Te+Y,Cr=D,mt[D][2]=tt,B=!0}}}if(ee)V+=0;else if(f){if(!q.includes(Bn)&&!ss.includes(q)&&ct[M+1]&&J&&!J.isImage&&V===J.y&&!B){ze===null&&(jo=U),ze=ze===null?q:ze+q;continue}let Y=ze===null?q:ze+q,ae=ze===null?U:jo,je=$.width+U-ae;Z=W.getSVG(Y.replace(/(\t)+/g,""),{fontSize:b,left:dt+ae,top:pt+V+Ue+Ge,letterSpacing:v}),ze=null,l&&(Go+=k("rect",{x:dt+ae,y:pt+V+Ge,width:je,height:Mr,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:Ae||void 0,"clip-path":Be?`url(#${Be})`:void 0})+k("line",{x1:dt+U,x2:dt+U+$.width,y1:pt+V+Ge+Ue,y2:pt+V+Ge+Ue,stroke:"#14c000","stroke-width":1,transform:Ae||void 0,"clip-path":Be?`url(#${Be})`:void 0}))}else V+=Ue+Ge;if(r.textDecorationLine){let Y=mt[D];Y&&!Y[4]&&(It+=$n({left:dt+Y[0],top:Y[1],width:Y[3],ascender:Y[2],clipPathId:Be,matrix:Ae},r),Y[4]=1)}if(Z!==null)Lr+=Z+" ";else{let[Y,ae]=Wn({content:q,filter:ht,id:a,left:dt+U,top:pt+V,width:Ie,height:Mr,matrix:Ae,opacity:Rr,image:ee,clipPathId:Be,debug:l,shape:!!x,decorationShape:It},r);Sn+=Y,Ar+=ae,It=""}if(B)break}if(Lr){let M=r.color!=="transparent"&&Rr!==0?k("path",{fill:r.color,d:Lr,transform:Ae||void 0,opacity:Rr!==1?Rr:void 0,"clip-path":Be?`url(#${Be})`:void 0,mask:Bo?`url(#${Bo})`:void 0,style:T?`filter:${T}`:void 0,"stroke-width":i.WebkitTextStrokeWidth?`${i.WebkitTextStrokeWidth}px`:void 0,stroke:i.WebkitTextStrokeWidth?i.WebkitTextStrokeColor:void 0,"stroke-linejoin":i.WebkitTextStrokeWidth?"round":void 0,"paint-order":i.WebkitTextStrokeWidth?"stroke":void 0}):"";x&&(Ar=k("path",{d:Lr,transform:Ae||void 0})),Sn+=(ht?ht+k("g",{filter:`url(#satori_s-${a})`},M+It):M+It)+Go}return Ar&&(r._inheritedBackgroundClipTextPath.value+=Ar),Sn}function Mf(e,t){let n=e.Node.create();return n.setAlignItems(e.ALIGN_BASELINE),n.setJustifyContent(ce(t,{left:e.JUSTIFY_FLEX_START,right:e.JUSTIFY_FLEX_END,center:e.JUSTIFY_CENTER,justify:e.JUSTIFY_SPACE_BETWEEN,start:e.JUSTIFY_FLEX_START,end:e.JUSTIFY_FLEX_END},e.JUSTIFY_FLEX_START,"textAlign")),n}function Df(e){let t=/(\t)+/.exec(e);return t?{index:t.index,tabCount:t[0].length}:{index:null,tabCount:0}}var Fs=require("css-gradient-parser");var Ns=He(require("parse-css-color"),1);function Vr(e,t,n,r,i){let o=[];for(let l of t){let{color:f}=l;if(!o.length&&(o.push({offset:0,color:f}),!l.offset||l.offset.value==="0"))continue;let c=typeof l.offset>"u"?void 0:l.offset.unit==="%"?+l.offset.value/100:Number(R(`${l.offset.value}${l.offset.unit}`,n.fontSize,e,n,!0))/e;o.push({offset:c,color:f})}o.length||o.push({offset:0,color:"transparent"});let s=o[o.length-1];s.offset!==1&&(typeof s.offset>"u"?s.offset=1:r?o[o.length-1]={offset:1,color:s.color}:o.push({offset:1,color:s.color}));let a=0,u=1;for(let l=0;l<o.length;l++)if(typeof o[l].offset>"u"){for(u<l&&(u=l);typeof o[u].offset>"u";)u++;o[l].offset=(o[u].offset-o[a].offset)/(u-a)*(l-a)+o[a].offset}else a=l;return i==="mask"?o.map(l=>{let f=(0,Ns.default)(l.color);return f?f.alpha===0?{...l,color:"rgba(0, 0, 0, 1)"}:{...l,color:`rgba(255, 255, 255, ${f.alpha})`}:l}):o}function Ws({id:e,width:t,height:n,repeatX:r,repeatY:i},o,s,a,u,l){let f=(0,Fs.parseLinearGradient)(o),[c,p]=s,d=o.startsWith("repeating"),h,m,w;if(f.orientation.type==="directional")h=Ff(f.orientation.value),m=Math.sqrt(Math.pow((h.x2-h.x1)*c,2)+Math.pow((h.y2-h.y1)*p,2));else if(f.orientation.type==="angular"){let{length:x,...A}=Wf(An(`${f.orientation.value.value}${f.orientation.value.unit}`)/180*Math.PI,c,p);m=x,h=A}w=d?$f(f.stops,m,h,u):h;let b=Vr(d?Nf(f.stops,m):m,f.stops,u,d,l),T=`satori_bi${e}`,y=`satori_pattern_${e}`,v=k("pattern",{id:y,x:a[0]/t,y:a[1]/n,width:r?c/t:"1",height:i?p/n:"1",patternUnits:"objectBoundingBox"},k("linearGradient",{id:T,...w,spreadMethod:d?"repeat":"pad"},b.map(x=>k("stop",{offset:(x.offset??0)*100+"%","stop-color":x.color})).join(""))+k("rect",{x:0,y:0,width:c,height:p,fill:`url(#${T})`}));return[y,v]}function Nf(e,t){let n=e[e.length-1],{offset:r}=n;return r?r.unit==="%"?Number(r.value)/100*t:Number(r.value):t}function Ff(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),{x1:t,y1:n,x2:r,y2:i}}function Wf(e,t,n){let r=Math.pow(n/t,2);e=(e%(Math.PI*2)+Math.PI*2)%(Math.PI*2);let i,o,s,a,u,l,f,c,p=d=>{if(d===0){i=0,o=n,s=0,a=0,u=n;return}else if(d===Math.PI/2){i=0,o=0,s=t,a=0,u=t;return}if(d>0&&d<Math.PI/2){i=(r*t/2/Math.tan(d)-n/2)/(Math.tan(d)+r/Math.tan(d)),o=Math.tan(d)*i+n,s=Math.abs(t/2-i)+t/2,a=n/2-Math.abs(o-n/2),u=Math.sqrt(Math.pow(s-i,2)+Math.pow(a-o,2)),f=(t/2/Math.tan(d)-n/2)/(Math.tan(d)+1/Math.tan(d)),c=Math.tan(d)*f+n,u=2*Math.sqrt(Math.pow(t/2-f,2)+Math.pow(n/2-c,2));return}else if(d>Math.PI/2&&d<Math.PI){i=(n/2+r*t/2/Math.tan(d))/(Math.tan(d)+r/Math.tan(d)),o=Math.tan(d)*i,s=Math.abs(t/2-i)+t/2,a=n/2+Math.abs(o-n/2),f=(t/2/Math.tan(d)+n/2)/(Math.tan(d)+1/Math.tan(d)),c=Math.tan(d)*f,u=2*Math.sqrt(Math.pow(t/2-f,2)+Math.pow(n/2-c,2));return}else d>=Math.PI&&(p(d-Math.PI),l=i,i=s,s=l,l=o,o=a,a=l)};return p(e),{x1:i/t,y1:o/n,x2:s/t,y2:a/n,length:u}}function $f(e,t,n,r){let{x1:i,x2:o,y1:s,y2:a}=n,u=e[0].offset?e[0].offset.unit==="%"?Number(e[0].offset.value)/100:R(`${e[0].offset.value}${e[0].offset.unit}`,r.fontSize,t,r,!0)/t:0,l=e.at(-1).offset?e.at(-1).offset.unit==="%"?Number(e.at(-1).offset.value)/100:R(`${e.at(-1).offset.value}${e.at(-1).offset.unit}`,r.fontSize,t,r,!0)/t:1,f=(o-i)*u+i,c=(a-s)*u+s,p=(o-i)*l+i,d=(a-s)*l+s;return{x1:f,y1:c,x2:p,y2:d}}var qs=require("css-gradient-parser");function Bs({id:e,width:t,height:n,repeatX:r,repeatY:i},o,s,a,u,l){var ie;let{shape:f,stops:c,position:p,size:d}=(0,qs.parseRadialGradient)(o),[h,m]=s,w=h/2,b=m/2,T=qf(p.x,p.y,h,m,u.fontSize,u);w=T.x,b=T.y;let y=Vr(t,c,u,!1,l),v=`satori_radial_${e}`,x=`satori_pattern_${e}`,A=`satori_mask_${e}`,I=Bf(f,d,u.fontSize,{x:w,y:b},[h,m],u),L=k("pattern",{id:x,x:a[0]/t,y:a[1]/n,width:r?h/t:"1",height:i?m/n:"1",patternUnits:"objectBoundingBox"},k("radialGradient",{id:v},y.map(se=>k("stop",{offset:se.offset||0,"stop-color":se.color})).join(""))+k("mask",{id:A},k("rect",{x:0,y:0,width:h,height:m,fill:"#fff"}))+k("rect",{x:0,y:0,width:h,height:m,fill:((ie=y.at(-1))==null?void 0:ie.color)||"transparent"})+k(f,{cx:w,cy:b,width:h,height:m,...I,fill:`url(#${v})`,mask:`url(#${A})`}));return[x,L]}function qf(e,t,n,r,i,o){let s={x:n/2,y:r/2};return e.type==="keyword"?Object.assign(s,$s(e.value,n,r,"x")):s.x=R(`${e.value.value}${e.value.unit}`,i,n,o,!0)||n/2,t.type==="keyword"?Object.assign(s,$s(t.value,n,r,"y")):s.y=R(`${t.value.value}${t.value.unit}`,i,r,o,!0)||r/2,s}function $s(e,t,n,r){switch(e){case"center":return{[r]:r==="x"?t/2:n/2};case"left":return{x:0};case"top":return{y:0};case"right":return{x:t};case"bottom":return{y:n}}}function Bf(e,t,n,r,i,o){let[s,a]=i,{x:u,y:l}=r,f={},c=0,p=0;if(zf(t)){if(t.some(d=>d.value.value.startsWith("-")))throw new Error("disallow setting negative values to the size of the shape. Check https://w3c.github.io/csswg-drafts/css-images/#valdef-rg-size-length-0");return e==="circle"?{r:Number(R(`${t[0].value.value}${t[0].value.unit}`,n,s,o,!0))}:{rx:Number(R(`${t[0].value.value}${t[0].value.unit}`,n,s,o,!0)),ry:Number(R(`${t[1].value.value}${t[1].value.unit}`,n,a,o,!0))}}switch(t[0].value){case"farthest-corner":c=Math.max(Math.abs(s-u),Math.abs(u)),p=Math.max(Math.abs(a-l),Math.abs(l));break;case"closest-corner":c=Math.min(Math.abs(s-u),Math.abs(u)),p=Math.min(Math.abs(a-l),Math.abs(l));break;case"farthest-side":return e==="circle"?f.r=Math.max(Math.abs(s-u),Math.abs(u),Math.abs(a-l),Math.abs(l)):(f.rx=Math.max(Math.abs(s-u),Math.abs(u)),f.ry=Math.max(Math.abs(a-l),Math.abs(l))),f;case"closest-side":return e==="circle"?f.r=Math.min(Math.abs(s-u),Math.abs(u),Math.abs(a-l),Math.abs(l)):(f.rx=Math.min(Math.abs(s-u),Math.abs(u)),f.ry=Math.min(Math.abs(a-l),Math.abs(l))),f}if(e==="circle")f.r=Math.sqrt(c*c+p*p);else{let d=p!==0?c/p:1;c===0?(f.rx=0,f.ry=0):(f.ry=Math.sqrt(c*c+p*p*d*d)/d,f.rx=f.ry*d)}return f}function zf(e){return!e.some(t=>t.type==="keyword")}function Uf(e,t){return typeof e=="string"&&e.endsWith("%")?t*parseFloat(e)/100:+e}function Un(e,{x:t,y:n,defaultX:r,defaultY:i}){return(e?e.split(" ").map(o=>{try{let s=new Fe(o);return s.type==="length"||s.type==="number"?s.value:s.value+s.unit}catch{return null}}).filter(o=>o!==null):[r,i]).map((o,s)=>Uf(o,[t,n][s]))}async function $t({id:e,width:t,height:n,left:r,top:i},{image:o,size:s,position:a,repeat:u},l,f){u=u||"repeat",f=f||"background";let c=u==="repeat-x"||u==="repeat",p=u==="repeat-y"||u==="repeat",d=Un(s,{x:t,y:n,defaultX:t,defaultY:n}),h=Un(a,{x:t,y:n,defaultX:0,defaultY:0});if(o.startsWith("linear-gradient(")||o.startsWith("repeating-linear-gradient("))return Ws({id:e,width:t,height:n,repeatX:c,repeatY:p},o,d,h,l,f);if(o.startsWith("radial-gradient("))return Bs({id:e,width:t,height:n,repeatX:c,repeatY:p},o,d,h,l,f);if(o.startsWith("url(")){let m=Un(s,{x:t,y:n,defaultX:0,defaultY:0}),[w,b,T]=await yt(o.slice(4,-1)),y=f==="mask"?b||m[0]:m[0]||b,v=f==="mask"?T||m[1]:m[1]||T;return[`satori_bi${e}`,k("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:h[0]+r,y:h[1]+i,width:c?y:"100%",height:p?v:"100%"},k("image",{x:0,y:0,width:y,height:v,preserveAspectRatio:"none",href:w}))]}throw new Error(`Invalid background image: "${o}"`)}function Gf([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 Yr(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 Xr(e){e[0]=e[1]=Math.min(e[0],e[1])}function Qr(e,t,n,r,i){if(typeof e=="string"){let o=e.split(" ").map(a=>a.trim()),s=!o[1]&&!o[0].endsWith("%");return o[1]=o[1]||o[0],[s,[Math.min(R(o[0],r,t,i,!0),t),Math.min(R(o[1],r,n,i,!0),n)]]}return typeof e=="number"?[!0,[Math.min(e,t),Math.min(e,n)]]:[!0,void 0]}var Kr=e=>e&&e[0]!==0&&e[1]!==0;function zs({id:e,borderRadiusPath:t,borderType:n,left:r,top:i,width:o,height:s},a){let u=`satori_brc-${e}`;return[k("clipPath",{id:u},k(n,{x:r,y:i,width:o,height:s,d:t||void 0})),u]}function Ve({left:e,top:t,width:n,height:r},i,o){let{borderTopLeftRadius:s,borderTopRightRadius:a,borderBottomLeftRadius:u,borderBottomRightRadius:l,fontSize:f}=i,c,p,d,h;if([c,s]=Qr(s,n,r,f,i),[p,a]=Qr(a,n,r,f,i),[d,u]=Qr(u,n,r,f,i),[h,l]=Qr(l,n,r,f,i),!o&&!Kr(s)&&!Kr(a)&&!Kr(u)&&!Kr(l))return"";s||=[0,0],a||=[0,0],u||=[0,0],l||=[0,0],[s[0],a[0]]=Yr(s[0],a[0],n),[u[0],l[0]]=Yr(u[0],l[0],n),[s[1],u[1]]=Yr(s[1],u[1],r),[a[1],l[1]]=Yr(a[1],l[1],r),c&&Xr(s),p&&Xr(a),d&&Xr(u),h&&Xr(l);let m=[];m[0]=[a,a],m[1]=[l,[-l[0],l[1]]],m[2]=[u,[-u[0],-u[1]]],m[3]=[s,[s[0],-s[1]]];let w=`h${n-s[0]-a[0]} a${m[0][0]} 0 0 1 ${m[0][1]}`,b=`v${r-a[1]-l[1]} a${m[1][0]} 0 0 1 ${m[1][1]}`,T=`h${l[0]+u[0]-n} a${m[2][0]} 0 0 1 ${m[2][1]}`,y=`v${u[1]+s[1]-r} a${m[3][0]} 0 0 1 ${m[3][1]}`;if(o){let x=function(fe){let K=Gf([s,a,l,u][fe]);return fe===0?[[e+s[0]-K,t+s[1]-K],[e+s[0],t]]:fe===1?[[e+n-a[0]+K,t+a[1]-K],[e+n,t+a[1]]]:fe===2?[[e+n-l[0]+K,t+r-l[1]+K],[e+n-l[0],t+r]]:[[e+u[0]-K,t+r-u[1]+K],[e,t+r-u[1]]]},v=o.indexOf(!1);if(!o.includes(!0))throw new Error("Invalid `partialSides`.");if(v===-1)v=0;else for(;!o[v];)v=(v+1)%4;let A="",I=x(v),L=`M${I[0]} A${m[(v+3)%4][0]} 0 0 1 ${I[1]}`,H=0;for(;H<4&&o[(v+H)%4];H++)A+=L+" ",L=[w,b,T,y][(v+H)%4];let ie=(v+H)%4;A+=L.split(" ")[0];let se=x(ie);return A+=` A${m[(ie+3)%4][0]} 0 0 1 ${se[0]}`,A}return`M${e+s[0]},${t} ${w} ${b} ${T} ${y}`}function Us(e,t,n){return n[e+"Width"]===n[t+"Width"]&&n[e+"Style"]===n[t+"Style"]&&n[e+"Color"]===n[t+"Color"]}function Gs({id:e,currentClipPathId:t,borderPath:n,borderType:r,left:i,top:o,width:s,height:a},u){if(!(u.borderTopWidth||u.borderRightWidth||u.borderBottomWidth||u.borderLeftWidth))return null;let f=`satori_bc-${e}`;return[k("clipPath",{id:f,"clip-path":t?`url(#${t})`:void 0},k(r,{x:i,y:o,width:s,height:a,d:n||void 0})),f]}function qt({left:e,top:t,width:n,height:r,props:i,asContentMask:o,maskBorderOnly:s},a){let u=["borderTop","borderRight","borderBottom","borderLeft"];if(!o&&!u.some(d=>a[d+"Width"]))return"";let l="",f=0;for(;f>0&&Us(u[f],u[(f+3)%4],a);)f=(f+3)%4;let c=[!1,!1,!1,!1],p=[];for(let d=0;d<4;d++){let h=(f+d)%4,m=(f+d+1)%4,w=u[h],b=u[m];if(c[h]=!0,p=[a[w+"Width"],a[w+"Style"],a[w+"Color"],w],!Us(w,b,a)){let T=(p[0]||0)+(o&&!s&&a[w.replace("border","padding")]||0);T&&(l+=k("path",{width:n,height:r,...i,fill:"none",stroke:o?"#000":p[2],"stroke-width":T*2,"stroke-dasharray":!o&&p[1]==="dashed"?T*2+" "+T:void 0,d:Ve({left:e,top:t,width:n,height:r},a,c)})),c=[!1,!1,!1,!1]}}if(c.some(Boolean)){let d=(p[0]||0)+(o&&!s&&a[p[3].replace("border","padding")]||0);d&&(l+=k("path",{width:n,height:r,...i,fill:"none",stroke:o?"#000":p[2],"stroke-width":d*2,"stroke-dasharray":!o&&p[1]==="dashed"?d*2+" "+d:void 0,d:Ve({left:e,top:t,width:n,height:r},a,c)}))}return l}function Gn({id:e,left:t,top:n,width:r,height:i,matrix:o,borderOnly:s},a){let u=(a.borderLeftWidth||0)+(s?0:a.paddingLeft||0),l=(a.borderTopWidth||0)+(s?0:a.paddingTop||0),f=(a.borderRightWidth||0)+(s?0:a.paddingRight||0),c=(a.borderBottomWidth||0)+(s?0:a.paddingBottom||0),p={x:t+u,y:n+l,width:r-u-f,height:i-l-c};return k("mask",{id:e},k("rect",{...p,fill:"#fff",transform:a.overflow==="hidden"&&a.transform&&o?o:void 0,mask:a._inheritedMaskId?`url(#${a._inheritedMaskId})`:void 0})+qt({left:t,top:n,width:r,height:i,props:{transform:o||void 0},asContentMask:!0,maskBorderOnly:s},a))}var jn=require("css-to-react-native"),Bt={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/};function Vs({width:e,height:t},n,r){function i(l){let f=l.match(Bt.circle);if(!f)return null;let[,c]=f,[p,d=""]=c.split("at").map(w=>w.trim()),{x:h,y:m}=Hs(d,e,t);return{type:"circle",r:R(p,r.fontSize,Math.sqrt(Math.pow(e,2)+Math.pow(t,2))/Math.sqrt(2),r,!0),cx:R(h,r.fontSize,e,r,!0),cy:R(m,r.fontSize,t,r,!0)}}function o(l){let f=l.match(Bt.ellipse);if(!f)return null;let[,c]=f,[p,d=""]=c.split("at").map(T=>T.trim()),[h,m]=p.split(" "),{x:w,y:b}=Hs(d,e,t);return{type:"ellipse",rx:R(h||"50%",r.fontSize,e,r,!0),ry:R(m||"50%",r.fontSize,t,r,!0),cx:R(w,r.fontSize,e,r,!0),cy:R(b,r.fontSize,t,r,!0)}}function s(l){let f=l.match(Bt.path);if(!f)return null;let[c,p]=js(f[1]);return{type:"path",d:p,"fill-rule":c}}function a(l){let f=l.match(Bt.polygon);if(!f)return null;let[c,p]=js(f[1]);return{type:"polygon","fill-rule":c,points:p.split(",").map(d=>d.split(" ").map((h,m)=>R(h,r.fontSize,m===0?e:t,r,!0)).join(" ")).join(",")}}function u(l){let f=l.match(Bt.inset);if(!f)return null;let[c,p]=(f[1].includes("round")?f[1]:`${f[1].trim()} round 0`).split("round"),d=(0,jn.getStylesForProperty)("borderRadius",p,!0),h=Object.values(d).map(v=>String(v)).map((v,x)=>R(v,r.fontSize,x===0||x===2?t:e,r,!0)||0),m=Object.values((0,jn.getStylesForProperty)("margin",c,!0)).map(v=>String(v)).map((v,x)=>R(v,r.fontSize,x===0||x===2?t:e,r,!0)||0),w=m[3],b=m[0],T=e-(m[1]+m[3]),y=t-(m[0]+m[2]);return h.some(v=>v>0)?{type:"path",d:Ve({left:w,top:b,width:T,height:y},{...n,...d})}:{type:"rect",x:w,y:b,width:T,height:y}}return{parseCircle:i,parseEllipse:o,parsePath:s,parsePolygon:a,parseInset:u}}function js(e){let[,t="nonzero",n]=e.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[t,n]}function Hs(e,t,n){let r=e.split(" "),i={x:r[0]||"50%",y:r[1]||"50%"};return r.forEach(o=>{o==="top"?i.y=0:o==="bottom"?i.y=n:o==="left"?i.x=0:o==="right"?i.x=t:o==="center"&&(i.x=t/2,i.y=n/2)}),i}function Jr(e){return`satori_cp-${e}`}function Ys(e){return`url(#${Jr(e)})`}function Xs(e,t,n){if(t.clipPath==="none")return"";let r=Vs(e,t,n),i=t.clipPath,o={type:""};for(let s of Object.keys(r))if(o=r[s](i),o)break;if(o){let{type:s,...a}=o;return k("clipPath",{id:Jr(e.id),"clip-path":e.currentClipPath,transform:`translate(${e.left}, ${e.top})`},k(s,a))}return""}function Hn({left:e,top:t,width:n,height:r,path:i,matrix:o,id:s,currentClipPath:a,src:u},l,f){let c="",p=l.clipPath&&l.clipPath!=="none"?Xs({left:e,top:t,width:n,height:r,path:i,id:s,matrix:o,currentClipPath:a,src:u},l,f):"";if(l.overflow!=="hidden"&&!u)c="";else{let h=p?`satori_ocp-${s}`:Jr(s);c=k("clipPath",{id:h,"clip-path":a},k(i?"path":"rect",{x:e,y:t,width:n,height:r,d:i||void 0,transform:l.overflow==="hidden"&&l.transform&&o?o:void 0}))}let d=Gn({id:`satori_om-${s}`,left:e,top:t,width:n,height:r,matrix:o,borderOnly:!u},l);return p+c+d}var jf=e=>`satori_mi-${e}`;async function Vn(e,t,n){if(!t.maskImage)return["",""];let{left:r,top:i,width:o,height:s,id:a}=e,u=t.maskImage,l=u.length;if(!l)return["",""];let f=jf(a),c="";for(let p=0;p<l;p++){let d=u[p],[h,m]=await $t({id:`${f}-${p}`,left:r,top:i,width:o,height:s},d,n,"mask");c+=m+k("rect",{x:r,y:i,width:o,height:s,fill:`url(#${h})`})}return c=k("mask",{id:f},c),[f,c]}async function zt({id:e,left:t,top:n,width:r,height:i,isInheritingTransform:o,src:s,debug:a},u,l){if(u.display==="none")return"";let f=!!s,c="rect",p="",d="",h=[],m=1,w="";u.backgroundColor&&h.push(u.backgroundColor),u.opacity!==void 0&&(m=+u.opacity),u.transform&&(p=Wt({left:t,top:n,width:r,height:i},u.transform,o,u.transformOrigin));let b="";if(u.backgroundImage){let te=[];for(let W=0;W<u.backgroundImage.length;W++){let ke=u.backgroundImage[W],Pe=await $t({id:e+"_"+W,width:r,height:i,left:t,top:n},ke,l);Pe&&te.unshift(Pe)}for(let W of te)h.push(`url(#${W[0]})`),d+=W[1],W[2]&&(b+=W[2])}let[T,y]=await Vn({id:e,left:t,top:n,width:r,height:i},u,l);d+=y;let v=T?`url(#${T})`:u._inheritedMaskId?`url(#${u._inheritedMaskId})`:void 0,x=Ve({left:t,top:n,width:r,height:i},u);x&&(c="path");let A=u._inheritedClipPathId;a&&(w=k("rect",{x:t,y:n,width:r,height:i,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:p||void 0,"clip-path":A?`url(#${A})`:void 0}));let{backgroundClip:I,filter:L}=u,H=I==="text"?`url(#satori_bct-${e})`:A?`url(#${A})`:u.clipPath?Ys(e):void 0,ie=Hn({left:t,top:n,width:r,height:i,path:x,id:e,matrix:p,currentClipPath:H,src:s},u,l),se=h.map(te=>k(c,{x:t,y:n,width:r,height:i,fill:te,d:x||void 0,transform:p||void 0,"clip-path":u.transform?void 0:H,style:L?`filter:${L}`:void 0,mask:u.transform?void 0:v})).join(""),fe=Gs({id:e,left:t,top:n,width:r,height:i,currentClipPathId:A,borderPath:x,borderType:c},u),K;if(f){let te=(u.borderLeftWidth||0)+(u.paddingLeft||0),W=(u.borderTopWidth||0)+(u.paddingTop||0),ke=(u.borderRightWidth||0)+(u.paddingRight||0),Pe=(u.borderBottomWidth||0)+(u.paddingBottom||0),me=u.objectFit==="contain"?"xMidYMid":u.objectFit==="cover"?"xMidYMid slice":"none";u.transform&&(K=zs({id:e,borderRadiusPath:x,borderType:c,left:t,top:n,width:r,height:i},u)),se+=k("image",{x:t+te,y:n+W,width:r-te-ke,height:i-W-Pe,href:s,preserveAspectRatio:me,transform:p||void 0,style:L?`filter:${L}`:void 0,"clip-path":u.transform?K?`url(#${K[1]})`:void 0:`url(#satori_cp-${e})`,mask:u.transform?void 0:T?`url(#${T})`:`url(#satori_om-${e})`})}if(fe){d+=fe[0];let te=fe[1];se+=qt({left:t,top:n,width:r,height:i,props:{transform:p||void 0,"clip-path":`url(#${te})`}},u)}let oe=Cs({width:r,height:i,id:e,opacity:m,shape:k(c,{x:t,y:n,width:r,height:i,fill:"#fff",stroke:"#fff","stroke-width":0,d:x||void 0,transform:p||void 0,"clip-path":H,mask:v})},u);return(d?k("defs",{},d):"")+(oe?oe[0]:"")+(K?K[0]:"")+ie+(m!==1?`<g opacity="${m}">`:"")+(u.transform&&(H||v)?`<g${H?` clip-path="${H}"`:""}${v?` mask="${v}"`:""}>`:"")+(b||se)+(u.transform&&(H||v)?"</g>":"")+(m!==1?"</g>":"")+(oe?oe[1]:"")+w}var Ks=String.raw,Qs=Ks`\p{Emoji}(?:\p{EMod}|[\u{E0020}-\u{E007E}]+\u{E007F}|\uFE0F?\u20E3?)`,Js=()=>new RegExp(Ks`\p{RI}{2}|(?)${Qs}(?:\u200D${Qs})*`,"gu");var Hf=new RegExp(Js(),"u"),Yn={emoji:Hf,symbol:/\p{Symbol}/u,math:/\p{Math}/u},Xn={"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},Zr=Object.keys({...Xn,...Yn});function Zs(e){return Zr.includes(e)}function ea(e,t){for(let r of Object.keys(Yn))if(Yn[r].test(e))return[r];let n=Object.keys(Xn).filter(r=>Xn[r].test(e));if(n.length===0)return["unknown"];if(t){let r=n.findIndex(i=>i===t);r!==-1&&(n.splice(r,1),n.unshift(t))}return n}function ta(e){if(e)return Zr.find(t=>t.toLowerCase().startsWith(e.toLowerCase()))}async function*Ut(e,t){var Or;let n=await Ne(),{id:r,inheritedStyle:i,parent:o,font:s,debug:a,locale:u,embedFont:l=!0,graphemeImages:f,canLoadAdditionalAssets:c,getTwStyles:p}=t;if(e===null||typeof e>"u")return yield,yield,"";if(!bt(e)||typeof e.type=="function"){let C;if(!bt(e))C=zn(String(e),t),yield(await C.next()).value;else{if(ns(e.type))throw new Error("Class component is not supported.");C=Ut(e.type(e.props),t),yield(await C.next()).value}await C.next();let ge=yield;return(await C.next(ge)).value}let{type:d,props:h}=e;if(h&&is(h))throw new Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:m,children:w,tw:b,lang:T=u}=h||{},y=ta(T);if(b){let C=p(b,m);m=Object.assign(C,m)}let v=n.Node.create();o.insertChild(v,o.getChildCount());let[x,A]=await Nn(v,d,i,m,h),I=x.transform===i.transform;if(I||(x.transform.__parent=i.transform),(x.overflow==="hidden"||x.clipPath&&x.clipPath!=="none")&&(A._inheritedClipPathId=`satori_cp-${r}`,A._inheritedMaskId=`satori_om-${r}`),x.maskImage&&(A._inheritedMaskId=`satori_mi-${r}`),x.backgroundClip==="text"){let C={value:""};A._inheritedBackgroundClipTextPath=C,x._inheritedBackgroundClipTextPath=C}let L=os(w),H=[],ie=0,se=[];for(let C of L){let ge=Ut(C,{id:r+"-"+ie++,parentStyle:x,inheritedStyle:A,isInheritingTransform:!0,parent:v,font:s,embedFont:l,debug:a,graphemeImages:f,canLoadAdditionalAssets:c,locale:y,getTwStyles:p,onNodeDetected:t.onNodeDetected});c?se.push(...(await ge.next()).value||[]):await ge.next(),H.push(ge)}yield se;for(let C of H)await C.next();let[fe,K]=yield,{left:oe,top:te,width:W,height:ke}=v.getComputedLayout();oe+=fe,te+=K;let Pe="",me="",Er="",{children:Je,...Ot}=h;if((Or=t.onNodeDetected)==null||Or.call(t,{left:oe,top:te,width:W,height:ke,type:d,props:Ot,key:e.key,textContent:bt(Je)?void 0:Je}),d==="img"){let C=x.__src;me=await zt({id:r,left:oe,top:te,width:W,height:ke,src:C,isInheritingTransform:I,debug:a},x,A)}else if(d==="svg"){let C=x.color,ge=await vs(e,C);me=await zt({id:r,left:oe,top:te,width:W,height:ke,src:ge,isInheritingTransform:I,debug:a},x,A)}else{let C=m==null?void 0:m.display;if(d==="div"&&w&&typeof w!="string"&&C!=="flex"&&C!=="none")throw new Error('Expected <div> to have explicit "display: flex" or "display: none" if it has more than one child node.');me=await zt({id:r,left:oe,top:te,width:W,height:ke,isInheritingTransform:I,debug:a},x,A)}for(let C of H)Pe+=(await C.next([oe,te])).value;return x._inheritedBackgroundClipTextPath&&(Er+=k("clipPath",{id:`satori_bct-${r}`,"clip-path":x._inheritedClipPathId?`url(#${x._inheritedClipPathId})`:void 0},x._inheritedBackgroundClipTextPath.value)),Er+me+Pe}var en=He(require("@shuding/opentype.js"),1);var ra="unknown";function Vf(e,t,[n,r],[i,o]){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!==o){if(r===t)return-1;if(o===t)return 1}return-1}var Gt=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)],o=i[0];for(let s=1;s<i.length;s++){let[,a,u]=o,[,l,f]=i[s];Vf(n,r,[a,u],[l,f])>0&&(o=i[s])}return o[0]}addFonts(t){for(let n of t){let{name:r,data:i,lang:o}=n;if(o&&!Zs(o))throw new Error(`Invalid value for props \`lang\`: "${o}". The value must be one of the following: ${Zr.join(", ")}.`);let s=o??ra,a=en.default.parse("buffer"in i?i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength):i,{lowMemory:!0}),u=a.charToGlyphIndex;a.charToGlyphIndex=f=>{let c=u.call(a,f);return c===0&&a._trackBrokenChars&&a._trackBrokenChars.push(f),c},this.defaultFont||(this.defaultFont=a);let l=`${r.toLowerCase()}_${s}`;this.fonts.has(l)||this.fonts.set(l,[]),this.fonts.get(l).push([a,n.weight,n.style])}}getEngine(t=16,n="normal",{fontFamily:r="sans-serif",fontWeight:i=400,fontStyle:o="normal"},s){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.forEach(y=>{let v=this.get({name:y,weight:i,style:o});if(v){a.push(v);return}let x=this.get({name:y+"_unknown",weight:i,style:o});if(x){a.push(x);return}});let u=Array.from(this.fonts.keys()),l=[],f=[],c=[];for(let y of u)if(!r.includes(y))if(s){let v=Yf(y);v?v===s?l.push(this.get({name:y,weight:i,style:o})):f.push(this.get({name:y,weight:i,style:o})):c.push(this.get({name:y,weight:i,style:o}))}else c.push(this.get({name:y,weight:i,style:o}));let p=new Map,d=(y,v=!0)=>{let x=[...a,...c,...l,...v?f:[]];if(typeof y>"u")return v?x[x.length-1]:void 0;let A=y.charCodeAt(0);if(p.has(A))return p.get(A);let I=x.find((L,H)=>!!L.charToGlyphIndex(y)||v&&H===x.length-1);return I&&p.set(A,I),I},h=(y,v=!1)=>{var A,I;return((v?(I=(A=y.tables)==null?void 0:A.os2)==null?void 0:I.sTypoAscender:0)||y.ascender)/y.unitsPerEm*t},m=(y,v=!1)=>{var A,I;return((v?(I=(A=y.tables)==null?void 0:A.os2)==null?void 0:I.sTypoDescender:0)||y.descender)/y.unitsPerEm*t},w=(y,v=!1)=>{var x,A;if(typeof n=="string"&&n==="normal"){let I=(v?(A=(x=y.tables)==null?void 0:x.os2)==null?void 0:A.sTypoLineGap:0)||0;return h(y,v)-m(y,v)+I/y.unitsPerEm*t}else if(typeof n=="number")return t*n},b=y=>d(y,!1);return{has:y=>{if(y===`
|
|
6
|
+
`)return!0;let v=b(y);return v?(v._trackBrokenChars=[],v.stringToGlyphs(y),v._trackBrokenChars.length?(v._trackBrokenChars=void 0,!1):!0):!1},baseline:(y,v=typeof y>"u"?a[0]:d(y))=>{let x=h(v),A=m(v),I=x-A;return x+(w(v)-I)/2},height:(y,v=typeof y>"u"?a[0]:d(y))=>w(v),measure:(y,v)=>this.measure(d,y,v),getSVG:(y,v)=>this.getSVG(d,y,v)}}patchFontFallbackResolver(t,n){let r=[];t._trackBrokenChars=r;let i=t.stringToGlyphs;return t.stringToGlyphs=(o,...s)=>{let a=i.call(t,o,...s);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 c=f.charToGlyph(l),p=t.unitsPerEm/f.unitsPerEm,d=new en.default.Path;d.unitsPerEm=t.unitsPerEm,d.commands=c.path.commands.map(m=>{let w={...m};for(let b in w)typeof w[b]=="number"&&(w[b]*=p);return w});let h=new en.default.Glyph({...c,advanceWidth:c.advanceWidth*p,xMin:c.xMin*p,xMax:c.xMax*p,yMin:c.yMin*p,yMax:c.yMax*p,path:d});a[u]=h}}return a},()=>{t.stringToGlyphs=i,t._trackBrokenChars=void 0}}measure(t,n,{fontSize:r,letterSpacing:i=0}){let o=t(n),s=this.patchFontFallbackResolver(o,t);try{return o.getAdvanceWidth(n,r,{letterSpacing:i/r})}finally{s()}}getSVG(t,n,{fontSize:r,top:i,left:o,letterSpacing:s=0}){let a=t(n),u=this.patchFontFallbackResolver(a,t);try{return r===0?"":a.getPath(n.replace(/\n/g,""),o,i,r,{letterSpacing:s/r}).toPathData(1)}finally{u()}}};function Yf(e){let t=e.split("_"),n=t[t.length-1];return n===ra?void 0:n}function Qn({width:e,height:t,content:n}){return k("svg",{width:e,height:t,viewBox:`0 0 ${e} ${t}`,xmlns:"http://www.w3.org/2000/svg"},n)}var Dl=He(dl());var M0=["ios","android","windows","macos","web"];function hl(e){return M0.includes(e)}var D0=["portrait","landscape"];function ml(e){return D0.includes(e)}var pl;(function(e){e.fontSize="fontSize",e.lineHeight="lineHeight"})(pl||(pl={}));var F;(function(e){e.rem="rem",e.em="em",e.px="px",e.percent="%",e.vw="vw",e.vh="vh",e.none="<no-css-unit>"})(F||(F={}));function _o(e){return typeof e=="string"}function ko(e){return typeof e=="object"}var To;function g(e){return{kind:"complete",style:e}}function re(e,t={}){let{fractions:n}=t;if(n&&e.includes("/")){let[o="",s=""]=e.split("/",2),a=re(o),u=re(s);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,F.none];switch(i==null?void 0:i[1]){case"rem":return[r,F.rem];case"px":return[r,F.px];case"em":return[r,F.em];case"%":return[r,F.percent];case"vw":return[r,F.vw];case"vh":return[r,F.vh];default:return null}}function qe(e,t,n={}){let r=Ce(t,n);return r===null?null:g({[e]:r})}function yn(e,t,n){let r=Ce(t);return r!==null&&(n[e]=r),n}function bl(e,t){let n=Ce(t);return n===null?null:{[e]:n}}function Ce(e,t={}){if(e===void 0)return null;let n=re(String(e),t);return n?Ke(...n,t):null}function Ke(e,t,n={}){let{isNegative:r,device:i}=n;switch(t){case F.rem:return e*16*(r?-1:1);case F.px:return e*(r?-1:1);case F.percent:return`${r?"-":""}${e}%`;case F.none:return e*(r?-1:1);case F.vw:return i!=null&&i.windowDimensions?i.windowDimensions.width*(e/100):(he("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case F.vh:return i!=null&&i.windowDimensions?i.windowDimensions.height*(e/100):(he("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function Eo(e){let t=re(e);if(!t)return null;let[n,r]=t;switch(r){case F.rem:return n*16;case F.px:return n;default:return null}}var N0={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function Oo(e){return N0[e??""]||"All"}function Po(e){let t="All";return[e.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(r,i)=>(t=Oo(i),"")),t]}function ut(e,t={}){if(e.includes("/")){let n=gl(e,{...t,fractions:!0});if(n)return n}return e[0]==="["&&(e=e.slice(1,-1)),gl(e,t)}function _e(e,t,n={}){let r=ut(t,n);return r===null?null:g({[e]:r})}function gl(e,t={}){if(e==="px")return 1;let n=re(e,t);if(!n)return null;let[r,i]=n;return t.fractions&&(i=F.percent,r*=100),i===F.none&&(r=r/4,i=F.rem),Ke(r,i,t)}function F0(...e){console.warn(...e)}function W0(...e){}var he=typeof process>"u"||((To=process==null?void 0:process.env)===null||To===void 0?void 0:To.JEST_WORKER_ID)===void 0?F0:W0;var $0=[["aspect-square",g({aspectRatio:1})],["aspect-video",g({aspectRatio:16/9})],["items-center",g({alignItems:"center"})],["items-start",g({alignItems:"flex-start"})],["items-end",g({alignItems:"flex-end"})],["items-baseline",g({alignItems:"baseline"})],["items-stretch",g({alignItems:"stretch"})],["justify-start",g({justifyContent:"flex-start"})],["justify-end",g({justifyContent:"flex-end"})],["justify-center",g({justifyContent:"center"})],["justify-between",g({justifyContent:"space-between"})],["justify-around",g({justifyContent:"space-around"})],["justify-evenly",g({justifyContent:"space-evenly"})],["content-start",g({alignContent:"flex-start"})],["content-end",g({alignContent:"flex-end"})],["content-between",g({alignContent:"space-between"})],["content-around",g({alignContent:"space-around"})],["content-stretch",g({alignContent:"stretch"})],["content-center",g({alignContent:"center"})],["self-auto",g({alignSelf:"auto"})],["self-start",g({alignSelf:"flex-start"})],["self-end",g({alignSelf:"flex-end"})],["self-center",g({alignSelf:"center"})],["self-stretch",g({alignSelf:"stretch"})],["self-baseline",g({alignSelf:"baseline"})],["direction-inherit",g({direction:"inherit"})],["direction-ltr",g({direction:"ltr"})],["direction-rtl",g({direction:"rtl"})],["hidden",g({display:"none"})],["flex",g({display:"flex"})],["flex-row",g({flexDirection:"row"})],["flex-row-reverse",g({flexDirection:"row-reverse"})],["flex-col",g({flexDirection:"column"})],["flex-col-reverse",g({flexDirection:"column-reverse"})],["flex-wrap",g({flexWrap:"wrap"})],["flex-wrap-reverse",g({flexWrap:"wrap-reverse"})],["flex-nowrap",g({flexWrap:"nowrap"})],["flex-auto",g({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",g({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",g({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",g({overflow:"hidden"})],["overflow-visible",g({overflow:"visible"})],["overflow-scroll",g({overflow:"scroll"})],["absolute",g({position:"absolute"})],["relative",g({position:"relative"})],["italic",g({fontStyle:"italic"})],["not-italic",g({fontStyle:"normal"})],["oldstyle-nums",wr("oldstyle-nums")],["small-caps",wr("small-caps")],["lining-nums",wr("lining-nums")],["tabular-nums",wr("tabular-nums")],["proportional-nums",wr("proportional-nums")],["font-thin",g({fontWeight:"100"})],["font-100",g({fontWeight:"100"})],["font-extralight",g({fontWeight:"200"})],["font-200",g({fontWeight:"200"})],["font-light",g({fontWeight:"300"})],["font-300",g({fontWeight:"300"})],["font-normal",g({fontWeight:"normal"})],["font-400",g({fontWeight:"400"})],["font-medium",g({fontWeight:"500"})],["font-500",g({fontWeight:"500"})],["font-semibold",g({fontWeight:"600"})],["font-600",g({fontWeight:"600"})],["font-bold",g({fontWeight:"bold"})],["font-700",g({fontWeight:"700"})],["font-extrabold",g({fontWeight:"800"})],["font-800",g({fontWeight:"800"})],["font-black",g({fontWeight:"900"})],["font-900",g({fontWeight:"900"})],["include-font-padding",g({includeFontPadding:!0})],["remove-font-padding",g({includeFontPadding:!1})],["max-w-none",g({maxWidth:"99999%"})],["text-left",g({textAlign:"left"})],["text-center",g({textAlign:"center"})],["text-right",g({textAlign:"right"})],["text-justify",g({textAlign:"justify"})],["text-auto",g({textAlign:"auto"})],["underline",g({textDecorationLine:"underline"})],["line-through",g({textDecorationLine:"line-through"})],["no-underline",g({textDecorationLine:"none"})],["uppercase",g({textTransform:"uppercase"})],["lowercase",g({textTransform:"lowercase"})],["capitalize",g({textTransform:"capitalize"})],["normal-case",g({textTransform:"none"})],["w-auto",g({width:"auto"})],["h-auto",g({height:"auto"})],["shadow-sm",g({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.025,elevation:1})],["shadow",g({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.075,elevation:2})],["shadow-md",g({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:.125,elevation:3})],["shadow-lg",g({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.15,shadowRadius:8,elevation:8})],["shadow-xl",g({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.19,shadowRadius:20,elevation:12})],["shadow-2xl",g({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.25,shadowRadius:30,elevation:16})],["shadow-none",g({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],Ao=$0;function wr(e){return{kind:"dependent",complete(t){(!t.fontVariant||!Array.isArray(t.fontVariant))&&(t.fontVariant=[]),t.fontVariant.push(e)}}}var Sr=class{constructor(t){this.ir=new Map(Ao),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...Ao,...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)}};function Io(e,t,n={}){let r=t==null?void 0:t[e];if(!r)return _e("fontSize",e,n);if(typeof r=="string")return qe("fontSize",r);let i={},[o,s]=r,a=bl("fontSize",o);if(a&&(i=a),typeof s=="string")return g(yn("lineHeight",vl(s,i),i));let{lineHeight:u,letterSpacing:l}=s;return u&&yn("lineHeight",vl(u,i),i),l&&yn("letterSpacing",l,i),g(i)}function vl(e,t){let n=re(e);if(n){let[r,i]=n;if((i===F.none||i===F.em)&&typeof t.fontSize=="number")return t.fontSize*r}return e}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=re(r);if(!i)return null;let[o,s]=i;if(s===F.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*o}};let a=Ke(o,s);return a!==null?g({lineHeight:a}):null}function Lo(e,t,n,r,i){let o="";if(r[0]==="[")o=r.slice(1,-1);else{let l=i==null?void 0:i[r];if(l)o=l;else{let f=ut(r);return f&&typeof f=="number"?yl(f,F.px,t,e):null}}if(o==="auto")return xl(t,e,"auto");let s=re(o);if(!s)return null;let[a,u]=s;return n&&(a=-a),yl(a,u,t,e)}function yl(e,t,n,r){let i=Ke(e,t);return i===null?null:xl(n,r,i)}function xl(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}}function Co(e){if(!e)return{};let t=Object.entries(e).reduce((i,[o,s])=>{let a=[0,1/0,0],u=typeof s=="string"?{min:s}:s,l=u.min?Eo(u.min):0;l===null?he(`invalid screen config value: ${o}->min: ${u.min}`):a[0]=l;let f=u.max?Eo(u.max):1/0;return f===null?he(`invalid screen config value: ${o}->max: ${u.max}`):a[1]=f,i[o]=a,i},{}),n=Object.values(t);n.sort((i,o)=>{let[s,a]=i,[u,l]=o;return a===1/0||l===1/0?s-u:a-l});let r=0;return n.forEach(i=>i[2]=r++),t}function Mo(e,t){let n=t==null?void 0:t[e];if(!n)return null;if(typeof n=="string")return g({fontFamily:n});let r=n[0];return r?g({fontFamily:r}):null}function lt(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=_l(t,n),!i)return null;if(r){let o=Number(r);if(!Number.isNaN(o))return i=wl(i,o/100),g({[xn[e].color]:i})}return{kind:"dependent",complete(o){let s=xn[e].opacity,a=o[s];typeof a=="number"&&(i=wl(i,a)),o[xn[e].color]=i}}}function _r(e,t){let n=parseInt(t,10);if(Number.isNaN(n))return null;let r=n/100;return{kind:"complete",style:{[xn[e].opacity]:r}}}function wl(e,t){return e.startsWith("#")?e=q0(e):e.startsWith("rgb(")&&(e=e.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),e.replace(/, ?\d*\.?(\d+)\)$/,`, ${t})`)}function Sl(e){for(let t in e)t.startsWith("__opacity_")&&delete e[t]}var xn={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 q0(e){let t=e;e=e.replace(B0,(s,a,u,l)=>a+a+u+u+l+l);let n=z0.exec(e);if(!n)return he(`invalid config hex color value: ${t}`),"rgba(0, 0, 0, 1)";let r=parseInt(n[1],16),i=parseInt(n[2],16),o=parseInt(n[3],16);return`rgba(${r}, ${i}, ${o}, 1)`}function _l(e,t){let n=t[e];if(_o(n))return n;if(ko(n)&&_o(n.DEFAULT))return n.DEFAULT;let[r="",...i]=e.split("-");for(;r!==e;){let o=t[r];if(ko(o))return _l(i.join("-"),o);if(i.length===0)return"";r=`${r}-${i.shift()}`}return""}var B0=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,z0=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function Tl(e,t){let[n,r]=Po(e);if(n.match(/^(-?(\d)+)?$/))return U0(n,r,t==null?void 0:t.borderWidth);if(n=n.replace(/^-/,""),["dashed","solid","dotted"].includes(n))return g({borderStyle:n});let o="border";switch(r){case"Bottom":o="borderBottom";break;case"Top":o="borderTop";break;case"Left":o="borderLeft";break;case"Right":o="borderRight";break}let s=lt(o,n,t==null?void 0:t.borderColor);if(s)return s;let a=`border${r==="All"?"":r}Width`;n=n.replace(/^-/,"");let u=n.slice(1,-1),l=_e(a,u);return typeof(l==null?void 0:l.style[a])!="number"?null:l}function U0(e,t,n){if(!n)return null;e=e.replace(/^-/,"");let i=n[e===""?"DEFAULT":e];if(i===void 0)return null;let o=`border${t==="All"?"":t}Width`;return qe(o,i)}function El(e,t){if(!t)return null;let[n,r]=Po(e);n=n.replace(/^-/,""),n===""&&(n="DEFAULT");let i=`border${r==="All"?"":r}Radius`,o=t[n];if(o)return kl(qe(i,o));let s=_e(i,n);return typeof(s==null?void 0:s.style[i])!="number"?null:kl(s)}function kl(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}function Tt(e,t,n,r){let i=null;e==="inset"&&(t=t.replace(/^(x|y)-/,(a,u)=>(i=u==="x"?"x":"y","")));let o=r==null?void 0:r[t];if(o){let a=Ce(o,{isNegative:n});if(a!==null)return Ol(e,i,a)}let s=ut(t,{isNegative:n});return s!==null?Ol(e,i,s):null}function Ol(e,t,n){if(e!=="inset")return g({[e]:n});switch(t){case null:return g({top:n,left:n,right:n,bottom:n});case"y":return g({top:n,bottom:n});case"x":return g({left:n,right:n})}}function kr(e,t,n){var r;t=t.replace(/^-/,"");let i=t===""?"DEFAULT":t,o=Number((r=n==null?void 0:n[i])!==null&&r!==void 0?r:t);return Number.isNaN(o)?null:g({[`flex${e}`]:o})}function Pl(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 g({flexGrow:Number(e),flexBasis:"0%"});let i=e.match(/^(\d+)\s+(\d+)$/);if(i)return g({flexGrow:Number(i[1]),flexShrink:Number(i[2])});if(i=e.match(/^(\d+)\s+([^ ]+)$/),i){let o=Ce((n=i[2])!==null&&n!==void 0?n:"");return o?g({flexGrow:Number(i[1]),flexBasis:o}):null}if(i=e.match(/^(\d+)\s+(\d+)\s+(.+)$/),i){let o=Ce((r=i[3])!==null&&r!==void 0?r:"");return o?g({flexGrow:Number(i[1]),flexShrink:Number(i[2]),flexBasis:o}):null}return null}function Do(e,t,n={},r){let i=r==null?void 0:r[t];return i!==void 0?qe(e,i,n):_e(e,t,n)}function Tr(e,t,n={},r){let i=Ce(r==null?void 0:r[t],n);return i?g({[e]:i}):(t==="screen"&&(t=e.includes("Width")?"100vw":"100vh"),_e(e,t,n))}function Al(e,t,n){let r=n==null?void 0:n[e];if(r){let i=re(r,{isNegative:t});if(!i)return null;let[o,s]=i;if(s===F.em)return G0(o);if(s===F.percent)return he("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=Ke(o,s,{isNegative:t});return a!==null?g({letterSpacing:a}):null}return _e("letterSpacing",e,{isNegative:t})}function G0(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}}}function Il(e,t){let n=t==null?void 0:t[e];if(n){let i=re(String(n));if(i)return g({opacity:i[0]})}let r=re(e);return r?g({opacity:r[0]/100}):null}function Rl(e){let t=parseInt(e,10);return Number.isNaN(t)?null:{kind:"complete",style:{shadowOpacity:t/100}}}function Ll(e){if(e.includes("/")){let[n="",r=""]=e.split("/",2),i=No(n),o=No(r);return i===null||o===null?null:{kind:"complete",style:{shadowOffset:{width:i,height:o}}}}let t=No(e);return t===null?null:{kind:"complete",style:{shadowOffset:{width:t,height:t}}}}function No(e){let t=ut(e);return typeof t=="number"?t:null}var Et=class{constructor(t,n={},r,i,o){var s,a,u,l,f,c;this.config=n,this.cache=r,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=i;let p=t.trim().split(":"),d=[];p.length===1?this.string=t:(this.string=(s=p.pop())!==null&&s!==void 0?s:"",d=p),this.char=this.string[0];let h=Co((a=this.config.theme)===null||a===void 0?void 0:a.screens);for(let m of d)if(h[m]){let w=(u=h[m])===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[T,y]=(c=h[m])!==null&&c!==void 0?c:[0,0];(b<=T||b>y)&&(this.isNull=!0)}else this.isNull=!0}else hl(m)?this.isNull=m!==o:ml(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,o;let s=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=Oo(u[1]),c=Lo(l,f,this.isNegative,this.rest,(r=this.config.theme)===null||r===void 0?void 0:r[l]);if(c)return c}}}if(this.consumePeeked("h-")&&(a=Do("height",this.rest,this.context,s==null?void 0:s.height),a)||this.consumePeeked("w-")&&(a=Do("width",this.rest,this.context,s==null?void 0:s.width),a)||this.consumePeeked("min-w-")&&(a=Tr("minWidth",this.rest,this.context,s==null?void 0:s.minWidth),a)||this.consumePeeked("min-h-")&&(a=Tr("minHeight",this.rest,this.context,s==null?void 0:s.minHeight),a)||this.consumePeeked("max-w-")&&(a=Tr("maxWidth",this.rest,this.context,s==null?void 0:s.maxWidth),a)||this.consumePeeked("max-h-")&&(a=Tr("maxHeight",this.rest,this.context,s==null?void 0:s.maxHeight),a)||this.consumePeeked("leading-")&&(a=Ro(this.rest,s==null?void 0:s.lineHeight),a)||this.consumePeeked("text-")&&(a=Io(this.rest,s==null?void 0:s.fontSize,this.context),a||(a=lt("text",this.rest,s==null?void 0:s.textColor),a)||this.consumePeeked("opacity-")&&(a=_r("text",this.rest),a))||this.consumePeeked("font-")&&(a=Mo(this.rest,s==null?void 0:s.fontFamily),a)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&he("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),a=qe("aspectRatio",this.rest,{fractions:!0}),a)||this.consumePeeked("tint-")&&(a=lt("tint",this.rest,s==null?void 0:s.colors),a)||this.consumePeeked("bg-")&&(a=lt("bg",this.rest,s==null?void 0:s.backgroundColor),a||this.consumePeeked("opacity-")&&(a=_r("bg",this.rest),a))||this.consumePeeked("border")&&(a=Tl(this.rest,s),a||this.consumePeeked("-opacity-")&&(a=_r("border",this.rest),a))||this.consumePeeked("rounded")&&(a=El(this.rest,s==null?void 0:s.borderRadius),a)||this.consumePeeked("bottom-")&&(a=Tt("bottom",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("top-")&&(a=Tt("top",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("left-")&&(a=Tt("left",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("right-")&&(a=Tt("right",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("inset-")&&(a=Tt("inset",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?a=kr("Grow",this.rest,s==null?void 0:s.flexGrow):this.consumePeeked("shrink")?a=kr("Shrink",this.rest,s==null?void 0:s.flexShrink):a=Pl(this.rest,s==null?void 0:s.flex),a)||this.consumePeeked("grow")&&(a=kr("Grow",this.rest,s==null?void 0:s.flexGrow),a)||this.consumePeeked("shrink")&&(a=kr("Shrink",this.rest,s==null?void 0:s.flexShrink),a)||this.consumePeeked("shadow-color-opacity-")&&(a=_r("shadow",this.rest),a)||this.consumePeeked("shadow-opacity-")&&(a=Rl(this.rest),a)||this.consumePeeked("shadow-offset-")&&(a=Ll(this.rest),a)||this.consumePeeked("shadow-radius-")&&(a=_e("shadowRadius",this.rest),a)||this.consumePeeked("shadow-")&&(a=lt("shadow",this.rest,s==null?void 0:s.colors),a))return a;if(this.consumePeeked("elevation-")){let u=parseInt(this.rest,10);if(!Number.isNaN(u))return g({elevation:u})}if(this.consumePeeked("opacity-")&&(a=Il(this.rest,s==null?void 0:s.opacity),a)||this.consumePeeked("tracking-")&&(a=Al(this.rest,this.isNegative,s==null?void 0:s.letterSpacing),a))return a;if(this.consumePeeked("z-")){let u=Number((o=(i=s==null?void 0:s.zIndex)===null||i===void 0?void 0:i[this.rest])!==null&&o!==void 0?o:this.rest);if(!Number.isNaN(u))return g({zIndex:u})}return he(`\`${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,[,o="",s="",a=""]=r,u=s==="w"?i.width:i.height,l=re(a,this.context);if(l===null)return this.isNull=!0,!0;let[f,c]=l;return c!=="px"&&(this.isNull=!0),(o==="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}};function Cl(e){let t=[],n=null;return e.forEach(r=>{if(typeof r=="string")t=[...t,...Fo(r)];else if(Array.isArray(r))t=[...t,...r.flatMap(Fo)];else if(typeof r=="object"&&r!==null)for(let[i,o]of Object.entries(r))typeof o=="boolean"?t=[...t,...o?Fo(i):[]]:n?n[i]=o:n={[i]:o}}),[t.filter(Boolean).filter(j0),n]}function Fo(e){return e.trim().split(/\s+/)}function j0(e,t,n){return n.indexOf(e)===t}function Ml(e){var t;return(t=e==null?void 0:e.reduce((n,r)=>({...n,...H0(r.handler)}),{}))!==null&&t!==void 0?t:{}}function H0(e){let t={};return e({addUtilities:n=>{t=n},...V0}),t}function Me(e){throw new Error(`tailwindcss plugin function argument object prop "${e}" not implemented`)}var V0={addComponents:Me,addBase:Me,addVariant:Me,e:Me,prefix:Me,theme:Me,variants:Me,config:Me,corePlugins:Me,matchUtilities:Me,postcss:null};function Nl(e,t){let n=(0,Dl.default)(Y0(e)),r={},i=Ml(n.plugins),o={},s=Object.entries(i).map(([h,m])=>typeof m=="string"?(o[h]=m,[h,{kind:"null"}]):[h,g(m)]).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 m=new Sr(s);return l[u]=m,m}function c(...h){let m=f(),w={},b=[],T=[],[y,v]=Cl(h),x=y.join(" "),A=m.getStyle(x);if(A)return{...A,...v||{}};for(let I of y){let L=m.getIr(I);if(!L&&I in o){let ie=c(o[I]);m.setIr(I,g(ie)),w={...w,...ie};continue}switch(L=new Et(I,n,m,r,t).parse(),L.kind){case"complete":w={...w,...L.style},m.setIr(I,L);break;case"dependent":b.push(L);break;case"ordered":T.push(L);break;case"null":m.setIr(I,L);break}}if(T.length>0){T.sort((I,L)=>I.order-L.order);for(let I of T)switch(I.styleIr.kind){case"complete":w={...w,...I.styleIr.style};break;case"dependent":b.push(I.styleIr);break}}if(b.length>0){for(let I of b){let L=I.complete(w);L&&he(L)}Sl(w)}return x!==""&&m.setStyle(x,w),v&&(w={...w,...v}),w}function p(h){let m=c(h.split(/\s+/g).map(w=>w.replace(/^(bg|text|border)-/,"")).map(w=>`bg-${w}`).join(" "));return typeof m.backgroundColor=="string"?m.backgroundColor:void 0}let d=(h,...m)=>{let w="";return h.forEach((b,T)=>{var y;w+=b+((y=m[T])!==null&&y!==void 0?y:"")}),c(w)};return d.style=c,d.color=p,d.prefixMatch=(...h)=>{let m=h.sort().join(":"),w=f(),b=w.getPrefixMatch(m);if(b!==void 0)return b;let v=new Et(`${m}:flex`,n,w,r,t).parse().kind!=="null";return w.setPrefixMatch(m,v),v},d.setWindowDimensions=h=>{r.windowDimensions=h,u=a()},d.setFontScale=h=>{r.fontScale=h,u=a()},d.setPixelDensity=h=>{r.pixelDensity=h,u=a()},d.setColorScheme=h=>{r.colorScheme=h,u=a()},d}function Y0(e){return{...e,content:["_no_warnings_please"]}}var Q0={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 K0(e){return Nl({...e,plugins:[...(e==null?void 0:e.plugins)??[],Q0]},"web")}var wn;function Wo({width:e,height:t,config:n}){return wn||(wn=K0(n)),wn.setWindowDimensions({width:+e,height:+t}),wn}var $o=new WeakMap;async function qo(e,t){let n=await Ne();if(!n||!n.Node)throw new Error("Satori is not initialized: expect `yoga` to be loaded, got "+n);t.fonts=t.fonts||[];let r;$o.has(t.fonts)?r=$o.get(t.fonts):$o.set(t.fonts,r=new Gt(t.fonts));let i="width"in t?t.width:void 0,o="height"in t?t.height:void 0,s=n.Node.create();i&&s.setWidth(i),o&&s.setHeight(o),s.setFlexDirection(n.FLEX_DIRECTION_ROW),s.setFlexWrap(n.WRAP_WRAP),s.setAlignContent(n.ALIGN_AUTO),s.setAlignItems(n.ALIGN_FLEX_START),s.setJustifyContent(n.JUSTIFY_FLEX_START),s.setOverflow(n.OVERFLOW_HIDDEN);let a={...t.graphemeImages},u=new Set;Re.clear(),Nt.clear(),await bs(e);let l=Ut(e,{id:"id",parentStyle:{},inheritedStyle:{fontSize:16,fontWeight:"normal",fontFamily:"serif",fontStyle:"normal",lineHeight:"normal",color:"black",opacity:1,whiteSpace:"normal",_viewportWidth:i,_viewportHeight:o},parent:s,font:r,embedFont:t.embedFont,debug:t.debug,graphemeImages:a,canLoadAdditionalAssets:!!t.loadAdditionalAsset,onNodeDetected:t.onNodeDetected,getTwStyles:(h,m)=>{let b={...Wo({width:i,height:o,config:t.tailwindConfig})([h])};return typeof b.lineHeight=="number"&&(b.lineHeight=b.lineHeight/(+b.fontSize||m.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=J0(f),m=[],w={};await Promise.all(Object.entries(h).flatMap(([b,T])=>T.map(y=>{let v=`${b}_${y}`;return u.has(v)?null:(u.add(v),t.loadAdditionalAsset(b,y).then(x=>{typeof x=="string"?w[y]=x:x&&(Array.isArray(x)?m.push(...x):m.push(x))}))}))),r.addFonts(m),Object.assign(a,w)}await l.next(),s.calculateLayout(i,o,n.DIRECTION_LTR);let c=(await l.next([0,0])).value,p=s.getComputedWidth(),d=s.getComputedHeight();return s.freeRecursive(),Qn({width:p,height:d,content:c})}function J0(e){let t={},n={};for(let{word:r,locale:i}of e){let o=ea(r,i).join("|");n[o]=n[o]||"",n[o]+=r}return Object.keys(n).forEach(r=>{t[r]=t[r]||[],r==="emoji"?t[r].push(...Fl(le(n[r],"grapheme"))):(t[r][0]=t[r][0]||"",t[r][0]+=Fl(le(n[r],"grapheme",r==="unknown"?void 0:r)).join(""))}),t}function Fl(e){return Array.from(new Set(e))}0&&(module.exports={init});
|
|
7
7
|
//# sourceMappingURL=index.cjs.map
|