satori 0.31.0 → 0.32.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/README.md +6 -0
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/standalone.cjs +7 -7
- package/dist/standalone.cjs.map +1 -1
- package/dist/standalone.js +7 -7
- package/dist/standalone.js.map +1 -1
- package/package.json +1 -1
package/dist/standalone.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var Fc=Object.create;var qn=Object.defineProperty;var Wc=Object.getOwnPropertyDescriptor;var Dc=Object.getOwnPropertyNames;var $c=Object.getPrototypeOf,Bc=Object.prototype.hasOwnProperty;var ir=(e,t)=>()=>(e&&(t=e(e=0)),t);var q=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),zn=(e,t)=>{for(var r in t)qn(e,r,{get:t[r],enumerable:!0})},wa=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Dc(t))!Bc.call(e,i)&&i!==r&&qn(e,i,{get:()=>t[i],enumerable:!(n=Wc(t,i))||n.enumerable});return e};var Uc=(e,t,r)=>(r=e!=null?Fc($c(e)):{},wa(t||!e||!e.__esModule?qn(r,"default",{value:e,enumerable:!0}):r,e)),Gn=e=>wa(qn({},"__esModule",{value:!0}),e);var Ft,Fa,Wa,zr,qi,Wt,Sr,td,Hn,zi,_r,Tr,Gi,Da,ji,Vi,wt,Hi,rd,$a,Yn=ir(()=>{Ft=function(e){return e[e.Auto=0]="Auto",e[e.FlexStart=1]="FlexStart",e[e.Center=2]="Center",e[e.FlexEnd=3]="FlexEnd",e[e.Stretch=4]="Stretch",e[e.Baseline=5]="Baseline",e[e.SpaceBetween=6]="SpaceBetween",e[e.SpaceAround=7]="SpaceAround",e[e.SpaceEvenly=8]="SpaceEvenly",e}({}),Fa=function(e){return e[e.BorderBox=0]="BorderBox",e[e.ContentBox=1]="ContentBox",e}({}),Wa=function(e){return e[e.Width=0]="Width",e[e.Height=1]="Height",e}({}),zr=function(e){return e[e.Inherit=0]="Inherit",e[e.LTR=1]="LTR",e[e.RTL=2]="RTL",e}({}),qi=function(e){return e[e.Flex=0]="Flex",e[e.None=1]="None",e[e.Contents=2]="Contents",e}({}),Wt=function(e){return e[e.Left=0]="Left",e[e.Top=1]="Top",e[e.Right=2]="Right",e[e.Bottom=3]="Bottom",e[e.Start=4]="Start",e[e.End=5]="End",e[e.Horizontal=6]="Horizontal",e[e.Vertical=7]="Vertical",e[e.All=8]="All",e}({}),Sr=function(e){return e[e.None=0]="None",e[e.StretchFlexBasis=1]="StretchFlexBasis",e[e.AbsolutePositionWithoutInsetsExcludesPadding=2]="AbsolutePositionWithoutInsetsExcludesPadding",e[e.AbsolutePercentAgainstInnerSize=4]="AbsolutePercentAgainstInnerSize",e[e.All=2147483647]="All",e[e.Classic=2147483646]="Classic",e}({}),td=function(e){return e[e.WebFlexBasis=0]="WebFlexBasis",e}({}),Hn=function(e){return e[e.Column=0]="Column",e[e.ColumnReverse=1]="ColumnReverse",e[e.Row=2]="Row",e[e.RowReverse=3]="RowReverse",e}({}),zi=function(e){return e[e.Column=0]="Column",e[e.Row=1]="Row",e[e.All=2]="All",e}({}),_r=function(e){return e[e.FlexStart=0]="FlexStart",e[e.Center=1]="Center",e[e.FlexEnd=2]="FlexEnd",e[e.SpaceBetween=3]="SpaceBetween",e[e.SpaceAround=4]="SpaceAround",e[e.SpaceEvenly=5]="SpaceEvenly",e}({}),Tr=function(e){return e[e.Error=0]="Error",e[e.Warn=1]="Warn",e[e.Info=2]="Info",e[e.Debug=3]="Debug",e[e.Verbose=4]="Verbose",e[e.Fatal=5]="Fatal",e}({}),Gi=function(e){return e[e.Undefined=0]="Undefined",e[e.Exactly=1]="Exactly",e[e.AtMost=2]="AtMost",e}({}),Da=function(e){return e[e.Default=0]="Default",e[e.Text=1]="Text",e}({}),ji=function(e){return e[e.Visible=0]="Visible",e[e.Hidden=1]="Hidden",e[e.Scroll=2]="Scroll",e}({}),Vi=function(e){return e[e.Static=0]="Static",e[e.Relative=1]="Relative",e[e.Absolute=2]="Absolute",e}({}),wt=function(e){return e[e.Undefined=0]="Undefined",e[e.Point=1]="Point",e[e.Percent=2]="Percent",e[e.Auto=3]="Auto",e}({}),Hi=function(e){return e[e.NoWrap=0]="NoWrap",e[e.Wrap=1]="Wrap",e[e.WrapReverse=2]="WrapReverse",e}({}),rd={ALIGN_AUTO:Ft.Auto,ALIGN_FLEX_START:Ft.FlexStart,ALIGN_CENTER:Ft.Center,ALIGN_FLEX_END:Ft.FlexEnd,ALIGN_STRETCH:Ft.Stretch,ALIGN_BASELINE:Ft.Baseline,ALIGN_SPACE_BETWEEN:Ft.SpaceBetween,ALIGN_SPACE_AROUND:Ft.SpaceAround,ALIGN_SPACE_EVENLY:Ft.SpaceEvenly,BOX_SIZING_BORDER_BOX:Fa.BorderBox,BOX_SIZING_CONTENT_BOX:Fa.ContentBox,DIMENSION_WIDTH:Wa.Width,DIMENSION_HEIGHT:Wa.Height,DIRECTION_INHERIT:zr.Inherit,DIRECTION_LTR:zr.LTR,DIRECTION_RTL:zr.RTL,DISPLAY_FLEX:qi.Flex,DISPLAY_NONE:qi.None,DISPLAY_CONTENTS:qi.Contents,EDGE_LEFT:Wt.Left,EDGE_TOP:Wt.Top,EDGE_RIGHT:Wt.Right,EDGE_BOTTOM:Wt.Bottom,EDGE_START:Wt.Start,EDGE_END:Wt.End,EDGE_HORIZONTAL:Wt.Horizontal,EDGE_VERTICAL:Wt.Vertical,EDGE_ALL:Wt.All,ERRATA_NONE:Sr.None,ERRATA_STRETCH_FLEX_BASIS:Sr.StretchFlexBasis,ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING:Sr.AbsolutePositionWithoutInsetsExcludesPadding,ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE:Sr.AbsolutePercentAgainstInnerSize,ERRATA_ALL:Sr.All,ERRATA_CLASSIC:Sr.Classic,EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS:td.WebFlexBasis,FLEX_DIRECTION_COLUMN:Hn.Column,FLEX_DIRECTION_COLUMN_REVERSE:Hn.ColumnReverse,FLEX_DIRECTION_ROW:Hn.Row,FLEX_DIRECTION_ROW_REVERSE:Hn.RowReverse,GUTTER_COLUMN:zi.Column,GUTTER_ROW:zi.Row,GUTTER_ALL:zi.All,JUSTIFY_FLEX_START:_r.FlexStart,JUSTIFY_CENTER:_r.Center,JUSTIFY_FLEX_END:_r.FlexEnd,JUSTIFY_SPACE_BETWEEN:_r.SpaceBetween,JUSTIFY_SPACE_AROUND:_r.SpaceAround,JUSTIFY_SPACE_EVENLY:_r.SpaceEvenly,LOG_LEVEL_ERROR:Tr.Error,LOG_LEVEL_WARN:Tr.Warn,LOG_LEVEL_INFO:Tr.Info,LOG_LEVEL_DEBUG:Tr.Debug,LOG_LEVEL_VERBOSE:Tr.Verbose,LOG_LEVEL_FATAL:Tr.Fatal,MEASURE_MODE_UNDEFINED:Gi.Undefined,MEASURE_MODE_EXACTLY:Gi.Exactly,MEASURE_MODE_AT_MOST:Gi.AtMost,NODE_TYPE_DEFAULT:Da.Default,NODE_TYPE_TEXT:Da.Text,OVERFLOW_VISIBLE:ji.Visible,OVERFLOW_HIDDEN:ji.Hidden,OVERFLOW_SCROLL:ji.Scroll,POSITION_TYPE_STATIC:Vi.Static,POSITION_TYPE_RELATIVE:Vi.Relative,POSITION_TYPE_ABSOLUTE:Vi.Absolute,UNIT_UNDEFINED:wt.Undefined,UNIT_POINT:wt.Point,UNIT_PERCENT:wt.Percent,UNIT_AUTO:wt.Auto,WRAP_NO_WRAP:Hi.NoWrap,WRAP_WRAP:Hi.Wrap,WRAP_WRAP_REVERSE:Hi.WrapReverse},$a=rd});function Yi(e){function t(i,o,s){let a=i[o];i[o]=function(){for(var u=arguments.length,l=new Array(u),f=0;f<u;f++)l[f]=arguments[f];return s.call(this,a,...l)}}for(let i of["setPosition","setMargin","setFlexBasis","setWidth","setHeight","setMinWidth","setMinHeight","setMaxWidth","setMaxHeight","setPadding","setGap"]){let o={[wt.Point]:e.Node.prototype[i],[wt.Percent]:e.Node.prototype[`${i}Percent`],[wt.Auto]:e.Node.prototype[`${i}Auto`]};t(e.Node.prototype,i,function(s){for(var a=arguments.length,u=new Array(a>1?a-1:0),l=1;l<a;l++)u[l-1]=arguments[l];let f=u.pop(),p,m;if(f==="auto")p=wt.Auto,m=void 0;else if(typeof f=="object")p=f.unit,m=f.valueOf();else if(p=typeof f=="string"&&f.endsWith("%")?wt.Percent:wt.Point,m=parseFloat(f),f!==void 0&&!Number.isNaN(f)&&Number.isNaN(m))throw new Error(`Invalid value ${f} for ${i}`);if(!o[p])throw new Error(`Failed to execute "${i}": Unsupported unit '${f}'`);return m!==void 0?o[p].call(this,...u,m):o[p].call(this,...u)})}function r(i){return e.MeasureCallback.implement({measure:function(){let{width:o,height:s}=i(...arguments);return{width:o??NaN,height:s??NaN}}})}t(e.Node.prototype,"setMeasureFunc",function(i,o){return o?i.call(this,r(o)):this.unsetMeasureFunc()});function n(i){return e.DirtiedCallback.implement({dirtied:i})}return t(e.Node.prototype,"setDirtiedFunc",function(i,o){i.call(this,n(o))}),t(e.Config.prototype,"free",function(){e.Config.destroy(this)}),t(e.Node,"create",(i,o)=>o?e.Node.createWithConfig(o):e.Node.createDefault()),t(e.Node.prototype,"free",function(){e.Node.destroy(this)}),t(e.Node.prototype,"freeRecursive",function(){for(let i=0,o=this.getChildCount();i<o;++i)this.getChild(0).freeRecursive();this.free()}),t(e.Node.prototype,"calculateLayout",function(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:NaN,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:zr.LTR;return i.call(this,o,s,a)}),{Config:e.Config,Node:e.Node,...$a}}var Ba=ir(()=>{Yn();Yn()});var qa={};zn(qa,{default:()=>nd});function nd(e){e=e||{};var t;t||(t=typeof e<"u"?e:{});var r,n;t.ready=new Promise(function(c,d){r=c,n=d});var i=Object.assign({},t),o="";typeof document<"u"&&document.currentScript&&(o=document.currentScript.src),Ua&&(o=Ua),o.indexOf("blob:")!==0?o=o.substr(0,o.replace(/[?#].*/,"").lastIndexOf("/")+1):o="";var s=t.print||console.log.bind(console),a=t.printErr||console.warn.bind(console);Object.assign(t,i),i=null;var u;t.wasmBinary&&(u=t.wasmBinary);var l=t.noExitRuntime||!0;typeof WebAssembly!="object"&&ee("no native wasm support detected");var f,p=!1;function m(c,d,b){b=d+b;for(var y="";!(d>=b);){var S=c[d++];if(!S)break;if(S&128){var P=c[d++]&63;if((S&224)==192)y+=String.fromCharCode((S&31)<<6|P);else{var A=c[d++]&63;S=(S&240)==224?(S&15)<<12|P<<6|A:(S&7)<<18|P<<12|A<<6|c[d++]&63,65536>S?y+=String.fromCharCode(S):(S-=65536,y+=String.fromCharCode(55296|S>>10,56320|S&1023))}}else y+=String.fromCharCode(S)}return y}var h,g,v,w,_,O,x,E,T;function I(){var c=f.buffer;h=c,t.HEAP8=g=new Int8Array(c),t.HEAP16=w=new Int16Array(c),t.HEAP32=O=new Int32Array(c),t.HEAPU8=v=new Uint8Array(c),t.HEAPU16=_=new Uint16Array(c),t.HEAPU32=x=new Uint32Array(c),t.HEAPF32=E=new Float32Array(c),t.HEAPF64=T=new Float64Array(c)}var N,W=[],G=[],J=[];function fe(){var c=t.preRun.shift();W.unshift(c)}var be=0,he=null,ue=null;function ee(c){throw t.onAbort&&t.onAbort(c),c="Aborted("+c+")",a(c),p=!0,c=new WebAssembly.RuntimeError(c+". Build with -sASSERTIONS for more info."),n(c),c}function ie(c){return c.startsWith("data:application/octet-stream;base64,")}var Pe="";if(!ie(Pe)){var xe=Pe;Pe=t.locateFile?t.locateFile(xe,o):o+xe}function Re(){var c=Pe;try{if(c==Pe&&u)return new Uint8Array(u);if(ie(c))try{var d=Mc(c.slice(37)),b=new Uint8Array(d.length);for(c=0;c<d.length;++c)b[c]=d.charCodeAt(c);var y=b}catch{throw Error("Converting base64 string to bytes failed.")}else y=void 0;var S=y;if(S)return S;throw"both async and sync fetching of the wasm failed"}catch(P){ee(P)}}function Oe(){return u||typeof fetch!="function"?Promise.resolve().then(function(){return Re()}):fetch(Pe,{credentials:"same-origin"}).then(function(c){if(!c.ok)throw"failed to load wasm binary file at '"+Pe+"'";return c.arrayBuffer()}).catch(function(){return Re()})}function Ye(c){for(;0<c.length;)c.shift()(t)}function Me(c){if(c===void 0)return"_unknown";c=c.replace(/[^a-zA-Z0-9_]/g,"$");var d=c.charCodeAt(0);return 48<=d&&57>=d?"_"+c:c}function Ie(c,d){return c=Me(c),function(){return d.apply(this,arguments)}}var ce=[{},{value:void 0},{value:null},{value:!0},{value:!1}],X=[];function Z(c){var d=Error,b=Ie(c,function(y){this.name=c,this.message=y,y=Error(y).stack,y!==void 0&&(this.stack=this.toString()+`
|
|
2
|
-
`+y.replace(/^Error(:[^\n]*)?\n/,""))});return b.prototype=Object.create(d.prototype),b.prototype.constructor=b,b.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},b}var me=void 0;function z(c){throw new me(c)}var Le=c=>(c||z("Cannot use deleted val. handle = "+c),ce[c].value),De=c=>{switch(c){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var d=X.length?X.pop():ce.length;return ce[d]={ga:1,value:c},d}},qe=void 0,Be=void 0;function oe(c){for(var d="";v[c];)d+=Be[v[c++]];return d}var _t=[];function qt(){for(;_t.length;){var c=_t.pop();c.M.$=!1,c.delete()}}var Tt=void 0,Ne={};function hr(c,d){for(d===void 0&&z("ptr should not be undefined");c.R;)d=c.ba(d),c=c.R;return d}var Et={};function Nr(c){c=ba(c);var d=oe(c);return Lt(c),d}function Zt(c,d){var b=Et[c];return b===void 0&&z(d+" has unknown type "+Nr(c)),b}function mr(){}var gr=!1;function er(c){--c.count.value,c.count.value===0&&(c.T?c.U.W(c.T):c.P.N.W(c.O))}function kt(c,d,b){return d===b?c:b.R===void 0?null:(c=kt(c,d,b.R),c===null?null:b.na(c))}var pt={};function nt(c,d){return d=hr(c,d),Ne[d]}var tr=void 0;function Xe(c){throw new tr(c)}function ht(c,d){return d.P&&d.O||Xe("makeClassHandle requires ptr and ptrType"),!!d.U!=!!d.T&&Xe("Both smartPtrType and smartPtr must be specified"),d.count={value:1},mt(Object.create(c,{M:{value:d}}))}function mt(c){return typeof FinalizationRegistry>"u"?(mt=d=>d,c):(gr=new FinalizationRegistry(d=>{er(d.M)}),mt=d=>{var b=d.M;return b.T&&gr.register(d,{M:b},d),d},mr=d=>{gr.unregister(d)},mt(c))}var rr={};function zt(c){for(;c.length;){var d=c.pop();c.pop()(d)}}function ze(c){return this.fromWireType(O[c>>2])}var it={},Ze={};function gt(c,d,b){function y(R){R=b(R),R.length!==c.length&&Xe("Mismatched type converter count");for(var F=0;F<c.length;++F)V(c[F],R[F])}c.forEach(function(R){Ze[R]=d});var S=Array(d.length),P=[],A=0;d.forEach((R,F)=>{Et.hasOwnProperty(R)?S[F]=Et[R]:(P.push(R),it.hasOwnProperty(R)||(it[R]=[]),it[R].push(()=>{S[F]=Et[R],++A,A===P.length&&y(S)}))}),P.length===0&&y(S)}function Y(c){switch(c){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+c)}}function V(c,d,b={}){if(!("argPackAdvance"in d))throw new TypeError("registerType registeredInstance requires argPackAdvance");var y=d.name;if(c||z('type "'+y+'" must have a positive integer typeid pointer'),Et.hasOwnProperty(c)){if(b.ua)return;z("Cannot register type '"+y+"' twice")}Et[c]=d,delete Ze[c],it.hasOwnProperty(c)&&(d=it[c],delete it[c],d.forEach(S=>S()))}function de(c){z(c.M.P.N.name+" instance already deleted")}function Q(){}function we(c,d,b){if(c[d].S===void 0){var y=c[d];c[d]=function(){return c[d].S.hasOwnProperty(arguments.length)||z("Function '"+b+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+c[d].S+")!"),c[d].S[arguments.length].apply(this,arguments)},c[d].S=[],c[d].S[y.Z]=y}}function le(c,d){t.hasOwnProperty(c)?(z("Cannot register public name '"+c+"' twice"),we(t,c,c),t.hasOwnProperty(void 0)&&z("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),t[c].S[void 0]=d):t[c]=d}function Se(c,d,b,y,S,P,A,R){this.name=c,this.constructor=d,this.X=b,this.W=y,this.R=S,this.pa=P,this.ba=A,this.na=R,this.ja=[]}function te(c,d,b){for(;d!==b;)d.ba||z("Expected null or instance of "+b.name+", got an instance of "+d.name),c=d.ba(c),d=d.R;return c}function re(c,d){return d===null?(this.ea&&z("null is not a valid "+this.name),0):(d.M||z('Cannot pass "'+et(d)+'" as a '+this.name),d.M.O||z("Cannot pass deleted object as a pointer of type "+this.name),te(d.M.O,d.M.P.N,this.N))}function ot(c,d){if(d===null){if(this.ea&&z("null is not a valid "+this.name),this.da){var b=this.fa();return c!==null&&c.push(this.W,b),b}return 0}if(d.M||z('Cannot pass "'+et(d)+'" as a '+this.name),d.M.O||z("Cannot pass deleted object as a pointer of type "+this.name),!this.ca&&d.M.P.ca&&z("Cannot convert argument of type "+(d.M.U?d.M.U.name:d.M.P.name)+" to parameter type "+this.name),b=te(d.M.O,d.M.P.N,this.N),this.da)switch(d.M.T===void 0&&z("Passing raw pointer to smart pointer is illegal"),this.Ba){case 0:d.M.U===this?b=d.M.T:z("Cannot convert argument of type "+(d.M.U?d.M.U.name:d.M.P.name)+" to parameter type "+this.name);break;case 1:b=d.M.T;break;case 2:if(d.M.U===this)b=d.M.T;else{var y=d.clone();b=this.xa(b,De(function(){y.delete()})),c!==null&&c.push(this.W,b)}break;default:z("Unsupporting sharing policy")}return b}function K(c,d){return d===null?(this.ea&&z("null is not a valid "+this.name),0):(d.M||z('Cannot pass "'+et(d)+'" as a '+this.name),d.M.O||z("Cannot pass deleted object as a pointer of type "+this.name),d.M.P.ca&&z("Cannot convert argument of type "+d.M.P.name+" to parameter type "+this.name),te(d.M.O,d.M.P.N,this.N))}function Fe(c,d,b,y){this.name=c,this.N=d,this.ea=b,this.ca=y,this.da=!1,this.W=this.xa=this.fa=this.ka=this.Ba=this.wa=void 0,d.R!==void 0?this.toWireType=ot:(this.toWireType=y?re:K,this.V=null)}function Ge(c,d){t.hasOwnProperty(c)||Xe("Replacing nonexistant public symbol"),t[c]=d,t[c].Z=void 0}function Fr(c,d){var b=[];return function(){if(b.length=0,Object.assign(b,arguments),c.includes("j")){var y=t["dynCall_"+c];y=b&&b.length?y.apply(null,[d].concat(b)):y.call(null,d)}else y=N.get(d).apply(null,b);return y}}function Ae(c,d){c=oe(c);var b=c.includes("j")?Fr(c,d):N.get(d);return typeof b!="function"&&z("unknown function pointer with signature "+c+": "+d),b}var nr=void 0;function Ue(c,d){function b(P){S[P]||Et[P]||(Ze[P]?Ze[P].forEach(b):(y.push(P),S[P]=!0))}var y=[],S={};throw d.forEach(b),new nr(c+": "+y.map(Nr).join([", "]))}function Ct(c,d,b,y,S){var P=d.length;2>P&&z("argTypes array size mismatch! Must at least get return value and 'this' types!");var A=d[1]!==null&&b!==null,R=!1;for(b=1;b<d.length;++b)if(d[b]!==null&&d[b].V===void 0){R=!0;break}var F=d[0].name!=="void",L=P-2,$=Array(L),j=[],ne=[];return function(){if(arguments.length!==L&&z("function "+c+" called with "+arguments.length+" arguments, expected "+L+" args!"),ne.length=0,j.length=A?2:1,j[0]=S,A){var Ce=d[1].toWireType(ne,this);j[1]=Ce}for(var pe=0;pe<L;++pe)$[pe]=d[pe+2].toWireType(ne,arguments[pe]),j.push($[pe]);if(pe=y.apply(null,j),R)zt(ne);else for(var rt=A?1:2;rt<d.length;rt++){var yt=rt===1?Ce:$[rt-2];d[rt].V!==null&&d[rt].V(yt)}return Ce=F?d[0].fromWireType(pe):void 0,Ce}}function _e(c,d){for(var b=[],y=0;y<c;y++)b.push(x[d+4*y>>2]);return b}function ke(c){4<c&&--ce[c].ga===0&&(ce[c]=void 0,X.push(c))}function et(c){if(c===null)return"null";var d=typeof c;return d==="object"||d==="array"||d==="function"?c.toString():""+c}function tt(c,d){switch(d){case 2:return function(b){return this.fromWireType(E[b>>2])};case 3:return function(b){return this.fromWireType(T[b>>3])};default:throw new TypeError("Unknown float type: "+c)}}function bt(c,d,b){switch(d){case 0:return b?function(y){return g[y]}:function(y){return v[y]};case 1:return b?function(y){return w[y>>1]}:function(y){return _[y>>1]};case 2:return b?function(y){return O[y>>2]}:function(y){return x[y>>2]};default:throw new TypeError("Unknown integer type: "+c)}}function vt(c,d){for(var b="",y=0;!(y>=d/2);++y){var S=w[c+2*y>>1];if(S==0)break;b+=String.fromCharCode(S)}return b}function je(c,d,b){if(b===void 0&&(b=2147483647),2>b)return 0;b-=2;var y=d;b=b<2*c.length?b/2:c.length;for(var S=0;S<b;++S)w[d>>1]=c.charCodeAt(S),d+=2;return w[d>>1]=0,d-y}function st(c){return 2*c.length}function Wr(c,d){for(var b=0,y="";!(b>=d/4);){var S=O[c+4*b>>2];if(S==0)break;++b,65536<=S?(S-=65536,y+=String.fromCharCode(55296|S>>10,56320|S&1023)):y+=String.fromCharCode(S)}return y}function br(c,d,b){if(b===void 0&&(b=2147483647),4>b)return 0;var y=d;b=y+b-4;for(var S=0;S<c.length;++S){var P=c.charCodeAt(S);if(55296<=P&&57343>=P){var A=c.charCodeAt(++S);P=65536+((P&1023)<<10)|A&1023}if(O[d>>2]=P,d+=4,d+4>b)break}return O[d>>2]=0,d-y}function Wn(c){for(var d=0,b=0;b<c.length;++b){var y=c.charCodeAt(b);55296<=y&&57343>=y&&++b,d+=4}return d}var Dn={};function Dr(c){var d=Dn[c];return d===void 0?oe(c):d}var $n=[];function Rc(c){var d=$n.length;return $n.push(c),d}function Cc(c,d){for(var b=Array(c),y=0;y<c;++y)b[y]=Zt(x[d+4*y>>2],"parameter "+y);return b}var ma=[],Lc=[null,[],[]];me=t.BindingError=Z("BindingError"),t.count_emval_handles=function(){for(var c=0,d=5;d<ce.length;++d)ce[d]!==void 0&&++c;return c},t.get_first_emval=function(){for(var c=5;c<ce.length;++c)if(ce[c]!==void 0)return ce[c];return null},qe=t.PureVirtualError=Z("PureVirtualError");for(var ga=Array(256),Bn=0;256>Bn;++Bn)ga[Bn]=String.fromCharCode(Bn);Be=ga,t.getInheritedInstanceCount=function(){return Object.keys(Ne).length},t.getLiveInheritedInstances=function(){var c=[],d;for(d in Ne)Ne.hasOwnProperty(d)&&c.push(Ne[d]);return c},t.flushPendingDeletes=qt,t.setDelayFunction=function(c){Tt=c,_t.length&&Tt&&Tt(qt)},tr=t.InternalError=Z("InternalError"),Q.prototype.isAliasOf=function(c){if(!(this instanceof Q&&c instanceof Q))return!1;var d=this.M.P.N,b=this.M.O,y=c.M.P.N;for(c=c.M.O;d.R;)b=d.ba(b),d=d.R;for(;y.R;)c=y.ba(c),y=y.R;return d===y&&b===c},Q.prototype.clone=function(){if(this.M.O||de(this),this.M.aa)return this.M.count.value+=1,this;var c=mt,d=Object,b=d.create,y=Object.getPrototypeOf(this),S=this.M;return c=c(b.call(d,y,{M:{value:{count:S.count,$:S.$,aa:S.aa,O:S.O,P:S.P,T:S.T,U:S.U}}})),c.M.count.value+=1,c.M.$=!1,c},Q.prototype.delete=function(){this.M.O||de(this),this.M.$&&!this.M.aa&&z("Object already scheduled for deletion"),mr(this),er(this.M),this.M.aa||(this.M.T=void 0,this.M.O=void 0)},Q.prototype.isDeleted=function(){return!this.M.O},Q.prototype.deleteLater=function(){return this.M.O||de(this),this.M.$&&!this.M.aa&&z("Object already scheduled for deletion"),_t.push(this),_t.length===1&&Tt&&Tt(qt),this.M.$=!0,this},Fe.prototype.qa=function(c){return this.ka&&(c=this.ka(c)),c},Fe.prototype.ha=function(c){this.W&&this.W(c)},Fe.prototype.argPackAdvance=8,Fe.prototype.readValueFromPointer=ze,Fe.prototype.deleteObject=function(c){c!==null&&c.delete()},Fe.prototype.fromWireType=function(c){function d(){return this.da?ht(this.N.X,{P:this.wa,O:b,U:this,T:c}):ht(this.N.X,{P:this,O:c})}var b=this.qa(c);if(!b)return this.ha(c),null;var y=nt(this.N,b);if(y!==void 0)return y.M.count.value===0?(y.M.O=b,y.M.T=c,y.clone()):(y=y.clone(),this.ha(c),y);if(y=this.N.pa(b),y=pt[y],!y)return d.call(this);y=this.ca?y.la:y.pointerType;var S=kt(b,this.N,y.N);return S===null?d.call(this):this.da?ht(y.N.X,{P:y,O:S,U:this,T:c}):ht(y.N.X,{P:y,O:S})},nr=t.UnboundTypeError=Z("UnboundTypeError");var Mc=typeof atob=="function"?atob:function(c){var d="",b=0;c=c.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(b++)),S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(b++)),P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(b++)),A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(b++));y=y<<2|S>>4,S=(S&15)<<4|P>>2;var R=(P&3)<<6|A;d+=String.fromCharCode(y),P!==64&&(d+=String.fromCharCode(S)),A!==64&&(d+=String.fromCharCode(R))}while(b<c.length);return d},Nc={l:function(c,d,b,y){ee("Assertion failed: "+(c?m(v,c):"")+", at: "+[d?d?m(v,d):"":"unknown filename",b,y?y?m(v,y):"":"unknown function"])},q:function(c,d,b){c=oe(c),d=Zt(d,"wrapper"),b=Le(b);var y=[].slice,S=d.N,P=S.X,A=S.R.X,R=S.R.constructor;c=Ie(c,function(){S.R.ja.forEach(function(L){if(this[L]===A[L])throw new qe("Pure virtual function "+L+" must be implemented in JavaScript")}.bind(this)),Object.defineProperty(this,"__parent",{value:P}),this.__construct.apply(this,y.call(arguments))}),P.__construct=function(){this===P&&z("Pass correct 'this' to __construct");var L=R.implement.apply(void 0,[this].concat(y.call(arguments)));mr(L);var $=L.M;L.notifyOnDestruction(),$.aa=!0,Object.defineProperties(this,{M:{value:$}}),mt(this),L=$.O,L=hr(S,L),Ne.hasOwnProperty(L)?z("Tried to register registered instance: "+L):Ne[L]=this},P.__destruct=function(){this===P&&z("Pass correct 'this' to __destruct"),mr(this);var L=this.M.O;L=hr(S,L),Ne.hasOwnProperty(L)?delete Ne[L]:z("Tried to unregister unregistered instance: "+L)},c.prototype=Object.create(P);for(var F in b)c.prototype[F]=b[F];return De(c)},j:function(c){var d=rr[c];delete rr[c];var b=d.fa,y=d.W,S=d.ia,P=S.map(A=>A.ta).concat(S.map(A=>A.za));gt([c],P,A=>{var R={};return S.forEach((F,L)=>{var $=A[L],j=F.ra,ne=F.sa,Ce=A[L+S.length],pe=F.ya,rt=F.Aa;R[F.oa]={read:yt=>$.fromWireType(j(ne,yt)),write:(yt,$r)=>{var Mt=[];pe(rt,yt,Ce.toWireType(Mt,$r)),zt(Mt)}}}),[{name:d.name,fromWireType:function(F){var L={},$;for($ in R)L[$]=R[$].read(F);return y(F),L},toWireType:function(F,L){for(var $ in R)if(!($ in L))throw new TypeError('Missing field: "'+$+'"');var j=b();for($ in R)R[$].write(j,L[$]);return F!==null&&F.push(y,j),j},argPackAdvance:8,readValueFromPointer:ze,V:y}]})},v:function(){},B:function(c,d,b,y,S){var P=Y(b);d=oe(d),V(c,{name:d,fromWireType:function(A){return!!A},toWireType:function(A,R){return R?y:S},argPackAdvance:8,readValueFromPointer:function(A){if(b===1)var R=g;else if(b===2)R=w;else if(b===4)R=O;else throw new TypeError("Unknown boolean type size: "+d);return this.fromWireType(R[A>>P])},V:null})},f:function(c,d,b,y,S,P,A,R,F,L,$,j,ne){$=oe($),P=Ae(S,P),R&&(R=Ae(A,R)),L&&(L=Ae(F,L)),ne=Ae(j,ne);var Ce=Me($);le(Ce,function(){Ue("Cannot construct "+$+" due to unbound types",[y])}),gt([c,d,b],y?[y]:[],function(pe){if(pe=pe[0],y)var rt=pe.N,yt=rt.X;else yt=Q.prototype;pe=Ie(Ce,function(){if(Object.getPrototypeOf(this)!==$r)throw new me("Use 'new' to construct "+$);if(Mt.Y===void 0)throw new me($+" has no accessible constructor");var xa=Mt.Y[arguments.length];if(xa===void 0)throw new me("Tried to invoke ctor of "+$+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(Mt.Y).toString()+") parameters instead!");return xa.apply(this,arguments)});var $r=Object.create(yt,{constructor:{value:pe}});pe.prototype=$r;var Mt=new Se($,pe,$r,ne,rt,P,R,L);rt=new Fe($,Mt,!0,!1),yt=new Fe($+"*",Mt,!1,!1);var ya=new Fe($+" const*",Mt,!1,!0);return pt[c]={pointerType:yt,la:ya},Ge(Ce,pe),[rt,yt,ya]})},d:function(c,d,b,y,S,P,A){var R=_e(b,y);d=oe(d),P=Ae(S,P),gt([],[c],function(F){function L(){Ue("Cannot call "+$+" due to unbound types",R)}F=F[0];var $=F.name+"."+d;d.startsWith("@@")&&(d=Symbol[d.substring(2)]);var j=F.N.constructor;return j[d]===void 0?(L.Z=b-1,j[d]=L):(we(j,d,$),j[d].S[b-1]=L),gt([],R,function(ne){return ne=Ct($,[ne[0],null].concat(ne.slice(1)),null,P,A),j[d].S===void 0?(ne.Z=b-1,j[d]=ne):j[d].S[b-1]=ne,[]}),[]})},p:function(c,d,b,y,S,P){0<d||ee();var A=_e(d,b);S=Ae(y,S),gt([],[c],function(R){R=R[0];var F="constructor "+R.name;if(R.N.Y===void 0&&(R.N.Y=[]),R.N.Y[d-1]!==void 0)throw new me("Cannot register multiple constructors with identical number of parameters ("+(d-1)+") for class '"+R.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return R.N.Y[d-1]=()=>{Ue("Cannot construct "+R.name+" due to unbound types",A)},gt([],A,function(L){return L.splice(1,0,null),R.N.Y[d-1]=Ct(F,L,null,S,P),[]}),[]})},a:function(c,d,b,y,S,P,A,R){var F=_e(b,y);d=oe(d),P=Ae(S,P),gt([],[c],function(L){function $(){Ue("Cannot call "+j+" due to unbound types",F)}L=L[0];var j=L.name+"."+d;d.startsWith("@@")&&(d=Symbol[d.substring(2)]),R&&L.N.ja.push(d);var ne=L.N.X,Ce=ne[d];return Ce===void 0||Ce.S===void 0&&Ce.className!==L.name&&Ce.Z===b-2?($.Z=b-2,$.className=L.name,ne[d]=$):(we(ne,d,j),ne[d].S[b-2]=$),gt([],F,function(pe){return pe=Ct(j,pe,L,P,A),ne[d].S===void 0?(pe.Z=b-2,ne[d]=pe):ne[d].S[b-2]=pe,[]}),[]})},A:function(c,d){d=oe(d),V(c,{name:d,fromWireType:function(b){var y=Le(b);return ke(b),y},toWireType:function(b,y){return De(y)},argPackAdvance:8,readValueFromPointer:ze,V:null})},n:function(c,d,b){b=Y(b),d=oe(d),V(c,{name:d,fromWireType:function(y){return y},toWireType:function(y,S){return S},argPackAdvance:8,readValueFromPointer:tt(d,b),V:null})},e:function(c,d,b,y,S){d=oe(d),S===-1&&(S=4294967295),S=Y(b);var P=R=>R;if(y===0){var A=32-8*b;P=R=>R<<A>>>A}b=d.includes("unsigned")?function(R,F){return F>>>0}:function(R,F){return F},V(c,{name:d,fromWireType:P,toWireType:b,argPackAdvance:8,readValueFromPointer:bt(d,S,y!==0),V:null})},b:function(c,d,b){function y(P){P>>=2;var A=x;return new S(h,A[P+1],A[P])}var S=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][d];b=oe(b),V(c,{name:b,fromWireType:y,argPackAdvance:8,readValueFromPointer:y},{ua:!0})},o:function(c,d){d=oe(d);var b=d==="std::string";V(c,{name:d,fromWireType:function(y){var S=x[y>>2],P=y+4;if(b)for(var A=P,R=0;R<=S;++R){var F=P+R;if(R==S||v[F]==0){if(A=A?m(v,A,F-A):"",L===void 0)var L=A;else L+=String.fromCharCode(0),L+=A;A=F+1}}else{for(L=Array(S),R=0;R<S;++R)L[R]=String.fromCharCode(v[P+R]);L=L.join("")}return Lt(y),L},toWireType:function(y,S){S instanceof ArrayBuffer&&(S=new Uint8Array(S));var P,A=typeof S=="string";if(A||S instanceof Uint8Array||S instanceof Uint8ClampedArray||S instanceof Int8Array||z("Cannot pass non-string to std::string"),b&&A){var R=0;for(P=0;P<S.length;++P){var F=S.charCodeAt(P);127>=F?R++:2047>=F?R+=2:55296<=F&&57343>=F?(R+=4,++P):R+=3}P=R}else P=S.length;if(R=Fi(4+P+1),F=R+4,x[R>>2]=P,b&&A){if(A=F,F=P+1,P=v,0<F){F=A+F-1;for(var L=0;L<S.length;++L){var $=S.charCodeAt(L);if(55296<=$&&57343>=$){var j=S.charCodeAt(++L);$=65536+(($&1023)<<10)|j&1023}if(127>=$){if(A>=F)break;P[A++]=$}else{if(2047>=$){if(A+1>=F)break;P[A++]=192|$>>6}else{if(65535>=$){if(A+2>=F)break;P[A++]=224|$>>12}else{if(A+3>=F)break;P[A++]=240|$>>18,P[A++]=128|$>>12&63}P[A++]=128|$>>6&63}P[A++]=128|$&63}}P[A]=0}}else if(A)for(A=0;A<P;++A)L=S.charCodeAt(A),255<L&&(Lt(F),z("String has UTF-16 code units that do not fit in 8 bits")),v[F+A]=L;else for(A=0;A<P;++A)v[F+A]=S[A];return y!==null&&y.push(Lt,R),R},argPackAdvance:8,readValueFromPointer:ze,V:function(y){Lt(y)}})},i:function(c,d,b){if(b=oe(b),d===2)var y=vt,S=je,P=st,A=()=>_,R=1;else d===4&&(y=Wr,S=br,P=Wn,A=()=>x,R=2);V(c,{name:b,fromWireType:function(F){for(var L=x[F>>2],$=A(),j,ne=F+4,Ce=0;Ce<=L;++Ce){var pe=F+4+Ce*d;(Ce==L||$[pe>>R]==0)&&(ne=y(ne,pe-ne),j===void 0?j=ne:(j+=String.fromCharCode(0),j+=ne),ne=pe+d)}return Lt(F),j},toWireType:function(F,L){typeof L!="string"&&z("Cannot pass non-string to C++ string type "+b);var $=P(L),j=Fi(4+$+d);return x[j>>2]=$>>R,S(L,j+4,$+d),F!==null&&F.push(Lt,j),j},argPackAdvance:8,readValueFromPointer:ze,V:function(F){Lt(F)}})},k:function(c,d,b,y,S,P){rr[c]={name:oe(d),fa:Ae(b,y),W:Ae(S,P),ia:[]}},h:function(c,d,b,y,S,P,A,R,F,L){rr[c].ia.push({oa:oe(d),ta:b,ra:Ae(y,S),sa:P,za:A,ya:Ae(R,F),Aa:L})},C:function(c,d){d=oe(d),V(c,{va:!0,name:d,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},s:function(c,d,b,y,S){c=$n[c],d=Le(d),b=Dr(b);var P=[];return x[y>>2]=De(P),c(d,b,P,S)},t:function(c,d,b,y){c=$n[c],d=Le(d),b=Dr(b),c(d,b,null,y)},g:ke,m:function(c,d){var b=Cc(c,d),y=b[0];d=y.name+"_$"+b.slice(1).map(function(A){return A.name}).join("_")+"$";var S=ma[d];if(S!==void 0)return S;var P=Array(c-1);return S=Rc((A,R,F,L)=>{for(var $=0,j=0;j<c-1;++j)P[j]=b[j+1].readValueFromPointer(L+$),$+=b[j+1].argPackAdvance;for(A=A[R].apply(A,P),j=0;j<c-1;++j)b[j+1].ma&&b[j+1].ma(P[j]);if(!y.va)return y.toWireType(F,A)}),ma[d]=S},D:function(c){4<c&&(ce[c].ga+=1)},r:function(c){var d=Le(c);zt(d),ke(c)},c:function(){ee("")},x:function(c,d,b){v.copyWithin(c,d,d+b)},w:function(c){var d=v.length;if(c>>>=0,2147483648<c)return!1;for(var b=1;4>=b;b*=2){var y=d*(1+.2/b);y=Math.min(y,c+100663296);var S=Math;y=Math.max(c,y),S=S.min.call(S,2147483648,y+(65536-y%65536)%65536);e:{try{f.grow(S-h.byteLength+65535>>>16),I();var P=1;break e}catch{}P=void 0}if(P)return!0}return!1},z:function(){return 52},u:function(){return 70},y:function(c,d,b,y){for(var S=0,P=0;P<b;P++){var A=x[d>>2],R=x[d+4>>2];d+=8;for(var F=0;F<R;F++){var L=v[A+F],$=Lc[c];L===0||L===10?((c===1?s:a)(m($,0)),$.length=0):$.push(L)}S+=R}return x[y>>2]=S,0}};(function(){function c(S){t.asm=S.exports,f=t.asm.E,I(),N=t.asm.J,G.unshift(t.asm.F),be--,t.monitorRunDependencies&&t.monitorRunDependencies(be),be==0&&(he!==null&&(clearInterval(he),he=null),ue&&(S=ue,ue=null,S()))}function d(S){c(S.instance)}function b(S){return Oe().then(function(P){return P instanceof WebAssembly.Instance?P:WebAssembly.instantiate(P,y)}).then(function(P){return P}).then(S,function(P){a("failed to asynchronously prepare wasm: "+P),ee(P)})}var y={a:Nc};if(be++,t.monitorRunDependencies&&t.monitorRunDependencies(be),t.instantiateWasm)try{return t.instantiateWasm(y,c)}catch(S){a("Module.instantiateWasm callback failed with error: "+S),n(S)}return function(){return u||typeof WebAssembly.instantiateStreaming!="function"||ie(Pe)||typeof fetch!="function"?b(d):fetch(Pe,{credentials:"same-origin"}).then(function(S){return WebAssembly.instantiateStreaming(S,y).then(d,function(P){return a("wasm streaming compile failed: "+P),a("falling back to ArrayBuffer instantiation"),b(d)})})}().catch(n),{}})(),t.___wasm_call_ctors=function(){return(t.___wasm_call_ctors=t.asm.F).apply(null,arguments)};var ba=t.___getTypeName=function(){return(ba=t.___getTypeName=t.asm.G).apply(null,arguments)};t.__embind_initialize_bindings=function(){return(t.__embind_initialize_bindings=t.asm.H).apply(null,arguments)};var Fi=t._malloc=function(){return(Fi=t._malloc=t.asm.I).apply(null,arguments)},Lt=t._free=function(){return(Lt=t._free=t.asm.K).apply(null,arguments)};t.dynCall_jiji=function(){return(t.dynCall_jiji=t.asm.L).apply(null,arguments)};var Un;ue=function c(){Un||va(),Un||(ue=c)};function va(){function c(){if(!Un&&(Un=!0,t.calledRun=!0,!p)){if(Ye(G),r(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),t.postRun)for(typeof t.postRun=="function"&&(t.postRun=[t.postRun]);t.postRun.length;){var d=t.postRun.shift();J.unshift(d)}Ye(J)}}if(!(0<be)){if(t.preRun)for(typeof t.preRun=="function"&&(t.preRun=[t.preRun]);t.preRun.length;)fe();Ye(W),0<be||(t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1),c()},1)):c())}}if(t.preInit)for(typeof t.preInit=="function"&&(t.preInit=[t.preInit]);0<t.preInit.length;)t.preInit.pop()();return va(),e.ready}var Ua,za=ir(()=>{Ua=""});async function Ga(e){let{default:t}=await Promise.resolve().then(()=>(za(),qa));return Yi(await t(e))}var ja=ir(()=>{Ba();Yn()});var Qi={};zn(Qi,{getYoga:()=>ud,init:()=>ad});async function sd(e,t){let r;if(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL?r=await fetch(e):r=await e,typeof Response=="function"&&r instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(r,t)}catch(o){r.headers.get("Content-Type")!=="application/wasm"&&console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",o)}let i=await r.arrayBuffer();return await WebAssembly.instantiate(i,t)}let n=await WebAssembly.instantiate("buffer"in r?r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength):r,t);return n instanceof WebAssembly.Instance?{instance:n,module:r}:n}function ad(e){id({instantiateWasm(t,r){return sd(e,t).then(({instance:n})=>{r(n)}).catch(Xi),{}}}).then(Va).catch(Xi)}function ud(){return od}var id,Va,Xi,od,Ki=ir(()=>{ja();id=Ga,od=new Promise((e,t)=>{Va=e,Xi=t})});var Oo=q(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Object.defineProperty(Po,"default",{enumerable:!0,get:()=>Rp});function Rp(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 Yu=q(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Object.defineProperty(Io,"default",{enumerable:!0,get:()=>Cp});var Cp=["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 Xu=q(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Object.defineProperty(Ao,"default",{enumerable:!0,get:()=>Lp});function Lp(e,t){return e===void 0?t:Array.isArray(e)?e:[...new Set(t.filter(n=>e!==!1&&e[n]!==!1).concat(Object.keys(e).filter(n=>e[n]!==!1)))]}});var Ro=q((Bx,Qu)=>{Qu.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 gi={};zn(gi,{default:()=>Mp});var Mp,bi=ir(()=>{Mp={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 Ku=q(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Object.defineProperty(Co,"default",{enumerable:!0,get:()=>Wp});var Np=Fp((bi(),Gn(gi)));function Fp(e){return e&&e.__esModule?e:{default:e}}function tn({version:e,from:t,to:r}){Np.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${r}\`.`,"Update your configuration file to silence this warning."])}var Wp={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 tn({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return tn({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return tn({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return tn({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return tn({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}});var Ju=q(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Object.defineProperty(Lo,"defaults",{enumerable:!0,get:()=>Dp});function Dp(e,...t){for(let i of t){for(let o in i){var r;!(e==null||(r=e.hasOwnProperty)===null||r===void 0)&&r.call(e,o)||(e[o]=i[o])}for(let o of Object.getOwnPropertySymbols(i)){var n;!(e==null||(n=e.hasOwnProperty)===null||n===void 0)&&n.call(e,o)||(e[o]=i[o])}}return e}});var Zu=q(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Object.defineProperty(Mo,"toPath",{enumerable:!0,get:()=>$p});function $p(e){if(Array.isArray(e))return e;let t=e.split("[").length-1,r=e.split("]").length-1;if(t!==r)throw new Error(`Path is invalid. Has unbalanced brackets: ${e}`);return e.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}});var tl=q(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});Object.defineProperty(No,"normalizeConfig",{enumerable:!0,get:()=>Up});var rn=Bp((bi(),Gn(gi)));function el(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(el=function(n){return n?r:t})(e)}function Bp(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=el(t);if(r&&r.has(e))return r.get(e);var n={},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(n,o,s):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function Up(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(n=>typeof n=="string"?!0:!(typeof(n==null?void 0:n.raw)!="string"||n!=null&&n.extension&&typeof(n==null?void 0:n.extension)!="string"));if(typeof e.content=="object"&&e.content!==null){if(Object.keys(e.content).some(n=>!["files","extract","transform"].includes(n)))return!1;if(Array.isArray(e.content.files)){if(!e.content.files.every(n=>typeof n=="string"?!0:!(typeof(n==null?void 0:n.raw)!="string"||n!=null&&n.extension&&typeof(n==null?void 0:n.extension)!="string")))return!1;if(typeof e.content.extract=="object"){for(let n of Object.values(e.content.extract))if(typeof n!="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 n of Object.values(e.content.transform))if(typeof n!="function")return!1}else if(!(e.content.transform===void 0||typeof e.content.transform=="function"))return!1}return!0}return!1})()||rn.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 n;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||(n=o.options)===null||n===void 0?void 0:n.safelist)?o.options.safelist:[]})(),typeof e.prefix=="function")rn.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 r;e.prefix=(r=e.prefix)!==null&&r!==void 0?r:""}e.content={files:(()=>{let{content:n,purge:i}=e;return Array.isArray(i)?i:Array.isArray(i==null?void 0:i.content)?i.content:Array.isArray(n)?n:Array.isArray(n==null?void 0:n.content)?n.content:Array.isArray(n==null?void 0:n.files)?n.files:[]})(),extract:(()=>{let n=(()=>{var s,a,u,l,f,p,m,h,g,v;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||(p=f.extract)===null||p===void 0)&&p.DEFAULT?e.content.extract.DEFAULT:!((m=e.purge)===null||m===void 0||(h=m.options)===null||h===void 0)&&h.extractors?e.purge.options.extractors:!((g=e.content)===null||g===void 0||(v=g.options)===null||v===void 0)&&v.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 n=="function")i.DEFAULT=n;else if(Array.isArray(n))for(let{extensions:s,extractor:a}of n??[])for(let u of s)i[u]=a;else typeof n=="object"&&n!==null&&Object.assign(i,n);return i})(),transform:(()=>{let n=(()=>{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 n=="function"&&(i.DEFAULT=n),typeof n=="object"&&n!==null&&Object.assign(i,n),i})()};for(let n of e.content.files)if(typeof n=="string"&&/{([^,]*?)}/g.test(n)){rn.default.warn("invalid-glob-braces",[`The glob pattern ${(0,rn.dim)(n)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,rn.dim)(n.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return e}});var rl=q(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Object.defineProperty(Fo,"default",{enumerable:!0,get:()=>qp});function qp(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}});var nl=q(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Object.defineProperty(Do,"cloneDeep",{enumerable:!0,get:()=>Wo});function Wo(e){return Array.isArray(e)?e.map(t=>Wo(t)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).map(([t,r])=>[t,Wo(r)])):e}});var $o=q((vi,il)=>{"use strict";vi.__esModule=!0;vi.default=jp;function zp(e){for(var t=e.toLowerCase(),r="",n=!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(n=o===32,!s)break;r+=t[i]}if(r.length!==0){var a=parseInt(r,16),u=a>=55296&&a<=57343;return u||a===0||a>1114111?["\uFFFD",r.length+(n?1:0)]:[String.fromCodePoint(a),r.length+(n?1:0)]}}var Gp=/\\/;function jp(e){var t=Gp.test(e);if(!t)return e;for(var r="",n=0;n<e.length;n++){if(e[n]==="\\"){var i=zp(e.slice(n+1,n+7));if(i!==void 0){r+=i[0],n+=i[1];continue}if(e[n+1]==="\\"){r+="\\",n++;continue}e.length===n+1&&(r+=e[n]);continue}r+=e[n]}return r}il.exports=vi.default});var sl=q((yi,ol)=>{"use strict";yi.__esModule=!0;yi.default=Vp;function Vp(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(;r.length>0;){var i=r.shift();if(!e[i])return;e=e[i]}return e}ol.exports=yi.default});var ul=q((xi,al)=>{"use strict";xi.__esModule=!0;xi.default=Hp;function Hp(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(;r.length>0;){var i=r.shift();e[i]||(e[i]={}),e=e[i]}}al.exports=xi.default});var fl=q((wi,ll)=>{"use strict";wi.__esModule=!0;wi.default=Yp;function Yp(e){for(var t="",r=e.indexOf("/*"),n=0;r>=0;){t=t+e.slice(n,r);var i=e.indexOf("*/",r+2);if(i<0)return t;n=i+2,r=e.indexOf("/*",n)}return t=t+e.slice(n),t}ll.exports=wi.default});var nn=q(It=>{"use strict";It.__esModule=!0;It.stripComments=It.ensureObject=It.getProp=It.unesc=void 0;var Xp=Si($o());It.unesc=Xp.default;var Qp=Si(sl());It.getProp=Qp.default;var Kp=Si(ul());It.ensureObject=Kp.default;var Jp=Si(fl());It.stripComments=Jp.default;function Si(e){return e&&e.__esModule?e:{default:e}}});var $t=q((on,pl)=>{"use strict";on.__esModule=!0;on.default=void 0;var cl=nn();function dl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Zp(e,t,r){return t&&dl(e.prototype,t),r&&dl(e,r),e}var eh=function e(t,r){if(typeof t!="object"||t===null)return t;var n=new t.constructor;for(var i in t)if(t.hasOwnProperty(i)){var o=t[i],s=typeof o;i==="parent"&&s==="object"?r&&(n[i]=r):o instanceof Array?n[i]=o.map(function(a){return e(a,n)}):n[i]=e(o,n)}return n},th=function(){function e(r){r===void 0&&(r={}),Object.assign(this,r),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 n in arguments)this.parent.insertBefore(this,arguments[n]);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(n){n===void 0&&(n={});var i=eh(this);for(var o in n)i[o]=n[o];return i},t.appendToPropertyAndEscape=function(n,i,o){this.raws||(this.raws={});var s=this[n],a=this.raws[n];this[n]=s+i,a||o!==i?this.raws[n]=(a||s)+o:delete this.raws[n]},t.setPropertyAndEscape=function(n,i,o){this.raws||(this.raws={}),this[n]=i,this.raws[n]=o},t.setPropertyWithoutEscape=function(n,i){this[n]=i,this.raws&&delete this.raws[n]},t.isAtPosition=function(n,i){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>n||this.source.end.line<n||this.source.start.line===n&&this.source.start.column>i||this.source.end.line===n&&this.source.end.column<i)},t.stringifyProperty=function(n){return this.raws&&this.raws[n]||this[n]},t.valueToString=function(){return String(this.stringifyProperty("value"))},t.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},Zp(e,[{key:"rawSpaceBefore",get:function(){var n=this.raws&&this.raws.spaces&&this.raws.spaces.before;return n===void 0&&(n=this.spaces&&this.spaces.before),n||""},set:function(n){(0,cl.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=n}},{key:"rawSpaceAfter",get:function(){var n=this.raws&&this.raws.spaces&&this.raws.spaces.after;return n===void 0&&(n=this.spaces.after),n||""},set:function(n){(0,cl.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=n}}]),e}();on.default=th;pl.exports=on.default});var $e=q(ve=>{"use strict";ve.__esModule=!0;ve.UNIVERSAL=ve.ATTRIBUTE=ve.CLASS=ve.COMBINATOR=ve.COMMENT=ve.ID=ve.NESTING=ve.PSEUDO=ve.ROOT=ve.SELECTOR=ve.STRING=ve.TAG=void 0;var rh="tag";ve.TAG=rh;var nh="string";ve.STRING=nh;var ih="selector";ve.SELECTOR=ih;var oh="root";ve.ROOT=oh;var sh="pseudo";ve.PSEUDO=sh;var ah="nesting";ve.NESTING=ah;var uh="id";ve.ID=uh;var lh="comment";ve.COMMENT=lh;var fh="combinator";ve.COMBINATOR=fh;var ch="class";ve.CLASS=ch;var dh="attribute";ve.ATTRIBUTE=dh;var ph="universal";ve.UNIVERSAL=ph});var _i=q((sn,bl)=>{"use strict";sn.__esModule=!0;sn.default=void 0;var hh=gh($t()),Bt=mh($e());function gl(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return gl=function(){return e},e}function mh(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=gl();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}function gh(e){return e&&e.__esModule?e:{default:e}}function bh(e,t){var r;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(r=vh(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
3
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return r=e[Symbol.iterator](),r.next.bind(r)}function vh(e,t){if(e){if(typeof e=="string")return hl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hl(e,t)}}function hl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ml(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function yh(e,t,r){return t&&ml(e.prototype,t),r&&ml(e,r),e}function xh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Bo(e,t)}function Bo(e,t){return Bo=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Bo(e,t)}var wh=function(e){xh(t,e);function t(n){var i;return i=e.call(this,n)||this,i.nodes||(i.nodes=[]),i}var r=t.prototype;return r.append=function(i){return i.parent=this,this.nodes.push(i),this},r.prepend=function(i){return i.parent=this,this.nodes.unshift(i),this},r.at=function(i){return this.nodes[i]},r.index=function(i){return typeof i=="number"?i:this.nodes.indexOf(i)},r.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},r.removeAll=function(){for(var i=bh(this.nodes),o;!(o=i()).done;){var s=o.value;s.parent=void 0}return this.nodes=[],this},r.empty=function(){return this.removeAll()},r.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},r.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},r._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},r.atPosition=function(i,o){if(this.isAtPosition(i,o))return this._findChildAtPosition(i,o)||this},r._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))},r.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}},r.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})},r.walkAttributes=function(i){var o=this;return this.walk(function(s){if(s.type===Bt.ATTRIBUTE)return i.call(o,s)})},r.walkClasses=function(i){var o=this;return this.walk(function(s){if(s.type===Bt.CLASS)return i.call(o,s)})},r.walkCombinators=function(i){var o=this;return this.walk(function(s){if(s.type===Bt.COMBINATOR)return i.call(o,s)})},r.walkComments=function(i){var o=this;return this.walk(function(s){if(s.type===Bt.COMMENT)return i.call(o,s)})},r.walkIds=function(i){var o=this;return this.walk(function(s){if(s.type===Bt.ID)return i.call(o,s)})},r.walkNesting=function(i){var o=this;return this.walk(function(s){if(s.type===Bt.NESTING)return i.call(o,s)})},r.walkPseudos=function(i){var o=this;return this.walk(function(s){if(s.type===Bt.PSEUDO)return i.call(o,s)})},r.walkTags=function(i){var o=this;return this.walk(function(s){if(s.type===Bt.TAG)return i.call(o,s)})},r.walkUniversals=function(i){var o=this;return this.walk(function(s){if(s.type===Bt.UNIVERSAL)return i.call(o,s)})},r.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},[])},r.map=function(i){return this.nodes.map(i)},r.reduce=function(i,o){return this.nodes.reduce(i,o)},r.every=function(i){return this.nodes.every(i)},r.some=function(i){return this.nodes.some(i)},r.filter=function(i){return this.nodes.filter(i)},r.sort=function(i){return this.nodes.sort(i)},r.toString=function(){return this.map(String).join("")},yh(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}(hh.default);sn.default=wh;bl.exports=sn.default});var qo=q((an,yl)=>{"use strict";an.__esModule=!0;an.default=void 0;var Sh=Th(_i()),_h=$e();function Th(e){return e&&e.__esModule?e:{default:e}}function vl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Eh(e,t,r){return t&&vl(e.prototype,t),r&&vl(e,r),e}function kh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Uo(e,t)}function Uo(e,t){return Uo=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Uo(e,t)}var Ph=function(e){kh(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=_h.ROOT,i}var r=t.prototype;return r.toString=function(){var i=this.reduce(function(o,s){return o.push(String(s)),o},[]).join(",");return this.trailingComma?i+",":i},r.error=function(i,o){return this._error?this._error(i,o):new Error(i)},Eh(t,[{key:"errorGenerator",set:function(i){this._error=i}}]),t}(Sh.default);an.default=Ph;yl.exports=an.default});var Go=q((un,xl)=>{"use strict";un.__esModule=!0;un.default=void 0;var Oh=Ah(_i()),Ih=$e();function Ah(e){return e&&e.__esModule?e:{default:e}}function Rh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zo(e,t)}function zo(e,t){return zo=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},zo(e,t)}var Ch=function(e){Rh(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=Ih.SELECTOR,n}return t}(Oh.default);un.default=Ch;xl.exports=un.default});var Ti=q((Xx,wl)=>{"use strict";var Lh={},Mh=Lh.hasOwnProperty,Nh=function(t,r){if(!t)return r;var n={};for(var i in r)n[i]=Mh.call(t,i)?t[i]:r[i];return n},Fh=/[ -,\.\/:-@\[-\^`\{-~]/,Wh=/[ -,\.\/:-@\[\]\^`\{-~]/,Dh=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,jo=function e(t,r){r=Nh(r,e.options),r.quotes!="single"&&r.quotes!="double"&&(r.quotes="single");for(var n=r.quotes=="double"?'"':"'",i=r.isIdentifier,o=t.charAt(0),s="",a=0,u=t.length;a<u;){var l=t.charAt(a++),f=l.charCodeAt(),p=void 0;if(f<32||f>126){if(f>=55296&&f<=56319&&a<u){var m=t.charCodeAt(a++);(m&64512)==56320?f=((f&1023)<<10)+(m&1023)+65536:a--}p="\\"+f.toString(16).toUpperCase()+" "}else r.escapeEverything?Fh.test(l)?p="\\"+l:p="\\"+f.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?p="\\"+f.toString(16).toUpperCase()+" ":l=="\\"||!i&&(l=='"'&&n==l||l=="'"&&n==l)||i&&Wh.test(l)?p="\\"+l:p=l;s+=p}return i&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(o)&&(s="\\3"+o+" "+s.slice(1))),s=s.replace(Dh,function(h,g,v){return g&&g.length%2?h:(g||"")+v}),!i&&r.wrap?n+s+n:s};jo.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};jo.version="3.0.0";wl.exports=jo});var Ho=q((ln,Tl)=>{"use strict";ln.__esModule=!0;ln.default=void 0;var $h=_l(Ti()),Bh=nn(),Uh=_l($t()),qh=$e();function _l(e){return e&&e.__esModule?e:{default:e}}function Sl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function zh(e,t,r){return t&&Sl(e.prototype,t),r&&Sl(e,r),e}function Gh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Vo(e,t)}function Vo(e,t){return Vo=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Vo(e,t)}var jh=function(e){Gh(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=qh.CLASS,i._constructed=!0,i}var r=t.prototype;return r.valueToString=function(){return"."+e.prototype.valueToString.call(this)},zh(t,[{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var o=(0,$h.default)(i,{isIdentifier:!0});o!==i?((0,Bh.ensureObject)(this,"raws"),this.raws.value=o):this.raws&&delete this.raws.value}this._value=i}}]),t}(Uh.default);ln.default=jh;Tl.exports=ln.default});var Xo=q((fn,El)=>{"use strict";fn.__esModule=!0;fn.default=void 0;var Vh=Yh($t()),Hh=$e();function Yh(e){return e&&e.__esModule?e:{default:e}}function Xh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Yo(e,t)}function Yo(e,t){return Yo=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Yo(e,t)}var Qh=function(e){Xh(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=Hh.COMMENT,n}return t}(Vh.default);fn.default=Qh;El.exports=fn.default});var Ko=q((cn,kl)=>{"use strict";cn.__esModule=!0;cn.default=void 0;var Kh=Zh($t()),Jh=$e();function Zh(e){return e&&e.__esModule?e:{default:e}}function em(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qo(e,t)}function Qo(e,t){return Qo=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Qo(e,t)}var tm=function(e){em(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=Jh.ID,i}var r=t.prototype;return r.valueToString=function(){return"#"+e.prototype.valueToString.call(this)},t}(Kh.default);cn.default=tm;kl.exports=cn.default});var Ei=q((dn,Il)=>{"use strict";dn.__esModule=!0;dn.default=void 0;var rm=Ol(Ti()),nm=nn(),im=Ol($t());function Ol(e){return e&&e.__esModule?e:{default:e}}function Pl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function om(e,t,r){return t&&Pl(e.prototype,t),r&&Pl(e,r),e}function sm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jo(e,t)}function Jo(e,t){return Jo=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Jo(e,t)}var am=function(e){sm(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.qualifiedName=function(i){return this.namespace?this.namespaceString+"|"+i:i},r.valueToString=function(){return this.qualifiedName(e.prototype.valueToString.call(this))},om(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,rm.default)(i,{isIdentifier:!0});this._namespace=i,o!==i?((0,nm.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}(im.default);dn.default=am;Il.exports=dn.default});var es=q((pn,Al)=>{"use strict";pn.__esModule=!0;pn.default=void 0;var um=fm(Ei()),lm=$e();function fm(e){return e&&e.__esModule?e:{default:e}}function cm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zo(e,t)}function Zo(e,t){return Zo=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Zo(e,t)}var dm=function(e){cm(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=lm.TAG,n}return t}(um.default);pn.default=dm;Al.exports=pn.default});var rs=q((hn,Rl)=>{"use strict";hn.__esModule=!0;hn.default=void 0;var pm=mm($t()),hm=$e();function mm(e){return e&&e.__esModule?e:{default:e}}function gm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ts(e,t)}function ts(e,t){return ts=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ts(e,t)}var bm=function(e){gm(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=hm.STRING,n}return t}(pm.default);hn.default=bm;Rl.exports=hn.default});var is=q((mn,Cl)=>{"use strict";mn.__esModule=!0;mn.default=void 0;var vm=xm(_i()),ym=$e();function xm(e){return e&&e.__esModule?e:{default:e}}function wm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ns(e,t)}function ns(e,t){return ns=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ns(e,t)}var Sm=function(e){wm(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=ym.PSEUDO,i}var r=t.prototype;return r.toString=function(){var i=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),i,this.rawSpaceAfter].join("")},t}(vm.default);mn.default=Sm;Cl.exports=mn.default});var Ml=q((Qx,Ll)=>{Ll.exports=function(t,r){return function(...n){return console.warn(r),t(...n)}}});var fs=q(vn=>{"use strict";vn.__esModule=!0;vn.unescapeValue=ls;vn.default=void 0;var gn=us(Ti()),_m=us($o()),Tm=us(Ei()),Em=$e(),os;function us(e){return e&&e.__esModule?e:{default:e}}function Nl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function km(e,t,r){return t&&Nl(e.prototype,t),r&&Nl(e,r),e}function Pm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,as(e,t)}function as(e,t){return as=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},as(e,t)}var bn=Ml(),Om=/^('|")([^]*)\1$/,Im=bn(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),Am=bn(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),Rm=bn(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function ls(e){var t=!1,r=null,n=e,i=n.match(Om);return i&&(r=i[1],n=i[2]),n=(0,_m.default)(n),n!==e&&(t=!0),{deprecatedUsage:t,unescaped:n,quoteMark:r}}function Cm(e){if(e.quoteMark!==void 0||e.value===void 0)return e;Rm();var t=ls(e.value),r=t.quoteMark,n=t.unescaped;return e.raws||(e.raws={}),e.raws.value===void 0&&(e.raws.value=e.value),e.value=n,e.quoteMark=r,e}var ki=function(e){Pm(t,e);function t(n){var i;return n===void 0&&(n={}),i=e.call(this,Cm(n))||this,i.type=Em.ATTRIBUTE,i.raws=i.raws||{},Object.defineProperty(i.raws,"unquoted",{get:bn(function(){return i.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:bn(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 r=t.prototype;return r.getQuotedValue=function(i){i===void 0&&(i={});var o=this._determineQuoteMark(i),s=ss[o],a=(0,gn.default)(this._value,s);return a},r._determineQuoteMark=function(i){return i.smart?this.smartQuoteMark(i):this.preferredQuoteMark(i)},r.setValue=function(i,o){o===void 0&&(o={}),this._value=i,this._quoteMark=this._determineQuoteMark(o),this._syncRawValue()},r.smartQuoteMark=function(i){var o=this.value,s=o.replace(/[^']/g,"").length,a=o.replace(/[^"]/g,"").length;if(s+a===0){var u=(0,gn.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,p=ss[f],m=(0,gn.default)(o,p);if(m.length<u.length)return f}return l}else return a===s?this.preferredQuoteMark(i):a<s?t.DOUBLE_QUOTE:t.SINGLE_QUOTE},r.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},r._syncRawValue=function(){var i=(0,gn.default)(this._value,ss[this.quoteMark]);i===this._value?this.raws&&delete this.raws.value:this.raws.value=i},r._handleEscapes=function(i,o){if(this._constructed){var s=(0,gn.default)(o,{isIdentifier:!0});s!==o?this.raws[i]=s:delete this.raws[i]}},r._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)},r._stringFor=function(i,o,s){o===void 0&&(o=i),s===void 0&&(s=Fl);var a=this._spacesFor(o);return s(this.stringifyProperty(i),a)},r.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 p=this._spacesFor("insensitive");return o+=p.before.length,i==="insensitive"&&this.insensitive?o:-1},r.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=" "),Fl(s,a)}))),o.push("]"),o.push(this.rawSpaceAfter),o.join("")},km(t,[{key:"quoted",get:function(){var i=this.quoteMark;return i==="'"||i==='"'},set:function(i){Am()}},{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=ls(i),s=o.deprecatedUsage,a=o.unescaped,u=o.quoteMark;if(s&&Im(),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}(Tm.default);vn.default=ki;ki.NO_QUOTE=null;ki.SINGLE_QUOTE="'";ki.DOUBLE_QUOTE='"';var ss=(os={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},os[null]={isIdentifier:!0},os);function Fl(e,t){return""+t.before+e+t.after}});var ds=q((yn,Wl)=>{"use strict";yn.__esModule=!0;yn.default=void 0;var Lm=Nm(Ei()),Mm=$e();function Nm(e){return e&&e.__esModule?e:{default:e}}function Fm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cs(e,t)}function cs(e,t){return cs=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},cs(e,t)}var Wm=function(e){Fm(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=Mm.UNIVERSAL,n.value="*",n}return t}(Lm.default);yn.default=Wm;Wl.exports=yn.default});var hs=q((xn,Dl)=>{"use strict";xn.__esModule=!0;xn.default=void 0;var Dm=Bm($t()),$m=$e();function Bm(e){return e&&e.__esModule?e:{default:e}}function Um(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ps(e,t)}function ps(e,t){return ps=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ps(e,t)}var qm=function(e){Um(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=$m.COMBINATOR,n}return t}(Dm.default);xn.default=qm;Dl.exports=xn.default});var gs=q((wn,$l)=>{"use strict";wn.__esModule=!0;wn.default=void 0;var zm=jm($t()),Gm=$e();function jm(e){return e&&e.__esModule?e:{default:e}}function Vm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ms(e,t)}function ms(e,t){return ms=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ms(e,t)}var Hm=function(e){Vm(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=Gm.NESTING,n.value="&",n}return t}(zm.default);wn.default=Hm;$l.exports=wn.default});var Ul=q((Pi,Bl)=>{"use strict";Pi.__esModule=!0;Pi.default=Ym;function Ym(e){return e.sort(function(t,r){return t-r})}Bl.exports=Pi.default});var bs=q(U=>{"use strict";U.__esModule=!0;U.combinator=U.word=U.comment=U.str=U.tab=U.newline=U.feed=U.cr=U.backslash=U.bang=U.slash=U.doubleQuote=U.singleQuote=U.space=U.greaterThan=U.pipe=U.equals=U.plus=U.caret=U.tilde=U.dollar=U.closeSquare=U.openSquare=U.closeParenthesis=U.openParenthesis=U.semicolon=U.colon=U.comma=U.at=U.asterisk=U.ampersand=void 0;var Xm=38;U.ampersand=Xm;var Qm=42;U.asterisk=Qm;var Km=64;U.at=Km;var Jm=44;U.comma=Jm;var Zm=58;U.colon=Zm;var e0=59;U.semicolon=e0;var t0=40;U.openParenthesis=t0;var r0=41;U.closeParenthesis=r0;var n0=91;U.openSquare=n0;var i0=93;U.closeSquare=i0;var o0=36;U.dollar=o0;var s0=126;U.tilde=s0;var a0=94;U.caret=a0;var u0=43;U.plus=u0;var l0=61;U.equals=l0;var f0=124;U.pipe=f0;var c0=62;U.greaterThan=c0;var d0=32;U.space=d0;var ql=39;U.singleQuote=ql;var p0=34;U.doubleQuote=p0;var h0=47;U.slash=h0;var m0=33;U.bang=m0;var g0=92;U.backslash=g0;var b0=13;U.cr=b0;var v0=12;U.feed=v0;var y0=10;U.newline=y0;var x0=9;U.tab=x0;var w0=ql;U.str=w0;var S0=-1;U.comment=S0;var _0=-2;U.word=_0;var T0=-3;U.combinator=T0});var jl=q(Sn=>{"use strict";Sn.__esModule=!0;Sn.default=R0;Sn.FIELDS=void 0;var D=E0(bs()),Ir,ge;function Gl(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Gl=function(){return e},e}function E0(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Gl();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}var k0=(Ir={},Ir[D.tab]=!0,Ir[D.newline]=!0,Ir[D.cr]=!0,Ir[D.feed]=!0,Ir),P0=(ge={},ge[D.space]=!0,ge[D.tab]=!0,ge[D.newline]=!0,ge[D.cr]=!0,ge[D.feed]=!0,ge[D.ampersand]=!0,ge[D.asterisk]=!0,ge[D.bang]=!0,ge[D.comma]=!0,ge[D.colon]=!0,ge[D.semicolon]=!0,ge[D.openParenthesis]=!0,ge[D.closeParenthesis]=!0,ge[D.openSquare]=!0,ge[D.closeSquare]=!0,ge[D.singleQuote]=!0,ge[D.doubleQuote]=!0,ge[D.plus]=!0,ge[D.pipe]=!0,ge[D.tilde]=!0,ge[D.greaterThan]=!0,ge[D.equals]=!0,ge[D.dollar]=!0,ge[D.caret]=!0,ge[D.slash]=!0,ge),vs={},zl="0123456789abcdefABCDEF";for(Oi=0;Oi<zl.length;Oi++)vs[zl.charCodeAt(Oi)]=!0;var Oi;function O0(e,t){var r=t,n;do{if(n=e.charCodeAt(r),P0[n])return r-1;n===D.backslash?r=I0(e,r)+1:r++}while(r<e.length);return r-1}function I0(e,t){var r=t,n=e.charCodeAt(r+1);if(!k0[n])if(vs[n]){var i=0;do r++,i++,n=e.charCodeAt(r+1);while(vs[n]&&i<6);i<6&&n===D.space&&r++}else r++;return r}var A0={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};Sn.FIELDS=A0;function R0(e){var t=[],r=e.css.valueOf(),n=r,i=n.length,o=-1,s=1,a=0,u=0,l,f,p,m,h,g,v,w,_,O,x,E,T;function I(N,W){if(e.safe)r+=W,_=r.length-1;else throw e.error("Unclosed "+N,s,a-o,a)}for(;a<i;){switch(l=r.charCodeAt(a),l===D.newline&&(o=a,s+=1),l){case D.space:case D.tab:case D.newline:case D.cr:case D.feed:_=a;do _+=1,l=r.charCodeAt(_),l===D.newline&&(o=_,s+=1);while(l===D.space||l===D.newline||l===D.tab||l===D.cr||l===D.feed);T=D.space,m=s,p=_-o-1,u=_;break;case D.plus:case D.greaterThan:case D.tilde:case D.pipe:_=a;do _+=1,l=r.charCodeAt(_);while(l===D.plus||l===D.greaterThan||l===D.tilde||l===D.pipe);T=D.combinator,m=s,p=a-o,u=_;break;case D.asterisk:case D.ampersand:case D.bang:case D.comma:case D.equals:case D.dollar:case D.caret:case D.openSquare:case D.closeSquare:case D.colon:case D.semicolon:case D.openParenthesis:case D.closeParenthesis:_=a,T=l,m=s,p=a-o,u=_+1;break;case D.singleQuote:case D.doubleQuote:E=l===D.singleQuote?"'":'"',_=a;do for(h=!1,_=r.indexOf(E,_+1),_===-1&&I("quote",E),g=_;r.charCodeAt(g-1)===D.backslash;)g-=1,h=!h;while(h);T=D.str,m=s,p=a-o,u=_+1;break;default:l===D.slash&&r.charCodeAt(a+1)===D.asterisk?(_=r.indexOf("*/",a+2)+1,_===0&&I("comment","*/"),f=r.slice(a,_+1),w=f.split(`
|
|
4
|
-
`),v=w.length-1,v>0?(O=s+v,x=_-w[v].length):(O=s,x=o),T=D.comment,s=O,m=O,p=_-x):l===D.slash?(_=a,T=l,m=s,p=a-o,u=_+1):(_=O0(r,a),T=D.word,m=s,p=_-o),u=_+1;break}t.push([T,s,a-o,m,p,a,u]),x&&(o=x,x=null),a=u}return t}});var Zl=q((_n,Jl)=>{"use strict";_n.__esModule=!0;_n.default=void 0;var C0=ut(qo()),ys=ut(Go()),L0=ut(Ho()),Vl=ut(Xo()),M0=ut(Ko()),N0=ut(es()),xs=ut(rs()),F0=ut(is()),Hl=Ii(fs()),W0=ut(ds()),ws=ut(hs()),D0=ut(gs()),$0=ut(Ul()),C=Ii(jl()),B=Ii(bs()),B0=Ii($e()),Te=nn(),ur,Ss;function Kl(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Kl=function(){return e},e}function Ii(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Kl();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}function ut(e){return e&&e.__esModule?e:{default:e}}function Yl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function U0(e,t,r){return t&&Yl(e.prototype,t),r&&Yl(e,r),e}var Es=(ur={},ur[B.space]=!0,ur[B.cr]=!0,ur[B.feed]=!0,ur[B.newline]=!0,ur[B.tab]=!0,ur),q0=Object.assign({},Es,(Ss={},Ss[B.comment]=!0,Ss));function Xl(e){return{line:e[C.FIELDS.START_LINE],column:e[C.FIELDS.START_COL]}}function Ql(e){return{line:e[C.FIELDS.END_LINE],column:e[C.FIELDS.END_COL]}}function lr(e,t,r,n){return{start:{line:e,column:t},end:{line:r,column:n}}}function Ar(e){return lr(e[C.FIELDS.START_LINE],e[C.FIELDS.START_COL],e[C.FIELDS.END_LINE],e[C.FIELDS.END_COL])}function _s(e,t){if(e)return lr(e[C.FIELDS.START_LINE],e[C.FIELDS.START_COL],t[C.FIELDS.END_LINE],t[C.FIELDS.END_COL])}function Rr(e,t){var r=e[t];if(typeof r=="string")return r.indexOf("\\")!==-1&&((0,Te.ensureObject)(e,"raws"),e[t]=(0,Te.unesc)(r),e.raws[t]===void 0&&(e.raws[t]=r)),e}function Ts(e,t){for(var r=-1,n=[];(r=e.indexOf(t,r+1))!==-1;)n.push(r);return n}function z0(){var e=Array.prototype.concat.apply([],arguments);return e.filter(function(t,r){return r===e.indexOf(t)})}var G0=function(){function e(r,n){n===void 0&&(n={}),this.rule=r,this.options=Object.assign({lossy:!1,safe:!1},n),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,C.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var i=_s(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new C0.default({source:i}),this.root.errorGenerator=this._errorGenerator();var o=new ys.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 n=this;return function(i,o){return typeof n.rule=="string"?new Error(i):n.rule.error(i,o)}},t.attribute=function(){var n=[],i=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[C.FIELDS.TYPE]!==B.closeSquare;)n.push(this.currToken),this.position++;if(this.currToken[C.FIELDS.TYPE]!==B.closeSquare)return this.expected("closing square bracket",this.currToken[C.FIELDS.START_POS]);var o=n.length,s={source:lr(i[1],i[2],this.currToken[3],this.currToken[4]),sourceIndex:i[C.FIELDS.START_POS]};if(o===1&&!~[B.word].indexOf(n[0][C.FIELDS.TYPE]))return this.expected("attribute",n[0][C.FIELDS.START_POS]);for(var a=0,u="",l="",f=null,p=!1;a<o;){var m=n[a],h=this.content(m),g=n[a+1];switch(m[C.FIELDS.TYPE]){case B.space:if(p=!0,this.options.lossy)break;if(f){(0,Te.ensureObject)(s,"spaces",f);var v=s.spaces[f].after||"";s.spaces[f].after=v+h;var w=(0,Te.getProp)(s,"raws","spaces",f,"after")||null;w&&(s.raws.spaces[f].after=w+h)}else u=u+h,l=l+h;break;case B.asterisk:if(g[C.FIELDS.TYPE]===B.equals)s.operator=h,f="operator";else if((!s.namespace||f==="namespace"&&!p)&&g){u&&((0,Te.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),l&&((0,Te.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=u,l=""),s.namespace=(s.namespace||"")+h;var _=(0,Te.getProp)(s,"raws","namespace")||null;_&&(s.raws.namespace+=h),f="namespace"}p=!1;break;case B.dollar:if(f==="value"){var O=(0,Te.getProp)(s,"raws","value");s.value+="$",O&&(s.raws.value=O+"$");break}case B.caret:g[C.FIELDS.TYPE]===B.equals&&(s.operator=h,f="operator"),p=!1;break;case B.combinator:if(h==="~"&&g[C.FIELDS.TYPE]===B.equals&&(s.operator=h,f="operator"),h!=="|"){p=!1;break}g[C.FIELDS.TYPE]===B.equals?(s.operator=h,f="operator"):!s.namespace&&!s.attribute&&(s.namespace=!0),p=!1;break;case B.word:if(g&&this.content(g)==="|"&&n[a+2]&&n[a+2][C.FIELDS.TYPE]!==B.equals&&!s.operator&&!s.namespace)s.namespace=h,f="namespace";else if(!s.attribute||f==="attribute"&&!p){u&&((0,Te.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),l&&((0,Te.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=l,l=""),s.attribute=(s.attribute||"")+h;var x=(0,Te.getProp)(s,"raws","attribute")||null;x&&(s.raws.attribute+=h),f="attribute"}else if(!s.value&&s.value!==""||f==="value"&&!p){var E=(0,Te.unesc)(h),T=(0,Te.getProp)(s,"raws","value")||"",I=s.value||"";s.value=I+E,s.quoteMark=null,(E!==h||T)&&((0,Te.ensureObject)(s,"raws"),s.raws.value=(T||I)+h),f="value"}else{var N=h==="i"||h==="I";(s.value||s.value==="")&&(s.quoteMark||p)?(s.insensitive=N,(!N||h==="I")&&((0,Te.ensureObject)(s,"raws"),s.raws.insensitiveFlag=h),f="insensitive",u&&((0,Te.ensureObject)(s,"spaces","insensitive"),s.spaces.insensitive.before=u,u=""),l&&((0,Te.ensureObject)(s,"raws","spaces","insensitive"),s.raws.spaces.insensitive.before=l,l="")):(s.value||s.value==="")&&(f="value",s.value+=h,s.raws.value&&(s.raws.value+=h))}p=!1;break;case B.str:if(!s.attribute||!s.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:m[C.FIELDS.START_POS]});var W=(0,Hl.unescapeValue)(h),G=W.unescaped,J=W.quoteMark;s.value=G,s.quoteMark=J,f="value",(0,Te.ensureObject)(s,"raws"),s.raws.value=h,p=!1;break;case B.equals:if(!s.attribute)return this.expected("attribute",m[C.FIELDS.START_POS],h);if(s.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:m[C.FIELDS.START_POS]});s.operator=s.operator?s.operator+h:h,f="operator",p=!1;break;case B.comment:if(f)if(p||g&&g[C.FIELDS.TYPE]===B.space||f==="insensitive"){var fe=(0,Te.getProp)(s,"spaces",f,"after")||"",be=(0,Te.getProp)(s,"raws","spaces",f,"after")||fe;(0,Te.ensureObject)(s,"raws","spaces",f),s.raws.spaces[f].after=be+h}else{var he=s[f]||"",ue=(0,Te.getProp)(s,"raws",f)||he;(0,Te.ensureObject)(s,"raws"),s.raws[f]=ue+h}else l=l+h;break;default:return this.error('Unexpected "'+h+'" found.',{index:m[C.FIELDS.START_POS]})}a++}Rr(s,"attribute"),Rr(s,"namespace"),this.newNode(new Hl.default(s)),this.position++},t.parseWhitespaceEquivalentTokens=function(n){n<0&&(n=this.tokens.length);var i=this.position,o=[],s="",a=void 0;do if(Es[this.currToken[C.FIELDS.TYPE]])this.options.lossy||(s+=this.content());else if(this.currToken[C.FIELDS.TYPE]===B.comment){var u={};s&&(u.before=s,s=""),a=new Vl.default({value:this.content(),source:Ar(this.currToken),sourceIndex:this.currToken[C.FIELDS.START_POS],spaces:u}),o.push(a)}while(++this.position<n);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 xs.default({value:"",source:lr(l[C.FIELDS.START_LINE],l[C.FIELDS.START_COL],f[C.FIELDS.END_LINE],f[C.FIELDS.END_COL]),sourceIndex:l[C.FIELDS.START_POS],spaces:{before:s,after:""}}))}}return o},t.convertWhitespaceNodesToSpace=function(n,i){var o=this;i===void 0&&(i=!1);var s="",a="";n.forEach(function(l){var f=o.lossySpace(l.spaces.before,i),p=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&&p.length===0)}),a===s&&(a=void 0);var u={space:s,rawSpace:a};return u},t.isNamedCombinator=function(n){return n===void 0&&(n=this.position),this.tokens[n+0]&&this.tokens[n+0][C.FIELDS.TYPE]===B.slash&&this.tokens[n+1]&&this.tokens[n+1][C.FIELDS.TYPE]===B.word&&this.tokens[n+2]&&this.tokens[n+2][C.FIELDS.TYPE]===B.slash},t.namedCombinator=function(){if(this.isNamedCombinator()){var n=this.content(this.tokens[this.position+1]),i=(0,Te.unesc)(n).toLowerCase(),o={};i!==n&&(o.value="/"+n+"/");var s=new ws.default({value:"/"+i+"/",source:lr(this.currToken[C.FIELDS.START_LINE],this.currToken[C.FIELDS.START_COL],this.tokens[this.position+2][C.FIELDS.END_LINE],this.tokens[this.position+2][C.FIELDS.END_COL]),sourceIndex:this.currToken[C.FIELDS.START_POS],raws:o});return this.position=this.position+3,s}else this.unexpected()},t.combinator=function(){var n=this;if(this.content()==="|")return this.namespace();var i=this.locateNextMeaningfulToken(this.position);if(i<0||this.tokens[i][C.FIELDS.TYPE]===B.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(T){return n.newNode(T)})}return}var f=this.currToken,p=void 0;i>this.position&&(p=this.parseWhitespaceEquivalentTokens(i));var m;if(this.isNamedCombinator()?m=this.namedCombinator():this.currToken[C.FIELDS.TYPE]===B.combinator?(m=new ws.default({value:this.content(),source:Ar(this.currToken),sourceIndex:this.currToken[C.FIELDS.START_POS]}),this.position++):Es[this.currToken[C.FIELDS.TYPE]]||p||this.unexpected(),m){if(p){var h=this.convertWhitespaceNodesToSpace(p),g=h.space,v=h.rawSpace;m.spaces.before=g,m.rawSpaceBefore=v}}else{var w=this.convertWhitespaceNodesToSpace(p,!0),_=w.space,O=w.rawSpace;O||(O=_);var x={},E={spaces:{}};_.endsWith(" ")&&O.endsWith(" ")?(x.before=_.slice(0,_.length-1),E.spaces.before=O.slice(0,O.length-1)):_.startsWith(" ")&&O.startsWith(" ")?(x.after=_.slice(1),E.spaces.after=O.slice(1)):E.value=O,m=new ws.default({value:" ",source:_s(f,this.tokens[this.position-1]),sourceIndex:f[C.FIELDS.START_POS],spaces:x,raws:E})}return this.currToken&&this.currToken[C.FIELDS.TYPE]===B.space&&(m.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(m)},t.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var n=new ys.default({source:{start:Xl(this.tokens[this.position+1])}});this.current.parent.append(n),this.current=n,this.position++},t.comment=function(){var n=this.currToken;this.newNode(new Vl.default({value:this.content(),source:Ar(n),sourceIndex:n[C.FIELDS.START_POS]})),this.position++},t.error=function(n,i){throw this.root.error(n,i)},t.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[C.FIELDS.START_POS]})},t.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[C.FIELDS.START_POS])},t.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[C.FIELDS.START_POS])},t.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[C.FIELDS.START_POS])},t.namespace=function(){var n=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[C.FIELDS.TYPE]===B.word)return this.position++,this.word(n);if(this.nextToken[C.FIELDS.TYPE]===B.asterisk)return this.position++,this.universal(n)},t.nesting=function(){if(this.nextToken){var n=this.content(this.nextToken);if(n==="|"){this.position++;return}}var i=this.currToken;this.newNode(new D0.default({value:this.content(),source:Ar(i),sourceIndex:i[C.FIELDS.START_POS]})),this.position++},t.parentheses=function(){var n=this.current.last,i=1;if(this.position++,n&&n.type===B0.PSEUDO){var o=new ys.default({source:{start:Xl(this.tokens[this.position-1])}}),s=this.current;for(n.append(o),this.current=o;this.position<this.tokens.length&&i;)this.currToken[C.FIELDS.TYPE]===B.openParenthesis&&i++,this.currToken[C.FIELDS.TYPE]===B.closeParenthesis&&i--,i?this.parse():(this.current.source.end=Ql(this.currToken),this.current.parent.source.end=Ql(this.currToken),this.position++);this.current=s}else{for(var a=this.currToken,u="(",l;this.position<this.tokens.length&&i;)this.currToken[C.FIELDS.TYPE]===B.openParenthesis&&i++,this.currToken[C.FIELDS.TYPE]===B.closeParenthesis&&i--,l=this.currToken,u+=this.parseParenthesisToken(this.currToken),this.position++;n?n.appendToPropertyAndEscape("value",u,u):this.newNode(new xs.default({value:u,source:lr(a[C.FIELDS.START_LINE],a[C.FIELDS.START_COL],l[C.FIELDS.END_LINE],l[C.FIELDS.END_COL]),sourceIndex:a[C.FIELDS.START_POS]}))}if(i)return this.expected("closing parenthesis",this.currToken[C.FIELDS.START_POS])},t.pseudo=function(){for(var n=this,i="",o=this.currToken;this.currToken&&this.currToken[C.FIELDS.TYPE]===B.colon;)i+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[C.FIELDS.TYPE]===B.word)this.splitWord(!1,function(s,a){i+=s,n.newNode(new F0.default({value:i,source:_s(o,n.currToken),sourceIndex:o[C.FIELDS.START_POS]})),a>1&&n.nextToken&&n.nextToken[C.FIELDS.TYPE]===B.openParenthesis&&n.error("Misplaced parenthesis.",{index:n.nextToken[C.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[C.FIELDS.START_POS])},t.space=function(){var n=this.content();this.position===0||this.prevToken[C.FIELDS.TYPE]===B.comma||this.prevToken[C.FIELDS.TYPE]===B.openParenthesis||this.current.nodes.every(function(i){return i.type==="comment"})?(this.spaces=this.optionalSpace(n),this.position++):this.position===this.tokens.length-1||this.nextToken[C.FIELDS.TYPE]===B.comma||this.nextToken[C.FIELDS.TYPE]===B.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(n),this.position++):this.combinator()},t.string=function(){var n=this.currToken;this.newNode(new xs.default({value:this.content(),source:Ar(n),sourceIndex:n[C.FIELDS.START_POS]})),this.position++},t.universal=function(n){var i=this.nextToken;if(i&&this.content(i)==="|")return this.position++,this.namespace();var o=this.currToken;this.newNode(new W0.default({value:this.content(),source:Ar(o),sourceIndex:o[C.FIELDS.START_POS]}),n),this.position++},t.splitWord=function(n,i){for(var o=this,s=this.nextToken,a=this.content();s&&~[B.dollar,B.caret,B.equals,B.word].indexOf(s[C.FIELDS.TYPE]);){this.position++;var u=this.content();if(a+=u,u.lastIndexOf("\\")===u.length-1){var l=this.nextToken;l&&l[C.FIELDS.TYPE]===B.space&&(a+=this.requiredSpace(this.content(l)),this.position++)}s=this.nextToken}var f=Ts(a,".").filter(function(g){var v=a[g-1]==="\\",w=/^\d+\.\d+%$/.test(a);return!v&&!w}),p=Ts(a,"#").filter(function(g){return a[g-1]!=="\\"}),m=Ts(a,"#{");m.length&&(p=p.filter(function(g){return!~m.indexOf(g)}));var h=(0,$0.default)(z0([0].concat(f,p)));h.forEach(function(g,v){var w=h[v+1]||a.length,_=a.slice(g,w);if(v===0&&i)return i.call(o,_,h.length);var O,x=o.currToken,E=x[C.FIELDS.START_POS]+h[v],T=lr(x[1],x[2]+g,x[3],x[2]+(w-1));if(~f.indexOf(g)){var I={value:_.slice(1),source:T,sourceIndex:E};O=new L0.default(Rr(I,"value"))}else if(~p.indexOf(g)){var N={value:_.slice(1),source:T,sourceIndex:E};O=new M0.default(Rr(N,"value"))}else{var W={value:_,source:T,sourceIndex:E};Rr(W,"value"),O=new N0.default(W)}o.newNode(O,n),n=null}),this.position++},t.word=function(n){var i=this.nextToken;return i&&this.content(i)==="|"?(this.position++,this.namespace()):this.splitWord(n)},t.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},t.parse=function(n){switch(this.currToken[C.FIELDS.TYPE]){case B.space:this.space();break;case B.comment:this.comment();break;case B.openParenthesis:this.parentheses();break;case B.closeParenthesis:n&&this.missingParenthesis();break;case B.openSquare:this.attribute();break;case B.dollar:case B.caret:case B.equals:case B.word:this.word();break;case B.colon:this.pseudo();break;case B.comma:this.comma();break;case B.asterisk:this.universal();break;case B.ampersand:this.nesting();break;case B.slash:case B.combinator:this.combinator();break;case B.str:this.string();break;case B.closeSquare:this.missingSquareBracket();case B.semicolon:this.missingBackslash();default:this.unexpected()}},t.expected=function(n,i,o){if(Array.isArray(n)){var s=n.pop();n=n.join(", ")+" or "+s}var a=/^[aeiou]/.test(n[0])?"an":"a";return o?this.error("Expected "+a+" "+n+', found "'+o+'" instead.',{index:i}):this.error("Expected "+a+" "+n+".",{index:i})},t.requiredSpace=function(n){return this.options.lossy?" ":n},t.optionalSpace=function(n){return this.options.lossy?"":n},t.lossySpace=function(n,i){return this.options.lossy?i?" ":"":n},t.parseParenthesisToken=function(n){var i=this.content(n);return n[C.FIELDS.TYPE]===B.space?this.requiredSpace(i):i},t.newNode=function(n,i){return i&&(/^ +$/.test(i)&&(this.options.lossy||(this.spaces=(this.spaces||"")+i),i=!0),n.namespace=i,Rr(n,"namespace")),this.spaces&&(n.spaces.before=this.spaces,this.spaces=""),this.current.append(n)},t.content=function(n){return n===void 0&&(n=this.currToken),this.css.slice(n[C.FIELDS.START_POS],n[C.FIELDS.END_POS])},t.locateNextMeaningfulToken=function(n){n===void 0&&(n=this.position+1);for(var i=n;i<this.tokens.length;)if(q0[this.tokens[i][C.FIELDS.TYPE]]){i++;continue}else return i;return-1},U0(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}();_n.default=G0;Jl.exports=_n.default});var tf=q((Tn,ef)=>{"use strict";Tn.__esModule=!0;Tn.default=void 0;var j0=V0(Zl());function V0(e){return e&&e.__esModule?e:{default:e}}var H0=function(){function e(r,n){this.func=r||function(){},this.funcRes=null,this.options=n}var t=e.prototype;return t._shouldUpdateSelector=function(n,i){i===void 0&&(i={});var o=Object.assign({},this.options,i);return o.updateSelector===!1?!1:typeof n!="string"},t._isLossy=function(n){n===void 0&&(n={});var i=Object.assign({},this.options,n);return i.lossless===!1},t._root=function(n,i){i===void 0&&(i={});var o=new j0.default(n,this._parseOptions(i));return o.root},t._parseOptions=function(n){return{lossy:this._isLossy(n)}},t._run=function(n,i){var o=this;return i===void 0&&(i={}),new Promise(function(s,a){try{var u=o._root(n,i);Promise.resolve(o.func(u)).then(function(l){var f=void 0;return o._shouldUpdateSelector(n,i)&&(f=u.toString(),n.selector=f),{transform:l,root:u,string:f}}).then(s,a)}catch(l){a(l);return}})},t._runSync=function(n,i){i===void 0&&(i={});var o=this._root(n,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 n!="string"&&(a=o.toString(),n.selector=a),{transform:s,root:o,string:a}},t.ast=function(n,i){return this._run(n,i).then(function(o){return o.root})},t.astSync=function(n,i){return this._runSync(n,i).root},t.transform=function(n,i){return this._run(n,i).then(function(o){return o.transform})},t.transformSync=function(n,i){return this._runSync(n,i).transform},t.process=function(n,i){return this._run(n,i).then(function(o){return o.string||o.root.toString()})},t.processSync=function(n,i){var o=this._runSync(n,i);return o.string||o.root.toString()},e}();Tn.default=H0;ef.exports=Tn.default});var rf=q(ye=>{"use strict";ye.__esModule=!0;ye.universal=ye.tag=ye.string=ye.selector=ye.root=ye.pseudo=ye.nesting=ye.id=ye.comment=ye.combinator=ye.className=ye.attribute=void 0;var Y0=lt(fs()),X0=lt(Ho()),Q0=lt(hs()),K0=lt(Xo()),J0=lt(Ko()),Z0=lt(gs()),eg=lt(is()),tg=lt(qo()),rg=lt(Go()),ng=lt(rs()),ig=lt(es()),og=lt(ds());function lt(e){return e&&e.__esModule?e:{default:e}}var sg=function(t){return new Y0.default(t)};ye.attribute=sg;var ag=function(t){return new X0.default(t)};ye.className=ag;var ug=function(t){return new Q0.default(t)};ye.combinator=ug;var lg=function(t){return new K0.default(t)};ye.comment=lg;var fg=function(t){return new J0.default(t)};ye.id=fg;var cg=function(t){return new Z0.default(t)};ye.nesting=cg;var dg=function(t){return new eg.default(t)};ye.pseudo=dg;var pg=function(t){return new tg.default(t)};ye.root=pg;var hg=function(t){return new rg.default(t)};ye.selector=hg;var mg=function(t){return new ng.default(t)};ye.string=mg;var gg=function(t){return new ig.default(t)};ye.tag=gg;var bg=function(t){return new og.default(t)};ye.universal=bg});var af=q(se=>{"use strict";se.__esModule=!0;se.isNode=ks;se.isPseudoElement=sf;se.isPseudoClass=Og;se.isContainer=Ig;se.isNamespace=Ag;se.isUniversal=se.isTag=se.isString=se.isSelector=se.isRoot=se.isPseudo=se.isNesting=se.isIdentifier=se.isComment=se.isCombinator=se.isClassName=se.isAttribute=void 0;var Ee=$e(),Qe,vg=(Qe={},Qe[Ee.ATTRIBUTE]=!0,Qe[Ee.CLASS]=!0,Qe[Ee.COMBINATOR]=!0,Qe[Ee.COMMENT]=!0,Qe[Ee.ID]=!0,Qe[Ee.NESTING]=!0,Qe[Ee.PSEUDO]=!0,Qe[Ee.ROOT]=!0,Qe[Ee.SELECTOR]=!0,Qe[Ee.STRING]=!0,Qe[Ee.TAG]=!0,Qe[Ee.UNIVERSAL]=!0,Qe);function ks(e){return typeof e=="object"&&vg[e.type]}function ft(e,t){return ks(t)&&t.type===e}var nf=ft.bind(null,Ee.ATTRIBUTE);se.isAttribute=nf;var yg=ft.bind(null,Ee.CLASS);se.isClassName=yg;var xg=ft.bind(null,Ee.COMBINATOR);se.isCombinator=xg;var wg=ft.bind(null,Ee.COMMENT);se.isComment=wg;var Sg=ft.bind(null,Ee.ID);se.isIdentifier=Sg;var _g=ft.bind(null,Ee.NESTING);se.isNesting=_g;var Ps=ft.bind(null,Ee.PSEUDO);se.isPseudo=Ps;var Tg=ft.bind(null,Ee.ROOT);se.isRoot=Tg;var Eg=ft.bind(null,Ee.SELECTOR);se.isSelector=Eg;var kg=ft.bind(null,Ee.STRING);se.isString=kg;var of=ft.bind(null,Ee.TAG);se.isTag=of;var Pg=ft.bind(null,Ee.UNIVERSAL);se.isUniversal=Pg;function sf(e){return Ps(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 Og(e){return Ps(e)&&!sf(e)}function Ig(e){return!!(ks(e)&&e.walk)}function Ag(e){return nf(e)||of(e)}});var uf=q(St=>{"use strict";St.__esModule=!0;var Os=$e();Object.keys(Os).forEach(function(e){e==="default"||e==="__esModule"||e in St&&St[e]===Os[e]||(St[e]=Os[e])});var Is=rf();Object.keys(Is).forEach(function(e){e==="default"||e==="__esModule"||e in St&&St[e]===Is[e]||(St[e]=Is[e])});var As=af();Object.keys(As).forEach(function(e){e==="default"||e==="__esModule"||e in St&&St[e]===As[e]||(St[e]=As[e])})});var cf=q((En,ff)=>{"use strict";En.__esModule=!0;En.default=void 0;var Rg=Mg(tf()),Cg=Lg(uf());function lf(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return lf=function(){return e},e}function Lg(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=lf();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}function Mg(e){return e&&e.__esModule?e:{default:e}}var Rs=function(t){return new Rg.default(t)};Object.assign(Rs,Cg);delete Rs.__esModule;var Ng=Rs;En.default=Ng;ff.exports=En.default});var df=q(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Object.defineProperty(Cs,"default",{enumerable:!0,get:()=>Fg});function Fg(e){return e.replace(/\\,/g,"\\2c ")}});var hf=q((iw,pf)=>{"use strict";pf.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 Ms=q(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});function Wg(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Wg(Ls,{parseColor:()=>zg,formatColor:()=>Gg});var mf=Dg(hf());function Dg(e){return e&&e.__esModule?e:{default:e}}var $g=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,Bg=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,Xt=/(?:\d+|\d*\.\d+)%?/,Ai=/(?:\s*,\s*|\s+)/,gf=/\s*[,/]\s*/,Qt=/var\(--(?:[^ )]*?)\)/,Ug=new RegExp(`^(rgb)a?\\(\\s*(${Xt.source}|${Qt.source})(?:${Ai.source}(${Xt.source}|${Qt.source}))?(?:${Ai.source}(${Xt.source}|${Qt.source}))?(?:${gf.source}(${Xt.source}|${Qt.source}))?\\s*\\)$`),qg=new RegExp(`^(hsl)a?\\(\\s*((?:${Xt.source})(?:deg|rad|grad|turn)?|${Qt.source})(?:${Ai.source}(${Xt.source}|${Qt.source}))?(?:${Ai.source}(${Xt.source}|${Qt.source}))?(?:${gf.source}(${Xt.source}|${Qt.source}))?\\s*\\)$`);function zg(e,{loose:t=!1}={}){var r,n;if(typeof e!="string")return null;if(e=e.trim(),e==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(e in mf.default)return{mode:"rgb",color:mf.default[e].map(u=>u.toString())};let i=e.replace(Bg,(u,l,f,p,m)=>["#",l,l,f,f,p,p,m?m+m:""].join("")).match($g);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(Ug))!==null&&o!==void 0?o:e.match(qg);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:(r=s[5])===null||r===void 0||(n=r.toString)===null||n===void 0?void 0:n.call(r)}}function Gg({mode:e,color:t,alpha:r}){let n=r!==void 0;return`${e}(${t.join(" ")}${n?` / ${r}`:""})`}});var Fs=q(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});function jg(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}jg(Ns,{withAlphaValue:()=>Vg,default:()=>Hg});var Ri=Ms();function Vg(e,t,r){if(typeof e=="function")return e({opacityValue:t});let n=(0,Ri.parseColor)(e,{loose:!0});return n===null?r:(0,Ri.formatColor)({...n,alpha:t})}function Hg({color:e,property:t,variable:r}){let n=[].concat(t);if(typeof e=="function")return{[r]:"1",...Object.fromEntries(n.map(o=>[o,e({opacityVariable:r,opacityValue:`var(${r})`})]))};let i=(0,Ri.parseColor)(e);return i===null?Object.fromEntries(n.map(o=>[o,e])):i.alpha!==void 0?Object.fromEntries(n.map(o=>[o,e])):{[r]:"1",...Object.fromEntries(n.map(o=>[o,(0,Ri.formatColor)({...i,alpha:`var(${r})`})]))}}});var wf=q(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});function Yg(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Yg(Ws,{pattern:()=>Qg,withoutCapturing:()=>vf,any:()=>yf,optional:()=>Kg,zeroOrMore:()=>Jg,nestedBrackets:()=>xf,escape:()=>fr});var bf=/[\\^$.*+?()[\]{}|]/g,Xg=RegExp(bf.source);function kn(e){return e=Array.isArray(e)?e:[e],e=e.map(t=>t instanceof RegExp?t.source:t),e.join("")}function Qg(e){return new RegExp(kn(e),"g")}function vf(e){return new RegExp(`(?:${kn(e)})`,"g")}function yf(e){return`(?:${e.map(kn).join("|")})`}function Kg(e){return`(?:${kn(e)})?`}function Jg(e){return`(?:${kn(e)})*`}function xf(e,t,r=1){return vf([fr(e),/[^\s]*/,r===1?`[^${fr(e)}${fr(t)}s]*`:yf([`[^${fr(e)}${fr(t)}s]*`,xf(e,t,r-1)]),/[^\s]*/,fr(t)])}function fr(e){return e&&Xg.test(e)?e.replace(bf,"\\$&"):e||""}});var _f=q(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Object.defineProperty(Ds,"splitAtTopLevelOnly",{enumerable:!0,get:()=>tb});var Zg=eb(wf());function Sf(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Sf=function(n){return n?r:t})(e)}function eb(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Sf(t);if(r&&r.has(e))return r.get(e);var n={},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(n,o,s):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function*tb(e,t){let r=new RegExp(`[(){}\\[\\]${Zg.escape(t)}]`,"g"),n=0,i=0,o=!1,s=0,a=0,u=t.length;for(let l of e.matchAll(r)){let f=l[0]===t[s],p=s===u-1,m=f&&p;l[0]==="("&&n++,l[0]===")"&&n--,l[0]==="["&&n++,l[0]==="]"&&n--,l[0]==="{"&&n++,l[0]==="}"&&n--,f&&n===0&&(a===0&&(a=l.index),s++),m&&n===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 Ef=q($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});function rb(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}rb($s,{parseBoxShadowValue:()=>sb,formatBoxShadowValue:()=>ab});var nb=_f(),ib=new Set(["inset","inherit","initial","revert","unset"]),ob=/\ +(?![^(]*\))/g,Tf=/^-?(\d+|\.\d+)(.*?)$/g;function sb(e){return Array.from((0,nb.splitAtTopLevelOnly)(e,",")).map(r=>{let n=r.trim(),i={raw:n},o=n.split(ob),s=new Set;for(let a of o)Tf.lastIndex=0,!s.has("KEYWORD")&&ib.has(a)?(i.keyword=a,s.add("KEYWORD")):Tf.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 ab(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 Cf=q(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});function ub(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}ub(Us,{normalize:()=>Kt,url:()=>Of,number:()=>cb,percentage:()=>If,length:()=>Af,lineWidth:()=>hb,shadow:()=>mb,color:()=>gb,image:()=>bb,gradient:()=>Rf,position:()=>xb,familyName:()=>wb,genericName:()=>_b,absoluteSize:()=>Eb,relativeSize:()=>Pb});var lb=Ms(),fb=Ef(),Bs=["min","max","clamp","calc"],Pf=/,(?![^(]*\))/g,Ci=/_(?![^(]*\))/g;function Kt(e,t=!0){return e.includes("url(")?e.split(/(url\(.*?\))/g).filter(Boolean).map(r=>/^url\(.*?\)$/.test(r)?r:Kt(r,!1)).join(""):(e=e.replace(/([^\\])_+/g,(r,n)=>n+" ".repeat(r.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),t&&(e=e.trim()),e=e.replace(/(calc|min|max|clamp)\(.+\)/g,r=>r.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ")),e)}function Of(e){return e.startsWith("url(")}function cb(e){return!isNaN(Number(e))||Bs.some(t=>new RegExp(`^${t}\\(.+?`).test(e))}function If(e){return e.split(Ci).every(t=>/%$/g.test(t)||Bs.some(r=>new RegExp(`^${r}\\(.+?%`).test(t)))}var db=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],kf=`(?:${db.join("|")})`;function Af(e){return e.split(Ci).every(t=>t==="0"||new RegExp(`${kf}$`).test(t)||Bs.some(r=>new RegExp(`^${r}\\(.+?${kf}`).test(t)))}var pb=new Set(["thin","medium","thick"]);function hb(e){return pb.has(e)}function mb(e){let t=(0,fb.parseBoxShadowValue)(Kt(e));for(let r of t)if(!r.valid)return!1;return!0}function gb(e){let t=0;return e.split(Ci).every(n=>(n=Kt(n),n.startsWith("var(")?!0:(0,lb.parseColor)(n,{loose:!0})!==null?(t++,!0):!1))?t>0:!1}function bb(e){let t=0;return e.split(Pf).every(n=>(n=Kt(n),n.startsWith("var(")?!0:Of(n)||Rf(n)||["element(","image(","cross-fade(","image-set("].some(i=>n.startsWith(i))?(t++,!0):!1))?t>0:!1}var vb=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function Rf(e){e=Kt(e);for(let t of vb)if(e.startsWith(`${t}(`))return!0;return!1}var yb=new Set(["center","top","right","bottom","left"]);function xb(e){let t=0;return e.split(Ci).every(n=>(n=Kt(n),n.startsWith("var(")?!0:yb.has(n)||Af(n)||If(n)?(t++,!0):!1))?t>0:!1}function wb(e){let t=0;return e.split(Pf).every(n=>(n=Kt(n),n.startsWith("var(")?!0:n.includes(" ")&&!/(['"])([^"']+)\1/g.test(n)||/^\d/g.test(n)?!1:(t++,!0)))?t>0:!1}var Sb=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function _b(e){return Sb.has(e)}var Tb=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function Eb(e){return Tb.has(e)}var kb=new Set(["larger","smaller"]);function Pb(e){return kb.has(e)}});var Bf=q(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});function Ob(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Ob(Gs,{updateAllClasses:()=>Rb,asValue:()=>On,parseColorFormat:()=>qs,asColor:()=>Wf,asLookupValue:()=>Df,coerceValue:()=>Nb});var Ib=zs(cf()),Ab=zs(df()),Lf=Fs(),Ke=Cf(),Mf=zs(Oo());function zs(e){return e&&e.__esModule?e:{default:e}}function Rb(e,t){return(0,Ib.default)(i=>{i.walkClasses(o=>{let s=t(o.value);o.value=s,o.raws&&o.raws.value&&(o.raws.value=(0,Ab.default)(o.raws.value))})}).processSync(e)}function Ff(e,t){if(!Pn(e))return;let r=e.slice(1,-1);if(t(r))return(0,Ke.normalize)(r)}function Cb(e,t={},r){let n=t[e];if(n!==void 0)return(0,Mf.default)(n);if(Pn(e)){let i=Ff(e,r);return i===void 0?void 0:(0,Mf.default)(i)}}function On(e,t={},{validate:r=()=>!0}={}){var n;let i=(n=t.values)===null||n===void 0?void 0:n[e];return i!==void 0?i:t.supportsNegativeValues&&e.startsWith("-")?Cb(e.slice(1),t.values,r):Ff(e,r)}function Pn(e){return e.startsWith("[")&&e.endsWith("]")}function Lb(e){let t=e.lastIndexOf("/");return t===-1||t===e.length-1?[e]:[e.slice(0,t),e.slice(t+1)]}function qs(e){if(typeof e=="string"&&e.includes("<alpha-value>")){let t=e;return({opacityValue:r=1})=>t.replace("<alpha-value>",r)}return e}function Wf(e,t={},{tailwindConfig:r={}}={}){var n;if(((n=t.values)===null||n===void 0?void 0:n[e])!==void 0){var i;return qs((i=t.values)===null||i===void 0?void 0:i[e])}let[o,s]=Lb(e);if(s!==void 0){var a,u,l,f;let p=(f=(a=t.values)===null||a===void 0?void 0:a[o])!==null&&f!==void 0?f:Pn(o)?o.slice(1,-1):void 0;return p===void 0?void 0:(p=qs(p),Pn(s)?(0,Lf.withAlphaValue)(p,s.slice(1,-1)):((u=r.theme)===null||u===void 0||(l=u.opacity)===null||l===void 0?void 0:l[s])===void 0?void 0:(0,Lf.withAlphaValue)(p,r.theme.opacity[s]))}return On(e,t,{validate:Ke.color})}function Df(e,t={}){var r;return(r=t.values)===null||r===void 0?void 0:r[e]}function ct(e){return(t,r)=>On(t,r,{validate:e})}var $f={any:On,color:Wf,url:ct(Ke.url),image:ct(Ke.image),length:ct(Ke.length),percentage:ct(Ke.percentage),position:ct(Ke.position),lookup:Df,"generic-name":ct(Ke.genericName),"family-name":ct(Ke.familyName),number:ct(Ke.number),"line-width":ct(Ke.lineWidth),"absolute-size":ct(Ke.absoluteSize),"relative-size":ct(Ke.relativeSize),shadow:ct(Ke.shadow)},Nf=Object.keys($f);function Mb(e,t){let r=e.indexOf(t);return r===-1?[void 0,e]:[e.slice(0,r),e.slice(r+1)]}function Nb(e,t,r,n){if(Pn(t)){let i=t.slice(1,-1),[o,s]=Mb(i,":");if(!/^[\w-_]+$/g.test(o))s=i;else if(o!==void 0&&!Nf.includes(o))return[];if(s.length>0&&Nf.includes(o))return[On(`[${s}]`,r),o]}for(let i of[].concat(e)){let o=$f[i](t,r,{tailwindConfig:n});if(o!==void 0)return[o,i]}return[]}});var Uf=q(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});Object.defineProperty(js,"default",{enumerable:!0,get:()=>Fb});function Fb(e){return typeof e=="function"?e({}):e}});var Vf=q(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Object.defineProperty(Hs,"default",{enumerable:!0,get:()=>rv});var Wb=cr(Oo()),Db=cr(Yu()),$b=cr(Xu()),Bb=cr(Ro()),Ub=cr(Ku()),Gf=Ju(),qf=Zu(),qb=tl(),zb=cr(rl()),Gb=nl(),jb=Bf(),Vb=Fs(),Hb=cr(Uf());function cr(e){return e&&e.__esModule?e:{default:e}}function Cr(e){return typeof e=="function"}function In(e){return typeof e=="object"&&e!==null}function An(e,...t){let r=t.pop();for(let n of t)for(let i in n){let o=r(e[i],n[i]);o===void 0?In(e[i])&&In(n[i])?e[i]=An(e[i],n[i],r):e[i]=n[i]:e[i]=o}return e}var Vs={colors:Ub.default,negative(e){return Object.keys(e).filter(t=>e[t]!=="0").reduce((t,r)=>{let n=(0,Wb.default)(e[r]);return n!==void 0&&(t[`-${r}`]=n),t},{})},breakpoints(e){return Object.keys(e).filter(t=>typeof e[t]=="string").reduce((t,r)=>({...t,[`screen-${r}`]:e[r]}),{})}};function Yb(e,...t){return Cr(e)?e(...t):e}function Xb(e){return e.reduce((t,{extend:r})=>An(t,r,(n,i)=>n===void 0?[i]:Array.isArray(n)?[i,...n]:[i,n]),{})}function Qb(e){return{...e.reduce((t,r)=>(0,Gf.defaults)(t,r),{}),extend:Xb(e)}}function zf(e,t){if(Array.isArray(e)&&In(e[0]))return e.concat(t);if(Array.isArray(t)&&In(t[0])&&In(e))return[e,...t];if(Array.isArray(t))return t}function Kb({extend:e,...t}){return An(t,e,(r,n)=>!Cr(r)&&!n.some(Cr)?An({},r,...n,zf):(i,o)=>An({},...[r,...n].map(s=>Yb(s,i,o)),zf))}function*Jb(e){let t=(0,qf.toPath)(e);if(t.length===0||(yield t,Array.isArray(e)))return;let r=/^(.*?)\s*\/\s*([^/]+)$/,n=e.match(r);if(n!==null){let[,i,o]=n,s=(0,qf.toPath)(i);s.alpha=o,yield s}}function Zb(e){let t=(r,n)=>{for(let i of Jb(r)){let o=0,s=e;for(;s!=null&&o<i.length;)s=s[i[o++]],s=Cr(s)&&(i.alpha===void 0||o<=i.length-1)?s(t,Vs):s;if(s!==void 0){if(i.alpha!==void 0){let a=(0,jb.parseColorFormat)(s);return(0,Vb.withAlphaValue)(a,i.alpha,(0,Hb.default)(a))}return(0,zb.default)(s)?(0,Gb.cloneDeep)(s):s}}return n};return Object.assign(t,{theme:t,...Vs}),Object.keys(e).reduce((r,n)=>(r[n]=Cr(e[n])?e[n](t,Vs):e[n],r),{})}function jf(e){let t=[];return e.forEach(r=>{t=[...t,r];var n;let i=(n=r==null?void 0:r.plugins)!==null&&n!==void 0?n:[];i.length!==0&&i.forEach(o=>{o.__isOptionsFunction&&(o=o());var s;t=[...t,...jf([(s=o==null?void 0:o.config)!==null&&s!==void 0?s:{}])]})}),t}function ev(e){return[...e].reduceRight((r,n)=>Cr(n)?n({corePlugins:r}):(0,$b.default)(n,r),Db.default)}function tv(e){return[...e].reduceRight((r,n)=>[...r,...n],[])}function rv(e){let t=[...jf(e),{prefix:"",important:!1,separator:":",variantOrder:Bb.default.variantOrder}];var r,n;return(0,qb.normalizeConfig)((0,Gf.defaults)({theme:Zb(Kb(Qb(t.map(i=>(r=i==null?void 0:i.theme)!==null&&r!==void 0?r:{})))),corePlugins:ev(t.map(i=>i.corePlugins)),plugins:tv(e.map(i=>(n=i==null?void 0:i.plugins)!==null&&n!==void 0?n:[]))},...t))}});var Hf={};zn(Hf,{default:()=>nv});var nv,Yf=ir(()=>{nv={yellow:e=>e}});var Jf=q(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});function iv(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}iv(Ys,{flagEnabled:()=>av,issueFlagNotices:()=>uv,default:()=>lv});var ov=Kf((Yf(),Gn(Hf))),sv=Kf((bi(),Gn(gi)));function Kf(e){return e&&e.__esModule?e:{default:e}}var Xf={optimizeUniversalDefaults:!1},Rn={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function av(e,t){if(Rn.future.includes(t)){var r,n,i;return e.future==="all"||((i=(n=e==null||(r=e.future)===null||r===void 0?void 0:r[t])!==null&&n!==void 0?n:Xf[t])!==null&&i!==void 0?i:!1)}if(Rn.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:Xf[t])!==null&&a!==void 0?a:!1)}return!1}function Qf(e){if(e.experimental==="all")return Rn.experimental;var t;return Object.keys((t=e==null?void 0:e.experimental)!==null&&t!==void 0?t:{}).filter(r=>Rn.experimental.includes(r)&&e.experimental[r])}function uv(e){if(process.env.JEST_WORKER_ID===void 0&&Qf(e).length>0){let t=Qf(e).map(r=>ov.default.yellow(r)).join(", ");sv.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 lv=Rn});var ec=q(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Object.defineProperty(Xs,"default",{enumerable:!0,get:()=>Zf});var fv=dv(Ro()),cv=Jf();function dv(e){return e&&e.__esModule?e:{default:e}}function Zf(e){var t;let r=((t=e==null?void 0:e.presets)!==null&&t!==void 0?t:[fv.default]).slice().reverse().flatMap(o=>Zf(typeof o=="function"?o():o)),n={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},i=Object.keys(n).filter(o=>(0,cv.flagEnabled)(e,o)).map(o=>n[o]);return[e,...i,...r]}});var rc=q(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Object.defineProperty(Qs,"default",{enumerable:!0,get:()=>mv});var pv=tc(Vf()),hv=tc(ec());function tc(e){return e&&e.__esModule?e:{default:e}}function mv(...e){let[,...t]=(0,hv.default)(e[0]);return(0,pv.default)([...e,...t])}});var ic=q((bw,nc)=>{var Ks=rc();nc.exports=(Ks.__esModule?Ks:{default:Ks}).default});import Zc from"linebreak";var Br=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),qc=Br((e,t)=>{t.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),zc=Br((e,t)=>{t.exports=["deg","grad","rad","turn"]}),Gc=Br((e,t)=>{t.exports=["dpi","dpcm","dppx"]}),jc=Br((e,t)=>{t.exports=["Hz","kHz"]}),Vc=Br((e,t)=>{t.exports=["s","ms"]}),Hc=qc(),Sa=zc(),_a=Gc(),Ta=jc(),Ea=Vc();function Di(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(Yc(e)>1)throw new Error("Only one dot is allowed");if(/%$/.test(e)){this.type="percentage",this.value=Wi(e),this.unit="%";return}var t=Qc(e);if(!t){this.type="number",this.value=Wi(e);return}this.type=Jc(t),this.value=Wi(e.substr(0,e.length-t.length)),this.unit=t}Di.prototype.valueOf=function(){return this.value};Di.prototype.toString=function(){return this.value+(this.unit||"")};function xt(e){return new Di(e)}function Yc(e){var t=e.match(/\./g);return t?t.length:0}function Wi(e){var t=parseFloat(e);if(isNaN(t))throw new Error("Invalid number: "+e);return t}var Xc=[].concat(Sa,Ta,Hc,_a,Ea);function Qc(e){var t=e.match(/\D+$/),r=t&&t[0];if(r&&Xc.indexOf(r)===-1)throw new Error("Invalid unit: "+r);return r}var Kc=Object.assign(jn(Sa,"angle"),jn(Ta,"frequency"),jn(_a,"resolution"),jn(Ea,"time"));function jn(e,t){return Object.fromEntries(e.map(r=>[r,t]))}function Jc(e){return Kc[e]||"length"}function yr(e){let t=typeof e;return!(t==="number"||t==="bigint"||t==="string"||t==="boolean")}function ka(e){return/^class\s/.test(e.toString())}function Ui(e){return e&&e.$$typeof===Symbol.for("react.forward_ref")}function Pa(e){return typeof e=="function"||Ui(e)}function Oa(e){return"dangerouslySetInnerHTML"in e}function Ia(e){let t=typeof e>"u"?[]:[].concat(e).flat(1/0),r=[];for(let n=0;n<t.length;n++){let i=t[n];typeof i>"u"||typeof i=="boolean"||i===null||(typeof i=="number"&&(i=String(i)),typeof i=="string"&&r.length&&typeof r[r.length-1]=="string"?r[r.length-1]+=i:r.push(i))}return r}function H(e,t,r,n,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 xt(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*n._viewportWidth/100);case"vh":return~~(o.value*n._viewportHeight/100);default:return o.value}else{if(o.type==="angle")return Ur(e);if(o.type==="percentage"&&i)return o.value/100*r}}catch{}}function Ur(e){let t=new xt(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 qr(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 He(e,t,r,n){let i=t[e];if(typeof i>"u"){if(n&&typeof e<"u")throw new Error(`Invalid value for CSS property "${n}". Allowed values: ${Object.keys(t).map(o=>`"${o}"`).join(" | ")}. Received: "${e}".`);i=r}return i}var $i,Bi,Aa=[32,160,4961,65792,65793,4153,4241,10].map(e=>String.fromCodePoint(e)),vr=new Map,ed=500;function Ve(e,t,r){let n=`${t}:${r||""}:${e}`;if(vr.has(n))return vr.get(n);if(!$i||!Bi){if(!(typeof Intl<"u"&&"Segmenter"in Intl))throw new Error("Intl.Segmenter does not exist, please use import a polyfill.");$i=new Intl.Segmenter(r,{granularity:"word"}),Bi=new Intl.Segmenter(r,{granularity:"grapheme"})}let i;if(t==="grapheme")i=[...Bi.segment(e)].map(o=>o.segment);else{let o=[...$i.segment(e)].map(u=>u.segment),s=[],a=0;for(;a<o.length;){let u=o[a];if(u=="\xA0"){let l=a===0?"":s.pop(),f=a===o.length-1?"":o[a+1];s.push(l+"\xA0"+f),a+=2}else s.push(u),a++}i=s}if(vr.size>=ed){let o=vr.keys().next().value;vr.delete(o)}return vr.set(n,i),i}function M(e,t,r){let n="";for(let[i,o]of Object.entries(t))typeof o<"u"&&(n+=` ${i}="${o}"`);return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}/>`}function Ra(e=20){let t=new Map;function r(o){let s=t.get(o);if(s!==void 0)return t.delete(o),t.set(o,s),s}function n(o,s){if(t.has(o))t.delete(o);else if(t.size>=e){let a=t.keys().next().value;t.delete(a)}t.set(o,s)}function i(){t.clear()}return{set:n,get:r,clear:i}}function xr(e){return e?e.split(/[, ]/).filter(Boolean).map(Number):null}function Vn(e){return typeof e=="string"}function Ca(e){return typeof e=="number"}function La(e){return typeof e>"u"}function Nt(e,t){if(typeof e=="number")return e;if(e.endsWith("%")){let r=parseFloat(e.slice(0,-1));if(isNaN(r)){console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a percentage value (e.g., "50%").`);return}return`${r}%`}console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a number or a percentage value (e.g., "50%").`)}function Gt(e,t){if(typeof e=="number")return e;if(e==="auto")return"auto";if(e.endsWith("%")){let r=parseFloat(e.slice(0,-1));if(isNaN(r)){console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a percentage value (e.g., "50%").`);return}return`${r}%`}console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a number, "auto", or a percentage value (e.g., "50%").`)}function Ma(e,t){if(t==="break-all")return{words:Ve(e,"grapheme"),requiredBreaks:[]};if(t==="keep-all")return{words:Ve(e,"word"),requiredBreaks:[]};let r=new Zc(e),n=0,i=r.nextBreak(),o=[],s=[!1];for(;i;){let a=e.slice(n,i.position);o.push(a),i.required?s.push(!0):s.push(!1),n=i.position,i=r.nextBreak()}return{words:o,requiredBreaks:s}}var Na=e=>e.replaceAll(/([A-Z])/g,(t,r)=>`-${r.toLowerCase()}`);function wr(e,t=","){let r=[],n=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])&&(r.push(e.slice(n,o).trim()),n=o+1);return r.push(e.slice(n).trim()),r}function ld(e){return Promise.resolve().then(()=>(Ki(),Qi)).then(t=>t.init(e))}function jt(){return Promise.resolve().then(()=>(Ki(),Qi)).then(e=>e.getYoga())}var Ha=Symbol.for("react.fragment");var Qn=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;var fd=new Set([301,302,303,307,308]);function Ji(e){let t=e.split(".").map(o=>Number.parseInt(o,10));if(t.length!==4||t.some(o=>!Number.isInteger(o)||o<0||o>255))return!0;let[r,n,i]=t;return r===0||r===10||r===100&&n>=64&&n<=127||r===127||r===169&&n===254||r===172&&n>=16&&n<=31||r===192&&n===0&&i===0||r===192&&n===168||r===198&&(n===18||n===19)||r>=224}function cd(e){let t=e,r=t.indexOf("%");r!==-1&&(t=t.slice(0,r));let n=t.split("::");if(n.length>2)return null;let i=s=>{if(s==="")return[];let a=[],u=s.split(":");for(let l=0;l<u.length;l++){let f=u[l];if(f.includes(".")){if(l!==u.length-1||!Qn.test(f))return null;let[p,m,h,g]=f.split(".").map(v=>Number.parseInt(v,10));if([p,m,h,g].some(v=>!Number.isInteger(v)||v<0||v>255))return null;a.push(p<<8|m,h<<8|g);continue}if(!/^[0-9a-f]{1,4}$/.test(f))return null;a.push(Number.parseInt(f,16))}return a},o=i(n[0]);if(o===null)return null;if(n.length===2){let s=i(n[1]);if(s===null)return null;let a=8-o.length-s.length;return a<0?null:[...o,...new Array(a).fill(0),...s]}return o.length===8?o:null}function dd(e){let t=a=>e.slice(0,a).every(u=>u===0);if(!(t(6)||t(5)&&e[5]===65535||t(4)&&e[4]===65535&&e[5]===0||e[0]===100&&e[1]===65435&&e[2]===0&&e[3]===0&&e[4]===0&&e[5]===0||e[0]===100&&e[1]===65435&&e[2]===1))return null;let n=e[6]>>8&255,i=e[6]&255,o=e[7]>>8&255,s=e[7]&255;return`${n}.${i}.${o}.${s}`}function Xa(e){let t=cd(e);if(t===null)return!0;let r=dd(t);return r?Ji(r):!!(t.every(n=>n===0)||t.slice(0,7).every(n=>n===0)&&t[7]===1||(t[0]&65024)===64512||(t[0]&65472)===65152||(t[0]&65472)===65216||(t[0]&65280)===65280||t[0]===8193&&t[1]===3512)}function pd(e){let t=e.toLowerCase().replace(/^\[|\]$/g,"");return Qn.test(t)?Ji(t):t.includes(":")?Xa(t):!0}function Qa(e){let t;try{t=new URL(e)}catch{return null}if(t.protocol!=="http:"&&t.protocol!=="https:")return null;let r=t.hostname.toLowerCase().replace(/\.+$/,"");return r.startsWith("[")&&r.endsWith("]")&&(r=r.slice(1,-1)),r?{url:t,host:r}:null}function hd(e){let t=Qa(e);if(!t)return!0;let{host:r}=t;return r==="localhost"||r.endsWith(".localhost")||r==="local"||r.endsWith(".local")||r==="internal"||r.endsWith(".internal")?!0:Qn.test(r)?Ji(r):r.includes(":")?Xa(r):!1}function Xn(e){return new Error(`Image source resolves to a blocked address (SSRF protection): ${e}`)}function md(e){if(hd(e))throw Xn(e)}var Er;async function gd(){if(Er!==void 0)return Er;if(typeof window<"u")return Er=null,null;try{let t=await new Function("s","return import(s)")("node:dns/promises");return Er=(r,n)=>t.lookup(r,n),Er}catch{return Er=null,null}}async function bd(e,t){md(e);let r=Qa(e);if(!r)throw Xn(e);let{host:n}=r;if(Qn.test(n)||n.includes(":"))return;let i=t&&"lookup"in t?t.lookup:await gd();if(!i)return;let o;try{o=await i(n,{all:!0})}catch{throw new Error(`Can't resolve image host: ${e}`)}if(o.length===0)throw new Error(`Can't resolve image host: ${e}`);for(let{address:s}of o)if(pd(s))throw Xn(e)}async function Ya(e){try{e.body&&typeof e.body.cancel=="function"?await e.body.cancel():typeof e.arrayBuffer=="function"&&await e.arrayBuffer()}catch{}}async function Ka(e,t){let r=(t==null?void 0:t.fetch)??globalThis.fetch,n=e;for(let i=0;i<=10;i++){await bd(n,t);let o=await r(n,{redirect:"manual"});if(o.type==="opaqueredirect")throw await Ya(o),Xn(n);let s=o.headers.get("location");if(fd.has(o.status)&&s){await Ya(o),n=new URL(s,n).href;continue}return o}throw new Error(`Image source redirected too many times (SSRF protection): ${e}`)}var vd="image/avif",Kn="image/webp",Jn="image/apng",Zn="image/png",ei="image/jpeg",ti="image/gif",Zi="image/svg+xml";function eu(e){let t=new DataView(e),r=4,n=t.byteLength;for(;r<n;){let i=t.getUint16(r,!1);if(i>n)throw new TypeError("Invalid JPEG");let o=t.getUint8(i+1+r);if(o===192||o===193||o===194)return[t.getUint16(i+7+r,!1),t.getUint16(i+5+r,!1)];r+=i+2}throw new TypeError("Invalid JPEG")}function tu(e){let t=new DataView(e),r=new Uint8Array(e);if(t.byteLength<20||t.getUint32(0)!==1380533830||t.getUint32(8)!==1464156752)throw new TypeError("Invalid WebP");let n=t.getUint32(4,!0)+8;if(n<20||n>t.byteLength)throw new TypeError("Invalid WebP");let i=12;for(;i+8<=n;){let o=t.getUint32(i),s=t.getUint32(i+4,!0),a=i+8,u=a+s;if(u>n)throw new TypeError("Invalid WebP");if(o===1448097824){if(s<10||r[a+3]!==157||r[a+4]!==1||r[a+5]!==42)throw new TypeError("Invalid WebP");let l=t.getUint16(a+6,!0)&16383,f=t.getUint16(a+8,!0)&16383;if(!l||!f)throw new TypeError("Invalid WebP");return[l,f]}if(o===1448097868){if(s<5||r[a]!==47)throw new TypeError("Invalid WebP");let l=t.getUint32(a+1,!0);return[(l&16383)+1,(l>>>14&16383)+1]}if(o===1448097880){if(s<10)throw new TypeError("Invalid WebP");return[r[a+4]+(r[a+5]<<8)+(r[a+6]<<16)+1,r[a+7]+(r[a+8]<<8)+(r[a+9]<<16)+1]}i=u+s%2}throw new TypeError("Invalid WebP")}function ru(e){let t=new Uint8Array(e.slice(6,10));return[t[0]|t[1]<<8,t[2]|t[3]<<8]}function nu(e){let t=new DataView(e);return[t.getUint16(18,!1),t.getUint16(22,!1)]}var Pt=Ra(500),Gr=new Map,yd=[Zn,Jn,ei,ti,Zi,Kn],xd=/<svg[^>]*>/i,wd=/viewBox=['"]([^'"]+)['"]/,Sd=/width=['"](\d*\.?\d+)['"]/,_d=/height=['"](\d*\.?\d+)['"]/;function Td(e){let t=new Uint8Array(e),r=32768,n="";for(let i=0;i<t.length;i+=r){let o=t.subarray(i,Math.min(i+r,t.length));n+=String.fromCharCode(...o)}return btoa(n)}function Ed(e){let t=atob(e),r=t.length,n=new Uint8Array(r);for(let i=0;i<r;i++)n[i]=t.charCodeAt(i);return n.buffer}function Ja(e,t){let r=t.match(xd);if(!r)throw new Error(`Failed to parse SVG from ${e}`);let n=r[0],i=wd.exec(n),o=Sd.exec(n),s=_d.exec(n),a=i?xr(i[1]):null;if(!a&&(!o||!s))throw new Error(`Failed to parse SVG from ${e}: missing "viewBox"`);let u=a?[a[2],a[3]]:[+o[1],+s[1]],l=u[0]/u[1];return o&&s?[+o[1],+s[1]]:o?[+o[1],+o[1]/l]:s?[+s[1]*l,+s[1]]:[u[0],u[1]]}function Za(e){let t,r=kd(new Uint8Array(e));switch(r){case Zn:case Jn:t=nu(e);break;case ti:t=ru(e);break;case ei:t=eu(e);break;case Kn:t=tu(e);break}if(!yd.includes(r))throw new Error(`Unsupported image type: ${r||"unknown"}`);return[`data:${r};base64,${Td(e)}`,t]}async function kr(e){if(!e)throw new Error("Image source is not provided.");if(typeof e=="object"){let[o,s]=Za(e);return[o,...s]}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 o;try{o=/data:(?<imageType>[a-z/+]+)(;[^;=]+=[^;=]+)*?(;(?<encodingType>[^;,]+))?,(?<dataString>.*)/g.exec(e).groups}catch{return console.warn("Image data URI resolved without size:"+e),[e]}let{imageType:s,encodingType:a,dataString:u}=o;if(s===Zi){let l=a==="base64"?atob(u):decodeURIComponent(u.replace(/ /g,"%20")),f=a==="base64"?e:`data:image/svg+xml;base64,${btoa(l)}`,p=Ja(e,l);return Pt.set(e,[f,...p]),[f,...p]}else if(a==="base64"){let l,f=Ed(u);switch(s){case Zn:case Jn:l=nu(f);break;case ti:l=ru(f);break;case ei:l=eu(f);break;case Kn:l=tu(f);break}return Pt.set(e,[e,...l]),[e,...l]}else return console.warn("Image data URI resolved without size:"+e),Pt.set(e,[e]),[e]}if(!globalThis.fetch)throw new Error("`fetch` is required to be polyfilled to load images.");if(Gr.has(e))return Gr.get(e);let t=Pt.get(e);if(t)return t;let r=e,i=(typeof window>"u"?()=>Ka(r):()=>fetch(r))().then(o=>{let s=o.headers.get("content-type");return s==="image/svg+xml"||s==="application/svg+xml"?o.text():o.arrayBuffer()}).then(o=>{if(typeof o=="string")try{let u=`data:image/svg+xml;base64,${btoa(o)}`,l=Ja(r,o);return[u,...l]}catch(u){throw new Error(`Failed to parse SVG image: ${u.message}`)}let[s,a]=Za(o);return[s,...a]}).then(o=>(Pt.set(r,o),o)).catch(o=>{if(o instanceof Error&&o.message.includes("SSRF protection"))throw o;return console.error(`Can't load image ${r}: `+o.message),Pt.set(r,[]),[]});return Gr.set(r,i),i}function kd(e){return[255,216,255].every((t,r)=>e[r]===t)?ei:[137,80,78,71,13,10,26,10].every((t,r)=>e[r]===t)?Pd(e)?Jn:Zn:[71,73,70,56].every((t,r)=>e[r]===t)?ti:[82,73,70,70,0,0,0,0,87,69,66,80].every((t,r)=>!t||e[r]===t)?Kn:[60,63,120,109,108].every((t,r)=>e[r]===t)?Zi:[0,0,0,0,102,116,121,112,97,118,105,102].every((t,r)=>!t||e[r]===t)?vd:null}function Pd(e){let t=new DataView(e.buffer),r,n,i=8,o=!1;for(;!o&&r!=="IEND"&&i<e.length;){n=t.getUint32(i);let s=e.subarray(i+4,i+8);r=String.fromCharCode(...s),o=r==="acTL",i+=12+n}return o}var eo={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"},Od=/[\r\n%#()<>?[\\\]^`{|}"']/g;function ri(e,t){if(!e)return"";if(Array.isArray(e))return e.map(l=>ri(l,t)).join("");if(typeof e!="object")return String(e);let r=e.type;if(r==="text")throw new Error("<text> nodes are not currently supported, please convert them to <path>");let{children:n,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"||l==="xlinkHref")&&r==="image"?` ${eo[l]||l}="${Pt.get(f)[0]}"`:` ${eo[l]||l}="${f}"`)).join("")}`,u=i?` style="${Object.entries(i).map(([l,f])=>`${Na(l)}:${f}`).join(";")}"`:"";return r===Ha?ri(n,s):`<${r}${a}${u}>${ri(n,s)}</${r}>`}async function iu(e){let t=new Set,r=n=>{if(n&&yr(n)){if(Array.isArray(n)){n.forEach(i=>r(i));return}else if(typeof n=="object")if(n.type==="image"){let i=n.props.href||n.props.xlinkHref;i&&(t.has(i)||t.add(i))}else n.type==="img"&&(t.has(n.props.src)||t.add(n.props.src));Array.isArray(n.props.children)?n.props.children.map(i=>r(i)):r(n.props.children)}};return r(e),Promise.all(Array.from(t).map(n=>kr(n)))}async function ou(e,t){let{viewBox:r,viewbox:n,width:i,height:o,className:s,style:a,children:u,...l}=e.props||{};r||=n,l.xmlns="http://www.w3.org/2000/svg";let f=(a==null?void 0:a.color)||t,p=xr(r),m=p?p[3]/p[2]:null;return i=i||m&&o?o/m:null,o=o||m&&i?i*m:null,l.width=i,l.height=o,r&&(l.viewBox=r),`data:image/svg+xml;utf8,${`<svg ${Object.entries(l).map(([h,g])=>(typeof g=="string"&&g.toLowerCase()==="currentcolor"&&(g=f),` ${eo[h]||h}="${g}"`)).join("")}>${ri(u,f)}</svg>`.replace(Od,encodeURIComponent)}`}var at="flex",su={p:{display:at,marginTop:"1em",marginBottom:"1em"},div:{display:at},blockquote:{display:at,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:at,textAlign:"center"},hr:{display:at,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:at,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:at,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:at,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:at,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:at,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:at,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:at,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}};var Id=new Set(["color","font","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","textAlign","textIndent","textTransform","textShadowOffset","textShadowColor","textShadowRadius","WebkitTextStrokeWidth","WebkitTextStrokeColor","textDecorationLine","textDecorationStyle","textDecorationColor","textDecorationSkipInk","whiteSpace","transform","wordBreak","tabSize","opacity","filter","_viewportWidth","_viewportHeight","_inheritedClipPathId","_inheritedMaskId","_inheritedBackgroundClipTextPath","_inheritedBackgroundClipTextHasBackground"]);function to(e){let t={};for(let r in e)(Id.has(r)||r.startsWith("--"))&&(t[r]=e[r]);return t}import{getPropertyName as Nd,getStylesForProperty as Vt}from"css-to-react-native";import{parseElementStyle as Fd}from"css-background-parser";import{parse as Wd}from"css-box-shadow";import Dd from"parse-css-color";import Ad from"postcss-value-parser";function Rd(e,t){try{let r=new xt(e);switch(r.unit){case"px":return{absolute:r.value};case"em":return{absolute:r.value*t};case"rem":return{absolute:r.value*16};case"%":return{relative:r.value};default:return{}}}catch{return{}}}function ro(e,t,r){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 n=Rd(e,t);return n.absolute?{[r?"xAbsolute":"yAbsolute"]:n.absolute}:n.relative?{[r?"xRelative":"yRelative"]:n.relative}:{}}}}function no(e,t){if(typeof e=="number")return{xAbsolute:e};let r;try{r=Ad(e).nodes.filter(n=>n.type==="word").map(n=>n.value)}catch{return{}}return r.length===1?ro(r[0],t,!0):r.length===2?((r[0]==="top"||r[0]==="bottom"||r[1]==="left"||r[1]==="right")&&r.reverse(),{...ro(r[0],t,!0),...ro(r[1],t,!1)}):{}}import{getPropertyName as Cd}from"css-to-react-native";function jr(e,t){let r=Cd(`mask-${t}`);return e[r]||e[`WebkitM${r.substring(1)}`]}function au(e){let t=e.maskImage||e.WebkitMaskImage,r={position:jr(e,"position")||"0% 0%",size:jr(e,"size")||"100% 100%",repeat:jr(e,"repeat")||"repeat",origin:jr(e,"origin")||"border-box",clip:jr(e,"origin")||"border-box"};return wr(t).filter(i=>i&&i!=="none").reverse().map(i=>({image:i,...r}))}var Ld={round:1,squircle:2,square:1/0,bevel:0,scoop:-1,notch:-1/0};function io(e){let t=e.trim().toLowerCase(),r=Ld[t];if(typeof r<"u")return r;let n=t.match(/^superellipse\(\s*(-?infinity|[-+]?(?:\d*\.)?\d+(?:e[-+]?\d+)?)\s*\)$/);if(!n)throw new Error('Invalid corner shape value: "'+e+'".');if(n[1]==="infinity")return 1/0;if(n[1]==="-infinity")return-1/0;let i=Number(n[1]);if(!Number.isFinite(i))throw new Error('Invalid corner shape value: "'+e+'".');return i}function ni(e,t=4){let r=e.match(/superellipse\([^)]*\)|[^\s]+/gi)||[];if(r.length<1||r.length>t)throw new Error('Invalid corner shape value: "'+e+'".');for(let n of r)io(n);return r}import uu from"postcss-value-parser";function lu(e){let t={},r={};for(let n in e)n.startsWith("--")?t[n]=String(e[n]):r[n]=e[n];return{variables:t,remainingStyle:r}}function fu(e,t){return{...e,...t}}function Hr(e,t,r=new Set){if(typeof e!="string"||!e.includes("var("))return e;try{let n=uu(e),i=!1;if(n.walk(o=>{if(o.type==="function"&&o.value==="var"){i=!0;let s=Md(o);if(!s)return;let{varName:a,fallback:u}=s;if(r.has(a)){console.warn(`Circular reference detected for CSS variable: ${a}`),u!==void 0?Vr(o,u):Vr(o,"initial");return}let l=t[a];if(l!==void 0){let f=new Set(r);f.add(a);let p=Hr(l,t,f);Vr(o,String(p))}else if(u!==void 0){let f=Hr(u,t,r);Vr(o,String(f))}else Vr(o,"initial")}}),i)return n.toString()}catch{console.warn(`Failed to parse CSS value for variable resolution: ${e}`)}return e}function Md(e){if(!e.nodes||e.nodes.length===0)return null;let t,r=-1;for(let i=0;i<e.nodes.length;i++){let o=e.nodes[i];if(o.type==="word"&&!t)t=o;else if(o.type==="div"&&o.value===","){r=i;break}}if(!t||t.type!=="word")return null;let n=t.value.trim();if(r!==-1&&r<e.nodes.length-1){let i=e.nodes.slice(r+1),o=uu.stringify(i).trim();return{varName:n,fallback:o}}return{varName:n}}function Vr(e,t){e.type="word",e.value=t,delete e.nodes}var $d=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),Bd=new Set(["lineHeight"]);function Ud(e,t,r,n){return e==="textDecoration"&&!r.includes(t.textDecorationColor)&&(t.textDecorationColor=n),t}function or(e,t){let r=Number(t);return isNaN(r)?t:$d.has(e)?Bd.has(e)?r:String(t):r+"px"}function qd(e,t,r){if(e==="zIndex")return console.warn("`z-index` is currently not supported."),{[e]:t};if(e==="lineHeight")return{lineHeight:or(e,t)};if(e==="fontFamily")return{fontFamily:t.split(",").map(i=>i.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(e==="borderRadius"){if(typeof t!="string"||!t.includes("/"))return;let[i,o]=t.split("/"),s=Vt(e,i,!0),a=Vt(e,o,!0);for(let u in s)a[u]=or(e,s[u])+" "+or(e,a[u]);return a}if(e==="cornerShape"){if(typeof t!="string")throw new Error('Invalid `cornerShape` value: "'+t+'".');let i=ni(t),o=i[0],s=i[1]||o,a=i[2]||o,u=i[3]||s;return{cornerTopLeftShape:o,cornerTopRightShape:s,cornerBottomRightShape:a,cornerBottomLeftShape:u}}if(/^corner(TopLeft|TopRight|BottomRight|BottomLeft)Shape$/.test(e)){if(typeof t!="string"||ni(t,1).length!==1)throw new Error("Invalid `"+e+'` value: "'+t+'".');return{[e]:t}}let n=e.match(/^corner(Top|Right|Bottom|Left)Shape$/);if(n){if(typeof t!="string")throw new Error("Invalid `"+e+'` value: "'+t+'".');let i=ni(t,2),o=i[0],s=i[1]||o,a={Top:["cornerTopLeftShape","cornerTopRightShape"],Right:["cornerTopRightShape","cornerBottomRightShape"],Bottom:["cornerBottomLeftShape","cornerBottomRightShape"],Left:["cornerTopLeftShape","cornerBottomLeftShape"]}[n[1]];return{[a[0]]:o,[a[1]]:s}}if(/^border(Top|Right|Bottom|Left)?$/.test(e)){let i=Vt("border",t,!0);i.borderWidth===1&&!String(t).includes("1px")&&(i.borderWidth=3),i.borderColor==="black"&&!String(t).includes("black")&&(i.borderColor=r);let o={Width:or(e+"Width",i.borderWidth),Style:He(i.borderStyle,{solid:"solid",dashed:"dashed"},"solid",e+"Style"),Color:i.borderColor},s={};for(let a of e==="border"?["Top","Right","Bottom","Left"]:[e.slice(6)])for(let u in o)s["border"+a+u]=o[u];return s}if(e==="boxShadow"){if(!t)throw new Error('Invalid `boxShadow` value: "'+t+'".');return{[e]:typeof t=="string"?Wd(t):t}}if(e==="transform"){if(typeof t!="string")throw new Error("Invalid `transform` value.");let i={},o=t.replace(/(-?[\d.]+%)/g,(a,u)=>{let l=~~(Math.random()*1e9);return i[l]=u,l+"px"}),s=Vt("transform",o,!0);for(let a of s.transform)for(let u in a)i[a[u]]&&(a[u]=i[a[u]]);return s}if(e==="background")return t=t.toString().trim(),/^(linear-gradient|radial-gradient|url|repeating-linear-gradient|repeating-radial-gradient)\(/.test(t)?Vt("backgroundImage",t,!0):Vt("background",t,!0);if(e==="textShadow"){t=t.toString().trim();let i={},o=wr(t);for(let s of o){let a=Vt("textShadow",s,!0);for(let u in a)i[u]?i[u].push(a[u]):i[u]=[a[u]]}return i}if(e==="WebkitTextStroke"){t=t.toString().trim();let i=t.split(" ");if(i.length!==2)throw new Error("Invalid `WebkitTextStroke` value.");return{WebkitTextStrokeWidth:or(e,i[0]),WebkitTextStrokeColor:or(e,i[1])}}if(e==="textDecorationSkipInk"){let i=t.toString().trim().toLowerCase();if(!["auto","none","all"].includes(i))throw new Error("Invalid `textDecorationSkipInk` value.");return{textDecorationSkipInk:i}}}function cu(e){return e==="transform"?" Only absolute lengths such as `10px` are supported.":""}var du=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function hu(e){if(typeof e=="string"&&du.test(e.trim()))return e.trim().replace(du,(t,r,n,i,o)=>`rgba(${r}, ${n}, ${i}, ${o})`);if(typeof e=="object"&&e!==null){for(let t in e)e[t]=hu(e[t]);return e}return e}function ii(e,t){let r={},n={};for(let u in t)u.startsWith("--")&&(n[u]=String(t[u]));let i={},o=e;if(e){let{variables:u,remainingStyle:l}=lu(e);i=u,o=l}let s=fu(n,i);for(let u in s)r[u]=s[u];if(o){let u=o.color?Hr(o.color,s):void 0,l=Gd(u,t.color);r.color=l;for(let f in o){if(f.startsWith("_")){r[f]=o[f];continue}if(f==="color")continue;let p=Nd(f),m=Hr(o[f],s),h=Vd(m,l);try{let g=qd(p,h,l)||Ud(p,Vt(p,or(p,h),!0),h,l);Object.assign(r,g)}catch(g){throw new Error(g.message+(g.message.includes(h)?`
|
|
5
|
-
`+
|
|
6
|
-
in CSS rule \`${p}: ${h}\`.${cu(p)}`))}}}if(r.backgroundImage){let{backgrounds:u}=Fd(r);r.backgroundImage=u}(r.maskImage||r.WebkitMaskImage)&&(r.maskImage=au(r));let a=zd(r.fontSize,t.fontSize);typeof r.fontSize<"u"&&(r.fontSize=a),r.transformOrigin&&(r.transformOrigin=no(r.transformOrigin,a));for(let u in r){let l=r[u];if(u==="lineHeight")typeof l=="string"&&l!=="normal"&&(l=r[u]=H(l,a,a,t,!0)/a);else{if(typeof l=="string"){let f=H(l,a,a,t);typeof f<"u"&&(r[u]=f),l=r[u]}if(typeof l=="string"||typeof l=="object"){let f=hu(l);f&&(r[u]=f),l=r[u]}}if(u==="opacity"&&typeof l=="number"&&(r.opacity=l*t.opacity),u==="transform"){let f=l;for(let p of f){let m=Object.keys(p)[0],h=p[m],g=typeof h=="string"?H(h,a,a,t)??h:h;p[m]=g}}if(u==="textShadowRadius"){let f=l;r.textShadowRadius=f.map(p=>H(p,a,0,t,!1))}if(u==="textShadowOffset"){let f=l;r.textShadowOffset=f.map(({height:p,width:m})=>({height:H(p,a,0,t,!1),width:H(m,a,0,t,!1)}))}}return r}function zd(e,t){if(typeof e=="number")return e;try{let r=new xt(e);switch(r.unit){case"em":return r.value*t;case"rem":return r.value*16}}catch{return t}}function pu(e){if(e.startsWith("hsl")){let t=Dd(e),[r,n,i]=t.values;return`hsl(${[r,`${n}%`,`${i}%`].concat(t.alpha===1?[]:[t.alpha]).join(",")})`}return e}function Gd(e,t){return e&&e.toLowerCase()!=="currentcolor"?pu(e):pu(t)}function jd(e,t){return e.replace(/currentcolor/gi,t)}function Vd(e,t){return Vn(e)&&(e=jd(e,t)),e}async function oo(e,t,r,n,i){let o=await jt(),s=Object.assign({},r,ii(su[t],r),ii(n,r));if(t==="img"){let[a,u,l]=await kr(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,p=(s.borderLeftWidth||0)+(s.borderRightWidth||0)+(s.paddingLeft||0)+(s.paddingRight||0),m=(s.borderTopWidth||0)+(s.borderBottomWidth||0)+(s.paddingTop||0)+(s.paddingBottom||0),h=s.width||i.width,g=s.height||i.height,v=typeof h=="number"&&typeof g=="number";v&&(h-=p,g-=m),h===void 0&&g===void 0?(h="100%",e.setAspectRatio(1/f)):h===void 0?typeof g=="number"?h=g/f:e.setAspectRatio(1/f):g===void 0&&(typeof h=="number"?g=h*f:e.setAspectRatio(1/f)),s.width=v?h+p:h,s.height=v?g+m:g,s.__src=a,s.__naturalWidth=u,s.__naturalHeight=l}if(t==="svg"){let a=i.viewBox||i.viewbox,u=xr(a),l=u?u[3]/u[2]:null,{width:f,height:p}=i;typeof f>"u"&&p?l==null?f=0:typeof p=="string"&&p.endsWith("%")?f=parseInt(p)/l+"%":(p=H(p,r.fontSize,1,r),f=p/l):typeof p>"u"&&f?l==null?f=0:typeof f=="string"&&f.endsWith("%")?p=parseInt(f)*l+"%":(f=H(f,r.fontSize,1,r),p=f*l):(typeof f<"u"&&(f=H(f,r.fontSize,1,r)||f),typeof p<"u"&&(p=H(p,r.fontSize,1,r)||p),f||=u==null?void 0:u[2],p||=u==null?void 0:u[3]),!s.width&&f&&(s.width=f),!s.height&&p&&(s.height=p)}return e.setDisplay(He(s.display,{flex:o.DISPLAY_FLEX,block:o.DISPLAY_FLEX,contents:o.DISPLAY_CONTENTS,none:o.DISPLAY_NONE,"-webkit-box":o.DISPLAY_FLEX},o.DISPLAY_FLEX,"display")),e.setAlignContent(He(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(He(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(He(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(He(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(He(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(He(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(Gt(s.flexBasis,"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(Nt(s.maxHeight,"maxHeight")),typeof s.maxWidth<"u"&&e.setMaxWidth(Nt(s.maxWidth,"maxWidth")),typeof s.minHeight<"u"&&e.setMinHeight(Nt(s.minHeight,"minHeight")),typeof s.minWidth<"u"&&e.setMinWidth(Nt(s.minWidth,"minWidth")),e.setOverflow(He(s.overflow,{visible:o.OVERFLOW_VISIBLE,hidden:o.OVERFLOW_HIDDEN},o.OVERFLOW_VISIBLE,"overflow")),e.setMargin(o.EDGE_TOP,Gt(s.marginTop||0)),e.setMargin(o.EDGE_BOTTOM,Gt(s.marginBottom||0)),e.setMargin(o.EDGE_LEFT,Gt(s.marginLeft||0)),e.setMargin(o.EDGE_RIGHT,Gt(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.setBoxSizing(He(s.boxSizing,{"border-box":o.BOX_SIZING_BORDER_BOX,"content-box":o.BOX_SIZING_CONTENT_BOX},o.BOX_SIZING_BORDER_BOX,"boxSizing")),e.setPositionType(He(s.position,{absolute:o.POSITION_TYPE_ABSOLUTE,relative:o.POSITION_TYPE_RELATIVE,static:o.POSITION_TYPE_STATIC},o.POSITION_TYPE_RELATIVE,"position")),typeof s.top<"u"&&e.setPosition(o.EDGE_TOP,Nt(s.top,"top")),typeof s.bottom<"u"&&e.setPosition(o.EDGE_BOTTOM,Nt(s.bottom,"bottom")),typeof s.left<"u"&&e.setPosition(o.EDGE_LEFT,Nt(s.left,"left")),typeof s.right<"u"&&e.setPosition(o.EDGE_RIGHT,Nt(s.right,"right")),typeof s.height<"u"?e.setHeight(Gt(s.height,"height")):e.setHeightAuto(),typeof s.width<"u"?e.setWidth(Gt(s.width,"width")):e.setWidthAuto(),[s,to(s)]}import gu from"escape-html";var mu=[1,0,0,1,0,0];function Hd(e,t,r){let n=[...mu];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*r,i[o]=s;else throw new Error(`Invalid transform: "${o}: ${s}".`);let a=s,u=[...mu];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),p=Math.sin(l);u[0]=f,u[1]=p,u[2]=-p,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}n=qr(u,n)}e.splice(0,e.length),e.push(...n),e.__resolved=!0}function Yr({left:e,top:t,width:r,height:n},i,o,s){let a;i.__resolved||Hd(i,r,n);let u=i;if(o)a=u;else{let l=(s==null?void 0:s.xAbsolute)??((s==null?void 0:s.xRelative)??50)*r/100,f=(s==null?void 0:s.yAbsolute)??((s==null?void 0:s.yRelative)??50)*n/100,p=e+l,m=t+f;a=qr([1,0,0,1,p,m],qr(u,[1,0,0,1,-p,-m])),u.__parent&&(a=qr(u.__parent,a)),u.splice(0,6,...a)}return`matrix(${a.map(l=>l.toFixed(2)).join(",")})`}function bu({left:e,top:t,width:r,height:n,isInheritingTransform:i},o){let s="",a=1;return o.transform&&(s=Yr({left:e,top:t,width:r,height:n},o.transform,i,o.transformOrigin)),o.opacity!==void 0&&(a=+o.opacity),{matrix:s,opacity:a}}function so({id:e,content:t,filter:r,left:n,top:i,width:o,height:s,matrix:a,opacity:u,image:l,clipPathId:f,debug:p,shape:m,decorationShape:h},g){let v="";if(p&&(v=M("rect",{x:n,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 _={href:l,x:n,y:i,width:o,height:s,transform:a||void 0,"clip-path":f?`url(#${f})`:void 0,style:g.filter?`filter:${g.filter}`:void 0};return[(r?`${r}<g filter="url(#satori_s-${e})">`:"")+M("image",{..._,opacity:u!==1?u:void 0})+(h||"")+(r?"</g>":"")+v,""]}let w={x:n,y:i,width:o,height:s,"font-weight":g.fontWeight,"font-style":g.fontStyle,"font-size":g.fontSize,"font-family":g.fontFamily,"letter-spacing":g.letterSpacing||void 0,transform:a||void 0,"clip-path":f?`url(#${f})`:void 0,style:g.filter?`filter:${g.filter}`:void 0,"stroke-width":g.WebkitTextStrokeWidth?`${g.WebkitTextStrokeWidth}px`:void 0,stroke:g.WebkitTextStrokeWidth?g.WebkitTextStrokeColor:void 0,"stroke-linejoin":g.WebkitTextStrokeWidth?"round":void 0,"paint-order":g.WebkitTextStrokeWidth?"stroke":void 0};return[(r?`${r}<g filter="url(#satori_s-${e})">`:"")+M("text",{...w,fill:g.color,opacity:u!==1?u:void 0},gu(t))+(h||"")+(r?"</g>":"")+v,m?M("text",w,gu(t)):""]}function Yd(e,t,r){return e.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(n,i,o,s){return i+(parseFloat(o)+t)+","+(parseFloat(s)+r)})}var oi=1.1;function vu({id:e,width:t,height:r},n,i=!1){if(!n.shadowColor||!n.shadowOffset||typeof n.shadowRadius>"u")return"";let o=n.shadowColor.length,s="",a="",u=0,l=t,f=0,p=r;for(let m=0;m<o;m++){let h=n.shadowRadius[m]*n.shadowRadius[m]/4;if(u=Math.min(n.shadowOffset[m].width-h,u),l=Math.max(n.shadowOffset[m].width+h+t,l),f=Math.min(n.shadowOffset[m].height-h,f),p=Math.max(n.shadowOffset[m].height+h+r,p),i){let g=`satori_s-${e}-result-${m}`;s+=M("feGaussianBlur",{in:"SourceAlpha",stdDeviation:n.shadowRadius[m]/2,result:`${g}-blur`})+M("feOffset",{in:`${g}-blur`,dx:n.shadowOffset[m].width,dy:n.shadowOffset[m].height,result:`${g}-offset`})+M("feFlood",{"flood-color":n.shadowColor[m],"flood-opacity":1,result:`${g}-color`})+M("feComposite",{in:`${g}-color`,in2:`${g}-offset`,operator:"in",result:o>1?g:void 0})}else s+=M("feDropShadow",{dx:n.shadowOffset[m].width,dy:n.shadowOffset[m].height,stdDeviation:n.shadowRadius[m]/2,"flood-color":n.shadowColor[m],"flood-opacity":1,...o>1?{in:"SourceGraphic",result:`satori_s-${e}-result-${m}`}:{}});o>1&&(a=M("feMergeNode",{in:`satori_s-${e}-result-${m}`})+a)}return M("filter",{id:`satori_s-${e}`,x:(u/t*100*oi).toFixed(2)+"%",y:(f/r*100*oi).toFixed(2)+"%",width:((l-u)/t*100*oi).toFixed(2)+"%",height:((p-f)/r*100*oi).toFixed(2)+"%"},s+(a?M("feMerge",{},a):""))}function yu({width:e,height:t,shape:r,opacity:n,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 p=f.blurRadius*f.blurRadius/4+(f.spreadRadius||0),m=Math.min(-p-(f.inset?f.offsetX:0),0),h=Math.max(p+e-(f.inset?f.offsetX:0),e),g=Math.min(-p-(f.inset?f.offsetY:0),0),v=Math.max(p+t-(f.inset?f.offsetY:0),t),w=`satori_s-${i}-${u}`,_=`satori_ms-${i}-${u}`,O=f.spreadRadius?r.replace('stroke-width="0"',`stroke-width="${f.spreadRadius*2}"`):r;l+=M("mask",{id:_,maskUnits:"userSpaceOnUse"},M("rect",{x:0,y:0,width:o._viewportWidth||"100%",height:o._viewportHeight||"100%",fill:f.inset?"#000":"#fff"})+O.replace('fill="#fff"',f.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let x=O.replace(/d="([^"]+)"/,(E,T)=>'d="'+Yd(T,f.offsetX,f.offsetY)+'"').replace(/x="([^"]+)"/,(E,T)=>'x="'+(parseFloat(T)+f.offsetX)+'"').replace(/y="([^"]+)"/,(E,T)=>'y="'+(parseFloat(T)+f.offsetY)+'"');f.spreadRadius&&f.spreadRadius<0&&(l+=M("mask",{id:_+"-neg",maskUnits:"userSpaceOnUse"},x.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-f.spreadRadius*2}"`))),f.spreadRadius&&f.spreadRadius<0&&(x=M("g",{mask:`url(#${_}-neg)`},x)),l+=M("defs",{},M("filter",{id:w,x:`${m/e*100}%`,y:`${g/t*100}%`,width:`${(h-m)/e*100}%`,height:`${(v-g)/t*100}%`},M("feGaussianBlur",{stdDeviation:f.blurRadius/2,result:"b"})+M("feFlood",{"flood-color":f.color,in:"SourceGraphic",result:"f"})+M("feComposite",{in:"f",in2:"b",operator:f.inset?"out":"in"})))+M("g",{mask:`url(#${_})`,filter:`url(#${w})`,opacity:n},x),f.inset?a+=l:s+=l}return[s,a]}function Xd(e,t,r,n,i,o){let s=i/2,a=Math.max(s,i*1.25),u=[];for(let p of r){if(p.y2<o+s||p.y1>n+s)continue;let m=Math.max(e,p.x1-a),h=Math.min(t,p.x2+a);if(m>=h)continue;if(u.length===0){u.push([m,h]);continue}let g=u[u.length-1];m<=g[1]?g[1]=Math.max(g[1],h):u.push([m,h])}if(!u.length)return[[e,t]];let l=[],f=e;for(let[p,m]of u)if(p>f&&l.push([f,p]),f=Math.max(f,m),f>=t)break;return f<t&&l.push([f,t]),l}function ao({width:e,left:t,top:r,ascender:n,clipPathId:i,matrix:o,glyphBoxes:s},a){let{textDecorationColor:u,textDecorationStyle:l,textDecorationLine:f,textDecorationSkipInk:p,fontSize:m,color:h}=a;if(!f||f==="none")return"";let g=Math.max(1,m*.1),v=f==="line-through"?r+n*.7:f==="underline"?r+n*1.1:r,w=l==="dashed"?`${g*1.2} ${g*2}`:l==="dotted"?`0 ${g*2}`:void 0,_=f==="underline"&&(p||"auto")!=="none"&&(s==null?void 0:s.length),O=r+n,x=_?Xd(t,t+e,s,v,g,O):[[t,t+e]],E=l==="double"?x.map(([T,I])=>M("line",{x1:T,y1:v+g+1,x2:I,y2:v+g+1,stroke:u||h,"stroke-width":g,"stroke-dasharray":w,"stroke-linecap":l==="dotted"?"round":"square",transform:o})).join(""):"";return(i?`<g clip-path="url(#${i})">`:"")+x.map(([T,I])=>M("line",{x1:T,y1:v,x2:I,y2:v,stroke:u||h,"stroke-width":g,"stroke-dasharray":w,"stroke-linecap":l==="dotted"?"round":"square",transform:o})).join("")+E+(i?"</g>":"")}function uo(e){return e=e.replace("U+","0x"),String.fromCodePoint(Number(e))}var sr=uo("U+0020"),lo=uo("U+0009"),Pr=uo("U+2026");function xu(e,t,r){let{fontSize:n,letterSpacing:i}=r,o=new Map;function s(l){let f=o.get(l);return f===void 0&&(f=e.measure(l,{fontSize:n,letterSpacing:i}),o.set(l,f)),f}function a(l){let f=0;for(let p of l)t(p)?f+=n:f+=s(p);return f}function u(l){return a(Ve(l,"grapheme"))}return{measureGrapheme:s,measureGraphemeArray:a,measureText:u}}function wu(e,t,r){let{textTransform:n,whiteSpace:i,wordBreak:o}=t;e=Qd(e,n,r);let{content:s,shouldCollapseTabsAndSpaces:a,allowSoftWrap:u}=Zd(e,i),{words:l,requiredBreaks:f,allowBreakWord:p}=Jd(s,o),[m,h]=Kd(t,u);return{words:l,requiredBreaks:f,allowSoftWrap:u,allowBreakWord:p,processedContent:s,shouldCollapseTabsAndSpaces:a,lineLimit:m,blockEllipsis:h}}function Qd(e,t,r){return t==="uppercase"?e=e.toLocaleUpperCase(r):t==="lowercase"?e=e.toLocaleLowerCase(r):t==="capitalize"&&(e=Ve(e,"word",r).map(n=>Ve(n,"grapheme",r).map((i,o)=>o===0?i.toLocaleUpperCase(r):i).join("")).join("")),e}function Kd(e,t){let{textOverflow:r,lineClamp:n,WebkitLineClamp:i,WebkitBoxOrient:o,overflow:s,display:a}=e;if(a==="block"&&n){let[u,l=Pr]=ep(n);if(u)return[u,l]}return r==="ellipsis"&&a==="-webkit-box"&&o==="vertical"&&Ca(i)&&i>0?[i,Pr]:r==="ellipsis"&&s==="hidden"&&!t?[1,Pr]:[1/0]}function Jd(e,t){let r=["break-all","break-word"].includes(t),{words:n,requiredBreaks:i}=Ma(e,t);return{words:n,requiredBreaks:i,allowBreakWord:r}}function Zd(e,t){let r=["pre","pre-wrap","pre-line"].includes(t),n=["normal","nowrap","pre-line"].includes(t),i=!["pre","nowrap"].includes(t);return r||(e=e.replace(/\n/g,sr)),n&&(e=e.replace(/([ ]|\t)+/g,sr).replace(/^[ ]|[ ]$/g,"")),{content:e,shouldCollapseTabsAndSpaces:n,allowSoftWrap:i}}function ep(e){if(typeof e=="number")return[e];let t=/^(\d+)\s*"(.*)"$/,r=/^(\d+)\s*'(.*)'$/,n=t.exec(e),i=r.exec(e);if(n){let o=+n[1],s=n[2];return[o,s]}else if(i){let o=+i[1],s=i[2];return[o,s]}return[]}import _u from"parse-css-color";var tp=new Set([lo]);function rp(e){return tp.has(e)}function fo(e){if(e==="transparent")return!0;let t=_u(e);return t?t.alpha===0:!1}function Su(e){if(!e)return!1;let t=_u(e);if(!t)return!1;let[r,n,i,o]=t.values;return r===255&&n===255&&i===255&&(o===void 0||o===1)}async function*co(e,t){let r=await jt(),{parentStyle:n,inheritedStyle:i,parent:o,font:s,id:a,isInheritingTransform:u,debug:l,embedFont:f,graphemeImages:p,locale:m,canLoadAdditionalAssets:h}=t,{textAlign:g,textIndent:v=0,lineHeight:w,textWrap:_,fontSize:O,filter:x,tabSize:E=8,letterSpacing:T,_inheritedBackgroundClipTextPath:I,_inheritedBackgroundClipTextHasBackground:N,flexShrink:W}=n,{words:G,requiredBreaks:J,allowSoftWrap:fe,allowBreakWord:be,processedContent:he,shouldCollapseTabsAndSpaces:ue,lineLimit:ee,blockEllipsis:ie}=wu(e,n,m),Pe=np(r,g);o.insertChild(Pe,o.getChildCount()),La(W)&&o.setFlexShrink(1);let xe=s.getEngine(O,w,n,m),Re=h?Ve(he,"grapheme").filter(Y=>!rp(Y)&&!xe.has(Y)):[];yield Re.map(Y=>({word:Y,locale:m})),Re.length&&(xe=s.getEngine(O,w,n,m));function Oe(Y){return!!(p&&Object.prototype.hasOwnProperty.call(p,Y)&&p[Y])}let{measureGrapheme:Ye,measureGraphemeArray:Me,measureText:Ie}=xu(xe,Oe,{fontSize:O,letterSpacing:T}),ce=Vn(E)?H(E,O,1,n):Ye(sr)*E,X=(Y,V)=>{if(Y.length===0)return{originWidth:0,endingSpacesWidth:0,text:Y};let{index:de,tabCount:Q}=ip(Y),we=0;if(Q>0){let Se=Y.slice(0,de),te=Y.slice(de+Q),re=Ie(Se),ot=re+V;we=(ce===0?re:(Math.floor(ot/ce)+Q)*ce)+Ie(te)}else we=Ie(Y);let le=Y.trimEnd()===Y?we:Ie(Y.trimEnd());return{originWidth:we,endingSpacesWidth:we-le,text:Y}},Z=[],me=[],z=[],Le=[],De=[];function qe(Y){let V=0,de=0,Q=-1,we=0,le=0,Se=0,te=0;Z=[],z=[0],Le=[],De=[];let re=0,ot=0;for(;re<G.length&&V<ee;){let K=G[re],Fe=J[re],Ge=0,{originWidth:Fr,endingSpacesWidth:Ae,text:nr}=X(K,le);K=nr,Ge=Fr;let Ue=Ae;Fe&&Se===0&&(Se=xe.height(K));let Ct=g==="justify",_e=re&&le+Ge>Y+Ue&&fe;if(be&&Ge>Y&&(!le||_e||Fe)){let tt=Ve(K,"grapheme");G.splice(re,1,...tt),le>0&&(Z.push(le-ot),me.push(te),V++,we+=Se,le=0,Se=0,te=0,z.push(1),Q=-1),ot=Ue;continue}if(Fe||_e)ue&&K===sr&&(Ge=0),Z.push(le-ot),me.push(te),V++,we+=Se,le=Ge,Se=Ge?Math.round(xe.height(K)):0,te=Ge?Math.round(xe.baseline(K)):0,z.push(1),Q=-1,Fe||(de=Math.max(de,Y));else{le+=Ge;let tt=Math.round(xe.height(K));tt>Se&&(Se=tt,te=Math.round(xe.baseline(K))),Ct&&z[z.length-1]++}Ct&&Q++,de=Math.max(de,le);let et=le-Ge;if(Ge===0)De.push({y:we,x:et,width:0,line:V,lineIndex:Q,isImage:!1});else{let tt=Ve(K,"word");for(let bt=0;bt<tt.length;bt++){let vt=tt[bt],je=0,st=!1;Oe(vt)?(je=O,st=!0):!f&&vt.length>1?je=Ie(vt):je=Ye(vt),Le.push(vt),De.push({y:we,x:et,width:je,line:V,lineIndex:Q,isImage:st}),et+=je}}re++,ot=Ue}return le&&(V<ee&&(we+=Se),V++,Z.push(le),me.push(te)),{width:de,height:we}}let Be={width:0,height:0};Pe.setMeasureFunc(Y=>{let{width:V,height:de}=qe(Y);if(_==="balance"){let we=V/2,le=V,Se=V;for(;we+1<le;){Se=(we+le)/2;let{height:re}=qe(Se);re>de?we=Se:le=Se}qe(le);let te=Math.ceil(le);return Be={width:te,height:de},{width:te,height:de}}if(_==="pretty"&&Z[Z.length-1]<V/3){let Se=V*.9,te=qe(Se);if(te.height<=de*1.3)return Be={width:V,height:te.height},{width:V,height:te.height}}let Q=Math.ceil(V);return Be={width:Q,height:de},{width:Q,height:de}});let[oe,_t]=yield,qt="",Tt="",Ne=i._inheritedClipPathId,hr=i._inheritedMaskId,{left:Et,top:Nr,width:Zt,height:mr}=Pe.getComputedLayout(),gr=typeof v=="string"?H(v,O,Zt,n,!0)||0:v,er=o.getComputedWidth()-o.getComputedPadding(r.EDGE_LEFT)-o.getComputedPadding(r.EDGE_RIGHT)-o.getComputedBorder(r.EDGE_LEFT)-o.getComputedBorder(r.EDGE_RIGHT),kt=oe+Et,pt=_t+Nr,{matrix:nt,opacity:tr}=bu({left:Et,top:Nr,width:Zt,height:mr,isInheritingTransform:u},n),Xe="";if(n.textShadowOffset){let{textShadowColor:Y,textShadowOffset:V,textShadowRadius:de}=n;Xe=vu({width:Be.width,height:Be.height,id:a},{shadowColor:Y,shadowOffset:V,shadowRadius:de},fo(n.color)||N&&Su(n.color)),Xe=M("defs",{},Xe)}let ht="",mt="",rr="",zt=-1,ze={},it={},Ze=null,gt=0;for(let Y=0;Y<Le.length;Y++){let V=De[Y],de=De[Y+1];if(!V)continue;let Q=Le[Y],we=null,le=!1,Se=p&&Object.prototype.hasOwnProperty.call(p,Q)?p[Q]:null,te=V.y,re=V.x,ot=V.width,K=V.line,Fe=n.textDecorationLine==="underline"&&(n.textDecorationSkipInk||"auto")!=="none";if(K===zt)continue;let Ge=!1;if(K===0&&gr!==0&&(re+=gr),Z.length>1){let _e=Zt-Z[K];if(g==="right"||g==="end")re+=_e;else if(g==="center")re+=_e/2;else if(g==="justify"&&K<Z.length-1){let ke=z[K],et=ke>1?_e/(ke-1):0;re+=et*V.lineIndex,Ge=!0}f&&(re=Math.round(re))}let Fr=me[K],Ae=xe.baseline(Q),nr=xe.height(Q),Ue=Fr-Ae,Ct=_e=>!Fe||n.textDecorationLine!=="underline"?void 0:{underlineY:pt+_e+Ue+Ae+Ae*.1,strokeWidth:Math.max(1,O*.1)};if(ze[K]||(ze[K]={left:re,top:pt+te+Ue,ascender:Ae,width:Ge?Zt:Z[K]}),ee!==1/0){let vt=function(je,st){let Wr=Ve(st,"grapheme",m),br="",Wn=0;for(let Dn of Wr){let Dr=je+Me([br+Dn]);if(br&&Dr+ke>er)break;br+=Dn,Wn=Dr}return{subset:br,resolvedWidth:Wn}},_e=ie,ke=Ye(ie);ke>er&&(_e=Pr,ke=Ye(_e));let et=Ye(sr),tt=K<Z.length-1;if(K+1===ee&&(tt||Z[K]>er)){if(re+ot+ke+et>er){let{subset:je,resolvedWidth:st}=vt(re,Q);Q=je+_e,zt=K,ze[K].width=Math.max(0,st-ze[K].left),le=!0}else if(de&&de.line!==K)if(g==="center"){let{subset:je,resolvedWidth:st}=vt(re,Q);Q=je+_e,zt=K,ze[K].width=Math.max(0,st-ze[K].left),le=!0}else{let je=Le[Y+1],{subset:st,resolvedWidth:Wr}=vt(ot+re,je);Q=Q+st+_e,zt=K,ze[K].width=Math.max(0,Wr-ze[K].left),le=!0}}}if(Se)te+=0;else if(f){if(!Q.includes(lo)&&!Aa.includes(Q)&&Le[Y+1]&&de&&!de.isImage&&te===de.y&&!le){Ze===null&&(gt=re),Ze=Ze===null?Q:Ze+Q;continue}let _e=Ze===null?Q:Ze+Q,ke=Ze===null?re:gt,et=V.width+re-ke,tt=Ct(te),bt=xe.getSVG(_e.replace(/(\t)+/g,""),{fontSize:O,left:kt+ke,top:pt+te+Ae+Ue,letterSpacing:T},tt);we=bt.path,Fe&&bt.boxes&&bt.boxes.length&&(it[K]||(it[K]=[])).push(...bt.boxes),Ze=null,l&&(rr+=M("rect",{x:kt+ke,y:pt+te+Ue,width:et,height:nr,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:nt||void 0,"clip-path":Ne?`url(#${Ne})`:void 0})+M("line",{x1:kt+re,x2:kt+re+V.width,y1:pt+te+Ue+Ae,y2:pt+te+Ue+Ae,stroke:"#14c000","stroke-width":1,transform:nt||void 0,"clip-path":Ne?`url(#${Ne})`:void 0}))}else if(te+=Ae+Ue,Fe&&!Se){let _e=Ct(te),ke=xe.getSVG(Q.replace(/(\t)+/g,""),{fontSize:O,left:kt+re,top:pt+te,letterSpacing:T},_e);ke.boxes&&ke.boxes.length&&(it[K]||(it[K]=[])).push(...ke.boxes)}if(we!==null)mt+=we+" ";else{let[_e,ke]=so({content:Q,filter:Xe,id:a,left:kt+re,top:pt+te,width:ot,height:nr,matrix:nt,opacity:tr,image:Se,clipPathId:Ne,debug:l,shape:!!I},n);qt+=_e,Tt+=ke}if(le)break}if(n.textDecorationLine&&(ht=Object.entries(ze).map(([Y,V])=>{if(!V)return"";let de=it[Y]||[];return ao({left:kt+V.left,top:V.top,width:V.width,ascender:V.ascender,clipPathId:Ne,matrix:nt,glyphBoxes:de},n)}).join("")),mt){let Y=(!fo(n.color)||Xe)&&tr!==0?`<g ${hr?`mask="url(#${hr})"`:""} ${Ne?`clip-path="url(#${Ne})"`:""}>`+M("path",{fill:Xe&&(fo(n.color)||N&&Su(n.color))?"black":n.color,d:mt,transform:nt||void 0,opacity:tr!==1?tr:void 0,style:x?`filter:${x}`: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})+"</g>":"";I&&(Tt=M("path",{d:mt,transform:nt||void 0})),qt+=(Xe?Xe+M("g",{filter:`url(#satori_s-${a})`},Y+ht):Y+ht)+rr}else ht&&(qt+=Xe?M("g",{filter:`url(#satori_s-${a})`},ht):ht);return Tt&&(n._inheritedBackgroundClipTextPath.value+=Tt),qt}function np(e,t){let r=e.Node.create();return r.setAlignItems(e.ALIGN_BASELINE),r.setJustifyContent(He(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")),r}function ip(e){let t=/(\t)+/.exec(e);return t?{index:t.index,tabCount:t[0].length}:{index:null,tabCount:0}}import{parseLinearGradient as sp}from"css-gradient-parser";import op from"parse-css-color";function si(e,t,r,n,i){let o=[],s=t.at(-1),a=s&&s.offset&&s.offset.unit==="%"&&n?+s.offset.value:100;for(let p of t){let{color:m}=p;if(!o.length&&(o.push({offset:0,color:m}),!p.offset||p.offset.value==="0"))continue;let h=typeof p.offset>"u"?void 0:p.offset.unit==="%"?+p.offset.value/a:Number(H(`${p.offset.value}${p.offset.unit}`,r.fontSize,e,r,!0))/e;o.push({offset:h,color:m})}o.length||o.push({offset:0,color:"transparent"});let u=o[o.length-1];u.offset!==1&&(typeof u.offset>"u"?u.offset=1:n?o[o.length-1]={offset:1,color:u.color}:o.push({offset:1,color:u.color}));let l=0,f=1;for(let p=0;p<o.length;p++)if(typeof o[p].offset>"u"){for(f<p&&(f=p);typeof o[f].offset>"u";)f++;o[p].offset=(o[f].offset-o[l].offset)/(f-l)*(p-l)+o[l].offset}else l=p;return i==="mask"?o.map(p=>{let m=op(p.color);return m?m.alpha===0?{...p,color:"rgba(0, 0, 0, 1)"}:{...p,color:`rgba(255, 255, 255, ${m.alpha})`}:p}):o}function Tu({id:e,width:t,height:r,repeatX:n,repeatY:i},o,s,a,u,l){let f=sp(o),[p,m]=s,h=o.startsWith("repeating"),g,v,w;if(f.orientation.type==="directional")g=up(f.orientation.value),v=Math.sqrt(Math.pow((g.x2-g.x1)*p,2)+Math.pow((g.y2-g.y1)*m,2));else if(f.orientation.type==="angular"){let{length:T,...I}=lp(Ur(`${f.orientation.value.value}${f.orientation.value.unit}`)/180*Math.PI,p,m);v=T,g=I}w=h?fp(f.stops,v,g,u):g;let _=si(h?ap(f.stops,v):v,f.stops,u,h,l),O=`satori_bi${e}`,x=`satori_pattern_${e}`,E=M("pattern",{id:x,x:a[0]/t,y:a[1]/r,width:n?p/t:"1",height:i?m/r:"1",patternUnits:"objectBoundingBox"},M("linearGradient",{id:O,...w,spreadMethod:h?"repeat":"pad"},_.map(T=>M("stop",{offset:(T.offset??0)*100+"%","stop-color":T.color})).join(""))+M("rect",{x:0,y:0,width:p,height:m,fill:`url(#${O})`}));return[x,E]}function ap(e,t){let r=e[e.length-1],{offset:n}=r;return n?n.unit==="%"?Number(n.value)/100*t:Number(n.value):t}function up(e){let t=0,r=0,n=0,i=0;return e.includes("top")?r=1:e.includes("bottom")&&(i=1),e.includes("left")?t=1:e.includes("right")&&(n=1),!t&&!n&&!r&&!i&&(r=1),{x1:t,y1:r,x2:n,y2:i}}function lp(e,t,r){let n=Math.pow(r/t,2);e=(e%(Math.PI*2)+Math.PI*2)%(Math.PI*2);let i,o,s,a,u,l,f,p,m=h=>{if(h===0){i=0,o=r,s=0,a=0,u=r;return}else if(h===Math.PI/2){i=0,o=0,s=t,a=0,u=t;return}if(h>0&&h<Math.PI/2){i=(n*t/2/Math.tan(h)-r/2)/(Math.tan(h)+n/Math.tan(h)),o=Math.tan(h)*i+r,s=Math.abs(t/2-i)+t/2,a=r/2-Math.abs(o-r/2),u=Math.sqrt(Math.pow(s-i,2)+Math.pow(a-o,2)),f=(t/2/Math.tan(h)-r/2)/(Math.tan(h)+1/Math.tan(h)),p=Math.tan(h)*f+r,u=2*Math.sqrt(Math.pow(t/2-f,2)+Math.pow(r/2-p,2));return}else if(h>Math.PI/2&&h<Math.PI){i=(r/2+n*t/2/Math.tan(h))/(Math.tan(h)+n/Math.tan(h)),o=Math.tan(h)*i,s=Math.abs(t/2-i)+t/2,a=r/2+Math.abs(o-r/2),f=(t/2/Math.tan(h)+r/2)/(Math.tan(h)+1/Math.tan(h)),p=Math.tan(h)*f,u=2*Math.sqrt(Math.pow(t/2-f,2)+Math.pow(r/2-p,2));return}else h>=Math.PI&&(m(h-Math.PI),l=i,i=s,s=l,l=o,o=a,a=l)};return m(e),{x1:i/t,y1:o/r,x2:s/t,y2:a/r,length:u}}function fp(e,t,r,n){let{x1:i,x2:o,y1:s,y2:a}=r,u=e[0].offset?e[0].offset.unit==="%"?Number(e[0].offset.value)/100:H(`${e[0].offset.value}${e[0].offset.unit}`,n.fontSize,t,n,!0)/t:0,l=e.at(-1).offset?e.at(-1).offset.unit==="%"?Number(e.at(-1).offset.value)/100:H(`${e.at(-1).offset.value}${e.at(-1).offset.unit}`,n.fontSize,t,n,!0)/t:1,f=(o-i)*u+i,p=(a-s)*u+s,m=(o-i)*l+i,h=(a-s)*l+s;return{x1:f,y1:p,x2:m,y2:h}}import{parseRadialGradient as cp}from"css-gradient-parser";function ku({id:e,width:t,height:r,repeatX:n,repeatY:i},o,s,a,u,l){var he;let{shape:f,stops:p,position:m,size:h,repeating:g}=cp(o),[v,w]=s,_=v/2,O=w/2,x=pp(m.x,m.y,v,w,u.fontSize,u);_=x.x,O=x.y;let E=dp(t,p,g,u),T=si(E,p,u,g,l),I=`satori_radial_${e}`,N=`satori_pattern_${e}`,W=`satori_mask_${e}`,G=mp(f,h,u.fontSize,{x:_,y:O},[v,w],u,g),J=hp(f,u.fontSize,p,[v,w],u,g,G),fe=M("pattern",{id:N,x:a[0]/t,y:a[1]/r,width:n?v/t:"1",height:i?w/r:"1",patternUnits:"objectBoundingBox"},M("radialGradient",{id:I,...J},T.map(ue=>M("stop",{offset:ue.offset||0,"stop-color":ue.color})).join(""))+M("mask",{id:W},M("rect",{x:0,y:0,width:v,height:w,fill:"#fff"}))+M("rect",{x:0,y:0,width:v,height:w,fill:((he=T.at(-1))==null?void 0:he.color)||"transparent"})+M(f,{cx:_,cy:O,width:v,height:w,...G,fill:`url(#${I})`,mask:`url(#${W})`}));return[N,fe]}function dp(e,t,r,n){if(!r)return e;let i=t.at(-1);return!i||!i.offset||i.offset.unit==="%"?e:H(`${i.offset.value}${i.offset.unit}`,+n.fontSize,e,n,!0)}function pp(e,t,r,n,i,o){let s={x:r/2,y:n/2};return e.type==="keyword"?Object.assign(s,Eu(e.value,r,n,"x")):s.x=H(`${e.value.value}${e.value.unit}`,i,r,o,!0)??r/2,t.type==="keyword"?Object.assign(s,Eu(t.value,r,n,"y")):s.y=H(`${t.value.value}${t.value.unit}`,i,n,o,!0)??n/2,s}function Eu(e,t,r,n){switch(e){case"center":return{[n]:n==="x"?t/2:r/2};case"left":return{x:0};case"top":return{y:0};case"right":return{x:t};case"bottom":return{y:r}}}function hp(e,t,r,[n,i],o,s,a){let{r:u,rx:l,ratio:f=1}=a;if(!s)return{spreadMethod:"pad"};let p=r.at(-1),m=e==="circle"?u*2:l*2;return{spreadMethod:"repeat",cx:"50%",cy:"50%",r:p.offset.unit==="%"?`${Number(p.offset.value)*Math.min(i/n,1)/f}%`:Number(H(`${p.offset.value}${p.offset.unit}`,t,n,o,!0)/m)}}function mp(e,t,r,n,i,o,s){let[a,u]=i,{x:l,y:f}=n,p={},m=0,h=0;if(gp(t)){if(t.some(g=>g.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"?Object.assign(p,{r:Number(H(`${t[0].value.value}${t[0].value.unit}`,r,a,o,!0))}):Object.assign(p,{rx:Number(H(`${t[0].value.value}${t[0].value.unit}`,r,a,o,!0)),ry:Number(H(`${t[1].value.value}${t[1].value.unit}`,r,u,o,!0))}),ai(p,a,u,l,f,s,e),p}switch(t[0].value){case"farthest-corner":m=Math.max(Math.abs(a-l),Math.abs(l)),h=Math.max(Math.abs(u-f),Math.abs(f));break;case"closest-corner":m=Math.min(Math.abs(a-l),Math.abs(l)),h=Math.min(Math.abs(u-f),Math.abs(f));break;case"farthest-side":return e==="circle"?p.r=Math.max(Math.abs(a-l),Math.abs(l),Math.abs(u-f),Math.abs(f)):(p.rx=Math.max(Math.abs(a-l),Math.abs(l)),p.ry=Math.max(Math.abs(u-f),Math.abs(f))),ai(p,a,u,l,f,s,e),p;case"closest-side":return e==="circle"?p.r=Math.min(Math.abs(a-l),Math.abs(l),Math.abs(u-f),Math.abs(f)):(p.rx=Math.min(Math.abs(a-l),Math.abs(l)),p.ry=Math.min(Math.abs(u-f),Math.abs(f))),ai(p,a,u,l,f,s,e),p}return e==="circle"?p.r=Math.sqrt(m*m+h*h):Object.assign(p,Pu(m,h)),ai(p,a,u,l,f,s,e),p}function ai(e,t,r,n,i,o,s){if(o)if(s==="ellipse"){let a=Math.max(Math.abs(t-n),Math.abs(n)),u=Math.max(Math.abs(r-i),Math.abs(i)),{rx:l,ry:f}=Pu(a,u);e.ratio=Math.max(l/e.rx,f/e.ry),e.ratio>1&&(e.rx*=e.ratio,e.ry*=e.ratio)}else{let a=Math.max(Math.abs(t-n),Math.abs(n)),u=Math.max(Math.abs(r-i),Math.abs(i)),l=Math.sqrt(a*a+u*u);e.ratio=l/e.r,e.ratio>1&&(e.r=l)}}function Pu(e,t){let r=t!==0?e/t:1;if(e===0)return{rx:0,ry:0};{let n=Math.sqrt(e*e+t*t*r*r)/r;return{ry:n,rx:n*r}}}function gp(e){return!e.some(t=>t.type==="keyword")}import Ou from"parse-css-color";function ho(e,t){return typeof e=="string"&&e.endsWith("%")?t*parseFloat(e)/100:+e}function bp(e,t,r,n,i){if(!n||!i)return[t,r];if(e==="cover"){let o=t/n,s=r/i,a=Math.max(o,s);return[n*a,i*a]}if(e==="contain"){let o=t/n,s=r/i,a=Math.min(o,s);return[n*a,i*a]}if(e==="auto"||e.includes("auto")){let o=e.split(" "),s=o[0]||"auto",a=o[1]||o[0]||"auto",u=n,l=i;if(s==="auto"&&a!=="auto"){let f=ho(a,r);l=f,u=n/i*f}else if(a==="auto"&&s!=="auto"){let f=ho(s,t);u=f,l=i/n*f}return[u,l]}return[t,r]}function po(e,{x:t,y:r,defaultX:n,defaultY:i}){return(e?e.split(" ").map(o=>{try{let s=new xt(o);return s.type==="length"||s.type==="number"?s.value:s.value+s.unit}catch{return null}}).filter(o=>o!==null):[n,i]).map((o,s)=>ho(o,[t,r][s]))}async function Xr({id:e,width:t,height:r,left:n,top:i},{image:o,size:s,position:a,repeat:u},l,f){u=u||"repeat",f=f||"background";let p=u==="repeat-x"||u==="repeat",m=u==="repeat-y"||u==="repeat",h=s&&(s==="cover"||s==="contain"||s==="auto"||s.includes("auto")),g=o.startsWith("linear-gradient(")||o.startsWith("repeating-linear-gradient(")||o.startsWith("radial-gradient(")||o.startsWith("repeating-radial-gradient("),v=h&&g?[t,r]:h?[0,0]:po(s,{x:t,y:r,defaultX:t,defaultY:r}),w=po(a,{x:t,y:r,defaultX:0,defaultY:0});if(o.startsWith("linear-gradient(")||o.startsWith("repeating-linear-gradient("))return Tu({id:e,width:t,height:r,repeatX:p,repeatY:m},o,v,w,l,f);if(o.startsWith("radial-gradient(")||o.startsWith("repeating-radial-gradient("))return ku({id:e,width:t,height:r,repeatX:p,repeatY:m},o,v,w,l,f);if(o.startsWith("url(")){let[_,O,x]=await kr(o.slice(4,-1)),E,T;if(h){let[I,N]=bp(s,t,r,O,x);E=I,T=N}else{let I=po(s,{x:t,y:r,defaultX:0,defaultY:0});E=f==="mask"?O||I[0]:I[0]||O,T=f==="mask"?x||I[1]:I[1]||x}return[`satori_bi${e}`,M("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:w[0]+n,y:w[1]+i,width:p?E:"100%",height:m?T:"100%"},M("image",{x:0,y:0,width:E,height:T,preserveAspectRatio:"none",href:_}))]}if(Ou(o)){let _=Ou(o),[O,x,E,T]=_.values,N=`rgba(${O},${x},${E},${T!==void 0?T:1})`;return[`satori_bi${e}`,M("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:n,y:i,width:t,height:r},M("rect",{x:0,y:0,width:t,height:r,fill:N}))]}throw new Error(`Invalid background image: "${o}"`)}function vp([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 ui(e,t,r){return r<e+t&&(r/2<e&&r/2<t?e=t=r/2:r/2<e?e=r-t:r/2<t&&(t=r-e)),[e,t]}function li(e){e[0]=e[1]=Math.min(e[0],e[1])}function fi(e,t,r,n,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(H(o[0],n,t,i,!0),t),Math.min(H(o[1],n,r,i,!0),r)]]}return typeof e=="number"?[!0,[Math.min(e,t),Math.min(e,r)]]:[!0,void 0]}var ci=e=>e&&e[0]!==0&&e[1]!==0;function di(e){return typeof e!="string"?1:io(e)}function pi(e,t,r,n,i){if(i===1/0)return[e,r,t];if(i===-1/0)return[e,n,t];if(i===0)return[e,[(e[0]+t[0])/2,(e[1]+t[1])/2],t];let o=i<0?r:n,s=Math.pow(2,1-Math.abs(i));if(s===0)return i>0?[e,r,t]:[e,n,t];let a=[],u=16;for(let l=0;l<=u;l++){let f=Math.PI*l/u/2,p=Math.pow(Math.sin(f),s),m=Math.pow(Math.cos(f),s);a.push([o[0]+(t[0]-o[0])*p+(e[0]-o[0])*m,o[1]+(t[1]-o[1])*p+(e[1]-o[1])*m])}return a}function ar(e){return`${Math.round(e[0]*1e3)/1e3},${Math.round(e[1]*1e3)/1e3}`}function Iu(e,t,r,n){return Math.min(1,r/(e[0]+t[0]||r),n/(e[1]+t[1]||n))}function yp(e,t,r,n,i,o,s){s!=null&&s.every(Boolean)&&(s=void 0);let a=e+r,u=t+n,[l,f,p,m]=i,h=[pi([e,t+l[1]],[e+l[0],t],[e,t],[e+l[0],t+l[1]],o[0]),pi([a-f[0],t],[a,t+f[1]],[a,t],[a-f[0],t+f[1]],o[1]),pi([a,u-p[1]],[a-p[0],u],[a,u],[a-p[0],u-p[1]],o[2]),pi([e+m[0],u],[e,u-m[1]],[e,u],[e+m[0],u-m[1]],o[3])];if(s){let v=s.indexOf(!0);if(v===-1)throw new Error("Invalid `partialSides`.");for(;s[(v+3)%4];)v=(v+3)%4;let w=h[v],_=Math.floor(w.length/2),O=`M${ar(w[_])}`,x=v;do{let E=h[x],T=Math.floor(E.length/2);for(let W=T+1;W<E.length;W++)O+=` L${ar(E[W])}`;let I=h[(x+1)%4];O+=` L${ar(I[0])}`;let N=Math.floor(I.length/2);for(let W=1;W<=N;W++)O+=` L${ar(I[W])}`;x=(x+1)%4}while(s[x]&&x!==v);return O}let g=`M${ar(h[0][h[0].length-1])}`;for(let v=0;v<4;v++){let w=h[(v+1)%4];g+=` L${ar(w[0])}`;for(let _=1;_<w.length;_++)g+=` L${ar(w[_])}`}return g+" Z"}function Au({id:e,borderRadiusPath:t,borderType:r,left:n,top:i,width:o,height:s},a){let u=`satori_brc-${e}`;return[M("clipPath",{id:u},M(r,{x:n,y:i,width:o,height:s,d:t||void 0})),u]}function Ht({left:e,top:t,width:r,height:n},i,o){let{borderTopLeftRadius:s,borderTopRightRadius:a,borderBottomLeftRadius:u,borderBottomRightRadius:l,fontSize:f}=i,p=[di(i.cornerTopLeftShape),di(i.cornerTopRightShape),di(i.cornerBottomRightShape),di(i.cornerBottomLeftShape)],m,h,g,v;if([m,s]=fi(s,r,n,f,i),[h,a]=fi(a,r,n,f,i),[g,u]=fi(u,r,n,f,i),[v,l]=fi(l,r,n,f,i),!o&&!ci(s)&&!ci(a)&&!ci(u)&&!ci(l))return"";if(s||=[0,0],a||=[0,0],u||=[0,0],l||=[0,0],[s[0],a[0]]=ui(s[0],a[0],r),[u[0],l[0]]=ui(u[0],l[0],r),[s[1],u[1]]=ui(s[1],u[1],n),[a[1],l[1]]=ui(a[1],l[1],n),m&&li(s),h&&li(a),g&&li(u),v&&li(l),p.some(T=>T<0)){let T=Math.min(Iu(s,l,r,n),Iu(a,u,r,n));if(T<1)for(let I of[s,a,l,u])I[0]*=T,I[1]*=T}if(p.some(T=>T!==1))return yp(e,t,r,n,[s,a,l,u],p,o);let w=[];w[0]=[a,a],w[1]=[l,[-l[0],l[1]]],w[2]=[u,[-u[0],-u[1]]],w[3]=[s,[s[0],-s[1]]];let _=`h${r-s[0]-a[0]} a${w[0][0]} 0 0 1 ${w[0][1]}`,O=`v${n-a[1]-l[1]} a${w[1][0]} 0 0 1 ${w[1][1]}`,x=`h${l[0]+u[0]-r} a${w[2][0]} 0 0 1 ${w[2][1]}`,E=`v${u[1]+s[1]-n} a${w[3][0]} 0 0 1 ${w[3][1]}`;if(o){let I=function(he){let ue=vp([s,a,l,u][he]);return he===0?[[e+s[0]-ue,t+s[1]-ue],[e+s[0],t]]:he===1?[[e+r-a[0]+ue,t+a[1]-ue],[e+r,t+a[1]]]:he===2?[[e+r-l[0]+ue,t+n-l[1]+ue],[e+r-l[0],t+n]]:[[e+u[0]-ue,t+n-u[1]+ue],[e,t+n-u[1]]]},T=o.indexOf(!1);if(!o.includes(!0))throw new Error("Invalid `partialSides`.");if(T===-1)T=0;else for(;!o[T];)T=(T+1)%4;let N="",W=I(T),G=`M${W[0]} A${w[(T+3)%4][0]} 0 0 1 ${W[1]}`,J=0;for(;J<4&&o[(T+J)%4];J++)N+=G+" ",G=[_,O,x,E][(T+J)%4];let fe=(T+J)%4;N+=G.split(" ")[0];let be=I(fe);return N+=` A${w[(fe+3)%4][0]} 0 0 1 ${be[0]}`,N}return`M${e+s[0]},${t} ${_} ${O} ${x} ${E}`}function Ru(e,t,r){return r[e+"Width"]===r[t+"Width"]&&r[e+"Style"]===r[t+"Style"]&&r[e+"Color"]===r[t+"Color"]}function Cu({id:e,currentClipPathId:t,borderPath:r,borderType:n,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[M("clipPath",{id:f,"clip-path":t?`url(#${t})`:void 0},M(n,{x:i,y:o,width:s,height:a,d:r||void 0})),f]}function Qr({left:e,top:t,width:r,height:n,props:i,asContentMask:o,maskBorderOnly:s},a){let u=["borderTop","borderRight","borderBottom","borderLeft"];if(!o&&!u.some(h=>a[h+"Width"]))return"";let l="",f=0;for(;f>0&&Ru(u[f],u[(f+3)%4],a);)f=(f+3)%4;let p=[!1,!1,!1,!1],m=[];for(let h=0;h<4;h++){let g=(f+h)%4,v=(f+h+1)%4,w=u[g],_=u[v];if(p[g]=!0,m=[a[w+"Width"],a[w+"Style"],a[w+"Color"],w],!Ru(w,_,a)){let O=(m[0]||0)+(o&&!s&&a[w.replace("border","padding")]||0);O&&(l+=M("path",{width:r,height:n,...i,fill:"none",stroke:o?"#000":m[2],"stroke-width":O*2,"stroke-dasharray":!o&&m[1]==="dashed"?O*2+" "+O:void 0,d:Ht({left:e,top:t,width:r,height:n},a,p)})),p=[!1,!1,!1,!1]}}if(p.some(Boolean)){let h=(m[0]||0)+(o&&!s&&a[m[3].replace("border","padding")]||0);h&&(l+=M("path",{width:r,height:n,...i,fill:"none",stroke:o?"#000":m[2],"stroke-width":h*2,"stroke-dasharray":!o&&m[1]==="dashed"?h*2+" "+h:void 0,d:Ht({left:e,top:t,width:r,height:n},a,p)}))}return l}function mo({id:e,left:t,top:r,width:n,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),p=(a.borderBottomWidth||0)+(s?0:a.paddingBottom||0),m={x:t+u,y:r+l,width:n-u-f,height:i-l-p};return M("mask",{id:e},M("rect",{...m,fill:"#fff",transform:a.overflow==="hidden"&&a.transform&&o?o:void 0,mask:a._inheritedMaskId?`url(#${a._inheritedMaskId})`:void 0})+Qr({left:t,top:r,width:n,height:i,props:{transform:o||void 0},asContentMask:!0,maskBorderOnly:s},a))}import{getStylesForProperty as Nu}from"css-to-react-native";var vo={left:0,"x-start":0,center:.5,right:1,"x-end":1},yo={top:0,"y-start":0,center:.5,bottom:1,"y-end":1};function Ot(e){return Math.round(e*1e3)/1e3}function Mu(e,t,r,n){let i=e.match(/^shape\((.*)\)$/s);if(!i)return null;let o=wr(i[1]),s=o.shift();if(!s)throw new Error("Invalid `shape()` value.");let a=s.match(/^(?:(nonzero|evenodd)\s+)?from\s+(.+)$/);if(!a)throw new Error("Invalid `shape()` starting point.");let u=a[1]||"nonzero",l=xo(Lu(a[2]),t,r,n),f=l,p=`M${Ot(l[0])},${Ot(l[1])}`;for(let m of o){let h=Lu(m),g=h.shift();if(g==="close"){if(h.length)throw new Error("Invalid `close` command in `shape()`.");p+=" Z",l=f;continue}if(g==="move"||g==="line"){let v=go(h,l,t,r,n);p+=` ${g==="move"?"M":"L"}${Ot(v[0])},${Ot(v[1])}`,l=v,g==="move"&&(f=v);continue}if(g==="hline"||g==="vline"){let v=g==="hline"?0:1,w=h.shift(),_=h.shift();if(w!=="to"&&w!=="by"||!_||h.length)throw new Error(`Invalid \`${g}\` command in \`shape()\`.`);let O=v===0?t:r,x=v===0?vo:yo,E=w==="to"&&_ in x?x[_]*O:Yt(_,O,n);l=[...l],l[v]=w==="by"?l[v]+E:E,p+=` ${v===0?"H":"V"}${Ot(l[v])}`;continue}if(g==="curve"||g==="smooth"){let v=h.indexOf("with"),w=v===-1?h:h.slice(0,v),_=v===-1?[]:h.slice(v+1),O=w[0],x=go(w,l,t,r,n);if(g==="curve"&&v===-1)throw new Error("A `curve` command requires a control point.");let E=xp(_).map(T=>wp(T,l,x,t,r,n));if(g==="curve")if(E.length===1)p+=` Q${Dt(E[0])} ${Dt(x)}`;else if(E.length===2)p+=` C${Dt(E[0])} ${Dt(E[1])} ${Dt(x)}`;else throw new Error("A `curve` command accepts one or two control points.");else if(!E.length)p+=` T${Dt(x)}`;else if(E.length===1)p+=` S${Dt(E[0])} ${Dt(x)}`;else throw new Error("A `smooth` command accepts at most one control point.");l=x;continue}if(g==="arc"){let v=h.findIndex(W=>["of","cw","ccw","large","small","rotate"].includes(W)),w=v===-1?h:h.slice(0,v),_=v===-1?[]:h.slice(v),O=go(w,l,t,r,n),x=0,E=0,T=0,I=0,N=0;for(let W=0;W<_.length;W++){let G=_[W];if(G==="of"){let J=_[++W];if(!J)throw new Error("Invalid `arc` radius in `shape()`.");let fe=_[W+1],be=fe&&!["cw","ccw","large","small","rotate"].includes(fe);if(be&&W++,be)x=Yt(J,t,n),E=Yt(fe,r,n);else{let he=Math.sqrt(t*t+r*r)/Math.sqrt(2);x=E=Yt(J,he,n)}}else if(G==="cw"||G==="ccw")N=G==="cw"?1:0;else if(G==="large"||G==="small")I=G==="large"?1:0;else if(G==="rotate"){let J=_[++W];if(!J)throw new Error("Invalid `arc` rotation in `shape()`.");let fe=Ur(J);if(typeof fe>"u")throw new Error("Invalid `arc` rotation in `shape()`.");T=fe}else throw new Error("Invalid `arc` option in `shape()`.")}p+=` A${Ot(Math.abs(x))},${Ot(Math.abs(E))} ${Ot(T)} ${I} ${N} ${Dt(O)}`,l=O;continue}throw new Error(`Unsupported \`${g}\` command in \`shape()\`.`)}return{type:"path",d:p,"fill-rule":u}}function Lu(e){return e.trim().replace(/\//g," / ").split(/\s+/).filter(Boolean)}function xp(e){if(!e.length)return[];let t=e.indexOf("/");return t===-1?[e]:[e.slice(0,t),e.slice(t+1)]}function go(e,t,r,n,i){let o=e[0];if(o!=="to"&&o!=="by")throw new Error("A `shape()` command must use `to` or `by`.");let s=xo(e.slice(1),r,n,i);return o==="by"?[t[0]+s[0],t[1]+s[1]]:s}function wp(e,t,r,n,i,o){let s=e.indexOf("from"),a=s===-1?e:e.slice(0,s),u=s===-1?void 0:e[s+1];if(s!==-1&&(s+2!==e.length||!u))throw new Error("Invalid control point reference in `shape()`.");let l=xo(a,n,i,o,!0);return u==="start"||!u&&!Sp(e)?[t[0]+l[0],t[1]+l[1]]:u==="end"?[r[0]+l[0],r[1]+l[1]]:l}function xo(e,t,r,n,i=!1){if(!e.length||e.length>4)throw new Error("Invalid position in `shape()`.");let o,s,a=[...e];for(let u=0;u<a.length;u++){let l=a[u];if(l==="left"||l==="right"||l==="x-start"||l==="x-end"){let f=a[u+1];if(f&&!bo(f)){let p=Yt(f,t,n);o=l==="left"||l==="x-start"?p:t-p,u++}else o=vo[l]*t}else if(l==="top"||l==="bottom"||l==="y-start"||l==="y-end"){let f=a[u+1];if(f&&!bo(f)){let p=Yt(f,r,n);s=l==="top"||l==="y-start"?p:r-p,u++}else s=yo[l]*r}else if(l==="center")if(o===void 0)o=t/2;else if(s===void 0)s=r/2;else throw new Error("Invalid position in `shape()`.");else if(o===void 0)o=Yt(l,t,n);else if(s===void 0)s=Yt(l,r,n);else throw new Error("Invalid position in `shape()`.")}return!i&&e.length===1&&s===void 0&&(s=r/2),[o??(i?0:t/2),s??(i?0:r/2)]}function bo(e){return e in vo||e in yo}function Sp(e){return e.some(bo)}function Yt(e,t,r){let n=H(e,r.fontSize,t,r,!0);if(typeof n>"u")throw new Error(`Invalid length \`${e}\` in \`shape()\`.`);return n}function Dt(e){return`${Ot(e[0])},${Ot(e[1])}`}var Or={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/,shape:/shape\((.+)\)/};function Du({width:e,height:t},r,n){function i(f){let p=f.match(Or.circle);if(!p)return null;let[,m]=p,[h,g=""]=m.split("at").map(_=>_.trim()),{x:v,y:w}=Wu(g,e,t);return{type:"circle",r:H(h,n.fontSize,Math.sqrt(Math.pow(e,2)+Math.pow(t,2))/Math.sqrt(2),n,!0),cx:H(v,n.fontSize,e,n,!0),cy:H(w,n.fontSize,t,n,!0)}}function o(f){let p=f.match(Or.ellipse);if(!p)return null;let[,m]=p,[h,g=""]=m.split("at").map(x=>x.trim()),[v,w]=h.split(" "),{x:_,y:O}=Wu(g,e,t);return{type:"ellipse",rx:H(v||"50%",n.fontSize,e,n,!0),ry:H(w||"50%",n.fontSize,t,n,!0),cx:H(_,n.fontSize,e,n,!0),cy:H(O,n.fontSize,t,n,!0)}}function s(f){let p=f.match(Or.path);if(!p)return null;let[m,h]=Fu(p[1]);return{type:"path",d:h,"fill-rule":m}}function a(f){let p=f.match(Or.polygon);if(!p)return null;let[m,h]=Fu(p[1]);return{type:"polygon","fill-rule":m,points:h.split(",").map(g=>g.split(" ").map((v,w)=>H(v,n.fontSize,w===0?e:t,n,!0)).join(" ")).join(",")}}function u(f){let p=f.match(Or.inset);if(!p)return null;let[m,h]=(p[1].includes("round")?p[1]:`${p[1].trim()} round 0`).split("round"),g=Nu("borderRadius",h,!0),v=Object.values(g).map(T=>String(T)).map((T,I)=>H(T,n.fontSize,I===0||I===2?t:e,n,!0)||0),w=Object.values(Nu("margin",m,!0)).map(T=>String(T)).map((T,I)=>H(T,n.fontSize,I===0||I===2?t:e,n,!0)||0),_=w[3],O=w[0],x=e-(w[1]+w[3]),E=t-(w[0]+w[2]);return v.some(T=>T>0)?{type:"path",d:Ht({left:_,top:O,width:x,height:E},{...r,...g})}:{type:"rect",x:_,y:O,width:x,height:E}}function l(f){return Or.shape.test(f)?Mu(f,e,t,n):null}return{parseCircle:i,parseEllipse:o,parsePath:s,parsePolygon:a,parseInset:u,parseShape:l}}function Fu(e){let[,t="nonzero",r]=e.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[t,r]}function Wu(e,t,r){let n=e.split(" "),i={x:n[0]||"50%",y:n[1]||"50%"};return n.forEach(o=>{o==="top"?i.y=0:o==="bottom"?i.y=r:o==="left"?i.x=0:o==="right"?i.x=t:o==="center"&&(i.x=t/2,i.y=r/2)}),i}function hi(e){return`satori_cp-${e}`}function $u(e){return`url(#${hi(e)})`}function Bu(e,t,r){if(t.clipPath==="none")return"";let n=Du(e,t,r),i=t.clipPath,o={type:""};for(let s of Object.keys(n))if(o=n[s](i),o)break;if(o){let{type:s,...a}=o;return M("clipPath",{id:hi(e.id),"clip-path":e.currentClipPath,transform:`translate(${e.left}, ${e.top})`},M(s,a))}return""}function wo({left:e,top:t,width:r,height:n,path:i,matrix:o,id:s,currentClipPath:a,src:u},l,f){let p="",m=l.clipPath&&l.clipPath!=="none"?Bu({left:e,top:t,width:r,height:n,path:i,id:s,matrix:o,currentClipPath:a,src:u},l,f):"";if(l.overflow!=="hidden"&&!u)p="";else{let g=m?`satori_ocp-${s}`:hi(s);p=M("clipPath",{id:g,"clip-path":a},M(i?"path":"rect",{x:e,y:t,width:r,height:n,d:i||void 0,transform:l.overflow==="hidden"&&l.transform&&o?o:void 0}))}let h=mo({id:`satori_om-${s}`,left:e,top:t,width:r,height:n,matrix:o,borderOnly:!u},l);return m+p+h}var _p=e=>`satori_mi-${e}`;async function So(e,t,r){if(!t.maskImage)return["",""];let{left:n,top:i,width:o,height:s,id:a}=e,u=t.maskImage,l=u.length;if(!l)return["",""];let f=_p(a),p="";for(let m=0;m<l;m++){let h=u[m],[g,v]=await Xr({id:`${f}-${m}`,left:n,top:i,width:o,height:s},h,r,"mask");p+=v+M("rect",{x:n,y:i,width:o,height:s,fill:`url(#${g})`})}return p=M("mask",{id:f},p),[f,p]}function Tp(e,t,r){let n=e.toLowerCase().trim().split(/\s+/),i=(u,l)=>({left:"0%",center:"50%",right:"100%",top:"0%",bottom:"100%"})[u]||u,o,s;if(n.length===1){let u=n[0];u==="left"||u==="center"||u==="right"?(o=i(u,"x"),s="50%"):u==="top"||u==="bottom"?(o="50%",s=i(u,"y")):(o=u,s="50%")}else{let u=n[0],l=n[1];u==="top"||u==="bottom"?(s=i(u,"y"),l==="left"||l==="right"||l==="center"?o=i(l,"x"):(o="50%",s=u==="top"||u==="bottom"?i(u,"y"):l)):(o=i(u,"x"),s=i(l,"y"))}let a=(u,l)=>{try{if(u.endsWith("%"))return l*parseFloat(u)/100;let f=new xt(u);return f.type==="length"||f.type==="number"?f.value:0}catch{return 0}};return[a(o,t),a(s,r)]}async function Kr({id:e,left:t,top:r,width:n,height:i,isInheritingTransform:o,src:s,debug:a},u,l){if(u.display==="none")return"";let f=!!s,p="rect",m="",h="",g=[],v=1,w="";u.backgroundColor&&g.push(u.backgroundColor),u.opacity!==void 0&&(v=+u.opacity),u.transform&&(m=Yr({left:t,top:r,width:n,height:i},u.transform,o,u.transformOrigin));let _="";if(u.backgroundImage){let ee=[];for(let ie=0;ie<u.backgroundImage.length;ie++){let Pe=u.backgroundImage[ie],xe=await Xr({id:e+"_"+ie,width:n,height:i,left:t,top:r},Pe,l);xe&&ee.unshift(xe)}for(let ie of ee)g.push(`url(#${ie[0]})`),h+=ie[1],ie[2]&&(_+=ie[2])}let[O,x]=await So({id:e,left:t,top:r,width:n,height:i},u,l);h+=x;let E=O?`url(#${O})`:u._inheritedMaskId?`url(#${u._inheritedMaskId})`:void 0,T=Ht({left:t,top:r,width:n,height:i},u);T&&(p="path");let I=u._inheritedClipPathId;a&&(w=M("rect",{x:t,y:r,width:n,height:i,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:m||void 0,"clip-path":I?`url(#${I})`:void 0}));let{backgroundClip:N,filter:W}=u,G=N==="text"?`url(#satori_bct-${e})`:I?`url(#${I})`:u.clipPath?$u(e):void 0,J=wo({left:t,top:r,width:n,height:i,path:T,id:e,matrix:m,currentClipPath:G,src:s},u,l),fe=g.map(ee=>M(p,{x:t,y:r,width:n,height:i,fill:ee,d:T||void 0,transform:m||void 0,"clip-path":u.transform?void 0:G,style:W?`filter:${W}`:void 0,mask:u.transform?void 0:E})).join(""),be=Cu({id:e,left:t,top:r,width:n,height:i,currentClipPathId:I,borderPath:T,borderType:p},u),he;if(f){let ee=(u.borderLeftWidth||0)+(u.paddingLeft||0),ie=(u.borderTopWidth||0)+(u.paddingTop||0),Pe=(u.borderRightWidth||0)+(u.paddingRight||0),xe=(u.borderBottomWidth||0)+(u.paddingBottom||0),Re=n-ee-Pe,Oe=i-ie-xe,Ye=(u.objectPosition||"center").toString(),[Me,Ie]=Tp(Ye,Re,Oe),ce=u.__naturalWidth||Re,X=u.__naturalHeight||Oe,Z,me=Re,z=Oe,Le=t+ee,De=r+ie;if(u.objectFit==="contain"){let qe=Re/ce,Be=Oe/X,oe=Math.min(qe,Be);me=ce*oe,z=X*oe,Le=t+ee+Me-me*Me/Re,De=r+ie+Ie-z*Ie/Oe,Z="none"}else if(u.objectFit==="cover"){let qe=Re/ce,Be=Oe/X,oe=Math.max(qe,Be);me=ce*oe,z=X*oe,Le=t+ee+Me-me*Me/Re,De=r+ie+Ie-z*Ie/Oe,Z="none"}else if(u.objectFit==="fill")Z="none";else if(u.objectFit==="scale-down")if(ce&&X){let qe=Re/ce,Be=Oe/X,oe=Math.min(qe,Be);if(oe>=1)me=ce,z=X,Z="none",Le=t+ee+Me-me*Me/Re,De=r+ie+Ie-z*Ie/Oe;else{let _t=oe;me=ce*_t,z=X*_t,Le=t+ee+Me-me*Me/Re,De=r+ie+Ie-z*Ie/Oe,Z="none"}}else{let qe=Re/ce,Be=Oe/X,oe=Math.min(qe,Be);me=ce*oe,z=X*oe,Le=t+ee+Me-me*Me/Re,De=r+ie+Ie-z*Ie/Oe,Z="none"}else Z="none";u.transform&&(he=Au({id:e,borderRadiusPath:T,borderType:p,left:t,top:r,width:n,height:i},u)),fe+=M("image",{x:Le,y:De,width:me,height:z,href:s,preserveAspectRatio:Z,transform:m||void 0,style:W?`filter:${W}`:void 0,"clip-path":u.transform?he?`url(#${he[1]})`:void 0:`url(#satori_cp-${e})`,mask:u.transform?void 0:O?`url(#${O})`:`url(#satori_om-${e})`})}if(be){h+=be[0];let ee=be[1];fe+=Qr({left:t,top:r,width:n,height:i,props:{transform:m||void 0,"clip-path":`url(#${ee})`}},u)}let ue=yu({width:n,height:i,id:e,opacity:v,shape:M(p,{x:t,y:r,width:n,height:i,fill:"#fff",stroke:"#fff","stroke-width":0,d:T||void 0,transform:m||void 0,"clip-path":G,mask:E})},u);return(h?M("defs",{},h):"")+(ue?ue[0]:"")+(he?he[0]:"")+J+(v!==1?`<g opacity="${v}">`:"")+(u.transform&&(G||E)?`<g${G?` clip-path="${G}"`:""}${E?` mask="${E}"`:""}>`:"")+(_||fe)+(u.transform&&(G||E)?"</g>":"")+(v!==1?"</g>":"")+(ue?ue[1]:"")+w}var qu=String.raw,Uu=qu`\p{Emoji}(?:\p{EMod}|[\u{E0020}-\u{E007E}]+\u{E007F}|\uFE0F?\u20E3?)`,zu=()=>new RegExp(qu`\p{RI}{2}|(?)${Uu}(?:\u200D${Uu})*`,"gu");var Ep=new RegExp(zu(),"u"),_o={emoji:Ep,symbol:/\p{Symbol}/u,math:/\p{Math}/u},To={"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},mi=Object.keys({...To,..._o});function Gu(e){return mi.includes(e)}function ju(e,t){for(let n of Object.keys(_o))if(_o[n].test(e))return[n];let r=Object.keys(To).filter(n=>To[n].test(e));if(r.length===0)return["unknown"];if(t){let n=r.findIndex(i=>i===t);n!==-1&&(r.splice(n,1),r.unshift(t))}return r}function Vu(e){if(e)return mi.find(t=>t.toLowerCase().startsWith(e.toLowerCase()))}async function*Jr(e,t){var ce;let r=await jt(),{id:n,inheritedStyle:i,parent:o,font:s,debug:a,locale:u,embedFont:l=!0,graphemeImages:f,canLoadAdditionalAssets:p,getTwStyles:m}=t;if(e===null||typeof e>"u")return yield,yield,"";if(!yr(e)||Pa(e.type)){let X;if(!yr(e))X=co(String(e),t),yield(await X.next()).value;else{if(ka(e.type))throw new Error("Class component is not supported.");let me;Ui(e.type)?me=e.type.render:me=e.type,X=Jr(await me(e.props),t),yield(await X.next()).value}await X.next();let Z=yield;return(await X.next(Z)).value}let{type:h,props:g}=e,v=h;if(g&&Oa(g))throw new Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:w,children:_,tw:O,lang:x=u}=g||{},E=Vu(x);if(O){let X=m(O,w);w=Object.assign(X,w)}let T=r.Node.create();o.insertChild(T,o.getChildCount());let[I,N]=await oo(T,v,i,w,g),W=I.transform===i.transform;if(W||(I.transform.__parent=i.transform),(I.overflow==="hidden"||I.clipPath&&I.clipPath!=="none")&&(N._inheritedClipPathId=`satori_cp-${n}`,N._inheritedMaskId=`satori_om-${n}`),I.maskImage&&(N._inheritedMaskId=`satori_mi-${n}`),I.backgroundClip==="text"){let X={value:""};N._inheritedBackgroundClipTextPath=X,I._inheritedBackgroundClipTextPath=X,I.backgroundImage&&(N._inheritedBackgroundClipTextHasBackground="true",I._inheritedBackgroundClipTextHasBackground="true")}let G=Ia(_),J=[],fe=0,be=[];for(let X of G){let Z=Jr(X,{id:n+"-"+fe++,parentStyle:I,inheritedStyle:N,isInheritingTransform:!0,parent:T,font:s,embedFont:l,debug:a,graphemeImages:f,canLoadAdditionalAssets:p,locale:E,getTwStyles:m,onNodeDetected:t.onNodeDetected});p?be.push(...(await Z.next()).value||[]):await Z.next(),J.push(Z)}yield be;for(let X of J)await X.next();let[he,ue]=yield,{left:ee,top:ie,width:Pe,height:xe}=T.getComputedLayout();ee+=he,ie+=ue;let Re="",Oe="",Ye="",{children:Me,...Ie}=g;if((ce=t.onNodeDetected)==null||ce.call(t,{left:ee,top:ie,width:Pe,height:xe,type:v,props:Ie,key:e.key,textContent:yr(Me)?void 0:Me}),v==="img"){let X=I.__src;Oe=await Kr({id:n,left:ee,top:ie,width:Pe,height:xe,src:X,isInheritingTransform:W,debug:a},I,N)}else if(v==="svg"){let X=I.color,Z=await ou(e,X);Oe=await Kr({id:n,left:ee,top:ie,width:Pe,height:xe,src:Z,isInheritingTransform:W,debug:a},I,N)}else{let X=w==null?void 0:w.display;if(v==="div"&&_&&typeof _!="string"&&X!=="flex"&&X!=="none"&&X!=="contents")throw new Error('Expected <div> to have explicit "display: flex", "display: contents", or "display: none" if it has more than one child node.');Oe=await Kr({id:n,left:ee,top:ie,width:Pe,height:xe,isInheritingTransform:W,debug:a},I,N)}for(let X of J)Re+=(await X.next([ee,ie])).value;return I._inheritedBackgroundClipTextPath&&(Ye+=M("clipPath",{id:`satori_bct-${n}`,"clip-path":I._inheritedClipPathId?`url(#${I._inheritedClipPathId})`:void 0},I._inheritedBackgroundClipTextPath.value)),Ye+Oe+Re}import Zr from"@shuding/opentype.js";var Hu="unknown";function kp(e){let t=[],r=[0,0],n=[0,0],i=(o,s)=>{let a=o[0];for(let u=1;u<=s;u++){let l=u/s,f=Pp(o,l);t.push({from:a,to:f}),a=f}n=o[o.length-1]};for(let o of e){if(o.type==="M"){r=n=[o.x,o.y];continue}if(o.type==="L"){let s=[o.x,o.y];t.push({from:n,to:s}),n=s;continue}if(o.type==="Q"){i([n,[o.x1,o.y1],[o.x,o.y]],12);continue}if(o.type==="C"){i([n,[o.x1,o.y1],[o.x2,o.y2],[o.x,o.y]],16);continue}o.type==="Z"&&(t.push({from:n,to:r}),n=r)}return t}function Pp(e,t){let r=e;for(;r.length>1;){let n=[];for(let i=0;i<r.length-1;i++)n.push([r[i][0]+(r[i+1][0]-r[i][0])*t,r[i][1]+(r[i+1][1]-r[i][1])*t]);r=n}return r[0]}function Op(e,t){if(!t)return[];let r=t.strokeWidth,n=t.underlineY-r*.25,i=t.underlineY+r*2.5,o=kp(e);if(!o.length)return[];let s=i-n,a=Math.max(12,Math.ceil(s/.25)),u=s/a,l=n+u/2,f=new Set;for(let x=0;x<a;x++){let E=l+u*x,T=[];for(let I of o){let[N,W]=I.from,[G,J]=I.to;if(W===J)continue;let fe=Math.min(W,J),be=Math.max(W,J);if(E<fe||E>=be)continue;let he=(E-W)/(J-W),ue=N+(G-N)*he;T.push(ue)}if(T.length){T.sort((I,N)=>I-N);for(let I=0;I<T.length-1;I+=2){let N=Math.min(T[I],T[I+1]),W=Math.max(T[I],T[I+1]),G=Math.floor(N),J=Math.ceil(W);for(let fe=G;fe<J;fe++)f.add(fe)}}}if(!f.size)return[];let p=Array.from(f.values()).sort((x,E)=>x-E),m=[],h=p[0],g=p[0];for(let x=1;x<p.length;x++){let E=p[x];E>g+1&&(m.push([h,g+1]),h=E),g=E}m.push([h,g+1]);let v=[],w=r*.6,_=m[0][0],O=m[m.length-1][1];for(let[x,E]of m){let T=Math.min(x,_)-w,I=Math.max(E,O)+w;v.push({x1:T,x2:I,y1:n,y2:i})}return v}function Ip(e,t,[r,n],[i,o]){if(r!==i)return r?!i||r===e?-1:i===e?1:e===400&&r===500||e===500&&r===400?-1:e===400&&i===500||e===500&&i===400?1:e<400?r<e&&i<e?i-r:r<e?-1:i<e?1:r-i:e<r&&e<i?r-i:e<r?-1:e<i?1:i-r:1;if(n!==o){if(n===t)return-1;if(o===t)return 1}return-1}var Eo=new WeakMap,en=class{constructor(t){this.fonts=new Map;this.addFonts(t)}get({name:t,weight:r,style:n}){if(!this.fonts.has(t))return null;r==="normal"&&(r=400),r==="bold"&&(r=700),typeof r=="string"&&(r=Number.parseInt(r,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];Ip(r,n,[a,u],[l,f])>0&&(o=i[s])}return o[0]}addFonts(t){for(let r of t){let{name:n,data:i,lang:o}=r;if(o&&!Gu(o))throw new Error(`Invalid value for props \`lang\`: "${o}". The value must be one of the following: ${mi.join(", ")}.`);let s=o??Hu,a;if(Eo.has(i))a=Eo.get(i);else{a=Zr.parse("buffer"in i?i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength):i,{lowMemory:!0});let l=a.charToGlyphIndex;a.charToGlyphIndex=f=>{let p=l.call(a,f);return p===0&&a._trackBrokenChars&&a._trackBrokenChars.push(f),p},Eo.set(i,a)}this.defaultFont||(this.defaultFont=a);let u=`${n.toLowerCase()}_${s}`;this.fonts.has(u)||this.fonts.set(u,[]),this.fonts.get(u).push([a,r.weight,r.style])}}getEngine(t=16,r="normal",{fontFamily:n="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.");n=(Array.isArray(n)?n:[n]).map(x=>x.toLowerCase());let a=[];n.forEach(x=>{let E=this.get({name:x,weight:i,style:o});if(E){a.push(E);return}let T=this.get({name:x+"_unknown",weight:i,style:o});if(T){a.push(T);return}});let u=Array.from(this.fonts.keys()),l=[],f=[],p=[];for(let x of u)if(!n.includes(x))if(s){let E=Ap(x);E?E===s?l.push(this.get({name:x,weight:i,style:o})):f.push(this.get({name:x,weight:i,style:o})):p.push(this.get({name:x,weight:i,style:o}))}else p.push(this.get({name:x,weight:i,style:o}));let m=new Map,h=(x,E=!0)=>{let T=[...a,...p,...l,...E?f:[]];if(typeof x>"u")return E?T[T.length-1]:void 0;let I=x.charCodeAt(0);if(m.has(I))return m.get(I);let N=T.find((W,G)=>!!W.charToGlyphIndex(x)||E&&G===T.length-1);return N&&m.set(I,N),N},g=(x,E=!1)=>{var I,N;return((E?(N=(I=x.tables)==null?void 0:I.os2)==null?void 0:N.sTypoAscender:0)||x.ascender)/x.unitsPerEm*t},v=(x,E=!1)=>{var I,N;return((E?(N=(I=x.tables)==null?void 0:I.os2)==null?void 0:N.sTypoDescender:0)||x.descender)/x.unitsPerEm*t},w=(x,E=!1)=>{var T,I;if(typeof r=="string"&&r==="normal"){let N=(E?(I=(T=x.tables)==null?void 0:T.os2)==null?void 0:I.sTypoLineGap:0)||0;return g(x,E)-v(x,E)+N/x.unitsPerEm*t}else if(typeof r=="number")return t*r},_=x=>h(x,!1);return{has:x=>{if(x===`
|
|
7
|
-
`)return!0;let E=_(x);return E?(E._trackBrokenChars=[],E.stringToGlyphs(x),E._trackBrokenChars.length?(E._trackBrokenChars=void 0,!1):!0):!1},baseline:(x,E=typeof x>"u"?a[0]:h(x))=>{let T=g(E),I=v(E),N=T-I;return T+(w(E)-N)/2},height:(x,E=typeof x>"u"?a[0]:h(x))=>w(E),measure:(x,E)=>this.measure(h,x,E),getSVG:(x,E,T)=>this.getSVG(h,x,E,T)}}patchFontFallbackResolver(t,r){let n=[];t._trackBrokenChars=n;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=n.shift(),f=r(l);if(f!==t){let p=f.charToGlyph(l),m=t.unitsPerEm/f.unitsPerEm,h=new Zr.Path;h.unitsPerEm=t.unitsPerEm,h.commands=p.path.commands.map(v=>{let w={...v};for(let _ in w)typeof w[_]=="number"&&(w[_]*=m);return w});let g=new Zr.Glyph({...p,advanceWidth:p.advanceWidth*m,xMin:p.xMin*m,xMax:p.xMax*m,yMin:p.yMin*m,yMax:p.yMax*m,path:h});a[u]=g}}return a},()=>{t.stringToGlyphs=i,t._trackBrokenChars=void 0}}measure(t,r,{fontSize:n,letterSpacing:i=0}){let o=t(r),s=this.patchFontFallbackResolver(o,t);try{return o.getAdvanceWidth(r,n,{letterSpacing:i/n})}finally{s()}}getSVG(t,r,{fontSize:n,top:i,left:o,letterSpacing:s=0},a){let u=t(r),l=this.patchFontFallbackResolver(u,t);try{if(n===0)return{path:"",boxes:[]};let f=new Zr.Path,p=[],m={letterSpacing:s/n},h=new WeakMap;return u.forEachGlyph(r.replace(/\n/g,""),o,i,n,m,function(g,v,w,_){let O;if(!h.has(g))O=g.getPath(v,w,_,m),h.set(g,[v,w,O]);else{let[E,T,I]=h.get(g);O=new Zr.Path,O.commands=I.commands.map(N=>{let W={...N};for(let G in W)typeof W[G]=="number"&&((G==="x"||G==="x1"||G==="x2")&&(W[G]+=v-E),(G==="y"||G==="y1"||G==="y2")&&(W[G]+=w-T));return W})}let x=a?Op(O.commands,a):[];x.length&&p.push(...x),f.extend(O)}),{path:f.toPathData(1),boxes:p}}finally{l()}}};function Ap(e){let t=e.split("_"),r=t[t.length-1];return r===Hu?void 0:r}function ko({width:e,height:t,content:r}){return M("svg",{width:e,height:t,viewBox:`0 0 ${e} ${t}`,xmlns:"http://www.w3.org/2000/svg"},r)}var Pc=Uc(ic());var gv=["ios","android","windows","macos","web"];function sc(e){return gv.includes(e)}var bv=["portrait","landscape"];function ac(e){return bv.includes(e)}var oc;(function(e){e.fontSize="fontSize",e.lineHeight="lineHeight"})(oc||(oc={}));var ae;(function(e){e.rem="rem",e.em="em",e.px="px",e.percent="%",e.vw="vw",e.vh="vh",e.none="<no-css-unit>"})(ae||(ae={}));function Js(e){return typeof e=="string"}function Zs(e){return typeof e=="object"}var ea;function k(e){return{kind:"complete",style:e}}function We(e,t={}){let{fractions:r}=t;if(r&&e.includes("/")){let[o="",s=""]=e.split("/",2),a=We(o),u=We(s);return!a||!u?null:[a[0]/u[0],u[1]]}let n=parseFloat(e);if(Number.isNaN(n))return null;let i=e.match(/(([a-z]{2,}|%))$/);if(!i)return[n,ae.none];switch(i==null?void 0:i[1]){case"rem":return[n,ae.rem];case"px":return[n,ae.px];case"em":return[n,ae.em];case"%":return[n,ae.percent];case"vw":return[n,ae.vw];case"vh":return[n,ae.vh];default:return null}}function Ut(e,t,r={}){let n=At(t,r);return n===null?null:k({[e]:n})}function Li(e,t,r){let n=At(t);return n!==null&&(r[e]=n),r}function lc(e,t){let r=At(t);return r===null?null:{[e]:r}}function At(e,t={}){if(e===void 0)return null;let r=We(String(e),t);return r?Jt(...r,t):null}function Jt(e,t,r={}){let{isNegative:n,device:i}=r;switch(t){case ae.rem:return e*16*(n?-1:1);case ae.px:return e*(n?-1:1);case ae.percent:return`${n?"-":""}${e}%`;case ae.none:return e*(n?-1:1);case ae.vw:return i!=null&&i.windowDimensions?i.windowDimensions.width*(e/100):(Je("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case ae.vh:return i!=null&&i.windowDimensions?i.windowDimensions.height*(e/100):(Je("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function ta(e){let t=We(e);if(!t)return null;let[r,n]=t;switch(n){case ae.rem:return r*16;case ae.px:return r;default:return null}}var vv={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function ra(e){return vv[e??""]||"All"}function na(e){let t="All";return[e.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(n,i)=>(t=ra(i),"")),t]}function dr(e,t={}){if(e.includes("/")){let r=uc(e,{...t,fractions:!0});if(r)return r}return e[0]==="["&&(e=e.slice(1,-1)),uc(e,t)}function dt(e,t,r={}){let n=dr(t,r);return n===null?null:k({[e]:n})}function uc(e,t={}){if(e==="px")return 1;let r=We(e,t);if(!r)return null;let[n,i]=r;return t.fractions&&(i=ae.percent,n*=100),i===ae.none&&(n=n/4,i=ae.rem),Jt(n,i,t)}function yv(...e){console.warn(...e)}function xv(...e){}var Je=typeof process>"u"||((ea=process==null?void 0:process.env)===null||ea===void 0?void 0:ea.JEST_WORKER_ID)===void 0?yv:xv;var wv=[["aspect-square",k({aspectRatio:1})],["aspect-video",k({aspectRatio:16/9})],["items-center",k({alignItems:"center"})],["items-start",k({alignItems:"flex-start"})],["items-end",k({alignItems:"flex-end"})],["items-baseline",k({alignItems:"baseline"})],["items-stretch",k({alignItems:"stretch"})],["justify-start",k({justifyContent:"flex-start"})],["justify-end",k({justifyContent:"flex-end"})],["justify-center",k({justifyContent:"center"})],["justify-between",k({justifyContent:"space-between"})],["justify-around",k({justifyContent:"space-around"})],["justify-evenly",k({justifyContent:"space-evenly"})],["content-start",k({alignContent:"flex-start"})],["content-end",k({alignContent:"flex-end"})],["content-between",k({alignContent:"space-between"})],["content-around",k({alignContent:"space-around"})],["content-stretch",k({alignContent:"stretch"})],["content-center",k({alignContent:"center"})],["self-auto",k({alignSelf:"auto"})],["self-start",k({alignSelf:"flex-start"})],["self-end",k({alignSelf:"flex-end"})],["self-center",k({alignSelf:"center"})],["self-stretch",k({alignSelf:"stretch"})],["self-baseline",k({alignSelf:"baseline"})],["direction-inherit",k({direction:"inherit"})],["direction-ltr",k({direction:"ltr"})],["direction-rtl",k({direction:"rtl"})],["hidden",k({display:"none"})],["flex",k({display:"flex"})],["flex-row",k({flexDirection:"row"})],["flex-row-reverse",k({flexDirection:"row-reverse"})],["flex-col",k({flexDirection:"column"})],["flex-col-reverse",k({flexDirection:"column-reverse"})],["flex-wrap",k({flexWrap:"wrap"})],["flex-wrap-reverse",k({flexWrap:"wrap-reverse"})],["flex-nowrap",k({flexWrap:"nowrap"})],["flex-auto",k({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",k({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",k({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",k({overflow:"hidden"})],["overflow-visible",k({overflow:"visible"})],["overflow-scroll",k({overflow:"scroll"})],["absolute",k({position:"absolute"})],["relative",k({position:"relative"})],["italic",k({fontStyle:"italic"})],["not-italic",k({fontStyle:"normal"})],["oldstyle-nums",Cn("oldstyle-nums")],["small-caps",Cn("small-caps")],["lining-nums",Cn("lining-nums")],["tabular-nums",Cn("tabular-nums")],["proportional-nums",Cn("proportional-nums")],["font-thin",k({fontWeight:"100"})],["font-100",k({fontWeight:"100"})],["font-extralight",k({fontWeight:"200"})],["font-200",k({fontWeight:"200"})],["font-light",k({fontWeight:"300"})],["font-300",k({fontWeight:"300"})],["font-normal",k({fontWeight:"normal"})],["font-400",k({fontWeight:"400"})],["font-medium",k({fontWeight:"500"})],["font-500",k({fontWeight:"500"})],["font-semibold",k({fontWeight:"600"})],["font-600",k({fontWeight:"600"})],["font-bold",k({fontWeight:"bold"})],["font-700",k({fontWeight:"700"})],["font-extrabold",k({fontWeight:"800"})],["font-800",k({fontWeight:"800"})],["font-black",k({fontWeight:"900"})],["font-900",k({fontWeight:"900"})],["include-font-padding",k({includeFontPadding:!0})],["remove-font-padding",k({includeFontPadding:!1})],["max-w-none",k({maxWidth:"99999%"})],["text-left",k({textAlign:"left"})],["text-center",k({textAlign:"center"})],["text-right",k({textAlign:"right"})],["text-justify",k({textAlign:"justify"})],["text-auto",k({textAlign:"auto"})],["underline",k({textDecorationLine:"underline"})],["line-through",k({textDecorationLine:"line-through"})],["no-underline",k({textDecorationLine:"none"})],["uppercase",k({textTransform:"uppercase"})],["lowercase",k({textTransform:"lowercase"})],["capitalize",k({textTransform:"capitalize"})],["normal-case",k({textTransform:"none"})],["w-auto",k({width:"auto"})],["h-auto",k({height:"auto"})],["shadow-sm",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.025,elevation:1})],["shadow",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.075,elevation:2})],["shadow-md",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:.125,elevation:3})],["shadow-lg",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.15,shadowRadius:8,elevation:8})],["shadow-xl",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.19,shadowRadius:20,elevation:12})],["shadow-2xl",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.25,shadowRadius:30,elevation:16})],["shadow-none",k({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],ia=wv;function Cn(e){return{kind:"dependent",complete(t){(!t.fontVariant||!Array.isArray(t.fontVariant))&&(t.fontVariant=[]),t.fontVariant.push(e)}}}var Ln=class{constructor(t){this.ir=new Map(ia),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...ia,...t??[]])}getStyle(t){return this.styles.get(t)}setStyle(t,r){this.styles.set(t,r)}getIr(t){return this.ir.get(t)}setIr(t,r){this.ir.set(t,r)}getPrefixMatch(t){return this.prefixes.get(t)}setPrefixMatch(t,r){this.prefixes.set(t,r)}};function oa(e,t,r={}){let n=t==null?void 0:t[e];if(!n)return dt("fontSize",e,r);if(typeof n=="string")return Ut("fontSize",n);let i={},[o,s]=n,a=lc("fontSize",o);if(a&&(i=a),typeof s=="string")return k(Li("lineHeight",fc(s,i),i));let{lineHeight:u,letterSpacing:l}=s;return u&&Li("lineHeight",fc(u,i),i),l&&Li("letterSpacing",l,i),k(i)}function fc(e,t){let r=We(e);if(r){let[n,i]=r;if((i===ae.none||i===ae.em)&&typeof t.fontSize=="number")return t.fontSize*n}return e}function sa(e,t){var r;let n=(r=t==null?void 0:t[e])!==null&&r!==void 0?r:e.startsWith("[")?e.slice(1,-1):e,i=We(n);if(!i)return null;let[o,s]=i;if(s===ae.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=Jt(o,s);return a!==null?k({lineHeight:a}):null}function aa(e,t,r,n,i){let o="";if(n[0]==="[")o=n.slice(1,-1);else{let l=i==null?void 0:i[n];if(l)o=l;else{let f=dr(n);return f&&typeof f=="number"?cc(f,ae.px,t,e):null}}if(o==="auto")return dc(t,e,"auto");let s=We(o);if(!s)return null;let[a,u]=s;return r&&(a=-a),cc(a,u,t,e)}function cc(e,t,r,n){let i=Jt(e,t);return i===null?null:dc(r,n,i)}function dc(e,t,r){switch(e){case"All":return{kind:"complete",style:{[`${t}Top`]:r,[`${t}Right`]:r,[`${t}Bottom`]:r,[`${t}Left`]:r}};case"Bottom":case"Top":case"Left":case"Right":return{kind:"complete",style:{[`${t}${e}`]:r}};case"Vertical":return{kind:"complete",style:{[`${t}Top`]:r,[`${t}Bottom`]:r}};case"Horizontal":return{kind:"complete",style:{[`${t}Left`]:r,[`${t}Right`]:r}};default:return null}}function ua(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?ta(u.min):0;l===null?Je(`invalid screen config value: ${o}->min: ${u.min}`):a[0]=l;let f=u.max?ta(u.max):1/0;return f===null?Je(`invalid screen config value: ${o}->max: ${u.max}`):a[1]=f,i[o]=a,i},{}),r=Object.values(t);r.sort((i,o)=>{let[s,a]=i,[u,l]=o;return a===1/0||l===1/0?s-u:a-l});let n=0;return r.forEach(i=>i[2]=n++),t}function la(e,t){let r=t==null?void 0:t[e];if(!r)return null;if(typeof r=="string")return k({fontFamily:r});let n=r[0];return n?k({fontFamily:n}):null}function pr(e,t,r){if(!r)return null;let n;t.includes("/")&&([t="",n]=t.split("/",2));let i="";if(t.startsWith("[#")||t.startsWith("[rgb")?i=t.slice(1,-1):i=mc(t,r),!i)return null;if(n){let o=Number(n);if(!Number.isNaN(o))return i=pc(i,o/100),k({[Mi[e].color]:i})}return{kind:"dependent",complete(o){let s=Mi[e].opacity,a=o[s];typeof a=="number"&&(i=pc(i,a)),o[Mi[e].color]=i}}}function Mn(e,t){let r=parseInt(t,10);if(Number.isNaN(r))return null;let n=r/100;return{kind:"complete",style:{[Mi[e].opacity]:n}}}function pc(e,t){return e.startsWith("#")?e=Sv(e):e.startsWith("rgb(")&&(e=e.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),e.replace(/, ?\d*\.?(\d+)\)$/,`, ${t})`)}function hc(e){for(let t in e)t.startsWith("__opacity_")&&delete e[t]}var Mi={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 Sv(e){let t=e;e=e.replace(_v,(s,a,u,l)=>a+a+u+u+l+l);let r=Tv.exec(e);if(!r)return Je(`invalid config hex color value: ${t}`),"rgba(0, 0, 0, 1)";let n=parseInt(r[1],16),i=parseInt(r[2],16),o=parseInt(r[3],16);return`rgba(${n}, ${i}, ${o}, 1)`}function mc(e,t){let r=t[e];if(Js(r))return r;if(Zs(r)&&Js(r.DEFAULT))return r.DEFAULT;let[n="",...i]=e.split("-");for(;n!==e;){let o=t[n];if(Zs(o))return mc(i.join("-"),o);if(i.length===0)return"";n=`${n}-${i.shift()}`}return""}var _v=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Tv=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function bc(e,t){let[r,n]=na(e);if(r.match(/^(-?(\d)+)?$/))return Ev(r,n,t==null?void 0:t.borderWidth);if(r=r.replace(/^-/,""),["dashed","solid","dotted"].includes(r))return k({borderStyle:r});let o="border";switch(n){case"Bottom":o="borderBottom";break;case"Top":o="borderTop";break;case"Left":o="borderLeft";break;case"Right":o="borderRight";break}let s=pr(o,r,t==null?void 0:t.borderColor);if(s)return s;let a=`border${n==="All"?"":n}Width`;r=r.replace(/^-/,"");let u=r.slice(1,-1),l=dt(a,u);return typeof(l==null?void 0:l.style[a])!="number"?null:l}function Ev(e,t,r){if(!r)return null;e=e.replace(/^-/,"");let i=r[e===""?"DEFAULT":e];if(i===void 0)return null;let o=`border${t==="All"?"":t}Width`;return Ut(o,i)}function vc(e,t){if(!t)return null;let[r,n]=na(e);r=r.replace(/^-/,""),r===""&&(r="DEFAULT");let i=`border${n==="All"?"":n}Radius`,o=t[r];if(o)return gc(Ut(i,o));let s=dt(i,r);return typeof(s==null?void 0:s.style[i])!="number"?null:gc(s)}function gc(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 r=e.style.borderBottomRadius;r!==void 0&&(e.style.borderBottomLeftRadius=r,e.style.borderBottomRightRadius=r,delete e.style.borderBottomRadius);let n=e.style.borderLeftRadius;n!==void 0&&(e.style.borderBottomLeftRadius=n,e.style.borderTopLeftRadius=n,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 Lr(e,t,r,n){let i=null;e==="inset"&&(t=t.replace(/^(x|y)-/,(a,u)=>(i=u==="x"?"x":"y","")));let o=n==null?void 0:n[t];if(o){let a=At(o,{isNegative:r});if(a!==null)return yc(e,i,a)}let s=dr(t,{isNegative:r});return s!==null?yc(e,i,s):null}function yc(e,t,r){if(e!=="inset")return k({[e]:r});switch(t){case null:return k({top:r,left:r,right:r,bottom:r});case"y":return k({top:r,bottom:r});case"x":return k({left:r,right:r})}}function Nn(e,t,r){var n;t=t.replace(/^-/,"");let i=t===""?"DEFAULT":t,o=Number((n=r==null?void 0:r[i])!==null&&n!==void 0?n:t);return Number.isNaN(o)?null:k({[`flex${e}`]:o})}function xc(e,t){var r,n;if(e=(t==null?void 0:t[e])||e,["min-content","revert","unset"].includes(e))return null;if(e.match(/^\d+(\.\d+)?$/))return k({flexGrow:Number(e),flexBasis:"0%"});let i=e.match(/^(\d+)\s+(\d+)$/);if(i)return k({flexGrow:Number(i[1]),flexShrink:Number(i[2])});if(i=e.match(/^(\d+)\s+([^ ]+)$/),i){let o=At((r=i[2])!==null&&r!==void 0?r:"");return o?k({flexGrow:Number(i[1]),flexBasis:o}):null}if(i=e.match(/^(\d+)\s+(\d+)\s+(.+)$/),i){let o=At((n=i[3])!==null&&n!==void 0?n:"");return o?k({flexGrow:Number(i[1]),flexShrink:Number(i[2]),flexBasis:o}):null}return null}function fa(e,t,r={},n){let i=n==null?void 0:n[t];return i!==void 0?Ut(e,i,r):dt(e,t,r)}function Fn(e,t,r={},n){let i=At(n==null?void 0:n[t],r);return i?k({[e]:i}):(t==="screen"&&(t=e.includes("Width")?"100vw":"100vh"),dt(e,t,r))}function wc(e,t,r){let n=r==null?void 0:r[e];if(n){let i=We(n,{isNegative:t});if(!i)return null;let[o,s]=i;if(s===ae.em)return kv(o);if(s===ae.percent)return Je("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=Jt(o,s,{isNegative:t});return a!==null?k({letterSpacing:a}):null}return dt("letterSpacing",e,{isNegative:t})}function kv(e){return{kind:"dependent",complete(t){let r=t.fontSize;if(typeof r!="number"||Number.isNaN(r))return"tracking-X relative letter spacing classes require font-size to be set";t.letterSpacing=Math.round((e*r+Number.EPSILON)*100)/100}}}function Sc(e,t){let r=t==null?void 0:t[e];if(r){let i=We(String(r));if(i)return k({opacity:i[0]})}let n=We(e);return n?k({opacity:n[0]/100}):null}function _c(e){let t=parseInt(e,10);return Number.isNaN(t)?null:{kind:"complete",style:{shadowOpacity:t/100}}}function Tc(e){if(e.includes("/")){let[r="",n=""]=e.split("/",2),i=ca(r),o=ca(n);return i===null||o===null?null:{kind:"complete",style:{shadowOffset:{width:i,height:o}}}}let t=ca(e);return t===null?null:{kind:"complete",style:{shadowOffset:{width:t,height:t}}}}function ca(e){let t=dr(e);return typeof t=="number"?t:null}var Mr=class{constructor(t,r={},n,i,o){var s,a,u,l,f,p;this.config=r,this.cache=n,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=i;let m=t.trim().split(":"),h=[];m.length===1?this.string=t:(this.string=(s=m.pop())!==null&&s!==void 0?s:"",h=m),this.char=this.string[0];let g=ua((a=this.config.theme)===null||a===void 0?void 0:a.screens);for(let v of h)if(g[v]){let w=(u=g[v])===null||u===void 0?void 0:u[2];w!==void 0&&(this.order=((l=this.order)!==null&&l!==void 0?l:0)+w);let _=(f=i.windowDimensions)===null||f===void 0?void 0:f.width;if(_){let[O,x]=(p=g[v])!==null&&p!==void 0?p:[0,0];(_<=O||_>x)&&(this.isNull=!0)}else this.isNull=!0}else sc(v)?this.isNull=v!==o:ac(v)?i.windowDimensions?(i.windowDimensions.width>i.windowDimensions.height?"landscape":"portrait")!==v?this.isNull=!0:this.incrementOrder():this.isNull=!0:v==="retina"?i.pixelDensity===2?this.incrementOrder():this.isNull=!0:v==="dark"?i.colorScheme!=="dark"?this.isNull=!0:this.incrementOrder():this.handlePossibleArbitraryBreakpointPrefix(v)||(this.isNull=!0)}parse(){if(this.isNull)return{kind:"null"};let t=this.cache.getIr(this.rest);if(t)return t;this.parseIsNegative();let r=this.parseUtility();return r?this.order!==void 0?{kind:"ordered",order:this.order,styleIr:r}:r:{kind:"null"}}parseUtility(){var t,r,n,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(((r=(t=u[0])===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+1);let f=ra(u[1]),p=aa(l,f,this.isNegative,this.rest,(n=this.config.theme)===null||n===void 0?void 0:n[l]);if(p)return p}}}if(this.consumePeeked("h-")&&(a=fa("height",this.rest,this.context,s==null?void 0:s.height),a)||this.consumePeeked("w-")&&(a=fa("width",this.rest,this.context,s==null?void 0:s.width),a)||this.consumePeeked("min-w-")&&(a=Fn("minWidth",this.rest,this.context,s==null?void 0:s.minWidth),a)||this.consumePeeked("min-h-")&&(a=Fn("minHeight",this.rest,this.context,s==null?void 0:s.minHeight),a)||this.consumePeeked("max-w-")&&(a=Fn("maxWidth",this.rest,this.context,s==null?void 0:s.maxWidth),a)||this.consumePeeked("max-h-")&&(a=Fn("maxHeight",this.rest,this.context,s==null?void 0:s.maxHeight),a)||this.consumePeeked("leading-")&&(a=sa(this.rest,s==null?void 0:s.lineHeight),a)||this.consumePeeked("text-")&&(a=oa(this.rest,s==null?void 0:s.fontSize,this.context),a||(a=pr("text",this.rest,s==null?void 0:s.textColor),a)||this.consumePeeked("opacity-")&&(a=Mn("text",this.rest),a))||this.consumePeeked("font-")&&(a=la(this.rest,s==null?void 0:s.fontFamily),a)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&Je("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),a=Ut("aspectRatio",this.rest,{fractions:!0}),a)||this.consumePeeked("tint-")&&(a=pr("tint",this.rest,s==null?void 0:s.colors),a)||this.consumePeeked("bg-")&&(a=pr("bg",this.rest,s==null?void 0:s.backgroundColor),a||this.consumePeeked("opacity-")&&(a=Mn("bg",this.rest),a))||this.consumePeeked("border")&&(a=bc(this.rest,s),a||this.consumePeeked("-opacity-")&&(a=Mn("border",this.rest),a))||this.consumePeeked("rounded")&&(a=vc(this.rest,s==null?void 0:s.borderRadius),a)||this.consumePeeked("bottom-")&&(a=Lr("bottom",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("top-")&&(a=Lr("top",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("left-")&&(a=Lr("left",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("right-")&&(a=Lr("right",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("inset-")&&(a=Lr("inset",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?a=Nn("Grow",this.rest,s==null?void 0:s.flexGrow):this.consumePeeked("shrink")?a=Nn("Shrink",this.rest,s==null?void 0:s.flexShrink):a=xc(this.rest,s==null?void 0:s.flex),a)||this.consumePeeked("grow")&&(a=Nn("Grow",this.rest,s==null?void 0:s.flexGrow),a)||this.consumePeeked("shrink")&&(a=Nn("Shrink",this.rest,s==null?void 0:s.flexShrink),a)||this.consumePeeked("shadow-color-opacity-")&&(a=Mn("shadow",this.rest),a)||this.consumePeeked("shadow-opacity-")&&(a=_c(this.rest),a)||this.consumePeeked("shadow-offset-")&&(a=Tc(this.rest),a)||this.consumePeeked("shadow-radius-")&&(a=dt("shadowRadius",this.rest),a)||this.consumePeeked("shadow-")&&(a=pr("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 k({elevation:u})}if(this.consumePeeked("opacity-")&&(a=Sc(this.rest,s==null?void 0:s.opacity),a)||this.consumePeeked("tracking-")&&(a=wc(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 k({zIndex:u})}return Je(`\`${this.rest}\` unknown or invalid utility`),null}handlePossibleArbitraryBreakpointPrefix(t){var r;if(t[0]!=="m")return!1;let n=t.match(/^(min|max)-(w|h)-\[([^\]]+)\]$/);if(!n)return!1;if(!(!((r=this.context.device)===null||r===void 0)&&r.windowDimensions))return this.isNull=!0,!0;let i=this.context.device.windowDimensions,[,o="",s="",a=""]=n,u=s==="w"?i.width:i.height,l=We(a,this.context);if(l===null)return this.isNull=!0,!0;let[f,p]=l;return p!=="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,r){return this.string.slice(this.position+t,this.position+r)}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 Ec(e){let t=[],r=null;return e.forEach(n=>{if(typeof n=="string")t=[...t,...da(n)];else if(Array.isArray(n))t=[...t,...n.flatMap(da)];else if(typeof n=="object"&&n!==null)for(let[i,o]of Object.entries(n))typeof o=="boolean"?t=[...t,...o?da(i):[]]:r?r[i]=o:r={[i]:o}}),[t.filter(Boolean).filter(Pv),r]}function da(e){return e.trim().split(/\s+/)}function Pv(e,t,r){return r.indexOf(e)===t}function kc(e){var t;return(t=e==null?void 0:e.reduce((r,n)=>({...r,...Ov(n.handler)}),{}))!==null&&t!==void 0?t:{}}function Ov(e){let t={};return e({addUtilities:r=>{t=r},...Iv}),t}function Rt(e){throw new Error(`tailwindcss plugin function argument object prop "${e}" not implemented`)}var Iv={addComponents:Rt,addBase:Rt,addVariant:Rt,e:Rt,prefix:Rt,theme:Rt,variants:Rt,config:Rt,corePlugins:Rt,matchUtilities:Rt,postcss:null};function Oc(e,t){let r=(0,Pc.default)(Av(e)),n={},i=kc(r.plugins),o={},s=Object.entries(i).map(([g,v])=>typeof v=="string"?(o[g]=v,[g,{kind:"null"}]):[g,k(v)]).filter(([,g])=>g.kind!=="null");function a(){return[n.windowDimensions?`w${n.windowDimensions.width}`:!1,n.windowDimensions?`h${n.windowDimensions.height}`:!1,n.fontScale?`fs${n.fontScale}`:!1,n.colorScheme==="dark"?"dark":!1,n.pixelDensity===2?"retina":!1].filter(Boolean).join("--")||"default"}let u=a(),l={};function f(){let g=l[u];if(g)return g;let v=new Ln(s);return l[u]=v,v}function p(...g){let v=f(),w={},_=[],O=[],[x,E]=Ec(g),T=x.join(" "),I=v.getStyle(T);if(I)return{...I,...E||{}};for(let N of x){let W=v.getIr(N);if(!W&&N in o){let J=p(o[N]);v.setIr(N,k(J)),w={...w,...J};continue}switch(W=new Mr(N,r,v,n,t).parse(),W.kind){case"complete":w={...w,...W.style},v.setIr(N,W);break;case"dependent":_.push(W);break;case"ordered":O.push(W);break;case"null":v.setIr(N,W);break}}if(O.length>0){O.sort((N,W)=>N.order-W.order);for(let N of O)switch(N.styleIr.kind){case"complete":w={...w,...N.styleIr.style};break;case"dependent":_.push(N.styleIr);break}}if(_.length>0){for(let N of _){let W=N.complete(w);W&&Je(W)}hc(w)}return T!==""&&v.setStyle(T,w),E&&(w={...w,...E}),w}function m(g){let v=p(g.split(/\s+/g).map(w=>w.replace(/^(bg|text|border)-/,"")).map(w=>`bg-${w}`).join(" "));return typeof v.backgroundColor=="string"?v.backgroundColor:void 0}let h=(g,...v)=>{let w="";return g.forEach((_,O)=>{var x;w+=_+((x=v[O])!==null&&x!==void 0?x:"")}),p(w)};return h.style=p,h.color=m,h.prefixMatch=(...g)=>{let v=g.sort().join(":"),w=f(),_=w.getPrefixMatch(v);if(_!==void 0)return _;let E=new Mr(`${v}:flex`,r,w,n,t).parse().kind!=="null";return w.setPrefixMatch(v,E),E},h.setWindowDimensions=g=>{n.windowDimensions=g,u=a()},h.setFontScale=g=>{n.fontScale=g,u=a()},h.setPixelDensity=g=>{n.pixelDensity=g,u=a()},h.setColorScheme=g=>{n.colorScheme=g,u=a()},h}function Av(e){return{...e,content:["_no_warnings_please"]}}var Cv={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 Lv(e){return Oc({...e,plugins:[...(e==null?void 0:e.plugins)??[],Cv]},"web")}var Ni;function pa({width:e,height:t,config:r}){return Ni||(Ni=Lv(r)),Ni.setWindowDimensions({width:+e,height:+t}),Ni}var ha=new WeakMap;async function Ac(e,t){let r=await jt();if(!r||!r.Node)throw new Error("Satori is not initialized: expect `yoga` to be loaded, got "+r);t.fonts=t.fonts||[];let n;ha.has(t.fonts)?n=ha.get(t.fonts):ha.set(t.fonts,n=new en(t.fonts));let i="width"in t?t.width:void 0,o="height"in t?t.height:void 0,s=Mv(r,t.pointScaleFactor);i&&s.setWidth(i),o&&s.setHeight(o),s.setFlexDirection(r.FLEX_DIRECTION_ROW),s.setFlexWrap(r.WRAP_WRAP),s.setAlignContent(r.ALIGN_AUTO),s.setAlignItems(r.ALIGN_FLEX_START),s.setJustifyContent(r.JUSTIFY_FLEX_START),s.setOverflow(r.OVERFLOW_HIDDEN);let a=Object.assign(Object.create(null),t.graphemeImages),u=new Set;Pt.clear(),Gr.clear(),await iu(e);let l=Jr(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:n,embedFont:t.embedFont,debug:t.debug,graphemeImages:a,canLoadAdditionalAssets:!!t.loadAdditionalAsset,onNodeDetected:t.onNodeDetected,getTwStyles:(g,v)=>{let _={...pa({width:i,height:o,config:t.tailwindConfig})([g])};return typeof _.lineHeight=="number"&&(_.lineHeight=_.lineHeight/(+_.fontSize||v.fontSize||16)),_.shadowColor&&_.boxShadow&&(_.boxShadow=_.boxShadow.replace(/rgba?\([^)]+\)/,_.shadowColor)),_}}),f=(await l.next()).value;if(t.loadAdditionalAsset&&f.length){let g=Nv(f),v=[],w={};await Promise.all(Object.entries(g).flatMap(([_,O])=>O.map(x=>{let E=`${_}_${x}`;return u.has(E)?null:(u.add(E),t.loadAdditionalAsset(_,x).then(T=>{typeof T=="string"?w[x]=T:T&&(Array.isArray(T)?v.push(...T):v.push(T))}))}))),n.addFonts(v),Object.assign(a,w)}await l.next(),s.calculateLayout(i,o,r.DIRECTION_LTR);let p=(await l.next([0,0])).value,m=s.getComputedWidth(),h=s.getComputedHeight();return s.freeRecursive(),ko({width:m,height:h,content:p})}function Mv(e,t){if(t){let r=e.Config.create();return r.setPointScaleFactor(t),e.Node.createWithConfig(r)}else return e.Node.create()}function Nv(e){let t={},r={};for(let{word:n,locale:i}of e){let o=ju(n,i).join("|");r[o]=r[o]||"",r[o]+=n}return Object.keys(r).forEach(n=>{t[n]=t[n]||[],n==="emoji"?t[n].push(...Ic(Ve(r[n],"grapheme"))):(t[n][0]=t[n][0]||"",t[n][0]+=Ic(Ve(r[n],"grapheme",n==="unknown"?void 0:n)).join(""))}),t}function Ic(e){return Array.from(new Set(e))}export{Ac as default,ld as init};
|
|
1
|
+
var Bc=Object.create;var qn=Object.defineProperty;var Uc=Object.getOwnPropertyDescriptor;var qc=Object.getOwnPropertyNames;var zc=Object.getPrototypeOf,Gc=Object.prototype.hasOwnProperty;var or=(e,t)=>()=>(e&&(t=e(e=0)),t);var q=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),zn=(e,t)=>{for(var r in t)qn(e,r,{get:t[r],enumerable:!0})},Sa=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of qc(t))!Gc.call(e,i)&&i!==r&&qn(e,i,{get:()=>t[i],enumerable:!(n=Uc(t,i))||n.enumerable});return e};var jc=(e,t,r)=>(r=e!=null?Bc(zc(e)):{},Sa(t||!e||!e.__esModule?qn(r,"default",{value:e,enumerable:!0}):r,e)),Gn=e=>Sa(qn({},"__esModule",{value:!0}),e);var Dt,Wa,Da,zr,zi,$t,_r,od,Hn,Gi,Tr,Er,ji,$a,Vi,Hi,Tt,Yi,sd,Ba,Yn=or(()=>{Dt=function(e){return e[e.Auto=0]="Auto",e[e.FlexStart=1]="FlexStart",e[e.Center=2]="Center",e[e.FlexEnd=3]="FlexEnd",e[e.Stretch=4]="Stretch",e[e.Baseline=5]="Baseline",e[e.SpaceBetween=6]="SpaceBetween",e[e.SpaceAround=7]="SpaceAround",e[e.SpaceEvenly=8]="SpaceEvenly",e}({}),Wa=function(e){return e[e.BorderBox=0]="BorderBox",e[e.ContentBox=1]="ContentBox",e}({}),Da=function(e){return e[e.Width=0]="Width",e[e.Height=1]="Height",e}({}),zr=function(e){return e[e.Inherit=0]="Inherit",e[e.LTR=1]="LTR",e[e.RTL=2]="RTL",e}({}),zi=function(e){return e[e.Flex=0]="Flex",e[e.None=1]="None",e[e.Contents=2]="Contents",e}({}),$t=function(e){return e[e.Left=0]="Left",e[e.Top=1]="Top",e[e.Right=2]="Right",e[e.Bottom=3]="Bottom",e[e.Start=4]="Start",e[e.End=5]="End",e[e.Horizontal=6]="Horizontal",e[e.Vertical=7]="Vertical",e[e.All=8]="All",e}({}),_r=function(e){return e[e.None=0]="None",e[e.StretchFlexBasis=1]="StretchFlexBasis",e[e.AbsolutePositionWithoutInsetsExcludesPadding=2]="AbsolutePositionWithoutInsetsExcludesPadding",e[e.AbsolutePercentAgainstInnerSize=4]="AbsolutePercentAgainstInnerSize",e[e.All=2147483647]="All",e[e.Classic=2147483646]="Classic",e}({}),od=function(e){return e[e.WebFlexBasis=0]="WebFlexBasis",e}({}),Hn=function(e){return e[e.Column=0]="Column",e[e.ColumnReverse=1]="ColumnReverse",e[e.Row=2]="Row",e[e.RowReverse=3]="RowReverse",e}({}),Gi=function(e){return e[e.Column=0]="Column",e[e.Row=1]="Row",e[e.All=2]="All",e}({}),Tr=function(e){return e[e.FlexStart=0]="FlexStart",e[e.Center=1]="Center",e[e.FlexEnd=2]="FlexEnd",e[e.SpaceBetween=3]="SpaceBetween",e[e.SpaceAround=4]="SpaceAround",e[e.SpaceEvenly=5]="SpaceEvenly",e}({}),Er=function(e){return e[e.Error=0]="Error",e[e.Warn=1]="Warn",e[e.Info=2]="Info",e[e.Debug=3]="Debug",e[e.Verbose=4]="Verbose",e[e.Fatal=5]="Fatal",e}({}),ji=function(e){return e[e.Undefined=0]="Undefined",e[e.Exactly=1]="Exactly",e[e.AtMost=2]="AtMost",e}({}),$a=function(e){return e[e.Default=0]="Default",e[e.Text=1]="Text",e}({}),Vi=function(e){return e[e.Visible=0]="Visible",e[e.Hidden=1]="Hidden",e[e.Scroll=2]="Scroll",e}({}),Hi=function(e){return e[e.Static=0]="Static",e[e.Relative=1]="Relative",e[e.Absolute=2]="Absolute",e}({}),Tt=function(e){return e[e.Undefined=0]="Undefined",e[e.Point=1]="Point",e[e.Percent=2]="Percent",e[e.Auto=3]="Auto",e}({}),Yi=function(e){return e[e.NoWrap=0]="NoWrap",e[e.Wrap=1]="Wrap",e[e.WrapReverse=2]="WrapReverse",e}({}),sd={ALIGN_AUTO:Dt.Auto,ALIGN_FLEX_START:Dt.FlexStart,ALIGN_CENTER:Dt.Center,ALIGN_FLEX_END:Dt.FlexEnd,ALIGN_STRETCH:Dt.Stretch,ALIGN_BASELINE:Dt.Baseline,ALIGN_SPACE_BETWEEN:Dt.SpaceBetween,ALIGN_SPACE_AROUND:Dt.SpaceAround,ALIGN_SPACE_EVENLY:Dt.SpaceEvenly,BOX_SIZING_BORDER_BOX:Wa.BorderBox,BOX_SIZING_CONTENT_BOX:Wa.ContentBox,DIMENSION_WIDTH:Da.Width,DIMENSION_HEIGHT:Da.Height,DIRECTION_INHERIT:zr.Inherit,DIRECTION_LTR:zr.LTR,DIRECTION_RTL:zr.RTL,DISPLAY_FLEX:zi.Flex,DISPLAY_NONE:zi.None,DISPLAY_CONTENTS:zi.Contents,EDGE_LEFT:$t.Left,EDGE_TOP:$t.Top,EDGE_RIGHT:$t.Right,EDGE_BOTTOM:$t.Bottom,EDGE_START:$t.Start,EDGE_END:$t.End,EDGE_HORIZONTAL:$t.Horizontal,EDGE_VERTICAL:$t.Vertical,EDGE_ALL:$t.All,ERRATA_NONE:_r.None,ERRATA_STRETCH_FLEX_BASIS:_r.StretchFlexBasis,ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING:_r.AbsolutePositionWithoutInsetsExcludesPadding,ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE:_r.AbsolutePercentAgainstInnerSize,ERRATA_ALL:_r.All,ERRATA_CLASSIC:_r.Classic,EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS:od.WebFlexBasis,FLEX_DIRECTION_COLUMN:Hn.Column,FLEX_DIRECTION_COLUMN_REVERSE:Hn.ColumnReverse,FLEX_DIRECTION_ROW:Hn.Row,FLEX_DIRECTION_ROW_REVERSE:Hn.RowReverse,GUTTER_COLUMN:Gi.Column,GUTTER_ROW:Gi.Row,GUTTER_ALL:Gi.All,JUSTIFY_FLEX_START:Tr.FlexStart,JUSTIFY_CENTER:Tr.Center,JUSTIFY_FLEX_END:Tr.FlexEnd,JUSTIFY_SPACE_BETWEEN:Tr.SpaceBetween,JUSTIFY_SPACE_AROUND:Tr.SpaceAround,JUSTIFY_SPACE_EVENLY:Tr.SpaceEvenly,LOG_LEVEL_ERROR:Er.Error,LOG_LEVEL_WARN:Er.Warn,LOG_LEVEL_INFO:Er.Info,LOG_LEVEL_DEBUG:Er.Debug,LOG_LEVEL_VERBOSE:Er.Verbose,LOG_LEVEL_FATAL:Er.Fatal,MEASURE_MODE_UNDEFINED:ji.Undefined,MEASURE_MODE_EXACTLY:ji.Exactly,MEASURE_MODE_AT_MOST:ji.AtMost,NODE_TYPE_DEFAULT:$a.Default,NODE_TYPE_TEXT:$a.Text,OVERFLOW_VISIBLE:Vi.Visible,OVERFLOW_HIDDEN:Vi.Hidden,OVERFLOW_SCROLL:Vi.Scroll,POSITION_TYPE_STATIC:Hi.Static,POSITION_TYPE_RELATIVE:Hi.Relative,POSITION_TYPE_ABSOLUTE:Hi.Absolute,UNIT_UNDEFINED:Tt.Undefined,UNIT_POINT:Tt.Point,UNIT_PERCENT:Tt.Percent,UNIT_AUTO:Tt.Auto,WRAP_NO_WRAP:Yi.NoWrap,WRAP_WRAP:Yi.Wrap,WRAP_WRAP_REVERSE:Yi.WrapReverse},Ba=sd});function Xi(e){function t(i,o,s){let a=i[o];i[o]=function(){for(var u=arguments.length,l=new Array(u),f=0;f<u;f++)l[f]=arguments[f];return s.call(this,a,...l)}}for(let i of["setPosition","setMargin","setFlexBasis","setWidth","setHeight","setMinWidth","setMinHeight","setMaxWidth","setMaxHeight","setPadding","setGap"]){let o={[Tt.Point]:e.Node.prototype[i],[Tt.Percent]:e.Node.prototype[`${i}Percent`],[Tt.Auto]:e.Node.prototype[`${i}Auto`]};t(e.Node.prototype,i,function(s){for(var a=arguments.length,u=new Array(a>1?a-1:0),l=1;l<a;l++)u[l-1]=arguments[l];let f=u.pop(),d,m;if(f==="auto")d=Tt.Auto,m=void 0;else if(typeof f=="object")d=f.unit,m=f.valueOf();else if(d=typeof f=="string"&&f.endsWith("%")?Tt.Percent:Tt.Point,m=parseFloat(f),f!==void 0&&!Number.isNaN(f)&&Number.isNaN(m))throw new Error(`Invalid value ${f} for ${i}`);if(!o[d])throw new Error(`Failed to execute "${i}": Unsupported unit '${f}'`);return m!==void 0?o[d].call(this,...u,m):o[d].call(this,...u)})}function r(i){return e.MeasureCallback.implement({measure:function(){let{width:o,height:s}=i(...arguments);return{width:o??NaN,height:s??NaN}}})}t(e.Node.prototype,"setMeasureFunc",function(i,o){return o?i.call(this,r(o)):this.unsetMeasureFunc()});function n(i){return e.DirtiedCallback.implement({dirtied:i})}return t(e.Node.prototype,"setDirtiedFunc",function(i,o){i.call(this,n(o))}),t(e.Config.prototype,"free",function(){e.Config.destroy(this)}),t(e.Node,"create",(i,o)=>o?e.Node.createWithConfig(o):e.Node.createDefault()),t(e.Node.prototype,"free",function(){e.Node.destroy(this)}),t(e.Node.prototype,"freeRecursive",function(){for(let i=0,o=this.getChildCount();i<o;++i)this.getChild(0).freeRecursive();this.free()}),t(e.Node.prototype,"calculateLayout",function(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:NaN,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:zr.LTR;return i.call(this,o,s,a)}),{Config:e.Config,Node:e.Node,...Ba}}var Ua=or(()=>{Yn();Yn()});var za={};zn(za,{default:()=>ad});function ad(e){e=e||{};var t;t||(t=typeof e<"u"?e:{});var r,n;t.ready=new Promise(function(c,p){r=c,n=p});var i=Object.assign({},t),o="";typeof document<"u"&&document.currentScript&&(o=document.currentScript.src),qa&&(o=qa),o.indexOf("blob:")!==0?o=o.substr(0,o.replace(/[?#].*/,"").lastIndexOf("/")+1):o="";var s=t.print||console.log.bind(console),a=t.printErr||console.warn.bind(console);Object.assign(t,i),i=null;var u;t.wasmBinary&&(u=t.wasmBinary);var l=t.noExitRuntime||!0;typeof WebAssembly!="object"&&Se("no native wasm support detected");var f,d=!1;function m(c,p,b){b=p+b;for(var y="";!(p>=b);){var S=c[p++];if(!S)break;if(S&128){var P=c[p++]&63;if((S&224)==192)y+=String.fromCharCode((S&31)<<6|P);else{var A=c[p++]&63;S=(S&240)==224?(S&15)<<12|P<<6|A:(S&7)<<18|P<<12|A<<6|c[p++]&63,65536>S?y+=String.fromCharCode(S):(S-=65536,y+=String.fromCharCode(55296|S>>10,56320|S&1023))}}else y+=String.fromCharCode(S)}return y}var h,g,v,w,_,O,x,E,T;function I(){var c=f.buffer;h=c,t.HEAP8=g=new Int8Array(c),t.HEAP16=w=new Int16Array(c),t.HEAP32=O=new Int32Array(c),t.HEAPU8=v=new Uint8Array(c),t.HEAPU16=_=new Uint16Array(c),t.HEAPU32=x=new Uint32Array(c),t.HEAPF32=E=new Float32Array(c),t.HEAPF64=T=new Float64Array(c)}var N,W=[],z=[],Z=[];function de(){var c=t.preRun.shift();W.unshift(c)}var we=0,ve=null,ue=null;function Se(c){throw t.onAbort&&t.onAbort(c),c="Aborted("+c+")",a(c),d=!0,c=new WebAssembly.RuntimeError(c+". Build with -sASSERTIONS for more info."),n(c),c}function Me(c){return c.startsWith("data:application/octet-stream;base64,")}var te="";if(!Me(te)){var J=te;te=t.locateFile?t.locateFile(J,o):o+J}function ot(){var c=te;try{if(c==te&&u)return new Uint8Array(u);if(Me(c))try{var p=Dc(c.slice(37)),b=new Uint8Array(p.length);for(c=0;c<p.length;++c)b[c]=p.charCodeAt(c);var y=b}catch{throw Error("Converting base64 string to bytes failed.")}else y=void 0;var S=y;if(S)return S;throw"both async and sync fetching of the wasm failed"}catch(P){Se(P)}}function He(){return u||typeof fetch!="function"?Promise.resolve().then(function(){return ot()}):fetch(te,{credentials:"same-origin"}).then(function(c){if(!c.ok)throw"failed to load wasm binary file at '"+te+"'";return c.arrayBuffer()}).catch(function(){return ot()})}function ye(c){for(;0<c.length;)c.shift()(t)}function Re(c){if(c===void 0)return"_unknown";c=c.replace(/[^a-zA-Z0-9_]/g,"$");var p=c.charCodeAt(0);return 48<=p&&57>=p?"_"+c:c}function Ze(c,p){return c=Re(c),function(){return p.apply(this,arguments)}}var le=[{},{value:void 0},{value:null},{value:!0},{value:!1}],X=[];function ee(c){var p=Error,b=Ze(c,function(y){this.name=c,this.message=y,y=Error(y).stack,y!==void 0&&(this.stack=this.toString()+`
|
|
2
|
+
`+y.replace(/^Error(:[^\n]*)?\n/,""))});return b.prototype=Object.create(p.prototype),b.prototype.constructor=b,b.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},b}var me=void 0;function G(c){throw new me(c)}var _e=c=>(c||G("Cannot use deleted val. handle = "+c),le[c].value),Ie=c=>{switch(c){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var p=X.length?X.pop():le.length;return le[p]={ga:1,value:c},p}},Ye=void 0,Be=void 0;function pe(c){for(var p="";v[c];)p+=Be[v[c++]];return p}var Ue=[];function Ce(){for(;Ue.length;){var c=Ue.pop();c.M.$=!1,c.delete()}}var et=void 0,Ne={};function gr(c,p){for(p===void 0&&G("ptr should not be undefined");c.R;)p=c.ba(p),c=c.R;return p}var kt={};function Fr(c){c=va(c);var p=pe(c);return Mt(c),p}function er(c,p){var b=kt[c];return b===void 0&&G(p+" has unknown type "+Fr(c)),b}function br(){}var vr=!1;function tr(c){--c.count.value,c.count.value===0&&(c.T?c.U.W(c.T):c.P.N.W(c.O))}function Pt(c,p,b){return p===b?c:b.R===void 0?null:(c=Pt(c,p,b.R),c===null?null:b.na(c))}var gt={};function st(c,p){return p=gr(c,p),Ne[p]}var rr=void 0;function Xe(c){throw new rr(c)}function bt(c,p){return p.P&&p.O||Xe("makeClassHandle requires ptr and ptrType"),!!p.U!=!!p.T&&Xe("Both smartPtrType and smartPtr must be specified"),p.count={value:1},vt(Object.create(c,{M:{value:p}}))}function vt(c){return typeof FinalizationRegistry>"u"?(vt=p=>p,c):(vr=new FinalizationRegistry(p=>{tr(p.M)}),vt=p=>{var b=p.M;return b.T&&vr.register(p,{M:b},p),p},br=p=>{vr.unregister(p)},vt(c))}var nr={};function Gt(c){for(;c.length;){var p=c.pop();c.pop()(p)}}function qe(c){return this.fromWireType(O[c>>2])}var at={},tt={};function yt(c,p,b){function y(C){C=b(C),C.length!==c.length&&Xe("Mismatched type converter count");for(var F=0;F<c.length;++F)H(c[F],C[F])}c.forEach(function(C){tt[C]=p});var S=Array(p.length),P=[],A=0;p.forEach((C,F)=>{kt.hasOwnProperty(C)?S[F]=kt[C]:(P.push(C),at.hasOwnProperty(C)||(at[C]=[]),at[C].push(()=>{S[F]=kt[C],++A,A===P.length&&y(S)}))}),P.length===0&&y(S)}function Y(c){switch(c){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+c)}}function H(c,p,b={}){if(!("argPackAdvance"in p))throw new TypeError("registerType registeredInstance requires argPackAdvance");var y=p.name;if(c||G('type "'+y+'" must have a positive integer typeid pointer'),kt.hasOwnProperty(c)){if(b.ua)return;G("Cannot register type '"+y+"' twice")}kt[c]=p,delete tt[c],at.hasOwnProperty(c)&&(p=at[c],delete at[c],p.forEach(S=>S()))}function fe(c){G(c.M.P.N.name+" instance already deleted")}function Q(){}function xe(c,p,b){if(c[p].S===void 0){var y=c[p];c[p]=function(){return c[p].S.hasOwnProperty(arguments.length)||G("Function '"+b+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+c[p].S+")!"),c[p].S[arguments.length].apply(this,arguments)},c[p].S=[],c[p].S[y.Z]=y}}function ae(c,p){t.hasOwnProperty(c)?(G("Cannot register public name '"+c+"' twice"),xe(t,c,c),t.hasOwnProperty(void 0)&&G("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),t[c].S[void 0]=p):t[c]=p}function Te(c,p,b,y,S,P,A,C){this.name=c,this.constructor=p,this.X=b,this.W=y,this.R=S,this.pa=P,this.ba=A,this.na=C,this.ja=[]}function re(c,p,b){for(;p!==b;)p.ba||G("Expected null or instance of "+b.name+", got an instance of "+p.name),c=p.ba(c),p=p.R;return c}function ne(c,p){return p===null?(this.ea&&G("null is not a valid "+this.name),0):(p.M||G('Cannot pass "'+rt(p)+'" as a '+this.name),p.M.O||G("Cannot pass deleted object as a pointer of type "+this.name),re(p.M.O,p.M.P.N,this.N))}function ut(c,p){if(p===null){if(this.ea&&G("null is not a valid "+this.name),this.da){var b=this.fa();return c!==null&&c.push(this.W,b),b}return 0}if(p.M||G('Cannot pass "'+rt(p)+'" as a '+this.name),p.M.O||G("Cannot pass deleted object as a pointer of type "+this.name),!this.ca&&p.M.P.ca&&G("Cannot convert argument of type "+(p.M.U?p.M.U.name:p.M.P.name)+" to parameter type "+this.name),b=re(p.M.O,p.M.P.N,this.N),this.da)switch(p.M.T===void 0&&G("Passing raw pointer to smart pointer is illegal"),this.Ba){case 0:p.M.U===this?b=p.M.T:G("Cannot convert argument of type "+(p.M.U?p.M.U.name:p.M.P.name)+" to parameter type "+this.name);break;case 1:b=p.M.T;break;case 2:if(p.M.U===this)b=p.M.T;else{var y=p.clone();b=this.xa(b,Ie(function(){y.delete()})),c!==null&&c.push(this.W,b)}break;default:G("Unsupporting sharing policy")}return b}function K(c,p){return p===null?(this.ea&&G("null is not a valid "+this.name),0):(p.M||G('Cannot pass "'+rt(p)+'" as a '+this.name),p.M.O||G("Cannot pass deleted object as a pointer of type "+this.name),p.M.P.ca&&G("Cannot convert argument of type "+p.M.P.name+" to parameter type "+this.name),re(p.M.O,p.M.P.N,this.N))}function Fe(c,p,b,y){this.name=c,this.N=p,this.ea=b,this.ca=y,this.da=!1,this.W=this.xa=this.fa=this.ka=this.Ba=this.wa=void 0,p.R!==void 0?this.toWireType=ut:(this.toWireType=y?ne:K,this.V=null)}function ze(c,p){t.hasOwnProperty(c)||Xe("Replacing nonexistant public symbol"),t[c]=p,t[c].Z=void 0}function Wr(c,p){var b=[];return function(){if(b.length=0,Object.assign(b,arguments),c.includes("j")){var y=t["dynCall_"+c];y=b&&b.length?y.apply(null,[p].concat(b)):y.call(null,p)}else y=N.get(p).apply(null,b);return y}}function Ae(c,p){c=pe(c);var b=c.includes("j")?Wr(c,p):N.get(p);return typeof b!="function"&&G("unknown function pointer with signature "+c+": "+p),b}var ir=void 0;function $e(c,p){function b(P){S[P]||kt[P]||(tt[P]?tt[P].forEach(b):(y.push(P),S[P]=!0))}var y=[],S={};throw p.forEach(b),new ir(c+": "+y.map(Fr).join([", "]))}function Lt(c,p,b,y,S){var P=p.length;2>P&&G("argTypes array size mismatch! Must at least get return value and 'this' types!");var A=p[1]!==null&&b!==null,C=!1;for(b=1;b<p.length;++b)if(p[b]!==null&&p[b].V===void 0){C=!0;break}var F=p[0].name!=="void",M=P-2,$=Array(M),j=[],ie=[];return function(){if(arguments.length!==M&&G("function "+c+" called with "+arguments.length+" arguments, expected "+M+" args!"),ie.length=0,j.length=A?2:1,j[0]=S,A){var Le=p[1].toWireType(ie,this);j[1]=Le}for(var ce=0;ce<M;++ce)$[ce]=p[ce+2].toWireType(ie,arguments[ce]),j.push($[ce]);if(ce=y.apply(null,j),C)Gt(ie);else for(var it=A?1:2;it<p.length;it++){var St=it===1?Le:$[it-2];p[it].V!==null&&p[it].V(St)}return Le=F?p[0].fromWireType(ce):void 0,Le}}function Ee(c,p){for(var b=[],y=0;y<c;y++)b.push(x[p+4*y>>2]);return b}function Oe(c){4<c&&--le[c].ga===0&&(le[c]=void 0,X.push(c))}function rt(c){if(c===null)return"null";var p=typeof c;return p==="object"||p==="array"||p==="function"?c.toString():""+c}function nt(c,p){switch(p){case 2:return function(b){return this.fromWireType(E[b>>2])};case 3:return function(b){return this.fromWireType(T[b>>3])};default:throw new TypeError("Unknown float type: "+c)}}function xt(c,p,b){switch(p){case 0:return b?function(y){return g[y]}:function(y){return v[y]};case 1:return b?function(y){return w[y>>1]}:function(y){return _[y>>1]};case 2:return b?function(y){return O[y>>2]}:function(y){return x[y>>2]};default:throw new TypeError("Unknown integer type: "+c)}}function wt(c,p){for(var b="",y=0;!(y>=p/2);++y){var S=w[c+2*y>>1];if(S==0)break;b+=String.fromCharCode(S)}return b}function Ge(c,p,b){if(b===void 0&&(b=2147483647),2>b)return 0;b-=2;var y=p;b=b<2*c.length?b/2:c.length;for(var S=0;S<b;++S)w[p>>1]=c.charCodeAt(S),p+=2;return w[p>>1]=0,p-y}function lt(c){return 2*c.length}function Dr(c,p){for(var b=0,y="";!(b>=p/4);){var S=O[c+4*b>>2];if(S==0)break;++b,65536<=S?(S-=65536,y+=String.fromCharCode(55296|S>>10,56320|S&1023)):y+=String.fromCharCode(S)}return y}function yr(c,p,b){if(b===void 0&&(b=2147483647),4>b)return 0;var y=p;b=y+b-4;for(var S=0;S<c.length;++S){var P=c.charCodeAt(S);if(55296<=P&&57343>=P){var A=c.charCodeAt(++S);P=65536+((P&1023)<<10)|A&1023}if(O[p>>2]=P,p+=4,p+4>b)break}return O[p>>2]=0,p-y}function Wn(c){for(var p=0,b=0;b<c.length;++b){var y=c.charCodeAt(b);55296<=y&&57343>=y&&++b,p+=4}return p}var Dn={};function $r(c){var p=Dn[c];return p===void 0?pe(c):p}var $n=[];function Nc(c){var p=$n.length;return $n.push(c),p}function Fc(c,p){for(var b=Array(c),y=0;y<c;++y)b[y]=er(x[p+4*y>>2],"parameter "+y);return b}var ga=[],Wc=[null,[],[]];me=t.BindingError=ee("BindingError"),t.count_emval_handles=function(){for(var c=0,p=5;p<le.length;++p)le[p]!==void 0&&++c;return c},t.get_first_emval=function(){for(var c=5;c<le.length;++c)if(le[c]!==void 0)return le[c];return null},Ye=t.PureVirtualError=ee("PureVirtualError");for(var ba=Array(256),Bn=0;256>Bn;++Bn)ba[Bn]=String.fromCharCode(Bn);Be=ba,t.getInheritedInstanceCount=function(){return Object.keys(Ne).length},t.getLiveInheritedInstances=function(){var c=[],p;for(p in Ne)Ne.hasOwnProperty(p)&&c.push(Ne[p]);return c},t.flushPendingDeletes=Ce,t.setDelayFunction=function(c){et=c,Ue.length&&et&&et(Ce)},rr=t.InternalError=ee("InternalError"),Q.prototype.isAliasOf=function(c){if(!(this instanceof Q&&c instanceof Q))return!1;var p=this.M.P.N,b=this.M.O,y=c.M.P.N;for(c=c.M.O;p.R;)b=p.ba(b),p=p.R;for(;y.R;)c=y.ba(c),y=y.R;return p===y&&b===c},Q.prototype.clone=function(){if(this.M.O||fe(this),this.M.aa)return this.M.count.value+=1,this;var c=vt,p=Object,b=p.create,y=Object.getPrototypeOf(this),S=this.M;return c=c(b.call(p,y,{M:{value:{count:S.count,$:S.$,aa:S.aa,O:S.O,P:S.P,T:S.T,U:S.U}}})),c.M.count.value+=1,c.M.$=!1,c},Q.prototype.delete=function(){this.M.O||fe(this),this.M.$&&!this.M.aa&&G("Object already scheduled for deletion"),br(this),tr(this.M),this.M.aa||(this.M.T=void 0,this.M.O=void 0)},Q.prototype.isDeleted=function(){return!this.M.O},Q.prototype.deleteLater=function(){return this.M.O||fe(this),this.M.$&&!this.M.aa&&G("Object already scheduled for deletion"),Ue.push(this),Ue.length===1&&et&&et(Ce),this.M.$=!0,this},Fe.prototype.qa=function(c){return this.ka&&(c=this.ka(c)),c},Fe.prototype.ha=function(c){this.W&&this.W(c)},Fe.prototype.argPackAdvance=8,Fe.prototype.readValueFromPointer=qe,Fe.prototype.deleteObject=function(c){c!==null&&c.delete()},Fe.prototype.fromWireType=function(c){function p(){return this.da?bt(this.N.X,{P:this.wa,O:b,U:this,T:c}):bt(this.N.X,{P:this,O:c})}var b=this.qa(c);if(!b)return this.ha(c),null;var y=st(this.N,b);if(y!==void 0)return y.M.count.value===0?(y.M.O=b,y.M.T=c,y.clone()):(y=y.clone(),this.ha(c),y);if(y=this.N.pa(b),y=gt[y],!y)return p.call(this);y=this.ca?y.la:y.pointerType;var S=Pt(b,this.N,y.N);return S===null?p.call(this):this.da?bt(y.N.X,{P:y,O:S,U:this,T:c}):bt(y.N.X,{P:y,O:S})},ir=t.UnboundTypeError=ee("UnboundTypeError");var Dc=typeof atob=="function"?atob:function(c){var p="",b=0;c=c.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(b++)),S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(b++)),P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(b++)),A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(b++));y=y<<2|S>>4,S=(S&15)<<4|P>>2;var C=(P&3)<<6|A;p+=String.fromCharCode(y),P!==64&&(p+=String.fromCharCode(S)),A!==64&&(p+=String.fromCharCode(C))}while(b<c.length);return p},$c={l:function(c,p,b,y){Se("Assertion failed: "+(c?m(v,c):"")+", at: "+[p?p?m(v,p):"":"unknown filename",b,y?y?m(v,y):"":"unknown function"])},q:function(c,p,b){c=pe(c),p=er(p,"wrapper"),b=_e(b);var y=[].slice,S=p.N,P=S.X,A=S.R.X,C=S.R.constructor;c=Ze(c,function(){S.R.ja.forEach(function(M){if(this[M]===A[M])throw new Ye("Pure virtual function "+M+" must be implemented in JavaScript")}.bind(this)),Object.defineProperty(this,"__parent",{value:P}),this.__construct.apply(this,y.call(arguments))}),P.__construct=function(){this===P&&G("Pass correct 'this' to __construct");var M=C.implement.apply(void 0,[this].concat(y.call(arguments)));br(M);var $=M.M;M.notifyOnDestruction(),$.aa=!0,Object.defineProperties(this,{M:{value:$}}),vt(this),M=$.O,M=gr(S,M),Ne.hasOwnProperty(M)?G("Tried to register registered instance: "+M):Ne[M]=this},P.__destruct=function(){this===P&&G("Pass correct 'this' to __destruct"),br(this);var M=this.M.O;M=gr(S,M),Ne.hasOwnProperty(M)?delete Ne[M]:G("Tried to unregister unregistered instance: "+M)},c.prototype=Object.create(P);for(var F in b)c.prototype[F]=b[F];return Ie(c)},j:function(c){var p=nr[c];delete nr[c];var b=p.fa,y=p.W,S=p.ia,P=S.map(A=>A.ta).concat(S.map(A=>A.za));yt([c],P,A=>{var C={};return S.forEach((F,M)=>{var $=A[M],j=F.ra,ie=F.sa,Le=A[M+S.length],ce=F.ya,it=F.Aa;C[F.oa]={read:St=>$.fromWireType(j(ie,St)),write:(St,Br)=>{var Nt=[];ce(it,St,Le.toWireType(Nt,Br)),Gt(Nt)}}}),[{name:p.name,fromWireType:function(F){var M={},$;for($ in C)M[$]=C[$].read(F);return y(F),M},toWireType:function(F,M){for(var $ in C)if(!($ in M))throw new TypeError('Missing field: "'+$+'"');var j=b();for($ in C)C[$].write(j,M[$]);return F!==null&&F.push(y,j),j},argPackAdvance:8,readValueFromPointer:qe,V:y}]})},v:function(){},B:function(c,p,b,y,S){var P=Y(b);p=pe(p),H(c,{name:p,fromWireType:function(A){return!!A},toWireType:function(A,C){return C?y:S},argPackAdvance:8,readValueFromPointer:function(A){if(b===1)var C=g;else if(b===2)C=w;else if(b===4)C=O;else throw new TypeError("Unknown boolean type size: "+p);return this.fromWireType(C[A>>P])},V:null})},f:function(c,p,b,y,S,P,A,C,F,M,$,j,ie){$=pe($),P=Ae(S,P),C&&(C=Ae(A,C)),M&&(M=Ae(F,M)),ie=Ae(j,ie);var Le=Re($);ae(Le,function(){$e("Cannot construct "+$+" due to unbound types",[y])}),yt([c,p,b],y?[y]:[],function(ce){if(ce=ce[0],y)var it=ce.N,St=it.X;else St=Q.prototype;ce=Ze(Le,function(){if(Object.getPrototypeOf(this)!==Br)throw new me("Use 'new' to construct "+$);if(Nt.Y===void 0)throw new me($+" has no accessible constructor");var wa=Nt.Y[arguments.length];if(wa===void 0)throw new me("Tried to invoke ctor of "+$+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(Nt.Y).toString()+") parameters instead!");return wa.apply(this,arguments)});var Br=Object.create(St,{constructor:{value:ce}});ce.prototype=Br;var Nt=new Te($,ce,Br,ie,it,P,C,M);it=new Fe($,Nt,!0,!1),St=new Fe($+"*",Nt,!1,!1);var xa=new Fe($+" const*",Nt,!1,!0);return gt[c]={pointerType:St,la:xa},ze(Le,ce),[it,St,xa]})},d:function(c,p,b,y,S,P,A){var C=Ee(b,y);p=pe(p),P=Ae(S,P),yt([],[c],function(F){function M(){$e("Cannot call "+$+" due to unbound types",C)}F=F[0];var $=F.name+"."+p;p.startsWith("@@")&&(p=Symbol[p.substring(2)]);var j=F.N.constructor;return j[p]===void 0?(M.Z=b-1,j[p]=M):(xe(j,p,$),j[p].S[b-1]=M),yt([],C,function(ie){return ie=Lt($,[ie[0],null].concat(ie.slice(1)),null,P,A),j[p].S===void 0?(ie.Z=b-1,j[p]=ie):j[p].S[b-1]=ie,[]}),[]})},p:function(c,p,b,y,S,P){0<p||Se();var A=Ee(p,b);S=Ae(y,S),yt([],[c],function(C){C=C[0];var F="constructor "+C.name;if(C.N.Y===void 0&&(C.N.Y=[]),C.N.Y[p-1]!==void 0)throw new me("Cannot register multiple constructors with identical number of parameters ("+(p-1)+") for class '"+C.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return C.N.Y[p-1]=()=>{$e("Cannot construct "+C.name+" due to unbound types",A)},yt([],A,function(M){return M.splice(1,0,null),C.N.Y[p-1]=Lt(F,M,null,S,P),[]}),[]})},a:function(c,p,b,y,S,P,A,C){var F=Ee(b,y);p=pe(p),P=Ae(S,P),yt([],[c],function(M){function $(){$e("Cannot call "+j+" due to unbound types",F)}M=M[0];var j=M.name+"."+p;p.startsWith("@@")&&(p=Symbol[p.substring(2)]),C&&M.N.ja.push(p);var ie=M.N.X,Le=ie[p];return Le===void 0||Le.S===void 0&&Le.className!==M.name&&Le.Z===b-2?($.Z=b-2,$.className=M.name,ie[p]=$):(xe(ie,p,j),ie[p].S[b-2]=$),yt([],F,function(ce){return ce=Lt(j,ce,M,P,A),ie[p].S===void 0?(ce.Z=b-2,ie[p]=ce):ie[p].S[b-2]=ce,[]}),[]})},A:function(c,p){p=pe(p),H(c,{name:p,fromWireType:function(b){var y=_e(b);return Oe(b),y},toWireType:function(b,y){return Ie(y)},argPackAdvance:8,readValueFromPointer:qe,V:null})},n:function(c,p,b){b=Y(b),p=pe(p),H(c,{name:p,fromWireType:function(y){return y},toWireType:function(y,S){return S},argPackAdvance:8,readValueFromPointer:nt(p,b),V:null})},e:function(c,p,b,y,S){p=pe(p),S===-1&&(S=4294967295),S=Y(b);var P=C=>C;if(y===0){var A=32-8*b;P=C=>C<<A>>>A}b=p.includes("unsigned")?function(C,F){return F>>>0}:function(C,F){return F},H(c,{name:p,fromWireType:P,toWireType:b,argPackAdvance:8,readValueFromPointer:xt(p,S,y!==0),V:null})},b:function(c,p,b){function y(P){P>>=2;var A=x;return new S(h,A[P+1],A[P])}var S=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][p];b=pe(b),H(c,{name:b,fromWireType:y,argPackAdvance:8,readValueFromPointer:y},{ua:!0})},o:function(c,p){p=pe(p);var b=p==="std::string";H(c,{name:p,fromWireType:function(y){var S=x[y>>2],P=y+4;if(b)for(var A=P,C=0;C<=S;++C){var F=P+C;if(C==S||v[F]==0){if(A=A?m(v,A,F-A):"",M===void 0)var M=A;else M+=String.fromCharCode(0),M+=A;A=F+1}}else{for(M=Array(S),C=0;C<S;++C)M[C]=String.fromCharCode(v[P+C]);M=M.join("")}return Mt(y),M},toWireType:function(y,S){S instanceof ArrayBuffer&&(S=new Uint8Array(S));var P,A=typeof S=="string";if(A||S instanceof Uint8Array||S instanceof Uint8ClampedArray||S instanceof Int8Array||G("Cannot pass non-string to std::string"),b&&A){var C=0;for(P=0;P<S.length;++P){var F=S.charCodeAt(P);127>=F?C++:2047>=F?C+=2:55296<=F&&57343>=F?(C+=4,++P):C+=3}P=C}else P=S.length;if(C=Wi(4+P+1),F=C+4,x[C>>2]=P,b&&A){if(A=F,F=P+1,P=v,0<F){F=A+F-1;for(var M=0;M<S.length;++M){var $=S.charCodeAt(M);if(55296<=$&&57343>=$){var j=S.charCodeAt(++M);$=65536+(($&1023)<<10)|j&1023}if(127>=$){if(A>=F)break;P[A++]=$}else{if(2047>=$){if(A+1>=F)break;P[A++]=192|$>>6}else{if(65535>=$){if(A+2>=F)break;P[A++]=224|$>>12}else{if(A+3>=F)break;P[A++]=240|$>>18,P[A++]=128|$>>12&63}P[A++]=128|$>>6&63}P[A++]=128|$&63}}P[A]=0}}else if(A)for(A=0;A<P;++A)M=S.charCodeAt(A),255<M&&(Mt(F),G("String has UTF-16 code units that do not fit in 8 bits")),v[F+A]=M;else for(A=0;A<P;++A)v[F+A]=S[A];return y!==null&&y.push(Mt,C),C},argPackAdvance:8,readValueFromPointer:qe,V:function(y){Mt(y)}})},i:function(c,p,b){if(b=pe(b),p===2)var y=wt,S=Ge,P=lt,A=()=>_,C=1;else p===4&&(y=Dr,S=yr,P=Wn,A=()=>x,C=2);H(c,{name:b,fromWireType:function(F){for(var M=x[F>>2],$=A(),j,ie=F+4,Le=0;Le<=M;++Le){var ce=F+4+Le*p;(Le==M||$[ce>>C]==0)&&(ie=y(ie,ce-ie),j===void 0?j=ie:(j+=String.fromCharCode(0),j+=ie),ie=ce+p)}return Mt(F),j},toWireType:function(F,M){typeof M!="string"&&G("Cannot pass non-string to C++ string type "+b);var $=P(M),j=Wi(4+$+p);return x[j>>2]=$>>C,S(M,j+4,$+p),F!==null&&F.push(Mt,j),j},argPackAdvance:8,readValueFromPointer:qe,V:function(F){Mt(F)}})},k:function(c,p,b,y,S,P){nr[c]={name:pe(p),fa:Ae(b,y),W:Ae(S,P),ia:[]}},h:function(c,p,b,y,S,P,A,C,F,M){nr[c].ia.push({oa:pe(p),ta:b,ra:Ae(y,S),sa:P,za:A,ya:Ae(C,F),Aa:M})},C:function(c,p){p=pe(p),H(c,{va:!0,name:p,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},s:function(c,p,b,y,S){c=$n[c],p=_e(p),b=$r(b);var P=[];return x[y>>2]=Ie(P),c(p,b,P,S)},t:function(c,p,b,y){c=$n[c],p=_e(p),b=$r(b),c(p,b,null,y)},g:Oe,m:function(c,p){var b=Fc(c,p),y=b[0];p=y.name+"_$"+b.slice(1).map(function(A){return A.name}).join("_")+"$";var S=ga[p];if(S!==void 0)return S;var P=Array(c-1);return S=Nc((A,C,F,M)=>{for(var $=0,j=0;j<c-1;++j)P[j]=b[j+1].readValueFromPointer(M+$),$+=b[j+1].argPackAdvance;for(A=A[C].apply(A,P),j=0;j<c-1;++j)b[j+1].ma&&b[j+1].ma(P[j]);if(!y.va)return y.toWireType(F,A)}),ga[p]=S},D:function(c){4<c&&(le[c].ga+=1)},r:function(c){var p=_e(c);Gt(p),Oe(c)},c:function(){Se("")},x:function(c,p,b){v.copyWithin(c,p,p+b)},w:function(c){var p=v.length;if(c>>>=0,2147483648<c)return!1;for(var b=1;4>=b;b*=2){var y=p*(1+.2/b);y=Math.min(y,c+100663296);var S=Math;y=Math.max(c,y),S=S.min.call(S,2147483648,y+(65536-y%65536)%65536);e:{try{f.grow(S-h.byteLength+65535>>>16),I();var P=1;break e}catch{}P=void 0}if(P)return!0}return!1},z:function(){return 52},u:function(){return 70},y:function(c,p,b,y){for(var S=0,P=0;P<b;P++){var A=x[p>>2],C=x[p+4>>2];p+=8;for(var F=0;F<C;F++){var M=v[A+F],$=Wc[c];M===0||M===10?((c===1?s:a)(m($,0)),$.length=0):$.push(M)}S+=C}return x[y>>2]=S,0}};(function(){function c(S){t.asm=S.exports,f=t.asm.E,I(),N=t.asm.J,z.unshift(t.asm.F),we--,t.monitorRunDependencies&&t.monitorRunDependencies(we),we==0&&(ve!==null&&(clearInterval(ve),ve=null),ue&&(S=ue,ue=null,S()))}function p(S){c(S.instance)}function b(S){return He().then(function(P){return P instanceof WebAssembly.Instance?P:WebAssembly.instantiate(P,y)}).then(function(P){return P}).then(S,function(P){a("failed to asynchronously prepare wasm: "+P),Se(P)})}var y={a:$c};if(we++,t.monitorRunDependencies&&t.monitorRunDependencies(we),t.instantiateWasm)try{return t.instantiateWasm(y,c)}catch(S){a("Module.instantiateWasm callback failed with error: "+S),n(S)}return function(){return u||typeof WebAssembly.instantiateStreaming!="function"||Me(te)||typeof fetch!="function"?b(p):fetch(te,{credentials:"same-origin"}).then(function(S){return WebAssembly.instantiateStreaming(S,y).then(p,function(P){return a("wasm streaming compile failed: "+P),a("falling back to ArrayBuffer instantiation"),b(p)})})}().catch(n),{}})(),t.___wasm_call_ctors=function(){return(t.___wasm_call_ctors=t.asm.F).apply(null,arguments)};var va=t.___getTypeName=function(){return(va=t.___getTypeName=t.asm.G).apply(null,arguments)};t.__embind_initialize_bindings=function(){return(t.__embind_initialize_bindings=t.asm.H).apply(null,arguments)};var Wi=t._malloc=function(){return(Wi=t._malloc=t.asm.I).apply(null,arguments)},Mt=t._free=function(){return(Mt=t._free=t.asm.K).apply(null,arguments)};t.dynCall_jiji=function(){return(t.dynCall_jiji=t.asm.L).apply(null,arguments)};var Un;ue=function c(){Un||ya(),Un||(ue=c)};function ya(){function c(){if(!Un&&(Un=!0,t.calledRun=!0,!d)){if(ye(z),r(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),t.postRun)for(typeof t.postRun=="function"&&(t.postRun=[t.postRun]);t.postRun.length;){var p=t.postRun.shift();Z.unshift(p)}ye(Z)}}if(!(0<we)){if(t.preRun)for(typeof t.preRun=="function"&&(t.preRun=[t.preRun]);t.preRun.length;)de();ye(W),0<we||(t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1),c()},1)):c())}}if(t.preInit)for(typeof t.preInit=="function"&&(t.preInit=[t.preInit]);0<t.preInit.length;)t.preInit.pop()();return ya(),e.ready}var qa,Ga=or(()=>{qa=""});async function ja(e){let{default:t}=await Promise.resolve().then(()=>(Ga(),za));return Xi(await t(e))}var Va=or(()=>{Ua();Yn()});var Ki={};zn(Ki,{getYoga:()=>dd,init:()=>cd});async function fd(e,t){let r;if(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL?r=await fetch(e):r=await e,typeof Response=="function"&&r instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(r,t)}catch(o){r.headers.get("Content-Type")!=="application/wasm"&&console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",o)}let i=await r.arrayBuffer();return await WebAssembly.instantiate(i,t)}let n=await WebAssembly.instantiate("buffer"in r?r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength):r,t);return n instanceof WebAssembly.Instance?{instance:n,module:r}:n}function cd(e){ud({instantiateWasm(t,r){return fd(e,t).then(({instance:n})=>{r(n)}).catch(Qi),{}}}).then(Ha).catch(Qi)}function dd(){return ld}var ud,Ha,Qi,ld,Ji=or(()=>{Va();ud=ja,ld=new Promise((e,t)=>{Ha=e,Qi=t})});var Io=q(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Object.defineProperty(Oo,"default",{enumerable:!0,get:()=>Bp});function Bp(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 Ju=q(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Object.defineProperty(Ao,"default",{enumerable:!0,get:()=>Up});var Up=["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 Zu=q(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Object.defineProperty(Ro,"default",{enumerable:!0,get:()=>qp});function qp(e,t){return e===void 0?t:Array.isArray(e)?e:[...new Set(t.filter(n=>e!==!1&&e[n]!==!1).concat(Object.keys(e).filter(n=>e[n]!==!1)))]}});var Co=q((rw,el)=>{el.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 bi={};zn(bi,{default:()=>zp});var zp,vi=or(()=>{zp={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 tl=q(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Object.defineProperty(Lo,"default",{enumerable:!0,get:()=>Vp});var Gp=jp((vi(),Gn(bi)));function jp(e){return e&&e.__esModule?e:{default:e}}function tn({version:e,from:t,to:r}){Gp.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${r}\`.`,"Update your configuration file to silence this warning."])}var Vp={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 tn({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return tn({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return tn({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return tn({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return tn({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}});var rl=q(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Object.defineProperty(Mo,"defaults",{enumerable:!0,get:()=>Hp});function Hp(e,...t){for(let i of t){for(let o in i){var r;!(e==null||(r=e.hasOwnProperty)===null||r===void 0)&&r.call(e,o)||(e[o]=i[o])}for(let o of Object.getOwnPropertySymbols(i)){var n;!(e==null||(n=e.hasOwnProperty)===null||n===void 0)&&n.call(e,o)||(e[o]=i[o])}}return e}});var nl=q(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});Object.defineProperty(No,"toPath",{enumerable:!0,get:()=>Yp});function Yp(e){if(Array.isArray(e))return e;let t=e.split("[").length-1,r=e.split("]").length-1;if(t!==r)throw new Error(`Path is invalid. Has unbalanced brackets: ${e}`);return e.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}});var ol=q(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Object.defineProperty(Fo,"normalizeConfig",{enumerable:!0,get:()=>Qp});var rn=Xp((vi(),Gn(bi)));function il(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(il=function(n){return n?r:t})(e)}function Xp(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=il(t);if(r&&r.has(e))return r.get(e);var n={},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(n,o,s):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function Qp(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(n=>typeof n=="string"?!0:!(typeof(n==null?void 0:n.raw)!="string"||n!=null&&n.extension&&typeof(n==null?void 0:n.extension)!="string"));if(typeof e.content=="object"&&e.content!==null){if(Object.keys(e.content).some(n=>!["files","extract","transform"].includes(n)))return!1;if(Array.isArray(e.content.files)){if(!e.content.files.every(n=>typeof n=="string"?!0:!(typeof(n==null?void 0:n.raw)!="string"||n!=null&&n.extension&&typeof(n==null?void 0:n.extension)!="string")))return!1;if(typeof e.content.extract=="object"){for(let n of Object.values(e.content.extract))if(typeof n!="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 n of Object.values(e.content.transform))if(typeof n!="function")return!1}else if(!(e.content.transform===void 0||typeof e.content.transform=="function"))return!1}return!0}return!1})()||rn.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 n;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||(n=o.options)===null||n===void 0?void 0:n.safelist)?o.options.safelist:[]})(),typeof e.prefix=="function")rn.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 r;e.prefix=(r=e.prefix)!==null&&r!==void 0?r:""}e.content={files:(()=>{let{content:n,purge:i}=e;return Array.isArray(i)?i:Array.isArray(i==null?void 0:i.content)?i.content:Array.isArray(n)?n:Array.isArray(n==null?void 0:n.content)?n.content:Array.isArray(n==null?void 0:n.files)?n.files:[]})(),extract:(()=>{let n=(()=>{var s,a,u,l,f,d,m,h,g,v;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||(d=f.extract)===null||d===void 0)&&d.DEFAULT?e.content.extract.DEFAULT:!((m=e.purge)===null||m===void 0||(h=m.options)===null||h===void 0)&&h.extractors?e.purge.options.extractors:!((g=e.content)===null||g===void 0||(v=g.options)===null||v===void 0)&&v.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 n=="function")i.DEFAULT=n;else if(Array.isArray(n))for(let{extensions:s,extractor:a}of n??[])for(let u of s)i[u]=a;else typeof n=="object"&&n!==null&&Object.assign(i,n);return i})(),transform:(()=>{let n=(()=>{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 n=="function"&&(i.DEFAULT=n),typeof n=="object"&&n!==null&&Object.assign(i,n),i})()};for(let n of e.content.files)if(typeof n=="string"&&/{([^,]*?)}/g.test(n)){rn.default.warn("invalid-glob-braces",[`The glob pattern ${(0,rn.dim)(n)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,rn.dim)(n.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return e}});var sl=q(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Object.defineProperty(Wo,"default",{enumerable:!0,get:()=>Kp});function Kp(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}});var al=q($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});Object.defineProperty($o,"cloneDeep",{enumerable:!0,get:()=>Do});function Do(e){return Array.isArray(e)?e.map(t=>Do(t)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).map(([t,r])=>[t,Do(r)])):e}});var Bo=q((yi,ul)=>{"use strict";yi.__esModule=!0;yi.default=eh;function Jp(e){for(var t=e.toLowerCase(),r="",n=!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(n=o===32,!s)break;r+=t[i]}if(r.length!==0){var a=parseInt(r,16),u=a>=55296&&a<=57343;return u||a===0||a>1114111?["\uFFFD",r.length+(n?1:0)]:[String.fromCodePoint(a),r.length+(n?1:0)]}}var Zp=/\\/;function eh(e){var t=Zp.test(e);if(!t)return e;for(var r="",n=0;n<e.length;n++){if(e[n]==="\\"){var i=Jp(e.slice(n+1,n+7));if(i!==void 0){r+=i[0],n+=i[1];continue}if(e[n+1]==="\\"){r+="\\",n++;continue}e.length===n+1&&(r+=e[n]);continue}r+=e[n]}return r}ul.exports=yi.default});var fl=q((xi,ll)=>{"use strict";xi.__esModule=!0;xi.default=th;function th(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(;r.length>0;){var i=r.shift();if(!e[i])return;e=e[i]}return e}ll.exports=xi.default});var dl=q((wi,cl)=>{"use strict";wi.__esModule=!0;wi.default=rh;function rh(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(;r.length>0;){var i=r.shift();e[i]||(e[i]={}),e=e[i]}}cl.exports=wi.default});var hl=q((Si,pl)=>{"use strict";Si.__esModule=!0;Si.default=nh;function nh(e){for(var t="",r=e.indexOf("/*"),n=0;r>=0;){t=t+e.slice(n,r);var i=e.indexOf("*/",r+2);if(i<0)return t;n=i+2,r=e.indexOf("/*",n)}return t=t+e.slice(n),t}pl.exports=Si.default});var nn=q(At=>{"use strict";At.__esModule=!0;At.stripComments=At.ensureObject=At.getProp=At.unesc=void 0;var ih=_i(Bo());At.unesc=ih.default;var oh=_i(fl());At.getProp=oh.default;var sh=_i(dl());At.ensureObject=sh.default;var ah=_i(hl());At.stripComments=ah.default;function _i(e){return e&&e.__esModule?e:{default:e}}});var Ut=q((on,bl)=>{"use strict";on.__esModule=!0;on.default=void 0;var ml=nn();function gl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function uh(e,t,r){return t&&gl(e.prototype,t),r&&gl(e,r),e}var lh=function e(t,r){if(typeof t!="object"||t===null)return t;var n=new t.constructor;for(var i in t)if(t.hasOwnProperty(i)){var o=t[i],s=typeof o;i==="parent"&&s==="object"?r&&(n[i]=r):o instanceof Array?n[i]=o.map(function(a){return e(a,n)}):n[i]=e(o,n)}return n},fh=function(){function e(r){r===void 0&&(r={}),Object.assign(this,r),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 n in arguments)this.parent.insertBefore(this,arguments[n]);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(n){n===void 0&&(n={});var i=lh(this);for(var o in n)i[o]=n[o];return i},t.appendToPropertyAndEscape=function(n,i,o){this.raws||(this.raws={});var s=this[n],a=this.raws[n];this[n]=s+i,a||o!==i?this.raws[n]=(a||s)+o:delete this.raws[n]},t.setPropertyAndEscape=function(n,i,o){this.raws||(this.raws={}),this[n]=i,this.raws[n]=o},t.setPropertyWithoutEscape=function(n,i){this[n]=i,this.raws&&delete this.raws[n]},t.isAtPosition=function(n,i){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>n||this.source.end.line<n||this.source.start.line===n&&this.source.start.column>i||this.source.end.line===n&&this.source.end.column<i)},t.stringifyProperty=function(n){return this.raws&&this.raws[n]||this[n]},t.valueToString=function(){return String(this.stringifyProperty("value"))},t.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},uh(e,[{key:"rawSpaceBefore",get:function(){var n=this.raws&&this.raws.spaces&&this.raws.spaces.before;return n===void 0&&(n=this.spaces&&this.spaces.before),n||""},set:function(n){(0,ml.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=n}},{key:"rawSpaceAfter",get:function(){var n=this.raws&&this.raws.spaces&&this.raws.spaces.after;return n===void 0&&(n=this.spaces.after),n||""},set:function(n){(0,ml.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=n}}]),e}();on.default=fh;bl.exports=on.default});var De=q(ge=>{"use strict";ge.__esModule=!0;ge.UNIVERSAL=ge.ATTRIBUTE=ge.CLASS=ge.COMBINATOR=ge.COMMENT=ge.ID=ge.NESTING=ge.PSEUDO=ge.ROOT=ge.SELECTOR=ge.STRING=ge.TAG=void 0;var ch="tag";ge.TAG=ch;var dh="string";ge.STRING=dh;var ph="selector";ge.SELECTOR=ph;var hh="root";ge.ROOT=hh;var mh="pseudo";ge.PSEUDO=mh;var gh="nesting";ge.NESTING=gh;var bh="id";ge.ID=bh;var vh="comment";ge.COMMENT=vh;var yh="combinator";ge.COMBINATOR=yh;var xh="class";ge.CLASS=xh;var wh="attribute";ge.ATTRIBUTE=wh;var Sh="universal";ge.UNIVERSAL=Sh});var Ti=q((sn,wl)=>{"use strict";sn.__esModule=!0;sn.default=void 0;var _h=Eh(Ut()),qt=Th(De());function xl(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return xl=function(){return e},e}function Th(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=xl();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}function Eh(e){return e&&e.__esModule?e:{default:e}}function kh(e,t){var r;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(r=Ph(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return r=e[Symbol.iterator](),r.next.bind(r)}function Ph(e,t){if(e){if(typeof e=="string")return vl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vl(e,t)}}function vl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Oh(e,t,r){return t&&yl(e.prototype,t),r&&yl(e,r),e}function Ih(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Uo(e,t)}function Uo(e,t){return Uo=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Uo(e,t)}var Ah=function(e){Ih(t,e);function t(n){var i;return i=e.call(this,n)||this,i.nodes||(i.nodes=[]),i}var r=t.prototype;return r.append=function(i){return i.parent=this,this.nodes.push(i),this},r.prepend=function(i){return i.parent=this,this.nodes.unshift(i),this},r.at=function(i){return this.nodes[i]},r.index=function(i){return typeof i=="number"?i:this.nodes.indexOf(i)},r.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},r.removeAll=function(){for(var i=kh(this.nodes),o;!(o=i()).done;){var s=o.value;s.parent=void 0}return this.nodes=[],this},r.empty=function(){return this.removeAll()},r.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},r.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},r._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},r.atPosition=function(i,o){if(this.isAtPosition(i,o))return this._findChildAtPosition(i,o)||this},r._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))},r.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}},r.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})},r.walkAttributes=function(i){var o=this;return this.walk(function(s){if(s.type===qt.ATTRIBUTE)return i.call(o,s)})},r.walkClasses=function(i){var o=this;return this.walk(function(s){if(s.type===qt.CLASS)return i.call(o,s)})},r.walkCombinators=function(i){var o=this;return this.walk(function(s){if(s.type===qt.COMBINATOR)return i.call(o,s)})},r.walkComments=function(i){var o=this;return this.walk(function(s){if(s.type===qt.COMMENT)return i.call(o,s)})},r.walkIds=function(i){var o=this;return this.walk(function(s){if(s.type===qt.ID)return i.call(o,s)})},r.walkNesting=function(i){var o=this;return this.walk(function(s){if(s.type===qt.NESTING)return i.call(o,s)})},r.walkPseudos=function(i){var o=this;return this.walk(function(s){if(s.type===qt.PSEUDO)return i.call(o,s)})},r.walkTags=function(i){var o=this;return this.walk(function(s){if(s.type===qt.TAG)return i.call(o,s)})},r.walkUniversals=function(i){var o=this;return this.walk(function(s){if(s.type===qt.UNIVERSAL)return i.call(o,s)})},r.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},[])},r.map=function(i){return this.nodes.map(i)},r.reduce=function(i,o){return this.nodes.reduce(i,o)},r.every=function(i){return this.nodes.every(i)},r.some=function(i){return this.nodes.some(i)},r.filter=function(i){return this.nodes.filter(i)},r.sort=function(i){return this.nodes.sort(i)},r.toString=function(){return this.map(String).join("")},Oh(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}(_h.default);sn.default=Ah;wl.exports=sn.default});var zo=q((an,_l)=>{"use strict";an.__esModule=!0;an.default=void 0;var Rh=Lh(Ti()),Ch=De();function Lh(e){return e&&e.__esModule?e:{default:e}}function Sl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Mh(e,t,r){return t&&Sl(e.prototype,t),r&&Sl(e,r),e}function Nh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,qo(e,t)}function qo(e,t){return qo=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},qo(e,t)}var Fh=function(e){Nh(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=Ch.ROOT,i}var r=t.prototype;return r.toString=function(){var i=this.reduce(function(o,s){return o.push(String(s)),o},[]).join(",");return this.trailingComma?i+",":i},r.error=function(i,o){return this._error?this._error(i,o):new Error(i)},Mh(t,[{key:"errorGenerator",set:function(i){this._error=i}}]),t}(Rh.default);an.default=Fh;_l.exports=an.default});var jo=q((un,Tl)=>{"use strict";un.__esModule=!0;un.default=void 0;var Wh=$h(Ti()),Dh=De();function $h(e){return e&&e.__esModule?e:{default:e}}function Bh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Go(e,t)}function Go(e,t){return Go=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Go(e,t)}var Uh=function(e){Bh(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=Dh.SELECTOR,n}return t}(Wh.default);un.default=Uh;Tl.exports=un.default});var Ei=q((cw,El)=>{"use strict";var qh={},zh=qh.hasOwnProperty,Gh=function(t,r){if(!t)return r;var n={};for(var i in r)n[i]=zh.call(t,i)?t[i]:r[i];return n},jh=/[ -,\.\/:-@\[-\^`\{-~]/,Vh=/[ -,\.\/:-@\[\]\^`\{-~]/,Hh=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Vo=function e(t,r){r=Gh(r,e.options),r.quotes!="single"&&r.quotes!="double"&&(r.quotes="single");for(var n=r.quotes=="double"?'"':"'",i=r.isIdentifier,o=t.charAt(0),s="",a=0,u=t.length;a<u;){var l=t.charAt(a++),f=l.charCodeAt(),d=void 0;if(f<32||f>126){if(f>=55296&&f<=56319&&a<u){var m=t.charCodeAt(a++);(m&64512)==56320?f=((f&1023)<<10)+(m&1023)+65536:a--}d="\\"+f.toString(16).toUpperCase()+" "}else r.escapeEverything?jh.test(l)?d="\\"+l:d="\\"+f.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?d="\\"+f.toString(16).toUpperCase()+" ":l=="\\"||!i&&(l=='"'&&n==l||l=="'"&&n==l)||i&&Vh.test(l)?d="\\"+l:d=l;s+=d}return i&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(o)&&(s="\\3"+o+" "+s.slice(1))),s=s.replace(Hh,function(h,g,v){return g&&g.length%2?h:(g||"")+v}),!i&&r.wrap?n+s+n:s};Vo.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};Vo.version="3.0.0";El.exports=Vo});var Yo=q((ln,Ol)=>{"use strict";ln.__esModule=!0;ln.default=void 0;var Yh=Pl(Ei()),Xh=nn(),Qh=Pl(Ut()),Kh=De();function Pl(e){return e&&e.__esModule?e:{default:e}}function kl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Jh(e,t,r){return t&&kl(e.prototype,t),r&&kl(e,r),e}function Zh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ho(e,t)}function Ho(e,t){return Ho=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ho(e,t)}var em=function(e){Zh(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=Kh.CLASS,i._constructed=!0,i}var r=t.prototype;return r.valueToString=function(){return"."+e.prototype.valueToString.call(this)},Jh(t,[{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var o=(0,Yh.default)(i,{isIdentifier:!0});o!==i?((0,Xh.ensureObject)(this,"raws"),this.raws.value=o):this.raws&&delete this.raws.value}this._value=i}}]),t}(Qh.default);ln.default=em;Ol.exports=ln.default});var Qo=q((fn,Il)=>{"use strict";fn.__esModule=!0;fn.default=void 0;var tm=nm(Ut()),rm=De();function nm(e){return e&&e.__esModule?e:{default:e}}function im(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xo(e,t)}function Xo(e,t){return Xo=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Xo(e,t)}var om=function(e){im(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=rm.COMMENT,n}return t}(tm.default);fn.default=om;Il.exports=fn.default});var Jo=q((cn,Al)=>{"use strict";cn.__esModule=!0;cn.default=void 0;var sm=um(Ut()),am=De();function um(e){return e&&e.__esModule?e:{default:e}}function lm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ko(e,t)}function Ko(e,t){return Ko=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ko(e,t)}var fm=function(e){lm(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=am.ID,i}var r=t.prototype;return r.valueToString=function(){return"#"+e.prototype.valueToString.call(this)},t}(sm.default);cn.default=fm;Al.exports=cn.default});var ki=q((dn,Ll)=>{"use strict";dn.__esModule=!0;dn.default=void 0;var cm=Cl(Ei()),dm=nn(),pm=Cl(Ut());function Cl(e){return e&&e.__esModule?e:{default:e}}function Rl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function hm(e,t,r){return t&&Rl(e.prototype,t),r&&Rl(e,r),e}function mm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zo(e,t)}function Zo(e,t){return Zo=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Zo(e,t)}var gm=function(e){mm(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.qualifiedName=function(i){return this.namespace?this.namespaceString+"|"+i:i},r.valueToString=function(){return this.qualifiedName(e.prototype.valueToString.call(this))},hm(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,cm.default)(i,{isIdentifier:!0});this._namespace=i,o!==i?((0,dm.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}(pm.default);dn.default=gm;Ll.exports=dn.default});var ts=q((pn,Ml)=>{"use strict";pn.__esModule=!0;pn.default=void 0;var bm=ym(ki()),vm=De();function ym(e){return e&&e.__esModule?e:{default:e}}function xm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,es(e,t)}function es(e,t){return es=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},es(e,t)}var wm=function(e){xm(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=vm.TAG,n}return t}(bm.default);pn.default=wm;Ml.exports=pn.default});var ns=q((hn,Nl)=>{"use strict";hn.__esModule=!0;hn.default=void 0;var Sm=Tm(Ut()),_m=De();function Tm(e){return e&&e.__esModule?e:{default:e}}function Em(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,rs(e,t)}function rs(e,t){return rs=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},rs(e,t)}var km=function(e){Em(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=_m.STRING,n}return t}(Sm.default);hn.default=km;Nl.exports=hn.default});var os=q((mn,Fl)=>{"use strict";mn.__esModule=!0;mn.default=void 0;var Pm=Im(Ti()),Om=De();function Im(e){return e&&e.__esModule?e:{default:e}}function Am(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,is(e,t)}function is(e,t){return is=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},is(e,t)}var Rm=function(e){Am(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=Om.PSEUDO,i}var r=t.prototype;return r.toString=function(){var i=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),i,this.rawSpaceAfter].join("")},t}(Pm.default);mn.default=Rm;Fl.exports=mn.default});var Dl=q((dw,Wl)=>{Wl.exports=function(t,r){return function(...n){return console.warn(r),t(...n)}}});var cs=q(vn=>{"use strict";vn.__esModule=!0;vn.unescapeValue=fs;vn.default=void 0;var gn=ls(Ei()),Cm=ls(Bo()),Lm=ls(ki()),Mm=De(),ss;function ls(e){return e&&e.__esModule?e:{default:e}}function $l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Nm(e,t,r){return t&&$l(e.prototype,t),r&&$l(e,r),e}function Fm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,us(e,t)}function us(e,t){return us=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},us(e,t)}var bn=Dl(),Wm=/^('|")([^]*)\1$/,Dm=bn(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),$m=bn(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),Bm=bn(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function fs(e){var t=!1,r=null,n=e,i=n.match(Wm);return i&&(r=i[1],n=i[2]),n=(0,Cm.default)(n),n!==e&&(t=!0),{deprecatedUsage:t,unescaped:n,quoteMark:r}}function Um(e){if(e.quoteMark!==void 0||e.value===void 0)return e;Bm();var t=fs(e.value),r=t.quoteMark,n=t.unescaped;return e.raws||(e.raws={}),e.raws.value===void 0&&(e.raws.value=e.value),e.value=n,e.quoteMark=r,e}var Pi=function(e){Fm(t,e);function t(n){var i;return n===void 0&&(n={}),i=e.call(this,Um(n))||this,i.type=Mm.ATTRIBUTE,i.raws=i.raws||{},Object.defineProperty(i.raws,"unquoted",{get:bn(function(){return i.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:bn(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 r=t.prototype;return r.getQuotedValue=function(i){i===void 0&&(i={});var o=this._determineQuoteMark(i),s=as[o],a=(0,gn.default)(this._value,s);return a},r._determineQuoteMark=function(i){return i.smart?this.smartQuoteMark(i):this.preferredQuoteMark(i)},r.setValue=function(i,o){o===void 0&&(o={}),this._value=i,this._quoteMark=this._determineQuoteMark(o),this._syncRawValue()},r.smartQuoteMark=function(i){var o=this.value,s=o.replace(/[^']/g,"").length,a=o.replace(/[^"]/g,"").length;if(s+a===0){var u=(0,gn.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,d=as[f],m=(0,gn.default)(o,d);if(m.length<u.length)return f}return l}else return a===s?this.preferredQuoteMark(i):a<s?t.DOUBLE_QUOTE:t.SINGLE_QUOTE},r.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},r._syncRawValue=function(){var i=(0,gn.default)(this._value,as[this.quoteMark]);i===this._value?this.raws&&delete this.raws.value:this.raws.value=i},r._handleEscapes=function(i,o){if(this._constructed){var s=(0,gn.default)(o,{isIdentifier:!0});s!==o?this.raws[i]=s:delete this.raws[i]}},r._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)},r._stringFor=function(i,o,s){o===void 0&&(o=i),s===void 0&&(s=Bl);var a=this._spacesFor(o);return s(this.stringifyProperty(i),a)},r.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 d=this._spacesFor("insensitive");return o+=d.before.length,i==="insensitive"&&this.insensitive?o:-1},r.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=" "),Bl(s,a)}))),o.push("]"),o.push(this.rawSpaceAfter),o.join("")},Nm(t,[{key:"quoted",get:function(){var i=this.quoteMark;return i==="'"||i==='"'},set:function(i){$m()}},{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=fs(i),s=o.deprecatedUsage,a=o.unescaped,u=o.quoteMark;if(s&&Dm(),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}(Lm.default);vn.default=Pi;Pi.NO_QUOTE=null;Pi.SINGLE_QUOTE="'";Pi.DOUBLE_QUOTE='"';var as=(ss={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},ss[null]={isIdentifier:!0},ss);function Bl(e,t){return""+t.before+e+t.after}});var ps=q((yn,Ul)=>{"use strict";yn.__esModule=!0;yn.default=void 0;var qm=Gm(ki()),zm=De();function Gm(e){return e&&e.__esModule?e:{default:e}}function jm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ds(e,t)}function ds(e,t){return ds=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ds(e,t)}var Vm=function(e){jm(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=zm.UNIVERSAL,n.value="*",n}return t}(qm.default);yn.default=Vm;Ul.exports=yn.default});var ms=q((xn,ql)=>{"use strict";xn.__esModule=!0;xn.default=void 0;var Hm=Xm(Ut()),Ym=De();function Xm(e){return e&&e.__esModule?e:{default:e}}function Qm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hs(e,t)}function hs(e,t){return hs=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},hs(e,t)}var Km=function(e){Qm(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=Ym.COMBINATOR,n}return t}(Hm.default);xn.default=Km;ql.exports=xn.default});var bs=q((wn,zl)=>{"use strict";wn.__esModule=!0;wn.default=void 0;var Jm=e0(Ut()),Zm=De();function e0(e){return e&&e.__esModule?e:{default:e}}function t0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gs(e,t)}function gs(e,t){return gs=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},gs(e,t)}var r0=function(e){t0(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=Zm.NESTING,n.value="&",n}return t}(Jm.default);wn.default=r0;zl.exports=wn.default});var jl=q((Oi,Gl)=>{"use strict";Oi.__esModule=!0;Oi.default=n0;function n0(e){return e.sort(function(t,r){return t-r})}Gl.exports=Oi.default});var vs=q(U=>{"use strict";U.__esModule=!0;U.combinator=U.word=U.comment=U.str=U.tab=U.newline=U.feed=U.cr=U.backslash=U.bang=U.slash=U.doubleQuote=U.singleQuote=U.space=U.greaterThan=U.pipe=U.equals=U.plus=U.caret=U.tilde=U.dollar=U.closeSquare=U.openSquare=U.closeParenthesis=U.openParenthesis=U.semicolon=U.colon=U.comma=U.at=U.asterisk=U.ampersand=void 0;var i0=38;U.ampersand=i0;var o0=42;U.asterisk=o0;var s0=64;U.at=s0;var a0=44;U.comma=a0;var u0=58;U.colon=u0;var l0=59;U.semicolon=l0;var f0=40;U.openParenthesis=f0;var c0=41;U.closeParenthesis=c0;var d0=91;U.openSquare=d0;var p0=93;U.closeSquare=p0;var h0=36;U.dollar=h0;var m0=126;U.tilde=m0;var g0=94;U.caret=g0;var b0=43;U.plus=b0;var v0=61;U.equals=v0;var y0=124;U.pipe=y0;var x0=62;U.greaterThan=x0;var w0=32;U.space=w0;var Vl=39;U.singleQuote=Vl;var S0=34;U.doubleQuote=S0;var _0=47;U.slash=_0;var T0=33;U.bang=T0;var E0=92;U.backslash=E0;var k0=13;U.cr=k0;var P0=12;U.feed=P0;var O0=10;U.newline=O0;var I0=9;U.tab=I0;var A0=Vl;U.str=A0;var R0=-1;U.comment=R0;var C0=-2;U.word=C0;var L0=-3;U.combinator=L0});var Xl=q(Sn=>{"use strict";Sn.__esModule=!0;Sn.default=B0;Sn.FIELDS=void 0;var D=M0(vs()),Ar,he;function Yl(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Yl=function(){return e},e}function M0(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Yl();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}var N0=(Ar={},Ar[D.tab]=!0,Ar[D.newline]=!0,Ar[D.cr]=!0,Ar[D.feed]=!0,Ar),F0=(he={},he[D.space]=!0,he[D.tab]=!0,he[D.newline]=!0,he[D.cr]=!0,he[D.feed]=!0,he[D.ampersand]=!0,he[D.asterisk]=!0,he[D.bang]=!0,he[D.comma]=!0,he[D.colon]=!0,he[D.semicolon]=!0,he[D.openParenthesis]=!0,he[D.closeParenthesis]=!0,he[D.openSquare]=!0,he[D.closeSquare]=!0,he[D.singleQuote]=!0,he[D.doubleQuote]=!0,he[D.plus]=!0,he[D.pipe]=!0,he[D.tilde]=!0,he[D.greaterThan]=!0,he[D.equals]=!0,he[D.dollar]=!0,he[D.caret]=!0,he[D.slash]=!0,he),ys={},Hl="0123456789abcdefABCDEF";for(Ii=0;Ii<Hl.length;Ii++)ys[Hl.charCodeAt(Ii)]=!0;var Ii;function W0(e,t){var r=t,n;do{if(n=e.charCodeAt(r),F0[n])return r-1;n===D.backslash?r=D0(e,r)+1:r++}while(r<e.length);return r-1}function D0(e,t){var r=t,n=e.charCodeAt(r+1);if(!N0[n])if(ys[n]){var i=0;do r++,i++,n=e.charCodeAt(r+1);while(ys[n]&&i<6);i<6&&n===D.space&&r++}else r++;return r}var $0={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};Sn.FIELDS=$0;function B0(e){var t=[],r=e.css.valueOf(),n=r,i=n.length,o=-1,s=1,a=0,u=0,l,f,d,m,h,g,v,w,_,O,x,E,T;function I(N,W){if(e.safe)r+=W,_=r.length-1;else throw e.error("Unclosed "+N,s,a-o,a)}for(;a<i;){switch(l=r.charCodeAt(a),l===D.newline&&(o=a,s+=1),l){case D.space:case D.tab:case D.newline:case D.cr:case D.feed:_=a;do _+=1,l=r.charCodeAt(_),l===D.newline&&(o=_,s+=1);while(l===D.space||l===D.newline||l===D.tab||l===D.cr||l===D.feed);T=D.space,m=s,d=_-o-1,u=_;break;case D.plus:case D.greaterThan:case D.tilde:case D.pipe:_=a;do _+=1,l=r.charCodeAt(_);while(l===D.plus||l===D.greaterThan||l===D.tilde||l===D.pipe);T=D.combinator,m=s,d=a-o,u=_;break;case D.asterisk:case D.ampersand:case D.bang:case D.comma:case D.equals:case D.dollar:case D.caret:case D.openSquare:case D.closeSquare:case D.colon:case D.semicolon:case D.openParenthesis:case D.closeParenthesis:_=a,T=l,m=s,d=a-o,u=_+1;break;case D.singleQuote:case D.doubleQuote:E=l===D.singleQuote?"'":'"',_=a;do for(h=!1,_=r.indexOf(E,_+1),_===-1&&I("quote",E),g=_;r.charCodeAt(g-1)===D.backslash;)g-=1,h=!h;while(h);T=D.str,m=s,d=a-o,u=_+1;break;default:l===D.slash&&r.charCodeAt(a+1)===D.asterisk?(_=r.indexOf("*/",a+2)+1,_===0&&I("comment","*/"),f=r.slice(a,_+1),w=f.split(`
|
|
4
|
+
`),v=w.length-1,v>0?(O=s+v,x=_-w[v].length):(O=s,x=o),T=D.comment,s=O,m=O,d=_-x):l===D.slash?(_=a,T=l,m=s,d=a-o,u=_+1):(_=W0(r,a),T=D.word,m=s,d=_-o),u=_+1;break}t.push([T,s,a-o,m,d,a,u]),x&&(o=x,x=null),a=u}return t}});var nf=q((_n,rf)=>{"use strict";_n.__esModule=!0;_n.default=void 0;var U0=ct(zo()),xs=ct(jo()),q0=ct(Yo()),Ql=ct(Qo()),z0=ct(Jo()),G0=ct(ts()),ws=ct(ns()),j0=ct(os()),Kl=Ai(cs()),V0=ct(ps()),Ss=ct(ms()),H0=ct(bs()),Y0=ct(jl()),L=Ai(Xl()),B=Ai(vs()),X0=Ai(De()),ke=nn(),fr,_s;function tf(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return tf=function(){return e},e}function Ai(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=tf();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}function ct(e){return e&&e.__esModule?e:{default:e}}function Jl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Q0(e,t,r){return t&&Jl(e.prototype,t),r&&Jl(e,r),e}var ks=(fr={},fr[B.space]=!0,fr[B.cr]=!0,fr[B.feed]=!0,fr[B.newline]=!0,fr[B.tab]=!0,fr),K0=Object.assign({},ks,(_s={},_s[B.comment]=!0,_s));function Zl(e){return{line:e[L.FIELDS.START_LINE],column:e[L.FIELDS.START_COL]}}function ef(e){return{line:e[L.FIELDS.END_LINE],column:e[L.FIELDS.END_COL]}}function cr(e,t,r,n){return{start:{line:e,column:t},end:{line:r,column:n}}}function Rr(e){return cr(e[L.FIELDS.START_LINE],e[L.FIELDS.START_COL],e[L.FIELDS.END_LINE],e[L.FIELDS.END_COL])}function Ts(e,t){if(e)return cr(e[L.FIELDS.START_LINE],e[L.FIELDS.START_COL],t[L.FIELDS.END_LINE],t[L.FIELDS.END_COL])}function Cr(e,t){var r=e[t];if(typeof r=="string")return r.indexOf("\\")!==-1&&((0,ke.ensureObject)(e,"raws"),e[t]=(0,ke.unesc)(r),e.raws[t]===void 0&&(e.raws[t]=r)),e}function Es(e,t){for(var r=-1,n=[];(r=e.indexOf(t,r+1))!==-1;)n.push(r);return n}function J0(){var e=Array.prototype.concat.apply([],arguments);return e.filter(function(t,r){return r===e.indexOf(t)})}var Z0=function(){function e(r,n){n===void 0&&(n={}),this.rule=r,this.options=Object.assign({lossy:!1,safe:!1},n),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,L.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var i=Ts(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new U0.default({source:i}),this.root.errorGenerator=this._errorGenerator();var o=new xs.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 n=this;return function(i,o){return typeof n.rule=="string"?new Error(i):n.rule.error(i,o)}},t.attribute=function(){var n=[],i=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[L.FIELDS.TYPE]!==B.closeSquare;)n.push(this.currToken),this.position++;if(this.currToken[L.FIELDS.TYPE]!==B.closeSquare)return this.expected("closing square bracket",this.currToken[L.FIELDS.START_POS]);var o=n.length,s={source:cr(i[1],i[2],this.currToken[3],this.currToken[4]),sourceIndex:i[L.FIELDS.START_POS]};if(o===1&&!~[B.word].indexOf(n[0][L.FIELDS.TYPE]))return this.expected("attribute",n[0][L.FIELDS.START_POS]);for(var a=0,u="",l="",f=null,d=!1;a<o;){var m=n[a],h=this.content(m),g=n[a+1];switch(m[L.FIELDS.TYPE]){case B.space:if(d=!0,this.options.lossy)break;if(f){(0,ke.ensureObject)(s,"spaces",f);var v=s.spaces[f].after||"";s.spaces[f].after=v+h;var w=(0,ke.getProp)(s,"raws","spaces",f,"after")||null;w&&(s.raws.spaces[f].after=w+h)}else u=u+h,l=l+h;break;case B.asterisk:if(g[L.FIELDS.TYPE]===B.equals)s.operator=h,f="operator";else if((!s.namespace||f==="namespace"&&!d)&&g){u&&((0,ke.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),l&&((0,ke.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=u,l=""),s.namespace=(s.namespace||"")+h;var _=(0,ke.getProp)(s,"raws","namespace")||null;_&&(s.raws.namespace+=h),f="namespace"}d=!1;break;case B.dollar:if(f==="value"){var O=(0,ke.getProp)(s,"raws","value");s.value+="$",O&&(s.raws.value=O+"$");break}case B.caret:g[L.FIELDS.TYPE]===B.equals&&(s.operator=h,f="operator"),d=!1;break;case B.combinator:if(h==="~"&&g[L.FIELDS.TYPE]===B.equals&&(s.operator=h,f="operator"),h!=="|"){d=!1;break}g[L.FIELDS.TYPE]===B.equals?(s.operator=h,f="operator"):!s.namespace&&!s.attribute&&(s.namespace=!0),d=!1;break;case B.word:if(g&&this.content(g)==="|"&&n[a+2]&&n[a+2][L.FIELDS.TYPE]!==B.equals&&!s.operator&&!s.namespace)s.namespace=h,f="namespace";else if(!s.attribute||f==="attribute"&&!d){u&&((0,ke.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),l&&((0,ke.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=l,l=""),s.attribute=(s.attribute||"")+h;var x=(0,ke.getProp)(s,"raws","attribute")||null;x&&(s.raws.attribute+=h),f="attribute"}else if(!s.value&&s.value!==""||f==="value"&&!d){var E=(0,ke.unesc)(h),T=(0,ke.getProp)(s,"raws","value")||"",I=s.value||"";s.value=I+E,s.quoteMark=null,(E!==h||T)&&((0,ke.ensureObject)(s,"raws"),s.raws.value=(T||I)+h),f="value"}else{var N=h==="i"||h==="I";(s.value||s.value==="")&&(s.quoteMark||d)?(s.insensitive=N,(!N||h==="I")&&((0,ke.ensureObject)(s,"raws"),s.raws.insensitiveFlag=h),f="insensitive",u&&((0,ke.ensureObject)(s,"spaces","insensitive"),s.spaces.insensitive.before=u,u=""),l&&((0,ke.ensureObject)(s,"raws","spaces","insensitive"),s.raws.spaces.insensitive.before=l,l="")):(s.value||s.value==="")&&(f="value",s.value+=h,s.raws.value&&(s.raws.value+=h))}d=!1;break;case B.str:if(!s.attribute||!s.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:m[L.FIELDS.START_POS]});var W=(0,Kl.unescapeValue)(h),z=W.unescaped,Z=W.quoteMark;s.value=z,s.quoteMark=Z,f="value",(0,ke.ensureObject)(s,"raws"),s.raws.value=h,d=!1;break;case B.equals:if(!s.attribute)return this.expected("attribute",m[L.FIELDS.START_POS],h);if(s.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:m[L.FIELDS.START_POS]});s.operator=s.operator?s.operator+h:h,f="operator",d=!1;break;case B.comment:if(f)if(d||g&&g[L.FIELDS.TYPE]===B.space||f==="insensitive"){var de=(0,ke.getProp)(s,"spaces",f,"after")||"",we=(0,ke.getProp)(s,"raws","spaces",f,"after")||de;(0,ke.ensureObject)(s,"raws","spaces",f),s.raws.spaces[f].after=we+h}else{var ve=s[f]||"",ue=(0,ke.getProp)(s,"raws",f)||ve;(0,ke.ensureObject)(s,"raws"),s.raws[f]=ue+h}else l=l+h;break;default:return this.error('Unexpected "'+h+'" found.',{index:m[L.FIELDS.START_POS]})}a++}Cr(s,"attribute"),Cr(s,"namespace"),this.newNode(new Kl.default(s)),this.position++},t.parseWhitespaceEquivalentTokens=function(n){n<0&&(n=this.tokens.length);var i=this.position,o=[],s="",a=void 0;do if(ks[this.currToken[L.FIELDS.TYPE]])this.options.lossy||(s+=this.content());else if(this.currToken[L.FIELDS.TYPE]===B.comment){var u={};s&&(u.before=s,s=""),a=new Ql.default({value:this.content(),source:Rr(this.currToken),sourceIndex:this.currToken[L.FIELDS.START_POS],spaces:u}),o.push(a)}while(++this.position<n);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 ws.default({value:"",source:cr(l[L.FIELDS.START_LINE],l[L.FIELDS.START_COL],f[L.FIELDS.END_LINE],f[L.FIELDS.END_COL]),sourceIndex:l[L.FIELDS.START_POS],spaces:{before:s,after:""}}))}}return o},t.convertWhitespaceNodesToSpace=function(n,i){var o=this;i===void 0&&(i=!1);var s="",a="";n.forEach(function(l){var f=o.lossySpace(l.spaces.before,i),d=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&&d.length===0)}),a===s&&(a=void 0);var u={space:s,rawSpace:a};return u},t.isNamedCombinator=function(n){return n===void 0&&(n=this.position),this.tokens[n+0]&&this.tokens[n+0][L.FIELDS.TYPE]===B.slash&&this.tokens[n+1]&&this.tokens[n+1][L.FIELDS.TYPE]===B.word&&this.tokens[n+2]&&this.tokens[n+2][L.FIELDS.TYPE]===B.slash},t.namedCombinator=function(){if(this.isNamedCombinator()){var n=this.content(this.tokens[this.position+1]),i=(0,ke.unesc)(n).toLowerCase(),o={};i!==n&&(o.value="/"+n+"/");var s=new Ss.default({value:"/"+i+"/",source:cr(this.currToken[L.FIELDS.START_LINE],this.currToken[L.FIELDS.START_COL],this.tokens[this.position+2][L.FIELDS.END_LINE],this.tokens[this.position+2][L.FIELDS.END_COL]),sourceIndex:this.currToken[L.FIELDS.START_POS],raws:o});return this.position=this.position+3,s}else this.unexpected()},t.combinator=function(){var n=this;if(this.content()==="|")return this.namespace();var i=this.locateNextMeaningfulToken(this.position);if(i<0||this.tokens[i][L.FIELDS.TYPE]===B.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(T){return n.newNode(T)})}return}var f=this.currToken,d=void 0;i>this.position&&(d=this.parseWhitespaceEquivalentTokens(i));var m;if(this.isNamedCombinator()?m=this.namedCombinator():this.currToken[L.FIELDS.TYPE]===B.combinator?(m=new Ss.default({value:this.content(),source:Rr(this.currToken),sourceIndex:this.currToken[L.FIELDS.START_POS]}),this.position++):ks[this.currToken[L.FIELDS.TYPE]]||d||this.unexpected(),m){if(d){var h=this.convertWhitespaceNodesToSpace(d),g=h.space,v=h.rawSpace;m.spaces.before=g,m.rawSpaceBefore=v}}else{var w=this.convertWhitespaceNodesToSpace(d,!0),_=w.space,O=w.rawSpace;O||(O=_);var x={},E={spaces:{}};_.endsWith(" ")&&O.endsWith(" ")?(x.before=_.slice(0,_.length-1),E.spaces.before=O.slice(0,O.length-1)):_.startsWith(" ")&&O.startsWith(" ")?(x.after=_.slice(1),E.spaces.after=O.slice(1)):E.value=O,m=new Ss.default({value:" ",source:Ts(f,this.tokens[this.position-1]),sourceIndex:f[L.FIELDS.START_POS],spaces:x,raws:E})}return this.currToken&&this.currToken[L.FIELDS.TYPE]===B.space&&(m.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(m)},t.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var n=new xs.default({source:{start:Zl(this.tokens[this.position+1])}});this.current.parent.append(n),this.current=n,this.position++},t.comment=function(){var n=this.currToken;this.newNode(new Ql.default({value:this.content(),source:Rr(n),sourceIndex:n[L.FIELDS.START_POS]})),this.position++},t.error=function(n,i){throw this.root.error(n,i)},t.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[L.FIELDS.START_POS]})},t.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[L.FIELDS.START_POS])},t.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[L.FIELDS.START_POS])},t.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[L.FIELDS.START_POS])},t.namespace=function(){var n=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[L.FIELDS.TYPE]===B.word)return this.position++,this.word(n);if(this.nextToken[L.FIELDS.TYPE]===B.asterisk)return this.position++,this.universal(n)},t.nesting=function(){if(this.nextToken){var n=this.content(this.nextToken);if(n==="|"){this.position++;return}}var i=this.currToken;this.newNode(new H0.default({value:this.content(),source:Rr(i),sourceIndex:i[L.FIELDS.START_POS]})),this.position++},t.parentheses=function(){var n=this.current.last,i=1;if(this.position++,n&&n.type===X0.PSEUDO){var o=new xs.default({source:{start:Zl(this.tokens[this.position-1])}}),s=this.current;for(n.append(o),this.current=o;this.position<this.tokens.length&&i;)this.currToken[L.FIELDS.TYPE]===B.openParenthesis&&i++,this.currToken[L.FIELDS.TYPE]===B.closeParenthesis&&i--,i?this.parse():(this.current.source.end=ef(this.currToken),this.current.parent.source.end=ef(this.currToken),this.position++);this.current=s}else{for(var a=this.currToken,u="(",l;this.position<this.tokens.length&&i;)this.currToken[L.FIELDS.TYPE]===B.openParenthesis&&i++,this.currToken[L.FIELDS.TYPE]===B.closeParenthesis&&i--,l=this.currToken,u+=this.parseParenthesisToken(this.currToken),this.position++;n?n.appendToPropertyAndEscape("value",u,u):this.newNode(new ws.default({value:u,source:cr(a[L.FIELDS.START_LINE],a[L.FIELDS.START_COL],l[L.FIELDS.END_LINE],l[L.FIELDS.END_COL]),sourceIndex:a[L.FIELDS.START_POS]}))}if(i)return this.expected("closing parenthesis",this.currToken[L.FIELDS.START_POS])},t.pseudo=function(){for(var n=this,i="",o=this.currToken;this.currToken&&this.currToken[L.FIELDS.TYPE]===B.colon;)i+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[L.FIELDS.TYPE]===B.word)this.splitWord(!1,function(s,a){i+=s,n.newNode(new j0.default({value:i,source:Ts(o,n.currToken),sourceIndex:o[L.FIELDS.START_POS]})),a>1&&n.nextToken&&n.nextToken[L.FIELDS.TYPE]===B.openParenthesis&&n.error("Misplaced parenthesis.",{index:n.nextToken[L.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[L.FIELDS.START_POS])},t.space=function(){var n=this.content();this.position===0||this.prevToken[L.FIELDS.TYPE]===B.comma||this.prevToken[L.FIELDS.TYPE]===B.openParenthesis||this.current.nodes.every(function(i){return i.type==="comment"})?(this.spaces=this.optionalSpace(n),this.position++):this.position===this.tokens.length-1||this.nextToken[L.FIELDS.TYPE]===B.comma||this.nextToken[L.FIELDS.TYPE]===B.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(n),this.position++):this.combinator()},t.string=function(){var n=this.currToken;this.newNode(new ws.default({value:this.content(),source:Rr(n),sourceIndex:n[L.FIELDS.START_POS]})),this.position++},t.universal=function(n){var i=this.nextToken;if(i&&this.content(i)==="|")return this.position++,this.namespace();var o=this.currToken;this.newNode(new V0.default({value:this.content(),source:Rr(o),sourceIndex:o[L.FIELDS.START_POS]}),n),this.position++},t.splitWord=function(n,i){for(var o=this,s=this.nextToken,a=this.content();s&&~[B.dollar,B.caret,B.equals,B.word].indexOf(s[L.FIELDS.TYPE]);){this.position++;var u=this.content();if(a+=u,u.lastIndexOf("\\")===u.length-1){var l=this.nextToken;l&&l[L.FIELDS.TYPE]===B.space&&(a+=this.requiredSpace(this.content(l)),this.position++)}s=this.nextToken}var f=Es(a,".").filter(function(g){var v=a[g-1]==="\\",w=/^\d+\.\d+%$/.test(a);return!v&&!w}),d=Es(a,"#").filter(function(g){return a[g-1]!=="\\"}),m=Es(a,"#{");m.length&&(d=d.filter(function(g){return!~m.indexOf(g)}));var h=(0,Y0.default)(J0([0].concat(f,d)));h.forEach(function(g,v){var w=h[v+1]||a.length,_=a.slice(g,w);if(v===0&&i)return i.call(o,_,h.length);var O,x=o.currToken,E=x[L.FIELDS.START_POS]+h[v],T=cr(x[1],x[2]+g,x[3],x[2]+(w-1));if(~f.indexOf(g)){var I={value:_.slice(1),source:T,sourceIndex:E};O=new q0.default(Cr(I,"value"))}else if(~d.indexOf(g)){var N={value:_.slice(1),source:T,sourceIndex:E};O=new z0.default(Cr(N,"value"))}else{var W={value:_,source:T,sourceIndex:E};Cr(W,"value"),O=new G0.default(W)}o.newNode(O,n),n=null}),this.position++},t.word=function(n){var i=this.nextToken;return i&&this.content(i)==="|"?(this.position++,this.namespace()):this.splitWord(n)},t.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},t.parse=function(n){switch(this.currToken[L.FIELDS.TYPE]){case B.space:this.space();break;case B.comment:this.comment();break;case B.openParenthesis:this.parentheses();break;case B.closeParenthesis:n&&this.missingParenthesis();break;case B.openSquare:this.attribute();break;case B.dollar:case B.caret:case B.equals:case B.word:this.word();break;case B.colon:this.pseudo();break;case B.comma:this.comma();break;case B.asterisk:this.universal();break;case B.ampersand:this.nesting();break;case B.slash:case B.combinator:this.combinator();break;case B.str:this.string();break;case B.closeSquare:this.missingSquareBracket();case B.semicolon:this.missingBackslash();default:this.unexpected()}},t.expected=function(n,i,o){if(Array.isArray(n)){var s=n.pop();n=n.join(", ")+" or "+s}var a=/^[aeiou]/.test(n[0])?"an":"a";return o?this.error("Expected "+a+" "+n+', found "'+o+'" instead.',{index:i}):this.error("Expected "+a+" "+n+".",{index:i})},t.requiredSpace=function(n){return this.options.lossy?" ":n},t.optionalSpace=function(n){return this.options.lossy?"":n},t.lossySpace=function(n,i){return this.options.lossy?i?" ":"":n},t.parseParenthesisToken=function(n){var i=this.content(n);return n[L.FIELDS.TYPE]===B.space?this.requiredSpace(i):i},t.newNode=function(n,i){return i&&(/^ +$/.test(i)&&(this.options.lossy||(this.spaces=(this.spaces||"")+i),i=!0),n.namespace=i,Cr(n,"namespace")),this.spaces&&(n.spaces.before=this.spaces,this.spaces=""),this.current.append(n)},t.content=function(n){return n===void 0&&(n=this.currToken),this.css.slice(n[L.FIELDS.START_POS],n[L.FIELDS.END_POS])},t.locateNextMeaningfulToken=function(n){n===void 0&&(n=this.position+1);for(var i=n;i<this.tokens.length;)if(K0[this.tokens[i][L.FIELDS.TYPE]]){i++;continue}else return i;return-1},Q0(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}();_n.default=Z0;rf.exports=_n.default});var sf=q((Tn,of)=>{"use strict";Tn.__esModule=!0;Tn.default=void 0;var eg=tg(nf());function tg(e){return e&&e.__esModule?e:{default:e}}var rg=function(){function e(r,n){this.func=r||function(){},this.funcRes=null,this.options=n}var t=e.prototype;return t._shouldUpdateSelector=function(n,i){i===void 0&&(i={});var o=Object.assign({},this.options,i);return o.updateSelector===!1?!1:typeof n!="string"},t._isLossy=function(n){n===void 0&&(n={});var i=Object.assign({},this.options,n);return i.lossless===!1},t._root=function(n,i){i===void 0&&(i={});var o=new eg.default(n,this._parseOptions(i));return o.root},t._parseOptions=function(n){return{lossy:this._isLossy(n)}},t._run=function(n,i){var o=this;return i===void 0&&(i={}),new Promise(function(s,a){try{var u=o._root(n,i);Promise.resolve(o.func(u)).then(function(l){var f=void 0;return o._shouldUpdateSelector(n,i)&&(f=u.toString(),n.selector=f),{transform:l,root:u,string:f}}).then(s,a)}catch(l){a(l);return}})},t._runSync=function(n,i){i===void 0&&(i={});var o=this._root(n,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 n!="string"&&(a=o.toString(),n.selector=a),{transform:s,root:o,string:a}},t.ast=function(n,i){return this._run(n,i).then(function(o){return o.root})},t.astSync=function(n,i){return this._runSync(n,i).root},t.transform=function(n,i){return this._run(n,i).then(function(o){return o.transform})},t.transformSync=function(n,i){return this._runSync(n,i).transform},t.process=function(n,i){return this._run(n,i).then(function(o){return o.string||o.root.toString()})},t.processSync=function(n,i){var o=this._runSync(n,i);return o.string||o.root.toString()},e}();Tn.default=rg;of.exports=Tn.default});var af=q(be=>{"use strict";be.__esModule=!0;be.universal=be.tag=be.string=be.selector=be.root=be.pseudo=be.nesting=be.id=be.comment=be.combinator=be.className=be.attribute=void 0;var ng=dt(cs()),ig=dt(Yo()),og=dt(ms()),sg=dt(Qo()),ag=dt(Jo()),ug=dt(bs()),lg=dt(os()),fg=dt(zo()),cg=dt(jo()),dg=dt(ns()),pg=dt(ts()),hg=dt(ps());function dt(e){return e&&e.__esModule?e:{default:e}}var mg=function(t){return new ng.default(t)};be.attribute=mg;var gg=function(t){return new ig.default(t)};be.className=gg;var bg=function(t){return new og.default(t)};be.combinator=bg;var vg=function(t){return new sg.default(t)};be.comment=vg;var yg=function(t){return new ag.default(t)};be.id=yg;var xg=function(t){return new ug.default(t)};be.nesting=xg;var wg=function(t){return new lg.default(t)};be.pseudo=wg;var Sg=function(t){return new fg.default(t)};be.root=Sg;var _g=function(t){return new cg.default(t)};be.selector=_g;var Tg=function(t){return new dg.default(t)};be.string=Tg;var Eg=function(t){return new pg.default(t)};be.tag=Eg;var kg=function(t){return new hg.default(t)};be.universal=kg});var cf=q(oe=>{"use strict";oe.__esModule=!0;oe.isNode=Ps;oe.isPseudoElement=ff;oe.isPseudoClass=Wg;oe.isContainer=Dg;oe.isNamespace=$g;oe.isUniversal=oe.isTag=oe.isString=oe.isSelector=oe.isRoot=oe.isPseudo=oe.isNesting=oe.isIdentifier=oe.isComment=oe.isCombinator=oe.isClassName=oe.isAttribute=void 0;var Pe=De(),Qe,Pg=(Qe={},Qe[Pe.ATTRIBUTE]=!0,Qe[Pe.CLASS]=!0,Qe[Pe.COMBINATOR]=!0,Qe[Pe.COMMENT]=!0,Qe[Pe.ID]=!0,Qe[Pe.NESTING]=!0,Qe[Pe.PSEUDO]=!0,Qe[Pe.ROOT]=!0,Qe[Pe.SELECTOR]=!0,Qe[Pe.STRING]=!0,Qe[Pe.TAG]=!0,Qe[Pe.UNIVERSAL]=!0,Qe);function Ps(e){return typeof e=="object"&&Pg[e.type]}function pt(e,t){return Ps(t)&&t.type===e}var uf=pt.bind(null,Pe.ATTRIBUTE);oe.isAttribute=uf;var Og=pt.bind(null,Pe.CLASS);oe.isClassName=Og;var Ig=pt.bind(null,Pe.COMBINATOR);oe.isCombinator=Ig;var Ag=pt.bind(null,Pe.COMMENT);oe.isComment=Ag;var Rg=pt.bind(null,Pe.ID);oe.isIdentifier=Rg;var Cg=pt.bind(null,Pe.NESTING);oe.isNesting=Cg;var Os=pt.bind(null,Pe.PSEUDO);oe.isPseudo=Os;var Lg=pt.bind(null,Pe.ROOT);oe.isRoot=Lg;var Mg=pt.bind(null,Pe.SELECTOR);oe.isSelector=Mg;var Ng=pt.bind(null,Pe.STRING);oe.isString=Ng;var lf=pt.bind(null,Pe.TAG);oe.isTag=lf;var Fg=pt.bind(null,Pe.UNIVERSAL);oe.isUniversal=Fg;function ff(e){return Os(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 Wg(e){return Os(e)&&!ff(e)}function Dg(e){return!!(Ps(e)&&e.walk)}function $g(e){return uf(e)||lf(e)}});var df=q(Et=>{"use strict";Et.__esModule=!0;var Is=De();Object.keys(Is).forEach(function(e){e==="default"||e==="__esModule"||e in Et&&Et[e]===Is[e]||(Et[e]=Is[e])});var As=af();Object.keys(As).forEach(function(e){e==="default"||e==="__esModule"||e in Et&&Et[e]===As[e]||(Et[e]=As[e])});var Rs=cf();Object.keys(Rs).forEach(function(e){e==="default"||e==="__esModule"||e in Et&&Et[e]===Rs[e]||(Et[e]=Rs[e])})});var mf=q((En,hf)=>{"use strict";En.__esModule=!0;En.default=void 0;var Bg=zg(sf()),Ug=qg(df());function pf(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return pf=function(){return e},e}function qg(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=pf();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}function zg(e){return e&&e.__esModule?e:{default:e}}var Cs=function(t){return new Bg.default(t)};Object.assign(Cs,Ug);delete Cs.__esModule;var Gg=Cs;En.default=Gg;hf.exports=En.default});var gf=q(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Object.defineProperty(Ls,"default",{enumerable:!0,get:()=>jg});function jg(e){return e.replace(/\\,/g,"\\2c ")}});var vf=q((xw,bf)=>{"use strict";bf.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 Ns=q(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});function Vg(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Vg(Ms,{parseColor:()=>Jg,formatColor:()=>Zg});var yf=Hg(vf());function Hg(e){return e&&e.__esModule?e:{default:e}}var Yg=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,Xg=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,Qt=/(?:\d+|\d*\.\d+)%?/,Ri=/(?:\s*,\s*|\s+)/,xf=/\s*[,/]\s*/,Kt=/var\(--(?:[^ )]*?)\)/,Qg=new RegExp(`^(rgb)a?\\(\\s*(${Qt.source}|${Kt.source})(?:${Ri.source}(${Qt.source}|${Kt.source}))?(?:${Ri.source}(${Qt.source}|${Kt.source}))?(?:${xf.source}(${Qt.source}|${Kt.source}))?\\s*\\)$`),Kg=new RegExp(`^(hsl)a?\\(\\s*((?:${Qt.source})(?:deg|rad|grad|turn)?|${Kt.source})(?:${Ri.source}(${Qt.source}|${Kt.source}))?(?:${Ri.source}(${Qt.source}|${Kt.source}))?(?:${xf.source}(${Qt.source}|${Kt.source}))?\\s*\\)$`);function Jg(e,{loose:t=!1}={}){var r,n;if(typeof e!="string")return null;if(e=e.trim(),e==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(e in yf.default)return{mode:"rgb",color:yf.default[e].map(u=>u.toString())};let i=e.replace(Xg,(u,l,f,d,m)=>["#",l,l,f,f,d,d,m?m+m:""].join("")).match(Yg);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(Qg))!==null&&o!==void 0?o:e.match(Kg);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:(r=s[5])===null||r===void 0||(n=r.toString)===null||n===void 0?void 0:n.call(r)}}function Zg({mode:e,color:t,alpha:r}){let n=r!==void 0;return`${e}(${t.join(" ")}${n?` / ${r}`:""})`}});var Ws=q(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});function eb(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}eb(Fs,{withAlphaValue:()=>tb,default:()=>rb});var Ci=Ns();function tb(e,t,r){if(typeof e=="function")return e({opacityValue:t});let n=(0,Ci.parseColor)(e,{loose:!0});return n===null?r:(0,Ci.formatColor)({...n,alpha:t})}function rb({color:e,property:t,variable:r}){let n=[].concat(t);if(typeof e=="function")return{[r]:"1",...Object.fromEntries(n.map(o=>[o,e({opacityVariable:r,opacityValue:`var(${r})`})]))};let i=(0,Ci.parseColor)(e);return i===null?Object.fromEntries(n.map(o=>[o,e])):i.alpha!==void 0?Object.fromEntries(n.map(o=>[o,e])):{[r]:"1",...Object.fromEntries(n.map(o=>[o,(0,Ci.formatColor)({...i,alpha:`var(${r})`})]))}}});var Ef=q(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});function nb(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}nb(Ds,{pattern:()=>ob,withoutCapturing:()=>Sf,any:()=>_f,optional:()=>sb,zeroOrMore:()=>ab,nestedBrackets:()=>Tf,escape:()=>dr});var wf=/[\\^$.*+?()[\]{}|]/g,ib=RegExp(wf.source);function kn(e){return e=Array.isArray(e)?e:[e],e=e.map(t=>t instanceof RegExp?t.source:t),e.join("")}function ob(e){return new RegExp(kn(e),"g")}function Sf(e){return new RegExp(`(?:${kn(e)})`,"g")}function _f(e){return`(?:${e.map(kn).join("|")})`}function sb(e){return`(?:${kn(e)})?`}function ab(e){return`(?:${kn(e)})*`}function Tf(e,t,r=1){return Sf([dr(e),/[^\s]*/,r===1?`[^${dr(e)}${dr(t)}s]*`:_f([`[^${dr(e)}${dr(t)}s]*`,Tf(e,t,r-1)]),/[^\s]*/,dr(t)])}function dr(e){return e&&ib.test(e)?e.replace(wf,"\\$&"):e||""}});var Pf=q($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});Object.defineProperty($s,"splitAtTopLevelOnly",{enumerable:!0,get:()=>fb});var ub=lb(Ef());function kf(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(kf=function(n){return n?r:t})(e)}function lb(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=kf(t);if(r&&r.has(e))return r.get(e);var n={},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(n,o,s):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function*fb(e,t){let r=new RegExp(`[(){}\\[\\]${ub.escape(t)}]`,"g"),n=0,i=0,o=!1,s=0,a=0,u=t.length;for(let l of e.matchAll(r)){let f=l[0]===t[s],d=s===u-1,m=f&&d;l[0]==="("&&n++,l[0]===")"&&n--,l[0]==="["&&n++,l[0]==="]"&&n--,l[0]==="{"&&n++,l[0]==="}"&&n--,f&&n===0&&(a===0&&(a=l.index),s++),m&&n===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 If=q(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});function cb(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}cb(Bs,{parseBoxShadowValue:()=>mb,formatBoxShadowValue:()=>gb});var db=Pf(),pb=new Set(["inset","inherit","initial","revert","unset"]),hb=/\ +(?![^(]*\))/g,Of=/^-?(\d+|\.\d+)(.*?)$/g;function mb(e){return Array.from((0,db.splitAtTopLevelOnly)(e,",")).map(r=>{let n=r.trim(),i={raw:n},o=n.split(hb),s=new Set;for(let a of o)Of.lastIndex=0,!s.has("KEYWORD")&&pb.has(a)?(i.keyword=a,s.add("KEYWORD")):Of.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 gb(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 Ff=q(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});function bb(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}bb(qs,{normalize:()=>Jt,url:()=>Cf,number:()=>xb,percentage:()=>Lf,length:()=>Mf,lineWidth:()=>_b,shadow:()=>Tb,color:()=>Eb,image:()=>kb,gradient:()=>Nf,position:()=>Ib,familyName:()=>Ab,genericName:()=>Cb,absoluteSize:()=>Mb,relativeSize:()=>Fb});var vb=Ns(),yb=If(),Us=["min","max","clamp","calc"],Rf=/,(?![^(]*\))/g,Li=/_(?![^(]*\))/g;function Jt(e,t=!0){return e.includes("url(")?e.split(/(url\(.*?\))/g).filter(Boolean).map(r=>/^url\(.*?\)$/.test(r)?r:Jt(r,!1)).join(""):(e=e.replace(/([^\\])_+/g,(r,n)=>n+" ".repeat(r.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),t&&(e=e.trim()),e=e.replace(/(calc|min|max|clamp)\(.+\)/g,r=>r.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ")),e)}function Cf(e){return e.startsWith("url(")}function xb(e){return!isNaN(Number(e))||Us.some(t=>new RegExp(`^${t}\\(.+?`).test(e))}function Lf(e){return e.split(Li).every(t=>/%$/g.test(t)||Us.some(r=>new RegExp(`^${r}\\(.+?%`).test(t)))}var wb=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],Af=`(?:${wb.join("|")})`;function Mf(e){return e.split(Li).every(t=>t==="0"||new RegExp(`${Af}$`).test(t)||Us.some(r=>new RegExp(`^${r}\\(.+?${Af}`).test(t)))}var Sb=new Set(["thin","medium","thick"]);function _b(e){return Sb.has(e)}function Tb(e){let t=(0,yb.parseBoxShadowValue)(Jt(e));for(let r of t)if(!r.valid)return!1;return!0}function Eb(e){let t=0;return e.split(Li).every(n=>(n=Jt(n),n.startsWith("var(")?!0:(0,vb.parseColor)(n,{loose:!0})!==null?(t++,!0):!1))?t>0:!1}function kb(e){let t=0;return e.split(Rf).every(n=>(n=Jt(n),n.startsWith("var(")?!0:Cf(n)||Nf(n)||["element(","image(","cross-fade(","image-set("].some(i=>n.startsWith(i))?(t++,!0):!1))?t>0:!1}var Pb=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function Nf(e){e=Jt(e);for(let t of Pb)if(e.startsWith(`${t}(`))return!0;return!1}var Ob=new Set(["center","top","right","bottom","left"]);function Ib(e){let t=0;return e.split(Li).every(n=>(n=Jt(n),n.startsWith("var(")?!0:Ob.has(n)||Mf(n)||Lf(n)?(t++,!0):!1))?t>0:!1}function Ab(e){let t=0;return e.split(Rf).every(n=>(n=Jt(n),n.startsWith("var(")?!0:n.includes(" ")&&!/(['"])([^"']+)\1/g.test(n)||/^\d/g.test(n)?!1:(t++,!0)))?t>0:!1}var Rb=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function Cb(e){return Rb.has(e)}var Lb=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function Mb(e){return Lb.has(e)}var Nb=new Set(["larger","smaller"]);function Fb(e){return Nb.has(e)}});var Gf=q(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});function Wb(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Wb(js,{updateAllClasses:()=>Bb,asValue:()=>On,parseColorFormat:()=>zs,asColor:()=>Uf,asLookupValue:()=>qf,coerceValue:()=>Gb});var Db=Gs(mf()),$b=Gs(gf()),Wf=Ws(),Ke=Ff(),Df=Gs(Io());function Gs(e){return e&&e.__esModule?e:{default:e}}function Bb(e,t){return(0,Db.default)(i=>{i.walkClasses(o=>{let s=t(o.value);o.value=s,o.raws&&o.raws.value&&(o.raws.value=(0,$b.default)(o.raws.value))})}).processSync(e)}function Bf(e,t){if(!Pn(e))return;let r=e.slice(1,-1);if(t(r))return(0,Ke.normalize)(r)}function Ub(e,t={},r){let n=t[e];if(n!==void 0)return(0,Df.default)(n);if(Pn(e)){let i=Bf(e,r);return i===void 0?void 0:(0,Df.default)(i)}}function On(e,t={},{validate:r=()=>!0}={}){var n;let i=(n=t.values)===null||n===void 0?void 0:n[e];return i!==void 0?i:t.supportsNegativeValues&&e.startsWith("-")?Ub(e.slice(1),t.values,r):Bf(e,r)}function Pn(e){return e.startsWith("[")&&e.endsWith("]")}function qb(e){let t=e.lastIndexOf("/");return t===-1||t===e.length-1?[e]:[e.slice(0,t),e.slice(t+1)]}function zs(e){if(typeof e=="string"&&e.includes("<alpha-value>")){let t=e;return({opacityValue:r=1})=>t.replace("<alpha-value>",r)}return e}function Uf(e,t={},{tailwindConfig:r={}}={}){var n;if(((n=t.values)===null||n===void 0?void 0:n[e])!==void 0){var i;return zs((i=t.values)===null||i===void 0?void 0:i[e])}let[o,s]=qb(e);if(s!==void 0){var a,u,l,f;let d=(f=(a=t.values)===null||a===void 0?void 0:a[o])!==null&&f!==void 0?f:Pn(o)?o.slice(1,-1):void 0;return d===void 0?void 0:(d=zs(d),Pn(s)?(0,Wf.withAlphaValue)(d,s.slice(1,-1)):((u=r.theme)===null||u===void 0||(l=u.opacity)===null||l===void 0?void 0:l[s])===void 0?void 0:(0,Wf.withAlphaValue)(d,r.theme.opacity[s]))}return On(e,t,{validate:Ke.color})}function qf(e,t={}){var r;return(r=t.values)===null||r===void 0?void 0:r[e]}function ht(e){return(t,r)=>On(t,r,{validate:e})}var zf={any:On,color:Uf,url:ht(Ke.url),image:ht(Ke.image),length:ht(Ke.length),percentage:ht(Ke.percentage),position:ht(Ke.position),lookup:qf,"generic-name":ht(Ke.genericName),"family-name":ht(Ke.familyName),number:ht(Ke.number),"line-width":ht(Ke.lineWidth),"absolute-size":ht(Ke.absoluteSize),"relative-size":ht(Ke.relativeSize),shadow:ht(Ke.shadow)},$f=Object.keys(zf);function zb(e,t){let r=e.indexOf(t);return r===-1?[void 0,e]:[e.slice(0,r),e.slice(r+1)]}function Gb(e,t,r,n){if(Pn(t)){let i=t.slice(1,-1),[o,s]=zb(i,":");if(!/^[\w-_]+$/g.test(o))s=i;else if(o!==void 0&&!$f.includes(o))return[];if(s.length>0&&$f.includes(o))return[On(`[${s}]`,r),o]}for(let i of[].concat(e)){let o=zf[i](t,r,{tailwindConfig:n});if(o!==void 0)return[o,i]}return[]}});var jf=q(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Object.defineProperty(Vs,"default",{enumerable:!0,get:()=>jb});function jb(e){return typeof e=="function"?e({}):e}});var Qf=q(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Object.defineProperty(Ys,"default",{enumerable:!0,get:()=>cv});var Vb=pr(Io()),Hb=pr(Ju()),Yb=pr(Zu()),Xb=pr(Co()),Qb=pr(tl()),Yf=rl(),Vf=nl(),Kb=ol(),Jb=pr(sl()),Zb=al(),ev=Gf(),tv=Ws(),rv=pr(jf());function pr(e){return e&&e.__esModule?e:{default:e}}function Lr(e){return typeof e=="function"}function In(e){return typeof e=="object"&&e!==null}function An(e,...t){let r=t.pop();for(let n of t)for(let i in n){let o=r(e[i],n[i]);o===void 0?In(e[i])&&In(n[i])?e[i]=An(e[i],n[i],r):e[i]=n[i]:e[i]=o}return e}var Hs={colors:Qb.default,negative(e){return Object.keys(e).filter(t=>e[t]!=="0").reduce((t,r)=>{let n=(0,Vb.default)(e[r]);return n!==void 0&&(t[`-${r}`]=n),t},{})},breakpoints(e){return Object.keys(e).filter(t=>typeof e[t]=="string").reduce((t,r)=>({...t,[`screen-${r}`]:e[r]}),{})}};function nv(e,...t){return Lr(e)?e(...t):e}function iv(e){return e.reduce((t,{extend:r})=>An(t,r,(n,i)=>n===void 0?[i]:Array.isArray(n)?[i,...n]:[i,n]),{})}function ov(e){return{...e.reduce((t,r)=>(0,Yf.defaults)(t,r),{}),extend:iv(e)}}function Hf(e,t){if(Array.isArray(e)&&In(e[0]))return e.concat(t);if(Array.isArray(t)&&In(t[0])&&In(e))return[e,...t];if(Array.isArray(t))return t}function sv({extend:e,...t}){return An(t,e,(r,n)=>!Lr(r)&&!n.some(Lr)?An({},r,...n,Hf):(i,o)=>An({},...[r,...n].map(s=>nv(s,i,o)),Hf))}function*av(e){let t=(0,Vf.toPath)(e);if(t.length===0||(yield t,Array.isArray(e)))return;let r=/^(.*?)\s*\/\s*([^/]+)$/,n=e.match(r);if(n!==null){let[,i,o]=n,s=(0,Vf.toPath)(i);s.alpha=o,yield s}}function uv(e){let t=(r,n)=>{for(let i of av(r)){let o=0,s=e;for(;s!=null&&o<i.length;)s=s[i[o++]],s=Lr(s)&&(i.alpha===void 0||o<=i.length-1)?s(t,Hs):s;if(s!==void 0){if(i.alpha!==void 0){let a=(0,ev.parseColorFormat)(s);return(0,tv.withAlphaValue)(a,i.alpha,(0,rv.default)(a))}return(0,Jb.default)(s)?(0,Zb.cloneDeep)(s):s}}return n};return Object.assign(t,{theme:t,...Hs}),Object.keys(e).reduce((r,n)=>(r[n]=Lr(e[n])?e[n](t,Hs):e[n],r),{})}function Xf(e){let t=[];return e.forEach(r=>{t=[...t,r];var n;let i=(n=r==null?void 0:r.plugins)!==null&&n!==void 0?n:[];i.length!==0&&i.forEach(o=>{o.__isOptionsFunction&&(o=o());var s;t=[...t,...Xf([(s=o==null?void 0:o.config)!==null&&s!==void 0?s:{}])]})}),t}function lv(e){return[...e].reduceRight((r,n)=>Lr(n)?n({corePlugins:r}):(0,Yb.default)(n,r),Hb.default)}function fv(e){return[...e].reduceRight((r,n)=>[...r,...n],[])}function cv(e){let t=[...Xf(e),{prefix:"",important:!1,separator:":",variantOrder:Xb.default.variantOrder}];var r,n;return(0,Kb.normalizeConfig)((0,Yf.defaults)({theme:uv(sv(ov(t.map(i=>(r=i==null?void 0:i.theme)!==null&&r!==void 0?r:{})))),corePlugins:lv(t.map(i=>i.corePlugins)),plugins:fv(e.map(i=>(n=i==null?void 0:i.plugins)!==null&&n!==void 0?n:[]))},...t))}});var Kf={};zn(Kf,{default:()=>dv});var dv,Jf=or(()=>{dv={yellow:e=>e}});var rc=q(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});function pv(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}pv(Xs,{flagEnabled:()=>gv,issueFlagNotices:()=>bv,default:()=>vv});var hv=tc((Jf(),Gn(Kf))),mv=tc((vi(),Gn(bi)));function tc(e){return e&&e.__esModule?e:{default:e}}var Zf={optimizeUniversalDefaults:!1},Rn={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function gv(e,t){if(Rn.future.includes(t)){var r,n,i;return e.future==="all"||((i=(n=e==null||(r=e.future)===null||r===void 0?void 0:r[t])!==null&&n!==void 0?n:Zf[t])!==null&&i!==void 0?i:!1)}if(Rn.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:Zf[t])!==null&&a!==void 0?a:!1)}return!1}function ec(e){if(e.experimental==="all")return Rn.experimental;var t;return Object.keys((t=e==null?void 0:e.experimental)!==null&&t!==void 0?t:{}).filter(r=>Rn.experimental.includes(r)&&e.experimental[r])}function bv(e){if(process.env.JEST_WORKER_ID===void 0&&ec(e).length>0){let t=ec(e).map(r=>hv.default.yellow(r)).join(", ");mv.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 vv=Rn});var ic=q(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Object.defineProperty(Qs,"default",{enumerable:!0,get:()=>nc});var yv=wv(Co()),xv=rc();function wv(e){return e&&e.__esModule?e:{default:e}}function nc(e){var t;let r=((t=e==null?void 0:e.presets)!==null&&t!==void 0?t:[yv.default]).slice().reverse().flatMap(o=>nc(typeof o=="function"?o():o)),n={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},i=Object.keys(n).filter(o=>(0,xv.flagEnabled)(e,o)).map(o=>n[o]);return[e,...i,...r]}});var sc=q(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Object.defineProperty(Ks,"default",{enumerable:!0,get:()=>Tv});var Sv=oc(Qf()),_v=oc(ic());function oc(e){return e&&e.__esModule?e:{default:e}}function Tv(...e){let[,...t]=(0,_v.default)(e[0]);return(0,Sv.default)([...e,...t])}});var uc=q((Lw,ac)=>{var Js=sc();ac.exports=(Js.__esModule?Js:{default:Js}).default});import nd from"linebreak";var Ur=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Vc=Ur((e,t)=>{t.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),Hc=Ur((e,t)=>{t.exports=["deg","grad","rad","turn"]}),Yc=Ur((e,t)=>{t.exports=["dpi","dpcm","dppx"]}),Xc=Ur((e,t)=>{t.exports=["Hz","kHz"]}),Qc=Ur((e,t)=>{t.exports=["s","ms"]}),Kc=Vc(),_a=Hc(),Ta=Yc(),Ea=Xc(),ka=Qc();function $i(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(Jc(e)>1)throw new Error("Only one dot is allowed");if(/%$/.test(e)){this.type="percentage",this.value=Di(e),this.unit="%";return}var t=ed(e);if(!t){this.type="number",this.value=Di(e);return}this.type=rd(t),this.value=Di(e.substr(0,e.length-t.length)),this.unit=t}$i.prototype.valueOf=function(){return this.value};$i.prototype.toString=function(){return this.value+(this.unit||"")};function _t(e){return new $i(e)}function Jc(e){var t=e.match(/\./g);return t?t.length:0}function Di(e){var t=parseFloat(e);if(isNaN(t))throw new Error("Invalid number: "+e);return t}var Zc=[].concat(_a,Ea,Kc,Ta,ka);function ed(e){var t=e.match(/\D+$/),r=t&&t[0];if(r&&Zc.indexOf(r)===-1)throw new Error("Invalid unit: "+r);return r}var td=Object.assign(jn(_a,"angle"),jn(Ea,"frequency"),jn(Ta,"resolution"),jn(ka,"time"));function jn(e,t){return Object.fromEntries(e.map(r=>[r,t]))}function rd(e){return td[e]||"length"}function wr(e){let t=typeof e;return!(t==="number"||t==="bigint"||t==="string"||t==="boolean")}function Pa(e){return/^class\s/.test(e.toString())}function qi(e){return e&&e.$$typeof===Symbol.for("react.forward_ref")}function Oa(e){return typeof e=="function"||qi(e)}function Ia(e){return"dangerouslySetInnerHTML"in e}function Aa(e){let t=typeof e>"u"?[]:[].concat(e).flat(1/0),r=[];for(let n=0;n<t.length;n++){let i=t[n];typeof i>"u"||typeof i=="boolean"||i===null||(typeof i=="number"&&(i=String(i)),typeof i=="string"&&r.length&&typeof r[r.length-1]=="string"?r[r.length-1]+=i:r.push(i))}return r}function V(e,t,r,n,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 _t(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*n._viewportWidth/100);case"vh":return~~(o.value*n._viewportHeight/100);default:return o.value}else{if(o.type==="angle")return sr(e);if(o.type==="percentage"&&i)return o.value/100*r}}catch{}}function sr(e){let t=new _t(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 qr(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 Ve(e,t,r,n){let i=t[e];if(typeof i>"u"){if(n&&typeof e<"u")throw new Error(`Invalid value for CSS property "${n}". Allowed values: ${Object.keys(t).map(o=>`"${o}"`).join(" | ")}. Received: "${e}".`);i=r}return i}var Bi,Ui,Ra=[32,160,4961,65792,65793,4153,4241,10].map(e=>String.fromCodePoint(e)),xr=new Map,id=500;function je(e,t,r){let n=`${t}:${r||""}:${e}`;if(xr.has(n))return xr.get(n);if(!Bi||!Ui){if(!(typeof Intl<"u"&&"Segmenter"in Intl))throw new Error("Intl.Segmenter does not exist, please use import a polyfill.");Bi=new Intl.Segmenter(r,{granularity:"word"}),Ui=new Intl.Segmenter(r,{granularity:"grapheme"})}let i;if(t==="grapheme")i=[...Ui.segment(e)].map(o=>o.segment);else{let o=[...Bi.segment(e)].map(u=>u.segment),s=[],a=0;for(;a<o.length;){let u=o[a];if(u=="\xA0"){let l=a===0?"":s.pop(),f=a===o.length-1?"":o[a+1];s.push(l+"\xA0"+f),a+=2}else s.push(u),a++}i=s}if(xr.size>=id){let o=xr.keys().next().value;xr.delete(o)}return xr.set(n,i),i}function R(e,t,r){let n="";for(let[i,o]of Object.entries(t))typeof o<"u"&&(n+=` ${i}="${o}"`);return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}/>`}function Ca(e=20){let t=new Map;function r(o){let s=t.get(o);if(s!==void 0)return t.delete(o),t.set(o,s),s}function n(o,s){if(t.has(o))t.delete(o);else if(t.size>=e){let a=t.keys().next().value;t.delete(a)}t.set(o,s)}function i(){t.clear()}return{set:n,get:r,clear:i}}function Sr(e){return e?e.split(/[, ]/).filter(Boolean).map(Number):null}function Vn(e){return typeof e=="string"}function La(e){return typeof e=="number"}function Ma(e){return typeof e>"u"}function Ft(e,t){if(typeof e=="number")return e;if(e.endsWith("%")){let r=parseFloat(e.slice(0,-1));if(isNaN(r)){console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a percentage value (e.g., "50%").`);return}return`${r}%`}console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a number or a percentage value (e.g., "50%").`)}function jt(e,t){if(typeof e=="number")return e;if(e==="auto")return"auto";if(e.endsWith("%")){let r=parseFloat(e.slice(0,-1));if(isNaN(r)){console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a percentage value (e.g., "50%").`);return}return`${r}%`}console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a number, "auto", or a percentage value (e.g., "50%").`)}function Na(e,t){if(t==="break-all")return{words:je(e,"grapheme"),requiredBreaks:[]};if(t==="keep-all")return{words:je(e,"word"),requiredBreaks:[]};let r=new nd(e),n=0,i=r.nextBreak(),o=[],s=[!1];for(;i;){let a=e.slice(n,i.position);o.push(a),i.required?s.push(!0):s.push(!1),n=i.position,i=r.nextBreak()}return{words:o,requiredBreaks:s}}var Fa=e=>e.replaceAll(/([A-Z])/g,(t,r)=>`-${r.toLowerCase()}`);function Wt(e,t=","){let r=[],n=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])&&(r.push(e.slice(n,o).trim()),n=o+1);return r.push(e.slice(n).trim()),r}function pd(e){return Promise.resolve().then(()=>(Ji(),Ki)).then(t=>t.init(e))}function Vt(){return Promise.resolve().then(()=>(Ji(),Ki)).then(e=>e.getYoga())}var Ya=Symbol.for("react.fragment");var Qn=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;var hd=new Set([301,302,303,307,308]);function Zi(e){let t=e.split(".").map(o=>Number.parseInt(o,10));if(t.length!==4||t.some(o=>!Number.isInteger(o)||o<0||o>255))return!0;let[r,n,i]=t;return r===0||r===10||r===100&&n>=64&&n<=127||r===127||r===169&&n===254||r===172&&n>=16&&n<=31||r===192&&n===0&&i===0||r===192&&n===168||r===198&&(n===18||n===19)||r>=224}function md(e){let t=e,r=t.indexOf("%");r!==-1&&(t=t.slice(0,r));let n=t.split("::");if(n.length>2)return null;let i=s=>{if(s==="")return[];let a=[],u=s.split(":");for(let l=0;l<u.length;l++){let f=u[l];if(f.includes(".")){if(l!==u.length-1||!Qn.test(f))return null;let[d,m,h,g]=f.split(".").map(v=>Number.parseInt(v,10));if([d,m,h,g].some(v=>!Number.isInteger(v)||v<0||v>255))return null;a.push(d<<8|m,h<<8|g);continue}if(!/^[0-9a-f]{1,4}$/.test(f))return null;a.push(Number.parseInt(f,16))}return a},o=i(n[0]);if(o===null)return null;if(n.length===2){let s=i(n[1]);if(s===null)return null;let a=8-o.length-s.length;return a<0?null:[...o,...new Array(a).fill(0),...s]}return o.length===8?o:null}function gd(e){let t=a=>e.slice(0,a).every(u=>u===0);if(!(t(6)||t(5)&&e[5]===65535||t(4)&&e[4]===65535&&e[5]===0||e[0]===100&&e[1]===65435&&e[2]===0&&e[3]===0&&e[4]===0&&e[5]===0||e[0]===100&&e[1]===65435&&e[2]===1))return null;let n=e[6]>>8&255,i=e[6]&255,o=e[7]>>8&255,s=e[7]&255;return`${n}.${i}.${o}.${s}`}function Qa(e){let t=md(e);if(t===null)return!0;let r=gd(t);return r?Zi(r):!!(t.every(n=>n===0)||t.slice(0,7).every(n=>n===0)&&t[7]===1||(t[0]&65024)===64512||(t[0]&65472)===65152||(t[0]&65472)===65216||(t[0]&65280)===65280||t[0]===8193&&t[1]===3512)}function bd(e){let t=e.toLowerCase().replace(/^\[|\]$/g,"");return Qn.test(t)?Zi(t):t.includes(":")?Qa(t):!0}function Ka(e){let t;try{t=new URL(e)}catch{return null}if(t.protocol!=="http:"&&t.protocol!=="https:")return null;let r=t.hostname.toLowerCase().replace(/\.+$/,"");return r.startsWith("[")&&r.endsWith("]")&&(r=r.slice(1,-1)),r?{url:t,host:r}:null}function vd(e){let t=Ka(e);if(!t)return!0;let{host:r}=t;return r==="localhost"||r.endsWith(".localhost")||r==="local"||r.endsWith(".local")||r==="internal"||r.endsWith(".internal")?!0:Qn.test(r)?Zi(r):r.includes(":")?Qa(r):!1}function Xn(e){return new Error(`Image source resolves to a blocked address (SSRF protection): ${e}`)}function yd(e){if(vd(e))throw Xn(e)}var kr;async function xd(){if(kr!==void 0)return kr;if(typeof window<"u")return kr=null,null;try{let t=await new Function("s","return import(s)")("node:dns/promises");return kr=(r,n)=>t.lookup(r,n),kr}catch{return kr=null,null}}async function wd(e,t){yd(e);let r=Ka(e);if(!r)throw Xn(e);let{host:n}=r;if(Qn.test(n)||n.includes(":"))return;let i=t&&"lookup"in t?t.lookup:await xd();if(!i)return;let o;try{o=await i(n,{all:!0})}catch{throw new Error(`Can't resolve image host: ${e}`)}if(o.length===0)throw new Error(`Can't resolve image host: ${e}`);for(let{address:s}of o)if(bd(s))throw Xn(e)}async function Xa(e){try{e.body&&typeof e.body.cancel=="function"?await e.body.cancel():typeof e.arrayBuffer=="function"&&await e.arrayBuffer()}catch{}}async function Ja(e,t){let r=(t==null?void 0:t.fetch)??globalThis.fetch,n=e;for(let i=0;i<=10;i++){await wd(n,t);let o=await r(n,{redirect:"manual"});if(o.type==="opaqueredirect")throw await Xa(o),Xn(n);let s=o.headers.get("location");if(hd.has(o.status)&&s){await Xa(o),n=new URL(s,n).href;continue}return o}throw new Error(`Image source redirected too many times (SSRF protection): ${e}`)}var Sd="image/avif",Kn="image/webp",Jn="image/apng",Zn="image/png",ei="image/jpeg",ti="image/gif",eo="image/svg+xml";function tu(e){let t=new DataView(e),r=4,n=t.byteLength;for(;r<n;){let i=t.getUint16(r,!1);if(i>n)throw new TypeError("Invalid JPEG");let o=t.getUint8(i+1+r);if(o===192||o===193||o===194)return[t.getUint16(i+7+r,!1),t.getUint16(i+5+r,!1)];r+=i+2}throw new TypeError("Invalid JPEG")}function ru(e){let t=new DataView(e),r=new Uint8Array(e);if(t.byteLength<20||t.getUint32(0)!==1380533830||t.getUint32(8)!==1464156752)throw new TypeError("Invalid WebP");let n=t.getUint32(4,!0)+8;if(n<20||n>t.byteLength)throw new TypeError("Invalid WebP");let i=12;for(;i+8<=n;){let o=t.getUint32(i),s=t.getUint32(i+4,!0),a=i+8,u=a+s;if(u>n)throw new TypeError("Invalid WebP");if(o===1448097824){if(s<10||r[a+3]!==157||r[a+4]!==1||r[a+5]!==42)throw new TypeError("Invalid WebP");let l=t.getUint16(a+6,!0)&16383,f=t.getUint16(a+8,!0)&16383;if(!l||!f)throw new TypeError("Invalid WebP");return[l,f]}if(o===1448097868){if(s<5||r[a]!==47)throw new TypeError("Invalid WebP");let l=t.getUint32(a+1,!0);return[(l&16383)+1,(l>>>14&16383)+1]}if(o===1448097880){if(s<10)throw new TypeError("Invalid WebP");return[r[a+4]+(r[a+5]<<8)+(r[a+6]<<16)+1,r[a+7]+(r[a+8]<<8)+(r[a+9]<<16)+1]}i=u+s%2}throw new TypeError("Invalid WebP")}function nu(e){let t=new Uint8Array(e.slice(6,10));return[t[0]|t[1]<<8,t[2]|t[3]<<8]}function iu(e){let t=new DataView(e);return[t.getUint16(18,!1),t.getUint16(22,!1)]}var Ot=Ca(500),Gr=new Map,_d=[Zn,Jn,ei,ti,eo,Kn],Td=/<svg[^>]*>/i,Ed=/viewBox=['"]([^'"]+)['"]/,kd=/width=['"](\d*\.?\d+)['"]/,Pd=/height=['"](\d*\.?\d+)['"]/;function Od(e){let t=new Uint8Array(e),r=32768,n="";for(let i=0;i<t.length;i+=r){let o=t.subarray(i,Math.min(i+r,t.length));n+=String.fromCharCode(...o)}return btoa(n)}function Id(e){let t=atob(e),r=t.length,n=new Uint8Array(r);for(let i=0;i<r;i++)n[i]=t.charCodeAt(i);return n.buffer}function Za(e,t){let r=t.match(Td);if(!r)throw new Error(`Failed to parse SVG from ${e}`);let n=r[0],i=Ed.exec(n),o=kd.exec(n),s=Pd.exec(n),a=i?Sr(i[1]):null;if(!a&&(!o||!s))throw new Error(`Failed to parse SVG from ${e}: missing "viewBox"`);let u=a?[a[2],a[3]]:[+o[1],+s[1]],l=u[0]/u[1];return o&&s?[+o[1],+s[1]]:o?[+o[1],+o[1]/l]:s?[+s[1]*l,+s[1]]:[u[0],u[1]]}function eu(e){let t,r=Ad(new Uint8Array(e));switch(r){case Zn:case Jn:t=iu(e);break;case ti:t=nu(e);break;case ei:t=tu(e);break;case Kn:t=ru(e);break}if(!_d.includes(r))throw new Error(`Unsupported image type: ${r||"unknown"}`);return[`data:${r};base64,${Od(e)}`,t]}async function Pr(e){if(!e)throw new Error("Image source is not provided.");if(typeof e=="object"){let[o,s]=eu(e);return[o,...s]}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 o;try{o=/data:(?<imageType>[a-z/+]+)(;[^;=]+=[^;=]+)*?(;(?<encodingType>[^;,]+))?,(?<dataString>.*)/g.exec(e).groups}catch{return console.warn("Image data URI resolved without size:"+e),[e]}let{imageType:s,encodingType:a,dataString:u}=o;if(s===eo){let l=a==="base64"?atob(u):decodeURIComponent(u.replace(/ /g,"%20")),f=a==="base64"?e:`data:image/svg+xml;base64,${btoa(l)}`,d=Za(e,l);return Ot.set(e,[f,...d]),[f,...d]}else if(a==="base64"){let l,f=Id(u);switch(s){case Zn:case Jn:l=iu(f);break;case ti:l=nu(f);break;case ei:l=tu(f);break;case Kn:l=ru(f);break}return Ot.set(e,[e,...l]),[e,...l]}else return console.warn("Image data URI resolved without size:"+e),Ot.set(e,[e]),[e]}if(!globalThis.fetch)throw new Error("`fetch` is required to be polyfilled to load images.");if(Gr.has(e))return Gr.get(e);let t=Ot.get(e);if(t)return t;let r=e,i=(typeof window>"u"?()=>Ja(r):()=>fetch(r))().then(o=>{let s=o.headers.get("content-type");return s==="image/svg+xml"||s==="application/svg+xml"?o.text():o.arrayBuffer()}).then(o=>{if(typeof o=="string")try{let u=`data:image/svg+xml;base64,${btoa(o)}`,l=Za(r,o);return[u,...l]}catch(u){throw new Error(`Failed to parse SVG image: ${u.message}`)}let[s,a]=eu(o);return[s,...a]}).then(o=>(Ot.set(r,o),o)).catch(o=>{if(o instanceof Error&&o.message.includes("SSRF protection"))throw o;return console.error(`Can't load image ${r}: `+o.message),Ot.set(r,[]),[]});return Gr.set(r,i),i}function Ad(e){return[255,216,255].every((t,r)=>e[r]===t)?ei:[137,80,78,71,13,10,26,10].every((t,r)=>e[r]===t)?Rd(e)?Jn:Zn:[71,73,70,56].every((t,r)=>e[r]===t)?ti:[82,73,70,70,0,0,0,0,87,69,66,80].every((t,r)=>!t||e[r]===t)?Kn:[60,63,120,109,108].every((t,r)=>e[r]===t)?eo:[0,0,0,0,102,116,121,112,97,118,105,102].every((t,r)=>!t||e[r]===t)?Sd:null}function Rd(e){let t=new DataView(e.buffer),r,n,i=8,o=!1;for(;!o&&r!=="IEND"&&i<e.length;){n=t.getUint32(i);let s=e.subarray(i+4,i+8);r=String.fromCharCode(...s),o=r==="acTL",i+=12+n}return o}var to={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"},Cd=/[\r\n%#()<>?[\\\]^`{|}"']/g;function ri(e,t){if(!e)return"";if(Array.isArray(e))return e.map(l=>ri(l,t)).join("");if(typeof e!="object")return String(e);let r=e.type;if(r==="text")throw new Error("<text> nodes are not currently supported, please convert them to <path>");let{children:n,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"||l==="xlinkHref")&&r==="image"?` ${to[l]||l}="${Ot.get(f)[0]}"`:` ${to[l]||l}="${f}"`)).join("")}`,u=i?` style="${Object.entries(i).map(([l,f])=>`${Fa(l)}:${f}`).join(";")}"`:"";return r===Ya?ri(n,s):`<${r}${a}${u}>${ri(n,s)}</${r}>`}async function ou(e){let t=new Set,r=n=>{if(n&&wr(n)){if(Array.isArray(n)){n.forEach(i=>r(i));return}else if(typeof n=="object")if(n.type==="image"){let i=n.props.href||n.props.xlinkHref;i&&(t.has(i)||t.add(i))}else n.type==="img"&&(t.has(n.props.src)||t.add(n.props.src));Array.isArray(n.props.children)?n.props.children.map(i=>r(i)):r(n.props.children)}};return r(e),Promise.all(Array.from(t).map(n=>Pr(n)))}async function su(e,t){let{viewBox:r,viewbox:n,width:i,height:o,className:s,style:a,children:u,...l}=e.props||{};r||=n,l.xmlns="http://www.w3.org/2000/svg";let f=(a==null?void 0:a.color)||t,d=Sr(r),m=d?d[3]/d[2]:null;return i=i||m&&o?o/m:null,o=o||m&&i?i*m:null,l.width=i,l.height=o,r&&(l.viewBox=r),`data:image/svg+xml;utf8,${`<svg ${Object.entries(l).map(([h,g])=>(typeof g=="string"&&g.toLowerCase()==="currentcolor"&&(g=f),` ${to[h]||h}="${g}"`)).join("")}>${ri(u,f)}</svg>`.replace(Cd,encodeURIComponent)}`}var ft="flex",au={p:{display:ft,marginTop:"1em",marginBottom:"1em"},div:{display:ft},blockquote:{display:ft,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:ft,textAlign:"center"},hr:{display:ft,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:ft,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:ft,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:ft,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:ft,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:ft,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:ft,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:ft,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}};var Ld=new Set(["color","font","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","textAlign","textIndent","textTransform","textShadowOffset","textShadowColor","textShadowRadius","WebkitTextStrokeWidth","WebkitTextStrokeColor","textDecorationLine","textDecorationStyle","textDecorationColor","textDecorationSkipInk","whiteSpace","transform","wordBreak","tabSize","opacity","filter","_viewportWidth","_viewportHeight","_inheritedClipPathId","_inheritedMaskId","_inheritedBackgroundClipTextPath","_inheritedBackgroundClipTextHasBackground"]);function ro(e){let t={};for(let r in e)(Ld.has(r)||r.startsWith("--"))&&(t[r]=e[r]);return t}import{getPropertyName as qd,getStylesForProperty as Ht}from"css-to-react-native";import{parseElementStyle as zd}from"css-background-parser";import{parse as Gd}from"css-box-shadow";import jd from"parse-css-color";import Md from"postcss-value-parser";function Nd(e,t){try{let r=new _t(e);switch(r.unit){case"px":return{absolute:r.value};case"em":return{absolute:r.value*t};case"rem":return{absolute:r.value*16};case"%":return{relative:r.value};default:return{}}}catch{return{}}}function no(e,t,r){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 n=Nd(e,t);return n.absolute?{[r?"xAbsolute":"yAbsolute"]:n.absolute}:n.relative?{[r?"xRelative":"yRelative"]:n.relative}:{}}}}function io(e,t){if(typeof e=="number")return{xAbsolute:e};let r;try{r=Md(e).nodes.filter(n=>n.type==="word").map(n=>n.value)}catch{return{}}return r.length===1?no(r[0],t,!0):r.length===2?((r[0]==="top"||r[0]==="bottom"||r[1]==="left"||r[1]==="right")&&r.reverse(),{...no(r[0],t,!0),...no(r[1],t,!1)}):{}}import{getPropertyName as Fd}from"css-to-react-native";function jr(e,t){let r=Fd(`mask-${t}`);return e[r]||e[`WebkitM${r.substring(1)}`]}function uu(e){let t=e.maskImage||e.WebkitMaskImage,r={position:jr(e,"position")||"0% 0%",size:jr(e,"size")||"100% 100%",repeat:jr(e,"repeat")||"repeat",origin:jr(e,"origin")||"border-box",clip:jr(e,"origin")||"border-box"};return Wt(t).filter(i=>i&&i!=="none").reverse().map(i=>({image:i,...r}))}var Wd={round:1,squircle:2,square:1/0,bevel:0,scoop:-1,notch:-1/0};function oo(e){let t=e.trim().toLowerCase(),r=Wd[t];if(typeof r<"u")return r;let n=t.match(/^superellipse\(\s*(-?infinity|[-+]?(?:\d*\.)?\d+(?:e[-+]?\d+)?)\s*\)$/);if(!n)throw new Error('Invalid corner shape value: "'+e+'".');if(n[1]==="infinity")return 1/0;if(n[1]==="-infinity")return-1/0;let i=Number(n[1]);if(!Number.isFinite(i))throw new Error('Invalid corner shape value: "'+e+'".');return i}function ni(e,t=4){let r=e.match(/superellipse\([^)]*\)|[^\s]+/gi)||[];if(r.length<1||r.length>t)throw new Error('Invalid corner shape value: "'+e+'".');for(let n of r)oo(n);return r}import Dd from"parse-css-color";var lu={brightness:1,contrast:1,grayscale:1,invert:1,opacity:1,saturate:1,sepia:1};function fu(e,t,r="black"){if(e==="none")return[];if(typeof e!="string")throw new Error('Invalid `backdropFilter` value: "'+e+'".');let n=Wt(e,/\s/).filter(Boolean);if(!n.length)throw new Error('Invalid `backdropFilter` value: "'+e+'".');return n.map(i=>{let o=i.match(/^([a-z-]+)\((.*)\)$/i);if(!o)throw new Error("Invalid filter function in `backdropFilter`.");let s=o[1].toLowerCase(),a=o[2].trim();if(s==="blur"){let u=a?ii(a,t,"blur()"):0;if(u<0)throw new Error("Invalid `blur()` radius in `backdropFilter`.");return{type:"blur",value:u}}if(s==="hue-rotate"){let u=a==="0"||!a?0:sr(a);if(typeof u>"u")throw new Error("Invalid `hue-rotate()` angle in `backdropFilter`.");return{type:"hue-rotate",value:u}}if(s==="drop-shadow")return $d(a,t,r);if(s in lu){let u=s,l=a?Bd(a,`${u}()`):lu[u],f=["grayscale","invert","opacity","sepia"].includes(u)?Math.min(l,1):l;return{type:u,value:f}}throw new Error(`Unsupported \`${s}()\` in \`backdropFilter\`.`)})}function $d(e,t,r){let n=Wt(e,/\s/).filter(Boolean),i=r,o=[];for(let l of n)Dd(l)?i=l:o.push(l);if(o.length<2||o.length>3)throw new Error("Invalid `drop-shadow()` value in `backdropFilter`.");let s=ii(o[0],t,"drop-shadow()"),a=ii(o[1],t,"drop-shadow()"),u=o[2]?ii(o[2],t,"drop-shadow()"):0;if(u<0)throw new Error("Invalid `drop-shadow()` blur radius in `backdropFilter`.");return{type:"drop-shadow",offsetX:s,offsetY:a,blurRadius:u,color:i}}function ii(e,t,r){let n=V(e,t.fontSize,0,t);if(typeof n>"u")throw new Error(`Invalid length \`${e}\` in \`${r}\` for \`backdropFilter\`.`);return n}function Bd(e,t){let r=e.match(/^([+-]?(?:\d+\.?\d*|\.\d+))%$/),n=r?Number(r[1])/100:Number(e);if(!Number.isFinite(n)||n<0)throw new Error(`Invalid amount \`${e}\` in \`${t}\` for \`backdropFilter\`.`);return n}import cu from"postcss-value-parser";function du(e){let t={},r={};for(let n in e)n.startsWith("--")?t[n]=String(e[n]):r[n]=e[n];return{variables:t,remainingStyle:r}}function pu(e,t){return{...e,...t}}function Hr(e,t,r=new Set){if(typeof e!="string"||!e.includes("var("))return e;try{let n=cu(e),i=!1;if(n.walk(o=>{if(o.type==="function"&&o.value==="var"){i=!0;let s=Ud(o);if(!s)return;let{varName:a,fallback:u}=s;if(r.has(a)){console.warn(`Circular reference detected for CSS variable: ${a}`),u!==void 0?Vr(o,u):Vr(o,"initial");return}let l=t[a];if(l!==void 0){let f=new Set(r);f.add(a);let d=Hr(l,t,f);Vr(o,String(d))}else if(u!==void 0){let f=Hr(u,t,r);Vr(o,String(f))}else Vr(o,"initial")}}),i)return n.toString()}catch{console.warn(`Failed to parse CSS value for variable resolution: ${e}`)}return e}function Ud(e){if(!e.nodes||e.nodes.length===0)return null;let t,r=-1;for(let i=0;i<e.nodes.length;i++){let o=e.nodes[i];if(o.type==="word"&&!t)t=o;else if(o.type==="div"&&o.value===","){r=i;break}}if(!t||t.type!=="word")return null;let n=t.value.trim();if(r!==-1&&r<e.nodes.length-1){let i=e.nodes.slice(r+1),o=cu.stringify(i).trim();return{varName:n,fallback:o}}return{varName:n}}function Vr(e,t){e.type="word",e.value=t,delete e.nodes}var Vd=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),Hd=new Set(["lineHeight"]);function Yd(e,t,r,n){return e==="textDecoration"&&!r.includes(t.textDecorationColor)&&(t.textDecorationColor=n),t}function ar(e,t){let r=Number(t);return isNaN(r)?t:Vd.has(e)?Hd.has(e)?r:String(t):r+"px"}function Xd(e,t,r,n){if(e==="zIndex")return console.warn("`z-index` is currently not supported."),{[e]:t};if(e==="lineHeight")return{lineHeight:ar(e,t)};if(e==="fontFamily")return{fontFamily:t.split(",").map(o=>o.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(e==="borderRadius"){if(typeof t!="string"||!t.includes("/"))return;let[o,s]=t.split("/"),a=Ht(e,o,!0),u=Ht(e,s,!0);for(let l in a)u[l]=ar(e,a[l])+" "+ar(e,u[l]);return u}if(e==="cornerShape"){if(typeof t!="string")throw new Error('Invalid `cornerShape` value: "'+t+'".');let o=ni(t),s=o[0],a=o[1]||s,u=o[2]||s,l=o[3]||a;return{cornerTopLeftShape:s,cornerTopRightShape:a,cornerBottomRightShape:u,cornerBottomLeftShape:l}}if(/^corner(TopLeft|TopRight|BottomRight|BottomLeft)Shape$/.test(e)){if(typeof t!="string"||ni(t,1).length!==1)throw new Error("Invalid `"+e+'` value: "'+t+'".');return{[e]:t}}let i=e.match(/^corner(Top|Right|Bottom|Left)Shape$/);if(i){if(typeof t!="string")throw new Error("Invalid `"+e+'` value: "'+t+'".');let o=ni(t,2),s=o[0],a=o[1]||s,u={Top:["cornerTopLeftShape","cornerTopRightShape"],Right:["cornerTopRightShape","cornerBottomRightShape"],Bottom:["cornerBottomLeftShape","cornerBottomRightShape"],Left:["cornerTopLeftShape","cornerBottomLeftShape"]}[i[1]];return{[u[0]]:s,[u[1]]:a}}if(/^border(Top|Right|Bottom|Left)?$/.test(e)){let o=Ht("border",t,!0);o.borderWidth===1&&!String(t).includes("1px")&&(o.borderWidth=3),o.borderColor==="black"&&!String(t).includes("black")&&(o.borderColor=r);let s={Width:ar(e+"Width",o.borderWidth),Style:Ve(o.borderStyle,{solid:"solid",dashed:"dashed"},"solid",e+"Style"),Color:o.borderColor},a={};for(let u of e==="border"?["Top","Right","Bottom","Left"]:[e.slice(6)])for(let l in s)a["border"+u+l]=s[l];return a}if(e==="boxShadow"){if(!t)throw new Error('Invalid `boxShadow` value: "'+t+'".');return{[e]:typeof t=="string"?Gd(t):t}}if(e==="backdropFilter"||e==="WebkitBackdropFilter")return{_backdropFilters:fu(t,n,r)};if(e==="transform"){if(typeof t!="string")throw new Error("Invalid `transform` value.");let o={},s=t.replace(/(-?[\d.]+%)/g,(u,l)=>{let f=~~(Math.random()*1e9);return o[f]=l,f+"px"}),a=Ht("transform",s,!0);for(let u of a.transform)for(let l in u)o[u[l]]&&(u[l]=o[u[l]]);return a}if(e==="background")return t=t.toString().trim(),/^(linear-gradient|radial-gradient|url|repeating-linear-gradient|repeating-radial-gradient)\(/.test(t)?Ht("backgroundImage",t,!0):Ht("background",t,!0);if(e==="textShadow"){t=t.toString().trim();let o={},s=Wt(t);for(let a of s){let u=Ht("textShadow",a,!0);for(let l in u)o[l]?o[l].push(u[l]):o[l]=[u[l]]}return o}if(e==="WebkitTextStroke"){t=t.toString().trim();let o=t.split(" ");if(o.length!==2)throw new Error("Invalid `WebkitTextStroke` value.");return{WebkitTextStrokeWidth:ar(e,o[0]),WebkitTextStrokeColor:ar(e,o[1])}}if(e==="textDecorationSkipInk"){let o=t.toString().trim().toLowerCase();if(!["auto","none","all"].includes(o))throw new Error("Invalid `textDecorationSkipInk` value.");return{textDecorationSkipInk:o}}}function hu(e){return e==="transform"?" Only absolute lengths such as `10px` are supported.":""}var mu=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function bu(e){if(typeof e=="string"&&mu.test(e.trim()))return e.trim().replace(mu,(t,r,n,i,o)=>`rgba(${r}, ${n}, ${i}, ${o})`);if(typeof e=="object"&&e!==null){for(let t in e)e[t]=bu(e[t]);return e}return e}function oi(e,t){let r={},n={};for(let u in t)u.startsWith("--")&&(n[u]=String(t[u]));let i={},o=e;if(e){let{variables:u,remainingStyle:l}=du(e);i=u,o=l}let s=pu(n,i);for(let u in s)r[u]=s[u];if(o){let u=o.color?Hr(o.color,s):void 0,l=Kd(u,t.color);r.color=l;for(let f in o){if(f.startsWith("_")){r[f]=o[f];continue}if(f==="color")continue;let d=qd(f),m=Hr(o[f],s),h=Zd(m,l);try{let g=Xd(d,h,l,t)||Yd(d,Ht(d,ar(d,h),!0),h,l);Object.assign(r,g)}catch(g){throw new Error(g.message+(g.message.includes(h)?`
|
|
5
|
+
`+hu(d):`
|
|
6
|
+
in CSS rule \`${d}: ${h}\`.${hu(d)}`))}}}if(r.backgroundImage){let{backgrounds:u}=zd(r);r.backgroundImage=u}(r.maskImage||r.WebkitMaskImage)&&(r.maskImage=uu(r));let a=Qd(r.fontSize,t.fontSize);typeof r.fontSize<"u"&&(r.fontSize=a),r.transformOrigin&&(r.transformOrigin=io(r.transformOrigin,a));for(let u in r){let l=r[u];if(u==="lineHeight")typeof l=="string"&&l!=="normal"&&(l=r[u]=V(l,a,a,t,!0)/a);else{if(typeof l=="string"){let f=V(l,a,a,t);typeof f<"u"&&(r[u]=f),l=r[u]}if(typeof l=="string"||typeof l=="object"){let f=bu(l);f&&(r[u]=f),l=r[u]}}if(u==="opacity"&&typeof l=="number"&&(r.opacity=l*t.opacity),u==="transform"){let f=l;for(let d of f){let m=Object.keys(d)[0],h=d[m],g=typeof h=="string"?V(h,a,a,t)??h:h;d[m]=g}}if(u==="textShadowRadius"){let f=l;r.textShadowRadius=f.map(d=>V(d,a,0,t,!1))}if(u==="textShadowOffset"){let f=l;r.textShadowOffset=f.map(({height:d,width:m})=>({height:V(d,a,0,t,!1),width:V(m,a,0,t,!1)}))}}return r}function Qd(e,t){if(typeof e=="number")return e;try{let r=new _t(e);switch(r.unit){case"em":return r.value*t;case"rem":return r.value*16}}catch{return t}}function gu(e){if(e.startsWith("hsl")){let t=jd(e),[r,n,i]=t.values;return`hsl(${[r,`${n}%`,`${i}%`].concat(t.alpha===1?[]:[t.alpha]).join(",")})`}return e}function Kd(e,t){return e&&e.toLowerCase()!=="currentcolor"?gu(e):gu(t)}function Jd(e,t){return e.replace(/currentcolor/gi,t)}function Zd(e,t){return Vn(e)&&(e=Jd(e,t)),e}async function so(e,t,r,n,i){let o=await Vt(),s=Object.assign({},r,oi(au[t],r),oi(n,r));if(t==="img"){let[a,u,l]=await Pr(i.src);if(u===void 0&&l===void 0){if(i.width===void 0||i.height===void 0)throw new Error("Image size cannot be determined. Please provide the width and height of the image.");u=parseInt(i.width),l=parseInt(i.height)}let f=l/u,d=(s.borderLeftWidth||0)+(s.borderRightWidth||0)+(s.paddingLeft||0)+(s.paddingRight||0),m=(s.borderTopWidth||0)+(s.borderBottomWidth||0)+(s.paddingTop||0)+(s.paddingBottom||0),h=s.width||i.width,g=s.height||i.height,v=typeof h=="number"&&typeof g=="number";v&&(h-=d,g-=m),h===void 0&&g===void 0?(h="100%",e.setAspectRatio(1/f)):h===void 0?typeof g=="number"?h=g/f:e.setAspectRatio(1/f):g===void 0&&(typeof h=="number"?g=h*f:e.setAspectRatio(1/f)),s.width=v?h+d:h,s.height=v?g+m:g,s.__src=a,s.__naturalWidth=u,s.__naturalHeight=l}if(t==="svg"){let a=i.viewBox||i.viewbox,u=Sr(a),l=u?u[3]/u[2]:null,{width:f,height:d}=i;typeof f>"u"&&d?l==null?f=0:typeof d=="string"&&d.endsWith("%")?f=parseInt(d)/l+"%":(d=V(d,r.fontSize,1,r),f=d/l):typeof d>"u"&&f?l==null?f=0:typeof f=="string"&&f.endsWith("%")?d=parseInt(f)*l+"%":(f=V(f,r.fontSize,1,r),d=f*l):(typeof f<"u"&&(f=V(f,r.fontSize,1,r)||f),typeof d<"u"&&(d=V(d,r.fontSize,1,r)||d),f||=u==null?void 0:u[2],d||=u==null?void 0:u[3]),!s.width&&f&&(s.width=f),!s.height&&d&&(s.height=d)}return e.setDisplay(Ve(s.display,{flex:o.DISPLAY_FLEX,block:o.DISPLAY_FLEX,contents:o.DISPLAY_CONTENTS,none:o.DISPLAY_NONE,"-webkit-box":o.DISPLAY_FLEX},o.DISPLAY_FLEX,"display")),e.setAlignContent(Ve(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(Ve(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(Ve(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(Ve(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(Ve(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(Ve(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(jt(s.flexBasis,"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(Ft(s.maxHeight,"maxHeight")),typeof s.maxWidth<"u"&&e.setMaxWidth(Ft(s.maxWidth,"maxWidth")),typeof s.minHeight<"u"&&e.setMinHeight(Ft(s.minHeight,"minHeight")),typeof s.minWidth<"u"&&e.setMinWidth(Ft(s.minWidth,"minWidth")),e.setOverflow(Ve(s.overflow,{visible:o.OVERFLOW_VISIBLE,hidden:o.OVERFLOW_HIDDEN},o.OVERFLOW_VISIBLE,"overflow")),e.setMargin(o.EDGE_TOP,jt(s.marginTop||0)),e.setMargin(o.EDGE_BOTTOM,jt(s.marginBottom||0)),e.setMargin(o.EDGE_LEFT,jt(s.marginLeft||0)),e.setMargin(o.EDGE_RIGHT,jt(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.setBoxSizing(Ve(s.boxSizing,{"border-box":o.BOX_SIZING_BORDER_BOX,"content-box":o.BOX_SIZING_CONTENT_BOX},o.BOX_SIZING_BORDER_BOX,"boxSizing")),e.setPositionType(Ve(s.position,{absolute:o.POSITION_TYPE_ABSOLUTE,relative:o.POSITION_TYPE_RELATIVE,static:o.POSITION_TYPE_STATIC},o.POSITION_TYPE_RELATIVE,"position")),typeof s.top<"u"&&e.setPosition(o.EDGE_TOP,Ft(s.top,"top")),typeof s.bottom<"u"&&e.setPosition(o.EDGE_BOTTOM,Ft(s.bottom,"bottom")),typeof s.left<"u"&&e.setPosition(o.EDGE_LEFT,Ft(s.left,"left")),typeof s.right<"u"&&e.setPosition(o.EDGE_RIGHT,Ft(s.right,"right")),typeof s.height<"u"?e.setHeight(jt(s.height,"height")):e.setHeightAuto(),typeof s.width<"u"?e.setWidth(jt(s.width,"width")):e.setWidthAuto(),[s,ro(s)]}import yu from"escape-html";var vu=[1,0,0,1,0,0];function ep(e,t,r){let n=[...vu];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*r,i[o]=s;else throw new Error(`Invalid transform: "${o}: ${s}".`);let a=s,u=[...vu];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),d=Math.sin(l);u[0]=f,u[1]=d,u[2]=-d,u[3]=f;break}case"skewX":u[2]=Math.tan(a*Math.PI/180);break;case"skewY":u[1]=Math.tan(a*Math.PI/180);break}n=qr(u,n)}e.splice(0,e.length),e.push(...n),e.__resolved=!0}function Yr({left:e,top:t,width:r,height:n},i,o,s){let a;i.__resolved||ep(i,r,n);let u=i;if(o)a=u;else{let l=(s==null?void 0:s.xAbsolute)??((s==null?void 0:s.xRelative)??50)*r/100,f=(s==null?void 0:s.yAbsolute)??((s==null?void 0:s.yRelative)??50)*n/100,d=e+l,m=t+f;a=qr([1,0,0,1,d,m],qr(u,[1,0,0,1,-d,-m])),u.__parent&&(a=qr(u.__parent,a)),u.splice(0,6,...a)}return`matrix(${a.map(l=>l.toFixed(2)).join(",")})`}function xu({left:e,top:t,width:r,height:n,isInheritingTransform:i},o){let s="",a=1;return o.transform&&(s=Yr({left:e,top:t,width:r,height:n},o.transform,i,o.transformOrigin)),o.opacity!==void 0&&(a=+o.opacity),{matrix:s,opacity:a}}function ao({id:e,content:t,filter:r,left:n,top:i,width:o,height:s,matrix:a,opacity:u,image:l,clipPathId:f,debug:d,shape:m,decorationShape:h},g){let v="";if(d&&(v=R("rect",{x:n,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 _={href:l,x:n,y:i,width:o,height:s,transform:a||void 0,"clip-path":f?`url(#${f})`:void 0,style:g.filter?`filter:${g.filter}`:void 0};return[(r?`${r}<g filter="url(#satori_s-${e})">`:"")+R("image",{..._,opacity:u!==1?u:void 0})+(h||"")+(r?"</g>":"")+v,""]}let w={x:n,y:i,width:o,height:s,"font-weight":g.fontWeight,"font-style":g.fontStyle,"font-size":g.fontSize,"font-family":g.fontFamily,"letter-spacing":g.letterSpacing||void 0,transform:a||void 0,"clip-path":f?`url(#${f})`:void 0,style:g.filter?`filter:${g.filter}`:void 0,"stroke-width":g.WebkitTextStrokeWidth?`${g.WebkitTextStrokeWidth}px`:void 0,stroke:g.WebkitTextStrokeWidth?g.WebkitTextStrokeColor:void 0,"stroke-linejoin":g.WebkitTextStrokeWidth?"round":void 0,"paint-order":g.WebkitTextStrokeWidth?"stroke":void 0};return[(r?`${r}<g filter="url(#satori_s-${e})">`:"")+R("text",{...w,fill:g.color,opacity:u!==1?u:void 0},yu(t))+(h||"")+(r?"</g>":"")+v,m?R("text",w,yu(t)):""]}function tp(e,t,r){return e.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(n,i,o,s){return i+(parseFloat(o)+t)+","+(parseFloat(s)+r)})}var si=1.1;function wu({id:e,width:t,height:r},n,i=!1){if(!n.shadowColor||!n.shadowOffset||typeof n.shadowRadius>"u")return"";let o=n.shadowColor.length,s="",a="",u=0,l=t,f=0,d=r;for(let m=0;m<o;m++){let h=n.shadowRadius[m]*n.shadowRadius[m]/4;if(u=Math.min(n.shadowOffset[m].width-h,u),l=Math.max(n.shadowOffset[m].width+h+t,l),f=Math.min(n.shadowOffset[m].height-h,f),d=Math.max(n.shadowOffset[m].height+h+r,d),i){let g=`satori_s-${e}-result-${m}`;s+=R("feGaussianBlur",{in:"SourceAlpha",stdDeviation:n.shadowRadius[m]/2,result:`${g}-blur`})+R("feOffset",{in:`${g}-blur`,dx:n.shadowOffset[m].width,dy:n.shadowOffset[m].height,result:`${g}-offset`})+R("feFlood",{"flood-color":n.shadowColor[m],"flood-opacity":1,result:`${g}-color`})+R("feComposite",{in:`${g}-color`,in2:`${g}-offset`,operator:"in",result:o>1?g:void 0})}else s+=R("feDropShadow",{dx:n.shadowOffset[m].width,dy:n.shadowOffset[m].height,stdDeviation:n.shadowRadius[m]/2,"flood-color":n.shadowColor[m],"flood-opacity":1,...o>1?{in:"SourceGraphic",result:`satori_s-${e}-result-${m}`}:{}});o>1&&(a=R("feMergeNode",{in:`satori_s-${e}-result-${m}`})+a)}return R("filter",{id:`satori_s-${e}`,x:(u/t*100*si).toFixed(2)+"%",y:(f/r*100*si).toFixed(2)+"%",width:((l-u)/t*100*si).toFixed(2)+"%",height:((d-f)/r*100*si).toFixed(2)+"%"},s+(a?R("feMerge",{},a):""))}function Su({width:e,height:t,shape:r,opacity:n,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 d=f.blurRadius*f.blurRadius/4+(f.spreadRadius||0),m=Math.min(-d-(f.inset?f.offsetX:0),0),h=Math.max(d+e-(f.inset?f.offsetX:0),e),g=Math.min(-d-(f.inset?f.offsetY:0),0),v=Math.max(d+t-(f.inset?f.offsetY:0),t),w=`satori_s-${i}-${u}`,_=`satori_ms-${i}-${u}`,O=f.spreadRadius?r.replace('stroke-width="0"',`stroke-width="${f.spreadRadius*2}"`):r;l+=R("mask",{id:_,maskUnits:"userSpaceOnUse"},R("rect",{x:0,y:0,width:o._viewportWidth||"100%",height:o._viewportHeight||"100%",fill:f.inset?"#000":"#fff"})+O.replace('fill="#fff"',f.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let x=O.replace(/d="([^"]+)"/,(E,T)=>'d="'+tp(T,f.offsetX,f.offsetY)+'"').replace(/x="([^"]+)"/,(E,T)=>'x="'+(parseFloat(T)+f.offsetX)+'"').replace(/y="([^"]+)"/,(E,T)=>'y="'+(parseFloat(T)+f.offsetY)+'"');f.spreadRadius&&f.spreadRadius<0&&(l+=R("mask",{id:_+"-neg",maskUnits:"userSpaceOnUse"},x.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-f.spreadRadius*2}"`))),f.spreadRadius&&f.spreadRadius<0&&(x=R("g",{mask:`url(#${_}-neg)`},x)),l+=R("defs",{},R("filter",{id:w,x:`${m/e*100}%`,y:`${g/t*100}%`,width:`${(h-m)/e*100}%`,height:`${(v-g)/t*100}%`},R("feGaussianBlur",{stdDeviation:f.blurRadius/2,result:"b"})+R("feFlood",{"flood-color":f.color,in:"SourceGraphic",result:"f"})+R("feComposite",{in:"f",in2:"b",operator:f.inset?"out":"in"})))+R("g",{mask:`url(#${_})`,filter:`url(#${w})`,opacity:n},x),f.inset?a+=l:s+=l}return[s,a]}function rp(e,t,r,n,i,o){let s=i/2,a=Math.max(s,i*1.25),u=[];for(let d of r){if(d.y2<o+s||d.y1>n+s)continue;let m=Math.max(e,d.x1-a),h=Math.min(t,d.x2+a);if(m>=h)continue;if(u.length===0){u.push([m,h]);continue}let g=u[u.length-1];m<=g[1]?g[1]=Math.max(g[1],h):u.push([m,h])}if(!u.length)return[[e,t]];let l=[],f=e;for(let[d,m]of u)if(d>f&&l.push([f,d]),f=Math.max(f,m),f>=t)break;return f<t&&l.push([f,t]),l}function uo({width:e,left:t,top:r,ascender:n,clipPathId:i,matrix:o,glyphBoxes:s},a){let{textDecorationColor:u,textDecorationStyle:l,textDecorationLine:f,textDecorationSkipInk:d,fontSize:m,color:h}=a;if(!f||f==="none")return"";let g=Math.max(1,m*.1),v=f==="line-through"?r+n*.7:f==="underline"?r+n*1.1:r,w=l==="dashed"?`${g*1.2} ${g*2}`:l==="dotted"?`0 ${g*2}`:void 0,_=f==="underline"&&(d||"auto")!=="none"&&(s==null?void 0:s.length),O=r+n,x=_?rp(t,t+e,s,v,g,O):[[t,t+e]],E=l==="double"?x.map(([T,I])=>R("line",{x1:T,y1:v+g+1,x2:I,y2:v+g+1,stroke:u||h,"stroke-width":g,"stroke-dasharray":w,"stroke-linecap":l==="dotted"?"round":"square",transform:o})).join(""):"";return(i?`<g clip-path="url(#${i})">`:"")+x.map(([T,I])=>R("line",{x1:T,y1:v,x2:I,y2:v,stroke:u||h,"stroke-width":g,"stroke-dasharray":w,"stroke-linecap":l==="dotted"?"round":"square",transform:o})).join("")+E+(i?"</g>":"")}function lo(e){return e=e.replace("U+","0x"),String.fromCodePoint(Number(e))}var ur=lo("U+0020"),fo=lo("U+0009"),Or=lo("U+2026");function _u(e,t,r){let{fontSize:n,letterSpacing:i}=r,o=new Map;function s(l){let f=o.get(l);return f===void 0&&(f=e.measure(l,{fontSize:n,letterSpacing:i}),o.set(l,f)),f}function a(l){let f=0;for(let d of l)t(d)?f+=n:f+=s(d);return f}function u(l){return a(je(l,"grapheme"))}return{measureGrapheme:s,measureGraphemeArray:a,measureText:u}}function Tu(e,t,r){let{textTransform:n,whiteSpace:i,wordBreak:o}=t;e=np(e,n,r);let{content:s,shouldCollapseTabsAndSpaces:a,allowSoftWrap:u}=sp(e,i),{words:l,requiredBreaks:f,allowBreakWord:d}=op(s,o),[m,h]=ip(t,u);return{words:l,requiredBreaks:f,allowSoftWrap:u,allowBreakWord:d,processedContent:s,shouldCollapseTabsAndSpaces:a,lineLimit:m,blockEllipsis:h}}function np(e,t,r){return t==="uppercase"?e=e.toLocaleUpperCase(r):t==="lowercase"?e=e.toLocaleLowerCase(r):t==="capitalize"&&(e=je(e,"word",r).map(n=>je(n,"grapheme",r).map((i,o)=>o===0?i.toLocaleUpperCase(r):i).join("")).join("")),e}function ip(e,t){let{textOverflow:r,lineClamp:n,WebkitLineClamp:i,WebkitBoxOrient:o,overflow:s,display:a}=e;if(a==="block"&&n){let[u,l=Or]=ap(n);if(u)return[u,l]}return r==="ellipsis"&&a==="-webkit-box"&&o==="vertical"&&La(i)&&i>0?[i,Or]:r==="ellipsis"&&s==="hidden"&&!t?[1,Or]:[1/0]}function op(e,t){let r=["break-all","break-word"].includes(t),{words:n,requiredBreaks:i}=Na(e,t);return{words:n,requiredBreaks:i,allowBreakWord:r}}function sp(e,t){let r=["pre","pre-wrap","pre-line"].includes(t),n=["normal","nowrap","pre-line"].includes(t),i=!["pre","nowrap"].includes(t);return r||(e=e.replace(/\n/g,ur)),n&&(e=e.replace(/([ ]|\t)+/g,ur).replace(/^[ ]|[ ]$/g,"")),{content:e,shouldCollapseTabsAndSpaces:n,allowSoftWrap:i}}function ap(e){if(typeof e=="number")return[e];let t=/^(\d+)\s*"(.*)"$/,r=/^(\d+)\s*'(.*)'$/,n=t.exec(e),i=r.exec(e);if(n){let o=+n[1],s=n[2];return[o,s]}else if(i){let o=+i[1],s=i[2];return[o,s]}return[]}import ku from"parse-css-color";var up=new Set([fo]);function lp(e){return up.has(e)}function co(e){if(e==="transparent")return!0;let t=ku(e);return t?t.alpha===0:!1}function Eu(e){if(!e)return!1;let t=ku(e);if(!t)return!1;let[r,n,i,o]=t.values;return r===255&&n===255&&i===255&&(o===void 0||o===1)}async function*po(e,t){let r=await Vt(),{parentStyle:n,inheritedStyle:i,parent:o,font:s,id:a,isInheritingTransform:u,debug:l,embedFont:f,graphemeImages:d,locale:m,canLoadAdditionalAssets:h}=t,{textAlign:g,textIndent:v=0,lineHeight:w,textWrap:_,fontSize:O,filter:x,tabSize:E=8,letterSpacing:T,_inheritedBackgroundClipTextPath:I,_inheritedBackgroundClipTextHasBackground:N,flexShrink:W}=n,{words:z,requiredBreaks:Z,allowSoftWrap:de,allowBreakWord:we,processedContent:ve,shouldCollapseTabsAndSpaces:ue,lineLimit:Se,blockEllipsis:Me}=Tu(e,n,m),te=fp(r,g);o.insertChild(te,o.getChildCount()),Ma(W)&&o.setFlexShrink(1);let J=s.getEngine(O,w,n,m),ot=h?je(ve,"grapheme").filter(Y=>!lp(Y)&&!J.has(Y)):[];yield ot.map(Y=>({word:Y,locale:m})),ot.length&&(J=s.getEngine(O,w,n,m));function He(Y){return!!(d&&Object.prototype.hasOwnProperty.call(d,Y)&&d[Y])}let{measureGrapheme:ye,measureGraphemeArray:Re,measureText:Ze}=_u(J,He,{fontSize:O,letterSpacing:T}),le=Vn(E)?V(E,O,1,n):ye(ur)*E,X=(Y,H)=>{if(Y.length===0)return{originWidth:0,endingSpacesWidth:0,text:Y};let{index:fe,tabCount:Q}=cp(Y),xe=0;if(Q>0){let Te=Y.slice(0,fe),re=Y.slice(fe+Q),ne=Ze(Te),ut=ne+H;xe=(le===0?ne:(Math.floor(ut/le)+Q)*le)+Ze(re)}else xe=Ze(Y);let ae=Y.trimEnd()===Y?xe:Ze(Y.trimEnd());return{originWidth:xe,endingSpacesWidth:xe-ae,text:Y}},ee=[],me=[],G=[],_e=[],Ie=[];function Ye(Y){let H=0,fe=0,Q=-1,xe=0,ae=0,Te=0,re=0;ee=[],G=[0],_e=[],Ie=[];let ne=0,ut=0;for(;ne<z.length&&H<Se;){let K=z[ne],Fe=Z[ne],ze=0,{originWidth:Wr,endingSpacesWidth:Ae,text:ir}=X(K,ae);K=ir,ze=Wr;let $e=Ae;Fe&&Te===0&&(Te=J.height(K));let Lt=g==="justify",Ee=ne&&ae+ze>Y+$e&&de;if(we&&ze>Y&&(!ae||Ee||Fe)){let nt=je(K,"grapheme");z.splice(ne,1,...nt),ae>0&&(ee.push(ae-ut),me.push(re),H++,xe+=Te,ae=0,Te=0,re=0,G.push(1),Q=-1),ut=$e;continue}if(Fe||Ee)ue&&K===ur&&(ze=0),ee.push(ae-ut),me.push(re),H++,xe+=Te,ae=ze,Te=ze?Math.round(J.height(K)):0,re=ze?Math.round(J.baseline(K)):0,G.push(1),Q=-1,Fe||(fe=Math.max(fe,Y));else{ae+=ze;let nt=Math.round(J.height(K));nt>Te&&(Te=nt,re=Math.round(J.baseline(K))),Lt&&G[G.length-1]++}Lt&&Q++,fe=Math.max(fe,ae);let rt=ae-ze;if(ze===0)Ie.push({y:xe,x:rt,width:0,line:H,lineIndex:Q,isImage:!1});else{let nt=je(K,"word");for(let xt=0;xt<nt.length;xt++){let wt=nt[xt],Ge=0,lt=!1;He(wt)?(Ge=O,lt=!0):!f&&wt.length>1?Ge=Ze(wt):Ge=ye(wt),_e.push(wt),Ie.push({y:xe,x:rt,width:Ge,line:H,lineIndex:Q,isImage:lt}),rt+=Ge}}ne++,ut=$e}return ae&&(H<Se&&(xe+=Te),H++,ee.push(ae),me.push(re)),{width:fe,height:xe}}let Be={width:0,height:0};te.setMeasureFunc(Y=>{let{width:H,height:fe}=Ye(Y);if(_==="balance"){let xe=H/2,ae=H,Te=H;for(;xe+1<ae;){Te=(xe+ae)/2;let{height:ne}=Ye(Te);ne>fe?xe=Te:ae=Te}Ye(ae);let re=Math.ceil(ae);return Be={width:re,height:fe},{width:re,height:fe}}if(_==="pretty"&&ee[ee.length-1]<H/3){let Te=H*.9,re=Ye(Te);if(re.height<=fe*1.3)return Be={width:H,height:re.height},{width:H,height:re.height}}let Q=Math.ceil(H);return Be={width:Q,height:fe},{width:Q,height:fe}});let[pe,Ue]=yield,Ce="",et="",Ne=i._inheritedClipPathId,gr=i._inheritedMaskId,{left:kt,top:Fr,width:er,height:br}=te.getComputedLayout(),vr=typeof v=="string"?V(v,O,er,n,!0)||0:v,tr=o.getComputedWidth()-o.getComputedPadding(r.EDGE_LEFT)-o.getComputedPadding(r.EDGE_RIGHT)-o.getComputedBorder(r.EDGE_LEFT)-o.getComputedBorder(r.EDGE_RIGHT),Pt=pe+kt,gt=Ue+Fr,{matrix:st,opacity:rr}=xu({left:kt,top:Fr,width:er,height:br,isInheritingTransform:u},n),Xe="";if(n.textShadowOffset){let{textShadowColor:Y,textShadowOffset:H,textShadowRadius:fe}=n;Xe=wu({width:Be.width,height:Be.height,id:a},{shadowColor:Y,shadowOffset:H,shadowRadius:fe},co(n.color)||N&&Eu(n.color)),Xe=R("defs",{},Xe)}let bt="",vt="",nr="",Gt=-1,qe={},at={},tt=null,yt=0;for(let Y=0;Y<_e.length;Y++){let H=Ie[Y],fe=Ie[Y+1];if(!H)continue;let Q=_e[Y],xe=null,ae=!1,Te=d&&Object.prototype.hasOwnProperty.call(d,Q)?d[Q]:null,re=H.y,ne=H.x,ut=H.width,K=H.line,Fe=n.textDecorationLine==="underline"&&(n.textDecorationSkipInk||"auto")!=="none";if(K===Gt)continue;let ze=!1;if(K===0&&vr!==0&&(ne+=vr),ee.length>1){let Ee=er-ee[K];if(g==="right"||g==="end")ne+=Ee;else if(g==="center")ne+=Ee/2;else if(g==="justify"&&K<ee.length-1){let Oe=G[K],rt=Oe>1?Ee/(Oe-1):0;ne+=rt*H.lineIndex,ze=!0}f&&(ne=Math.round(ne))}let Wr=me[K],Ae=J.baseline(Q),ir=J.height(Q),$e=Wr-Ae,Lt=Ee=>!Fe||n.textDecorationLine!=="underline"?void 0:{underlineY:gt+Ee+$e+Ae+Ae*.1,strokeWidth:Math.max(1,O*.1)};if(qe[K]||(qe[K]={left:ne,top:gt+re+$e,ascender:Ae,width:ze?er:ee[K]}),Se!==1/0){let wt=function(Ge,lt){let Dr=je(lt,"grapheme",m),yr="",Wn=0;for(let Dn of Dr){let $r=Ge+Re([yr+Dn]);if(yr&&$r+Oe>tr)break;yr+=Dn,Wn=$r}return{subset:yr,resolvedWidth:Wn}},Ee=Me,Oe=ye(Me);Oe>tr&&(Ee=Or,Oe=ye(Ee));let rt=ye(ur),nt=K<ee.length-1;if(K+1===Se&&(nt||ee[K]>tr)){if(ne+ut+Oe+rt>tr){let{subset:Ge,resolvedWidth:lt}=wt(ne,Q);Q=Ge+Ee,Gt=K,qe[K].width=Math.max(0,lt-qe[K].left),ae=!0}else if(fe&&fe.line!==K)if(g==="center"){let{subset:Ge,resolvedWidth:lt}=wt(ne,Q);Q=Ge+Ee,Gt=K,qe[K].width=Math.max(0,lt-qe[K].left),ae=!0}else{let Ge=_e[Y+1],{subset:lt,resolvedWidth:Dr}=wt(ut+ne,Ge);Q=Q+lt+Ee,Gt=K,qe[K].width=Math.max(0,Dr-qe[K].left),ae=!0}}}if(Te)re+=0;else if(f){if(!Q.includes(fo)&&!Ra.includes(Q)&&_e[Y+1]&&fe&&!fe.isImage&&re===fe.y&&!ae){tt===null&&(yt=ne),tt=tt===null?Q:tt+Q;continue}let Ee=tt===null?Q:tt+Q,Oe=tt===null?ne:yt,rt=H.width+ne-Oe,nt=Lt(re),xt=J.getSVG(Ee.replace(/(\t)+/g,""),{fontSize:O,left:Pt+Oe,top:gt+re+Ae+$e,letterSpacing:T},nt);xe=xt.path,Fe&&xt.boxes&&xt.boxes.length&&(at[K]||(at[K]=[])).push(...xt.boxes),tt=null,l&&(nr+=R("rect",{x:Pt+Oe,y:gt+re+$e,width:rt,height:ir,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:st||void 0,"clip-path":Ne?`url(#${Ne})`:void 0})+R("line",{x1:Pt+ne,x2:Pt+ne+H.width,y1:gt+re+$e+Ae,y2:gt+re+$e+Ae,stroke:"#14c000","stroke-width":1,transform:st||void 0,"clip-path":Ne?`url(#${Ne})`:void 0}))}else if(re+=Ae+$e,Fe&&!Te){let Ee=Lt(re),Oe=J.getSVG(Q.replace(/(\t)+/g,""),{fontSize:O,left:Pt+ne,top:gt+re,letterSpacing:T},Ee);Oe.boxes&&Oe.boxes.length&&(at[K]||(at[K]=[])).push(...Oe.boxes)}if(xe!==null)vt+=xe+" ";else{let[Ee,Oe]=ao({content:Q,filter:Xe,id:a,left:Pt+ne,top:gt+re,width:ut,height:ir,matrix:st,opacity:rr,image:Te,clipPathId:Ne,debug:l,shape:!!I},n);Ce+=Ee,et+=Oe}if(ae)break}if(n.textDecorationLine&&(bt=Object.entries(qe).map(([Y,H])=>{if(!H)return"";let fe=at[Y]||[];return uo({left:Pt+H.left,top:H.top,width:H.width,ascender:H.ascender,clipPathId:Ne,matrix:st,glyphBoxes:fe},n)}).join("")),vt){let Y=(!co(n.color)||Xe)&&rr!==0?`<g ${gr?`mask="url(#${gr})"`:""} ${Ne?`clip-path="url(#${Ne})"`:""}>`+R("path",{fill:Xe&&(co(n.color)||N&&Eu(n.color))?"black":n.color,d:vt,transform:st||void 0,opacity:rr!==1?rr:void 0,style:x?`filter:${x}`: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})+"</g>":"";I&&(et=R("path",{d:vt,transform:st||void 0})),Ce+=(Xe?Xe+R("g",{filter:`url(#satori_s-${a})`},Y+bt):Y+bt)+nr}else bt&&(Ce+=Xe?R("g",{filter:`url(#satori_s-${a})`},bt):bt);return et&&(n._inheritedBackgroundClipTextPath.value+=et),Ce}function fp(e,t){let r=e.Node.create();return r.setAlignItems(e.ALIGN_BASELINE),r.setJustifyContent(Ve(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")),r}function cp(e){let t=/(\t)+/.exec(e);return t?{index:t.index,tabCount:t[0].length}:{index:null,tabCount:0}}import{parseLinearGradient as pp}from"css-gradient-parser";import dp from"parse-css-color";function ai(e,t,r,n,i){let o=[],s=t.at(-1),a=s&&s.offset&&s.offset.unit==="%"&&n?+s.offset.value:100;for(let d of t){let{color:m}=d;if(!o.length&&(o.push({offset:0,color:m}),!d.offset||d.offset.value==="0"))continue;let h=typeof d.offset>"u"?void 0:d.offset.unit==="%"?+d.offset.value/a:Number(V(`${d.offset.value}${d.offset.unit}`,r.fontSize,e,r,!0))/e;o.push({offset:h,color:m})}o.length||o.push({offset:0,color:"transparent"});let u=o[o.length-1];u.offset!==1&&(typeof u.offset>"u"?u.offset=1:n?o[o.length-1]={offset:1,color:u.color}:o.push({offset:1,color:u.color}));let l=0,f=1;for(let d=0;d<o.length;d++)if(typeof o[d].offset>"u"){for(f<d&&(f=d);typeof o[f].offset>"u";)f++;o[d].offset=(o[f].offset-o[l].offset)/(f-l)*(d-l)+o[l].offset}else l=d;return i==="mask"?o.map(d=>{let m=dp(d.color);return m?m.alpha===0?{...d,color:"rgba(0, 0, 0, 1)"}:{...d,color:`rgba(255, 255, 255, ${m.alpha})`}:d}):o}function Pu({id:e,width:t,height:r,repeatX:n,repeatY:i},o,s,a,u,l){let f=pp(o),[d,m]=s,h=o.startsWith("repeating"),g,v,w;if(f.orientation.type==="directional")g=mp(f.orientation.value),v=Math.sqrt(Math.pow((g.x2-g.x1)*d,2)+Math.pow((g.y2-g.y1)*m,2));else if(f.orientation.type==="angular"){let{length:T,...I}=gp(sr(`${f.orientation.value.value}${f.orientation.value.unit}`)/180*Math.PI,d,m);v=T,g=I}w=h?bp(f.stops,v,g,u):g;let _=ai(h?hp(f.stops,v):v,f.stops,u,h,l),O=`satori_bi${e}`,x=`satori_pattern_${e}`,E=R("pattern",{id:x,x:a[0]/t,y:a[1]/r,width:n?d/t:"1",height:i?m/r:"1",patternUnits:"objectBoundingBox"},R("linearGradient",{id:O,...w,spreadMethod:h?"repeat":"pad"},_.map(T=>R("stop",{offset:(T.offset??0)*100+"%","stop-color":T.color})).join(""))+R("rect",{x:0,y:0,width:d,height:m,fill:`url(#${O})`}));return[x,E]}function hp(e,t){let r=e[e.length-1],{offset:n}=r;return n?n.unit==="%"?Number(n.value)/100*t:Number(n.value):t}function mp(e){let t=0,r=0,n=0,i=0;return e.includes("top")?r=1:e.includes("bottom")&&(i=1),e.includes("left")?t=1:e.includes("right")&&(n=1),!t&&!n&&!r&&!i&&(r=1),{x1:t,y1:r,x2:n,y2:i}}function gp(e,t,r){let n=Math.pow(r/t,2);e=(e%(Math.PI*2)+Math.PI*2)%(Math.PI*2);let i,o,s,a,u,l,f,d,m=h=>{if(h===0){i=0,o=r,s=0,a=0,u=r;return}else if(h===Math.PI/2){i=0,o=0,s=t,a=0,u=t;return}if(h>0&&h<Math.PI/2){i=(n*t/2/Math.tan(h)-r/2)/(Math.tan(h)+n/Math.tan(h)),o=Math.tan(h)*i+r,s=Math.abs(t/2-i)+t/2,a=r/2-Math.abs(o-r/2),u=Math.sqrt(Math.pow(s-i,2)+Math.pow(a-o,2)),f=(t/2/Math.tan(h)-r/2)/(Math.tan(h)+1/Math.tan(h)),d=Math.tan(h)*f+r,u=2*Math.sqrt(Math.pow(t/2-f,2)+Math.pow(r/2-d,2));return}else if(h>Math.PI/2&&h<Math.PI){i=(r/2+n*t/2/Math.tan(h))/(Math.tan(h)+n/Math.tan(h)),o=Math.tan(h)*i,s=Math.abs(t/2-i)+t/2,a=r/2+Math.abs(o-r/2),f=(t/2/Math.tan(h)+r/2)/(Math.tan(h)+1/Math.tan(h)),d=Math.tan(h)*f,u=2*Math.sqrt(Math.pow(t/2-f,2)+Math.pow(r/2-d,2));return}else h>=Math.PI&&(m(h-Math.PI),l=i,i=s,s=l,l=o,o=a,a=l)};return m(e),{x1:i/t,y1:o/r,x2:s/t,y2:a/r,length:u}}function bp(e,t,r,n){let{x1:i,x2:o,y1:s,y2:a}=r,u=e[0].offset?e[0].offset.unit==="%"?Number(e[0].offset.value)/100:V(`${e[0].offset.value}${e[0].offset.unit}`,n.fontSize,t,n,!0)/t:0,l=e.at(-1).offset?e.at(-1).offset.unit==="%"?Number(e.at(-1).offset.value)/100:V(`${e.at(-1).offset.value}${e.at(-1).offset.unit}`,n.fontSize,t,n,!0)/t:1,f=(o-i)*u+i,d=(a-s)*u+s,m=(o-i)*l+i,h=(a-s)*l+s;return{x1:f,y1:d,x2:m,y2:h}}import{parseRadialGradient as vp}from"css-gradient-parser";function Iu({id:e,width:t,height:r,repeatX:n,repeatY:i},o,s,a,u,l){var ve;let{shape:f,stops:d,position:m,size:h,repeating:g}=vp(o),[v,w]=s,_=v/2,O=w/2,x=xp(m.x,m.y,v,w,u.fontSize,u);_=x.x,O=x.y;let E=yp(t,d,g,u),T=ai(E,d,u,g,l),I=`satori_radial_${e}`,N=`satori_pattern_${e}`,W=`satori_mask_${e}`,z=Sp(f,h,u.fontSize,{x:_,y:O},[v,w],u,g),Z=wp(f,u.fontSize,d,[v,w],u,g,z),de=R("pattern",{id:N,x:a[0]/t,y:a[1]/r,width:n?v/t:"1",height:i?w/r:"1",patternUnits:"objectBoundingBox"},R("radialGradient",{id:I,...Z},T.map(ue=>R("stop",{offset:ue.offset||0,"stop-color":ue.color})).join(""))+R("mask",{id:W},R("rect",{x:0,y:0,width:v,height:w,fill:"#fff"}))+R("rect",{x:0,y:0,width:v,height:w,fill:((ve=T.at(-1))==null?void 0:ve.color)||"transparent"})+R(f,{cx:_,cy:O,width:v,height:w,...z,fill:`url(#${I})`,mask:`url(#${W})`}));return[N,de]}function yp(e,t,r,n){if(!r)return e;let i=t.at(-1);return!i||!i.offset||i.offset.unit==="%"?e:V(`${i.offset.value}${i.offset.unit}`,+n.fontSize,e,n,!0)}function xp(e,t,r,n,i,o){let s={x:r/2,y:n/2};return e.type==="keyword"?Object.assign(s,Ou(e.value,r,n,"x")):s.x=V(`${e.value.value}${e.value.unit}`,i,r,o,!0)??r/2,t.type==="keyword"?Object.assign(s,Ou(t.value,r,n,"y")):s.y=V(`${t.value.value}${t.value.unit}`,i,n,o,!0)??n/2,s}function Ou(e,t,r,n){switch(e){case"center":return{[n]:n==="x"?t/2:r/2};case"left":return{x:0};case"top":return{y:0};case"right":return{x:t};case"bottom":return{y:r}}}function wp(e,t,r,[n,i],o,s,a){let{r:u,rx:l,ratio:f=1}=a;if(!s)return{spreadMethod:"pad"};let d=r.at(-1),m=e==="circle"?u*2:l*2;return{spreadMethod:"repeat",cx:"50%",cy:"50%",r:d.offset.unit==="%"?`${Number(d.offset.value)*Math.min(i/n,1)/f}%`:Number(V(`${d.offset.value}${d.offset.unit}`,t,n,o,!0)/m)}}function Sp(e,t,r,n,i,o,s){let[a,u]=i,{x:l,y:f}=n,d={},m=0,h=0;if(_p(t)){if(t.some(g=>g.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"?Object.assign(d,{r:Number(V(`${t[0].value.value}${t[0].value.unit}`,r,a,o,!0))}):Object.assign(d,{rx:Number(V(`${t[0].value.value}${t[0].value.unit}`,r,a,o,!0)),ry:Number(V(`${t[1].value.value}${t[1].value.unit}`,r,u,o,!0))}),ui(d,a,u,l,f,s,e),d}switch(t[0].value){case"farthest-corner":m=Math.max(Math.abs(a-l),Math.abs(l)),h=Math.max(Math.abs(u-f),Math.abs(f));break;case"closest-corner":m=Math.min(Math.abs(a-l),Math.abs(l)),h=Math.min(Math.abs(u-f),Math.abs(f));break;case"farthest-side":return e==="circle"?d.r=Math.max(Math.abs(a-l),Math.abs(l),Math.abs(u-f),Math.abs(f)):(d.rx=Math.max(Math.abs(a-l),Math.abs(l)),d.ry=Math.max(Math.abs(u-f),Math.abs(f))),ui(d,a,u,l,f,s,e),d;case"closest-side":return e==="circle"?d.r=Math.min(Math.abs(a-l),Math.abs(l),Math.abs(u-f),Math.abs(f)):(d.rx=Math.min(Math.abs(a-l),Math.abs(l)),d.ry=Math.min(Math.abs(u-f),Math.abs(f))),ui(d,a,u,l,f,s,e),d}return e==="circle"?d.r=Math.sqrt(m*m+h*h):Object.assign(d,Au(m,h)),ui(d,a,u,l,f,s,e),d}function ui(e,t,r,n,i,o,s){if(o)if(s==="ellipse"){let a=Math.max(Math.abs(t-n),Math.abs(n)),u=Math.max(Math.abs(r-i),Math.abs(i)),{rx:l,ry:f}=Au(a,u);e.ratio=Math.max(l/e.rx,f/e.ry),e.ratio>1&&(e.rx*=e.ratio,e.ry*=e.ratio)}else{let a=Math.max(Math.abs(t-n),Math.abs(n)),u=Math.max(Math.abs(r-i),Math.abs(i)),l=Math.sqrt(a*a+u*u);e.ratio=l/e.r,e.ratio>1&&(e.r=l)}}function Au(e,t){let r=t!==0?e/t:1;if(e===0)return{rx:0,ry:0};{let n=Math.sqrt(e*e+t*t*r*r)/r;return{ry:n,rx:n*r}}}function _p(e){return!e.some(t=>t.type==="keyword")}import Ru from"parse-css-color";function mo(e,t){return typeof e=="string"&&e.endsWith("%")?t*parseFloat(e)/100:+e}function Tp(e,t,r,n,i){if(!n||!i)return[t,r];if(e==="cover"){let o=t/n,s=r/i,a=Math.max(o,s);return[n*a,i*a]}if(e==="contain"){let o=t/n,s=r/i,a=Math.min(o,s);return[n*a,i*a]}if(e==="auto"||e.includes("auto")){let o=e.split(" "),s=o[0]||"auto",a=o[1]||o[0]||"auto",u=n,l=i;if(s==="auto"&&a!=="auto"){let f=mo(a,r);l=f,u=n/i*f}else if(a==="auto"&&s!=="auto"){let f=mo(s,t);u=f,l=i/n*f}return[u,l]}return[t,r]}function ho(e,{x:t,y:r,defaultX:n,defaultY:i}){return(e?e.split(" ").map(o=>{try{let s=new _t(o);return s.type==="length"||s.type==="number"?s.value:s.value+s.unit}catch{return null}}).filter(o=>o!==null):[n,i]).map((o,s)=>mo(o,[t,r][s]))}async function Xr({id:e,width:t,height:r,left:n,top:i},{image:o,size:s,position:a,repeat:u},l,f){u=u||"repeat",f=f||"background";let d=u==="repeat-x"||u==="repeat",m=u==="repeat-y"||u==="repeat",h=s&&(s==="cover"||s==="contain"||s==="auto"||s.includes("auto")),g=o.startsWith("linear-gradient(")||o.startsWith("repeating-linear-gradient(")||o.startsWith("radial-gradient(")||o.startsWith("repeating-radial-gradient("),v=h&&g?[t,r]:h?[0,0]:ho(s,{x:t,y:r,defaultX:t,defaultY:r}),w=ho(a,{x:t,y:r,defaultX:0,defaultY:0});if(o.startsWith("linear-gradient(")||o.startsWith("repeating-linear-gradient("))return Pu({id:e,width:t,height:r,repeatX:d,repeatY:m},o,v,w,l,f);if(o.startsWith("radial-gradient(")||o.startsWith("repeating-radial-gradient("))return Iu({id:e,width:t,height:r,repeatX:d,repeatY:m},o,v,w,l,f);if(o.startsWith("url(")){let[_,O,x]=await Pr(o.slice(4,-1)),E,T;if(h){let[I,N]=Tp(s,t,r,O,x);E=I,T=N}else{let I=ho(s,{x:t,y:r,defaultX:0,defaultY:0});E=f==="mask"?O||I[0]:I[0]||O,T=f==="mask"?x||I[1]:I[1]||x}return[`satori_bi${e}`,R("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:w[0]+n,y:w[1]+i,width:d?E:"100%",height:m?T:"100%"},R("image",{x:0,y:0,width:E,height:T,preserveAspectRatio:"none",href:_}))]}if(Ru(o)){let _=Ru(o),[O,x,E,T]=_.values,N=`rgba(${O},${x},${E},${T!==void 0?T:1})`;return[`satori_bi${e}`,R("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:n,y:i,width:t,height:r},R("rect",{x:0,y:0,width:t,height:r,fill:N}))]}throw new Error(`Invalid background image: "${o}"`)}function Ep([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 li(e,t,r){return r<e+t&&(r/2<e&&r/2<t?e=t=r/2:r/2<e?e=r-t:r/2<t&&(t=r-e)),[e,t]}function fi(e){e[0]=e[1]=Math.min(e[0],e[1])}function ci(e,t,r,n,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(V(o[0],n,t,i,!0),t),Math.min(V(o[1],n,r,i,!0),r)]]}return typeof e=="number"?[!0,[Math.min(e,t),Math.min(e,r)]]:[!0,void 0]}var di=e=>e&&e[0]!==0&&e[1]!==0;function pi(e){return typeof e!="string"?1:oo(e)}function hi(e,t,r,n,i){if(i===1/0)return[e,r,t];if(i===-1/0)return[e,n,t];if(i===0)return[e,[(e[0]+t[0])/2,(e[1]+t[1])/2],t];let o=i<0?r:n,s=Math.pow(2,1-Math.abs(i));if(s===0)return i>0?[e,r,t]:[e,n,t];let a=[],u=16;for(let l=0;l<=u;l++){let f=Math.PI*l/u/2,d=Math.pow(Math.sin(f),s),m=Math.pow(Math.cos(f),s);a.push([o[0]+(t[0]-o[0])*d+(e[0]-o[0])*m,o[1]+(t[1]-o[1])*d+(e[1]-o[1])*m])}return a}function lr(e){return`${Math.round(e[0]*1e3)/1e3},${Math.round(e[1]*1e3)/1e3}`}function Cu(e,t,r,n){return Math.min(1,r/(e[0]+t[0]||r),n/(e[1]+t[1]||n))}function kp(e,t,r,n,i,o,s){s!=null&&s.every(Boolean)&&(s=void 0);let a=e+r,u=t+n,[l,f,d,m]=i,h=[hi([e,t+l[1]],[e+l[0],t],[e,t],[e+l[0],t+l[1]],o[0]),hi([a-f[0],t],[a,t+f[1]],[a,t],[a-f[0],t+f[1]],o[1]),hi([a,u-d[1]],[a-d[0],u],[a,u],[a-d[0],u-d[1]],o[2]),hi([e+m[0],u],[e,u-m[1]],[e,u],[e+m[0],u-m[1]],o[3])];if(s){let v=s.indexOf(!0);if(v===-1)throw new Error("Invalid `partialSides`.");for(;s[(v+3)%4];)v=(v+3)%4;let w=h[v],_=Math.floor(w.length/2),O=`M${lr(w[_])}`,x=v;do{let E=h[x],T=Math.floor(E.length/2);for(let W=T+1;W<E.length;W++)O+=` L${lr(E[W])}`;let I=h[(x+1)%4];O+=` L${lr(I[0])}`;let N=Math.floor(I.length/2);for(let W=1;W<=N;W++)O+=` L${lr(I[W])}`;x=(x+1)%4}while(s[x]&&x!==v);return O}let g=`M${lr(h[0][h[0].length-1])}`;for(let v=0;v<4;v++){let w=h[(v+1)%4];g+=` L${lr(w[0])}`;for(let _=1;_<w.length;_++)g+=` L${lr(w[_])}`}return g+" Z"}function Lu({id:e,borderRadiusPath:t,borderType:r,left:n,top:i,width:o,height:s},a){let u=`satori_brc-${e}`;return[R("clipPath",{id:u},R(r,{x:n,y:i,width:o,height:s,d:t||void 0})),u]}function Yt({left:e,top:t,width:r,height:n},i,o){let{borderTopLeftRadius:s,borderTopRightRadius:a,borderBottomLeftRadius:u,borderBottomRightRadius:l,fontSize:f}=i,d=[pi(i.cornerTopLeftShape),pi(i.cornerTopRightShape),pi(i.cornerBottomRightShape),pi(i.cornerBottomLeftShape)],m,h,g,v;if([m,s]=ci(s,r,n,f,i),[h,a]=ci(a,r,n,f,i),[g,u]=ci(u,r,n,f,i),[v,l]=ci(l,r,n,f,i),!o&&!di(s)&&!di(a)&&!di(u)&&!di(l))return"";if(s||=[0,0],a||=[0,0],u||=[0,0],l||=[0,0],[s[0],a[0]]=li(s[0],a[0],r),[u[0],l[0]]=li(u[0],l[0],r),[s[1],u[1]]=li(s[1],u[1],n),[a[1],l[1]]=li(a[1],l[1],n),m&&fi(s),h&&fi(a),g&&fi(u),v&&fi(l),d.some(T=>T<0)){let T=Math.min(Cu(s,l,r,n),Cu(a,u,r,n));if(T<1)for(let I of[s,a,l,u])I[0]*=T,I[1]*=T}if(d.some(T=>T!==1))return kp(e,t,r,n,[s,a,l,u],d,o);let w=[];w[0]=[a,a],w[1]=[l,[-l[0],l[1]]],w[2]=[u,[-u[0],-u[1]]],w[3]=[s,[s[0],-s[1]]];let _=`h${r-s[0]-a[0]} a${w[0][0]} 0 0 1 ${w[0][1]}`,O=`v${n-a[1]-l[1]} a${w[1][0]} 0 0 1 ${w[1][1]}`,x=`h${l[0]+u[0]-r} a${w[2][0]} 0 0 1 ${w[2][1]}`,E=`v${u[1]+s[1]-n} a${w[3][0]} 0 0 1 ${w[3][1]}`;if(o){let I=function(ve){let ue=Ep([s,a,l,u][ve]);return ve===0?[[e+s[0]-ue,t+s[1]-ue],[e+s[0],t]]:ve===1?[[e+r-a[0]+ue,t+a[1]-ue],[e+r,t+a[1]]]:ve===2?[[e+r-l[0]+ue,t+n-l[1]+ue],[e+r-l[0],t+n]]:[[e+u[0]-ue,t+n-u[1]+ue],[e,t+n-u[1]]]},T=o.indexOf(!1);if(!o.includes(!0))throw new Error("Invalid `partialSides`.");if(T===-1)T=0;else for(;!o[T];)T=(T+1)%4;let N="",W=I(T),z=`M${W[0]} A${w[(T+3)%4][0]} 0 0 1 ${W[1]}`,Z=0;for(;Z<4&&o[(T+Z)%4];Z++)N+=z+" ",z=[_,O,x,E][(T+Z)%4];let de=(T+Z)%4;N+=z.split(" ")[0];let we=I(de);return N+=` A${w[(de+3)%4][0]} 0 0 1 ${we[0]}`,N}return`M${e+s[0]},${t} ${_} ${O} ${x} ${E}`}function Mu(e,t,r){return r[e+"Width"]===r[t+"Width"]&&r[e+"Style"]===r[t+"Style"]&&r[e+"Color"]===r[t+"Color"]}function Nu({id:e,currentClipPathId:t,borderPath:r,borderType:n,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[R("clipPath",{id:f,"clip-path":t?`url(#${t})`:void 0},R(n,{x:i,y:o,width:s,height:a,d:r||void 0})),f]}function Qr({left:e,top:t,width:r,height:n,props:i,asContentMask:o,maskBorderOnly:s},a){let u=["borderTop","borderRight","borderBottom","borderLeft"];if(!o&&!u.some(h=>a[h+"Width"]))return"";let l="",f=0;for(;f>0&&Mu(u[f],u[(f+3)%4],a);)f=(f+3)%4;let d=[!1,!1,!1,!1],m=[];for(let h=0;h<4;h++){let g=(f+h)%4,v=(f+h+1)%4,w=u[g],_=u[v];if(d[g]=!0,m=[a[w+"Width"],a[w+"Style"],a[w+"Color"],w],!Mu(w,_,a)){let O=(m[0]||0)+(o&&!s&&a[w.replace("border","padding")]||0);O&&(l+=R("path",{width:r,height:n,...i,fill:"none",stroke:o?"#000":m[2],"stroke-width":O*2,"stroke-dasharray":!o&&m[1]==="dashed"?O*2+" "+O:void 0,d:Yt({left:e,top:t,width:r,height:n},a,d)})),d=[!1,!1,!1,!1]}}if(d.some(Boolean)){let h=(m[0]||0)+(o&&!s&&a[m[3].replace("border","padding")]||0);h&&(l+=R("path",{width:r,height:n,...i,fill:"none",stroke:o?"#000":m[2],"stroke-width":h*2,"stroke-dasharray":!o&&m[1]==="dashed"?h*2+" "+h:void 0,d:Yt({left:e,top:t,width:r,height:n},a,d)}))}return l}function go({id:e,left:t,top:r,width:n,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),d=(a.borderBottomWidth||0)+(s?0:a.paddingBottom||0),m={x:t+u,y:r+l,width:n-u-f,height:i-l-d};return R("mask",{id:e},R("rect",{...m,fill:"#fff",transform:a.overflow==="hidden"&&a.transform&&o?o:void 0,mask:a._inheritedMaskId?`url(#${a._inheritedMaskId})`:void 0})+Qr({left:t,top:r,width:n,height:i,props:{transform:o||void 0},asContentMask:!0,maskBorderOnly:s},a))}import{getStylesForProperty as Du}from"css-to-react-native";var yo={left:0,"x-start":0,center:.5,right:1,"x-end":1},xo={top:0,"y-start":0,center:.5,bottom:1,"y-end":1};function It(e){return Math.round(e*1e3)/1e3}function Wu(e,t,r,n){let i=e.match(/^shape\((.*)\)$/s);if(!i)return null;let o=Wt(i[1]),s=o.shift();if(!s)throw new Error("Invalid `shape()` value.");let a=s.match(/^(?:(nonzero|evenodd)\s+)?from\s+(.+)$/);if(!a)throw new Error("Invalid `shape()` starting point.");let u=a[1]||"nonzero",l=wo(Fu(a[2]),t,r,n),f=l,d=`M${It(l[0])},${It(l[1])}`;for(let m of o){let h=Fu(m),g=h.shift();if(g==="close"){if(h.length)throw new Error("Invalid `close` command in `shape()`.");d+=" Z",l=f;continue}if(g==="move"||g==="line"){let v=bo(h,l,t,r,n);d+=` ${g==="move"?"M":"L"}${It(v[0])},${It(v[1])}`,l=v,g==="move"&&(f=v);continue}if(g==="hline"||g==="vline"){let v=g==="hline"?0:1,w=h.shift(),_=h.shift();if(w!=="to"&&w!=="by"||!_||h.length)throw new Error(`Invalid \`${g}\` command in \`shape()\`.`);let O=v===0?t:r,x=v===0?yo:xo,E=w==="to"&&_ in x?x[_]*O:Xt(_,O,n);l=[...l],l[v]=w==="by"?l[v]+E:E,d+=` ${v===0?"H":"V"}${It(l[v])}`;continue}if(g==="curve"||g==="smooth"){let v=h.indexOf("with"),w=v===-1?h:h.slice(0,v),_=v===-1?[]:h.slice(v+1),O=w[0],x=bo(w,l,t,r,n);if(g==="curve"&&v===-1)throw new Error("A `curve` command requires a control point.");let E=Pp(_).map(T=>Op(T,l,x,t,r,n));if(g==="curve")if(E.length===1)d+=` Q${Bt(E[0])} ${Bt(x)}`;else if(E.length===2)d+=` C${Bt(E[0])} ${Bt(E[1])} ${Bt(x)}`;else throw new Error("A `curve` command accepts one or two control points.");else if(!E.length)d+=` T${Bt(x)}`;else if(E.length===1)d+=` S${Bt(E[0])} ${Bt(x)}`;else throw new Error("A `smooth` command accepts at most one control point.");l=x;continue}if(g==="arc"){let v=h.findIndex(W=>["of","cw","ccw","large","small","rotate"].includes(W)),w=v===-1?h:h.slice(0,v),_=v===-1?[]:h.slice(v),O=bo(w,l,t,r,n),x=0,E=0,T=0,I=0,N=0;for(let W=0;W<_.length;W++){let z=_[W];if(z==="of"){let Z=_[++W];if(!Z)throw new Error("Invalid `arc` radius in `shape()`.");let de=_[W+1],we=de&&!["cw","ccw","large","small","rotate"].includes(de);if(we&&W++,we)x=Xt(Z,t,n),E=Xt(de,r,n);else{let ve=Math.sqrt(t*t+r*r)/Math.sqrt(2);x=E=Xt(Z,ve,n)}}else if(z==="cw"||z==="ccw")N=z==="cw"?1:0;else if(z==="large"||z==="small")I=z==="large"?1:0;else if(z==="rotate"){let Z=_[++W];if(!Z)throw new Error("Invalid `arc` rotation in `shape()`.");let de=sr(Z);if(typeof de>"u")throw new Error("Invalid `arc` rotation in `shape()`.");T=de}else throw new Error("Invalid `arc` option in `shape()`.")}d+=` A${It(Math.abs(x))},${It(Math.abs(E))} ${It(T)} ${I} ${N} ${Bt(O)}`,l=O;continue}throw new Error(`Unsupported \`${g}\` command in \`shape()\`.`)}return{type:"path",d,"fill-rule":u}}function Fu(e){return e.trim().replace(/\//g," / ").split(/\s+/).filter(Boolean)}function Pp(e){if(!e.length)return[];let t=e.indexOf("/");return t===-1?[e]:[e.slice(0,t),e.slice(t+1)]}function bo(e,t,r,n,i){let o=e[0];if(o!=="to"&&o!=="by")throw new Error("A `shape()` command must use `to` or `by`.");let s=wo(e.slice(1),r,n,i);return o==="by"?[t[0]+s[0],t[1]+s[1]]:s}function Op(e,t,r,n,i,o){let s=e.indexOf("from"),a=s===-1?e:e.slice(0,s),u=s===-1?void 0:e[s+1];if(s!==-1&&(s+2!==e.length||!u))throw new Error("Invalid control point reference in `shape()`.");let l=wo(a,n,i,o,!0);return u==="start"||!u&&!Ip(e)?[t[0]+l[0],t[1]+l[1]]:u==="end"?[r[0]+l[0],r[1]+l[1]]:l}function wo(e,t,r,n,i=!1){if(!e.length||e.length>4)throw new Error("Invalid position in `shape()`.");let o,s,a=[...e];for(let u=0;u<a.length;u++){let l=a[u];if(l==="left"||l==="right"||l==="x-start"||l==="x-end"){let f=a[u+1];if(f&&!vo(f)){let d=Xt(f,t,n);o=l==="left"||l==="x-start"?d:t-d,u++}else o=yo[l]*t}else if(l==="top"||l==="bottom"||l==="y-start"||l==="y-end"){let f=a[u+1];if(f&&!vo(f)){let d=Xt(f,r,n);s=l==="top"||l==="y-start"?d:r-d,u++}else s=xo[l]*r}else if(l==="center")if(o===void 0)o=t/2;else if(s===void 0)s=r/2;else throw new Error("Invalid position in `shape()`.");else if(o===void 0)o=Xt(l,t,n);else if(s===void 0)s=Xt(l,r,n);else throw new Error("Invalid position in `shape()`.")}return!i&&e.length===1&&s===void 0&&(s=r/2),[o??(i?0:t/2),s??(i?0:r/2)]}function vo(e){return e in yo||e in xo}function Ip(e){return e.some(vo)}function Xt(e,t,r){let n=V(e,r.fontSize,t,r,!0);if(typeof n>"u")throw new Error(`Invalid length \`${e}\` in \`shape()\`.`);return n}function Bt(e){return`${It(e[0])},${It(e[1])}`}var Ir={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/,shape:/shape\((.+)\)/};function Uu({width:e,height:t},r,n){function i(f){let d=f.match(Ir.circle);if(!d)return null;let[,m]=d,[h,g=""]=m.split("at").map(_=>_.trim()),{x:v,y:w}=Bu(g,e,t);return{type:"circle",r:V(h,n.fontSize,Math.sqrt(Math.pow(e,2)+Math.pow(t,2))/Math.sqrt(2),n,!0),cx:V(v,n.fontSize,e,n,!0),cy:V(w,n.fontSize,t,n,!0)}}function o(f){let d=f.match(Ir.ellipse);if(!d)return null;let[,m]=d,[h,g=""]=m.split("at").map(x=>x.trim()),[v,w]=h.split(" "),{x:_,y:O}=Bu(g,e,t);return{type:"ellipse",rx:V(v||"50%",n.fontSize,e,n,!0),ry:V(w||"50%",n.fontSize,t,n,!0),cx:V(_,n.fontSize,e,n,!0),cy:V(O,n.fontSize,t,n,!0)}}function s(f){let d=f.match(Ir.path);if(!d)return null;let[m,h]=$u(d[1]);return{type:"path",d:h,"fill-rule":m}}function a(f){let d=f.match(Ir.polygon);if(!d)return null;let[m,h]=$u(d[1]);return{type:"polygon","fill-rule":m,points:h.split(",").map(g=>g.split(" ").map((v,w)=>V(v,n.fontSize,w===0?e:t,n,!0)).join(" ")).join(",")}}function u(f){let d=f.match(Ir.inset);if(!d)return null;let[m,h]=(d[1].includes("round")?d[1]:`${d[1].trim()} round 0`).split("round"),g=Du("borderRadius",h,!0),v=Object.values(g).map(T=>String(T)).map((T,I)=>V(T,n.fontSize,I===0||I===2?t:e,n,!0)||0),w=Object.values(Du("margin",m,!0)).map(T=>String(T)).map((T,I)=>V(T,n.fontSize,I===0||I===2?t:e,n,!0)||0),_=w[3],O=w[0],x=e-(w[1]+w[3]),E=t-(w[0]+w[2]);return v.some(T=>T>0)?{type:"path",d:Yt({left:_,top:O,width:x,height:E},{...r,...g})}:{type:"rect",x:_,y:O,width:x,height:E}}function l(f){return Ir.shape.test(f)?Wu(f,e,t,n):null}return{parseCircle:i,parseEllipse:o,parsePath:s,parsePolygon:a,parseInset:u,parseShape:l}}function $u(e){let[,t="nonzero",r]=e.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[t,r]}function Bu(e,t,r){let n=e.split(" "),i={x:n[0]||"50%",y:n[1]||"50%"};return n.forEach(o=>{o==="top"?i.y=0:o==="bottom"?i.y=r:o==="left"?i.x=0:o==="right"?i.x=t:o==="center"&&(i.x=t/2,i.y=r/2)}),i}function mi(e){return`satori_cp-${e}`}function qu(e){return`url(#${mi(e)})`}function zu(e,t,r){if(t.clipPath==="none")return"";let n=Uu(e,t,r),i=t.clipPath,o={type:""};for(let s of Object.keys(n))if(o=n[s](i),o)break;if(o){let{type:s,...a}=o;return R("clipPath",{id:mi(e.id),"clip-path":e.currentClipPath,transform:`translate(${e.left}, ${e.top})`},R(s,a))}return""}function So({left:e,top:t,width:r,height:n,path:i,matrix:o,id:s,currentClipPath:a,src:u},l,f){let d="",m=l.clipPath&&l.clipPath!=="none"?zu({left:e,top:t,width:r,height:n,path:i,id:s,matrix:o,currentClipPath:a,src:u},l,f):"";if(l.overflow!=="hidden"&&!u)d="";else{let g=m?`satori_ocp-${s}`:mi(s);d=R("clipPath",{id:g,"clip-path":a},R(i?"path":"rect",{x:e,y:t,width:r,height:n,d:i||void 0,transform:l.overflow==="hidden"&&l.transform&&o?o:void 0}))}let h=go({id:`satori_om-${s}`,left:e,top:t,width:r,height:n,matrix:o,borderOnly:!u},l);return m+d+h}var Ap=e=>`satori_mi-${e}`;async function _o(e,t,r){if(!t.maskImage)return["",""];let{left:n,top:i,width:o,height:s,id:a}=e,u=t.maskImage,l=u.length;if(!l)return["",""];let f=Ap(a),d="";for(let m=0;m<l;m++){let h=u[m],[g,v]=await Xr({id:`${f}-${m}`,left:n,top:i,width:o,height:s},h,r,"mask");d+=v+R("rect",{x:n,y:i,width:o,height:s,fill:`url(#${g})`})}return d=R("mask",{id:f},d),[f,d]}function Gu({id:e,left:t,top:r,width:n,height:i,path:o,type:s,matrix:a,currentClipPath:u,mask:l,filters:f}){if(!f.length)return["",""];let d=`satori_bf-${e}`,m=`satori_bfc-${e}`,h=Cp(f),g="BackgroundImage",v="";f.forEach((O,x)=>{let E=`${d}-${x}`;v+=Rp(O,g,E),g=E});let w=R("filter",{id:d,x:t-h.left,y:r-h.top,width:n+h.left+h.right,height:i+h.top+h.bottom,filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},v)+R("clipPath",{id:m,"clip-path":u},R(s,{x:t,y:r,width:n,height:i,d:o||void 0,transform:a||void 0})),_=R(s,{x:t,y:r,width:n,height:i,d:o||void 0,fill:"#000",transform:a||void 0,filter:`url(#${d})`,"clip-path":`url(#${m})`,mask:l});return[w,_]}function Rp(e,t,r){if(e.type==="blur")return R("feGaussianBlur",{in:t,stdDeviation:e.value,result:r});if(e.type==="hue-rotate")return R("feColorMatrix",{in:t,type:"hueRotate",values:e.value,result:r});if(e.type==="saturate"||e.type==="grayscale")return R("feColorMatrix",{in:t,type:"saturate",values:e.type==="grayscale"?1-e.value:e.value,result:r});if(e.type==="sepia"){let s=e.value,a=1-s;return R("feColorMatrix",{in:t,type:"matrix",values:[a+.393*s,.769*s,.189*s,0,0,.349*s,a+.686*s,.168*s,0,0,.272*s,.534*s,a+.131*s,0,0,0,0,0,1,0].join(" "),result:r})}if(e.type==="drop-shadow"){let s=`${r}-input`;return R("feComposite",{in:t,in2:"SourceAlpha",operator:"in",result:s})+R("feDropShadow",{in:s,dx:e.offsetX,dy:e.offsetY,stdDeviation:e.blurRadius,"flood-color":e.color,result:r})}let n=e.value,i=e.type==="brightness"?{slope:n}:e.type==="contrast"?{slope:n,intercept:.5-.5*n}:e.type==="invert"?{slope:1-2*n,intercept:n}:{slope:n},o=e.type==="opacity"?["A"]:["R","G","B"];return R("feComponentTransfer",{in:t,result:r},o.map(s=>R(`feFunc${s}`,{type:"linear",...i})).join(""))}function Cp(e){let t=0,r=0,n=0,i=0;for(let o of e)if(o.type==="blur"){let s=o.value*3;t=Math.max(t,s),r=Math.max(r,s),n=Math.max(n,s),i=Math.max(i,s)}else if(o.type==="drop-shadow"){let s=o.blurRadius*3;t=Math.max(t,s-o.offsetX),r=Math.max(r,s-o.offsetY),n=Math.max(n,s+o.offsetX),i=Math.max(i,s+o.offsetY)}return{left:t,top:r,right:n,bottom:i}}function Lp(e,t,r){let n=e.toLowerCase().trim().split(/\s+/),i=(u,l)=>({left:"0%",center:"50%",right:"100%",top:"0%",bottom:"100%"})[u]||u,o,s;if(n.length===1){let u=n[0];u==="left"||u==="center"||u==="right"?(o=i(u,"x"),s="50%"):u==="top"||u==="bottom"?(o="50%",s=i(u,"y")):(o=u,s="50%")}else{let u=n[0],l=n[1];u==="top"||u==="bottom"?(s=i(u,"y"),l==="left"||l==="right"||l==="center"?o=i(l,"x"):(o="50%",s=u==="top"||u==="bottom"?i(u,"y"):l)):(o=i(u,"x"),s=i(l,"y"))}let a=(u,l)=>{try{if(u.endsWith("%"))return l*parseFloat(u)/100;let f=new _t(u);return f.type==="length"||f.type==="number"?f.value:0}catch{return 0}};return[a(o,t),a(s,r)]}async function Kr({id:e,left:t,top:r,width:n,height:i,isInheritingTransform:o,src:s,debug:a},u,l){if(u.display==="none")return"";let f=!!s,d="rect",m="",h="",g=[],v=1,w="";u.backgroundColor&&g.push(u.backgroundColor),u.opacity!==void 0&&(v=+u.opacity),u.transform&&(m=Yr({left:t,top:r,width:n,height:i},u.transform,o,u.transformOrigin));let _="";if(u.backgroundImage){let te=[];for(let J=0;J<u.backgroundImage.length;J++){let ot=u.backgroundImage[J],He=await Xr({id:e+"_"+J,width:n,height:i,left:t,top:r},ot,l);He&&te.unshift(He)}for(let J of te)g.push(`url(#${J[0]})`),h+=J[1],J[2]&&(_+=J[2])}let[O,x]=await _o({id:e,left:t,top:r,width:n,height:i},u,l);h+=x;let E=O?`url(#${O})`:u._inheritedMaskId?`url(#${u._inheritedMaskId})`:void 0,T=Yt({left:t,top:r,width:n,height:i},u);T&&(d="path");let I=u._inheritedClipPathId;a&&(w=R("rect",{x:t,y:r,width:n,height:i,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:m||void 0,"clip-path":I?`url(#${I})`:void 0}));let{backgroundClip:N,filter:W}=u,z=N==="text"?`url(#satori_bct-${e})`:I?`url(#${I})`:u.clipPath?qu(e):void 0,Z=So({left:t,top:r,width:n,height:i,path:T,id:e,matrix:m,currentClipPath:z,src:s},u,l),[de,we]=Gu({id:e,left:t,top:r,width:n,height:i,path:T,type:d,matrix:m||void 0,currentClipPath:z,mask:E,filters:u._backdropFilters||[]});h+=de;let ve=g.map(te=>R(d,{x:t,y:r,width:n,height:i,fill:te,d:T||void 0,transform:m||void 0,"clip-path":u.transform?void 0:z,style:W?`filter:${W}`:void 0,mask:u.transform?void 0:E})).join(""),ue=Nu({id:e,left:t,top:r,width:n,height:i,currentClipPathId:I,borderPath:T,borderType:d},u),Se;if(f){let te=(u.borderLeftWidth||0)+(u.paddingLeft||0),J=(u.borderTopWidth||0)+(u.paddingTop||0),ot=(u.borderRightWidth||0)+(u.paddingRight||0),He=(u.borderBottomWidth||0)+(u.paddingBottom||0),ye=n-te-ot,Re=i-J-He,Ze=(u.objectPosition||"center").toString(),[le,X]=Lp(Ze,ye,Re),ee=u.__naturalWidth||ye,me=u.__naturalHeight||Re,G,_e=ye,Ie=Re,Ye=t+te,Be=r+J;if(u.objectFit==="contain"){let pe=ye/ee,Ue=Re/me,Ce=Math.min(pe,Ue);_e=ee*Ce,Ie=me*Ce,Ye=t+te+le-_e*le/ye,Be=r+J+X-Ie*X/Re,G="none"}else if(u.objectFit==="cover"){let pe=ye/ee,Ue=Re/me,Ce=Math.max(pe,Ue);_e=ee*Ce,Ie=me*Ce,Ye=t+te+le-_e*le/ye,Be=r+J+X-Ie*X/Re,G="none"}else if(u.objectFit==="fill")G="none";else if(u.objectFit==="scale-down")if(ee&&me){let pe=ye/ee,Ue=Re/me,Ce=Math.min(pe,Ue);if(Ce>=1)_e=ee,Ie=me,G="none",Ye=t+te+le-_e*le/ye,Be=r+J+X-Ie*X/Re;else{let et=Ce;_e=ee*et,Ie=me*et,Ye=t+te+le-_e*le/ye,Be=r+J+X-Ie*X/Re,G="none"}}else{let pe=ye/ee,Ue=Re/me,Ce=Math.min(pe,Ue);_e=ee*Ce,Ie=me*Ce,Ye=t+te+le-_e*le/ye,Be=r+J+X-Ie*X/Re,G="none"}else G="none";u.transform&&(Se=Lu({id:e,borderRadiusPath:T,borderType:d,left:t,top:r,width:n,height:i},u)),ve+=R("image",{x:Ye,y:Be,width:_e,height:Ie,href:s,preserveAspectRatio:G,transform:m||void 0,style:W?`filter:${W}`:void 0,"clip-path":u.transform?Se?`url(#${Se[1]})`:void 0:`url(#satori_cp-${e})`,mask:u.transform?void 0:O?`url(#${O})`:`url(#satori_om-${e})`})}if(ue){h+=ue[0];let te=ue[1];ve+=Qr({left:t,top:r,width:n,height:i,props:{transform:m||void 0,"clip-path":`url(#${te})`}},u)}let Me=Su({width:n,height:i,id:e,opacity:v,shape:R(d,{x:t,y:r,width:n,height:i,fill:"#fff",stroke:"#fff","stroke-width":0,d:T||void 0,transform:m||void 0,"clip-path":z,mask:E})},u);return(h?R("defs",{},h):"")+(Me?Me[0]:"")+(Se?Se[0]:"")+Z+(v!==1?`<g opacity="${v}">`:"")+(u.transform&&(z||E)?`<g${z?` clip-path="${z}"`:""}${E?` mask="${E}"`:""}>`:"")+we+(_||ve)+(u.transform&&(z||E)?"</g>":"")+(v!==1?"</g>":"")+(Me?Me[1]:"")+w}var Vu=String.raw,ju=Vu`\p{Emoji}(?:\p{EMod}|[\u{E0020}-\u{E007E}]+\u{E007F}|\uFE0F?\u20E3?)`,Hu=()=>new RegExp(Vu`\p{RI}{2}|(?)${ju}(?:\u200D${ju})*`,"gu");var Mp=new RegExp(Hu(),"u"),To={emoji:Mp,symbol:/\p{Symbol}/u,math:/\p{Math}/u},Eo={"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},gi=Object.keys({...Eo,...To});function Yu(e){return gi.includes(e)}function Xu(e,t){for(let n of Object.keys(To))if(To[n].test(e))return[n];let r=Object.keys(Eo).filter(n=>Eo[n].test(e));if(r.length===0)return["unknown"];if(t){let n=r.findIndex(i=>i===t);n!==-1&&(r.splice(n,1),r.unshift(t))}return r}function Qu(e){if(e)return gi.find(t=>t.toLowerCase().startsWith(e.toLowerCase()))}async function*Jr(e,t){var le;let r=await Vt(),{id:n,inheritedStyle:i,parent:o,font:s,debug:a,locale:u,embedFont:l=!0,graphemeImages:f,canLoadAdditionalAssets:d,getTwStyles:m}=t;if(e===null||typeof e>"u")return yield,yield,"";if(!wr(e)||Oa(e.type)){let X;if(!wr(e))X=po(String(e),t),yield(await X.next()).value;else{if(Pa(e.type))throw new Error("Class component is not supported.");let me;qi(e.type)?me=e.type.render:me=e.type,X=Jr(await me(e.props),t),yield(await X.next()).value}await X.next();let ee=yield;return(await X.next(ee)).value}let{type:h,props:g}=e,v=h;if(g&&Ia(g))throw new Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:w,children:_,tw:O,lang:x=u}=g||{},E=Qu(x);if(O){let X=m(O,w);w=Object.assign(X,w)}let T=r.Node.create();o.insertChild(T,o.getChildCount());let[I,N]=await so(T,v,i,w,g),W=I.transform===i.transform;if(W||(I.transform.__parent=i.transform),(I.overflow==="hidden"||I.clipPath&&I.clipPath!=="none")&&(N._inheritedClipPathId=`satori_cp-${n}`,N._inheritedMaskId=`satori_om-${n}`),I.maskImage&&(N._inheritedMaskId=`satori_mi-${n}`),I.backgroundClip==="text"){let X={value:""};N._inheritedBackgroundClipTextPath=X,I._inheritedBackgroundClipTextPath=X,I.backgroundImage&&(N._inheritedBackgroundClipTextHasBackground="true",I._inheritedBackgroundClipTextHasBackground="true")}let z=Aa(_),Z=[],de=0,we=[];for(let X of z){let ee=Jr(X,{id:n+"-"+de++,parentStyle:I,inheritedStyle:N,isInheritingTransform:!0,parent:T,font:s,embedFont:l,debug:a,graphemeImages:f,canLoadAdditionalAssets:d,locale:E,getTwStyles:m,onNodeDetected:t.onNodeDetected});d?we.push(...(await ee.next()).value||[]):await ee.next(),Z.push(ee)}yield we;for(let X of Z)await X.next();let[ve,ue]=yield,{left:Se,top:Me,width:te,height:J}=T.getComputedLayout();Se+=ve,Me+=ue;let ot="",He="",ye="",{children:Re,...Ze}=g;if((le=t.onNodeDetected)==null||le.call(t,{left:Se,top:Me,width:te,height:J,type:v,props:Ze,key:e.key,textContent:wr(Re)?void 0:Re}),v==="img"){let X=I.__src;He=await Kr({id:n,left:Se,top:Me,width:te,height:J,src:X,isInheritingTransform:W,debug:a},I,N)}else if(v==="svg"){let X=I.color,ee=await su(e,X);He=await Kr({id:n,left:Se,top:Me,width:te,height:J,src:ee,isInheritingTransform:W,debug:a},I,N)}else{let X=w==null?void 0:w.display;if(v==="div"&&_&&typeof _!="string"&&X!=="flex"&&X!=="none"&&X!=="contents")throw new Error('Expected <div> to have explicit "display: flex", "display: contents", or "display: none" if it has more than one child node.');He=await Kr({id:n,left:Se,top:Me,width:te,height:J,isInheritingTransform:W,debug:a},I,N)}for(let X of Z)ot+=(await X.next([Se,Me])).value;return I._inheritedBackgroundClipTextPath&&(ye+=R("clipPath",{id:`satori_bct-${n}`,"clip-path":I._inheritedClipPathId?`url(#${I._inheritedClipPathId})`:void 0},I._inheritedBackgroundClipTextPath.value)),ye+He+ot}import Zr from"@shuding/opentype.js";var Ku="unknown";function Np(e){let t=[],r=[0,0],n=[0,0],i=(o,s)=>{let a=o[0];for(let u=1;u<=s;u++){let l=u/s,f=Fp(o,l);t.push({from:a,to:f}),a=f}n=o[o.length-1]};for(let o of e){if(o.type==="M"){r=n=[o.x,o.y];continue}if(o.type==="L"){let s=[o.x,o.y];t.push({from:n,to:s}),n=s;continue}if(o.type==="Q"){i([n,[o.x1,o.y1],[o.x,o.y]],12);continue}if(o.type==="C"){i([n,[o.x1,o.y1],[o.x2,o.y2],[o.x,o.y]],16);continue}o.type==="Z"&&(t.push({from:n,to:r}),n=r)}return t}function Fp(e,t){let r=e;for(;r.length>1;){let n=[];for(let i=0;i<r.length-1;i++)n.push([r[i][0]+(r[i+1][0]-r[i][0])*t,r[i][1]+(r[i+1][1]-r[i][1])*t]);r=n}return r[0]}function Wp(e,t){if(!t)return[];let r=t.strokeWidth,n=t.underlineY-r*.25,i=t.underlineY+r*2.5,o=Np(e);if(!o.length)return[];let s=i-n,a=Math.max(12,Math.ceil(s/.25)),u=s/a,l=n+u/2,f=new Set;for(let x=0;x<a;x++){let E=l+u*x,T=[];for(let I of o){let[N,W]=I.from,[z,Z]=I.to;if(W===Z)continue;let de=Math.min(W,Z),we=Math.max(W,Z);if(E<de||E>=we)continue;let ve=(E-W)/(Z-W),ue=N+(z-N)*ve;T.push(ue)}if(T.length){T.sort((I,N)=>I-N);for(let I=0;I<T.length-1;I+=2){let N=Math.min(T[I],T[I+1]),W=Math.max(T[I],T[I+1]),z=Math.floor(N),Z=Math.ceil(W);for(let de=z;de<Z;de++)f.add(de)}}}if(!f.size)return[];let d=Array.from(f.values()).sort((x,E)=>x-E),m=[],h=d[0],g=d[0];for(let x=1;x<d.length;x++){let E=d[x];E>g+1&&(m.push([h,g+1]),h=E),g=E}m.push([h,g+1]);let v=[],w=r*.6,_=m[0][0],O=m[m.length-1][1];for(let[x,E]of m){let T=Math.min(x,_)-w,I=Math.max(E,O)+w;v.push({x1:T,x2:I,y1:n,y2:i})}return v}function Dp(e,t,[r,n],[i,o]){if(r!==i)return r?!i||r===e?-1:i===e?1:e===400&&r===500||e===500&&r===400?-1:e===400&&i===500||e===500&&i===400?1:e<400?r<e&&i<e?i-r:r<e?-1:i<e?1:r-i:e<r&&e<i?r-i:e<r?-1:e<i?1:i-r:1;if(n!==o){if(n===t)return-1;if(o===t)return 1}return-1}var ko=new WeakMap,en=class{constructor(t){this.fonts=new Map;this.addFonts(t)}get({name:t,weight:r,style:n}){if(!this.fonts.has(t))return null;r==="normal"&&(r=400),r==="bold"&&(r=700),typeof r=="string"&&(r=Number.parseInt(r,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];Dp(r,n,[a,u],[l,f])>0&&(o=i[s])}return o[0]}addFonts(t){for(let r of t){let{name:n,data:i,lang:o}=r;if(o&&!Yu(o))throw new Error(`Invalid value for props \`lang\`: "${o}". The value must be one of the following: ${gi.join(", ")}.`);let s=o??Ku,a;if(ko.has(i))a=ko.get(i);else{a=Zr.parse("buffer"in i?i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength):i,{lowMemory:!0});let l=a.charToGlyphIndex;a.charToGlyphIndex=f=>{let d=l.call(a,f);return d===0&&a._trackBrokenChars&&a._trackBrokenChars.push(f),d},ko.set(i,a)}this.defaultFont||(this.defaultFont=a);let u=`${n.toLowerCase()}_${s}`;this.fonts.has(u)||this.fonts.set(u,[]),this.fonts.get(u).push([a,r.weight,r.style])}}getEngine(t=16,r="normal",{fontFamily:n="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.");n=(Array.isArray(n)?n:[n]).map(x=>x.toLowerCase());let a=[];n.forEach(x=>{let E=this.get({name:x,weight:i,style:o});if(E){a.push(E);return}let T=this.get({name:x+"_unknown",weight:i,style:o});if(T){a.push(T);return}});let u=Array.from(this.fonts.keys()),l=[],f=[],d=[];for(let x of u)if(!n.includes(x))if(s){let E=$p(x);E?E===s?l.push(this.get({name:x,weight:i,style:o})):f.push(this.get({name:x,weight:i,style:o})):d.push(this.get({name:x,weight:i,style:o}))}else d.push(this.get({name:x,weight:i,style:o}));let m=new Map,h=(x,E=!0)=>{let T=[...a,...d,...l,...E?f:[]];if(typeof x>"u")return E?T[T.length-1]:void 0;let I=x.charCodeAt(0);if(m.has(I))return m.get(I);let N=T.find((W,z)=>!!W.charToGlyphIndex(x)||E&&z===T.length-1);return N&&m.set(I,N),N},g=(x,E=!1)=>{var I,N;return((E?(N=(I=x.tables)==null?void 0:I.os2)==null?void 0:N.sTypoAscender:0)||x.ascender)/x.unitsPerEm*t},v=(x,E=!1)=>{var I,N;return((E?(N=(I=x.tables)==null?void 0:I.os2)==null?void 0:N.sTypoDescender:0)||x.descender)/x.unitsPerEm*t},w=(x,E=!1)=>{var T,I;if(typeof r=="string"&&r==="normal"){let N=(E?(I=(T=x.tables)==null?void 0:T.os2)==null?void 0:I.sTypoLineGap:0)||0;return g(x,E)-v(x,E)+N/x.unitsPerEm*t}else if(typeof r=="number")return t*r},_=x=>h(x,!1);return{has:x=>{if(x===`
|
|
7
|
+
`)return!0;let E=_(x);return E?(E._trackBrokenChars=[],E.stringToGlyphs(x),E._trackBrokenChars.length?(E._trackBrokenChars=void 0,!1):!0):!1},baseline:(x,E=typeof x>"u"?a[0]:h(x))=>{let T=g(E),I=v(E),N=T-I;return T+(w(E)-N)/2},height:(x,E=typeof x>"u"?a[0]:h(x))=>w(E),measure:(x,E)=>this.measure(h,x,E),getSVG:(x,E,T)=>this.getSVG(h,x,E,T)}}patchFontFallbackResolver(t,r){let n=[];t._trackBrokenChars=n;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=n.shift(),f=r(l);if(f!==t){let d=f.charToGlyph(l),m=t.unitsPerEm/f.unitsPerEm,h=new Zr.Path;h.unitsPerEm=t.unitsPerEm,h.commands=d.path.commands.map(v=>{let w={...v};for(let _ in w)typeof w[_]=="number"&&(w[_]*=m);return w});let g=new Zr.Glyph({...d,advanceWidth:d.advanceWidth*m,xMin:d.xMin*m,xMax:d.xMax*m,yMin:d.yMin*m,yMax:d.yMax*m,path:h});a[u]=g}}return a},()=>{t.stringToGlyphs=i,t._trackBrokenChars=void 0}}measure(t,r,{fontSize:n,letterSpacing:i=0}){let o=t(r),s=this.patchFontFallbackResolver(o,t);try{return o.getAdvanceWidth(r,n,{letterSpacing:i/n})}finally{s()}}getSVG(t,r,{fontSize:n,top:i,left:o,letterSpacing:s=0},a){let u=t(r),l=this.patchFontFallbackResolver(u,t);try{if(n===0)return{path:"",boxes:[]};let f=new Zr.Path,d=[],m={letterSpacing:s/n},h=new WeakMap;return u.forEachGlyph(r.replace(/\n/g,""),o,i,n,m,function(g,v,w,_){let O;if(!h.has(g))O=g.getPath(v,w,_,m),h.set(g,[v,w,O]);else{let[E,T,I]=h.get(g);O=new Zr.Path,O.commands=I.commands.map(N=>{let W={...N};for(let z in W)typeof W[z]=="number"&&((z==="x"||z==="x1"||z==="x2")&&(W[z]+=v-E),(z==="y"||z==="y1"||z==="y2")&&(W[z]+=w-T));return W})}let x=a?Wp(O.commands,a):[];x.length&&d.push(...x),f.extend(O)}),{path:f.toPathData(1),boxes:d}}finally{l()}}};function $p(e){let t=e.split("_"),r=t[t.length-1];return r===Ku?void 0:r}function Po({width:e,height:t,content:r}){return R("svg",{width:e,height:t,viewBox:`0 0 ${e} ${t}`,xmlns:"http://www.w3.org/2000/svg","enable-background":r.includes('in="BackgroundImage"')?"new":void 0},r)}var Rc=jc(uc());var Ev=["ios","android","windows","macos","web"];function fc(e){return Ev.includes(e)}var kv=["portrait","landscape"];function cc(e){return kv.includes(e)}var lc;(function(e){e.fontSize="fontSize",e.lineHeight="lineHeight"})(lc||(lc={}));var se;(function(e){e.rem="rem",e.em="em",e.px="px",e.percent="%",e.vw="vw",e.vh="vh",e.none="<no-css-unit>"})(se||(se={}));function Zs(e){return typeof e=="string"}function ea(e){return typeof e=="object"}var ta;function k(e){return{kind:"complete",style:e}}function We(e,t={}){let{fractions:r}=t;if(r&&e.includes("/")){let[o="",s=""]=e.split("/",2),a=We(o),u=We(s);return!a||!u?null:[a[0]/u[0],u[1]]}let n=parseFloat(e);if(Number.isNaN(n))return null;let i=e.match(/(([a-z]{2,}|%))$/);if(!i)return[n,se.none];switch(i==null?void 0:i[1]){case"rem":return[n,se.rem];case"px":return[n,se.px];case"em":return[n,se.em];case"%":return[n,se.percent];case"vw":return[n,se.vw];case"vh":return[n,se.vh];default:return null}}function zt(e,t,r={}){let n=Rt(t,r);return n===null?null:k({[e]:n})}function Mi(e,t,r){let n=Rt(t);return n!==null&&(r[e]=n),r}function pc(e,t){let r=Rt(t);return r===null?null:{[e]:r}}function Rt(e,t={}){if(e===void 0)return null;let r=We(String(e),t);return r?Zt(...r,t):null}function Zt(e,t,r={}){let{isNegative:n,device:i}=r;switch(t){case se.rem:return e*16*(n?-1:1);case se.px:return e*(n?-1:1);case se.percent:return`${n?"-":""}${e}%`;case se.none:return e*(n?-1:1);case se.vw:return i!=null&&i.windowDimensions?i.windowDimensions.width*(e/100):(Je("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case se.vh:return i!=null&&i.windowDimensions?i.windowDimensions.height*(e/100):(Je("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function ra(e){let t=We(e);if(!t)return null;let[r,n]=t;switch(n){case se.rem:return r*16;case se.px:return r;default:return null}}var Pv={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function na(e){return Pv[e??""]||"All"}function ia(e){let t="All";return[e.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(n,i)=>(t=na(i),"")),t]}function hr(e,t={}){if(e.includes("/")){let r=dc(e,{...t,fractions:!0});if(r)return r}return e[0]==="["&&(e=e.slice(1,-1)),dc(e,t)}function mt(e,t,r={}){let n=hr(t,r);return n===null?null:k({[e]:n})}function dc(e,t={}){if(e==="px")return 1;let r=We(e,t);if(!r)return null;let[n,i]=r;return t.fractions&&(i=se.percent,n*=100),i===se.none&&(n=n/4,i=se.rem),Zt(n,i,t)}function Ov(...e){console.warn(...e)}function Iv(...e){}var Je=typeof process>"u"||((ta=process==null?void 0:process.env)===null||ta===void 0?void 0:ta.JEST_WORKER_ID)===void 0?Ov:Iv;var Av=[["aspect-square",k({aspectRatio:1})],["aspect-video",k({aspectRatio:16/9})],["items-center",k({alignItems:"center"})],["items-start",k({alignItems:"flex-start"})],["items-end",k({alignItems:"flex-end"})],["items-baseline",k({alignItems:"baseline"})],["items-stretch",k({alignItems:"stretch"})],["justify-start",k({justifyContent:"flex-start"})],["justify-end",k({justifyContent:"flex-end"})],["justify-center",k({justifyContent:"center"})],["justify-between",k({justifyContent:"space-between"})],["justify-around",k({justifyContent:"space-around"})],["justify-evenly",k({justifyContent:"space-evenly"})],["content-start",k({alignContent:"flex-start"})],["content-end",k({alignContent:"flex-end"})],["content-between",k({alignContent:"space-between"})],["content-around",k({alignContent:"space-around"})],["content-stretch",k({alignContent:"stretch"})],["content-center",k({alignContent:"center"})],["self-auto",k({alignSelf:"auto"})],["self-start",k({alignSelf:"flex-start"})],["self-end",k({alignSelf:"flex-end"})],["self-center",k({alignSelf:"center"})],["self-stretch",k({alignSelf:"stretch"})],["self-baseline",k({alignSelf:"baseline"})],["direction-inherit",k({direction:"inherit"})],["direction-ltr",k({direction:"ltr"})],["direction-rtl",k({direction:"rtl"})],["hidden",k({display:"none"})],["flex",k({display:"flex"})],["flex-row",k({flexDirection:"row"})],["flex-row-reverse",k({flexDirection:"row-reverse"})],["flex-col",k({flexDirection:"column"})],["flex-col-reverse",k({flexDirection:"column-reverse"})],["flex-wrap",k({flexWrap:"wrap"})],["flex-wrap-reverse",k({flexWrap:"wrap-reverse"})],["flex-nowrap",k({flexWrap:"nowrap"})],["flex-auto",k({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",k({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",k({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",k({overflow:"hidden"})],["overflow-visible",k({overflow:"visible"})],["overflow-scroll",k({overflow:"scroll"})],["absolute",k({position:"absolute"})],["relative",k({position:"relative"})],["italic",k({fontStyle:"italic"})],["not-italic",k({fontStyle:"normal"})],["oldstyle-nums",Cn("oldstyle-nums")],["small-caps",Cn("small-caps")],["lining-nums",Cn("lining-nums")],["tabular-nums",Cn("tabular-nums")],["proportional-nums",Cn("proportional-nums")],["font-thin",k({fontWeight:"100"})],["font-100",k({fontWeight:"100"})],["font-extralight",k({fontWeight:"200"})],["font-200",k({fontWeight:"200"})],["font-light",k({fontWeight:"300"})],["font-300",k({fontWeight:"300"})],["font-normal",k({fontWeight:"normal"})],["font-400",k({fontWeight:"400"})],["font-medium",k({fontWeight:"500"})],["font-500",k({fontWeight:"500"})],["font-semibold",k({fontWeight:"600"})],["font-600",k({fontWeight:"600"})],["font-bold",k({fontWeight:"bold"})],["font-700",k({fontWeight:"700"})],["font-extrabold",k({fontWeight:"800"})],["font-800",k({fontWeight:"800"})],["font-black",k({fontWeight:"900"})],["font-900",k({fontWeight:"900"})],["include-font-padding",k({includeFontPadding:!0})],["remove-font-padding",k({includeFontPadding:!1})],["max-w-none",k({maxWidth:"99999%"})],["text-left",k({textAlign:"left"})],["text-center",k({textAlign:"center"})],["text-right",k({textAlign:"right"})],["text-justify",k({textAlign:"justify"})],["text-auto",k({textAlign:"auto"})],["underline",k({textDecorationLine:"underline"})],["line-through",k({textDecorationLine:"line-through"})],["no-underline",k({textDecorationLine:"none"})],["uppercase",k({textTransform:"uppercase"})],["lowercase",k({textTransform:"lowercase"})],["capitalize",k({textTransform:"capitalize"})],["normal-case",k({textTransform:"none"})],["w-auto",k({width:"auto"})],["h-auto",k({height:"auto"})],["shadow-sm",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.025,elevation:1})],["shadow",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.075,elevation:2})],["shadow-md",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:.125,elevation:3})],["shadow-lg",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.15,shadowRadius:8,elevation:8})],["shadow-xl",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.19,shadowRadius:20,elevation:12})],["shadow-2xl",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.25,shadowRadius:30,elevation:16})],["shadow-none",k({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],oa=Av;function Cn(e){return{kind:"dependent",complete(t){(!t.fontVariant||!Array.isArray(t.fontVariant))&&(t.fontVariant=[]),t.fontVariant.push(e)}}}var Ln=class{constructor(t){this.ir=new Map(oa),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...oa,...t??[]])}getStyle(t){return this.styles.get(t)}setStyle(t,r){this.styles.set(t,r)}getIr(t){return this.ir.get(t)}setIr(t,r){this.ir.set(t,r)}getPrefixMatch(t){return this.prefixes.get(t)}setPrefixMatch(t,r){this.prefixes.set(t,r)}};function sa(e,t,r={}){let n=t==null?void 0:t[e];if(!n)return mt("fontSize",e,r);if(typeof n=="string")return zt("fontSize",n);let i={},[o,s]=n,a=pc("fontSize",o);if(a&&(i=a),typeof s=="string")return k(Mi("lineHeight",hc(s,i),i));let{lineHeight:u,letterSpacing:l}=s;return u&&Mi("lineHeight",hc(u,i),i),l&&Mi("letterSpacing",l,i),k(i)}function hc(e,t){let r=We(e);if(r){let[n,i]=r;if((i===se.none||i===se.em)&&typeof t.fontSize=="number")return t.fontSize*n}return e}function aa(e,t){var r;let n=(r=t==null?void 0:t[e])!==null&&r!==void 0?r:e.startsWith("[")?e.slice(1,-1):e,i=We(n);if(!i)return null;let[o,s]=i;if(s===se.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=Zt(o,s);return a!==null?k({lineHeight:a}):null}function ua(e,t,r,n,i){let o="";if(n[0]==="[")o=n.slice(1,-1);else{let l=i==null?void 0:i[n];if(l)o=l;else{let f=hr(n);return f&&typeof f=="number"?mc(f,se.px,t,e):null}}if(o==="auto")return gc(t,e,"auto");let s=We(o);if(!s)return null;let[a,u]=s;return r&&(a=-a),mc(a,u,t,e)}function mc(e,t,r,n){let i=Zt(e,t);return i===null?null:gc(r,n,i)}function gc(e,t,r){switch(e){case"All":return{kind:"complete",style:{[`${t}Top`]:r,[`${t}Right`]:r,[`${t}Bottom`]:r,[`${t}Left`]:r}};case"Bottom":case"Top":case"Left":case"Right":return{kind:"complete",style:{[`${t}${e}`]:r}};case"Vertical":return{kind:"complete",style:{[`${t}Top`]:r,[`${t}Bottom`]:r}};case"Horizontal":return{kind:"complete",style:{[`${t}Left`]:r,[`${t}Right`]:r}};default:return null}}function la(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?ra(u.min):0;l===null?Je(`invalid screen config value: ${o}->min: ${u.min}`):a[0]=l;let f=u.max?ra(u.max):1/0;return f===null?Je(`invalid screen config value: ${o}->max: ${u.max}`):a[1]=f,i[o]=a,i},{}),r=Object.values(t);r.sort((i,o)=>{let[s,a]=i,[u,l]=o;return a===1/0||l===1/0?s-u:a-l});let n=0;return r.forEach(i=>i[2]=n++),t}function fa(e,t){let r=t==null?void 0:t[e];if(!r)return null;if(typeof r=="string")return k({fontFamily:r});let n=r[0];return n?k({fontFamily:n}):null}function mr(e,t,r){if(!r)return null;let n;t.includes("/")&&([t="",n]=t.split("/",2));let i="";if(t.startsWith("[#")||t.startsWith("[rgb")?i=t.slice(1,-1):i=yc(t,r),!i)return null;if(n){let o=Number(n);if(!Number.isNaN(o))return i=bc(i,o/100),k({[Ni[e].color]:i})}return{kind:"dependent",complete(o){let s=Ni[e].opacity,a=o[s];typeof a=="number"&&(i=bc(i,a)),o[Ni[e].color]=i}}}function Mn(e,t){let r=parseInt(t,10);if(Number.isNaN(r))return null;let n=r/100;return{kind:"complete",style:{[Ni[e].opacity]:n}}}function bc(e,t){return e.startsWith("#")?e=Rv(e):e.startsWith("rgb(")&&(e=e.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),e.replace(/, ?\d*\.?(\d+)\)$/,`, ${t})`)}function vc(e){for(let t in e)t.startsWith("__opacity_")&&delete e[t]}var Ni={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 Rv(e){let t=e;e=e.replace(Cv,(s,a,u,l)=>a+a+u+u+l+l);let r=Lv.exec(e);if(!r)return Je(`invalid config hex color value: ${t}`),"rgba(0, 0, 0, 1)";let n=parseInt(r[1],16),i=parseInt(r[2],16),o=parseInt(r[3],16);return`rgba(${n}, ${i}, ${o}, 1)`}function yc(e,t){let r=t[e];if(Zs(r))return r;if(ea(r)&&Zs(r.DEFAULT))return r.DEFAULT;let[n="",...i]=e.split("-");for(;n!==e;){let o=t[n];if(ea(o))return yc(i.join("-"),o);if(i.length===0)return"";n=`${n}-${i.shift()}`}return""}var Cv=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Lv=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function wc(e,t){let[r,n]=ia(e);if(r.match(/^(-?(\d)+)?$/))return Mv(r,n,t==null?void 0:t.borderWidth);if(r=r.replace(/^-/,""),["dashed","solid","dotted"].includes(r))return k({borderStyle:r});let o="border";switch(n){case"Bottom":o="borderBottom";break;case"Top":o="borderTop";break;case"Left":o="borderLeft";break;case"Right":o="borderRight";break}let s=mr(o,r,t==null?void 0:t.borderColor);if(s)return s;let a=`border${n==="All"?"":n}Width`;r=r.replace(/^-/,"");let u=r.slice(1,-1),l=mt(a,u);return typeof(l==null?void 0:l.style[a])!="number"?null:l}function Mv(e,t,r){if(!r)return null;e=e.replace(/^-/,"");let i=r[e===""?"DEFAULT":e];if(i===void 0)return null;let o=`border${t==="All"?"":t}Width`;return zt(o,i)}function Sc(e,t){if(!t)return null;let[r,n]=ia(e);r=r.replace(/^-/,""),r===""&&(r="DEFAULT");let i=`border${n==="All"?"":n}Radius`,o=t[r];if(o)return xc(zt(i,o));let s=mt(i,r);return typeof(s==null?void 0:s.style[i])!="number"?null:xc(s)}function xc(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 r=e.style.borderBottomRadius;r!==void 0&&(e.style.borderBottomLeftRadius=r,e.style.borderBottomRightRadius=r,delete e.style.borderBottomRadius);let n=e.style.borderLeftRadius;n!==void 0&&(e.style.borderBottomLeftRadius=n,e.style.borderTopLeftRadius=n,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 Mr(e,t,r,n){let i=null;e==="inset"&&(t=t.replace(/^(x|y)-/,(a,u)=>(i=u==="x"?"x":"y","")));let o=n==null?void 0:n[t];if(o){let a=Rt(o,{isNegative:r});if(a!==null)return _c(e,i,a)}let s=hr(t,{isNegative:r});return s!==null?_c(e,i,s):null}function _c(e,t,r){if(e!=="inset")return k({[e]:r});switch(t){case null:return k({top:r,left:r,right:r,bottom:r});case"y":return k({top:r,bottom:r});case"x":return k({left:r,right:r})}}function Nn(e,t,r){var n;t=t.replace(/^-/,"");let i=t===""?"DEFAULT":t,o=Number((n=r==null?void 0:r[i])!==null&&n!==void 0?n:t);return Number.isNaN(o)?null:k({[`flex${e}`]:o})}function Tc(e,t){var r,n;if(e=(t==null?void 0:t[e])||e,["min-content","revert","unset"].includes(e))return null;if(e.match(/^\d+(\.\d+)?$/))return k({flexGrow:Number(e),flexBasis:"0%"});let i=e.match(/^(\d+)\s+(\d+)$/);if(i)return k({flexGrow:Number(i[1]),flexShrink:Number(i[2])});if(i=e.match(/^(\d+)\s+([^ ]+)$/),i){let o=Rt((r=i[2])!==null&&r!==void 0?r:"");return o?k({flexGrow:Number(i[1]),flexBasis:o}):null}if(i=e.match(/^(\d+)\s+(\d+)\s+(.+)$/),i){let o=Rt((n=i[3])!==null&&n!==void 0?n:"");return o?k({flexGrow:Number(i[1]),flexShrink:Number(i[2]),flexBasis:o}):null}return null}function ca(e,t,r={},n){let i=n==null?void 0:n[t];return i!==void 0?zt(e,i,r):mt(e,t,r)}function Fn(e,t,r={},n){let i=Rt(n==null?void 0:n[t],r);return i?k({[e]:i}):(t==="screen"&&(t=e.includes("Width")?"100vw":"100vh"),mt(e,t,r))}function Ec(e,t,r){let n=r==null?void 0:r[e];if(n){let i=We(n,{isNegative:t});if(!i)return null;let[o,s]=i;if(s===se.em)return Nv(o);if(s===se.percent)return Je("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=Zt(o,s,{isNegative:t});return a!==null?k({letterSpacing:a}):null}return mt("letterSpacing",e,{isNegative:t})}function Nv(e){return{kind:"dependent",complete(t){let r=t.fontSize;if(typeof r!="number"||Number.isNaN(r))return"tracking-X relative letter spacing classes require font-size to be set";t.letterSpacing=Math.round((e*r+Number.EPSILON)*100)/100}}}function kc(e,t){let r=t==null?void 0:t[e];if(r){let i=We(String(r));if(i)return k({opacity:i[0]})}let n=We(e);return n?k({opacity:n[0]/100}):null}function Pc(e){let t=parseInt(e,10);return Number.isNaN(t)?null:{kind:"complete",style:{shadowOpacity:t/100}}}function Oc(e){if(e.includes("/")){let[r="",n=""]=e.split("/",2),i=da(r),o=da(n);return i===null||o===null?null:{kind:"complete",style:{shadowOffset:{width:i,height:o}}}}let t=da(e);return t===null?null:{kind:"complete",style:{shadowOffset:{width:t,height:t}}}}function da(e){let t=hr(e);return typeof t=="number"?t:null}var Nr=class{constructor(t,r={},n,i,o){var s,a,u,l,f,d;this.config=r,this.cache=n,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=i;let m=t.trim().split(":"),h=[];m.length===1?this.string=t:(this.string=(s=m.pop())!==null&&s!==void 0?s:"",h=m),this.char=this.string[0];let g=la((a=this.config.theme)===null||a===void 0?void 0:a.screens);for(let v of h)if(g[v]){let w=(u=g[v])===null||u===void 0?void 0:u[2];w!==void 0&&(this.order=((l=this.order)!==null&&l!==void 0?l:0)+w);let _=(f=i.windowDimensions)===null||f===void 0?void 0:f.width;if(_){let[O,x]=(d=g[v])!==null&&d!==void 0?d:[0,0];(_<=O||_>x)&&(this.isNull=!0)}else this.isNull=!0}else fc(v)?this.isNull=v!==o:cc(v)?i.windowDimensions?(i.windowDimensions.width>i.windowDimensions.height?"landscape":"portrait")!==v?this.isNull=!0:this.incrementOrder():this.isNull=!0:v==="retina"?i.pixelDensity===2?this.incrementOrder():this.isNull=!0:v==="dark"?i.colorScheme!=="dark"?this.isNull=!0:this.incrementOrder():this.handlePossibleArbitraryBreakpointPrefix(v)||(this.isNull=!0)}parse(){if(this.isNull)return{kind:"null"};let t=this.cache.getIr(this.rest);if(t)return t;this.parseIsNegative();let r=this.parseUtility();return r?this.order!==void 0?{kind:"ordered",order:this.order,styleIr:r}:r:{kind:"null"}}parseUtility(){var t,r,n,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(((r=(t=u[0])===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+1);let f=na(u[1]),d=ua(l,f,this.isNegative,this.rest,(n=this.config.theme)===null||n===void 0?void 0:n[l]);if(d)return d}}}if(this.consumePeeked("h-")&&(a=ca("height",this.rest,this.context,s==null?void 0:s.height),a)||this.consumePeeked("w-")&&(a=ca("width",this.rest,this.context,s==null?void 0:s.width),a)||this.consumePeeked("min-w-")&&(a=Fn("minWidth",this.rest,this.context,s==null?void 0:s.minWidth),a)||this.consumePeeked("min-h-")&&(a=Fn("minHeight",this.rest,this.context,s==null?void 0:s.minHeight),a)||this.consumePeeked("max-w-")&&(a=Fn("maxWidth",this.rest,this.context,s==null?void 0:s.maxWidth),a)||this.consumePeeked("max-h-")&&(a=Fn("maxHeight",this.rest,this.context,s==null?void 0:s.maxHeight),a)||this.consumePeeked("leading-")&&(a=aa(this.rest,s==null?void 0:s.lineHeight),a)||this.consumePeeked("text-")&&(a=sa(this.rest,s==null?void 0:s.fontSize,this.context),a||(a=mr("text",this.rest,s==null?void 0:s.textColor),a)||this.consumePeeked("opacity-")&&(a=Mn("text",this.rest),a))||this.consumePeeked("font-")&&(a=fa(this.rest,s==null?void 0:s.fontFamily),a)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&Je("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),a=zt("aspectRatio",this.rest,{fractions:!0}),a)||this.consumePeeked("tint-")&&(a=mr("tint",this.rest,s==null?void 0:s.colors),a)||this.consumePeeked("bg-")&&(a=mr("bg",this.rest,s==null?void 0:s.backgroundColor),a||this.consumePeeked("opacity-")&&(a=Mn("bg",this.rest),a))||this.consumePeeked("border")&&(a=wc(this.rest,s),a||this.consumePeeked("-opacity-")&&(a=Mn("border",this.rest),a))||this.consumePeeked("rounded")&&(a=Sc(this.rest,s==null?void 0:s.borderRadius),a)||this.consumePeeked("bottom-")&&(a=Mr("bottom",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("top-")&&(a=Mr("top",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("left-")&&(a=Mr("left",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("right-")&&(a=Mr("right",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("inset-")&&(a=Mr("inset",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?a=Nn("Grow",this.rest,s==null?void 0:s.flexGrow):this.consumePeeked("shrink")?a=Nn("Shrink",this.rest,s==null?void 0:s.flexShrink):a=Tc(this.rest,s==null?void 0:s.flex),a)||this.consumePeeked("grow")&&(a=Nn("Grow",this.rest,s==null?void 0:s.flexGrow),a)||this.consumePeeked("shrink")&&(a=Nn("Shrink",this.rest,s==null?void 0:s.flexShrink),a)||this.consumePeeked("shadow-color-opacity-")&&(a=Mn("shadow",this.rest),a)||this.consumePeeked("shadow-opacity-")&&(a=Pc(this.rest),a)||this.consumePeeked("shadow-offset-")&&(a=Oc(this.rest),a)||this.consumePeeked("shadow-radius-")&&(a=mt("shadowRadius",this.rest),a)||this.consumePeeked("shadow-")&&(a=mr("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 k({elevation:u})}if(this.consumePeeked("opacity-")&&(a=kc(this.rest,s==null?void 0:s.opacity),a)||this.consumePeeked("tracking-")&&(a=Ec(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 k({zIndex:u})}return Je(`\`${this.rest}\` unknown or invalid utility`),null}handlePossibleArbitraryBreakpointPrefix(t){var r;if(t[0]!=="m")return!1;let n=t.match(/^(min|max)-(w|h)-\[([^\]]+)\]$/);if(!n)return!1;if(!(!((r=this.context.device)===null||r===void 0)&&r.windowDimensions))return this.isNull=!0,!0;let i=this.context.device.windowDimensions,[,o="",s="",a=""]=n,u=s==="w"?i.width:i.height,l=We(a,this.context);if(l===null)return this.isNull=!0,!0;let[f,d]=l;return d!=="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,r){return this.string.slice(this.position+t,this.position+r)}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 Ic(e){let t=[],r=null;return e.forEach(n=>{if(typeof n=="string")t=[...t,...pa(n)];else if(Array.isArray(n))t=[...t,...n.flatMap(pa)];else if(typeof n=="object"&&n!==null)for(let[i,o]of Object.entries(n))typeof o=="boolean"?t=[...t,...o?pa(i):[]]:r?r[i]=o:r={[i]:o}}),[t.filter(Boolean).filter(Fv),r]}function pa(e){return e.trim().split(/\s+/)}function Fv(e,t,r){return r.indexOf(e)===t}function Ac(e){var t;return(t=e==null?void 0:e.reduce((r,n)=>({...r,...Wv(n.handler)}),{}))!==null&&t!==void 0?t:{}}function Wv(e){let t={};return e({addUtilities:r=>{t=r},...Dv}),t}function Ct(e){throw new Error(`tailwindcss plugin function argument object prop "${e}" not implemented`)}var Dv={addComponents:Ct,addBase:Ct,addVariant:Ct,e:Ct,prefix:Ct,theme:Ct,variants:Ct,config:Ct,corePlugins:Ct,matchUtilities:Ct,postcss:null};function Cc(e,t){let r=(0,Rc.default)($v(e)),n={},i=Ac(r.plugins),o={},s=Object.entries(i).map(([g,v])=>typeof v=="string"?(o[g]=v,[g,{kind:"null"}]):[g,k(v)]).filter(([,g])=>g.kind!=="null");function a(){return[n.windowDimensions?`w${n.windowDimensions.width}`:!1,n.windowDimensions?`h${n.windowDimensions.height}`:!1,n.fontScale?`fs${n.fontScale}`:!1,n.colorScheme==="dark"?"dark":!1,n.pixelDensity===2?"retina":!1].filter(Boolean).join("--")||"default"}let u=a(),l={};function f(){let g=l[u];if(g)return g;let v=new Ln(s);return l[u]=v,v}function d(...g){let v=f(),w={},_=[],O=[],[x,E]=Ic(g),T=x.join(" "),I=v.getStyle(T);if(I)return{...I,...E||{}};for(let N of x){let W=v.getIr(N);if(!W&&N in o){let Z=d(o[N]);v.setIr(N,k(Z)),w={...w,...Z};continue}switch(W=new Nr(N,r,v,n,t).parse(),W.kind){case"complete":w={...w,...W.style},v.setIr(N,W);break;case"dependent":_.push(W);break;case"ordered":O.push(W);break;case"null":v.setIr(N,W);break}}if(O.length>0){O.sort((N,W)=>N.order-W.order);for(let N of O)switch(N.styleIr.kind){case"complete":w={...w,...N.styleIr.style};break;case"dependent":_.push(N.styleIr);break}}if(_.length>0){for(let N of _){let W=N.complete(w);W&&Je(W)}vc(w)}return T!==""&&v.setStyle(T,w),E&&(w={...w,...E}),w}function m(g){let v=d(g.split(/\s+/g).map(w=>w.replace(/^(bg|text|border)-/,"")).map(w=>`bg-${w}`).join(" "));return typeof v.backgroundColor=="string"?v.backgroundColor:void 0}let h=(g,...v)=>{let w="";return g.forEach((_,O)=>{var x;w+=_+((x=v[O])!==null&&x!==void 0?x:"")}),d(w)};return h.style=d,h.color=m,h.prefixMatch=(...g)=>{let v=g.sort().join(":"),w=f(),_=w.getPrefixMatch(v);if(_!==void 0)return _;let E=new Nr(`${v}:flex`,r,w,n,t).parse().kind!=="null";return w.setPrefixMatch(v,E),E},h.setWindowDimensions=g=>{n.windowDimensions=g,u=a()},h.setFontScale=g=>{n.fontScale=g,u=a()},h.setPixelDensity=g=>{n.pixelDensity=g,u=a()},h.setColorScheme=g=>{n.colorScheme=g,u=a()},h}function $v(e){return{...e,content:["_no_warnings_please"]}}var Uv={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 qv(e){return Cc({...e,plugins:[...(e==null?void 0:e.plugins)??[],Uv]},"web")}var Fi;function ha({width:e,height:t,config:r}){return Fi||(Fi=qv(r)),Fi.setWindowDimensions({width:+e,height:+t}),Fi}var ma=new WeakMap;async function Mc(e,t){let r=await Vt();if(!r||!r.Node)throw new Error("Satori is not initialized: expect `yoga` to be loaded, got "+r);t.fonts=t.fonts||[];let n;ma.has(t.fonts)?n=ma.get(t.fonts):ma.set(t.fonts,n=new en(t.fonts));let i="width"in t?t.width:void 0,o="height"in t?t.height:void 0,s=zv(r,t.pointScaleFactor);i&&s.setWidth(i),o&&s.setHeight(o),s.setFlexDirection(r.FLEX_DIRECTION_ROW),s.setFlexWrap(r.WRAP_WRAP),s.setAlignContent(r.ALIGN_AUTO),s.setAlignItems(r.ALIGN_FLEX_START),s.setJustifyContent(r.JUSTIFY_FLEX_START),s.setOverflow(r.OVERFLOW_HIDDEN);let a=Object.assign(Object.create(null),t.graphemeImages),u=new Set;Ot.clear(),Gr.clear(),await ou(e);let l=Jr(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:n,embedFont:t.embedFont,debug:t.debug,graphemeImages:a,canLoadAdditionalAssets:!!t.loadAdditionalAsset,onNodeDetected:t.onNodeDetected,getTwStyles:(g,v)=>{let _={...ha({width:i,height:o,config:t.tailwindConfig})([g])};return typeof _.lineHeight=="number"&&(_.lineHeight=_.lineHeight/(+_.fontSize||v.fontSize||16)),_.shadowColor&&_.boxShadow&&(_.boxShadow=_.boxShadow.replace(/rgba?\([^)]+\)/,_.shadowColor)),_}}),f=(await l.next()).value;if(t.loadAdditionalAsset&&f.length){let g=Gv(f),v=[],w={};await Promise.all(Object.entries(g).flatMap(([_,O])=>O.map(x=>{let E=`${_}_${x}`;return u.has(E)?null:(u.add(E),t.loadAdditionalAsset(_,x).then(T=>{typeof T=="string"?w[x]=T:T&&(Array.isArray(T)?v.push(...T):v.push(T))}))}))),n.addFonts(v),Object.assign(a,w)}await l.next(),s.calculateLayout(i,o,r.DIRECTION_LTR);let d=(await l.next([0,0])).value,m=s.getComputedWidth(),h=s.getComputedHeight();return s.freeRecursive(),Po({width:m,height:h,content:d})}function zv(e,t){if(t){let r=e.Config.create();return r.setPointScaleFactor(t),e.Node.createWithConfig(r)}else return e.Node.create()}function Gv(e){let t={},r={};for(let{word:n,locale:i}of e){let o=Xu(n,i).join("|");r[o]=r[o]||"",r[o]+=n}return Object.keys(r).forEach(n=>{t[n]=t[n]||[],n==="emoji"?t[n].push(...Lc(je(r[n],"grapheme"))):(t[n][0]=t[n][0]||"",t[n][0]+=Lc(je(r[n],"grapheme",n==="unknown"?void 0:n)).join(""))}),t}function Lc(e){return Array.from(new Set(e))}export{Mc as default,pd as init};
|
|
8
8
|
//# sourceMappingURL=standalone.js.map
|