@pandacss/language-server 0.0.0-dev-20230704200504 → 0.0.0-dev-20230704202528
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -21114,7 +21114,7 @@ ${tn}`}vn.exports={isPragma:en,hasPragma:V,insertPragma:P}}}),ed=ya({"src/langua
|
|
|
21114
21114
|
`+Ar.replace(/^Error(:[^\n]*)?\n/,""))});return Ns.prototype=Object.create(hi.prototype),Ns.prototype.constructor=Ns,Ns.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},Ns}var Xo=void 0;function kf(Cs){throw new Xo(Cs)}var Zc=Cs=>(Cs||kf("Cannot use deleted val. handle = "+Cs),$s[Cs].value),Mf=Cs=>{switch(Cs){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var hi=Zl.length?Zl.pop():$s.length;return $s[hi]={fa:1,value:Cs},hi}},Wt=void 0,Gp=void 0;function _a(Cs){for(var hi="";mn[Cs];)hi+=Gp[mn[Cs++]];return hi}var kd=[];function q_(){for(;kd.length;){var Cs=kd.pop();Cs.L.Z=!1,Cs.delete()}}var Qy=void 0,oy={};function UB(Cs,hi){for(hi===void 0&&kf("ptr should not be undefined");Cs.P;)hi=Cs.aa(hi),Cs=Cs.P;return hi}var ly={};function p0(Cs){var hi=_a(Cs=sp(Cs));return nh(Cs),hi}function XB(Cs,hi){var Ns=ly[Cs];return Ns===void 0&&kf(hi+" has unknown type "+p0(Cs)),Ns}function JC(){}var y1=!1;function r1(Cs){--Cs.count.value,Cs.count.value===0&&(Cs.S?Cs.T.V(Cs.S):Cs.O.M.V(Cs.N))}var dg={},VS=void 0;function qx(Cs){throw new VS(Cs)}function Di(Cs,hi){return hi.O&&hi.N||qx("makeClassHandle requires ptr and ptrType"),!!hi.T!=!!hi.S&&qx("Both smartPtrType and smartPtr must be specified"),hi.count={value:1},qa(Object.create(Cs,{L:{value:hi}}))}function qa(Cs){return typeof FinalizationRegistry>"u"?(qa=hi=>hi,Cs):(y1=new FinalizationRegistry(hi=>{r1(hi.L)}),qa=hi=>{var Ns=hi.L;return Ns.S&&y1.register(hi,{L:Ns},hi),hi},JC=hi=>{y1.unregister(hi)},qa(Cs))}var nf={};function Ws(Cs){for(;Cs.length;){var hi=Cs.pop();Cs.pop()(hi)}}function up(Cs){return this.fromWireType(Cn[Cs>>2])}var th={},ip={};function Co(Cs,hi,Ns){function Ar(Fs){(Fs=Ns(Fs)).length!==Cs.length&&qx("Mismatched type converter count");for(var Gl=0;Gl<Cs.length;++Gl)mo(Cs[Gl],Fs[Gl])}Cs.forEach(function(Fs){ip[Fs]=hi});var ba=Array(hi.length),Qs=[],ia=0;hi.forEach((Fs,Gl)=>{ly.hasOwnProperty(Fs)?ba[Gl]=ly[Fs]:(Qs.push(Fs),th.hasOwnProperty(Fs)||(th[Fs]=[]),th[Fs].push(()=>{ba[Gl]=ly[Fs],++ia===Qs.length&&Ar(ba)}))}),Qs.length===0&&Ar(ba)}function Qo(Cs){switch(Cs){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw TypeError("Unknown type size: "+Cs)}}function mo(Cs,hi,Ns={}){if(!("argPackAdvance"in hi))throw TypeError("registerType registeredInstance requires argPackAdvance");var Ar=hi.name;if(Cs||kf('type "'+Ar+'" must have a positive integer typeid pointer'),ly.hasOwnProperty(Cs)){if(Ns.ta)return;kf("Cannot register type '"+Ar+"' twice")}ly[Cs]=hi,delete ip[Cs],th.hasOwnProperty(Cs)&&(hi=th[Cs],delete th[Cs],hi.forEach(ba=>ba()))}function Dl(Cs){kf(Cs.L.O.M.name+" instance already deleted")}function no(){}function yu(Cs,hi,Ns){if(Cs[hi].R===void 0){var Ar=Cs[hi];Cs[hi]=function(){return Cs[hi].R.hasOwnProperty(arguments.length)||kf("Function '"+Ns+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+Cs[hi].R+")!"),Cs[hi].R[arguments.length].apply(this,arguments)},Cs[hi].R=[],Cs[hi].R[Ar.Y]=Ar}}function Ls(Cs,hi,Ns,Ar,ba,Qs,ia,Fs){this.name=Cs,this.constructor=hi,this.W=Ns,this.V=Ar,this.P=ba,this.oa=Qs,this.aa=ia,this.ma=Fs,this.ia=[]}function jp(Cs,hi,Ns){for(;hi!==Ns;)hi.aa||kf("Expected null or instance of "+Ns.name+", got an instance of "+hi.name),Cs=hi.aa(Cs),hi=hi.P;return Cs}function Xl(Cs,hi){return hi===null?(this.da&&kf("null is not a valid "+this.name),0):(hi.L||kf('Cannot pass "'+IC(hi)+'" as a '+this.name),hi.L.N||kf("Cannot pass deleted object as a pointer of type "+this.name),jp(hi.L.N,hi.L.O.M,this.M))}function hl(Cs,hi){if(hi===null){if(this.da&&kf("null is not a valid "+this.name),this.ca){var Ns=this.ea();return Cs!==null&&Cs.push(this.V,Ns),Ns}return 0}if(hi.L||kf('Cannot pass "'+IC(hi)+'" as a '+this.name),hi.L.N||kf("Cannot pass deleted object as a pointer of type "+this.name),!this.ba&&hi.L.O.ba&&kf("Cannot convert argument of type "+(hi.L.T?hi.L.T.name:hi.L.O.name)+" to parameter type "+this.name),Ns=jp(hi.L.N,hi.L.O.M,this.M),this.ca)switch(hi.L.S===void 0&&kf("Passing raw pointer to smart pointer is illegal"),this.Aa){case 0:hi.L.T===this?Ns=hi.L.S:kf("Cannot convert argument of type "+(hi.L.T?hi.L.T.name:hi.L.O.name)+" to parameter type "+this.name);break;case 1:Ns=hi.L.S;break;case 2:if(hi.L.T===this)Ns=hi.L.S;else{var Ar=hi.clone();Ns=this.wa(Ns,Mf(function(){Ar.delete()})),Cs!==null&&Cs.push(this.V,Ns)}break;default:kf("Unsupporting sharing policy")}return Ns}function bo(Cs,hi){return hi===null?(this.da&&kf("null is not a valid "+this.name),0):(hi.L||kf('Cannot pass "'+IC(hi)+'" as a '+this.name),hi.L.N||kf("Cannot pass deleted object as a pointer of type "+this.name),hi.L.O.ba&&kf("Cannot convert argument of type "+hi.L.O.name+" to parameter type "+this.name),jp(hi.L.N,hi.L.O.M,this.M))}function N_(Cs,hi,Ns,Ar){this.name=Cs,this.M=hi,this.da=Ns,this.ba=Ar,this.ca=!1,this.V=this.wa=this.ea=this.ja=this.Aa=this.va=void 0,hi.P!==void 0?this.toWireType=hl:(this.toWireType=Ar?Xl:bo,this.U=null)}function Ed(Cs,hi){var Ns,Ar,ba=(Cs=_a(Cs)).includes("j")?(Ns=Cs,Ar=[],function(){if(Ar.length=0,Object.assign(Ar,arguments),Ns.includes("j")){var Qs=z["dynCall_"+Ns];Qs=Ar&&Ar.length?Qs.apply(null,[hi].concat(Ar)):Qs.call(null,hi)}else Qs=Fo.get(hi).apply(null,Ar);return Qs}):Fo.get(hi);return typeof ba!="function"&&kf("unknown function pointer with signature "+Cs+": "+hi),ba}var gy=void 0;function _h(Cs,hi){var Ns=[],Ar={};throw hi.forEach(function ba(Qs){Ar[Qs]||ly[Qs]||(ip[Qs]?ip[Qs].forEach(ba):(Ns.push(Qs),Ar[Qs]=!0))}),new gy(Cs+": "+Ns.map(p0).join([", "]))}function kg(Cs,hi,Ns,Ar,ba){var Qs=hi.length;2>Qs&&kf("argTypes array size mismatch! Must at least get return value and 'this' types!");var ia=hi[1]!==null&&Ns!==null,Fs=!1;for(Ns=1;Ns<hi.length;++Ns)if(hi[Ns]!==null&&hi[Ns].U===void 0){Fs=!0;break}var Gl=hi[0].name!=="void",Cu=Qs-2,af=Array(Cu),Tp=[],Lu=[];return function(){if(arguments.length!==Cu&&kf("function "+Cs+" called with "+arguments.length+" arguments, expected "+Cu+" args!"),Lu.length=0,Tp.length=ia?2:1,Tp[0]=ba,ia){var Zh=hi[1].toWireType(Lu,this);Tp[1]=Zh}for(var vu=0;vu<Cu;++vu)af[vu]=hi[vu+2].toWireType(Lu,arguments[vu]),Tp.push(af[vu]);if(vu=Ar.apply(null,Tp),Fs)Ws(Lu);else for(var Cc=ia?1:2;Cc<hi.length;Cc++){var Xm=Cc===1?Zh:af[Cc-2];hi[Cc].U!==null&&hi[Cc].U(Xm)}return Gl?hi[0].fromWireType(vu):void 0}}function Zp(Cs,hi){for(var Ns=[],Ar=0;Ar<Cs;Ar++)Ns.push(Qn[hi+4*Ar>>2]);return Ns}function wu(Cs){4<Cs&&--$s[Cs].fa==0&&($s[Cs]=void 0,Zl.push(Cs))}function IC(Cs){if(Cs===null)return"null";var hi=typeof Cs;return hi==="object"||hi==="array"||hi==="function"?Cs.toString():""+Cs}function oB(Cs,hi){for(var Ns="",Ar=0;!(Ar>=hi/2);++Ar){var ba=zn[Cs+2*Ar>>1];if(ba==0)break;Ns+=String.fromCharCode(ba)}return Ns}function HS(Cs,hi,Ns){if(Ns===void 0&&(Ns=2147483647),2>Ns)return 0;Ns-=2;var Ar=hi;Ns=Ns<2*Cs.length?Ns/2:Cs.length;for(var ba=0;ba<Ns;++ba)zn[hi>>1]=Cs.charCodeAt(ba),hi+=2;return zn[hi>>1]=0,hi-Ar}function xv(Cs){return 2*Cs.length}function Vf(Cs,hi){for(var Ns=0,Ar="";!(Ns>=hi/4);){var ba=Cn[Cs+4*Ns>>2];if(ba==0)break;++Ns,65536<=ba?(ba-=65536,Ar+=String.fromCharCode(55296|ba>>10,56320|1023&ba)):Ar+=String.fromCharCode(ba)}return Ar}function Is(Cs,hi,Ns){if(Ns===void 0&&(Ns=2147483647),4>Ns)return 0;var Ar=hi;Ns=Ar+Ns-4;for(var ba=0;ba<Cs.length;++ba){var Qs=Cs.charCodeAt(ba);if(55296<=Qs&&57343>=Qs&&(Qs=65536+((1023&Qs)<<10)|1023&Cs.charCodeAt(++ba)),Cn[hi>>2]=Qs,(hi+=4)+4>Ns)break}return Cn[hi>>2]=0,hi-Ar}function Wo(Cs){for(var hi=0,Ns=0;Ns<Cs.length;++Ns){var Ar=Cs.charCodeAt(Ns);55296<=Ar&&57343>=Ar&&++Ns,hi+=4}return hi}var wl={};function zo(Cs){var hi=wl[Cs];return hi===void 0?_a(Cs):hi}var Pc=[],Hu=[],Hf=[null,[],[]];Xo=z.BindingError=ja("BindingError"),z.count_emval_handles=function(){for(var Cs=0,hi=5;hi<$s.length;++hi)$s[hi]!==void 0&&++Cs;return Cs},z.get_first_emval=function(){for(var Cs=5;Cs<$s.length;++Cs)if($s[Cs]!==void 0)return $s[Cs];return null},Wt=z.PureVirtualError=ja("PureVirtualError");for(var zf=Array(256),rp=0;256>rp;++rp)zf[rp]=String.fromCharCode(rp);Gp=zf,z.getInheritedInstanceCount=function(){return Object.keys(oy).length},z.getLiveInheritedInstances=function(){var Cs,hi=[];for(Cs in oy)oy.hasOwnProperty(Cs)&&hi.push(oy[Cs]);return hi},z.flushPendingDeletes=q_,z.setDelayFunction=function(Cs){Qy=Cs,kd.length&&Qy&&Qy(q_)},VS=z.InternalError=ja("InternalError"),no.prototype.isAliasOf=function(Cs){if(!(this instanceof no&&Cs instanceof no))return!1;var hi=this.L.O.M,Ns=this.L.N,Ar=Cs.L.O.M;for(Cs=Cs.L.N;hi.P;)Ns=hi.aa(Ns),hi=hi.P;for(;Ar.P;)Cs=Ar.aa(Cs),Ar=Ar.P;return hi===Ar&&Ns===Cs},no.prototype.clone=function(){if(this.L.N||Dl(this),this.L.$)return this.L.count.value+=1,this;var Cs=qa,hi=Object,Ns=hi.create,Ar=Object.getPrototypeOf(this),ba=this.L;return Cs=Cs(Ns.call(hi,Ar,{L:{value:{count:ba.count,Z:ba.Z,$:ba.$,N:ba.N,O:ba.O,S:ba.S,T:ba.T}}})),Cs.L.count.value+=1,Cs.L.Z=!1,Cs},no.prototype.delete=function(){this.L.N||Dl(this),this.L.Z&&!this.L.$&&kf("Object already scheduled for deletion"),JC(this),r1(this.L),this.L.$||(this.L.S=void 0,this.L.N=void 0)},no.prototype.isDeleted=function(){return!this.L.N},no.prototype.deleteLater=function(){return this.L.N||Dl(this),this.L.Z&&!this.L.$&&kf("Object already scheduled for deletion"),kd.push(this),kd.length===1&&Qy&&Qy(q_),this.L.Z=!0,this},N_.prototype.pa=function(Cs){return this.ja&&(Cs=this.ja(Cs)),Cs},N_.prototype.ga=function(Cs){this.V&&this.V(Cs)},N_.prototype.argPackAdvance=8,N_.prototype.readValueFromPointer=up,N_.prototype.deleteObject=function(Cs){Cs!==null&&Cs.delete()},N_.prototype.fromWireType=function(Cs){function hi(){return this.ca?Di(this.M.W,{O:this.va,N:Ar,T:this,S:Cs}):Di(this.M.W,{O:this,N:Cs})}var Ns,Ar=this.pa(Cs);if(!Ar)return this.ga(Cs),null;var ba=oy[UB(this.M,Ar)];if(ba!==void 0)return ba.L.count.value===0?(ba.L.N=Ar,ba.L.S=Cs,ba.clone()):(ba=ba.clone(),this.ga(Cs),ba);if(!(ba=dg[ba=this.M.oa(Ar)]))return hi.call(this);ba=this.ba?ba.ka:ba.pointerType;var Qs=function ia(Fs,Gl,Cu){return Gl===Cu?Fs:Cu.P===void 0||(Fs=ia(Fs,Gl,Cu.P))===null?null:Cu.ma(Fs)}(Ar,this.M,ba.M);return Qs===null?hi.call(this):this.ca?Di(ba.M.W,{O:ba,N:Qs,T:this,S:Cs}):Di(ba.M.W,{O:ba,N:Qs})},gy=z.UnboundTypeError=ja("UnboundTypeError");var C_=typeof atob=="function"?atob:function(Cs){var hi="",Ns=0;Cs=Cs.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var Ar="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(Cs.charAt(Ns++)),ba="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(Cs.charAt(Ns++)),Qs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(Cs.charAt(Ns++)),ia="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(Cs.charAt(Ns++));Ar=Ar<<2|ba>>4,ba=(15&ba)<<4|Qs>>2;var Fs=(3&Qs)<<6|ia;hi+=String.fromCharCode(Ar),Qs!==64&&(hi+=String.fromCharCode(ba)),ia!==64&&(hi+=String.fromCharCode(Fs))}while(Ns<Cs.length);return hi},im={q:function(Cs,hi,Ns){Cs=_a(Cs),hi=XB(hi,"wrapper"),Ns=Zc(Ns);var Ar=[].slice,ba=hi.M,Qs=ba.W,ia=ba.P.W,Fs=ba.P.constructor;for(var Gl in Cs=ai(Cs,function(){ba.P.ia.forEach(function(Cu){if(this[Cu]===ia[Cu])throw new Wt("Pure virtual function "+Cu+" must be implemented in JavaScript")}.bind(this)),Object.defineProperty(this,"__parent",{value:Qs}),this.__construct.apply(this,Ar.call(arguments))}),Qs.__construct=function(){this===Qs&&kf("Pass correct 'this' to __construct");var Cu=Fs.implement.apply(void 0,[this].concat(Ar.call(arguments)));JC(Cu);var af=Cu.L;Cu.notifyOnDestruction(),af.$=!0,Object.defineProperties(this,{L:{value:af}}),qa(this),Cu=UB(ba,Cu=af.N),oy.hasOwnProperty(Cu)?kf("Tried to register registered instance: "+Cu):oy[Cu]=this},Qs.__destruct=function(){this===Qs&&kf("Pass correct 'this' to __destruct"),JC(this);var Cu=this.L.N;Cu=UB(ba,Cu),oy.hasOwnProperty(Cu)?delete oy[Cu]:kf("Tried to unregister unregistered instance: "+Cu)},Cs.prototype=Object.create(Qs),Ns)Cs.prototype[Gl]=Ns[Gl];return Mf(Cs)},k:function(Cs){var hi=nf[Cs];delete nf[Cs];var Ns=hi.ea,Ar=hi.V,ba=hi.ha;Co([Cs],ba.map(Qs=>Qs.sa).concat(ba.map(Qs=>Qs.ya)),Qs=>{var ia={};return ba.forEach((Fs,Gl)=>{var Cu=Qs[Gl],af=Fs.qa,Tp=Fs.ra,Lu=Qs[Gl+ba.length],Zh=Fs.xa,vu=Fs.za;ia[Fs.na]={read:Cc=>Cu.fromWireType(af(Tp,Cc)),write:(Cc,Xm)=>{var d0=[];Zh(vu,Cc,Lu.toWireType(d0,Xm)),Ws(d0)}}}),[{name:hi.name,fromWireType:function(Fs){var Gl,Cu={};for(Gl in ia)Cu[Gl]=ia[Gl].read(Fs);return Ar(Fs),Cu},toWireType:function(Fs,Gl){for(var Cu in ia)if(!(Cu in Gl))throw TypeError('Missing field: "'+Cu+'"');var af=Ns();for(Cu in ia)ia[Cu].write(af,Gl[Cu]);return Fs!==null&&Fs.push(Ar,af),af},argPackAdvance:8,readValueFromPointer:up,U:Ar}]})},w:function(){},C:function(Cs,hi,Ns,Ar,ba){var Qs=Qo(Ns);mo(Cs,{name:hi=_a(hi),fromWireType:function(ia){return!!ia},toWireType:function(ia,Fs){return Fs?Ar:ba},argPackAdvance:8,readValueFromPointer:function(ia){if(Ns===1)var Fs=Zt;else if(Ns===2)Fs=zn;else if(Ns===4)Fs=Cn;else throw TypeError("Unknown boolean type size: "+hi);return this.fromWireType(Fs[ia>>Qs])},U:null})},f:function(Cs,hi,Ns,Ar,ba,Qs,ia,Fs,Gl,Cu,af,Tp,Lu){af=_a(af),Qs=Ed(ba,Qs),Fs&&(Fs=Ed(ia,Fs)),Cu&&(Cu=Ed(Gl,Cu)),Lu=Ed(Tp,Lu);var Zh,vu=va(af);Zh=function(){_h("Cannot construct "+af+" due to unbound types",[Ar])},z.hasOwnProperty(vu)?(kf("Cannot register public name '"+vu+"' twice"),yu(z,vu,vu),z.hasOwnProperty(void 0)&&kf("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),z[vu].R[void 0]=Zh):z[vu]=Zh,Co([Cs,hi,Ns],Ar?[Ar]:[],function(Cc){if(Cc=Cc[0],Ar)var Xm,d0=Cc.M,bu=d0.W;else bu=no.prototype;Cc=ai(vu,function(){if(Object.getPrototypeOf(this)!==i1)throw new Xo("Use 'new' to construct "+af);if(fe.X===void 0)throw new Xo(af+" has no accessible constructor");var Lb=fe.X[arguments.length];if(Lb===void 0)throw new Xo("Tried to invoke ctor of "+af+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(fe.X).toString()+") parameters instead!");return Lb.apply(this,arguments)});var i1=Object.create(bu,{constructor:{value:Cc}});Cc.prototype=i1;var fe=new Ls(af,Cc,i1,Lu,d0,Qs,Fs,Cu);d0=new N_(af,fe,!0,!1),bu=new N_(af+"*",fe,!1,!1);var Uu=new N_(af+" const*",fe,!1,!0);return dg[Cs]={pointerType:bu,ka:Uu},Xm=Cc,z.hasOwnProperty(vu)||qx("Replacing nonexistant public symbol"),z[vu]=Xm,z[vu].Y=void 0,[d0,bu,Uu]})},d:function(Cs,hi,Ns,Ar,ba,Qs,ia){var Fs=Zp(Ns,Ar);hi=_a(hi),Qs=Ed(ba,Qs),Co([],[Cs],function(Gl){function Cu(){_h("Cannot call "+af+" due to unbound types",Fs)}var af=(Gl=Gl[0]).name+"."+hi;hi.startsWith("@@")&&(hi=Symbol[hi.substring(2)]);var Tp=Gl.M.constructor;return Tp[hi]===void 0?(Cu.Y=Ns-1,Tp[hi]=Cu):(yu(Tp,hi,af),Tp[hi].R[Ns-1]=Cu),Co([],Fs,function(Lu){return Lu=kg(af,[Lu[0],null].concat(Lu.slice(1)),null,Qs,ia),Tp[hi].R===void 0?(Lu.Y=Ns-1,Tp[hi]=Lu):Tp[hi].R[Ns-1]=Lu,[]}),[]})},p:function(Cs,hi,Ns,Ar,ba,Qs){0<hi||wi();var ia=Zp(hi,Ns);ba=Ed(Ar,ba),Co([],[Cs],function(Fs){var Gl="constructor "+(Fs=Fs[0]).name;if(Fs.M.X===void 0&&(Fs.M.X=[]),Fs.M.X[hi-1]!==void 0)throw new Xo("Cannot register multiple constructors with identical number of parameters ("+(hi-1)+") for class '"+Fs.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return Fs.M.X[hi-1]=()=>{_h("Cannot construct "+Fs.name+" due to unbound types",ia)},Co([],ia,function(Cu){return Cu.splice(1,0,null),Fs.M.X[hi-1]=kg(Gl,Cu,null,ba,Qs),[]}),[]})},b:function(Cs,hi,Ns,Ar,ba,Qs,ia,Fs){var Gl=Zp(Ns,Ar);hi=_a(hi),Qs=Ed(ba,Qs),Co([],[Cs],function(Cu){function af(){_h("Cannot call "+Tp+" due to unbound types",Gl)}var Tp=(Cu=Cu[0]).name+"."+hi;hi.startsWith("@@")&&(hi=Symbol[hi.substring(2)]),Fs&&Cu.M.ia.push(hi);var Lu=Cu.M.W,Zh=Lu[hi];return Zh===void 0||Zh.R===void 0&&Zh.className!==Cu.name&&Zh.Y===Ns-2?(af.Y=Ns-2,af.className=Cu.name,Lu[hi]=af):(yu(Lu,hi,Tp),Lu[hi].R[Ns-2]=af),Co([],Gl,function(vu){return vu=kg(Tp,vu,Cu,Qs,ia),Lu[hi].R===void 0?(vu.Y=Ns-2,Lu[hi]=vu):Lu[hi].R[Ns-2]=vu,[]}),[]})},B:function(Cs,hi){mo(Cs,{name:hi=_a(hi),fromWireType:function(Ns){var Ar=Zc(Ns);return wu(Ns),Ar},toWireType:function(Ns,Ar){return Mf(Ar)},argPackAdvance:8,readValueFromPointer:up,U:null})},n:function(Cs,hi,Ns){Ns=Qo(Ns),mo(Cs,{name:hi=_a(hi),fromWireType:function(Ar){return Ar},toWireType:function(Ar,ba){return ba},argPackAdvance:8,readValueFromPointer:function(Ar,ba){switch(ba){case 2:return function(Qs){return this.fromWireType(br[Qs>>2])};case 3:return function(Qs){return this.fromWireType(cn[Qs>>3])};default:throw TypeError("Unknown float type: "+Ar)}}(hi,Ns),U:null})},e:function(Cs,hi,Ns,Ar,ba){hi=_a(hi),ba===-1&&(ba=4294967295),ba=Qo(Ns);var Qs=Fs=>Fs;if(Ar===0){var ia=32-8*Ns;Qs=Fs=>Fs<<ia>>>ia}Ns=hi.includes("unsigned")?function(Fs,Gl){return Gl>>>0}:function(Fs,Gl){return Gl},mo(Cs,{name:hi,fromWireType:Qs,toWireType:Ns,argPackAdvance:8,readValueFromPointer:function(Fs,Gl,Cu){switch(Gl){case 0:return Cu?function(af){return Zt[af]}:function(af){return mn[af]};case 1:return Cu?function(af){return zn[af>>1]}:function(af){return wn[af>>1]};case 2:return Cu?function(af){return Cn[af>>2]}:function(af){return Qn[af>>2]};default:throw TypeError("Unknown integer type: "+Fs)}}(hi,ba,Ar!==0),U:null})},c:function(Cs,hi,Ns){function Ar(Qs){Qs>>=2;var ia=Qn;return new ba(ia.buffer,ia[Qs+1],ia[Qs])}var ba=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][hi];mo(Cs,{name:Ns=_a(Ns),fromWireType:Ar,argPackAdvance:8,readValueFromPointer:Ar},{ta:!0})},o:function(Cs,hi){var Ns=(hi=_a(hi))==="std::string";mo(Cs,{name:hi,fromWireType:function(Ar){var ba=Qn[Ar>>2],Qs=Ar+4;if(Ns)for(var ia=Qs,Fs=0;Fs<=ba;++Fs){var Gl=Qs+Fs;if(Fs==ba||mn[Gl]==0){if(ia=ia?Ve(mn,ia,Gl-ia):"",Cu===void 0)var Cu=ia;else Cu+="\0"+ia;ia=Gl+1}}else{for(Fs=0,Cu=Array(ba);Fs<ba;++Fs)Cu[Fs]=String.fromCharCode(mn[Qs+Fs]);Cu=Cu.join("")}return nh(Ar),Cu},toWireType:function(Ar,ba){ba instanceof ArrayBuffer&&(ba=new Uint8Array(ba));var Qs,ia=typeof ba=="string";if(ia||ba instanceof Uint8Array||ba instanceof Uint8ClampedArray||ba instanceof Int8Array||kf("Cannot pass non-string to std::string"),Ns&&ia){var Fs=0;for(Qs=0;Qs<ba.length;++Qs){var Gl=ba.charCodeAt(Qs);127>=Gl?Fs++:2047>=Gl?Fs+=2:55296<=Gl&&57343>=Gl?(Fs+=4,++Qs):Fs+=3}Qs=Fs}else Qs=ba.length;if(Gl=(Fs=ya(4+Qs+1))+4,Qn[Fs>>2]=Qs,Ns&&ia){if(ia=Gl,Gl=Qs+1,Qs=mn,0<Gl){Gl=ia+Gl-1;for(var Cu=0;Cu<ba.length;++Cu){var af=ba.charCodeAt(Cu);if(55296<=af&&57343>=af&&(af=65536+((1023&af)<<10)|1023&ba.charCodeAt(++Cu)),127>=af){if(ia>=Gl)break;Qs[ia++]=af}else{if(2047>=af){if(ia+1>=Gl)break;Qs[ia++]=192|af>>6}else{if(65535>=af){if(ia+2>=Gl)break;Qs[ia++]=224|af>>12}else{if(ia+3>=Gl)break;Qs[ia++]=240|af>>18,Qs[ia++]=128|af>>12&63}Qs[ia++]=128|af>>6&63}Qs[ia++]=128|63&af}}Qs[ia]=0}}else if(ia)for(ia=0;ia<Qs;++ia)255<(Cu=ba.charCodeAt(ia))&&(nh(Gl),kf("String has UTF-16 code units that do not fit in 8 bits")),mn[Gl+ia]=Cu;else for(ia=0;ia<Qs;++ia)mn[Gl+ia]=ba[ia];return Ar!==null&&Ar.push(nh,Fs),Fs},argPackAdvance:8,readValueFromPointer:up,U:function(Ar){nh(Ar)}})},j:function(Cs,hi,Ns){if(Ns=_a(Ns),hi===2)var Ar=oB,ba=HS,Qs=xv,ia=()=>wn,Fs=1;else hi===4&&(Ar=Vf,ba=Is,Qs=Wo,ia=()=>Qn,Fs=2);mo(Cs,{name:Ns,fromWireType:function(Gl){for(var Cu,af=Qn[Gl>>2],Tp=ia(),Lu=Gl+4,Zh=0;Zh<=af;++Zh){var vu=Gl+4+Zh*hi;(Zh==af||Tp[vu>>Fs]==0)&&(Lu=Ar(Lu,vu-Lu),Cu===void 0?Cu=Lu:Cu+="\0"+Lu,Lu=vu+hi)}return nh(Gl),Cu},toWireType:function(Gl,Cu){typeof Cu!="string"&&kf("Cannot pass non-string to C++ string type "+Ns);var af=Qs(Cu),Tp=ya(4+af+hi);return Qn[Tp>>2]=af>>Fs,ba(Cu,Tp+4,af+hi),Gl!==null&&Gl.push(nh,Tp),Tp},argPackAdvance:8,readValueFromPointer:up,U:function(Gl){nh(Gl)}})},l:function(Cs,hi,Ns,Ar,ba,Qs){nf[Cs]={name:_a(hi),ea:Ed(Ns,Ar),V:Ed(ba,Qs),ha:[]}},i:function(Cs,hi,Ns,Ar,ba,Qs,ia,Fs,Gl,Cu){nf[Cs].ha.push({na:_a(hi),sa:Ns,qa:Ed(Ar,ba),ra:Qs,ya:ia,xa:Ed(Fs,Gl),za:Cu})},D:function(Cs,hi){mo(Cs,{ua:!0,name:hi=_a(hi),argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},t:function(Cs,hi,Ns,Ar,ba){Cs=Pc[Cs],hi=Zc(hi),Ns=zo(Ns);var Qs=[];return Qn[Ar>>2]=Mf(Qs),Cs(hi,Ns,Qs,ba)},u:function(Cs,hi,Ns,Ar){Cs=Pc[Cs],Cs(hi=Zc(hi),Ns=zo(Ns),null,Ar)},h:wu,m:function(Cs,hi){var Ns,Ar,ba=function(Gl,Cu){for(var af=Array(Gl),Tp=0;Tp<Gl;++Tp)af[Tp]=XB(Qn[Cu+4*Tp>>2],"parameter "+Tp);return af}(Cs,hi),Qs=ba[0],ia=Hu[hi=Qs.name+"_$"+ba.slice(1).map(function(Gl){return Gl.name}).join("_")+"$"];if(ia!==void 0)return ia;var Fs=Array(Cs-1);return Ns=(Gl,Cu,af,Tp)=>{for(var Lu=0,Zh=0;Zh<Cs-1;++Zh)Fs[Zh]=ba[Zh+1].readValueFromPointer(Tp+Lu),Lu+=ba[Zh+1].argPackAdvance;for(Zh=0,Gl=Gl[Cu].apply(Gl,Fs);Zh<Cs-1;++Zh)ba[Zh+1].la&&ba[Zh+1].la(Fs[Zh]);if(!Qs.ua)return Qs.toWireType(af,Gl)},Ar=Pc.length,Pc.push(Ns),ia=Ar,Hu[hi]=ia},r:function(Cs){4<Cs&&($s[Cs].fa+=1)},s:function(Cs){Ws(Zc(Cs)),wu(Cs)},g:function(){wi("")},y:function(Cs,hi,Ns){mn.copyWithin(Cs,hi,hi+Ns)},x:function(Cs){var hi=mn.length;if(2147483648<(Cs>>>=0))return!1;for(var Ns=1;4>=Ns;Ns*=2){var Ar=hi*(1+.2/Ns);Ar=Math.min(Ar,Cs+100663296);var ba=Math,Qs=ba.min;Ar=Math.max(Cs,Ar),Ar+=(65536-Ar%65536)%65536;e:{var ia=Ie.buffer;try{Ie.grow(Qs.call(ba,2147483648,Ar)-ia.byteLength+65535>>>16),ze();var Fs=1;break e}catch{}Fs=void 0}if(Fs)return!0}return!1},A:function(){return 52},v:function(){return 70},z:function(Cs,hi,Ns,Ar){for(var ba=0,Qs=0;Qs<Ns;Qs++){var ia=Qn[hi>>2],Fs=Qn[hi+4>>2];hi+=8;for(var Gl=0;Gl<Fs;Gl++){var Cu=mn[ia+Gl],af=Hf[Cs];Cu===0||Cu===10?((Cs===1?h:v)(Ve(af,0)),af.length=0):af.push(Cu)}ba+=Fs}return Qn[Ar>>2]=ba,0},a:Ie},Bl=function(){function Cs(Ns){z.asm=Ns.exports,Fo=z.asm.I,Bn.unshift(z.asm.E),ar--,z.monitorRunDependencies&&z.monitorRunDependencies(ar),ar==0&&Ci&&(Ns=Ci,Ci=null,Ns())}var hi={a:im};if(ar++,z.monitorRunDependencies&&z.monitorRunDependencies(ar),z.instantiateWasm)try{return z.instantiateWasm(hi,Cs)}catch(Ns){v("Module.instantiateWasm callback failed with error: "+Ns),_e(Ns)}return hi=function(Ns){var Ar=r;try{try{if(Ar==r&&Ae)new Uint8Array(Ae);else{if(Po(Ar)){try{var ba=C_(Ar.slice(37)),Qs=new Uint8Array(ba.length);for(Ar=0;Ar<ba.length;++Ar)Qs[Ar]=ba.charCodeAt(Ar);var ia=Qs}catch{throw Error("Converting base64 string to bytes failed.")}var Fs=ia}else Fs=void 0;if(!Fs)throw"sync fetching of the wasm failed: you can preload it to Module['wasmBinary'] manually, or emcc.py will do that for you when generating HTML (but not JS)"}}catch(af){wi(af)}var Gl=new S,Cu=new k(Ns)}catch(af){throw v("failed to compile wasm module: "+(Ns=af.toString())),(Ns.includes("imported Memory")||Ns.includes("memory import"))&&v("Memory size incompatibility issues may be due to changing INITIAL_MEMORY at runtime to something too large. Use ALLOW_MEMORY_GROWTH to allow any size memory (and also make sure not to set INITIAL_MEMORY at runtime to something smaller than it was at compile time)."),af}return[Cu,Gl]}(hi),Cs(hi[0]),z.asm}(),sp=z.___getTypeName=Bl.F;z.__embind_initialize_bindings=Bl.G;var ya=Bl.H,nh=Bl.J;function ig(){function Cs(){if(!o&&(o=!0,z.calledRun=!0,!Xe)){if(Hs(Bn),te(z),z.onRuntimeInitialized&&z.onRuntimeInitialized(),z.postRun)for(typeof z.postRun=="function"&&(z.postRun=[z.postRun]);z.postRun.length;){var hi=z.postRun.shift();es.unshift(hi)}Hs(es)}}if(!(0<ar)){if(z.preRun)for(typeof z.preRun=="function"&&(z.preRun=[z.preRun]);z.preRun.length;)(function(){var hi=z.preRun.shift();Io.unshift(hi)})();Hs(Io),0<ar||(z.setStatus?(z.setStatus("Running..."),setTimeout(function(){setTimeout(function(){z.setStatus("")},1),Cs()},1)):Cs())}}if(z.dynCall_jiji=Bl.K,Ci=function Cs(){o||ig(),o||(Ci=Cs)},z.preInit)for(typeof z.preInit=="function"&&(z.preInit=[z.preInit]);0<z.preInit.length;)z.preInit.pop()();return ig(),e}})()});var g9r={};module.exports=ypt(g9r);oe();var tNe=Nm(CKt());oe();var XVn=function(i,e,r){if(r||arguments.length===2)for(var o=0,u=e.length,d;o<u;o++)(d||!(o in e))&&(d||(d=Array.prototype.slice.call(e,0,o)),d[o]=e[o]);return i.concat(d||Array.prototype.slice.call(e))},vKt=function(){function i(e,r,o,u){this._uri=e,this._languageId=r,this._version=o,this._content=u,this._lineOffsets=void 0}return Object.defineProperty(i.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),i.prototype.getText=function(e){if(e){var r=this.offsetAt(e.start),o=this.offsetAt(e.end);return this._content.substring(r,o)}return this._content},i.prototype.update=function(e,r){for(var o=0,u=e;o<u.length;o++){var d=u[o];if(i.isIncremental(d)){var h=SKt(d.range),v=this.offsetAt(h.start),S=this.offsetAt(h.end);this._content=this._content.substring(0,v)+d.text+this._content.substring(S,this._content.length);var k=Math.max(h.start.line,0),L=Math.max(h.end.line,0),z=this._lineOffsets,te=bKt(d.text,!1,v);if(L-k===te.length)for(var _e=0,Ae=te.length;_e<Ae;_e++)z[_e+k+1]=te[_e];else te.length<1e4?z.splice.apply(z,XVn([k+1,L-k],te,!1)):this._lineOffsets=z=z.slice(0,k+1).concat(te,z.slice(L+1));var Ie=d.text.length-(S-v);if(Ie!==0)for(var _e=k+1+te.length,Ae=z.length;_e<Ae;_e++)z[_e]=z[_e]+Ie}else if(i.isFull(d))this._content=d.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received")}this._version=r},i.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=bKt(this._content,!0)),this._lineOffsets},i.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var r=this.getLineOffsets(),o=0,u=r.length;if(u===0)return{line:0,character:e};for(;o<u;){var d=Math.floor((o+u)/2);r[d]>e?u=d:o=d+1}var h=o-1;return{line:h,character:e-r[h]}},i.prototype.offsetAt=function(e){var r=this.getLineOffsets();if(e.line>=r.length)return this._content.length;if(e.line<0)return 0;var o=r[e.line],u=e.line+1<r.length?r[e.line+1]:this._content.length;return Math.max(Math.min(o+e.character,u),o)},Object.defineProperty(i.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),i.isIncremental=function(e){var r=e;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")},i.isFull=function(e){var r=e;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0},i}(),Tdt;(function(i){function e(u,d,h,v){return new vKt(u,d,h,v)}i.create=e;function r(u,d,h){if(u instanceof vKt)return u.update(d,h),u;throw new Error("TextDocument.update: document must be created by TextDocument.create")}i.update=r;function o(u,d){for(var h=u.getText(),v=TLt(d.map(YVn),function(Ae,Ie){var Xe=Ae.range.start.line-Ie.range.start.line;return Xe===0?Ae.range.start.character-Ie.range.start.character:Xe}),S=0,k=[],L=0,z=v;L<z.length;L++){var te=z[L],_e=u.offsetAt(te.range.start);if(_e<S)throw new Error("Overlapping edit");_e>S&&k.push(h.substring(S,_e)),te.newText.length&&k.push(te.newText),S=u.offsetAt(te.range.end)}return k.push(h.substr(S)),k.join("")}i.applyEdits=o})(Tdt||(Tdt={}));function TLt(i,e){if(i.length<=1)return i;var r=i.length/2|0,o=i.slice(0,r),u=i.slice(r);TLt(o,e),TLt(u,e);for(var d=0,h=0,v=0;d<o.length&&h<u.length;){var S=e(o[d],u[h]);S<=0?i[v++]=o[d++]:i[v++]=u[h++]}for(;d<o.length;)i[v++]=o[d++];for(;h<u.length;)i[v++]=u[h++];return i}function bKt(i,e,r){r===void 0&&(r=0);for(var o=e?[r]:[],u=0;u<i.length;u++){var d=i.charCodeAt(u);(d===13||d===10)&&(d===13&&u+1<i.length&&i.charCodeAt(u+1)===10&&u++,o.push(r+u+1))}return o}function SKt(i){var e=i.start,r=i.end;return e.line>r.line||e.line===r.line&&e.character>r.character?{start:r,end:e}:i}function YVn(i){var e=SKt(i.range);return e!==i.range?{newText:i.newText,range:e}:i}oe();oe();oe();oe();var FH=i=>typeof i=="string",EKt=i=>typeof i=="function";function aX(i){return typeof i=="object"&&i!=null&&!Array.isArray(i)}var QVn=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,$Vn=/\/\*[^]*?\*\/|\s\s+|\n/g,rze=(i,e=[{}])=>{let r=QVn.exec((i??"").replace($Vn,""));return r?(r[4]?e.shift():r[3]?e.unshift(e[0][r[3]]=e[0][r[3]]||{}):e[0][r[1]]=r[2],rze(i,e)):e[0]};function ZVn(i){return aX(i)&&"ref"in i}function TKt(i){return ZVn(i)?i.ref:i.toString()}var eHn=/calc/g,tHn=(i,...e)=>e.map(TKt).join(` ${i} `).replace(eHn,""),nHn=(...i)=>`calc(${tHn("*",...i)})`,DKt={negate(i){let e=TKt(i);return e!=null&&!Number.isNaN(parseFloat(e))?String(e).startsWith("-")?String(e).slice(1):`-${e}`:nHn(e,-1)}},rF=i=>i.charAt(0).toUpperCase()+i.slice(1),rHn=/([a-z])([A-Z])/g,Adt=i=>i.replace(rHn,"$1-$2").toLowerCase(),kdt=i=>i.charAt(0).toLowerCase()+i.slice(1);function PPe(i){return Object.fromEntries(Object.entries(i??{}).filter(([e,r])=>r!==void 0))}var ize=i=>i==="base";function wdt(i){return i.slice().filter(e=>!ize(e))}var AKt=/!(important)?$/;function Idt(i){return typeof i=="string"?AKt.test(i):!1}function Pdt(i){return typeof i=="string"?i.replace(AKt,"").trim():i}function Ndt(i){return typeof i=="string"?i.replaceAll(" ","_"):i}function xKt(i){return String.fromCharCode(i+(i>25?39:97))}function iHn(i){let e="",r;for(r=Math.abs(i);r>52;r=r/52|0)e=xKt(r%52)+e;return xKt(r%52)+e}function sHn(i,e){let r=e.length;for(;r;)i=i*33^e.charCodeAt(--r);return i}function sze(i){return iHn(sHn(5381,i)>>>0)}var aHn=i=>i!=null;function iF(i,e,r={}){let{stop:o,getKey:u}=r;function d(h,v=[]){if(aX(h)||Array.isArray(h)){let S={};for(let[k,L]of Object.entries(h)){let z=u?.(k)??k,te=[...v,z];if(o?.(h,te))return e(h,v);let _e=d(L,te);aHn(_e)&&(S[z]=_e)}return S}return e(h,v)}return d(i)}function NPe(i,e){return aX(i)?iF(i,r=>e(r)):e(i)}function oHn(i,e){return i.reduce((r,o,u)=>{let d=e[u];return o!=null&&(r[d]=o),r},{})}function kKt(i,e){let{utility:r,conditions:o}=e,{hasShorthand:u,resolveShorthand:d}=r;return iF(i,h=>Array.isArray(h)?oHn(h,o.breakpoints.keys):h,{stop:h=>Array.isArray(h),getKey:h=>u?d(h):h})}var DLt=16,Ddt="px",nze="em",ALt="rem";function wKt(i=""){let e=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),r=new RegExp(`${Ddt}|${nze}|${ALt}`);return i.match(new RegExp(`${e.source}(${r.source})`))?.[1]}function LPe(i=""){if(typeof i=="number")return`${i}px`;let e=wKt(i);if(!e||e===Ddt)return i;if(e===nze||e===ALt)return`${parseFloat(i)*DLt}${Ddt}`}function IKt(i="",e=DLt){let r=wKt(i);if(!r||r===nze)return i;if(r===Ddt)return`${parseFloat(i)/e}${nze}`;if(r===ALt)return`${parseFloat(i)*DLt/e}${nze}`}var lHn=/[.*+?^${}()|[\]\\]/g;function cHn(i){return i.replace(lHn,"\\$&")}var uHn=/[A-Z]/g;function fHn(i){return i.replace(uHn,e=>`-${e.toLowerCase()}`)}function aze(i,e={}){let{fallback:r="",prefix:o="",hash:u}=e,d=u?["-",o,sze(i)].filter(Boolean).join("-"):fHn(["-",o,cHn(i)].filter(Boolean).join("-"));return{var:d,ref:`var(${d}${r?`, ${r}`:""})`}}var pHn=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,dHn=function(i,e){return e?i==="\0"?"\uFFFD":i==="-"&&i.length===1?"\\-":i.slice(0,-1)+"\\"+i.charCodeAt(i.length-1).toString(16):"\\"+i},PKt=i=>(i+"").replace(pHn,dHn);function NKt(i,e){let r={};return iF(i,(o,u)=>{o&&(r[u.join(".")]=o.value)},{stop:e??(o=>aX(o)&&"value"in o)}),r}var VI=i=>{let e=new Map;return(...o)=>{let u=JSON.stringify(o);if(e.has(u))return e.get(u);let d=i(...o);return e.set(u,d),d}},_Hn=/[A-Z]/g,LKt=VI(i=>i.startsWith("--")?i:i.replace(_Hn,e=>`-${e.toLowerCase()}`));function oze(i,e,r){if(typeof e!="string")return r;let o=e.indexOf(".");if(o===-1)return i?.[e]??r;let u=e.slice(0,o),d=e.slice(o+1),h=i?.[u]?.[d];return h||(oze(i?.[u],d,r)??r)}function FKt(i,...e){let r=Object.getOwnPropertyDescriptors(i),o=Object.keys(r),u=h=>{let v={};for(let S=0;S<h.length;S++){let k=h[S];r[k]&&(Object.defineProperty(v,k,r[k]),delete r[k])}return v},d=h=>u(Array.isArray(h)?h:o.filter(h));return e.map(d).concat(u(o))}function kLt(i){let e={};return i.forEach((r,o)=>{r instanceof Map?e[o]=Object.fromEntries(r):e[o]=r}),e}function Ote(i){return Array.from(i).map(e=>JSON.stringify(e)).join(" | ")}oe();var FT=Nm(mFt(),1),nC=FT.default,GWr=FT.default.stringify,jWr=FT.default.fromJSON,UWr=FT.default.plugin,WWr=FT.default.parse,VWr=FT.default.list,HWr=FT.default.document,zWr=FT.default.comment,JWr=FT.default.atRule,qWr=FT.default.rule,KWr=FT.default.decl,XWr=FT.default.root,NYt=FT.default.CssSyntaxError,YWr=FT.default.Declaration,QWr=FT.default.Container,$Wr=FT.default.Processor,ZWr=FT.default.Document,eVr=FT.default.Comment,tVr=FT.default.Warning,nVr=FT.default.AtRule,rVr=FT.default.Result,iVr=FT.default.Input,sVr=FT.default.Rule,aVr=FT.default.Root,oVr=FT.default.Node;var hvn=Nm(_Ot(),1);var Bvn=Nm(XQt(),1);var DRt=Nm(EOt(),1);oe();oe();var TOt,E$t,T$t,D$t,A$t=!0;typeof process<"u"&&({FORCE_COLOR:TOt,NODE_DISABLE_COLORS:E$t,NO_COLOR:T$t,TERM:D$t}=process.env||{},A$t=process.stdout&&process.stdout.isTTY);var Wx={enabled:!E$t&&T$t==null&&D$t!=="dumb"&&(TOt!=null&&TOt!=="0"||A$t),reset:MT(0,0),bold:MT(1,22),dim:MT(2,22),italic:MT(3,23),underline:MT(4,24),inverse:MT(7,27),hidden:MT(8,28),strikethrough:MT(9,29),black:MT(30,39),red:MT(31,39),green:MT(32,39),yellow:MT(33,39),blue:MT(34,39),magenta:MT(35,39),cyan:MT(36,39),white:MT(37,39),gray:MT(90,39),grey:MT(90,39),bgBlack:MT(40,49),bgRed:MT(41,49),bgGreen:MT(42,49),bgYellow:MT(43,49),bgBlue:MT(44,49),bgMagenta:MT(45,49),bgCyan:MT(46,49),bgWhite:MT(47,49)};function x$t(i,e){let r=0,o,u="",d="";for(;r<i.length;r++)o=i[r],u+=o.open,d+=o.close,~e.indexOf(o.close)&&(e=e.replace(o.rgx,o.close+o.open));return u+e+d}function _$n(i,e){let r={has:i,keys:e};return r.reset=Wx.reset.bind(r),r.bold=Wx.bold.bind(r),r.dim=Wx.dim.bind(r),r.italic=Wx.italic.bind(r),r.underline=Wx.underline.bind(r),r.inverse=Wx.inverse.bind(r),r.hidden=Wx.hidden.bind(r),r.strikethrough=Wx.strikethrough.bind(r),r.black=Wx.black.bind(r),r.red=Wx.red.bind(r),r.green=Wx.green.bind(r),r.yellow=Wx.yellow.bind(r),r.blue=Wx.blue.bind(r),r.magenta=Wx.magenta.bind(r),r.cyan=Wx.cyan.bind(r),r.white=Wx.white.bind(r),r.gray=Wx.gray.bind(r),r.grey=Wx.grey.bind(r),r.bgBlack=Wx.bgBlack.bind(r),r.bgRed=Wx.bgRed.bind(r),r.bgGreen=Wx.bgGreen.bind(r),r.bgYellow=Wx.bgYellow.bind(r),r.bgBlue=Wx.bgBlue.bind(r),r.bgMagenta=Wx.bgMagenta.bind(r),r.bgCyan=Wx.bgCyan.bind(r),r.bgWhite=Wx.bgWhite.bind(r),r}function MT(i,e){let r={open:`\x1B[${i}m`,close:`\x1B[${e}m`,rgx:new RegExp(`\\x1b\\[${e}m`,"g")};return function(o){return this!==void 0&&this.has!==void 0?(~this.has.indexOf(i)||(this.has.push(i),this.keys.push(r)),o===void 0?this:Wx.enabled?x$t(this.keys,o+""):o+""):o===void 0?_$n([i],[r]):Wx.enabled?x$t([r],o+""):o+""}}var FN=Wx;oe();oe();oe();var m$n=Object.defineProperty,wce=(i,e)=>{for(var r in e)m$n(i,r,{get:e[r],enumerable:!0})};var w9={};wce(w9,{at:()=>T$n,compact:()=>P$n,concat:()=>I$n,every:()=>k$n,filter:()=>B$n,filterMap:()=>C$n,flat:()=>N$n,forEach:()=>v$n,from:()=>h$n,has:()=>w$n,head:()=>x$n,map:()=>g$n,next:()=>b$n,prev:()=>S$n,reduce:()=>y$n,some:()=>A$n,tail:()=>E$n,uniq:()=>D$n});var h$n=i=>Array.from(i),B$n=i=>e=>e.filter(i),g$n=i=>e=>e.map(i),y$n=(i,e)=>r=>r.reduce(i,e),C$n=i=>e=>e.reduce((r,o,u,d)=>{let h=i(o,u,d);return h==null?r:[...r,h]},[]),v$n=i=>e=>e.forEach(i),b$n=(i,e)=>r=>r[(i+1)%(e?r.length:r.length-1)],S$n=(i,e)=>r=>r[(i-1+(e?r.length:0))%r.length],x$n=i=>i[0],E$n=i=>i[i.length-1],T$n=i=>e=>e.at(i),D$n=i=>[...new Set(i)],A$n=i=>e=>e.some(i),k$n=i=>e=>e.every(i),w$n=i=>e=>e.includes(i),I$n=(...i)=>e=>e.concat(...i),P$n=i=>i.filter(e=>e!=null),N$n=()=>i=>i.flat();oe();var x6={};wce(x6,{and:()=>O$n,not:()=>F$n,or:()=>L$n});function L$n(...i){return e=>i.some(r=>r(e))}var F$n=i=>e=>!i(e);function O$n(...i){return e=>i.every(r=>r(e))}oe();var nJe=(...i)=>e=>{for(let r of i){let o=r(e);if(o!=null)return o}};function pCe(i,e){return r=>{if(i(r))return e(r)}}var DOt=i=>e=>pCe(()=>!0,i)(e);oe();oe();function CA(i,...e){return e.reduce((r,o)=>o(r),i)}function GH(i){return e=>(i(e),e)}var cX=i=>i,D_t=()=>{};var sF=(i,e)=>r=>{try{return i(r)}catch(o){return cX(e?.(o,r))}};oe();var A_t=i=>typeof i=="boolean";var k_t=i=>typeof i=="string",k$t=i=>Array.isArray(i),w_t=i=>i!==null&&typeof i=="object"&&!k$t(i),AOt=i=>typeof i=="function";var dS={};wce(dS,{assign:()=>G$n,assignTo:()=>j$n,bind:()=>U$n,compact:()=>V$n,defaults:()=>q$n,entries:()=>M$n,filter:()=>w$t,fromEntries:()=>I_t,get:()=>X$n,keys:()=>W$n,map:()=>R$n,merge:()=>I$t,omit:()=>z$n,pick:()=>J$n,split:()=>H$n});var I_t=i=>Object.fromEntries(i),R$n=i=>e=>I_t(Object.entries(e).map(([r,o])=>i(r,o))),M$n=i=>Object.entries(i);function G$n(i){return e=>({...e,...AOt(i)?i(e):i})}var j$n=i=>e=>I_t([[i,e]]),U$n=(i,e)=>r=>cX({...r,[i]:e(r)}),W$n=i=>Object.keys(i),w$t=i=>e=>I_t(Object.entries(e).filter(([r,o])=>i(r,o))),V$n=i=>w$t((e,r)=>r!=null)(i),H$n=(...i)=>e=>{let r=Object.getOwnPropertyDescriptors(e),o=Object.keys(r),u=h=>{let v={};for(let S=0;S<h.length;S++){let k=h[S];r[k]&&(Object.defineProperty(v,k,r[k]),delete r[k])}return v},d=h=>u(Array.isArray(h)?h:o.filter(h));return i.map(d).concat(u(o))};function I$t(...i){return e=>{if(!i.length)return e;for(let r=1;r<i.length;r++){let o={...i[r]};for(let u in o){let d=e[u],h=o[u];w_t(d)&&w_t(h)?e[u]=I$t(h)(d):e[u]=h}}return e}}var z$n=i=>e=>{let r={...e};for(let o=0;o<i.length;o++)delete r[i[o]];return r},J$n=i=>e=>{let r={};for(let o=0;o<i.length;o++)r[i[o]]=e[i[o]];return r},q$n=i=>e=>cX({...i,...e}),K$n=i=>i!=="__proto__"&&i!=="prototype"&&i!=="constructor",X$n=(i,e)=>r=>{let o=Array.isArray(i)?i:i.split(".");for(let u=0;u<o.length;u++){let d=o[u];if(!r||!Object.prototype.hasOwnProperty.call(r,d)||!K$n(d)){r=void 0;break}r=r[d]}return cX(r??e)};oe();var rJe={};wce(rJe,{filter:()=>aZn,flatMap:()=>eZn,fromExecution:()=>Q$n,fromNullable:()=>P$t,fromPredicate:()=>Y$n,getOrElse:()=>tZn,getOrThrow:()=>nZn,isNone:()=>Vte,isSome:()=>N$t,map:()=>Z$n,match:()=>rZn,none:()=>Ice,orElse:()=>iZn,some:()=>iJe,tap:()=>sZn});var Ice=Object.freeze({_tag:"None"}),iJe=i=>Object.freeze({_tag:"Some",value:i});function Y$n(i){return e=>i(e)?iJe(e):Ice}var P$t=i=>i==null?Ice:iJe(i),Q$n=i=>{try{return P$t(i())}catch{return Ice}},Vte=i=>i._tag==="None",N$t=i=>i._tag==="Some",$$n=i=>i._tag==="None"||i._tag==="Some",Z$n=i=>e=>Vte(e)?Ice:iJe(i(e.value)),eZn=i=>e=>Vte(e)?Ice:i(e.value),tZn=i=>e=>Vte(e)?i():e.value,nZn=i=>e=>{if(Vte(e))throw new Error(i);return e.value},rZn=(i,e)=>r=>Vte(r)?e():i(r.value),iZn=i=>e=>{let r=i();return $$n(r)?Vte(e)?r:e:Vte(e)?iJe(r):e},sZn=i=>e=>(N$t(e)&&i(e.value),e),aZn=i=>e=>Vte(e)?Ice:i(e.value)?e:Ice;function fZn(i){if(typeof i!="string")throw new TypeError("Expected a string");return i.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var kOt=new Map,L$t=(i,e)=>{if(!Array.isArray(i))switch(typeof i){case"string":i=[i];break;case"undefined":i=[];break;default:throw new TypeError(`Expected '${e}' to be a string or an array, but got a type of '${typeof i}'`)}return i.filter(r=>{if(typeof r!="string"){if(typeof r>"u")return!1;throw new TypeError(`Expected '${e}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})},pZn=(i,e)=>{e={caseSensitive:!1,...e};let r=i+JSON.stringify(e);if(kOt.has(r))return kOt.get(r);let o=i[0]==="!";o&&(i=i.slice(1)),i=fZn(i).replace(/\\\*/g,"[\\s\\S]*");let u=new RegExp(`^${i}$`,e.caseSensitive?"":"i");return u.negated=o,kOt.set(r,u),u},dZn=(i,e,r,o)=>{if(i=L$t(i,"inputs"),e=L$t(e,"patterns"),e.length===0)return[];e=e.map(h=>pZn(h,r));let{allPatterns:u}=r||{},d=[];for(let h of i){let v,S=[...e].fill(!1);for(let[k,L]of e.entries())if(L.test(h)&&(S[k]=!0,v=!L.negated,!v))break;if(!(v===!1||v===void 0&&e.some(k=>!k.negated)||u&&S.some((k,L)=>!k&&!e[L].negated))&&(d.push(h),o))break}return d};function _Zn(i,e,r){return dZn(i,e,r,!0).length>0}var wOt={debug:{weight:0,color:FN.magenta},info:{weight:1,color:FN.blue},warn:{weight:2,color:FN.yellow},error:{weight:3,color:FN.red},silent:{weight:4,color:FN.white}},mZn=i=>CA({entry:i},dS.assign(({entry:e})=>({uword:e.type?FN.gray(`[${e.type}]`):""})),nJe(pCe(({entry:e})=>e.level!=null,({entry:e,uword:r})=>{let{msg:o,level:u}=e,d=wOt[u].color;return{label:["\u{1F43C}",FN.bold(d(`${u}`)),r].filter(Boolean).join(" "),msg:o}}),DOt(({entry:e,uword:r})=>{let{msg:o}=e;return{label:r??"",msg:o}}))),hZn=(i,e,r)=>{let o=r instanceof Error?FN.red(r.message):r;return{type:e,level:i,msg:o}},BZn=(i,e)=>i.some(r=>_Zn(e,r)),gZn=(i={})=>{let e=i.level??"info",{stdout:r,timing:o}=CA(i,({filter:u})=>({getLevel:()=>u?"debug":e,filter:u!=="*"?u?.split(/[\s,]+/)??[]:[]}),dS.assignTo("config"),dS.assign(({config:u})=>({isValid(d,h){let v=wOt[u.getLevel()].weight>wOt[d].weight;return!(u.filter.length>0&&!BZn(u.filter,h)||v)}})),dS.assign(({isValid:u,config:d})=>({stdout(h){return(v,S)=>{CA(hZn(h,v,S),nJe(pCe(({level:k,type:L})=>k!=null&&u(k,L),k=>{let{msg:L,label:z}=mZn(k)??{};console.log(z,L)}),pCe(({level:k})=>d.getLevel()!=="silent"&&k==null,()=>{console.log(...[v,S].filter(Boolean))})))}}})),dS.assign(({stdout:u})=>({timing:d=>h=>{let v=performance.now();return()=>{let k=performance.now()-v;u(d)("hrtime",`${h} ${FN.gray(`(${k.toFixed(2)}ms)`)}`)}}})));return{get level(){return e},set level(u){e=u},warn:r("warn"),info:r("info"),debug:r("debug"),error:r("error"),log:u=>r(null)("",u),time:{info:o("info"),debug:o("debug")},isDebug:!!i.isDebug}},O$t=i=>{let e=r=>`${i}/${r}`;return e.toString=()=>i,e},Hte=(...i)=>FN.cyan(`\`${i.join("")}\``),F$t=process.env.PANDA_DEBUG,Hd=gZn({filter:typeof process<"u"?F$t:void 0,isDebug:!!F$t});oe();var jH=Symbol("@ts-pattern/matcher"),N_t="@ts-pattern/anonymous-select-key",IOt=function(i){return!!(i&&typeof i=="object")},P_t=function(i){return i&&!!i[jH]},zte=function i(e,r,o){if(IOt(e)){if(P_t(e)){var u=e[jH]().match(r),d=u.matched,h=u.selections;return d&&h&&Object.keys(h).forEach(function(S){return o(S,h[S])}),d}if(!IOt(r))return!1;if(Array.isArray(e))return!!Array.isArray(r)&&e.length===r.length&&e.every(function(S,k){return i(S,r[k],o)});if(e instanceof Map)return r instanceof Map&&Array.from(e.keys()).every(function(S){return i(e.get(S),r.get(S),o)});if(e instanceof Set){if(!(r instanceof Set))return!1;if(e.size===0)return r.size===0;if(e.size===1){var v=Array.from(e.values())[0];return P_t(v)?Array.from(r.values()).every(function(S){return i(v,S,o)}):r.has(v)}return Array.from(e.values()).every(function(S){return r.has(S)})}return Object.keys(e).every(function(S){var k,L=e[S];return(S in r||P_t(k=L)&&k[jH]().matcherType==="optional")&&i(L,r[S],o)})}return Object.is(r,e)},Pce=function i(e){var r,o,u;return IOt(e)?P_t(e)?(r=(o=(u=e[jH]()).getSelectionKeys)==null?void 0:o.call(u))!=null?r:[]:Array.isArray(e)?sJe(e,i):sJe(Object.values(e),i):[]},sJe=function(i,e){return i.reduce(function(r,o){return r.concat(e(o))},[])};function R$t(i){var e;return(e={})[jH]=function(){return{match:function(r){var o={},u=function(d,h){o[d]=h};return r===void 0?(Pce(i).forEach(function(d){return u(d,void 0)}),{matched:!0,selections:o}):{matched:zte(i,r,u),selections:o}},getSelectionKeys:function(){return Pce(i)},matcherType:"optional"}},e}function M$t(i){var e;return(e={})[jH]=function(){return{match:function(r){if(!Array.isArray(r))return{matched:!1};var o={};if(r.length===0)return Pce(i).forEach(function(d){o[d]=[]}),{matched:!0,selections:o};var u=function(d,h){o[d]=(o[d]||[]).concat([h])};return{matched:r.every(function(d){return zte(i,d,u)}),selections:o}},getSelectionKeys:function(){return Pce(i)}}},e}function G$t(){var i,e=[].slice.call(arguments);return(i={})[jH]=function(){return{match:function(r){var o={},u=function(d,h){o[d]=h};return{matched:e.every(function(d){return zte(d,r,u)}),selections:o}},getSelectionKeys:function(){return sJe(e,Pce)},matcherType:"and"}},i}function j$t(){var i,e=[].slice.call(arguments);return(i={})[jH]=function(){return{match:function(r){var o={},u=function(d,h){o[d]=h};return sJe(e,Pce).forEach(function(d){return u(d,void 0)}),{matched:e.some(function(d){return zte(d,r,u)}),selections:o}},getSelectionKeys:function(){return sJe(e,Pce)},matcherType:"or"}},i}function U$t(i){var e;return(e={})[jH]=function(){return{match:function(r){return{matched:!zte(i,r,function(){})}},getSelectionKeys:function(){return[]},matcherType:"not"}},e}function uX(i){var e;return(e={})[jH]=function(){return{match:function(r){return{matched:!!i(r)}}}},e}function W$t(){var i,e=[].slice.call(arguments),r=typeof e[0]=="string"?e[0]:void 0,o=e.length===2?e[1]:typeof e[0]=="string"?void 0:e[0];return(i={})[jH]=function(){return{match:function(u){var d,h=((d={})[r??N_t]=u,d);return{matched:o===void 0||zte(o,u,function(v,S){h[v]=S}),selections:h}},getSelectionKeys:function(){return[r??N_t].concat(o===void 0?[]:Pce(o))}}},i}var V$t=uX(function(i){return!0}),yZn=V$t,CZn=uX(function(i){return typeof i=="string"}),vZn=uX(function(i){return typeof i=="number"}),bZn=uX(function(i){return typeof i=="boolean"}),SZn=uX(function(i){return typeof i=="bigint"}),xZn=uX(function(i){return typeof i=="symbol"}),EZn=uX(function(i){return i==null}),EE={__proto__:null,optional:R$t,array:M$t,intersection:G$t,union:j$t,not:U$t,when:uX,select:W$t,any:V$t,_:yZn,string:CZn,number:vZn,boolean:bZn,bigint:SZn,symbol:xZn,nullish:EZn,instanceOf:function(i){return uX(function(e){return function(r){return r instanceof e}}(i))},typed:function(){return{array:M$t,optional:R$t,intersection:G$t,union:j$t,not:U$t,select:W$t,when:uX}}};function f0(i){return new TZn(i,[])}var TZn=function(){function i(r,o){this.value=void 0,this.cases=void 0,this.value=r,this.cases=o}var e=i.prototype;return e.with=function(){var r=[].slice.call(arguments),o=r[r.length-1],u=[r[0]],d=[];return r.length===3&&typeof r[1]=="function"?(u.push(r[0]),d.push(r[1])):r.length>2&&u.push.apply(u,r.slice(1,r.length-1)),new i(this.value,this.cases.concat([{match:function(h){var v={},S=!!(u.some(function(k){return zte(k,h,function(L,z){v[L]=z})})&&d.every(function(k){return k(h)}));return{matched:S,value:S&&Object.keys(v).length?N_t in v?v[N_t]:v:h}},handler:o}]))},e.when=function(r,o){return new i(this.value,this.cases.concat([{match:function(u){return{matched:!!r(u),value:u}},handler:o}]))},e.otherwise=function(r){return new i(this.value,this.cases.concat([{match:function(o){return{matched:!0,value:o}},handler:r}])).run()},e.exhaustive=function(){return this.run()},e.run=function(){for(var r=this.value,o=void 0,u=0;u<this.cases.length;u++){var d=this.cases[u],h=d.match(this.value);if(h.matched){r=h.value,o=d.handler;break}}if(!o){var v;try{v=JSON.stringify(this.value)}catch{v=this.value}throw new Error("Pattern matching error: no pattern matches value "+v)}return o(r,this.value)},i}();function dCe(){var i=[].slice.call(arguments);if(i.length===1){var e=i[0];return function(r){return zte(e,r,function(){})}}if(i.length===2)return zte(i[0],i[1],function(){});throw new Error("isMatching wasn't given the right number of arguments: expected 1 or 2, received "+i.length+".")}var kRt=Nm(X$t(),1),vvn=Nm(Z$t(),1),bvn=Nm(LCn(),1),wRt=Nm(_Ot(),1),Svn=Nm(evn(),1);var Pvn=Nm(EOt(),1),Nvn=Nm(B_t(),1);oe();function gRt(i,e={},r){for(let o in i){let u=i[o],d=r?`${r}:${o}`:o;typeof u=="object"&&u!==null?gRt(u,e,d):typeof u=="function"&&(e[d]=u)}return e}var Anr={run:i=>i()},knr=()=>Anr,nvn=typeof console.createTask<"u"?console.createTask:knr;function wnr(i,e){let r=e.shift(),o=nvn(r);return i.reduce((u,d)=>u.then(()=>o.run(()=>d(...e))),Promise.resolve())}function Inr(i,e){let r=e.shift(),o=nvn(r);return Promise.all(i.map(u=>o.run(()=>u(...e))))}function BRt(i,e){for(let r of[...i])r(e)}var yRt=class{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,r,o={}){if(!e||typeof r!="function")return()=>{};let u=e,d;for(;this._deprecatedHooks[e];)d=this._deprecatedHooks[e],e=d.to;if(d&&!o.allowDeprecated){let h=d.message;h||(h=`${u} hook has been deprecated`+(d.to?`, please use ${d.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(h)||(console.warn(h),this._deprecatedMessages.add(h))}if(!r.name)try{Object.defineProperty(r,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(r),()=>{r&&(this.removeHook(e,r),r=void 0)}}hookOnce(e,r){let o,u=(...d)=>(typeof o=="function"&&o(),o=void 0,u=void 0,r(...d));return o=this.hook(e,u),o}removeHook(e,r){if(this._hooks[e]){let o=this._hooks[e].indexOf(r);o!==-1&&this._hooks[e].splice(o,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,r){this._deprecatedHooks[e]=typeof r=="string"?{to:r}:r;let o=this._hooks[e]||[];delete this._hooks[e];for(let u of o)this.hook(e,u)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(let r in e)this.deprecateHook(r,e[r])}addHooks(e){let r=gRt(e),o=Object.keys(r).map(u=>this.hook(u,r[u]));return()=>{for(let u of o.splice(0,o.length))u()}}removeHooks(e){let r=gRt(e);for(let o in r)this.removeHook(o,r[o])}removeAllHooks(){for(let e in this._hooks)delete this._hooks[e]}callHook(e,...r){return r.unshift(e),this.callHookWith(wnr,e,...r)}callHookParallel(e,...r){return r.unshift(e),this.callHookWith(Inr,e,...r)}callHookWith(e,r,...o){let u=this._before||this._after?{name:r,args:o,context:{}}:void 0;this._before&&BRt(this._before,u);let d=e(r in this._hooks?[...this._hooks[r]]:[],o);return d instanceof Promise?d.finally(()=>{this._after&&u&&BRt(this._after,u)}):(this._after&&u&&BRt(this._after,u),d)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){let r=this._before.indexOf(e);r!==-1&&this._before.splice(r,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){let r=this._after.indexOf(e);r!==-1&&this._after.splice(r,1)}}}};function smt(){return new yRt}var tvn=typeof window<"u";function rvn(i,e={}){let r={inspect:tvn,group:tvn,filter:()=>!0,...e},o=r.filter,u=typeof o=="string"?L=>L.startsWith(o):o,d=r.tag?`[${r.tag}] `:"",h=L=>d+L.name+"".padEnd(L._id,"\0"),v={},S=i.beforeEach(L=>{u!==void 0&&!u(L.name)||(v[L.name]=v[L.name]||0,L._id=v[L.name]++,console.time(h(L)))}),k=i.afterEach(L=>{u!==void 0&&!u(L.name)||(r.group&&console.groupCollapsed(L.name),r.inspect?console.timeLog(h(L),L.args):console.timeEnd(h(L)),r.group&&console.groupEnd(),v[L.name]--)});return{close:()=>{S(),k()}}}function pJe(i){try{return nC.parse(i)}catch{return nC.root()}}var Pnr={aspectRatio:!0,boxFlex:!0,boxFlexGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,lineClamp:!0,WebkitLineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};function CRt(i){return typeof i.nodes>"u"?!0:ERt(i)}function ERt(i){let e,r={};return i.each(o=>{if(o.type==="atrule")e="@"+o.name,o.params&&(e+=" "+o.params),typeof r[e]>"u"?r[e]=CRt(o):Array.isArray(r[e])?r[e].push(CRt(o)):r[e]=[r[e],CRt(o)];else if(o.type==="rule"){let u=ERt(o);if(r[o.selector])for(let d in u)r[o.selector][d]=u[d];else r[o.selector]=u}else if(o.type==="decl"){o.prop[0]==="-"&&o.prop[1]==="-"?e=o.prop:e=(0,Bvn.default)(o.prop);let u=o.value;!isNaN(Number(u))&&Pnr[e]&&(u=parseFloat(o.value)),o.important&&(u+=" !important"),typeof r[e]>"u"?r[e]=u:Array.isArray(r[e])?r[e].push(u):r[e]=[r[e],u]}}),r}var ivn=/\s*!important\s*$/i,Nnr={"aspect-ratio":!0,"box-flex":!0,"box-flex-group":!0,"column-count":!0,flex:!0,"flex-grow":!0,"flex-positive":!0,"flex-shrink":!0,"flex-negative":!0,"font-weight":!0,"line-clamp":!0,"-webkit-line-clamp":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,"tab-size":!0,widows:!0,"z-index":!0,zoom:!0,"fill-opacity":!0,"stroke-dashoffset":!0,"stroke-opacity":!0,"stroke-width":!0},Lnr=/([A-Z])/g,Fnr=/^ms-/;function Onr(i){return i.replace(Lnr,"-$1").replace(Fnr,"-ms-").toLowerCase()}function svn(i,e,r){if(r===!1||r==null)return;let o=e.startsWith("--");o||(e=Onr(e)),typeof r=="number"&&(r===0||Nnr[e]||o?r=r.toString():r=`${r}px`),e==="css-float"&&(e="float"),ivn.test(r)?(r=r.replace(ivn,""),i.push(nC.decl({prop:e,value:r,important:!0}))):i.push(nC.decl({prop:e,value:r}))}function avn(i,e,r){if(!e)return;let o=nC.atRule({name:e[1],params:e[3]||""});typeof r=="object"&&(o.nodes=[],TRt(r,o)),i.push(o)}function TRt(i,e){let r,o,u;for(r in i)if(o=i[r],!(o===null||typeof o>"u"))if(r[0]==="@"){let d=r.match(/@(\S+)(\s+([\W\w]*)\s*)?/);if(Array.isArray(o))for(let h of o)avn(e,d,h);else avn(e,d,o)}else if(Array.isArray(o))for(let d of o)svn(e,r,d);else typeof o=="object"?(u=nC.rule({selector:r}),TRt(o,u),e.push(u)):svn(e,r,o)}var Rnr=i=>{let e=nC.root();return TRt(i,e),e},Mnr=Rnr,gvn={parser:Mnr,objectify:ERt};function EU(i,{important:e}={}){let r=nC([(0,hvn.default)({bubble:["breakpoint"]})]).process(i,{parser:gvn.parser});return e&&r.root.walkDecls(o=>{o.important=!0}),r}function ovn(i){return gvn.objectify(pJe(i))}var amt=class{constructor(i){this.context=i,this.root=nC.root()}root;layer="utilities";hashFn=(i,e)=>{let{conditions:r,hash:o,utility:u}=this.context,d;if(o){let h=[...r.finalize(i),e];d=u.formatClassName(sze(h.join(":")))}else d=[...r.finalize(i),u.formatClassName(e)].join(":");return PKt(d)};get rule(){return this.context.conditions.rule()}get transform(){return this.context?.transform??this.context.utility.transform}process=i=>{let{styles:e}=i,{conditions:r}=this.context,o=kKt(e,this.context),u=this.rule;if(iF(o,(h,v)=>{if(h==null)return;let S=Idt(h),[k,...L]=r.shift(v),z=wdt(L),te=this.transform(k,Pdt(h)),_e=EU(te.styles,{important:S});if(u.nodes=_e.root.nodes,u.isEmpty)return;let Ae=this.hashFn(z,te.className);if(u.selector=S?`.${Ae}\\!`:`.${Ae}`,u.update(),u.applyConditions(z),te.layer){let Ie=nC.atRule({name:"layer",params:te.layer,nodes:[u.rule]});this.root.append(Ie)}else this.root.append(u.rule)}),this.root.nodes.length===0)return;let d=nC.atRule({name:"layer",params:this.layer,nodes:[this.root]});this.context.root.append(d)};toCss=()=>this.context.root.toString()},Gnr=class{constructor(i){this.breakpoints=i}get sorted(){return jnr(this.breakpoints)}get values(){return Object.fromEntries(this.sorted)}get keys(){return["base",...Object.keys(this.values)]}get=i=>this.values[i];build=({min:i,max:e})=>i==null&&e==null?"":["screen",i&&`(min-width: ${i})`,e&&`(max-width: ${e})`].filter(Boolean).join(" and ");up=i=>{let{min:e}=this.get(i);return this.build({min:e})};down=i=>{let{max:e}=this.get(i);return this.build({max:e})};between=(i,e)=>{let{min:r}=this.get(i),{max:o}=this.get(e);return this.build({min:r,max:o})};only=i=>{let{min:e,max:r}=this.get(i);return this.build({min:e,max:r})};get ranges(){let i=Object.keys(this.values),e=Wnr(i),r=i.flatMap((o,u)=>{let d=i[u],h=[`${d}Down`,this.down(d)],v=[d,this.up(d)],S=[`${d}Only`,this.only(d)];return[v,S,h]}).filter(([o,u])=>u!=="").concat(e.map(([o,u])=>[`${o}To${rF(u)}`,this.between(o,u)]));return Object.fromEntries(r)}get conditions(){let i=Object.entries(this.ranges).map(([e,r])=>[e,Unr(e,r)]);return Object.fromEntries(i)}getCondition=i=>this.conditions[i];expandScreenAtRule=i=>{i.walkAtRules("breakpoint",e=>{let r=this.getCondition(e.params);if(!r)throw e.error(`No \`${e.params}\` screen found.`);e.name="media",e.params=r.params})}};function jnr(i){return Object.entries(i).sort(([,e],[,r])=>parseInt(e,10)<parseInt(r,10)?-1:1).map(([e,r],o,u)=>{let d=null;if(o<=u.length-1&&(d=u[o+1]?.[1]),d!=null){let h=parseFloat(LPe(d)??"")-.05;d=IKt(`${h}px`)}return[e,{name:e,min:r,max:d}]})}var Unr=(i,e)=>({type:"at-rule",name:"breakpoint",value:i,raw:i,rawValue:`@media ${e}`,params:e});function Wnr(i){let e=[];return i.forEach((r,o)=>{let u=o;u++;let d=i[u];for(;d;)e.push([r,d]),u++,d=i[u]}),e}function ARt(i,e){let{utility:r,conditions:o}=e,u=o.rule(),d={};return iF(i,(h,v)=>{let S=Idt(h),[k,...L]=o.shift(v),z=wdt(L),te=z.length>0,{styles:_e}=r.transform(k,Pdt(h)),Ae=EU(_e,{important:S});if(te){let Ie=o.segment(z);u.nodes=Ae.root.nodes,u.selector=Ie.selector.length>0?Ie.selector[0]:"&",u.update(),u.applyConditions(Ie.condition),_e=ovn(u.toString())}else _e=ovn(Ae.css);(0,DRt.default)(d,_e)}),d}function Vnr(i,e){let r={};for(let[o,u]of Object.entries(i))r[o]||={},(0,DRt.default)(r[o],ARt(u,e));return EU(r).root}function yvn(i,e){for(let[r,o]of Object.entries(i)){let u=NKt(o??{}),d={layer:"compositions",className:r,values:Object.keys(u),transform:h=>ARt(u[h],e)};e.utility.register(r,d)}}var Hnr=class{constructor(i){this.conditionsMap=i}rule;selector="";nodes=[];get isEmpty(){return this.nodes.length===0}update=()=>{this.rule=nC.rule({selector:this.selector,nodes:this.nodes})};applyConditions=i=>{let e=this.conditionsMap.sort(i),r=nC.rule({selector:this.selector});e.forEach(o=>{if(!o)return;let u=o.rawValue??o.value;(vRt(r)??r).append(nC.rule({selector:u}))}),vRt(r)?.append(this.nodes),this.rule=r};toString(){return this.rule.toString()}};function vRt(i){return i.nodes&&i.nodes.length?vRt(i.nodes[i.nodes.length-1]):i}function znr(i){let r=pJe(i).nodes[0];return{type:"at-rule",name:r.name,value:r.params,raw:i,rawValue:i}}function bRt(i){if(i.startsWith("@"))return znr(i);let e;if(i.startsWith("&")?e="self-nesting":i.endsWith(" &")?e="parent-nesting":i.includes("&")&&(e="combinator-nesting"),e)return{type:e,value:i,raw:i}}var lvn=["self-nesting","combinator-nesting","parent-nesting","at-rule"],Jnr=/^_/,qnr=/&|@/,Cvn=class{constructor(i){this.options=i;let{breakpoints:e={},conditions:r={}}=this.options,o=new Gnr(e);this.breakpoints=o;let u=Object.entries(r).map(([d,h])=>[`_${d}`,bRt(h)]);this.values={...Object.fromEntries(u),...o.conditions}}values;breakpoints;finalize=i=>i.map(e=>this.has(e)?e.replace(Jnr,""):qnr.test(e)?`[${Ndt(e.trim())}]`:e);shift=i=>i.slice().sort((e,r)=>{let o=this.isCondition(e),u=this.isCondition(r);return o&&!u?1:!o&&u||!o&&!u?-1:0});segment=i=>{let e=[],r=[];for(let o of i)this.isCondition(o)?e.push(o):r.push(o);return{condition:e,selector:r}};has=i=>Object.prototype.hasOwnProperty.call(this.values,i);isCondition=i=>this.has(i)||!!this.getRaw(i)||ize(i);isEmpty=()=>Object.keys(this.values).length===0;get=i=>{let e=this.values[i];return e?.rawValue??e?.value};getRaw=i=>{try{return this.values[i]??bRt(i)}catch(e){Hd.error("core:condition",e)}};sort=i=>i.map(this.getRaw).filter(Boolean).sort((r,o)=>lvn.indexOf(r.type)-lvn.indexOf(o.type));normalize=i=>typeof i=="string"?this.getRaw(i):i;keys=()=>Object.keys(this.values);rule=()=>new Hnr(this)};var Knr=/token\(([^)]+)\)/g,Xnr=/\)$/;function xvn(i){return e=>{e.walkDecls(r=>{if(r.value.includes("token(")){let o=r.value.replace(Knr,(u,d)=>{let[h,v]=d.split(",").map(k=>k.trim()),S=[h,v].filter(Boolean).map(k=>i?.(k)??k);if(S.length>1){let[k,L]=S;return k.endsWith(")")?k.replace(Xnr,`, ${L})`):`var(${k}, ${L})`}return S[0]});r.value=o}})}}xvn.postcssPlugin="panda:expand-token-fn";var Ynr=xvn;function IRt(){return i=>{let e=new Map;i.walkAtRules("layer",r=>{let o=e.get(r.params);o?(r.remove(),o.append(r.nodes)):e.set(r.params,r)})}}IRt.postcssPlugin="panda-merge-layers";function Evn(i,e=0){i.each&&i.each((r,o)=>{(!r.raws.before||!r.raws.before.trim()||r.raws.before.includes(`
|
|
21115
21115
|
`))&&(r.raws.before=`
|
|
21116
21116
|
${i.type!=="rule"&&o>0?`
|
|
21117
|
-
`:""}${" ".repeat(e)}`),Evn(r,e+1)})}function dJe(){return i=>{Evn(i),i.first&&(i.first.raws.before="")}}dJe.postcssPlugin="panda-prettify";var Qnr=[":link",":visited",":focus-within",":focus",":focus-visible",":hover",":active"],cvn=i=>Qnr.findIndex(r=>i.trim().includes(r))+1;function PRt(){let i=e=>{let r=[],o=[],u=[];e.each(d=>{switch(d.type){case"rule":{d.first?.type==="atrule"?u.push(d):o.push(d);break}case"atrule":{u.push(d);break}default:r.push(d)}}),o.sort((d,h)=>{let v=d.selectors.length?d.selectors[0]:d.selector,S=h.selectors.length?h.selectors[0]:h.selector;return cvn(v)-cvn(S)}),e.nodes=[...r,...o,...u],e.nodes.forEach(d=>{"nodes"in d&&i(d)})};return i}PRt.postcssPlugin="panda-sort-css";var Tvn=/(!?\(\s*min(-device-)?-width)(.|\n)+\(\s*max(-device)?-width/i,$nr=/\(\s*min(-device)?-width/i,Dvn=/(!?\(\s*max(-device)?-width)(.|\n)+\(\s*min(-device)?-width/i,Znr=/\(\s*max(-device)?-width/i,SRt=omt(Tvn,Dvn,$nr),uvn=omt(Dvn,Tvn,Znr),Avn=/(!?\(\s*min(-device)?-height)(.|\n)+\(\s*max(-device)?-height/i,err=/\(\s*min(-device)?-height/i,kvn=/(!?\(\s*max(-device)?-height)(.|\n)+\(\s*min(-device)?-height/i,trr=/\(\s*max(-device)?-height/i,xRt=omt(Avn,kvn,err),fvn=omt(kvn,Avn,trr),pvn=/print/i,dvn=/^print$/i,fJe=Number.MAX_VALUE;function _vn(i){let e=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/.exec(i);if(e===null&&(SRt(i)||xRt(i))&&(e=/(\d)/.exec(i)),e==="0")return 0;if(e===null)return fJe;let r=e[1];switch(e[2]){case"ch":r=parseFloat(r)*8.8984375;break;case"em":case"rem":r=parseFloat(r)*16;break;case"ex":r=parseFloat(r)*8.296875;break;case"px":r=parseFloat(r);break}return+r}function omt(i,e,r){return function(o){return i.test(o)?!0:e.test(o)?!1:r.test(o)}}function nrr(i,e){let r=pvn.test(i),o=dvn.test(i),u=pvn.test(e),d=dvn.test(e);return r&&u?!o&&d?1:o&&!d?-1:i.localeCompare(e):r?1:u?-1:null}function rrr(i={}){let{unitlessMqAlwaysFirst:e}=i;return function(o,u){let d=nrr(o,u);if(d!==null)return d;let h=SRt(o)||xRt(o),v=uvn(o)||fvn(o),S=SRt(u)||xRt(u),k=uvn(u)||fvn(u);if(e&&(!h&&!v||!S&&!k))return!h&&!v&&!S&&!k?o.localeCompare(u):!S&&!k?1:-1;{if(h&&k)return-1;if(v&&S)return 1;let L=_vn(o),z=_vn(u);return L===fJe&&z===fJe?o.localeCompare(u):L===fJe?1:z===fJe?-1:L>z?v?-1:1:L<z?v?1:-1:o.localeCompare(u)}}}var irr=rrr();function NRt(){let i=e=>{e.nodes.sort((r,o)=>f0({a:r,b:o}).with({a:{type:"atrule",name:"media"},b:{type:"atrule",name:"media"}},({a:u,b:d})=>irr(u.params,d.params)).with({a:{type:"atrule",name:"media"},b:EE.any},()=>1).with({a:EE.any,b:{type:"atrule",name:"media"}},()=>-1).otherwise(()=>0)),e.nodes.forEach(r=>{"nodes"in r&&i(r)})};return i}NRt.postcssPlugin="panda-sort-mq";function lmt(i,e={}){let{minify:r=!1}=e,{css:o}=nC([(0,wRt.default)(),IRt(),NRt(),(0,kRt.default)(),(0,bvn.default)(),PRt(),(0,vvn.default)(),r?(0,Svn.default)():dJe()]).process(i);return o}function srr(i,e={}){let{token:r}=e,{css:o}=nC([Ynr(r)]).process(i);return o}function cmt(i){let{css:e}=nC([IRt(),(0,kRt.default)(),NRt(),PRt(),dJe()]).process(i);return e}function wvn(i){let{css:e}=nC([(0,wRt.default)(),dJe()]).process(i);return e}function Ivn(i){let{css:e}=nC([dJe()]).process(i);return e}function umt(i,e){let r=pJe(i),o=pJe(e),u=r.nodes.filter(dCe({type:"atrule",name:"layer",params:"utilities"}));return o.walkAtRules("layer",d=>{d.params==="utilities"&&u.forEach(h=>{d.append(h.nodes)})}),cmt(o)}var arr=i=>{let e=i.map(r=>typeof r=="string"?r:r.source).join("|");return new RegExp(`^${e}$`)},I9={classNames:new Map,styles:new Map,configs:new Map},LRt=class{constructor(i={},e){this.recipes=i,this.context=e,this.assignRules()}rules=new Map;getPropKey=(i,e,r)=>`${i} (${e} = ${r})`;get separator(){return this.context?.utility.separator??"_"}getClassName=(i,e,r)=>`${i}--${e}${this.separator}${r}`;save=()=>{for(let[i,e]of Object.entries(this.recipes))this.assignRecipe(i,this.normalize(e))};assignRecipe=(i,e)=>{let r=Object.keys(e.variants??{}),o=e.jsx??[rF(i)],u=arr(o);I9.configs.set(i,{...this.getNames(i),jsx:o,name:i,variantKeys:r,variantKeyMap:Object.fromEntries(Object.entries(e.variants??{}).map(([d,h])=>[d,Object.keys(h)])),match:u,config:e,splitProps:d=>FKt(d,r)})};assignRules=()=>{if(this.context)for(let i of Object.keys(this.recipes))this.rules.set(i,this.createRule(i))};isEmpty=()=>I9.configs.size===0;getNames=VI(i=>({upperName:rF(i),dashName:Adt(i),jsxName:rF(i)}));getRecipe=VI(i=>I9.configs.get(i));getConfig=VI(i=>this.recipes[i]);find=VI(i=>{for(let e of I9.configs.values())if(e.match.test(i))return e});getFnName=VI(i=>this.find(i)?.name??kdt(i));get details(){return Array.from(I9.configs.values())}get nodes(){return this.details.map(({upperName:i,variantKeys:e,name:r,jsx:o,match:u})=>({type:"recipe",name:i,props:e,baseName:r,jsx:o,match:u}))}splitProps=(i,e)=>{let r=this.find(i);return r?r.splitProps(e):[{},e]};normalize=i=>{let{name:e,jsx:r=[rF(e)],base:o={},variants:u={},defaultVariants:d={},description:h="",compoundVariants:v=[]}=i,S={jsx:r,name:e,description:h,base:{},variants:{},defaultVariants:d,compoundVariants:v};S.base=this.serialize(o),I9.styles.set(e,S.base),I9.classNames.set(e,e);for(let[k,L]of Object.entries(u))for(let[z,te]of Object.entries(L)){let _e=this.getPropKey(e,k,z),Ae=this.getClassName(e,k,z),Ie=this.serialize(te);I9.styles.set(_e,Ie),I9.classNames.set(_e,Ae),(0,Pvn.default)(S.variants,{[k]:{[z]:Ie}})}return S};serialize=i=>{if(!this.context)return i;let{utility:e,conditions:r}=this.context;return ARt(i,{utility:e,conditions:r})};getTransform=i=>(e,r)=>{if(r==="__ignore__")return{layer:"_base",className:I9.classNames.get(i),styles:I9.styles.get(i)??{}};let o=this.getPropKey(i,e,r);return{className:I9.classNames.get(o),styles:I9.styles.get(o)??{}}};createRule=i=>{if(!this.context)throw new Error("Can't create a rule without a context");let e=new amt({...this.context,transform:this.getTransform(i)});return e.layer="recipes",e};process=(i,e)=>{let{styles:r}=e,o=this.getRecipe(i);if(!o)return;let{name:u,defaultVariants:d={},base:h={}}=o.config,v=Object.assign({[u]:"__ignore__"},d,r);if(Object.keys(v).length===1&&Object.keys(h).length===0)return;this.rules.get(u)?.process({styles:v})};toCss=()=>this.context?this.context.root.toString():""},orr=/\s&/g;function Lvn(i){let e=new Set;(0,Nvn.default)(o=>{o.each(u=>{let d=bRt(u.toString());f0(d).with({type:"parent-nesting"},()=>{e.add(u.toString().replace(orr,"").trim())}).otherwise(()=>{})})}).processSync(i);let r=Array.from(e).join(", ").trim();return e.size>1?`:where(${r})`:r}var mdi=smt(),mvn=(i,e)=>i.breakpoints.includes(e)?e:`_${e}`;function Fvn(i){let{css:e=[],recipes:r={}}=i,o={css:[],recipes:[]};return u=>(e.forEach(d=>{let h=d.conditions||[];d.responsive&&h.push(...u.breakpoints),Object.entries(d.properties).forEach(([v,S])=>{S.flatMap(L=>L==="*"?u.getPropertyKeys(v):L).forEach(L=>{let z=h.reduce((te,_e)=>({base:L,...te,[mvn(u,_e)]:L}),{});o.css.push({[v]:h.length?z:L})})})}),Object.entries(r).forEach(([d,h])=>{h.forEach(v=>{let S=v;S==="*"&&(S={conditions:[],responsive:!0,...u.getRecipeKeys(d)});let{conditions:k,responsive:L,...z}=S,te=k||[];L&&te.push(...u.breakpoints),Object.entries(z).forEach(([_e,Ae])=>{if(!Array.isArray(Ae))return;Ae.flatMap(Xe=>Xe==="*"?u.getRecipeKeys(d)[_e]:Xe).forEach(Xe=>{let Ve=te.reduce((ze,Pt)=>({base:Xe,...ze,[mvn(u,Pt)]:Xe}),{});o.recipes.push({[d]:{[_e]:te.length?Ve:Xe}})})})})}),o)}var Ovn=class{constructor(i,e){this.context=i,this.options=e;let{recipes:r}=e??{};this.recipes=new LRt(r??{},i)}recipes;processGlobalCss=i=>{let{conditions:e,utility:r}=this.context,o=Vnr(i,{conditions:e,utility:r}),u=nC.atRule({name:"layer",params:"base",nodes:[o]});this.context.root.append(u)};processSelectorObject(i,e){let r=EU(e),{nodes:o}=pJe(r);if(o.length===0)return;let u=nC.rule({selector:i,nodes:r.root.nodes});this.context.root.append(u)}processObject(i){let r=EU(i).root;this.context.root.append(r)}processAtomic=(...i)=>{let e=new amt(this.context);i.forEach(r=>{e.process({styles:r})})};processStyleProps=i=>{let
|
|
21117
|
+
`:""}${" ".repeat(e)}`),Evn(r,e+1)})}function dJe(){return i=>{Evn(i),i.first&&(i.first.raws.before="")}}dJe.postcssPlugin="panda-prettify";var Qnr=[":link",":visited",":focus-within",":focus",":focus-visible",":hover",":active"],cvn=i=>Qnr.findIndex(r=>i.trim().includes(r))+1;function PRt(){let i=e=>{let r=[],o=[],u=[];e.each(d=>{switch(d.type){case"rule":{d.first?.type==="atrule"?u.push(d):o.push(d);break}case"atrule":{u.push(d);break}default:r.push(d)}}),o.sort((d,h)=>{let v=d.selectors.length?d.selectors[0]:d.selector,S=h.selectors.length?h.selectors[0]:h.selector;return cvn(v)-cvn(S)}),e.nodes=[...r,...o,...u],e.nodes.forEach(d=>{"nodes"in d&&i(d)})};return i}PRt.postcssPlugin="panda-sort-css";var Tvn=/(!?\(\s*min(-device-)?-width)(.|\n)+\(\s*max(-device)?-width/i,$nr=/\(\s*min(-device)?-width/i,Dvn=/(!?\(\s*max(-device)?-width)(.|\n)+\(\s*min(-device)?-width/i,Znr=/\(\s*max(-device)?-width/i,SRt=omt(Tvn,Dvn,$nr),uvn=omt(Dvn,Tvn,Znr),Avn=/(!?\(\s*min(-device)?-height)(.|\n)+\(\s*max(-device)?-height/i,err=/\(\s*min(-device)?-height/i,kvn=/(!?\(\s*max(-device)?-height)(.|\n)+\(\s*min(-device)?-height/i,trr=/\(\s*max(-device)?-height/i,xRt=omt(Avn,kvn,err),fvn=omt(kvn,Avn,trr),pvn=/print/i,dvn=/^print$/i,fJe=Number.MAX_VALUE;function _vn(i){let e=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/.exec(i);if(e===null&&(SRt(i)||xRt(i))&&(e=/(\d)/.exec(i)),e==="0")return 0;if(e===null)return fJe;let r=e[1];switch(e[2]){case"ch":r=parseFloat(r)*8.8984375;break;case"em":case"rem":r=parseFloat(r)*16;break;case"ex":r=parseFloat(r)*8.296875;break;case"px":r=parseFloat(r);break}return+r}function omt(i,e,r){return function(o){return i.test(o)?!0:e.test(o)?!1:r.test(o)}}function nrr(i,e){let r=pvn.test(i),o=dvn.test(i),u=pvn.test(e),d=dvn.test(e);return r&&u?!o&&d?1:o&&!d?-1:i.localeCompare(e):r?1:u?-1:null}function rrr(i={}){let{unitlessMqAlwaysFirst:e}=i;return function(o,u){let d=nrr(o,u);if(d!==null)return d;let h=SRt(o)||xRt(o),v=uvn(o)||fvn(o),S=SRt(u)||xRt(u),k=uvn(u)||fvn(u);if(e&&(!h&&!v||!S&&!k))return!h&&!v&&!S&&!k?o.localeCompare(u):!S&&!k?1:-1;{if(h&&k)return-1;if(v&&S)return 1;let L=_vn(o),z=_vn(u);return L===fJe&&z===fJe?o.localeCompare(u):L===fJe?1:z===fJe?-1:L>z?v?-1:1:L<z?v?1:-1:o.localeCompare(u)}}}var irr=rrr();function NRt(){let i=e=>{e.nodes.sort((r,o)=>f0({a:r,b:o}).with({a:{type:"atrule",name:"media"},b:{type:"atrule",name:"media"}},({a:u,b:d})=>irr(u.params,d.params)).with({a:{type:"atrule",name:"media"},b:EE.any},()=>1).with({a:EE.any,b:{type:"atrule",name:"media"}},()=>-1).otherwise(()=>0)),e.nodes.forEach(r=>{"nodes"in r&&i(r)})};return i}NRt.postcssPlugin="panda-sort-mq";function lmt(i,e={}){let{minify:r=!1}=e,{css:o}=nC([(0,wRt.default)(),IRt(),NRt(),(0,kRt.default)(),(0,bvn.default)(),PRt(),(0,vvn.default)(),r?(0,Svn.default)():dJe()]).process(i);return o}function srr(i,e={}){let{token:r}=e,{css:o}=nC([Ynr(r)]).process(i);return o}function cmt(i){let{css:e}=nC([IRt(),(0,kRt.default)(),NRt(),PRt(),dJe()]).process(i);return e}function wvn(i){let{css:e}=nC([(0,wRt.default)(),dJe()]).process(i);return e}function Ivn(i){let{css:e}=nC([dJe()]).process(i);return e}function umt(i,e){let r=pJe(i),o=pJe(e),u=r.nodes.filter(dCe({type:"atrule",name:"layer",params:"utilities"}));return o.walkAtRules("layer",d=>{d.params==="utilities"&&u.forEach(h=>{d.append(h.nodes)})}),cmt(o)}var arr=i=>{let e=i.map(r=>typeof r=="string"?r:r.source).join("|");return new RegExp(`^${e}$`)},I9={classNames:new Map,styles:new Map,configs:new Map},LRt=class{constructor(i={},e){this.recipes=i,this.context=e,this.assignRules()}rules=new Map;getPropKey=(i,e,r)=>`${i} (${e} = ${r})`;get separator(){return this.context?.utility.separator??"_"}getClassName=(i,e,r)=>`${i}--${e}${this.separator}${r}`;save=()=>{for(let[i,e]of Object.entries(this.recipes))this.assignRecipe(i,this.normalize(e))};assignRecipe=(i,e)=>{let r=Object.keys(e.variants??{}),o=e.jsx??[rF(i)],u=arr(o);I9.configs.set(i,{...this.getNames(i),jsx:o,name:i,variantKeys:r,variantKeyMap:Object.fromEntries(Object.entries(e.variants??{}).map(([d,h])=>[d,Object.keys(h)])),match:u,config:e,splitProps:d=>FKt(d,r)})};assignRules=()=>{if(this.context)for(let i of Object.keys(this.recipes))this.rules.set(i,this.createRule(i))};isEmpty=()=>I9.configs.size===0;getNames=VI(i=>({upperName:rF(i),dashName:Adt(i),jsxName:rF(i)}));getRecipe=VI(i=>I9.configs.get(i));getConfig=VI(i=>this.recipes[i]);find=VI(i=>{for(let e of I9.configs.values())if(e.match.test(i))return e});getFnName=VI(i=>this.find(i)?.name??kdt(i));get details(){return Array.from(I9.configs.values())}get nodes(){return this.details.map(({upperName:i,variantKeys:e,name:r,jsx:o,match:u})=>({type:"recipe",name:i,props:e,baseName:r,jsx:o,match:u}))}splitProps=(i,e)=>{let r=this.find(i);return r?r.splitProps(e):[{},e]};normalize=i=>{let{name:e,jsx:r=[rF(e)],base:o={},variants:u={},defaultVariants:d={},description:h="",compoundVariants:v=[]}=i,S={jsx:r,name:e,description:h,base:{},variants:{},defaultVariants:d,compoundVariants:v};S.base=this.serialize(o),I9.styles.set(e,S.base),I9.classNames.set(e,e);for(let[k,L]of Object.entries(u))for(let[z,te]of Object.entries(L)){let _e=this.getPropKey(e,k,z),Ae=this.getClassName(e,k,z),Ie=this.serialize(te);I9.styles.set(_e,Ie),I9.classNames.set(_e,Ae),(0,Pvn.default)(S.variants,{[k]:{[z]:Ie}})}return S};serialize=i=>{if(!this.context)return i;let{utility:e,conditions:r}=this.context;return ARt(i,{utility:e,conditions:r})};getTransform=i=>(e,r)=>{if(r==="__ignore__")return{layer:"_base",className:I9.classNames.get(i),styles:I9.styles.get(i)??{}};let o=this.getPropKey(i,e,r);return{className:I9.classNames.get(o),styles:I9.styles.get(o)??{}}};createRule=i=>{if(!this.context)throw new Error("Can't create a rule without a context");let e=new amt({...this.context,transform:this.getTransform(i)});return e.layer="recipes",e};process=(i,e)=>{let{styles:r}=e,o=this.getRecipe(i);if(!o)return;let{name:u,defaultVariants:d={},base:h={}}=o.config,v=Object.assign({[u]:"__ignore__"},d,r);if(Object.keys(v).length===1&&Object.keys(h).length===0)return;this.rules.get(u)?.process({styles:v})};toCss=()=>this.context?this.context.root.toString():""},orr=/\s&/g;function Lvn(i){let e=new Set;(0,Nvn.default)(o=>{o.each(u=>{let d=bRt(u.toString());f0(d).with({type:"parent-nesting"},()=>{e.add(u.toString().replace(orr,"").trim())}).otherwise(()=>{})})}).processSync(i);let r=Array.from(e).join(", ").trim();return e.size>1?`:where(${r})`:r}var mdi=smt(),mvn=(i,e)=>i.breakpoints.includes(e)?e:`_${e}`;function Fvn(i){let{css:e=[],recipes:r={}}=i,o={css:[],recipes:[]};return u=>(e.forEach(d=>{let h=d.conditions||[];d.responsive&&h.push(...u.breakpoints),Object.entries(d.properties).forEach(([v,S])=>{S.flatMap(L=>L==="*"?u.getPropertyKeys(v):L).forEach(L=>{let z=h.reduce((te,_e)=>({base:L,...te,[mvn(u,_e)]:L}),{});o.css.push({[v]:h.length?z:L})})})}),Object.entries(r).forEach(([d,h])=>{h.forEach(v=>{let S=v;S==="*"&&(S={conditions:[],responsive:!0,...u.getRecipeKeys(d)});let{conditions:k,responsive:L,...z}=S,te=k||[];L&&te.push(...u.breakpoints),Object.entries(z).forEach(([_e,Ae])=>{if(!Array.isArray(Ae))return;Ae.flatMap(Xe=>Xe==="*"?u.getRecipeKeys(d)[_e]:Xe).forEach(Xe=>{let Ve=te.reduce((ze,Pt)=>({base:Xe,...ze,[mvn(u,Pt)]:Xe}),{});o.recipes.push({[d]:{[_e]:te.length?Ve:Xe}})})})})}),o)}var Ovn=class{constructor(i,e){this.context=i,this.options=e;let{recipes:r}=e??{};this.recipes=new LRt(r??{},i)}recipes;processGlobalCss=i=>{let{conditions:e,utility:r}=this.context,o=Vnr(i,{conditions:e,utility:r}),u=nC.atRule({name:"layer",params:"base",nodes:[o]});this.context.root.append(u)};processSelectorObject(i,e){let r=EU(e),{nodes:o}=pJe(r);if(o.length===0)return;let u=nC.rule({selector:i,nodes:r.root.nodes});this.context.root.append(u)}processObject(i){let r=EU(i).root;this.context.root.append(r)}processAtomic=(...i)=>{let e=new amt(this.context);i.forEach(r=>{r&&e.process({styles:r})})};processStyleProps=i=>{let{css:e,...r}=i;this.processAtomic(r,e)};processRecipe=(i,e)=>{this.recipes.process(i.name,{styles:e}),i.compoundVariants?.forEach(r=>{this.processAtomic(r.css)})};processAtomicRecipe=i=>{let{base:e={},variants:r={},compoundVariants:o=[]}=i;this.processAtomic(e);for(let u of Object.values(r))for(let d of Object.values(u))this.processAtomic(d);o.forEach(u=>{this.processAtomic(u.css)})};toCss=({optimize:i=!1,minify:e}={})=>{try{let{conditions:{breakpoints:r},utility:o}=this.context;r.expandScreenAtRule(this.context.root),srr(this.context.root,{token:o.getToken});let u=this.context.root.toString();return i&&(u=lmt(u,{minify:e})),this.options?.content&&(u=`${this.options.content}
|
|
21118
21118
|
|
|
21119
21119
|
${u}`),i?cmt(u):u}catch(r){throw r instanceof NYt&&(Hd.error("sheet",r.message),r.plugin&&Hd.error("sheet",`By plugin: ${r.plugin}:`),r.source&&(Hd.error("sheet",`Line ${r.line}:${r.column}, in:`),Hd.error("sheet",r.source))),r}};append=(...i)=>{this.context.root.append(...i)};prepend=(...i)=>{this.context.root.prepend(...i)}},Rvn=class{tokens;classNames=new Map;styles=new Map;shorthands=new Map;types=new Map;propertyKeys=new Map;config={};customValues=new Map;transforms=new Map;configs=new Map;separator="_";prefix="";constructor(i){let{tokens:e,config:r={},separator:o,prefix:u,shorthands:d}=i;this.tokens=e,this.config=r,o&&(this.separator=o),u&&(this.prefix=u),d&&this.assignShorthands(),this.assignColorPaletteProperty(),this.assignProperties(),this.assignPropertyTypes()}register=(i,e)=>{this.assignProperty(i,e),this.assignPropertyType(i,e),this.config[i]=e};assignShorthands=()=>{for(let[i,e]of Object.entries(this.config)){let{shorthand:r}=this.normalize(e)??{};if(!r)continue;(Array.isArray(r)?r:[r]).forEach(u=>{this.shorthands.set(u,i)})}};assignColorPaletteProperty=()=>{let i=this.tokens.colorPalettes;this.config.colorPalette={values:Object.keys(i),transform(e){return i[e]}}};resolveShorthand=i=>this.shorthands.get(i)??i;get hasShorthand(){return this.shorthands.size>0}get isEmpty(){return Object.keys(this.config).length===0}entries=()=>Object.entries(this.config).filter(([,e])=>!!e?.className).map(([e,r])=>[e,r.className]);getPropKey=(i,e)=>`(${i} = ${e})`;hash=(i,e)=>`${i}${this.separator}${e}`;getPropertyValues=(i,e)=>{let{values:r}=i,o=u=>{let d=e?.(u);return d?{[d]:d}:void 0};return FH(r)?o?.(r)??this.tokens.getValue(r)??{}:Array.isArray(r)?r.reduce((u,d)=>(u[d]=d,u),{}):EKt(r)?r(e?o:this.getToken.bind(this)):r};getToken=i=>this.tokens.get(i);normalize=i=>i;assignProperty=(i,e)=>{let r=this.normalize(e);if(this.setTransform(i,r?.transform),!r)return;this.configs.set(i,r);let o=this.getPropertyValues(r);if(o)for(let[u,d]of Object.entries(o)){let h=this.getPropKey(i,u);this.setStyles(i,d,u,h),this.setClassName(i,u)}};assignProperties=()=>{for(let[i,e]of Object.entries(this.config))e&&this.assignProperty(i,e)};getPropertyKeys=i=>{let e=this.propertyKeys.get(i);return e?Array.from(e):[]};assignPropertyType=(i,e)=>{let r=this.normalize(e);if(!r)return;let o=this.getPropertyValues(r,d=>`type:Tokens["${d}"]`);if(typeof o=="object"&&o.type){this.types.set(i,new Set([`type:${o.type}`]));return}if(o){let d=new Set(Object.keys(o));this.types.set(i,d),this.propertyKeys.set(i,d)}let u=this.types.get(i)??new Set;r.property&&this.types.set(i,u.add(`CssProperties["${r.property}"]`))};assignPropertyTypes=()=>{for(let[i,e]of Object.entries(this.config))e&&this.assignPropertyType(i,e)};getTypes=()=>{let i=new Map;for(let[e,r]of this.types.entries()){if(r.size===0){i.set(e,["string"]);continue}let o=Array.from(r).map(u=>u.startsWith("CssProperties")?u:u.startsWith("type:")?u.replace("type:",""):JSON.stringify(u));i.set(e,o)}return i};defaultTransform=VI((i,e)=>{if(e.startsWith("--")){let o=this.tokens.getTokenVar(i);i=typeof o=="string"?o:i}return{[e]:i}});setTransform=(i,e)=>{let o=e??(u=>this.defaultTransform(u,i));return this.transforms.set(i,o),this};setStyles=(i,e,r,o)=>{o=o??this.getPropKey(i,e);let u=v=>this.defaultTransform(v,i),h=(this.transforms.get(i)??u)(e,{token:this.getToken.bind(this),raw:r});return this.styles.set(o,h??{}),this};formatClassName=i=>[this.prefix,i].filter(Boolean).join("-");setClassName=(i,e)=>{let r=this.getPropKey(i,e),o=this.configs.get(i),u;return!o||!o.className?u=this.hash(LKt(i),e):u=this.hash(o.className,e),this.classNames.set(r,u),this};isProperty=i=>this.configs.has(i);getOrCreateClassName=(i,e)=>((o,u)=>{let d=this.getPropKey(o,u);return this.classNames.has(d)||(this.isProperty(o)&&this.customValues.set(o,u),this.setClassName(o,u)),this.classNames.get(d)})(i,e);getOrCreateStyle=(i,e)=>{let r=this.getPropKey(i,e);return this.styles.get(r)??this.setStyles(i,e,e,r),this.styles.get(r)};transform=(i,e)=>{if(e==null)return{className:"",styles:{}};let r=this.resolveShorthand(i);return PPe({layer:this.configs.get(r)?.layer,className:this.getOrCreateClassName(r,Ndt(e)),styles:this.getOrCreateStyle(r,e)})};keys=()=>{let i=Array.from(this.shorthands.keys()),e=Object.keys(this.config);return[...i,...e]}};oe();oe();var oqe=Nm(R9(),1);var Yd=Nm(R9(),1);oe();var icr=Nm(tEn(),1),M9=Nm(rEn(),1);oe();var PU=Nm(require("path"),1),sEn=Nm(require("os"),1),Rlr=/(^\/\w:\/)|(^\/\w:\\)/,iEn=PU.default.parse(process.cwd()).root,aEn=/^\w:/,Mlr=sEn.default.platform();function Glr(i){return/\\/.test(i)||aEn.test(i)}function oEn(i){let e=/^\\\\\?\\/.test(i),r=/[^\u0000-\u0080]+/.test(i);return e||r?i:i.replace(/\\/g,"/")}function jlr(i){let e=typeof i=="string"?i:i.pathname;return e.startsWith("file:")&&(e.startsWith("file://")&&(e=e.slice(7)),Rlr.test(e)&&(e=e.slice(1))),Y5t(e)}function lEn(i){return[...i].some(e=>typeof e=="string"&&Glr(e))?PU.default.win32:PU.default}function Zce(i,e){return oEn(lEn(e)[i](...e))}function cEn(i,e){return PU.default.posix[i](...[...e].map(r=>typeof r=="string"?oEn(r):r))}function Ulr(i){return cEn("parse",arguments)}function Wlr(i){return cEn("extname",arguments)}function Vlr(i){return lEn(arguments).isAbsolute(i)}function Hlr(...i){return Zce("join",arguments)}function Y5t(i){let e=Zce("normalize",arguments);return i.startsWith("./")&&!e.startsWith("./")?"./"+e:e}function zlr(i,e){return Zce("relative",arguments)}function Jlr(...i){return Zce("resolve",arguments)}function qlr(i){return Zce("dirname",arguments)}function Klr(i,e){return Zce("basename",arguments)}function Xlr(i){return Zce("format",arguments)}function Ylr(i){return Zce("toNamespacedPath",arguments)}function Qlr(i){return Mlr!=="win32"||aEn.test(i)||i.startsWith(iEn)||!PU.default.win32.isAbsolute(PU.default.win32.normalize(i))?i:PU.default.win32.join(iEn,i)}var Q5t={sep:PU.default.posix.sep,delimiter:PU.default.posix.delimiter,parse:Ulr,isAbsolute:Vlr,join:Hlr,extname:Wlr,normalize:Y5t,relative:zlr,resolve:Jlr,dirname:qlr,basename:Klr,format:Xlr,toNamespacedPath:Ylr,get posix(){return this},get win32(){return uEn}},uEn={...PU.default.win32,get posix(){return Q5t},get win32(){return this}},$lr=PU.default,VCe={...Q5t,posix:Q5t,win32:uEn,native:$lr,includeDriveLetter:Qlr,urlToFilename:jlr};var SEn=require("module"),xEn=require("util"),EEn=Nm(hEn(),1),nCt=()=>{let i={Infinity:1/0,NaN:NaN,undefined:void 0,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Array,Boolean,Date,Error,EvalError,Number,Object,RangeError,ReferenceError,RegExp,String,SyntaxError,TypeError,URIError,JSON,Math,escape,unescape,eval,Function};try{i.AggregateError=AggregateError}catch{}try{i.FinalizationRegistry=FinalizationRegistry}catch{}try{i.WeakRef=WeakRef}catch{}try{i.BigInt=BigInt}catch{}try{i.Reflect=Reflect}catch{}try{i.WeakMap=WeakMap}catch{}try{i.WeakSet=WeakSet}catch{}try{i.Set=Set}catch{}try{i.Map=Map}catch{}try{i.Uint8Array=Uint8Array}catch{}try{i.BigUint64Array=BigUint64Array}catch{}try{i.BigInt64Array=BigInt64Array}catch{}try{i.Atomics=Atomics}catch{}try{i.SharedArrayBuffer=SharedArrayBuffer}catch{}try{i.WebAssembly=WebAssembly}catch{}try{i.Uint8ClampedArray=Uint8ClampedArray}catch{}try{i.Uint16Array=Uint16Array}catch{}try{i.Uint32Array=Uint32Array}catch{}try{i.Intl=Intl}catch{}try{i.Int8Array=Int8Array}catch{}try{i.Int16Array=Int16Array}catch{}try{i.Int32Array=Int32Array}catch{}try{i.Float32Array=Float32Array}catch{}try{i.Float64Array=Float64Array}catch{}try{i.ArrayBuffer=ArrayBuffer}catch{}try{i.DataView=DataView}catch{}try{i.isFinite=isFinite}catch{}try{i.Promise=Promise}catch{}try{i.Proxy=Proxy}catch{}try{i.Symbol=Symbol}catch{}return i};function tue(i,e,r){let o={};return[i,e??{},r??{}].forEach(h=>Object.defineProperties(o,Object.getOwnPropertyDescriptors(h))),o}function K0t(i,e){let r={};return Object.getOwnPropertyNames(i).forEach(o=>{o in e||Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(i,o))}),r}var TEn=(0,SEn.createRequire)(_t),scr=()=>{let i=nCt(),e=tue(K0t(global,i),i,{require:TEn,process,__dirname:r=>VCe.native.normalize(VCe.native.dirname(r)),__filename:r=>VCe.native.normalize(r)});return Object.defineProperties(e,{global:{get(){return e}},globalThis:{get(){return e}}}),e};function acr(i){let e=0;return{requestAnimationFrame:function(d){let h=new Date().getTime(),v=Math.max(0,16-(h-e)),S=i.setTimeout(function(){d(h+v)},v);return e=h+v,S},cancelAnimationFrame:function(d){clearTimeout(d)}}}var z0t;function ocr(i=!1){return z0t??(z0t=lcr("evaluate against a browser environment",i,"jsdom"))}function lcr(i,e,r=i){try{return TEn(r)}catch{if(e)throw new ReferenceError(`You must install the peer dependency '${r}' in order to ${i} with ts-evaluator`);return}}var ccr=()=>{let{JSDOM:i}=ocr(!0),{window:e}=new i("",{url:"https://example.com"}),r=nCt(),o=acr(e),u=tue(K0t(e,r),K0t(o,e),r);return Object.defineProperties(u,{window:{get(){return u}},globalThis:{get(){return u}}}),u},v2="[return]",iR="[break]",n7="[continue]",r7="this",HCe="super",ucr=()=>{let i=nCt(),e=tue(K0t(global,i),i,{import:{meta:{url:r=>{let o=VCe.normalize(r);return`file:///${o.startsWith("/")?o.slice(1):o}`}}},process});return Object.defineProperties(e,{global:{get(){return e}},globalThis:{get(){return e}}}),e};function DEn(i,e){return e.isDeclaration(i)}function fcr(i,e){return e.isPropertyAccessExpression(i)?!1:"name"in i&&i.name!=null}function AEn(i,e){return i.flags!==e.NodeFlags.Const&&i.flags!==e.NodeFlags.Let}var i7=class extends Error{constructor({node:e,environment:r,message:o}){super(o),Error.captureStackTrace(this,this.constructor),this.node=e,this.environment=r}};function ine(i){return typeof i=="object"&&i!=null&&i instanceof i7}var X0t=class extends i7{constructor({path:e,node:r,environment:o,message:u=`Module '${e}' could not be resolved'`}){super({message:u,environment:o,node:r}),this.path=e}},GN=class extends i7{constructor({node:e,environment:r,typescript:o,message:u=`Unexpected Node: '${o.SyntaxKind[e.kind]}'`}){super({message:u,node:e,environment:r})}};function pcr(i){var e;let{node:r,evaluate:o,environment:u,typescript:d,throwError:h}=i,v=d.getNameOfDeclaration(r);if(v!=null)return d.isIdentifier(v)||!((e=d.isPrivateIdentifier)===null||e===void 0)&&e.call(d,v)||d.isStringLiteralLike(v)?v.text:d.isNumericLiteral(v)?Number(v.text):d.isComputedPropertyName(v)?o.expression(v.expression,i):h(new GN({node:v,environment:u,typescript:d}))}function kEn(i,e){let{node:r,typescript:o}=e;if(!o.isExternalModuleNameRelative(i))return i;let u=r.getSourceFile().fileName;return VCe.join(VCe.dirname(u),i)}function Y0t(i){var e,r,o,u,d;let{node:h,typescript:v,throwError:S,environment:k}=i,L=pcr(i);if(ine(L))return L;if(L==null)return S(new GN({node:h,environment:k,typescript:v}));let z=Gk(h,i.environment,L);if(z!=null&&z.literal!=null)return z.literal;let te=Gk(h,i.environment,"require").literal,_e=v.isModuleDeclaration(h)?h:dcr(h,v.SyntaxKind.ModuleDeclaration,v);if(_e==null)return S(new GN({node:h,environment:k,typescript:v}));let Ae=_e.name.text,Ie=kEn(Ae,i);try{let Xe=(u=(r=(e=i.moduleOverrides)===null||e===void 0?void 0:e[Ae])!==null&&r!==void 0?r:(o=i.moduleOverrides)===null||o===void 0?void 0:o[Ie])!==null&&u!==void 0?u:te(Ie);return v.isModuleDeclaration(h)?Xe:(d=Xe[L])!==null&&d!==void 0?d:Xe}catch(Xe){return ine(Xe)?Xe:S(new X0t({node:_e,environment:k,path:Ie}))}}function J0t(i,e,r){var o,u,d,h,v,S;let{node:k,throwError:L,environment:z}=r,te=Gk(k,r.environment,"require").literal,_e=kEn(e,r);try{let Ae=(h=(u=(o=r.moduleOverrides)===null||o===void 0?void 0:o[e])!==null&&u!==void 0?u:(d=r.moduleOverrides)===null||d===void 0?void 0:d[_e])!==null&&h!==void 0?h:te(_e);return(S=(v=Ae[i])!==null&&v!==void 0?v:Ae.default)!==null&&S!==void 0?S:Ae}catch(Ae){return ine(Ae)?Ae:L(new X0t({node:k,environment:z,path:_e}))}}function dcr(i,e,r){let o=i;for(;;){if(o=o.parent,o==null)return;if(o.kind===e){let u=r.getCombinedNodeFlags(o);if(!((u&r.NodeFlags.Namespace)!==0||(u&r.NodeFlags.NestedNamespace)!==0))return o}if(r.isSourceFile(o))return}}function p9t(i,e,r,o=new WeakSet){let{typescript:u}=r,d;function h(S,k=0){var L,z,te,_e,Ae;if(o.has(S))return!1;if(o.add(S),u.isIdentifier(S)){if(S.text===e)return d=S,!0}else{if(u.isShorthandPropertyAssignment(S))return!1;if(u.isPropertyAssignment(S))return!1;if(u.isImportDeclaration(S)){if(S.importClause!=null){if(S.importClause.name!=null&&h(S.importClause.name)){let Ie=S.moduleSpecifier;if(Ie!=null&&u.isStringLiteralLike(Ie))return d=J0t(e,Ie.text,r),!0}else if(S.importClause.namedBindings!=null&&h(S.importClause.namedBindings))return!0}return!1}else if(u.isImportEqualsDeclaration(S)){if(S.name!=null&&h(S.name)){if(u.isIdentifier(S.moduleReference))return d=p9t(S.parent,S.moduleReference.text,r,o),d!=null;if(u.isQualifiedName(S.moduleReference))return!1;{let Ie=S.moduleReference.expression;if(Ie!=null&&u.isStringLiteralLike(Ie))return d=J0t(e,Ie.text,r),!0}}return!1}else if(u.isNamespaceImport(S)){if(h(S.name)){let Ie=(z=(L=S.parent)===null||L===void 0?void 0:L.parent)===null||z===void 0?void 0:z.moduleSpecifier;return Ie==null||!u.isStringLiteralLike(Ie)?!1:(d=J0t(e,Ie.text,r),!0)}}else if(u.isNamedImports(S)){for(let Ie of S.elements)if(h(Ie))return!0}else if(u.isImportSpecifier(S)){if(h(S.name)){let Ie=(Ae=(_e=(te=S.parent)===null||te===void 0?void 0:te.parent)===null||_e===void 0?void 0:_e.parent)===null||Ae===void 0?void 0:Ae.moduleSpecifier;return Ie==null||!u.isStringLiteralLike(Ie)?!1:(d=J0t(e,Ie.text,r),!0)}}else if(u.isSourceFile(S)){for(let Ie of S.statements)if(h(Ie))return!0}else if(u.isVariableStatement(S)){for(let Ie of S.declarationList.declarations)if(h(Ie)&&(AEn(S.declarationList,u)||k<1))return!0}else if(u.isBlock(S)){for(let Ie of S.statements)if(h(Ie,k+1))return!0}else if(fcr(S,u)&&S.name!=null&&h(S.name))return d=S,!0}return!1}return u.findAncestor(i,S=>h(S))?d:void 0}function BEn(i,e){let r=i;for(;;){if(r=r.parent,r==null)return;if(DEn(r,e)||e.isSourceFile(r))return r}}function _cr(i){return i!=null&&(typeof i=="function"||typeof i=="object")}function gEn(i){return _cr(i)}function d9t(i,e){switch(i){case Function.prototype.bind:case Function.prototype.call:case Function.prototype.apply:return!0}if(e!=null){let r=Gk(void 0,e,"Function").literal;switch(i){case r.prototype.bind:case r.prototype.call:case r.prototype.apply:return!0}}return!1}var rne=class{constructor(e){this.intent=e}construct(e,r){return this.intent(e,r)}};function wEn(i){return typeof i=="object"&&i!=null&&i instanceof rne}function rCt(i,e,r){return wEn(r)?e.throwError(r.construct(i,e)):r}function e9t(i){return i.map(e=>typeof e=="symbol"?e.description:e).join(".")}function yEn({hook:i,item:e,scope:r,policy:o}){function u(d,h){let v=(S,k)=>{if(S!==!1)return wEn(S)||ine(S)?S:k()};return!gEn(h)||d9t(h)?h:new Proxy(h,{construct(S,k,L){return v(i({kind:"__$$_PROXY_CONSTRUCT",policy:o,newTarget:L,argArray:k,target:S,path:e9t(d)}),()=>Reflect.construct(S,k,L))},apply(S,k,L=[]){return v(i({kind:"__$$_PROXY_APPLY",policy:o,thisArg:k,argArray:L,target:S,path:e9t(d)}),()=>Reflect.apply(S,k,L))},get(S,k,L){let z=[...d,k];return v(i({kind:"__$$_PROXY_GET",policy:o,path:e9t(z),target:S}),()=>{let te=Reflect.get(S,k,L),_e=Reflect.getOwnPropertyDescriptor(h,k);return _e!=null&&_e.configurable===!1&&_e.writable===!1?h[k]:u(z,te)})}})}return gEn(e)?u([r],e):e}function CEn(i,e){switch(i){case"__$$_PROXY_GET":return`get ${e}`;case"__$$_PROXY_APPLY":return`${e}(...)`;case"__$$_PROXY_CONSTRUCT":return`new ${e}(...)`}}var IEn={"node:http2":"http2",http2:{connect:{__$$_PROXY_APPLY:!0},createSecureServer:{__$$_PROXY_APPLY:!0},createServer:{__$$_PROXY_APPLY:!0}},"node:https":"https",https:{createServer:{__$$_PROXY_APPLY:!0},request:{__$$_PROXY_APPLY:!0},get:{__$$_PROXY_APPLY:!0},Server:{__$$_PROXY_CONSTRUCT:!0},globalAgent:{destroy:{__$$_PROXY_APPLY:!0}},Agent:{__$$_PROXY_CONSTRUCT:!0}},"node:http":"http",http:{createServer:{__$$_PROXY_APPLY:!0},request:{__$$_PROXY_APPLY:!0},get:{__$$_PROXY_APPLY:!0},Server:{__$$_PROXY_CONSTRUCT:!0},ClientRequest:{__$$_PROXY_CONSTRUCT:!0},globalAgent:{destroy:{__$$_PROXY_APPLY:!0}},Agent:{__$$_PROXY_CONSTRUCT:!0}},"node:dgram":"dgram",dgram:{createSocket:{__$$_PROXY_APPLY:!0}},"node:dns":"dns",dns:{lookup:{__$$_PROXY_APPLY:!0},lookupService:{__$$_PROXY_APPLY:!0},resolve:{__$$_PROXY_APPLY:!0},resolve4:{__$$_PROXY_APPLY:!0},resolve6:{__$$_PROXY_APPLY:!0},resolveAny:{__$$_PROXY_APPLY:!0},resolveCname:{__$$_PROXY_APPLY:!0},resolveMx:{__$$_PROXY_APPLY:!0},resolveNaptr:{__$$_PROXY_APPLY:!0},resolveNs:{__$$_PROXY_APPLY:!0},resolvePtr:{__$$_PROXY_APPLY:!0},resolveSoa:{__$$_PROXY_APPLY:!0},resolveSrv:{__$$_PROXY_APPLY:!0},resolveTxt:{__$$_PROXY_APPLY:!0},reverse:{__$$_PROXY_APPLY:!0},Resolver:{__$$_PROXY_CONSTRUCT:!0}},"node:net":"net",net:{createServer:{__$$_PROXY_APPLY:!0},createConnection:{__$$_PROXY_APPLY:!0},connect:{__$$_PROXY_APPLY:!0},Server:{__$$_PROXY_CONSTRUCT:!0}},"node:tls":"tls",tls:{createServer:{__$$_PROXY_APPLY:!0},createSecureContext:{__$$_PROXY_APPLY:!0},connect:{__$$_PROXY_APPLY:!0},Server:{__$$_PROXY_CONSTRUCT:!0},TLSSocket:{__$$_PROXY_CONSTRUCT:!0}}},mcr={...IEn,Math:{random:{__$$_PROXY_APPLY:!0}},Date:{now:{__$$_PROXY_APPLY:!0},__$$_PROXY_CONSTRUCT:(...i)=>i.length===0&&!(i[0]instanceof Date)}};function hcr(i,e){return typeof i==typeof e||typeof i=="function"}function Bcr(i){return typeof i=="function"}function zCe(i,e,r){let o=r.path.split(".");return n9t(i,e,r,o)}function n9t(i,e,r,o){let[u,...d]=o;if(u==null)return!1;let h=i[u];if(h==null)return!1;if(typeof h=="string")return n9t(i,e,r,[h,...d]);if(hcr(h,e))return vEn(h,e,r);{let v=h[r.kind];return v!=null?vEn(v,e,r):n9t(h,e,r,d)}}function vEn(i,e,r){if(Bcr(i)){let o=r;return o.argArray!=null&&i(...o.argArray)===e}else return i===e}function gcr(i){return zCe(mcr,!0,i)}var nue=class extends i7{constructor({violation:e,node:r,environment:o,message:u}){super({node:r,environment:o,message:`[${e}]: ${u}`}),this.violation=e}},r9t=class extends nue{constructor({operation:e,node:r,environment:o,message:u=`The operation: '${e}' is nondeterministic. That is in violation of the policy`}){super({violation:"deterministic",message:u,node:r,environment:o}),this.operation=e}},PEn={"node:fs":"fs",fs:{readFile:{__$$_PROXY_APPLY:"read"},readFileSync:{__$$_PROXY_APPLY:"read"},readdir:{__$$_PROXY_APPLY:"read"},readdirSync:{__$$_PROXY_APPLY:"read"},read:{__$$_PROXY_APPLY:"read"},readSync:{__$$_PROXY_APPLY:"read"},exists:{__$$_PROXY_APPLY:"read"},existsSync:{__$$_PROXY_APPLY:"read"},access:{__$$_PROXY_APPLY:"read"},accessSync:{__$$_PROXY_APPLY:"read"},close:{__$$_PROXY_APPLY:"read"},closeSync:{__$$_PROXY_APPLY:"read"},createReadStream:{__$$_PROXY_APPLY:"read"},stat:{__$$_PROXY_APPLY:"read"},statSync:{__$$_PROXY_APPLY:"read"},watch:{__$$_PROXY_APPLY:"read"},watchFile:{__$$_PROXY_APPLY:"read"},unwatchFile:{__$$_PROXY_APPLY:"read"},realpath:{__$$_PROXY_APPLY:"read"},realpathSync:{__$$_PROXY_APPLY:"read"},fstat:{__$$_PROXY_APPLY:"read"},fstatSync:{__$$_PROXY_APPLY:"read"},createWriteStream:{__$$_PROXY_APPLY:"write"},copyFile:{__$$_PROXY_APPLY:"write"},copyFileSync:{__$$_PROXY_APPLY:"write"},unlink:{__$$_PROXY_APPLY:"write"},unlinkSync:{__$$_PROXY_APPLY:"write"},rmdir:{__$$_PROXY_APPLY:"write"},rmdirSync:{__$$_PROXY_APPLY:"write"},symlink:{__$$_PROXY_APPLY:"write"},symlinkSync:{__$$_PROXY_APPLY:"write"},truncate:{__$$_PROXY_APPLY:"write"},truncateSync:{__$$_PROXY_APPLY:"write"},utimes:{__$$_PROXY_APPLY:"write"},utimesSync:{__$$_PROXY_APPLY:"write"},appendFile:{__$$_PROXY_APPLY:"write"},appendFileSync:{__$$_PROXY_APPLY:"write"},write:{__$$_PROXY_APPLY:"write"},writeSync:{__$$_PROXY_APPLY:"write"},writeFile:{__$$_PROXY_APPLY:"write"},writeFileSync:{__$$_PROXY_APPLY:"write"},chmod:{__$$_PROXY_APPLY:"write"},chmodSync:{__$$_PROXY_APPLY:"write"},chown:{__$$_PROXY_APPLY:"write"},chownSync:{__$$_PROXY_APPLY:"write"},mkdir:{__$$_PROXY_APPLY:"write"},mkdirSync:{__$$_PROXY_APPLY:"write"},rename:{__$$_PROXY_APPLY:"write"},renameSync:{__$$_PROXY_APPLY:"write"},futimes:{__$$_PROXY_APPLY:"write"},futimesSync:{__$$_PROXY_APPLY:"write"},link:{__$$_PROXY_APPLY:"write"},linkSync:{__$$_PROXY_APPLY:"write"},mkdtemp:{__$$_PROXY_APPLY:"write"},open:{__$$_PROXY_APPLY:"write"},openSync:{__$$_PROXY_APPLY:"write"},fchmod:{__$$_PROXY_APPLY:"write"},fchmodSync:{__$$_PROXY_APPLY:"write"},fchown:{__$$_PROXY_APPLY:"write"},fchownSync:{__$$_PROXY_APPLY:"write"},ftruncate:{__$$_PROXY_APPLY:"write"},ftruncateSync:{__$$_PROXY_APPLY:"write"},fsync:{__$$_PROXY_APPLY:"write"},fsyncSync:{__$$_PROXY_APPLY:"write"},fdatasync:{__$$_PROXY_APPLY:"write"},fdatasyncSync:{__$$_PROXY_APPLY:"write"},lchmod:{__$$_PROXY_APPLY:"write"},lchmodSync:{__$$_PROXY_APPLY:"write"}}};function ycr(i){return zCe(PEn,"read",i)}var Q0t=class extends nue{constructor({node:e,environment:r,kind:o,message:u=`${o} operations are in violation of the policy`}){super({violation:"io",message:u,environment:r,node:e}),this.kind=o}};function Ccr(i){return zCe(PEn,"write",i)}function vcr(i){return zCe(IEn,!0,i)}var i9t=class extends nue{constructor({operation:e,node:r,environment:o,message:u=`The operation: '${e}' is performing network activity. That is in violation of the policy`}){super({violation:"deterministic",message:u,node:r,environment:o}),this.operation=e}},NEn={"node:process":"process",process:{exit:{__$$_PROXY_APPLY:"exit"}},"node:child_process":"child_process",child_process:{__$$_PROXY_APPLY:"spawnChild"},"node:cluster":"cluster",cluster:{Worker:{__$$_PROXY_CONSTRUCT:"spawnChild"}}};function bcr(i){return zCe(NEn,"exit",i)}var $0t=class extends nue{constructor({kind:e,node:r,environment:o,message:u=`${e} operations are in violation of the policy`}){super({violation:"process",message:u,node:r,environment:o}),this.kind=e}};function Scr(i){return zCe(NEn,"spawnChild",i)}var xcr={"node:console":"console",console:{__$$_PROXY_APPLY:!0}};function Ecr(i){return zCe(xcr,!0,i)}function Tcr({policy:i,env:e}){let r=h=>!i.console&&Ecr(h)?!1:!i.io.read&&ycr(h)?new rne((v,S)=>new Q0t({...S,node:v,kind:"read"})):!i.io.write&&Ccr(h)?new rne((v,S)=>new Q0t({...S,node:v,kind:"write"})):!i.process.exit&&bcr(h)?new rne((v,S)=>new $0t({...S,node:v,kind:"exit"})):!i.process.exit&&Scr(h)?new rne((v,S)=>new $0t({...S,node:v,kind:"spawnChild"})):!i.network&&vcr(h)?new rne((v,S)=>new i9t({...S,node:v,operation:CEn(h.kind,h.path)})):i.deterministic&&gcr(h)?new rne((v,S)=>new r9t({...S,node:v,operation:CEn(h.kind,h.path)})):!0,o=Object.entries(Object.getOwnPropertyDescriptors(e)),u=Object.assign({},...o.filter(([,h])=>!("value"in h)).map(([h,v])=>({[h]:v}))),d=Object.assign({},...o.filter(([,h])=>"value"in h).map(([h,v])=>({[h]:h==="require"?new Proxy(v.value,{apply(S,k,L=[]){let[z]=L;return yEn({policy:i,item:Reflect.apply(S,k,L),scope:z,hook:r})}}):yEn({policy:i,item:v.value,scope:h,hook:r})})));return Object.defineProperties(d,{...u})}function rqe(i,e){let[r]=e.split(".");if(M9.default.has(i.env,r))return i.env;if(i.parentEnv!=null)return rqe(i.parentEnv,e)}function s9t(i){return i.preset!=null?i.preset:i.parentEnv!=null?s9t(i.parentEnv):"NONE"}function LEn(i,e,r){let o=BEn(i.startingNode,r),u=BEn(e,r);if(o?.pos===u?.pos)return i;if(i.parentEnv!=null)return LEn(i.parentEnv,e,r)}function Gk(i,e,r){let[o]=r.split(".");if(M9.default.has(e.env,o)){let u=M9.default.get(e.env,r);switch(r){case"__dirname":case"__filename":{let d=s9t(e);return(d==="NODE"||d==="NODE_CJS")&&typeof u=="function"&&i!=null?{literal:u(i.getSourceFile().fileName)}:{literal:u}}case"import.meta":{let d=s9t(e);return(d==="NODE_ESM"||d==="BROWSER"||d==="ECMA")&&typeof u=="object"&&u!=null&&typeof u.url=="function"&&i!=null?{literal:{url:u.url(i.getSourceFile().fileName)}}:{literal:u}}default:return{literal:u}}}if(e.parentEnv!=null)return Gk(i,e.parentEnv,r)}function jT(i,e,r,...o){return o.some(u=>{let d=Gk(i,e,u);return d==null?!1:d.literal===r})}function t9t(i){switch(i){case v2:case iR:case n7:case r7:case HCe:return!0;default:return!1}}function RB({environment:i,path:e,value:r,reporting:o,node:u,newBinding:d=!1}){let[h]=e.split(".");if(M9.default.has(i.env,h)||d||i.parentEnv==null){if(M9.default.has(i.env,e)&&M9.default.get(i.env,e)===r)return;M9.default.set(i.env,e,r),o.reportBindings!=null&&!t9t(e)&&o.reportBindings({path:e,value:r,node:u})}else{let v=i.parentEnv;for(;v!=null;)if(M9.default.has(v.env,h)){if(M9.default.has(v.env,e)&&M9.default.get(v.env,e)===r)return;M9.default.set(v.env,e,r),o.reportBindings!=null&&!t9t(e)&&o.reportBindings({path:e,value:r,node:u});return}else v.parentEnv==null?(M9.default.set(v.env,e,r),o.reportBindings!=null&&!t9t(e)&&o.reportBindings({path:e,value:r,node:u})):v=v.parentEnv}}function Dcr({inputEnvironment:{extra:i,preset:e},startingNode:r,policy:o}){let u;switch(e){case"NONE":u=tue(i);break;case"ECMA":u=tue(nCt(),i);break;case"NODE":case"NODE_CJS":u=tue(scr(),i);break;case"NODE_ESM":u=tue(ucr(),i);break;case"BROWSER":u=tue(ccr(),i);break;default:u={};break}return{parentEnv:void 0,preset:e,startingNode:r,env:Tcr({policy:o,env:u})}}function FEn(i,e){return i.kind===e.SyntaxKind.TrueKeyword||i.kind===e.SyntaxKind.FalseKeyword}function OEn(i,e){return i.kind===e.SyntaxKind.NullKeyword}function Acr(i,e){var r;return e.isStringLiteralLike(i)?{success:!0,value:i.text}:FEn(i,e)?{success:!0,value:i.kind===e.SyntaxKind.TrueKeyword}:e.isRegularExpressionLiteral(i)?{success:!0,value:new Function(`return ${i.text}`)()}:e.isNumericLiteral(i)?{success:!0,value:Number(i.text)}:!((r=e.isBigIntLiteral)===null||r===void 0)&&r.call(e,i)?{success:!0,value:BigInt(i.text)}:e.isIdentifier(i)&&i.text==="Infinity"?{success:!0,value:1/0}:e.isIdentifier(i)&&i.text==="NaN"?{success:!0,value:NaN}:e.isIdentifier(i)&&i.text==="null"?{success:!0,value:null}:e.isIdentifier(i)&&i.text==="undefined"?{success:!0,value:void 0}:OEn(i,e)?{success:!0,value:null}:{success:!1}}var a9t=class extends nue{constructor({ops:e,node:r,environment:o,message:u=`Maximum ops exceeded: ${e}`}){super({violation:"maxOps",message:u,node:r,environment:o}),this.ops=e}};function REn(i,e){let{node:r,environment:o,evaluate:u,stack:d,typescript:h,throwError:v,getCurrentError:S}=i,k=e??(r.initializer==null?void 0:u.expression(r.initializer,i));if(S()==null){if(k==null&&!h.isIdentifier(r.name))return v(new i7({node:r,environment:o}));u.nodeWithArgument(r.name,k,i),S()==null&&d.push(k)}}function MEn(i,e){return i.kind===e.SyntaxKind.ThisKeyword}function iCt(i,e){return i.kind===e.SyntaxKind.SuperKeyword}function P3e(i){var e,r;let{node:o,evaluate:u,typescript:d}=i;if(d.isIdentifier(o))return o.text;if(!((e=d.isPrivateIdentifier)===null||e===void 0)&&e.call(d,o))return o.text;if(MEn(o,d))return r7;if(iCt(o,d))return HCe;if(d.isParenthesizedExpression(o))return P3e({...i,node:o.expression});if(!((r=d.isTypeAssertionExpression)===null||r===void 0)&&r.call(d,o)||!("isTypeAssertionExpression"in d)&&d.isTypeAssertion(o))return P3e({...i,node:o.expression});if(d.isPropertyAccessExpression(o)){let h=P3e({...i,node:o.expression});h==null&&(h=u.expression(o.expression,i));let v=P3e({...i,node:o.name});return v==null&&(v=u.expression(o.name,i)),h==null||v==null?void 0:`${h}.${v}`}else if(d.isElementAccessExpression(o)){let h=P3e({...i,node:o.expression});h==null&&(h=u.expression(o.expression,i));let v=u.expression(o.argumentExpression,i);return h==null||v==null?void 0:`${h}.${v}`}else if(d.isFunctionDeclaration(o))return o.name==null?void 0:o.name.text}var o9t=class extends i7{constructor({node:e,environment:r,message:o="'No leftValue could be determined'"}){super({message:o,environment:r,node:e})}};function q0t(i,e){var r;return e.isParenthesizedExpression(i)||e.isAsExpression(i)||!((r=e.isTypeAssertionExpression)===null||r===void 0)&&r.call(e,i)||!("isTypeAssertionExpression"in e)&&e.isTypeAssertion(i)?q0t(i.expression,e):i}function GEn(i){return i!=null&&typeof i=="object"&&"kind"in i&&"flags"in i&&"pos"in i&&"end"in i}function kcr(i){var e;let{node:r,environment:o,evaluate:u,logger:d,throwError:h,typeChecker:v,typescript:S,getCurrentError:k}=i,L=u.expression(r.left,i);if(k()!=null)return;let z=u.expression(r.right,i);if(k()!=null)return;let te=P3e({...i,node:r.left}),_e=r.operatorToken.kind;switch(_e){case S.SyntaxKind.AmpersandToken:return L&z;case S.SyntaxKind.AmpersandAmpersandToken:return L&&z;case S.SyntaxKind.AmpersandEqualsToken:case S.SyntaxKind.CaretEqualsToken:case S.SyntaxKind.BarEqualsToken:case S.SyntaxKind.MinusEqualsToken:case S.SyntaxKind.PlusEqualsToken:case S.SyntaxKind.PercentEqualsToken:case S.SyntaxKind.SlashEqualsToken:case S.SyntaxKind.AsteriskEqualsToken:case S.SyntaxKind.AsteriskAsteriskEqualsToken:case S.SyntaxKind.LessThanLessThanEqualsToken:case S.SyntaxKind.GreaterThanGreaterThanEqualsToken:case S.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken:case S.SyntaxKind.QuestionQuestionEqualsToken:case S.SyntaxKind.BarBarEqualsToken:case S.SyntaxKind.AmpersandAmpersandEqualsToken:{let Ae=L;switch(_e){case S.SyntaxKind.AmpersandEqualsToken:Ae&=z;break;case S.SyntaxKind.CaretEqualsToken:Ae^=z;break;case S.SyntaxKind.BarEqualsToken:Ae|=z;break;case S.SyntaxKind.AsteriskEqualsToken:Ae*=z;break;case S.SyntaxKind.AsteriskAsteriskEqualsToken:Ae**=z;break;case S.SyntaxKind.LessThanLessThanEqualsToken:Ae<<=z;break;case S.SyntaxKind.GreaterThanGreaterThanEqualsToken:Ae>>=z;break;case S.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken:Ae>>>=z;break;case S.SyntaxKind.MinusEqualsToken:Ae-=z;break;case S.SyntaxKind.PlusEqualsToken:Ae+=z;break;case S.SyntaxKind.PercentEqualsToken:Ae%=z;break;case S.SyntaxKind.SlashEqualsToken:Ae/=z;break;case S.SyntaxKind.QuestionQuestionEqualsToken:Ae=L??z;break;case S.SyntaxKind.BarBarEqualsToken:L||(Ae=z);break;case S.SyntaxKind.AmpersandAmpersandEqualsToken:L&&(Ae=z);break}return te!=null&&RB({...i,path:te,value:Ae}),Ae}case S.SyntaxKind.AsteriskToken:return L*z;case S.SyntaxKind.AsteriskAsteriskToken:return L**z;case S.SyntaxKind.BarToken:return L|z;case S.SyntaxKind.BarBarToken:return L||z;case S.SyntaxKind.CaretToken:return L^z;case S.SyntaxKind.CommaToken:return z;case S.SyntaxKind.MinusToken:return L-z;case S.SyntaxKind.PlusToken:return d.logResult(L+z,"BinaryExpression (PlusToken)"),L+z;case S.SyntaxKind.PercentToken:return L%z;case S.SyntaxKind.SlashToken:return L/z;case S.SyntaxKind.EqualsToken:{if(te!=null){let Ae=q0t(r.left,S),Ie=v?.getSymbolAtLocation(Ae),Xe=Ie?.valueDeclaration;if(Xe==null&&v==null&&S.isIdentifier(Ae)){let ze=p9t(Ae.parent,Ae.text,i);GEn(ze)&&(Xe=ze)}let Ve=Xe==null?o:(e=LEn(o,Xe,S))!==null&&e!==void 0?e:o;RB({...i,environment:Ve,path:te,value:z}),d.logBinding(te,z,"Assignment")}else return h(new o9t({node:r.left,environment:o}));return z}case S.SyntaxKind.EqualsEqualsToken:return L==z;case S.SyntaxKind.EqualsEqualsEqualsToken:return L===z;case S.SyntaxKind.ExclamationEqualsToken:return L!=z;case S.SyntaxKind.ExclamationEqualsEqualsToken:return L!==z;case S.SyntaxKind.GreaterThanToken:return L>z;case S.SyntaxKind.GreaterThanEqualsToken:return L>=z;case S.SyntaxKind.LessThanToken:return L<z;case S.SyntaxKind.LessThanEqualsToken:return L<=z;case S.SyntaxKind.InKeyword:return L in z;case S.SyntaxKind.QuestionQuestionToken:return L??z;case S.SyntaxKind.InstanceOfKeyword:return L instanceof z}return h(new GN({node:r.operatorToken,typescript:S,environment:o}))}var _9t="___lazyCallFlag";function wcr(i){return i!=null&&typeof i=="object"&&_9t in i}function m9t(i){return i===void 0?"undefined":i===null?"null":typeof i=="string"?`"${i}"`:i.toString()}var Z0t=class extends i7{constructor({value:e,node:r,environment:o,message:u=`${m9t(e)} is not a function'`}){super({message:u,environment:o,node:r}),this.value=e}};function eue(i,e){var r;return iCt(i,e)?!0:e.isPropertyAccessExpression(i)?eue(i.expression,e)||eue(i.name,e):e.isElementAccessExpression(i)?eue(i.expression,e)||eue(i.argumentExpression,e):e.isParenthesizedExpression(i)||e.isAsExpression(i)||!((r=e.isTypeAssertionExpression)===null||r===void 0)&&r.call(e,i)||!("isTypeAssertionExpression"in e)&&e.isTypeAssertion(i)?eue(i.expression,e):!1}function Icr(i){let{node:e,environment:r,evaluate:o,throwError:u,typescript:d,logger:h,getCurrentError:v}=i,S=[];for(let L=0;L<e.arguments.length;L++)if(S[L]=o.expression(e.arguments[L],i),v()!=null)return;let k=o.expression(e.expression,i);if(v()==null)if(wcr(k)){let L=eue(e.expression,d)?Gk(e,r,r7):void 0,z=k.invoke(L?.literal,...S);return v()!=null?void 0:(h.logResult(z,"CallExpression"),z)}else{if(e.questionDotToken==null&&typeof k!="function")return u(new Z0t({value:k,node:e.expression,environment:r}));let L=typeof k!="function"?void 0:rCt(e,i,k(...S));return v()!=null?void 0:(h.logResult(L,"CallExpression"),L)}}function Pcr({node:i,evaluate:e,...r}){return e.expression(i.expression,r)}function D6(i,e){return{parentEnv:i,startingNode:e,env:{}}}function TX(i,e){let r=Array.isArray(i)?i:i.modifiers;return r!=null&&r.some(o=>o.kind===e)}function DX(i,e,r){let{node:o,evaluate:u,environment:d,typescript:h,getCurrentError:v}=i,S=o.filter(k=>!(h.isIdentifier(k.name)&&k.name.text==="this"));for(let k=0;k<S.length;k++){let L=S[k];if(L.dotDotDotToken!=null){if(u.nodeWithArgument(L,e.slice(k),i),v()!=null)return;break}else{if(u.nodeWithArgument(L,e[k],i),v()!=null)return;if(r!=null&&h.isIdentifier(L.name)&&(TX(L,h.SyntaxKind.PublicKeyword)||TX(L,h.SyntaxKind.ProtectedKeyword)||TX(L,h.SyntaxKind.PrivateKeyword))){let z=Gk(L,d,L.name.text);z!=null&&(r[L.name.text]=z.literal)}}}}function Ncr(i){let{node:e,environment:r,evaluate:o,stack:u,typescript:d,getCurrentError:h}=i,v=TX(e,d.SyntaxKind.AsyncKeyword)?async(...S)=>{let k=D6(r,e),L={...i,environment:k};if(RB({...L,path:v2,value:!1,newBinding:!0}),RB({...L,path:"arguments",value:arguments,newBinding:!0}),DX({...i,node:e.parameters,environment:k},S),h()==null)return d.isBlock(e.body)?(o.statement(e.body,L),h()!=null?void 0:jT(e,k,!0,v2)?u.pop():void 0):o.expression(e.body,L)}:(...S)=>{let k=D6(r,e),L={...i,environment:k};if(RB({...L,path:v2,value:!1,newBinding:!0}),RB({...L,path:"arguments",value:arguments,newBinding:!0}),DX({...i,node:e.parameters,environment:k},S),h()==null)return d.isBlock(e.body)?(o.statement(e.body,L),h()!=null?void 0:jT(e,k,!0,v2)?u.pop():void 0):o.expression(e.body,L)};return v.toString=()=>"[Function: anonymous]",Object.setPrototypeOf(v,Gk(e,r,"Function").literal),v}function Lcr({node:i}){return i.text}function Fcr({node:i}){return Number(i.text)}function Ocr({node:i,typescript:e}){return i.kind===e.SyntaxKind.TrueKeyword}function Rcr({node:i,environment:e}){let r=Gk(i,e,"Function").literal;return new r(`return ${i.text}`)()}function Mcr(i){let{node:e,evaluate:r,environment:o,getCurrentError:u}=i,d=Gk(e,o,"Object").literal,h=d.create(d.prototype);RB({...i,path:r7,value:h,newBinding:!0});for(let v of e.properties)if(r.nodeWithArgument(v,h,i),u()!=null)return;return h}function Gcr(i){return i!=null&&i[Symbol.iterator]!=null}function jcr(i){let{node:e,environment:r,evaluate:o,typescript:u,getCurrentError:d}=i,v=Gk(e,r,"Array").literal.of();for(let S of e.elements){let k=o.expression(S,i);if(d()!=null)return;u.isSpreadElement(S)&&Gcr(k)?v.push(...k):v.push(k)}return v}var eCt=class extends i7{constructor({node:e,environment:r,message:o=`'${e.text}' is not defined'`}){super({message:o,environment:r,node:e})}};function bEn(i){let{node:e,environment:r,typeChecker:o,evaluate:u,stack:d,logger:h,reporting:v,typescript:S,throwError:k,getCurrentError:L}=i,z=Gk(e,r,e.text);if(z!=null)return h.logBinding(e.text,z.literal,"Lexical Environment match"),z.literal;let te=S.isShorthandPropertyAssignment(e.parent)?o?.getShorthandAssignmentValueSymbol(e.parent):o?.getSymbolAtLocation(e),_e=te?.valueDeclaration;if(te!=null&&_e==null)try{let Ae=o?.getAliasedSymbol(te);_e=Ae?.valueDeclaration}catch{}if(_e==null){let Ae=p9t(e.parent,e.text,i);if(L()!=null)return;if(GEn(Ae)&&!S.isIdentifier(Ae))_e=Ae;else if(Ae!=null)return RB({...i,path:e.text,value:Ae}),h.logBinding(e.text,Ae,"Discovered declaration value"),Ae}if(_e!=null){if(_e.getSourceFile().isDeclarationFile){let Ie=Y0t({...i,node:_e});return L()!=null?void 0:(RB({environment:r,path:e.text,value:Ie,reporting:v,node:_e}),h.logBinding(e.text,Ie,`Discovered declaration value${_e.getSourceFile()===e.getSourceFile()?"":` (imported into '${e.getSourceFile().fileName}' from '${_e.getSourceFile().fileName}')`}`),Ie)}if(S.isVariableDeclaration(_e)&&_e.getSourceFile().fileName===e.getSourceFile().fileName&&_e.pos>e.pos)if(S.isVariableDeclarationList(_e.parent)&&AEn(_e.parent,S)){RB({...i,path:e.text,value:void 0,newBinding:!0,node:_e}),h.logBinding(e.text,void 0,"Hoisted var declaration");return}else return k(new eCt({node:e,environment:r}));if(u.declaration(_e,i),L()!=null)return;let Ae=d.pop();return RB({...i,path:e.text,value:Ae,node:_e}),h.logBinding(e.text,Ae,`Discovered declaration value${_e.getSourceFile()===e.getSourceFile()?"":` (imported into '${e.getSourceFile().fileName}' from '${_e.getSourceFile().fileName}')`}`),Ae}return k(new eCt({node:e,environment:r}))}function Ucr(i){let{node:e,environment:r,typescript:o,evaluate:u,getCurrentError:d}=i,h=D6(r,e);for(let v=0;v<e.statements.length;v++){let S=e.statements[v];if(!(o.isConstructorDeclaration(e.parent)&&v===0&&o.isExpressionStatement(S)&&o.isCallExpression(S.expression)&&iCt(S.expression.expression,o))&&(u.statement(S,{...i,environment:h}),d()!=null||jT(e,h,!0,iR,n7,v2)))break}}function Wcr({node:i,evaluate:e,stack:r,...o}){let{getCurrentError:u}=o;if(RB({...o,environment:o.environment,path:v2,value:!0,node:i}),i.expression==null)r.push(void 0);else{let d=e.expression(i.expression,o);if(u()!=null)return;r.push(d)}}function jEn({node:i,evaluate:e,...r}){for(let o of i.declarations)if(e.declaration(o,r),r.getCurrentError()!=null)return}function Vcr({node:i,...e}){jEn({node:i.declarationList,...e})}function Hcr(i){var e,r;let{node:o,environment:u,evaluate:d,reporting:h,typescript:v,throwError:S,getCurrentError:k}=i,L=d.expression(o.operand,i);if(k()==null)switch(o.operator){case v.SyntaxKind.PlusToken:return+L;case v.SyntaxKind.MinusToken:return-L;case v.SyntaxKind.TildeToken:return~L;case v.SyntaxKind.ExclamationToken:return!L;case v.SyntaxKind.PlusPlusToken:{if(!v.isIdentifier(o.operand)&&!(!((e=v.isPrivateIdentifier)===null||e===void 0)&&e.call(v,o.operand)))return S(new GN({node:o.operand,environment:u,typescript:v}));let z=rqe(u,o.operand.text),te=++z[o.operand.text];return h.reportBindings!=null&&h.reportBindings({path:o.operand.text,value:te,node:o}),te}case v.SyntaxKind.MinusMinusToken:{if(!v.isIdentifier(o.operand)&&!(!((r=v.isPrivateIdentifier)===null||r===void 0)&&r.call(v,o.operand)))return S(new GN({node:o.operand,environment:u,typescript:v}));let z=rqe(u,o.operand.text),te=--z[o.operand.text];return h.reportBindings!=null&&h.reportBindings({path:o.operand.text,value:te,node:o}),te}}}function zcr(i){let{evaluate:e,node:r,statementTraversalStack:o,environment:u,typescript:d,getCurrentError:h}=i,v=e.expression(r.expression,i);if(v==null||h()!=null)return;let S=r.questionDotToken!=null&&v==null?void 0:v[r.name.text];return typeof S=="function"&&o.includes(d.SyntaxKind.CallExpression)?{[_9t]:0,invoke:(k,...L)=>rCt(r,i,k!=null&&!d9t(S,u)?v[r.name.text].call(k,...L):v[r.name.text](...L))}:S}function Jcr(i){let{node:e,environment:r,evaluate:o,statementTraversalStack:u,typescript:d,getCurrentError:h}=i,v=o.expression(e.expression,i);if(h()!=null)return;let S=o.expression(e.argumentExpression,i);if(h()!=null)return;let k=e.questionDotToken!=null&&v==null?void 0:v[S];return typeof k=="function"&&u.includes(d.SyntaxKind.CallExpression)?{[_9t]:0,invoke:(L,...z)=>rCt(e,i,L!=null&&!d9t(k,r)?v[S].call(L,...z):v[S](...z))}:k}function qcr({node:i,evaluate:e,...r}){return e.expression(i.expression,r)}function Kcr(i){let{node:e,environment:r,evaluate:o,stack:u,typescript:d,getCurrentError:h}=i,v=e.name==null?void 0:e.name.text,S=TX(e,d.SyntaxKind.AsyncKeyword)?async function(...L){let z=D6(r,e),te={...i,environment:z};if(RB({...te,path:v2,value:!1,newBinding:!0}),RB({...te,path:"arguments",value:arguments,newBinding:!0}),this!=null&&RB({...te,path:r7,value:this,newBinding:!0}),DX({...i,node:e.parameters,environment:z},L),h()!=null)return;let _e=e.getSourceFile();if(v!=null&&_e.isDeclarationFile)return Y0t(i)(...L);if(e.body!=null&&(o.statement(e.body,te),h()==null&&jT(e,z,!0,v2)))return u.pop()}:function(...L){let z=D6(r,e),te={...i,environment:z};if(RB({...te,path:v2,value:!1,newBinding:!0}),RB({...te,path:"arguments",value:arguments,newBinding:!0}),this!=null&&RB({...te,path:r7,value:this,newBinding:!0}),DX({...te,node:e.parameters},L),h()!=null)return;let _e=e.getSourceFile();if(v!=null&&_e.isDeclarationFile)return Y0t(i)(...L);if(e.body!=null&&(o.statement(e.body,te),h()==null&&jT(e,z,!0,v2)))return u.pop()};v!=null&&RB({...i,path:v,value:S.bind(S)}),S.toString=()=>`[Function${v==null?"":`: ${v}`}]`,Object.setPrototypeOf(S,Gk(e,r,"Function").literal),u.push(S)}function Xcr({node:i,evaluate:e,...r}){let{getCurrentError:o}=r,u=e.expression(i.expression,r);if(o()==null){if(u){if(e.statement(i.thenStatement,r),o()!=null)return}else if(i.elseStatement!=null)return e.statement(i.elseStatement,r)}}function Ycr({node:i,evaluate:e,stack:r,...o}){let u=e.expression(i.expression,o);o.getCurrentError()==null&&r.push(u)}function Qcr({node:i,evaluate:e,...r}){let o="";o+=i.head.text;for(let u of i.templateSpans){let d=e.expression(u.expression,r);if(r.getCurrentError()!=null)return;o+=d,o+=u.literal.text}return o}function $cr({node:i,evaluate:e,...r}){return e.expression(i.expression,r)}function Zcr(i){var e,r;let{evaluate:o,node:u,environment:d,typescript:h,throwError:v,reporting:S}=i;switch(o.expression(u.operand,i),u.operator){case h.SyntaxKind.PlusPlusToken:{if(!h.isIdentifier(u.operand)&&!(!((e=h.isPrivateIdentifier)===null||e===void 0)&&e.call(h,u.operand)))return v(new GN({node:u.operand,environment:d,typescript:h}));let k=rqe(d,u.operand.text)[u.operand.text]++;return S.reportBindings!=null&&S.reportBindings({path:u.operand.text,value:k,node:u}),k}case h.SyntaxKind.MinusMinusToken:{if(!h.isIdentifier(u.operand)&&!(!((r=h.isPrivateIdentifier)===null||r===void 0)&&r.call(h,u.operand)))return v(new GN({node:u.operand,environment:d,typescript:h}));let k=rqe(d,u.operand.text)[u.operand.text]--;return S.reportBindings!=null&&S.reportBindings({path:u.operand.text,value:k,node:u}),k}}}function eur({node:i,evaluate:e,...r}){let{getCurrentError:o}=r,u=[];if(i.arguments!=null){for(let h=0;h<i.arguments.length;h++)if(u[h]=e.expression(i.arguments[h],r),o()!=null)return}let d=e.expression(i.expression,r);if(o()==null)return typeof d=="function"&&RB({...r,node:i,path:"[[NewTarget]]",value:d,newBinding:!0}),rCt(i,r,new d(...u))}function tur({node:i,evaluate:e,...r}){return e.expression(i.expression,r)}function nur({node:i,evaluate:e,...r}){return e.expression(i.expression,r)}function rur({node:i,evaluate:e,...r}){let o=e.expression(i.expression,r);r.getCurrentError()==null&&e.nodeWithArgument(i.caseBlock,o,r)}var l9t=class extends i7{constructor({message:e="It is not possible to evaluate an async iterator'",typescript:r,environment:o}){var u,d;super({message:e,environment:o,node:(d=(u=r.factory)===null||u===void 0?void 0:u.createEmptyStatement())!==null&&d!==void 0?d:r.createEmptyStatement()})}};function iur(i){let{node:e,environment:r,evaluate:o,logger:u,typescript:d,throwError:h,getCurrentError:v}=i,S=o.expression(e.expression,i);if(v()==null){if(d.isVariableDeclarationList(e.initializer)){if(e.initializer.declarations.length>1)return h(new GN({node:e.initializer.declarations[1],environment:r,typescript:d}))}else return h(new GN({node:e.initializer,environment:r,typescript:d}));if(e.awaitModifier!=null)return h(new l9t({typescript:d,environment:r}));for(let k of S){let L=D6(r,e),z={...i,environment:L};if(RB({...z,path:iR,value:!1,newBinding:!0}),RB({...z,path:n7,value:!1,newBinding:!0}),o.nodeWithArgument(e.initializer.declarations[0],k,z),v()!=null||(o.statement(e.statement,z),v()!=null))return;if(jT(e,L,!0,iR)){u.logBreak(e,d);break}else if(jT(e,L,!0,n7)){u.logContinue(e,d);continue}else if(jT(e,L,!0,v2)){u.logReturn(e,d);return}}}}function sur({node:i,environment:e}){let r=Gk(i,e,r7);return r?.literal}function aur(i){RB({...i,path:iR,value:!0})}function our(i){RB({...i,path:n7,value:!0})}function lur({environment:i,evaluate:e,typescript:r,...o}){let{node:u,getCurrentError:d}=o,h=D6(i,u),v={...o,environment:h};if(u.initializer!==void 0){if(r.isVariableDeclarationList(u.initializer)){for(let S of u.initializer.declarations)if(e.declaration(S,v),d()!=null)return}else if(e.expression(u.initializer,v),d()!=null)return}for(;;){let S=D6(h,u),k={...o,environment:S};if(RB({...k,path:iR,value:!1,newBinding:!0}),RB({...k,path:n7,value:!1,newBinding:!0}),!(u.condition==null?!0:e.expression(u.condition,v))||d()!=null||(e.statement(u.statement,k),d()!=null))return;if(jT(u,S,!0,iR))break;if(jT(u,S,!0,v2))return;if(u.incrementor!=null){if(e.expression(u.incrementor,v),d()!=null)return}else if(jT(u,S,!0,n7))continue}}function cur(i){let{node:e,environment:r,evaluate:o,logger:u,typescript:d,getCurrentError:h}=i,v=o.expression(e.expression,i);if(h()==null)for(;v;){let S=D6(r,e),k={...i,environment:S};if(RB({...k,path:iR,value:!1,newBinding:!0}),RB({...k,path:n7,value:!1,newBinding:!0}),o.statement(e.statement,k),h()!=null)return;if(jT(e,S,!0,iR)){u.logBreak(e,d);break}else if(jT(e,S,!0,v2)){u.logReturn(e,d);return}if(v=o.expression(e.expression,i),h()!=null)return;if(jT(e,S,!0,n7)){u.logContinue(e,d);continue}}}function uur(i){let{node:e,environment:r,evaluate:o,logger:u,typescript:d,throwError:h,getCurrentError:v}=i,S=o.expression(e.expression,i);if(v()==null){if(d.isVariableDeclarationList(e.initializer)){if(e.initializer.declarations.length>1)return h(new GN({node:e.initializer.declarations[1],environment:r,typescript:d}))}else return h(new GN({node:e.initializer,environment:r,typescript:d}));for(let k in S){let L=D6(r,e),z={...i,environment:L};if(RB({...z,path:iR,value:!1,newBinding:!0}),RB({...z,path:n7,value:!1,newBinding:!0}),o.nodeWithArgument(e.initializer.declarations[0],k,z),v()!=null||(o.statement(e.statement,z),v()!=null))return;if(jT(e,L,!0,iR)){u.logBreak(e,d);break}else if(jT(e,L,!0,n7)){u.logContinue(e,d);continue}else if(jT(e,L,!0,v2)){u.logReturn(e,d);return}}}}function fur(i){let{node:e,environment:r,evaluate:o,stack:u,typescript:d,getCurrentError:h}=i,v=e.name==null?void 0:e.name.text,S=TX(e,d.SyntaxKind.AsyncKeyword)?async function(...L){let z=D6(r,e),te={...i,environment:z};if(RB({...te,path:v2,value:!1,newBinding:!0}),RB({...te,path:"arguments",value:arguments,newBinding:!0}),this!=null&&RB({...te,path:r7,value:this,newBinding:!0}),DX({...te,node:e.parameters},L),!(e.body==null||h()!=null)&&(o.statement(e.body,te),h()==null&&jT(e,z,!0,v2)))return u.pop()}:function(...L){let z=D6(r,e),te={...i,environment:z};if(RB({...te,path:v2,value:!1,newBinding:!0}),RB({...te,path:"arguments",value:arguments,newBinding:!0}),this!=null&&RB({...te,path:r7,value:this,newBinding:!0}),DX({...te,node:e.parameters},L),!(e.body==null||h()!=null)&&(o.statement(e.body,te),h()==null&&jT(e,z,!0,v2)))return u.pop()};return v!=null&&RB({...i,path:v,value:S.bind(S)}),S.toString=()=>`[Function${v==null?"":`: ${v}`}]`,Object.setPrototypeOf(S,Gk(e,r,"Function").literal),S}var c9t=class extends i7{constructor({node:e,environment:r,message:o="Missing catch or finally after try"}){super({node:e,environment:r,message:o})}};function pur(i){let{node:e,evaluate:r,environment:o,throwError:u}=i,d,h=()=>{try{return r.statement(e.tryBlock,{...i,throwError:k=>(d=k,k),getCurrentError:()=>d})}catch(k){d=k}},v=k=>{r.nodeWithArgument(e.catchClause,k,i)},S=()=>{let k;r.statement(e.finallyBlock,{...i,throwError:L=>(k=L,i.throwError(L),L),getCurrentError:()=>k})};if(e.catchClause==null&&e.finallyBlock==null)return u(new c9t({node:e,environment:o}));e.catchClause!=null&&e.finallyBlock==null?(h(),d!=null&&v(d)):e.catchClause!=null&&e.finallyBlock!=null?(h(),d!=null&&v(d),S()):e.catchClause==null&&e.finallyBlock!=null&&(h(),d!=null&&u(d),S())}function UEn({name:i,extendedType:e,ctor:r=()=>{}}){return e==null?new Function("ctor",`return class ${i??""} {constructor () {const ctorReturnValue = ctor.call(this, ...arguments); if (ctorReturnValue != null) return ctorReturnValue;}}`)(r):new Function("extendedType","ctor",`return class ${i??""} extends extendedType {constructor () {super(...arguments); const ctorReturnValue = ctor.call(this, ...arguments); if (ctorReturnValue != null) return ctorReturnValue;}}`)(e,r)}function iqe(i,e){return"canHaveDecorators"in e?e.canHaveDecorators(i):!0}function sqe(i,e){var r;if("getDecorators"in e)return e.getDecorators(i);{let o="decorators"in i&&Array.isArray(i.decorators)?i.decorators:void 0,u=(r=i.modifiers)===null||r===void 0?void 0:r.filter(d=>"expression"in d);return[...o??[],...u??[]]}}function dur(i){var e;let{node:r,evaluate:o,stack:u,logger:d,typescript:h,getCurrentError:v}=i,S,k=r.members.find(h.isConstructorDeclaration),L=r.members.filter(Ae=>!h.isConstructorDeclaration(Ae)),z;if(k!=null){if(o.declaration(k,i),v()!=null)return;z=u.pop()}if(r.heritageClauses!=null){let Ae=r.heritageClauses.find(Ie=>Ie.token===h.SyntaxKind.ExtendsKeyword);if(Ae!=null){let[Ie]=Ae.types;if(Ie!=null&&(S=o.expression(Ie.expression,i),v()!=null))return}}let te=r.name==null?void 0:r.name.text,_e=UEn({name:te,extendedType:S,ctor:z});if(iqe(r,h))for(let Ae of(e=sqe(r,h))!==null&&e!==void 0?e:[]){if(o.nodeWithArgument(Ae,[_e],i),v()!=null)return;_e=u.pop()}_e.toString=()=>`[Class${te==null?"":`: ${te}`}]`,te!=null&&RB({...i,path:te,value:_e,newBinding:!0});for(let Ae of L)if(o.nodeWithArgument(Ae,TX(Ae,h.SyntaxKind.StaticKeyword)?_e:_e.prototype,i),v()!=null)return;d.logHeritage(_e),u.push(_e),d.logStack(u)}function _ur(i){let{node:e,environment:r,evaluate:o,stack:u,getCurrentError:d}=i;function h(...v){let S=D6(r,e),k={...i,environment:S};if(RB({...k,path:v2,value:!1,newBinding:!0}),RB({...k,path:"arguments",value:arguments,newBinding:!0}),this!=null&&RB({...k,path:r7,value:this,newBinding:!0}),DX({...k,node:e.parameters},v,this),!(e.body==null||d()!=null)&&(o.statement(e.body,k),d()==null&&jT(e,S,!0,v2)))return u.pop()}h.toString=()=>"[Function: constructor]",u.push(h)}function mur({node:i,environment:e}){let r=Gk(i,e,HCe);return r?.literal}function hur({node:i,evaluate:e,...r}){return e.expression(i.expression,r)}function Bur(i){var e;let{node:r,evaluate:o,stack:u,logger:d,typescript:h,getCurrentError:v}=i,S,k=r.members.find(h.isConstructorDeclaration),L=r.members.filter(Ae=>!h.isConstructorDeclaration(Ae)),z;if(k!=null){if(o.declaration(k,i),v()!=null)return;z=u.pop()}if(r.heritageClauses!=null){let Ae=r.heritageClauses.find(Ie=>Ie.token===h.SyntaxKind.ExtendsKeyword);if(Ae!=null){let[Ie]=Ae.types;if(Ie!=null&&(S=o.expression(Ie.expression,i),v()!=null))return}}let te=r.name==null?void 0:r.name.text,_e=UEn({name:te,extendedType:S,ctor:z});if(iqe(r,h))for(let Ae of(e=sqe(r,h))!==null&&e!==void 0?e:[]){if(o.nodeWithArgument(Ae,[_e],i),v()!=null)return;_e=u.pop()}_e.toString=()=>`[Class${te==null?"":`: ${te}`}]`,te!=null&&RB({...i,path:te,value:_e,newBinding:!0});for(let Ae of L)if(o.nodeWithArgument(Ae,TX(Ae,h.SyntaxKind.StaticKeyword)?_e:_e.prototype,i),v()!=null)return;return d.logHeritage(_e),_e}function gur(i){return null}function yur({node:i,evaluate:e,...r}){e.expression(i.expression,r)}function Cur({evaluate:i,node:e,...r}){let o=i.expression(e.expression,r);if(r.getCurrentError()==null)return typeof o}function vur({node:i,environment:e}){let r=Gk(i,e,"BigInt").literal;return r(i.text.endsWith("n")?i.text.slice(0,-1):i.text)}function bur(i){let{node:e,environment:r,evaluate:o,stack:u,getCurrentError:d}=i,h=Gk(e,r,"Object").literal,v=h.create(h.prototype),S=e.name.text;RB({...i,path:S,value:v,newBinding:!0});for(let k of e.members)if(o.nodeWithArgument(k,v,i),d()!=null)return;v.toString=()=>`[Enum: ${S}]`,u.push(v)}function Sur(i){let{node:e,evaluate:r,environment:o,typeChecker:u,stack:d,getCurrentError:h}=i,v=Gk(e,o,"Object").literal,S=v.create(v.prototype),k=u?.getSymbolAtLocation(e);if(k!=null){let L=k.exports;if(L!=null)for(let[z,te]of L.entries()){let _e=te.valueDeclaration;if(_e==null||(r.declaration(_e,i),h()!=null))return;S[z]=d.pop()}}d.push(S)}function xur(i){let{getCurrentError:e,stack:r}=i,o=Y0t(i);e()==null&&r.push(o)}function Eur({node:i,evaluate:e,...r}){i.importClause!=null&&e.declaration(i.importClause,r)}function Tur({node:i,evaluate:e,...r}){let{getCurrentError:o,throwError:u}=r,d=e.expression(i.expression,r);if(o()==null)return u(d)}var u9t=class extends nue{constructor({duration:e,environment:r,node:o,message:u=`Maximum operation duration exceeded: ${e}`}){super({violation:"maxOpDuration",message:u,node:o,environment:r}),this.duration=e}};async function Dur(i){let{node:e,environment:r,evaluate:o,policy:u,throwError:d,getCurrentError:h}=i,v=u.maxOpDuration===1/0?void 0:setTimeout(()=>{d(new u9t({duration:u.maxOpDuration,node:e,environment:r}))},u.maxOpDuration),S=o.expression(e.expression,i);if(v!=null&&clearTimeout(v),h()==null)return S}function Aur({node:i,evaluate:e,...r}){let{getCurrentError:o}=r,u=e.expression(i.condition,r);if(o()==null)return u?e.expression(i.whenTrue,r):e.expression(i.whenFalse,r)}function sCt(i,e){let r=i;for(;r!=null&&!e.isSourceFile(r);){if(TX(r,e.SyntaxKind.StaticKeyword))return!0;r=r.parent}return!1}function WEn(i,e){var r,o;let{node:u,environment:d,evaluate:h,stack:v,typescript:S,getCurrentError:k}=i,L=h.nodeWithValue(u.name,i);if(k()!=null)return;let z=sCt(u,S);if(e==null){let _e;if(S.isClassLike(u.parent)){if(h.declaration(u.parent,i),k()!=null)return;_e=v.pop()}else if(_e=h.expression(u.parent,i),k()!=null)return;v.push(z?_e[L]:_e.prototype[L]);return}let te=TX(u,S.SyntaxKind.AsyncKeyword)?async function(...Ae){let Ie=D6(d,u),Xe={...i,environment:Ie};if(RB({...Xe,path:v2,value:!1,newBinding:!0}),RB({...Xe,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(RB({...Xe,path:r7,value:this,newBinding:!0}),RB({...Xe,path:HCe,value:z?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),DX({...i,node:u.parameters,environment:Ie},Ae),!(u.body==null||k()!=null)&&(h.statement(u.body,Xe),k()==null&&jT(u,Ie,!0,v2)))return v.pop()}:function(...Ae){let Ie=D6(d,u),Xe={...i,environment:Ie};if(RB({...Xe,path:v2,value:!1,newBinding:!0}),RB({...Xe,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(RB({...Xe,path:r7,value:this,newBinding:!0}),RB({...Xe,path:HCe,value:z?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),DX({...i,node:u.parameters,environment:Ie},Ae),!(u.body==null||k()!=null)&&(h.statement(u.body,Xe),k()==null&&jT(u,Ie,!0,v2)))return v.pop()};if(te.toString=()=>`[Method: ${L}]`,Object.setPrototypeOf(te,Gk(u,d,"Function").literal),e[L]=te,iqe(u,S))for(let _e of(r=sqe(u,S))!==null&&r!==void 0?r:[]){if(h.nodeWithArgument(_e,[e,L],i),k()!=null)return;v.pop()}if(u.parameters!=null){let _e=u.parameters.filter(Ae=>!(S.isIdentifier(Ae.name)&&Ae.name.text==="this"));for(let Ae=0;Ae<_e.length;Ae++){let Ie=_e[Ae];if(iqe(Ie,S))for(let Xe of(o=sqe(Ie,S))!==null&&o!==void 0?o:[]){if(h.nodeWithArgument(Xe,[e,L,Ae],i),k()!=null)return;v.pop()}}}}function VEn({node:i,evaluate:e,typescript:r,stack:o,...u},d){var h;let{getCurrentError:v}=u,S=e.nodeWithValue(i.name,u);if(v()==null){if(d==null){if(e.declaration(i.parent,u),v()!=null)return;let k=o.pop(),L=sCt(i,r);o.push(L?k[S]:k.prototype[S]);return}if(d[S]=i.initializer==null?void 0:e.expression(i.initializer,u),v()==null&&iqe(i,r))for(let k of(h=sqe(i,r))!==null&&h!==void 0?h:[]){if(e.nodeWithArgument(k,[d,S],u),v()!=null)return;o.pop()}}}function HEn(i,e){let{node:r,environment:o,evaluate:u,stack:d,typescript:h,getCurrentError:v}=i;if(h.isTypeLiteralNode(r.parent)||h.isInterfaceDeclaration(r.parent))return;let S=u.nodeWithValue(r.name,i);if(v()!=null)return;let k=sCt(r,h);if(e==null){let te;if(h.isClassLike(r.parent)){if(u.declaration(r.parent,i),v()!=null)return;te=d.pop()}else if(te=u.expression(r.parent,i),v()!=null)return;d.push(k?te[S]:te.prototype[S]);return}function L(){let te=D6(o,r),_e={...i,environment:te};if(RB({..._e,path:v2,value:!1,newBinding:!0}),RB({..._e,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(RB({..._e,path:r7,value:this,newBinding:!0}),RB({..._e,path:HCe,value:k?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),r.body!=null&&(u.statement(r.body,_e),v()==null&&jT(r,te,!0,v2)))return d.pop()}L.toString=()=>`[Get: ${S}]`;let z=Object.getOwnPropertyDescriptor(e,S);z==null&&(z={}),Object.defineProperty(e,S,{...z,configurable:!0,get:L})}function kur({node:i,evaluate:e,...r}){let{getCurrentError:o}=r;if(!(i.name!=null&&(e.declaration(i.name,r),o()!=null))&&i.namedBindings!=null)if("elements"in i.namedBindings){for(let u of i.namedBindings.elements)if(e.declaration(u,r),o()!=null)return}else e.declaration(i.namedBindings.name,r)}function wur({node:i,evaluate:e,...r}){var o;e.declaration((o=i.propertyName)!==null&&o!==void 0?o:i.name,r)}function Iur({node:i,evaluate:e,...r}){e.declaration(i.name,r)}var tCt=class extends i7{constructor({node:e,environment:r,message:o="'SyntaxError'"}){super({message:o,environment:r,node:e})}};function Pur({node:i,typescript:e,throwError:r,environment:o}){var u,d;switch(i.keywordToken){case e.SyntaxKind.NewKeyword:switch(i.name.text){case"target":return(u=Gk(i,o,"[[NewTarget]]"))===null||u===void 0?void 0:u.literal;default:return r(new tCt({node:i.name,environment:o}))}case e.SyntaxKind.ImportKeyword:switch(i.name.text){case"meta":return(d=Gk(i,o,"import.meta"))===null||d===void 0?void 0:d.literal;default:return r(new tCt({node:i.name,environment:o}))}}}function h9t({node:i,...e}){var r,o,u,d,h,v;return e.typescript.isIdentifier(i)?bEn({node:i,...e}):!((o=(r=e.typescript).isPrivateIdentifier)===null||o===void 0)&&o.call(r,i)?bEn({node:i,...e}):e.typescript.isStringLiteralLike(i)?Lcr({node:i,...e}):e.typescript.isNumericLiteral(i)?Fcr({node:i,...e}):FEn(i,e.typescript)?Ocr({node:i,...e}):e.typescript.isForOfStatement(i)?iur({node:i,...e}):e.typescript.isForInStatement(i)?uur({node:i,...e}):e.typescript.isForStatement(i)?lur({node:i,...e}):e.typescript.isWhileStatement(i)?cur({node:i,...e}):e.typescript.isRegularExpressionLiteral(i)?Rcr({node:i,...e}):e.typescript.isObjectLiteralExpression(i)?Mcr({node:i,...e}):e.typescript.isAwaitExpression(i)?Dur({node:i,...e}):!((d=(u=e.typescript).isTypeAssertionExpression)===null||d===void 0)&&d.call(u,i)||!("isTypeAssertionExpression"in e.typescript)&&e.typescript.isTypeAssertion(i)?$cr({node:i,...e}):e.typescript.isTemplateExpression(i)?Qcr({node:i,...e}):e.typescript.isMethodDeclaration(i)?WEn({node:i,...e}):e.typescript.isPropertyDeclaration(i)?VEn({node:i,...e}):e.typescript.isGetAccessorDeclaration(i)?HEn({node:i,...e}):e.typescript.isArrayLiteralExpression(i)?jcr({node:i,...e}):e.typescript.isSourceFile(i)?Sur({node:i,...e}):e.typescript.isModuleDeclaration(i)?xur({node:i,...e}):e.typescript.isPrefixUnaryExpression(i)?Hcr({node:i,...e}):e.typescript.isPostfixUnaryExpression(i)?Zcr({node:i,...e}):e.typescript.isVariableStatement(i)?Vcr({node:i,...e}):e.typescript.isComputedPropertyName(i)?qcr({node:i,...e}):e.typescript.isVariableDeclarationList(i)?jEn({node:i,...e}):e.typescript.isImportDeclaration(i)?Eur({node:i,...e}):e.typescript.isImportClause(i)?kur({node:i,...e}):e.typescript.isImportSpecifier(i)?wur({node:i,...e}):e.typescript.isNamespaceImport(i)?Iur({node:i,...e}):e.typescript.isImportEqualsDeclaration(i)?({...e},void 0):e.typescript.isMetaProperty(i)?Pur({node:i,...e}):e.typescript.isThrowStatement(i)?Tur({node:i,...e}):e.typescript.isVariableDeclaration(i)?REn({node:i,...e}):e.typescript.isEnumDeclaration(i)?bur({node:i,...e}):e.typescript.isConstructorDeclaration(i)?_ur({node:i,...e}):e.typescript.isBinaryExpression(i)?kcr({node:i,...e}):e.typescript.isParenthesizedExpression(i)?Pcr({node:i,...e}):e.typescript.isExpressionStatement(i)?Ycr({node:i,...e}):e.typescript.isArrowFunction(i)?Ncr({node:i,...e}):e.typescript.isFunctionDeclaration(i)?Kcr({node:i,...e}):e.typescript.isFunctionExpression(i)?fur({node:i,...e}):e.typescript.isClassDeclaration(i)?dur({node:i,...e}):e.typescript.isIfStatement(i)?Xcr({node:i,...e}):e.typescript.isConditionalExpression(i)?Aur({node:i,...e}):e.typescript.isPropertyAccessExpression(i)?zcr({node:i,...e}):e.typescript.isElementAccessExpression(i)?Jcr({node:i,...e}):e.typescript.isCallExpression(i)?Icr({node:i,...e}):e.typescript.isSwitchStatement(i)?rur({node:i,...e}):e.typescript.isNewExpression(i)?eur({node:i,...e}):e.typescript.isNonNullExpression(i)?tur({node:i,...e}):e.typescript.isAsExpression(i)?nur({node:i,...e}):e.typescript.isBlock(i)?Ucr({node:i,...e}):e.typescript.isClassExpression(i)?Bur({node:i,...e}):e.typescript.isSpreadElement(i)?hur({node:i,...e}):e.typescript.isTryStatement(i)?pur({node:i,...e}):e.typescript.isReturnStatement(i)?Wcr({node:i,...e}):MEn(i,e.typescript)?sur({node:i,...e}):e.typescript.isVoidExpression(i)?yur({node:i,...e}):e.typescript.isTypeOfExpression(i)?Cur({node:i,...e}):iCt(i,e.typescript)?mur({node:i,...e}):OEn(i,e.typescript)?gur({node:i,...e}):!((v=(h=e.typescript).isBigIntLiteral)===null||v===void 0)&&v.call(h,i)?vur({node:i,...e}):e.typescript.isBreakStatement(i)?aur({node:i,...e}):e.typescript.isContinueStatement(i)?our({node:i,...e}):e.typescript.isTypeAliasDeclaration(i)?({...e},void 0):e.typescript.isInterfaceDeclaration(i)?({...e},void 0):e.getCurrentError()!=null?void 0:e.throwError(new GN({node:i,environment:e.environment,typescript:e.typescript}))}function B9t(){return[]}function Nur(i){i.logger.logNode(i.node,i.typescript),i.statementTraversalStack=B9t(),h9t(i)}function Lur(i){let{getCurrentError:e}=i;i.logger.logNode(i.node,i.typescript);let r=h9t(i);if(e()==null)return i.reporting.reportIntermediateResults!=null&&i.reporting.reportIntermediateResults({node:i.node,value:r}),r}function Fur(i){i.logger.logNode(i.node,i.typescript),h9t(i)}function Our({node:i,evaluate:e,typescript:r,logger:o,...u},d){var h;r.isIdentifier(i)||!((h=r.isPrivateIdentifier)===null||h===void 0)&&h.call(r,i)?(RB({...u,node:i,path:i.text,value:d,newBinding:!0}),o.logBinding(i.text,d,"evaluateBindingName")):e.nodeWithArgument(i,d,u)}function Rur(i,e){let{node:r,environment:o,evaluate:u,typescript:d,getCurrentError:h}=i,v=u.nodeWithValue(r.name,i);if(h()!=null)return;let S=sCt(r,d);function k(...z){let te=D6(o,r),_e={...i,environment:te};RB({..._e,path:v2,value:!1,newBinding:!0}),RB({..._e,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(RB({..._e,path:r7,value:this,newBinding:!0}),RB({..._e,path:HCe,value:S?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),DX({..._e,node:r.parameters},z),!(r.body==null||h()!=null)&&(u.statement(r.body,_e),h()==null)}k.toString=()=>`[Set: ${v}]`;let L=Object.getOwnPropertyDescriptor(e,v);L==null&&(L={}),Object.defineProperty(e,v,{...L,configurable:!0,set:k})}function Mur({node:i,evaluate:e,...r},o){let u=e.expression(i.initializer,r);if(r.getCurrentError()!=null)return;let d=e.nodeWithValue(i.name,r);r.getCurrentError()==null&&(o[d]=u)}function Gur({node:i,evaluate:e,logger:r,...o},u){let d=u!=null||i.initializer===void 0?u:e.expression(i.initializer,o);o.getCurrentError()==null&&(r.logBinding(i.name.getText(),d,"evaluateParameterDeclaration"),e.nodeWithArgument(i.name,d,o))}function jur({node:i,evaluate:e,...r},o){let{getCurrentError:u}=r,d=i.name.text,h=e.expression(i.name,r);u()==null&&(o[d]=h)}function Uur({node:i,evaluate:e,...r},o){let u=e.expression(i.expression,r);r.getCurrentError()==null&&Object.assign(o,u)}function Wur({node:i,evaluate:e,...r},o){let u=o[Symbol.iterator](),d=0;for(;d<i.elements.length;){let{done:h,value:v}=u.next();if(h===!0)break;if(e.nodeWithArgument(i.elements[d++],v,r),r.getCurrentError()!=null)return}}function Vur(i,e){var r,o,u,d;let{node:h,evaluate:v,logger:S,typescript:k,getCurrentError:L}=i,z=h.initializer==null?void 0:v.expression(h.initializer,i);if(L()==null){if((k.isIdentifier(h.name)||!((r=k.isPrivateIdentifier)===null||r===void 0)&&r.call(k,h.name))&&h.propertyName!=null){let te=h.name.text,_e=v.nodeWithValue(h.propertyName,i);if(L()!=null)return;let Ae=k.isArrayBindingPattern(h.parent)?e:e[_e];RB({...i,path:te,value:Ae??z,newBinding:!0})}else if((k.isIdentifier(h.name)||!((o=k.isPrivateIdentifier)===null||o===void 0)&&o.call(k,h.name))&&h.propertyName==null){let te=h.name.text,_e=k.isArrayBindingPattern(h.parent)?e:e[te],Ae=_e??z;S.logBinding(h.name.text,Ae),RB({...i,path:h.name.text,value:Ae,newBinding:!0})}else if(!k.isIdentifier(h.name)&&!(!((u=k.isPrivateIdentifier)===null||u===void 0)&&u.call(k,h.name))&&h.propertyName!=null){let te=v.nodeWithValue(h.propertyName,i);if(L()!=null)return;let _e=k.isArrayBindingPattern(h.parent)?e:e[te],Ae=_e??z;if(v.nodeWithArgument(h.name,Ae,i),L()!=null)return}else if(!k.isIdentifier(h.name)&&!(!((d=k.isPrivateIdentifier)===null||d===void 0)&&d.call(k,h.name))&&h.propertyName==null){let te=e??z;if(v.nodeWithArgument(h.name,te,i),L()!=null)return}}}function Hur({node:i,evaluate:e,...r},o){for(let u of i.elements)if(e.nodeWithArgument(u,o,r),r.getCurrentError()!=null)return}function zur(i,e){let{node:r,evaluate:o,environment:u,getCurrentError:d}=i,h=D6(u,r),v={...i,environment:h};RB({...v,path:iR,value:!1,newBinding:!0});for(let S of r.clauses){if(o.nodeWithArgument(S,e,v),d()!=null)return;if(jT(r,h,!0,iR,n7,v2))break}}function Jur({node:i,evaluate:e,...r},o){let{getCurrentError:u}=r;if(!(e.expression(i.expression,r)!==o||u()!=null))for(let h of i.statements){if(e.statement(h,r),u()!=null)return;if(jT(i,r.environment,!0,iR,n7,v2))break}}function qur(i){let{node:e,evaluate:r,environment:o,getCurrentError:u}=i;for(let d of e.statements){if(r.statement(d,i),u()!=null)return;if(jT(e,o,!0,iR,n7,v2))break}}function Kur(i,e){let{node:r,evaluate:o,environment:u,getCurrentError:d}=i,h=r.variableDeclaration==null?u:D6(u,r),v={...i,environment:h};r.variableDeclaration!=null&&(o.nodeWithArgument(r.variableDeclaration,e,v),d()!=null)||o.statement(r.block,v)}function Xur(i,e,r,o){let u=arguments.length,d=u<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;for(let v=i.length-1;v>=0;v--)(h=i[v])&&(d=(u<3?h(d):u>3?h(e,r,d):h(e,r))||d);return u>3&&d&&Object.defineProperty(e,r,d),d}function Yur(i,e){return function(r,o){e(r,o,i)}}function Qur(i,[e,r,o]){let{node:u,evaluate:d,environment:h,throwError:v,stack:S,getCurrentError:k}=i,L=d.expression(u.expression,i);if(k()==null){if(typeof L!="function")return v(new Z0t({node:u,environment:h,value:L,message:`${m9t(L)} is not a valid decorator implementation'`}));S.push(Xur([o!=null?Yur(o,L):L],e,r))}}function $ur(i,e){let{node:r,typeChecker:o,evaluate:u,getCurrentError:d}=i,h=o?.getConstantValue(r);if(h==null)if(r.initializer!=null){if(h=u.expression(r.initializer,i),d()!=null)return}else{let S=r.parent.members,k=S.findIndex(te=>te===r),L=S.slice(0,k),z=0;for(let te of[...L].reverse())if(z++,te.initializer!=null){let _e=u.expression(te.initializer,i);if(d()!=null)return;if(typeof _e=="number"){h=_e+z;break}}h==null&&(h=k)}let v=u.nodeWithValue(r.name,i);d()==null&&(typeof h=="string"?e[v]=h:e[e[v]=h??0]=v)}function Zur(i,e){i.logger.logNode(i.node,i.typescript,"nodeWithArgument");let{node:r,...o}=i;if(o.typescript.isGetAccessorDeclaration(r))HEn({node:r,...o},e);else if(o.typescript.isSetAccessorDeclaration(r))Rur({node:r,...o},e);else if(o.typescript.isPropertyAssignment(r))Mur({node:r,...o},e);else if(o.typescript.isPropertyDeclaration(r))VEn({node:r,...o},e);else if(o.typescript.isParameter(r))Gur({node:r,...o},e);else if(o.typescript.isEnumMember(r))$ur({node:r,...o},e);else if(o.typescript.isShorthandPropertyAssignment(r))jur({node:r,...o},e);else if(o.typescript.isDecorator(r))Qur({node:r,...o},e);else if(o.typescript.isSpreadAssignment(r))Uur({node:r,...o},e);else if(o.typescript.isMethodDeclaration(r))WEn({node:r,...o},e);else if(o.typescript.isArrayBindingPattern(r))Wur({node:r,...o},e);else if(o.typescript.isBindingElement(r))Vur({node:r,...o},e);else if(o.typescript.isObjectBindingPattern(r))Hur({node:r,...o},e);else if(o.typescript.isVariableDeclaration(r))REn({node:r,...o},e);else if(o.typescript.isCaseBlock(r))zur({node:r,...o},e);else if(o.typescript.isCaseClause(r))Jur({node:r,...o},e);else if(o.typescript.isDefaultClause(r))qur({node:r,...o});else if(o.typescript.isCatchClause(r))Kur({node:r,...o},e);else if(o.typescript.isBindingName(r))Our({node:r,...o},e);else if(o.typescript.isOmittedExpression(r))({...o});else{if(i.getCurrentError()!=null)return;o.throwError(new GN({node:r,environment:o.environment,typescript:o.typescript}))}}function efr({node:i,evaluate:e,typescript:r,...o}){var u;return r.isComputedPropertyName(i)?e.expression(i.expression,o):r.isIdentifier(i)||!((u=r.isPrivateIdentifier)===null||u===void 0)&&u.call(r,i)?i.text:e.expression(i,o)}function tfr(i){i.logger.logNode(i.node,i.typescript,"nodeWithValue");let{node:e,...r}=i;return i.typescript.isPropertyName(e)||i.typescript.isPrivateIdentifier(e)?efr({node:e,...r}):i.throwError(new GN({node:e,environment:i.environment,typescript:i.typescript}))}function nfr(i){let e=0,{policy:r,reporting:o}=i,u=(v,S)=>{let{environment:k=i.environment,statementTraversalStack:L=i.statementTraversalStack,getCurrentError:z=i.getCurrentError,throwError:te=i.throwError}=S??{},_e=z();if(_e!=null)return _e;if(e++,e>=r.maxOps)return te(new a9t({ops:e,environment:k,node:v}));L.push(v.kind),o.reportTraversal!=null&&o.reportTraversal({node:v})},d={statement:(v,S)=>{let k={...S,statementTraversalStack:B9t()},L=u(v,k);if(!ine(L))return Nur(h(v,k))},declaration:(v,S)=>{let k=u(v,S);if(!ine(k))return Fur(h(v,S))},nodeWithArgument:(v,S,k)=>{let L=u(v,k);if(!ine(L))return Zur(h(v,k),S)},expression:(v,S)=>{let k=u(v,S);return ine(k)?k:Lur(h(v,S))},nodeWithValue:(v,S)=>{let k=u(v,S);return ine(k)?k:tfr(h(v,S))}};function h(v,S){return{...i,...S,evaluate:d,node:v}}return d}function nqe(i,e){return i===e.SyntaxKind.NumericLiteral?"NumericLiteral":e.SyntaxKind[i]}var f9t=class{constructor(e={}){let{logLevel:r=0,color:{info:o="white",verbose:u="yellow",debug:d="magenta"}={}}=typeof e=="object"?e:{logLevel:e};this.options={logLevel:r,color:{info:o,verbose:u,debug:d}}}logInfo(e){this.options.logLevel<1||console.log(this.formatWithColor(this.options.color.info,e))}logVerbose(e){this.options.logLevel<2||console.log(this.formatWithColor(this.options.color.verbose,e))}logDebug(e){this.options.logLevel<3||console.log(this.formatWithColor(this.options.color.debug,e))}logContinue(e,r){this.options.logLevel<3||console.log(`${this.formatWithColor(this.options.color.debug,"continue")} encountered within ${this.formatWithColor(this.options.color.debug,nqe(e.kind,r))}`)}logBreak(e,r){this.options.logLevel<3||console.log(`${this.formatWithColor(this.options.color.debug,"break")} encountered within ${this.formatWithColor(this.options.color.debug,nqe(e.kind,r))}`)}logReturn(e,r){this.options.logLevel<3||console.log(`${this.formatWithColor(this.options.color.debug,"return")} encountered within ${this.formatWithColor(this.options.color.debug,nqe(e.kind,r))}`)}logResult(e,r){this.options.logLevel<1||(r!=null?console.log(this.formatWithColor(this.options.color.info,`(intermediate value from context '${r}'):`),this.formatWithColor(this.options.color.info,"[RESULT]:"),this.compactValue(e)):console.log(this.formatWithColor(this.options.color.info,"[RESULT]:"),e))}logNode(e,r,o){if(this.options.logLevel<3)return;let u=`[${nqe(e.kind,r)}]`.padEnd(25);o!=null&&(u+=this.formatWithColor(this.options.color.debug,`(${o})`));let d=e.getText(),h=this.formatWithColor(this.options.color.debug,u),v=this.formatWithColor(this.options.color.debug,d);console.log(h),console.log(v)}logBinding(e,r,o){this.options.logLevel<2||console.log(`${o==null?"":this.formatWithColor(this.options.color.verbose,`(${o}): `)}${this.formatWithColor(this.options.color.verbose,`${e} ->`)}`,this.formatWithColor(this.options.color.verbose,this.compactValue(r)))}logHeritage(e){if(this.options.logLevel<3)return;let r=Object.getPrototypeOf(e);r.toString().includes("[Class")&&console.log(`${this.formatWithColor(this.options.color.debug,e.toString())} ${this.formatWithColor(this.options.color.debug,"extends")} ${this.formatWithColor(this.options.color.debug,r.toString())}`)}logStack(e){this.options.logLevel<3||console.log(this.formatWithColor(this.options.color.debug,`Stack value: ${m9t(this.compactValue(e.lastItem))}`))}logStatementTraversalStack(e,r){this.options.logLevel<3||console.log(this.formatWithColor(this.options.color.debug,`[${e.map(o=>nqe(o,r)).join(", ")}]`))}compactValue(e){return(0,xEn.inspect)(e,{depth:0,colors:!0,compact:!0,maxArrayLength:5})}formatWithColor(e,r){return EEn.default[e](r)}};function rfr(i,e){var r;return e.isExpressionNode(i)||e.isIdentifier(i)||((r=e.isPrivateIdentifier)===null||r===void 0?void 0:r.call(e,i))}function ifr(i,e){return e.isStatementButNotDeclaration(i)}function sfr(){let i=[];return{[Symbol.iterator](){return i[Symbol.iterator]()},get length(){return i.length},get lastItem(){return i[i.length-1]},push(...e){return i.push(...e)},pop(){return i.pop()}}}function afr(i,e,r){i.reportErrors!=null&&!i.reportedErrorSet.has(e)&&(i.reportedErrorSet.add(e),i.reportErrors({error:e,node:e instanceof i7?e.node:r}))}function ofr(){return new WeakSet}function zEn({typeChecker:i,node:e,environment:{preset:r="NODE",extra:o={}}={},moduleOverrides:u={},typescript:d=icr,logLevel:h=0,policy:{deterministic:v=!1,network:S=!1,console:k=!1,maxOps:L=1/0,maxOpDuration:z=1/0,io:te={read:!0,write:!1},process:_e={exit:!1,spawnChild:!1}}={},reporting:Ae={}}){let Ie=Acr(e,d);if(Ie.success)return Ie;let Xe={deterministic:v,maxOps:L,maxOpDuration:z,network:S,console:k,io:{read:typeof te=="boolean"?te:te.read,write:typeof te=="boolean"?te:te.write},process:{exit:typeof _e=="boolean"?_e:_e.exit,spawnChild:typeof _e=="boolean"?_e:_e.spawnChild}},Ve={...Ae,reportedErrorSet:ofr()},ze,Pt=new f9t(h),Zt=br=>(afr(Ve,br,br.node),ze=br,ze),mn=Dcr({inputEnvironment:{preset:r,extra:o},startingNode:e,policy:Xe}),zn=sfr(),wn=B9t(),Cn={policy:Xe,typeChecker:i,typescript:d,logger:Pt,stack:zn,moduleOverrides:u,reporting:Ve,throwError:Zt,environment:mn,statementTraversalStack:wn,getCurrentError:()=>ze},Qn=nfr(Cn);try{let br;return rfr(e,d)?br=Qn.expression(e,Cn):ifr(e,d)?(Qn.statement(e,Cn),br=zn.pop()):DEn(e,d)?(Qn.declaration(e,Cn),br=zn.pop()):Zt(new GN({node:e,environment:mn,typescript:d})),ze!=null?{success:!1,reason:ze}:(Pt.logResult(br),{success:!0,value:br})}catch(br){return Zt(br),{success:!1,reason:br}}}var ZEn=Nm(R9(),1);var s7=Nm(R9(),1);var lqe=Nm(R9(),1);var qCe=Nm(R9(),1);var kX=Nm(R9(),1);var v9t=Nm(R9(),1);var b9t=Nm(R9(),1);var lfr=i=>{if(Array.isArray(i))return"array";if(typeof i=="string")return"string";if(typeof i=="number")return"number";if(typeof i=="boolean")return"boolean";if(i===null)return"null";if(i===void 0)return"undefined";throw new Error(`Unexpected literal type: ${i}`)},qI=i=>i!=null,YEn=i=>i==null,QEn=i=>i!=null&&typeof i=="object",cfr=i=>Array.isArray(i),ufr=i=>{let e=typeof i;return e==="string"||e==="number"||e==="boolean"||i===null||i===void 0},dx=i=>oqe.Node.isAsExpression(i)||oqe.Node.isParenthesizedExpression(i)||oqe.Node.isNonNullExpression(i)||oqe.Node.isTypeAssertion(i)?dx(i.getExpression()):i,ffr=i=>i.getTagNameNode().getText(),pfr=/\s+/g,$En=i=>i.replaceAll(pfr," "),dfr=i=>{let e=i.getSourceFile(),[r,o]=[i.getStart(),i.getEnd()],u=e.getLineAndColumnAtPos(r),d=e.getLineAndColumnAtPos(o);return{startPosition:r,startLineNumber:u.line,startColumn:u.column,endPosition:o,endLineNumber:d.line,endColumn:d.column}},iue=class{type;stack=[];node;constructor(i){this.type=i.type,this.node=i.node,this.stack=[...i.stack??[]]}getNode(){return this.node}getStack(){return this.stack}getRange=()=>dfr(this.node);toJSON(){let i=this.getRange();return{type:this.type,value:this.value,node:this.node.getKindName(),line:i.startLineNumber,column:i.startColumn}}toString(){return JSON.stringify(this.toJSON(),null,2)}},JEn=class extends iue{value;isEmpty;constructor(i){super(i),this.value=i.value,this.isEmpty=i.isEmpty}},_fr=class extends iue{value;kind;constructor(i){super(i),this.value=i.value,this.kind=i.kind}},mfr=class extends iue{value;spreadConditions;constructor(i){super(i),this.value=i.value}},hfr=class extends iue{value;constructor(i){super(i),this.value=i.value}},Bfr=class extends iue{},gfr=class extends iue{whenTrue;whenFalse;constructor(i){super(i),this.whenTrue=i.whenTrue,this.whenFalse=i.whenFalse}},yfr=class extends iue{},N3e=i=>i instanceof iue;function C9t(i,e,r){return f0(i).when(YEn,()=>{}).when(N3e,o=>o).when(QEn,o=>Ff.object(o,e,r)).when(cfr,o=>o.length===1?C9t(o[0],e,r):o.map(u=>C9t(u,e,r))).when(ufr,o=>Ff.literal(o,e,r)).otherwise(()=>{})}var Ff={object(i,e,r){return new JEn({type:"object",value:i,node:e,stack:r})},literal(i,e,r){return new _fr({type:"literal",value:i,kind:lfr(i),node:e,stack:r})},map(i,e,r){return new mfr({type:"map",value:i,node:e,stack:r})},array(i,e,r){return new hfr({type:"array",value:i,node:e,stack:r})},conditional(i,e,r,o){return new gfr({type:"conditional",whenTrue:i,whenFalse:e,node:r,stack:o})},from:C9t,emptyObject:(i,e)=>new JEn({type:"object",value:{},isEmpty:!0,node:i,stack:e}),emptyInitializer:(i,e)=>new yfr({type:"empty-initializer",node:i,stack:e}),unresolvable:(i,e)=>new Bfr({type:"unresolvable",node:i,stack:e}),isObject(i){return i?.type==="object"},isLiteral(i){return i?.type==="literal"},isMap(i){return i?.type==="map"},isArray(i){return i?.type==="array"},isUnresolvable(i){return i?.type==="unresolvable"},isConditional(i){return i?.type==="conditional"},isEmptyInitializer(i){return i?.type==="empty-initializer"},isNumberLiteral(i){return Ff.isLiteral(i)&&i.kind==="number"},hasValue:i=>Ff.isObject(i)||Ff.isLiteral(i)||Ff.isMap(i)||Ff.isArray(i)},eTn=Symbol("EvalError"),g9t=new WeakMap,Cfr=(i,e,r)=>{if(r.flags?.skipEvaluate||r.canEval&&!r.canEval?.(i,e))return;if(g9t.has(i))return g9t.get(i);let o=zEn({node:i.compilerNode,typescript:ZEn.ts,policy:{deterministic:!0,network:!1,console:!1,maxOps:Number.POSITIVE_INFINITY,maxOpDuration:1e3,io:{read:!0,write:!1},process:{exit:!1,spawnChild:!1}},...r.getEvaluateOptions?.(i,e)}),u=o.success?o.value:eTn;return g9t.set(i,u),u},y9t=(i,e,r)=>{let o=Cfr(i,e,r);if(o!==eTn)return o},aCt=O$t("findIdentifierValueDeclaration");function vfr(i){return s7.Node.isFunctionDeclaration(i)||s7.Node.isFunctionExpression(i)||s7.Node.isArrowFunction(i)||s7.Node.isSourceFile(i)}function bfr(i,e,r){let o=i.getParent();if(!o)return;let u=[],d;if((s7.Node.isVariableDeclaration(o)||s7.Node.isParameterDeclaration(o)||s7.Node.isFunctionDeclaration(o)||s7.Node.isBindingElement(o))&&o.getNameNode()==i)Hd.debug(aCt("getDeclarationFor"),{isDeclarationLike:!0,kind:o.getKindName()}),u.push(o),d=o;else if(s7.Node.isImportSpecifier(o)&&o.getNameNode()==i){if(r.flags?.skipTraverseFiles)return;let h=aTn(o.getImportDeclaration());if(Hd.debug(aCt("getDeclarationFor"),{isImportDeclaration:!0,sourceFile:!!h}),h){let v=[o,h],S=sTn(i.getText(),h,v,r);Hd.debug(aCt("getDeclarationFor"),{from:h.getFilePath(),hasVar:!!S}),S&&(u.push(...v.concat(S)),d=S)}}return Hd.debug(aCt("getDeclarationFor"),{node:i.getKindName(),parent:o.getKindName(),declaration:d?.getKindName()}),d&&e.push(...u),d}var Sfr=i=>{let e=i.getParent();for(;e&&!vfr(e);)e=e.getParent();return Hd.debug("getInnermostScope",{found:e?.getKindName()}),e};function uCt(i,e,r,o=new Map){let u=i,d,h=!1,v=0,S=[];do{if(u=Sfr(u),Hd.debug("find",{identifier:i.getText(),scope:u?.getKindName(),count:v++}),!u)return;let k=i.getText();if(u.forEachDescendant((L,z)=>{if(o.has(L)){z.skip(),S.push(...o.get(L));return}if(L!=i&&(o.set(L,S),s7.Node.isIdentifier(L)&&L.getText()==k)){let te=[L],_e=bfr(L,te,r);if(_e){if(s7.Node.isParameterDeclaration(_e)){let Ae=_e.getInitializer(),Ie=_e.getTypeNode();Ae?(S.push(...te.concat(Ae)),d=_e):Ie&&s7.Node.isTypeLiteral(Ie)?(S.push(...te.concat(Ie)),d=_e):h=!0,z.stop();return}S.push(...te),d=_e,z.stop()}}}),Hd.debug("find",{scope:u.getKindName(),foundNode:d?.getKindName(),isUnresolvable:h}),d||h)return d&&e.push(...S),d}while(u&&!s7.Node.isSourceFile(u)&&!d&&!h&&v<100);Hd.debug("find",{end:!0,count:v,scope:u?.getKindName(),isUnresolvable:h})}var xfr=(i,e,r)=>f0(i).when(qCe.Node.isPropertyAssignment,o=>{let u=dx(o.getNameNode());return f0(u).when(qCe.Node.isIdentifier,d=>Ff.from(d.getText(),d,e)).when(qCe.Node.isComputedPropertyName,d=>{let h=d.getExpression();return e.push(h),wX(h,e,r)}).when(x6.or(qCe.Node.isStringLiteral,qCe.Node.isNumericLiteral),d=>Ff.from(d.getLiteralText(),d,e)).otherwise(()=>{})}).when(qCe.Node.isShorthandPropertyAssignment,o=>{let u=o.getName();if(u!=null)return Ff.from(u,o,e)}).otherwise(()=>{}),Efr=(i,e,r,o)=>{let u=i.getProperties();if(u.length===0)return Ff.emptyObject(i,e);let d=[],h=[];u.forEach(k=>{let L=[...e];if(L.push(k),lqe.Node.isPropertyAssignment(k)||lqe.Node.isShorthandPropertyAssignment(k)){let z=xfr(k,L,r);if(!z)return;let te=z.value;if(YEn(te)||o&&!o?.({propName:te,propNode:k}))return;if(lqe.Node.isShorthandPropertyAssignment(k)){let Xe=k.getNameNode();L.push(Xe);let Ve=TE(Xe,L,r);if(Ve){d.push([te.toString(),Ve]);return}}let _e=k.getInitializer();if(!_e)return;let Ae=dx(_e);L.push(Ae),Hd.debug("prop",{propName:te,kind:Ae.getKindName()});let Ie=TE(Ae,L,r);if(Hd.debug("prop-value",{propName:te,hasValue:!!Ie}),Ie){Hd.debug("prop-value",{propName:te,maybeValue:Ie}),d.push([te.toString(),Ie]);return}}if(lqe.Node.isSpreadAssignment(k)){let z=dx(k.getExpression());L.push(z);let te=TE(z,L,r,o);if(Hd.debug("isSpreadAssignment",{extracted:!!te}),!te)return;if(Ff.isObject(te)){Object.entries(te.value).forEach(([_e,Ae])=>{let Ie=Ff.from(Ae,z,L);Ie&&d.push([_e,Ie])});return}if(Ff.isMap(te)){te.value.forEach((_e,Ae)=>{d.push([Ae,_e])});return}Ff.isConditional(te)&&h.push(te)}});let v=new Map;d.forEach(([k,L])=>{v.has(k)&&v.delete(k),v.set(k,L)});let S=Ff.map(v,i,e);return h.length>0&&(S.spreadConditions=h),S},S9t=new WeakMap,Tfr=i=>S9t.has(i),Dfr=i=>S9t.get(i),Afr=i=>i===Yd.ts.SyntaxKind.PlusToken,kfr=i=>i===Yd.ts.SyntaxKind.BarBarToken||i===Yd.ts.SyntaxKind.QuestionQuestionToken||i===Yd.ts.SyntaxKind.AmpersandAmpersandToken||i===Yd.ts.SyntaxKind.EqualsEqualsEqualsToken||i===Yd.ts.SyntaxKind.EqualsEqualsToken||i===Yd.ts.SyntaxKind.ExclamationEqualsEqualsToken||i===Yd.ts.SyntaxKind.ExclamationEqualsToken||i===Yd.ts.SyntaxKind.GreaterThanEqualsToken||i===Yd.ts.SyntaxKind.GreaterThanToken||i===Yd.ts.SyntaxKind.LessThanEqualsToken||i===Yd.ts.SyntaxKind.LessThanToken||i===Yd.ts.SyntaxKind.InstanceOfKeyword||i===Yd.ts.SyntaxKind.InKeyword,wfr=i=>i===Yd.ts.SyntaxKind.AsteriskToken||i===Yd.ts.SyntaxKind.SlashToken||i===Yd.ts.SyntaxKind.PercentToken||i===Yd.ts.SyntaxKind.AsteriskAsteriskToken||i===Yd.ts.SyntaxKind.MinusToken,Ifr=i=>i===Yd.ts.SyntaxKind.BarBarToken||i===Yd.ts.SyntaxKind.QuestionQuestionToken;function TE(i,e,r,o){let u=d=>(S9t.set(i,d),d);return f0(i).when(Tfr,Dfr).when(x6.or(Yd.Node.isStringLiteral,Yd.Node.isNoSubstitutionTemplateLiteral),d=>{let h=$En(d.getLiteralValue());return u(Ff.literal(h,d,e))}).when(Yd.Node.isObjectLiteralExpression,d=>u(Efr(d,e,r,o))).when(x6.or(Yd.Node.isTrueLiteral,Yd.Node.isFalseLiteral),d=>{let h=d.getLiteralValue();return u(Ff.literal(h,d,e))}).when(Yd.Node.isNumericLiteral,d=>{let h=d.getLiteralValue();return u(Ff.literal(h,d,e))}).when(Yd.Node.isNullLiteral,d=>u(Ff.literal(null,d,e))).when(Yd.Node.isPrefixUnaryExpression,d=>{let h=d.getOperand(),v=d.getOperatorToken(),S=TE(h,e,r);if(Ff.isNumberLiteral(S))return u(v===Yd.ts.SyntaxKind.MinusToken?Ff.literal(-Number(S.value),d,e):S)}).when(Yd.Node.isArrayLiteralExpression,d=>{let h=d.getElements().map(v=>TE(v,e,r)??u(Ff.unresolvable(v,e)));return u(Ff.array(h,d,e))}).when(Yd.Node.isIdentifier,d=>f0(d.getText()).with("undefined",()=>u(Ff.literal(void 0,d,e))).otherwise(()=>u(jfr(d,e,r)))).when(Yd.Node.isTemplateHead,d=>u(Ff.literal(d.getLiteralText(),d,e))).when(Yd.Node.isTemplateExpression,d=>{let h=nTn(d,e,r);return u(Ff.literal(h,d,e))}).when(Yd.Node.isTaggedTemplateExpression,d=>u(TE(d.getTemplate(),e,r))).when(Yd.Node.isElementAccessExpression,d=>u(lCt(d,e,r))).when(Yd.Node.isPropertyAccessExpression,d=>u(cCt(d,[],e,r))).when(Yd.Node.isConditionalExpression,d=>{if(r.flags?.skipConditions)return u(Ff.unresolvable(d,e));let h=dx(d.getCondition()),v=(Yd.Node.isIdentifier(h)?TE(h,[],r):y9t(h,e,r))??Ff.unresolvable(h,e),S=N3e(v)?v:Ff.from(v,d,e);if(Ff.isEmptyInitializer(S))return;if(Ff.isUnresolvable(S)||Ff.isConditional(S)){let te=dx(d.getWhenTrue()),_e=dx(d.getWhenFalse());return u(qEn({whenTrueExpr:te,whenFalseExpr:_e,node:d,stack:e},r))}if(S.value){let te=dx(d.getWhenTrue()),_e=[...e],Ae=TE(te,_e,r);return u(Ae??Ff.unresolvable(te,e))}let k=dx(d.getWhenFalse()),L=[...e],z=TE(k,L,r);return u(z??Ff.unresolvable(d,e))}).when(Yd.Node.isCallExpression,d=>{let h=y9t(d,e,r);if(h)return u(Ff.from(h,d,e))}).when(Yd.Node.isBinaryExpression,d=>{let h=d.getOperatorToken().getKind();return f0(h).when(Afr,()=>{let v=oTn(d,e,r)??y9t(d,e,r);if(v)return u(Ff.from(v,d,e))}).when(kfr,v=>{let S=dx(d.getLeft()),k=dx(d.getRight()),L={whenTrueExpr:S,whenFalseExpr:k,node:d,stack:e,canReturnWhenTrue:Ifr(v)};return u(qEn(L,r))}).when(wfr,()=>u(Ff.literal(d.getText(),d,e))).otherwise(()=>{})}).otherwise(()=>{})}var tTn=i=>{if(i&&N3e(i)&&Ff.isLiteral(i)&&typeof i.value=="string")return i},Pfr=i=>{if(i&&N3e(i)&&Ff.isLiteral(i)&&typeof i.value=="number")return i},Nfr=(i,e,r)=>tTn(TE(i,e,r)),wX=(i,e,r)=>{Hd.debug("prop-name",i.getKindName());let o=TE(i,e,r),u=tTn(o);if(u)return u;let d=Pfr(o);if(d)return d},qEn=({whenTrueExpr:i,whenFalseExpr:e,node:r,stack:o,canReturnWhenTrue:u},d)=>{let h=TE(i,o,d),v=TE(e,o,d);if(Hd.debug("cond",{before:!0,whenTrueValue:h,whenFalseValue:v,canReturnWhenTrue:u}),u&&h&&!Ff.isUnresolvable(h))return Hd.debug("cond",{earlyReturn:!0,whenTrueValue:h}),h;if(Hd.debug("cond",{after:!0,whenTrueValue:h,whenFalseValue:v}),Yd.Node.isBinaryExpression(r)&&r.getOperatorToken().getKind()===Yd.ts.SyntaxKind.AmpersandAmpersandToken&&h&&v&&Ff.isLiteral(h)&&h.value===!0)return v;if(!h&&!v)return;if(h&&!v)return h;if(!h&&v)return v;let S=h,k=v;return Ff.isLiteral(S)&&Ff.isLiteral(k)&&S.value===k.value?S:Ff.conditional(S,k,r,o)},Lfr=(i,e,r,o)=>{let u=[...r];if(Hd.debug("find-prop",{propName:e,kind:i.getKindName()}),Yd.Node.isPropertyAssignment(i)){let d=i.getNameNode();if(Yd.Node.isIdentifier(d)&&d.getText()===e)return u.push(d),i;if(Yd.Node.isStringLiteral(d)&&d.getLiteralText()===e)return u.push(d),d.getLiteralText();if(Yd.Node.isComputedPropertyName(d)){let h=dx(d.getExpression()),v=wX(h,u,o);if(!v)return;if(String(v.value)===e)return u.push(d,h),i}}if(Yd.Node.isShorthandPropertyAssignment(i)){let d=i.getNameNode();if(Yd.Node.isIdentifier(d)&&d.getText()===e)return u.push(d),i}},x9t=(i,e,r,o)=>{let u=[...r],d=e.pop(),h=i.getProperty(d)??i.getProperties().find(v=>Lfr(v,d,u,o));if(Hd.debug("get-prop",{propName:d,accessList:e,propertyKind:h?.getKindName(),initializerKind:i.getKindName()}),!!h){if(u.push(h),Yd.Node.isPropertyAssignment(h)){let v=h.getInitializer();if(!v)return;if(Hd.debug("get-prop",{propAssignment:!0,propInitKind:v.getKindName()}),Yd.Node.isObjectLiteralExpression(v))return e.length>0?x9t(v,e,u,o):TE(v,u,o);let S=TE(v,u,o);if(S)return S}if(Yd.Node.isShorthandPropertyAssignment(h)){let v=h.getNameNode();if(Hd.debug("get-prop",{shorthand:!0,accessList:e,propInit:v.getText()}),e.length>0)return AX(v,e,u,o);let S=TE(v,u,o);if(S)return S}}},nTn=(i,e,r)=>{let o=i.getHead(),u=i.getTemplateSpans(),d=Nfr(o,e,r);if(!d)return;let h=u.map(v=>{let S=v.getExpression(),k=wX(S,e,r);if(!k)return;let L=v.getLiteral();return k.value+L.getLiteralText()});if(h.every(qI))return d.value+h.join("")},rTn=(i,e,r,o)=>{let u=i.getParent();if(Hd.debug("id-def",{parent:u?.getKindName()}),!u)return;let d=u.getParent();if(Hd.debug("id-def",{grandParent:d?.getKindName()}),!!d){if(Yd.Node.isArrayBindingPattern(u)){let h=u.getChildIndex();if(Number.isNaN(h))return;if(Yd.Node.isVariableDeclaration(d)){let v=d.getInitializer();if(Hd.debug("id-def",{grandParentInit:v?.getKindName()}),!v)return;let S=dx(v);if(!Yd.Node.isArrayLiteralExpression(S))return;let k=S.getElements()[h+1];if(Hd.debug("id-def",{index:h,propName:r,elementKind:k?.getKindName()}),!k)return;let L=[...e,S,k],z=TE(k,L,o);if(!z)return;if(Ff.isObject(z)){let _e=z.value[r];return Hd.debug("id-def",{propName:r,propValue:_e}),Ff.from(_e,k,L)}if(!Ff.isMap(z))return z;let te=z.value.get(r);return te?(Hd.debug("id-def",{propName:r,propValue:te}),te):void 0}}Yd.Node.isObjectBindingPattern(u)}};function Ffr(i,e,r,o){let u=e.at(-1);if(Hd.debug("maybe-prop-def-value",{propName:u,accessList:e,kind:i.getKindName()}),Yd.Node.isVariableDeclaration(i)){let d=i.getInitializer();if(Hd.debug("maybe-prop-def-value",{kind:d?.getKindName(),propName:u}),!d){let k=i.getTypeNode();if(!k)return;if(Yd.Node.isTypeLiteral(k)){if(Hd.debug("maybe-prop-def-value",{typeLiteral:!0}),e.length>0){let z=[...r];z.push(k);let te=e.pop(),_e=k.getProperty(te),Ae=_e?.getTypeNode();for(;_e&&e.length>0&&Ae&&Yd.Node.isTypeLiteral(Ae);)z.push(_e,Ae),te=e.pop(),_e=Ae.getProperty(te),Ae=_e?.getTypeNode();if(!Ae)return;let Ie=E9t(Ae,z,o);return Hd.debug("maybe-prop-def-value",{propName:te,typeValue:!!Ie}),Ff.from(Ie,Ae,z)}let L=iTn(k,u,r,o);return r.push(k),Ff.from(L,k,r)}return}let h=dx(d);if(Hd.debug("maybe-prop-def-value",{kind:h.getKindName(),propName:u}),Yd.Node.isObjectLiteralExpression(h)){let k=x9t(h,e,r,o);return k?(r.push(h),k):void 0}if(Yd.Node.isArrayLiteralExpression(h)){let k=Number(u);if(Number.isNaN(k))return;let L=h.getElements()[k];if(!L)return;r.push(h);let z=TE(L,r,o);if(z&&N3e(z)&&Ff.isLiteral(z))return z}let v=[...r,h],S=TE(h,v,o);if(S)return S}if(Yd.Node.isBindingElement(i)){let d=rTn(i,r,u,o);if(d)return d}}var AX=(i,e,r,o)=>{let u=uCt(i,r,o);if(Hd.debug("maybePropIdentifierValue",{identifier:i.getText(),hasValueDeclaration:!!u}),!u)return Ff.unresolvable(i,r);let d=dx(u);Hd.debug("maybePropIdentifierValue",{def:d.getKindName(),accessList:e});let h=Ffr(u,e,r,o);return h||Ff.unresolvable(i,r)},JCe=new WeakMap,iTn=(i,e,r,o)=>{if(JCe.has(i)){let h=JCe.get(i);if(Hd.debug("cached",{typeLiteralNodeProp:!0,kind:i.getKindName()}),h===null)return;if(h?.has(e))return h.get(e)}let d=i.getMembers().find(h=>Yd.Node.isPropertySignature(h)&&h.getName()===e);if(Yd.Node.isPropertySignature(d)&&d.isReadonly()){let h=d.getTypeNode();if(!h){JCe.set(i,null);return}let v=E9t(h,r,o);if(Hd.debug("type",{propName:e,hasPropValue:qI(v)}),qI(v))return JCe.has(i)||JCe.set(i,new Map),JCe.get(i).set(e,v),v}JCe.set(i,null)};function Ofr(i){return Hd.debug("literal",{name:i.getText(),kind:i.getKindName()}),Yd.Node.isStringLiteral(i)?i.getLiteralText():i.getText()}var aqe=new WeakMap,E9t=(i,e,r)=>{if(aqe.has(i))return Hd.debug("cached",{typeNode:!0,kind:i.getKindName()}),aqe.get(i);if(Yd.Node.isLiteralTypeNode(i)){let o=i.getLiteral();if(Yd.Node.isStringLiteral(o)){let u=o.getLiteralText();return Hd.debug("type-value",{result:u}),aqe.set(i,u),u}}if(Yd.Node.isTypeLiteral(i)){let o=i.getMembers();if(!o.some(u=>!Yd.Node.isPropertySignature(u)||!u.isReadonly())){let d=o.map(v=>{let S=v.getNameNode(),k=S.getText(),L=Ofr(S);if(Hd.debug("isTypeLiteral",{nameNodeKind:S.getKindName(),name:L}),!L)return;let z=iTn(i,k,e,r);return[L,z]}).filter(qI),h=Object.fromEntries(d);return aqe.set(i,h),h}}aqe.set(i,void 0)},Rfr=(i,e,r)=>{if(Hd.debug("maybe-def-value",{kind:i.getKindName()}),Yd.Node.isShorthandPropertyAssignment(i)){let o=i.getNameNode();return AX(o,[o.getText()],e,r)}if(Yd.Node.isVariableDeclaration(i)){let o=i.getInitializer();if(Hd.debug("maybe-def-value",{varDeclaration:!0,kind:o?.getKindName()}),!o){let v=i.getTypeNode();if(!v)return;if(Hd.debug("maybe-def-value",{noInit:!0,kind:v.getKindName()}),Yd.Node.isTypeLiteral(v)){e.push(v);let S=E9t(v,e,r);if(qI(S))return Ff.from(S,i,e)}return Ff.unresolvable(i,e)}let u=dx(o),d=[...e,u],h=TE(u,d,r);if(h)return h}if(Yd.Node.isBindingElement(i)&&!i.getInitializer()){let u=i.getPropertyNameNode()??i.getNameNode(),d=u.getText(),h=[...e,u];Hd.debug("maybe-def-value",{bindingElement:!0,propName:d});let v=rTn(i,h,d,r);return v||Ff.unresolvable(i,e)}},sTn=(i,e,r,o)=>{let u=e.getVariableDeclaration(i);if(Hd.debug("getExportedVarDeclarationWithName",{varName:i,path:e.getFilePath(),hasVar:!!u}),u)return u;let d=Gfr(i,e,r,o);if(Hd.debug("getExportedVarDeclarationWithName",{exportDeclaration:!!d}),!!d)return d},Mfr=(i,e)=>{let r=e.getNamedExports();if(r.length===0)return!0;for(let o of r){let u=o.getNameNode().getText();if(Hd.debug("export-declaration",{searching:i,exportedName:u}),u===i)return!0}},aTn=i=>{let e=i.getProject(),r=i.getModuleSpecifierValue();if(Hd.debug("getModuleSpecifierSourceFile",{moduleName:r}),!r)return;let o=i.getSourceFile().getFilePath(),u=Yd.ts.resolveModuleName(r,o,e.getCompilerOptions(),e.getModuleResolutionHost());if(Hd.debug("getModuleSpecifierSourceFile",u),!u.resolvedModule)return;let d=e.addSourceFileAtPath(u.resolvedModule.resolvedFileName);return Hd.debug("getModuleSpecifierSourceFile",{found:!!d}),d};function Gfr(i,e,r,o){for(let u of e.getExportDeclarations()){let d=[u];if(Hd.debug("resolveVarDeclarationFromExportWithName",{symbolName:i,exporDeclarationKind:u.getKindName()}),!Mfr(i,u))continue;let h=aTn(u);if(!h)continue;d.push(h);let v=sTn(i,h,r,o);if(v)return r.push(...d.concat(v)),v}}var jfr=(i,e,r)=>{let o=uCt(i,e,r);if(Hd.debug("id-ref",{identifier:i.getText(),hasValueDeclaration:!!o}),!o)return Ff.unresolvable(i,e);let u=dx(o);Hd.debug("id-ref",{def:u.getKindName()});let d=[...e],h=Rfr(u,d,r);return h||Ff.unresolvable(i,d)},oTn=(i,e,r)=>{let o=dx(i.getLeft()),u=dx(i.getRight()),d=wX(o,e,r),h=wX(u,e,r);if(!(!d||!h)&&(Hd.debug("tryComputingPlusTokenBinaryExpressionToString",{leftValue:d,rightValue:h}),qI(d.value)&&qI(h.value)))return Ff.literal(String(d.value)+String(h.value),i,e)},lCt=(i,e,r)=>{let o=dx(i.getExpression()),u=i.getArgumentExpression();if(!u)return;let d=dx(u),h=[...e,o,d],v=wX(d,h,r);if(Yd.Node.isIdentifier(o)&&v)return qI(v.value)?AX(o,[v.value.toString()],h,r):void 0;if(Yd.Node.isBinaryExpression(d)){if(d.getOperatorToken().getKind()!==Yd.ts.SyntaxKind.PlusToken)return;let S=oTn(d,h,r)??wX(d,h,r);if(S&&Yd.Node.isIdentifier(o))return qI(S.value)?AX(o,[S.value.toString()],h,r):void 0}if(Yd.Node.isTemplateExpression(d)){let S=nTn(d,h,r);if(S&&Yd.Node.isIdentifier(o))return AX(o,[S],h,r)}if(Yd.Node.isObjectLiteralExpression(o)&&v)return qI(v.value)?x9t(o,[v.value.toString()],h,r):void 0;if(Yd.Node.isPropertyAccessExpression(d))return cCt(d,[],h,r);if(Yd.Node.isPropertyAccessExpression(o)&&v&&qI(v.value)){let S=cCt(o,[],h,r);if(!S)return Ff.unresolvable(o,h);let k=v.value.toString();if(Hd.debug("PropertyAccessExpression",{propRefValue:S,propName:k}),Ff.isObject(S)){let L=S.value[k];return Ff.from(L,d,h)}if(Ff.isMap(S)){let L=S.value.get(k);return Ff.from(L,d,h)}if(Ff.isArray(S)){let L=S.value[Number(k)];return Ff.from(L,d,h)}return Ff.unresolvable(o,h)}if(Yd.Node.isIdentifier(o)&&Yd.Node.isElementAccessExpression(d)){let S=lCt(d,h,r);if(Hd.debug("element:access",{isArgElementAccessExpression:!0,propName:S}),typeof S=="string"&&qI(S))return AX(o,[S],h,r)}if(Yd.Node.isElementAccessExpression(o)&&v&&qI(v.value)){let S=lCt(o,h,r);if(Hd.debug("element:access",{isElementAccessExpression:!0,identifier:S,argValue:v}),QEn(S)){let k=v.value.toString();if(Ff.isMap(S)){let L=S.value.get(k);return Hd.debug("isMap",{isElementAccessExpression:!0,maybeValue:L}),L}if(Ff.isObject(S)){let L=S.value[k];return Hd.debug("isObject",{isElementAccessExpression:!0,maybeLiteralValue:L}),L?Ff.from(L,i,h):void 0}}}if(Yd.Node.isArrayLiteralExpression(o)&&v)return Ufr(o,Number(v.value),h,r);if(Yd.Node.isConditionalExpression(d)){if(r.flags?.skipConditions)return Ff.unresolvable(d,h);let S=wX(d,h,r);if(Hd.debug("isConditional",{isConditionalExpression:!0,propName:S}),qI(S)&&qI(S.value)&&Yd.Node.isIdentifier(o))return AX(o,[S.value.toString()],h,r);let k=dx(d.getWhenTrue()),L=dx(d.getWhenFalse()),z=wX(k,h,r),te=wX(L,h,r);if(Yd.Node.isIdentifier(o)){let _e=z&&qI(z.value)?AX(o,[z.value.toString()],h,r):void 0,Ae=te&&qI(te.value)?AX(o,[te.value.toString()],h,r):void 0;return!_e&&!Ae?void 0:_e&&!Ae?_e:!_e&&Ae?Ae:Ff.conditional(_e,Ae,d,h)}}},Ufr=(i,e,r,o)=>{let u=i.getElements()[e];if(!u)return;let d=TE(u,r,o);if(Hd.debug("array:element",{arrayKind:i.getKindName(),elementKind:u.getKindName(),value:d}),qI(d))return d},cCt=(i,e,r,o)=>{let u=i.getName(),d=dx(i.getExpression()),h=e.concat(u);if(Hd.debug("prop-access-value",{propName:u,accessList:h,elementAccessedKind:d.getKindName()}),r.push(d),Yd.Node.isIdentifier(d))return AX(d,h,r,o);if(Yd.Node.isPropertyAccessExpression(d)){let v=cCt(d,h,r,o);return Hd.debug("prop-access-value",{propName:u,propValue:v}),v}if(Yd.Node.isElementAccessExpression(d)){let v=lCt(d,r,o);if(!v)return;if(Hd.debug("prop-access-value",{propName:u,leftElementAccessed:v}),Ff.isObject(v)){let S=v.value[u];return Ff.from(S,i,r)}if(Ff.isMap(v)){let S=v.value.get(u);return Ff.from(S,i,r)}}},KEn=()=>!0,fCt=(i,e,r=KEn,o=KEn)=>{let u=i.getArguments(),d=i.getExpression().getText();return u.length===0?Ff.array([],i,[]):Ff.array(u.map((h,v)=>{let S=dx(h),k=[i,S];return f0(S).when(L=>o({fnNode:i,fnName:d,argNode:L,index:v}),L=>TE(L,k,e,r)??Ff.unresolvable(L,k)).otherwise(()=>Ff.unresolvable(S,k))}),i,[])},pCt=(i,e)=>{let r=i.getInitializer(),o=[i,r];return f0(r).with(EE.nullish,()=>{let u=i.getNameNode();return Ff.emptyInitializer(u,o)}).when(v9t.Node.isStringLiteral,u=>{let d=u.getLiteralText();return Ff.literal($En(d),u,o)}).when(v9t.Node.isJsxExpression,u=>{let d=u.getExpression();if(!d)return;let h=dx(d);if(!h)return;o.push(h);let v=TE(h,o,e);if(v)return v}).otherwise(()=>{})},lTn=(i,e,r)=>{let o=dx(i.getExpression());return TE(o,[],e,r)},XEn=(i,e)=>i?N3e(i)?Ff.isUnresolvable(i)||Ff.isConditional(i)?new Map:Ff.isMap(i)?i.value:new Map(Object.entries(i.value).map(([r,o])=>{let u=Ff.from(o,i.getNode()??e,i.getStack()??[]);return[r,u||null]}).filter(([,r])=>r!==null)):new Map(Object.entries(i)):new Map,Wfr=x6.or(kX.Node.isImportDeclaration,kX.Node.isExportDeclaration),cTn=({ast:i,...e})=>{let{components:r,functions:o,taggedTemplates:u}=e,d=new Map,h=new Map,v,S,k,L,z;return i.forEachDescendant((te,_e)=>{if(Wfr(te)){_e.skip();return}if(r){if(kX.Node.isJsxOpeningElement(te)||kX.Node.isJsxSelfClosingElement(te)){if(v=te,S=ffr(v),k=S.includes("."),!r.matchTag({tagNode:v,tagName:S,isFactory:k})){v=void 0;return}d.has(S)||d.set(S,{kind:"component",nodesByProp:new Map,queryList:[]}),L=d.get(S).nodesByProp,h.has(v)||h.set(v,{name:S,props:new Map,conditionals:[]}),z=h.get(v)}if(kX.Node.isJsxSpreadAttribute(te)){if(!v||!z)return;let Ae=({propName:ze,propNode:Pt})=>r.matchProp({tagNode:v,tagName:S,propName:ze,propNode:Pt}),Ie=lTn(te,e,cX(Ae));if(!Ie)return;let Xe=ze=>{let Pt=XEn(ze,te),Zt=Ff.isMap(ze),mn=Ff.map(Pt,te,[v]);Zt&&ze.spreadConditions?.length&&(mn.spreadConditions=ze.spreadConditions),Pt.forEach((zn,wn)=>{(Zt||Ae({propName:wn,propNode:te}))&&(z.props.set(wn,zn),L.set(wn,(L.get(wn)??[]).concat(zn)))})};(ze=>f0(ze).when(Ff.isConditional,Pt=>{z.conditionals.push(Pt)}).when(x6.or(Ff.isObject,Ff.isMap),Pt=>Xe(Pt)).otherwise(D_t))(Ie);return}if(kX.Node.isJsxAttribute(te)){if(!v||!z)return;let Ae=te.getNameNode().getText();if(!r.matchProp({tagNode:v,tagName:S,propName:Ae,propNode:te}))return;CA(pCt(te,e),rJe.fromNullable,rJe.tap(Ie=>{z.props.set(Ae,Ie),L.set(Ae,(L.get(Ae)??[]).concat(Ie))}))}}if(o&&kX.Node.isCallExpression(te)){let Ae=te.getExpression().getText();if(!o.matchFn({fnNode:te,fnName:Ae}))return;let Ie=({propName:mn,propNode:zn})=>o.matchProp({fnNode:te,fnName:Ae,propName:mn,propNode:zn});d.has(Ae)||d.set(Ae,{kind:"function",nodesByProp:new Map,queryList:[]});let Xe=d.get(Ae),Ve=Xe.nodesByProp,ze=fCt(te,e,Ie,o.matchArg),Pt=CA(ze.value,w9.map(mn=>f0(mn).when(x6.or(Ff.isObject,Ff.isMap),zn=>{let wn=XEn(zn,te),Cn=Ff.isMap(zn);wn.forEach((br,cn)=>{(Cn||Ie({propName:cn,propNode:te}))&&Ve.set(cn,(Ve.get(cn)??[]).concat(br))});let Qn=Ff.map(wn,te,zn.getStack());return Ff.isMap(zn)&&zn.spreadConditions?.length&&(Qn.spreadConditions=zn.spreadConditions),Qn}).otherwise(zn=>zn))),Zt={kind:"call-expression",name:Ae,box:Ff.array(Pt,te,[])};Xe.queryList.push(Zt)}if(u&&kX.Node.isTaggedTemplateExpression(te)){let Ae=te.getTag(),Ie=kX.Node.isCallExpression(Ae)?Ae.getExpression().getText():Ae.getText();if(!u.matchTaggedTemplate({taggedTemplateNode:te,fnName:Ie}))return;d.has(Ie)||d.set(Ie,{kind:"function",nodesByProp:new Map,queryList:[]});let Xe=d.get(Ie),Ve={kind:"tagged-template",name:Ie,box:TE(te,[],e)};Xe.queryList.push(Ve)}}),h.forEach((te,_e)=>{let Ae=h.get(_e);if(!Ae)return;let Ie=cX({name:te.name,box:Ff.map(Ae.props,_e,[])});Ae.conditionals?.length&&(Ie.box.spreadConditions=Ae.conditionals);let Xe=te.name;d.get(Xe).queryList.push(Ie)}),d},Vfr=x6.or(Ff.isObject,Ff.isMap),uTn=(i,e)=>{let r=i.getTagNameNode().getText(),o=i.getAttributes(),u=new Map;return o.forEach(d=>{if(b9t.Node.isJsxAttribute(d)){let h=d.getNameNode(),v=pCt(d,e);if(!v)return;u.set(h.getText(),v);return}if(b9t.Node.isJsxSpreadAttribute(d)){let h=lTn(d,e,()=>!0);if(!Vfr(h))return;Ff.isMap(h)&&h.value.forEach((v,S)=>{u.set(S,v)}),Ff.isObject(h)&&Object.entries(h.value).forEach(([v,S])=>{u.set(v,Ff.literal(S,i,[]))})}}),{name:r,props:u}},oCt=(i,e)=>{if(!i.length)return e;let r={};return i.reduce((o,u,d)=>{let h=d===i.length-1;return o[u]=h?e:{},h?r:o[u]},r),r},rue=(i,e)=>f0(i).with(EE.nullish,()=>{}).when(Ff.isConditional,r=>{let o=e.path,u=rue(r.whenTrue,Object.assign({},e,{path:o,parent:r})),d=rue(r.whenFalse,Object.assign({},e,{path:o,parent:r}));u&&e.conditions.push(oCt(o,u)),d&&e.conditions.push(oCt(o,d))}).when(x6.or(Ff.isLiteral,Ff.isObject),r=>r.value).when(Ff.isEmptyInitializer,()=>!0).when(Ff.isMap,r=>{if(r.spreadConditions){let o=e.path;r.spreadConditions.forEach(u=>{let d=rue(u.whenTrue,Object.assign({},e,{path:o,parent:r})),h=rue(u.whenFalse,Object.assign({},e,{path:o,parent:r}));d&&e.spreadConditions.push(oCt(o,d)),h&&e.spreadConditions.push(oCt(o,h))})}return CA(w9.from(r.value.entries()),w9.map(([o,u])=>[o,rue(u,Object.assign({},e,{path:e.path.concat(o),parent:r}))]),w9.filter(([,o])=>qI(o)),Object.fromEntries)}).when(Ff.isArray,r=>{let o=0;return CA(r.value,w9.map(u=>rue(u,Object.assign({},e,{path:e.path.concat(String(o++)),parent:r}))),w9.filter(qI),u=>u.flat())}).otherwise(()=>{}),Hfr=new WeakMap,zfr=i=>({value:i,has:e=>i.has(e),get:e=>i.get(e),set:(e,r)=>i.set(e,r)}),IX=(i,e)=>{let r={cache:e?.cache??Hfr,...e,path:[],parent:void 0,conditions:[],spreadConditions:[]},o=zfr(r.cache);return{raw:f0(i).with(EE.nullish,()=>{}).when(o.has,o.get).when(Array.isArray,d=>{let h=CA(d,w9.map(v=>rue(v,r)),w9.filter(qI),w9.head);return o.set(d,h),h}).otherwise(d=>{let h=rue(d,r);return o.set(d,h),h})??{},conditions:r.conditions,spreadConditions:r.spreadConditions}};oe();oe();oe();oe();function cqe(i){return Object.prototype.toString.call(i).slice(8,-1)}function Jfr(i){return cqe(i)==="Undefined"}function qfr(i){return cqe(i)==="Null"}function uqe(i){if(cqe(i)!=="Object")return!1;let e=Object.getPrototypeOf(i);return e.constructor===Object&&e===Object.prototype}function T9t(i){return cqe(i)==="Array"}function D9t(i){return cqe(i)==="Symbol"}var NBi=Kfr(qfr,Jfr);function Kfr(i,e,r,o,u){return d=>i(d)||e(d)||!!r&&r(d)||!!o&&o(d)||!!u&&u(d)}function Xfr(i,e){return T9t(i)&&T9t(e)?i.concat(e):e}function fTn(i,e,r,o){let u={}.propertyIsEnumerable.call(o,e)?"enumerable":"nonenumerable";u==="enumerable"&&(i[e]=r),u==="nonenumerable"&&Object.defineProperty(i,e,{value:r,enumerable:!1,writable:!0,configurable:!0})}function pTn(i,e,r){if(!uqe(e))return e;let o={};if(uqe(i)){let v=Object.getOwnPropertyNames(i),S=Object.getOwnPropertySymbols(i);o=[...v,...S].reduce((k,L)=>{let z=i[L];return(!D9t(L)&&!Object.getOwnPropertyNames(e).includes(L)||D9t(L)&&!Object.getOwnPropertySymbols(e).includes(L))&&fTn(k,L,z,i),k},{})}let u=Object.getOwnPropertyNames(e),d=Object.getOwnPropertySymbols(e);return[...u,...d].reduce((v,S)=>{let k=e[S],L=uqe(i)?i[S]:void 0;L!==void 0&&uqe(k)&&(k=pTn(L,k,r));let z=r?r(L,k,S):k;return fTn(v,S,z,e),v},o)}function dTn(i,...e){return e.reduce((r,o)=>pTn(r,o,Xfr),i)}var _Tn=i=>Object.prototype.toString.call(i)==="[object Object]";function A9t(i,...e){let r=e.pop();for(let o of e)for(let u in o){let d=r(i[u],o[u]);d===void 0?_Tn(i[u])&&_Tn(o[u])?i[u]=A9t({},i[u],o[u],r):i[u]=o[u]:i[u]=d}return i}function mTn(i,...e){for(let r of e)for(let o in r)i?.hasOwnProperty?.(o)||(i[o]=r[o]);return i}function Yfr(i){return i.reduce((e,{extend:r})=>r?A9t(e,r,(o,u)=>u===void 0?o??[]:o===void 0?[u]:Array.isArray(o)?[u,...o]:[u,o]):e,{})}function Qfr(i){return{...i.reduce((e,r)=>mTn(e,r),{}),extend:Yfr(i)}}function fqe(i){let{extend:e=[],...r}=Qfr(i);return A9t(r,e,(o,u)=>dTn({},o,...u))}var $fr=i=>typeof i=="object"&&Object.keys(i).length===0,Zfr=i=>Object.keys(i).reduce((e,r)=>(i[r]!==void 0&&!$fr(i[r])&&(e[r]=i[r]),e),{});function hTn(i){let e=mTn({conditions:fqe(i.map(r=>r.conditions??{})),theme:fqe(i.map(r=>r.theme??{})),patterns:fqe(i.map(r=>r.patterns??{})),utilities:fqe(i.map(r=>r.utilities??{})),globalCss:fqe(i.map(r=>r.globalCss??{}))},...i);return Zfr(e)}oe();var L3e=require("path"),dCt=require("fs");function BTn(i,e){let r=(0,L3e.resolve)(".",i),o;for((0,dCt.statSync)(r).isDirectory()||(r=(0,L3e.dirname)(r));;){if(o=e(r,(0,dCt.readdirSync)(r)),o)return(0,L3e.resolve)(r,o);if(r=(0,L3e.dirname)(o=r),o===r)break}}var xTn=require("path"),pqe=Nm(require("fs"),1),F3e=Nm(require("path"),1),ETn=require("path");oe();var gTn=require("esbuild"),yTn=Nm(require("path"),1),_Ct=Nm(require("fs"),1),PX=(i=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(i,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):i)(function(i){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+i+'" is not supported')});function epr(i){let e=_Ct.default.realpathSync(i);delete PX.cache[i];let r=PX(e);return{mod:r.default??r,dependencies:[e],code:_Ct.default.readFileSync(e,"utf-8")}}async function tpr(i,e){let r=await(0,gTn.build)({absWorkingDir:e,entryPoints:[i],outfile:"out.js",write:!1,platform:"node",bundle:!0,format:"cjs",sourcemap:!1,metafile:!0,mainFields:["module","main"]}),{text:o}=r.outputFiles[0];return{code:o,dependencies:r.metafile?Object.keys(r.metafile.inputs):[]}}function npr(i,e){let r=yTn.default.extname(i),o=_Ct.default.realpathSync(i),u=PX.extensions[r];PX.extensions[r]=(v,S)=>{S===o?v._compile(e,S):u(v,S)},delete PX.cache[PX.resolve(i)];let d=PX(i),h=d.default??d;return PX.extensions[r]=u,h}async function CTn(i,e={}){let{cwd:r=process.cwd()}=e,o=PX.resolve(i,{paths:[r]});try{return epr(o)}catch{let u=await tpr(o,r);try{u.mod=await npr(o,u.code)}catch{u.mod=PX("node-eval")(u.code).default}return u}}oe();var vTn=class extends Error{code;hint;constructor(i,e,r){super(e),this.code=`ERR_PANDA_${i}`,this.hint=r?.hint}};var mCt=class extends vTn{constructor(){let i="Cannot find config file: panda.config.ts or panda.config.js/cjs/mjs. Did you forget to run `panda init`?";super("NO_CONFIG",i)}},bTn=class extends vTn{constructor(i){super("CONFIG_ERROR",i)}};var w9t=require("@pandacss/preset-base"),hCt=require("@pandacss/preset-panda"),rpr=[".ts",".js",".mjs",".cjs"],ipr=new RegExp(`panda.config(${rpr.join("|")})$`),spr=i=>ipr.test(i);function apr({cwd:i,file:e}){return e?(0,xTn.resolve)(i,e):BTn(i,(r,o)=>o.find(spr))}function TTn(i,e){let r=Object.keys(i).sort((u,d)=>STn(d)-STn(u)),o=[];for(let u of r){let d=i[u];u=lpr(u).replace(/\*/g,"(.+)"),o.push({pattern:new RegExp("^"+u+"$"),paths:d.map(h=>(0,ETn.resolve)(e,h))})}return o}var opr=(i,e)=>{for(let r of i){let o=e.match(r.pattern);if(o)for(let u of r.paths){let d=0;return u.replace(/\*/g,()=>{let v=Math.min(++d,o.length-1);return o[v]})}}};function STn(i){let e=i.indexOf("*");return i.substr(0,e).length}function lpr(i){return i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/-/g,"\\x2d")}var cpr=[".js",".cjs",".mjs"],upr=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],fpr=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];function ppr(i,e){for(let r of e){let o=`${i}${r}`;if(pqe.default.existsSync(o)&&pqe.default.statSync(o).isFile())return o}for(let r of e){let o=`${i}/index${r}`;if(pqe.default.existsSync(o))return o}return null}var dpr=/import[\s\S]*?['"](.{3,}?)['"]/gi,_pr=/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,mpr=/require\(['"`](.+)['"`]\)/gi,hpr=/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi;function k9t(i,e){let{filename:r,seen:o}=i,u=ppr(F3e.default.resolve(i.cwd,r),cpr.includes(i.ext)?upr:fpr);if(u===null||(e&&i.foundModuleAliases.set(e,u),o.size>1&&o.has(u)))return;o.add(u);let d=pqe.default.readFileSync(u,"utf-8"),h=[...d.matchAll(dpr),...d.matchAll(_pr),...d.matchAll(mpr),...d.matchAll(hpr)];if(!h.length)return;let v={cwd:F3e.default.dirname(u),ext:F3e.default.extname(u),seen:o,baseUrl:i.baseUrl,pathMappings:i.pathMappings,foundModuleAliases:i.foundModuleAliases};h.forEach(S=>{let k=S[1];if(k[0]==="."){k9t(Object.assign({},v,{filename:k}));return}if(!i.pathMappings)return;let L=opr(i.pathMappings,k);L&&k9t(Object.assign({},v,{filename:L}),k)})}function DTn(i,e={pathMappings:[]}){if(i===null)return{deps:new Set,aliases:new Map};let r=new Map,o=new Set;return o.add(i),k9t({filename:i,ext:F3e.default.extname(i),cwd:F3e.default.dirname(i),seen:o,baseUrl:e.baseUrl,pathMappings:e.pathMappings??[],foundModuleAliases:r}),{deps:o,aliases:r}}async function ATn(i,e){let{mod:r,dependencies:o}=await CTn(i,{cwd:e,interopDefault:!0});return{config:r?.default??r,dependencies:o}}async function Bpr(i,e){let r=i.presets??[],o=[i];for(;r.length>0;){let u=await r.shift();if(typeof u=="string"){let d=await ATn(u,e);o.push(await d.config),r.unshift(...await d.config.presets??[])}else o.push(u),r.unshift(...u.presets??[])}return hTn(o)}var kTn={"@pandacss/preset-base":w9t.preset,"@pandacss/preset-panda":hCt.preset,"@pandacss/dev/presets":hCt.preset},gpr=Object.keys(kTn),ypr=i=>gpr.includes(i);async function wTn(i){let e=await vpr(i);return Cpr(e,i.cwd)}async function Cpr(i,e){let r=new Set;i.config.eject||r.add(w9t.preset),i.config.presets?i.config.presets.forEach(u=>{typeof u=="string"&&ypr(u)?r.add(kTn[u]):r.add(u)}):i.config.eject||r.add(hCt.preset),i.config.presets=Array.from(r);let o=await Bpr(i.config,e);return{...i,config:o}}async function vpr(i){let{cwd:e,file:r}=i,o=apr({cwd:e,file:r});if(!o)throw new mCt;Hd.debug("config:path",o);let u=await ATn(o,e);if(typeof u.config!="object")throw new bTn("\u{1F4A5} Config must export or return an object.");return{...u,config:u.config,path:o}}var SOn=require("fs"),gHt=Nm(K9t(),1),xOn=require("path");oe();var j3e=require("path"),X9t=require("fs");var AAn=i=>i===(0,j3e.dirname)(i),A_r=Symbol("stop"),k_r=i=>i===A_r;var ACt=(i,e=process.cwd())=>{if(typeof i=="function"&&i(e)instanceof Promise)throw new Error("Async matcher can not be used in 'lookItUpSync'");if(typeof i=="string"){let o=(0,j3e.join)(e,i);return(0,X9t.existsSync)(o)?o:AAn(e)?null:ACt(i,(0,j3e.dirname)(e))}let r=i(e);return k_r(r)?null:r??(AAn(e)?null:ACt(i,(0,j3e.dirname)(e)))};oe();var U3e=Nm(require("path"),1),OAn=require("fs"),RAn=Nm(require("path"),1);var ez=Nm(require("path"),1),GAn=require("fs"),eGt=require("module"),kw=Nm(require("path"),1),jAn=require("fs");async function kAn(i,e){let r=U3e.default.dirname(U3e.default.resolve(i)),o=e?.root?U3e.default.resolve(e.root):null;for(;r;){let u=await w_r(r,e);if(u)return u;{if(o===r)break;let d=U3e.default.dirname(r);if(d===r)break;r=d}}throw new Error(`no tsconfig file found for ${i}`)}async function w_r(i,e){let r=U3e.default.join(i,"tsconfig.json");if(e?.tsConfigPaths)return e.tsConfigPaths.has(r)?r:void 0;try{let o=await OAn.promises.stat(r);if(o.isFile()||o.isFIFO())return r}catch(o){if(o.code!=="ENOENT")throw o}}var Cyi=RAn.default.sep;function I_r(i){let e=P_r(N_r(L_r(i)));return e.trim()===""?"{}":e}function P_r(i){let e=!1,r=0,o="",u=null;for(let d=0;d<i.length;d++){let h=i[d];if(h==='"'&&(MAn(i,d)||(e=!e)),e){u=null;continue}if(h===","){u=d;continue}u&&(h==="}"||h==="]"?(o+=i.slice(r,u)+" ",r=u+1,u=null):h.match(/\s/)||(u=null))}return o+i.substring(r)}function MAn(i,e){let r=e-1,o=0;for(;i[r]==="\\";)r-=1,o+=1;return!!(o%2)}function kCt(i,e,r){return i.slice(e,r).replace(/\S/g," ")}var Y9t=Symbol("singleComment"),wAn=Symbol("multiComment");function N_r(i){let e=!1,r=!1,o=0,u="";for(let d=0;d<i.length;d++){let h=i[d],v=i[d+1];!r&&h==='"'&&(MAn(i,d)||(e=!e)),!e&&(!r&&h+v==="//"?(u+=i.slice(o,d),o=d,r=Y9t,d++):r===Y9t&&h+v===`\r
|
|
21120
21120
|
`?(d++,r=!1,u+=kCt(i,o,d),o=d):r===Y9t&&h===`
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@pandacss/language-server",
|
|
3
3
|
"displayName": "Panda CSS",
|
|
4
4
|
"description": "🐼 The official Panda language server",
|
|
5
|
-
"version": "0.0.0-dev-
|
|
5
|
+
"version": "0.0.0-dev-20230704202528",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"repository": {
|
|
8
8
|
"url": "https://github.com/chakra-ui/panda",
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"vscode-languageserver": "^8.1.0",
|
|
33
33
|
"vscode-languageserver-textdocument": "^1.0.8",
|
|
34
34
|
"vscode-uri": "^3.0.7",
|
|
35
|
-
"@pandacss/core": "0.0.0-dev-
|
|
36
|
-
"@pandacss/extension-shared": "0.0.0-dev-
|
|
37
|
-
"@pandacss/extractor": "0.0.0-dev-
|
|
38
|
-
"@pandacss/node": "0.0.0-dev-
|
|
39
|
-
"@pandacss/parser": "0.0.0-dev-
|
|
40
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
41
|
-
"@pandacss/token-dictionary": "0.0.0-dev-
|
|
42
|
-
"@pandacss/types": "0.0.0-dev-
|
|
35
|
+
"@pandacss/core": "0.0.0-dev-20230704202528",
|
|
36
|
+
"@pandacss/extension-shared": "0.0.0-dev-20230704202528",
|
|
37
|
+
"@pandacss/extractor": "0.0.0-dev-20230704202528",
|
|
38
|
+
"@pandacss/node": "0.0.0-dev-20230704202528",
|
|
39
|
+
"@pandacss/parser": "0.0.0-dev-20230704202528",
|
|
40
|
+
"@pandacss/shared": "0.0.0-dev-20230704202528",
|
|
41
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20230704202528",
|
|
42
|
+
"@pandacss/types": "0.0.0-dev-20230704202528"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"fast-glob": "^3.2.12"
|