@pandacss/language-server 0.0.0-dev-20230807185908 → 0.0.0-dev-20230810090440

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.
Files changed (2) hide show
  1. package/dist/index.js +17 -13
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -30725,7 +30725,7 @@ ${Mt}`}cn.exports={isPragma:Ft,hasPragma:D,insertPragma:y}}}),mv=Oo({"src/langua
30725
30725
  ${o.type!=="rule"&&l>0?`
30726
30726
  `:""}${" ".repeat(n)}`),d1n(i,n+1)})}function Wje(){return o=>{d1n(o),o.first&&(o.first.raws.before="")}}Wje.postcssPlugin="panda-prettify";var Krr=[":link",":visited",":focus-within",":focus",":focus-visible",":hover",":active"],Zvn=o=>Krr.findIndex(i=>o.trim().includes(i))+1;function _Ot(){let o=n=>{let i=[],l=[],p=[];n.each(m=>{switch(m.type){case"rule":{m.first?.type==="atrule"?p.push(m):l.push(m);break}case"atrule":{p.push(m);break}default:i.push(m)}}),l.sort((m,g)=>{let b=m.selectors.length?m.selectors[0]:m.selector,T=g.selectors.length?g.selectors[0]:g.selector;return Zvn(b)-Zvn(T)}),n.nodes=[...i,...l,...p],n.nodes.forEach(m=>{"nodes"in m&&o(m)})};return o}_Ot.postcssPlugin="panda-sort-css";var m1n=/(!?\(\s*min(-device-)?-width)(.|\n)+\(\s*max(-device)?-width/i,Xrr=/\(\s*min(-device)?-width/i,_1n=/(!?\(\s*max(-device)?-width)(.|\n)+\(\s*min(-device)?-width/i,Yrr=/\(\s*max(-device)?-width/i,sOt=QZe(m1n,_1n,Xrr),e1n=QZe(_1n,m1n,Yrr),h1n=/(!?\(\s*min(-device)?-height)(.|\n)+\(\s*max(-device)?-height/i,Qrr=/\(\s*min(-device)?-height/i,g1n=/(!?\(\s*max(-device)?-height)(.|\n)+\(\s*min(-device)?-height/i,$rr=/\(\s*max(-device)?-height/i,aOt=QZe(h1n,g1n,Qrr),t1n=QZe(g1n,h1n,$rr),n1n=/print/i,r1n=/^print$/i,Fje=Number.MAX_VALUE;function i1n(o){let n=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/.exec(o);if(n===null&&(sOt(o)||aOt(o))&&(n=/(\d)/.exec(o)),n==="0")return 0;if(n===null)return Fje;let i=n[1];switch(n[2]){case"ch":i=parseFloat(i)*8.8984375;break;case"em":case"rem":i=parseFloat(i)*16;break;case"ex":i=parseFloat(i)*8.296875;break;case"px":i=parseFloat(i);break}return+i}function QZe(o,n,i){return function(l){return o.test(l)?!0:n.test(l)?!1:i.test(l)}}function Zrr(o,n){let i=n1n.test(o),l=r1n.test(o),p=n1n.test(n),m=r1n.test(n);return i&&p?!l&&m?1:l&&!m?-1:o.localeCompare(n):i?1:p?-1:null}function eir(o={}){let{unitlessMqAlwaysFirst:n}=o;return function(l,p){let m=Zrr(l,p);if(m!==null)return m;let g=sOt(l)||aOt(l),b=e1n(l)||t1n(l),T=sOt(p)||aOt(p),I=e1n(p)||t1n(p);if(n&&(!g&&!b||!T&&!I))return!g&&!b&&!T&&!I?l.localeCompare(p):!T&&!I?1:-1;{if(g&&I)return-1;if(b&&T)return 1;let R=i1n(l),V=i1n(p);return R===Fje&&V===Fje?l.localeCompare(p):R===Fje?1:V===Fje?-1:R>V?b?-1:1:R<V?b?1:-1:l.localeCompare(p)}}}var tir=eir();function hOt(){let o=n=>{n.nodes.sort((i,l)=>U_({a:i,b:l}).with({a:{type:"atrule",name:"media"},b:{type:"atrule",name:"media"}},({a:p,b:m})=>tir(p.params,m.params)).with({a:{type:"atrule",name:"media"},b:MS.any},()=>1).with({a:MS.any,b:{type:"atrule",name:"media"}},()=>-1).otherwise(()=>0)),n.nodes.forEach(i=>{"nodes"in i&&o(i)})};return o}hOt.postcssPlugin="panda-sort-mq";function $Ze(o,n={}){let{minify:i=!1}=n,{css:l}=_B([(0,dOt.default)(),mOt(),hOt(),(0,fOt.default)(),(0,u1n.default)(),_Ot(),(0,c1n.default)(),i?(0,p1n.default)():Wje()]).process(o);return l}function nir(o,n={}){let{token:i}=n,{css:l}=_B([qrr(i)]).process(o);return l}function ZZe(o){let{css:n}=_B([mOt(),(0,fOt.default)(),hOt(),_Ot(),Wje()]).process(o);return n}function B1n(o){let{css:n}=_B([(0,dOt.default)(),Wje()]).process(o);return n}function y1n(o){let{css:n}=_B([Wje()]).process(o);return n}function eet(o,n){let i=Oje(o),l=Oje(n),p=i.nodes.filter(lre({type:"atrule",name:"layer",params:"utilities"}));return l.walkAtRules("layer",m=>{m.params==="utilities"&&p.forEach(g=>{m.append(g.nodes)})}),ZZe(l)}var JM={classNames:new Map,styles:new Map,nodes:new Map,slots:new Map},gOt=class{constructor(o={},n){this.recipes=o,this.context=n,this.assignRules()}rules=new Map;getPropKey=(o,n,i)=>`${o} (${n} = ${i})`;get separator(){return this.context?.utility.separator??"_"}getClassName=(o,n,i)=>`${o}--${n}${this.separator}${i}`;save=()=>{for(let[o,n]of Object.entries(this.recipes))if(ySe(n)){let i=Pze(n),l=new Map;Object.entries(i).forEach(([p,m])=>{let g=this.getSlotKey(o,p);this.normalize(g,m),l.set(g,m)}),this.assignRecipe(o,n),JM.slots.set(o,l)}else this.assignRecipe(o,this.normalize(o,n))};assignRecipe=(o,n)=>{let i=Object.keys(n.variants??{}),l=n.jsx??[e6(o)],p=Ize(l);JM.nodes.set(o,{...this.getNames(o),jsx:l,type:"recipe",variantKeys:i,variantKeyMap:Object.fromEntries(Object.entries(n.variants??{}).map(([m,g])=>[m,Object.keys(g)])),match:p,config:n,splitProps:m=>a4t(m,i),props:i})};getSlotKey=(o,n)=>`${o}__${n}`;assignRules=()=>{if(this.context)for(let[o,n]of Object.entries(this.recipes))ySe(n)?n.slots.forEach(i=>{let l=this.getSlotKey(o,i);this.rules.set(l,this.createRule(l))}):this.rules.set(o,this.createRule(o))};isEmpty=()=>JM.nodes.size===0;getNames=RS(o=>({baseName:o,upperName:e6(o),dashName:kze(o),jsxName:e6(o)}));getRecipe=RS(o=>JM.nodes.get(o));getConfig=RS(o=>this.recipes[o]);find=RS(o=>this.details.find(n=>n.match.test(o)));filter=RS(o=>this.details.filter(n=>n.match.test(o)));get details(){return Array.from(JM.nodes.values())}splitProps=(o,n)=>{let i=this.details.find(l=>l.baseName===o);return i?i.splitProps(n):[{},n]};normalize=(o,n)=>{let{className:i,jsx:l=[e6(o)],base:p={},variants:m={},defaultVariants:g={},description:b="",compoundVariants:T=[]}=n,I={...n,jsx:l,className:i,description:b,base:{},variants:{},defaultVariants:g,compoundVariants:T};I.base=this.serialize(p),JM.styles.set(o,I.base),JM.classNames.set(o,i);for(let[R,V]of Object.entries(m))for(let[X,ue]of Object.entries(V)){let De=this.getPropKey(o,R,X),we=this.getClassName(n.className,R,X),We=this.serialize(ue);JM.styles.set(De,We),JM.classNames.set(De,we),(0,C1n.default)(I.variants,{[R]:{[X]:We}})}return I};serialize=o=>this.context?pOt(o,this.context):o;getTransform=o=>(n,i)=>{if(i==="__ignore__")return{layer:"_base",className:JM.classNames.get(o),styles:JM.styles.get(o)??{}};let l=this.getPropKey(o,n,i);return{className:JM.classNames.get(l),styles:JM.styles.get(l)??{}}};createRule=o=>{if(!this.context)throw new Error("Can't create a rule without a context");let n=new YZe({...this.context,transform:this.getTransform(o)});return n.layer="recipes",n};check=(o,n,i)=>{let{defaultVariants:l={},base:p={}}=o,m=Object.assign({[n]:"__ignore__"},l,i),g=Object.keys(m);return{styles:m,isEmpty:g.length===1&&Object.keys(p).length===0}};process=(o,n)=>{let{styles:i}=n,l=this.getRecipe(o);if(!l)return;let p=JM.slots.get(o);if(p)p.forEach((m,g)=>{let{isEmpty:b,styles:T}=this.check(m,g,i);if(b)return;this.rules.get(g)?.process({styles:T})});else{let{isEmpty:m,styles:g}=this.check(l.config,l.config.className,i);if(m)return;this.rules.get(o)?.process({styles:g})}};toCss=()=>this.context?this.context.root.toString():""},rir=/\s&/g;function b1n(o){let n=new Set;(0,v1n.default)(l=>{l.each(p=>{let m=oOt(p.toString());U_(m).with({type:"parent-nesting"},()=>{n.add(p.toString().replace(rir,"").trim())}).otherwise(()=>{})})}).processSync(o);let i=Array.from(n).join(", ").trim();return n.size>1?`:where(${i})`:i}var kmi=KZe(),rOt=(o,n)=>o.breakpoints.includes(n)?n:`_${n}`;function S1n(o){let{css:n=[],recipes:i={}}=o,l={css:[],recipes:[]};return p=>(n.forEach(m=>{let g=m.conditions||[];m.responsive&&g.push(...p.breakpoints),Object.entries(m.properties).forEach(([b,T])=>{T.flatMap(R=>R==="*"?p.getPropertyKeys(b):R).forEach(R=>{let V=g.reduce((X,ue)=>({base:R,...X,[rOt(p,ue)]:R}),{});l.css.push({[b]:g.length?V:R})})})}),Object.entries(i).forEach(([m,g])=>{g.forEach(b=>{let{__base:T,...I}=p.getRecipeKeys(m),R=b==="*",{conditions:V=[],responsive:X=R,...ue}=R?I:b;if(X&&V.push(...p.breakpoints),T){let De=V.reduce((we,We)=>({base:T,...we,[rOt(p,We)]:T}),{});l.recipes.push({[m]:V.length?De:T})}Object.entries(ue).forEach(([De,we])=>{if(!Array.isArray(we))return;we.flatMap(Ne=>Ne==="*"?I[De]:Ne).forEach(Ne=>{let Me=V.reduce((Ct,Rt)=>({base:Ne,...Ct,[rOt(p,Rt)]:Ne}),{});l.recipes.push({[m]:{[De]:V.length?Me:Ne}})})})})}),l)}var x1n=class{constructor(o,n){this.context=o,this.options=n;let{recipes:i={},slotRecipes:l={}}=n??{},p=Object.assign({},i,l);this.recipes=new gOt(p,o)}recipes;processGlobalCss=o=>{let{conditions:n,utility:i}=this.context,l=Grr(o,{conditions:n,utility:i}),p=_B.atRule({name:"layer",params:"base",nodes:[l]});this.context.root.append(p)};processSelectorObject(o,n){let i=Y7(n),{nodes:l}=Oje(i);if(l.length===0)return;let p=_B.rule({selector:o,nodes:i.root.nodes});this.context.root.append(p)}processObject(o){let i=Y7(o).root;this.context.root.append(i)}processAtomic=(...o)=>{let n=new YZe(this.context);o.forEach(i=>{i&&n.process({styles:i})})};processStyleProps=o=>{let{css:n,...i}=o;this.processAtomic(i,n)};processCompoundVariants=o=>{o.compoundVariants?.forEach(n=>{if(ySe(o))for(let i of Object.values(n.css))this.processAtomic(i);else this.processAtomic(n.css)})};processRecipe=(o,n,i)=>{this.recipes.process(o,{styles:i}),this.processCompoundVariants(n)};processAtomicSlotRecipe=o=>{let n=Pze(o);for(let i of Object.values(n))this.processAtomicRecipe(i)};processAtomicRecipe=o=>{let{base:n={},variants:i={},compoundVariants:l=[]}=o;this.processAtomic(n);for(let p of Object.values(i))for(let m of Object.values(p))this.processAtomic(m);l.forEach(p=>{this.processAtomic(p.css)})};toCss=({optimize:o=!1,minify:n}={})=>{try{let{conditions:{breakpoints:i},utility:l}=this.context;i.expandScreenAtRule(this.context.root),nir(this.context.root,{token:l.getToken});let p=this.context.root.toString();return o&&(p=$Ze(p,{minify:n})),this.options?.content&&(p=`${this.options.content}
30727
30727
 
30728
- ${p}`),o?ZZe(p):p}catch(i){throw i instanceof hQt&&(I1.error("sheet",i.message),i.plugin&&I1.error("sheet",`By plugin: ${i.plugin}:`),i.source&&(I1.error("sheet",`Line ${i.line}:${i.column}, in:`),I1.error("sheet",i.source))),i}};append=(...o)=>{this.context.root.append(...o)};prepend=(...o)=>{this.context.root.prepend(...o)}},E1n=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(o){let{tokens:n,config:i={},separator:l,prefix:p,shorthands:m}=o;this.tokens=n,this.config=i,l&&(this.separator=l),p&&(this.prefix=p),m&&this.assignShorthands(),this.assignColorPaletteProperty(),this.assignProperties(),this.assignPropertyTypes()}register=(o,n)=>{this.assignProperty(o,n),this.assignPropertyType(o,n),this.config[o]=n};assignShorthands=()=>{for(let[o,n]of Object.entries(this.config)){let{shorthand:i}=this.normalize(n)??{};if(!i)continue;(Array.isArray(i)?i:[i]).forEach(p=>{this.shorthands.set(p,o)})}};assignColorPaletteProperty=()=>{let o=this.tokens.colorPalettes;this.config.colorPalette={values:Object.keys(o),transform(n){return o[n]}}};resolveShorthand=o=>this.shorthands.get(o)??o;get hasShorthand(){return this.shorthands.size>0}get isEmpty(){return Object.keys(this.config).length===0}entries=()=>Object.entries(this.config).filter(([,n])=>!!n?.className).map(([n,i])=>[n,i.className]);getPropKey=(o,n)=>`(${o} = ${n})`;hash=(o,n)=>`${o}${this.separator}${n}`;getPropertyValues=(o,n)=>{let{values:i}=o,l=p=>{let m=n?.(p);return m?{[m]:m}:void 0};return H7(i)?l?.(i)??this.tokens.getValue(i)??{}:Array.isArray(i)?i.reduce((p,m)=>(p[m]=m,p),{}):ZMt(i)?i(n?l:this.getToken.bind(this)):i};getToken=o=>this.tokens.get(o);normalize=o=>o;assignProperty=(o,n)=>{let i=this.normalize(n);if(this.setTransform(o,i?.transform),!i)return;this.configs.set(o,i);let l=this.getPropertyValues(i);if(l)for(let[p,m]of Object.entries(l)){let g=this.getPropKey(o,p);this.setStyles(o,m,p,g),this.setClassName(o,p)}};assignProperties=()=>{for(let[o,n]of Object.entries(this.config))n&&this.assignProperty(o,n)};getPropertyKeys=o=>{let n=this.propertyKeys.get(o);return n?Array.from(n):[]};assignPropertyType=(o,n)=>{let i=this.normalize(n);if(!i)return;let l=this.getPropertyValues(i,m=>`type:Tokens["${m}"]`);if(typeof l=="object"&&l.type){this.types.set(o,new Set([`type:${l.type}`]));return}if(l){let m=new Set(Object.keys(l));this.types.set(o,m),this.propertyKeys.set(o,m)}let p=this.types.get(o)??new Set;i.property&&this.types.set(o,p.add(`CssProperties["${i.property}"]`))};assignPropertyTypes=()=>{for(let[o,n]of Object.entries(this.config))n&&this.assignPropertyType(o,n)};getTypes=()=>{let o=new Map;for(let[n,i]of this.types.entries()){if(i.size===0){o.set(n,["string"]);continue}let l=Array.from(i).map(p=>p.startsWith("CssProperties")?p:p.startsWith("type:")?p.replace("type:",""):JSON.stringify(p));o.set(n,l)}return o};defaultTransform=RS((o,n)=>{if(n.startsWith("--")){let l=this.tokens.getTokenVar(o);o=typeof l=="string"?l:o}return{[n]:o}});setTransform=(o,n)=>{let l=n??(p=>this.defaultTransform(p,o));return this.transforms.set(o,l),this};setStyles=(o,n,i,l)=>{l=l??this.getPropKey(o,n);let p=b=>this.defaultTransform(b,o),g=(this.transforms.get(o)??p)(n,{token:this.getToken.bind(this),raw:i});return this.styles.set(l,g??{}),this};formatClassName=o=>[this.prefix,o].filter(Boolean).join("-");setClassName=(o,n)=>{let i=this.getPropKey(o,n),l=this.configs.get(o),p;return!l||!l.className?p=this.hash(nCe(o),n):p=this.hash(l.className,n),this.classNames.set(i,p),this};isProperty=o=>this.configs.has(o);getOrCreateClassName=(o,n)=>((l,p)=>{let m=this.getPropKey(l,p);return this.classNames.has(m)||(this.isProperty(l)&&this.customValues.set(l,p),this.setClassName(l,p)),this.classNames.get(m)})(o,n);getOrCreateStyle=(o,n)=>{let i=this.getPropKey(o,n);return this.styles.get(i)??this.setStyles(o,n,n,i),this.styles.get(i)};transform=(o,n)=>{if(n==null)return{className:"",styles:{}};let i=this.resolveShorthand(o);return tre({layer:this.configs.get(i)?.layer,className:this.getOrCreateClassName(i,wze(n)),styles:this.getOrCreateStyle(i,n)})};keys=()=>{let o=Array.from(this.shorthands.keys()),n=Object.keys(this.config);return[...o,...n]}};re();re();var RVe=yd(WO(),1);var jp=yd(WO(),1);re();var tur=yd(R9t(),1),GO=yd(HEn(),1);re();var r5=yd(require("path"),1),qEn=yd(require("os"),1),Rcr=/(^\/\w:\/)|(^\/\w:\\)/,JEn=r5.default.parse(process.cwd()).root,KEn=/^\w:/,Lcr=qEn.default.platform();function Mcr(o){return/\\/.test(o)||KEn.test(o)}function XEn(o){let n=/^\\\\\?\\/.test(o),i=/[^\u0000-\u0080]+/.test(o);return n||i?o:o.replace(/\\/g,"/")}function Fcr(o){let n=typeof o=="string"?o:o.pathname;return n.startsWith("file:")&&(n.startsWith("file://")&&(n=n.slice(7)),Rcr.test(n)&&(n=n.slice(1))),L9t(n)}function YEn(o){return[...o].some(n=>typeof n=="string"&&Mcr(n))?r5.default.win32:r5.default}function wre(o,n){return XEn(YEn(n)[o](...n))}function QEn(o,n){return r5.default.posix[o](...[...n].map(i=>typeof i=="string"?XEn(i):i))}function Ocr(o){return QEn("parse",arguments)}function Wcr(o){return QEn("extname",arguments)}function Gcr(o){return YEn(arguments).isAbsolute(o)}function zcr(...o){return wre("join",arguments)}function L9t(o){let n=wre("normalize",arguments);return o.startsWith("./")&&!n.startsWith("./")?"./"+n:n}function jcr(o,n){return wre("relative",arguments)}function Vcr(...o){return wre("resolve",arguments)}function Ucr(o){return wre("dirname",arguments)}function Hcr(o,n){return wre("basename",arguments)}function Jcr(o){return wre("format",arguments)}function qcr(o){return wre("toNamespacedPath",arguments)}function Kcr(o){return Lcr!=="win32"||KEn.test(o)||o.startsWith(JEn)||!r5.default.win32.isAbsolute(r5.default.win32.normalize(o))?o:r5.default.win32.join(JEn,o)}var M9t={sep:r5.default.posix.sep,delimiter:r5.default.posix.delimiter,parse:Ocr,isAbsolute:Gcr,join:zcr,extname:Wcr,normalize:L9t,relative:jcr,resolve:Vcr,dirname:Ucr,basename:Hcr,format:Jcr,toNamespacedPath:qcr,get posix(){return this},get win32(){return $En}},$En={...r5.default.win32,get posix(){return M9t},get win32(){return this}},Xcr=r5.default,UCe={...M9t,posix:M9t,win32:$En,native:Xcr,includeDriveLetter:Kcr,urlToFilename:Fcr};var pDn=require("module"),fDn=require("util"),dDn=yd(iDn(),1),Kot=()=>{let o={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{o.AggregateError=AggregateError}catch{}try{o.FinalizationRegistry=FinalizationRegistry}catch{}try{o.WeakRef=WeakRef}catch{}try{o.BigInt=BigInt}catch{}try{o.Reflect=Reflect}catch{}try{o.WeakMap=WeakMap}catch{}try{o.WeakSet=WeakSet}catch{}try{o.Set=Set}catch{}try{o.Map=Map}catch{}try{o.Uint8Array=Uint8Array}catch{}try{o.BigUint64Array=BigUint64Array}catch{}try{o.BigInt64Array=BigInt64Array}catch{}try{o.Atomics=Atomics}catch{}try{o.SharedArrayBuffer=SharedArrayBuffer}catch{}try{o.WebAssembly=WebAssembly}catch{}try{o.Uint8ClampedArray=Uint8ClampedArray}catch{}try{o.Uint16Array=Uint16Array}catch{}try{o.Uint32Array=Uint32Array}catch{}try{o.Intl=Intl}catch{}try{o.Int8Array=Int8Array}catch{}try{o.Int16Array=Int16Array}catch{}try{o.Int32Array=Int32Array}catch{}try{o.Float32Array=Float32Array}catch{}try{o.Float64Array=Float64Array}catch{}try{o.ArrayBuffer=ArrayBuffer}catch{}try{o.DataView=DataView}catch{}try{o.isFinite=isFinite}catch{}try{o.Promise=Promise}catch{}try{o.Proxy=Proxy}catch{}try{o.Symbol=Symbol}catch{}return o};function Pre(o,n,i){let l={};return[o,n??{},i??{}].forEach(g=>Object.defineProperties(l,Object.getOwnPropertyDescriptors(g))),l}function Got(o,n){let i={};return Object.getOwnPropertyNames(o).forEach(l=>{l in n||Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(o,l))}),i}var mDn=(0,pDn.createRequire)(Ze),nur=()=>{let o=Kot(),n=Pre(Got(global,o),o,{require:mDn,process,__dirname:i=>UCe.native.normalize(UCe.native.dirname(i)),__filename:i=>UCe.native.normalize(i)});return Object.defineProperties(n,{global:{get(){return n}},globalThis:{get(){return n}}}),n};function rur(o){let n=0;return{requestAnimationFrame:function(m){let g=new Date().getTime(),b=Math.max(0,16-(g-n)),T=o.setTimeout(function(){m(g+b)},b);return n=g+b,T},cancelAnimationFrame:function(m){clearTimeout(m)}}}var Fot;function iur(o=!1){return Fot??(Fot=our("evaluate against a browser environment",o,"jsdom"))}function our(o,n,i=o){try{return mDn(i)}catch{if(n)throw new ReferenceError(`You must install the peer dependency '${i}' in order to ${o} with ts-evaluator`);return}}var sur=()=>{let{JSDOM:o}=iur(!0),{window:n}=new o("",{url:"https://example.com"}),i=Kot(),l=rur(n),p=Pre(Got(n,i),Got(l,n),i);return Object.defineProperties(p,{window:{get(){return p}},globalThis:{get(){return p}}}),p},g1="[return]",YL="[break]",QM="[continue]",$M="this",HCe="super",aur=()=>{let o=Kot(),n=Pre(Got(global,o),o,{import:{meta:{url:i=>{let l=UCe.normalize(i);return`file:///${l.startsWith("/")?l.slice(1):l}`}}},process});return Object.defineProperties(n,{global:{get(){return n}},globalThis:{get(){return n}}}),n};function _Dn(o,n){return n.isDeclaration(o)}function lur(o,n){return n.isPropertyAccessExpression(o)?!1:"name"in o&&o.name!=null}function hDn(o,n){return o.flags!==n.NodeFlags.Const&&o.flags!==n.NodeFlags.Let}var ZM=class extends Error{constructor({node:n,environment:i,message:l}){super(l),Error.captureStackTrace(this,this.constructor),this.node=n,this.environment=i}};function Mee(o){return typeof o=="object"&&o!=null&&o instanceof ZM}var zot=class extends ZM{constructor({path:n,node:i,environment:l,message:p=`Module '${n}' could not be resolved'`}){super({message:p,environment:l,node:i}),this.path=n}},qI=class extends ZM{constructor({node:n,environment:i,typescript:l,message:p=`Unexpected Node: '${l.SyntaxKind[n.kind]}'`}){super({message:p,node:n,environment:i})}};function cur(o){var n;let{node:i,evaluate:l,environment:p,typescript:m,throwError:g}=o,b=m.getNameOfDeclaration(i);if(b!=null)return m.isIdentifier(b)||!((n=m.isPrivateIdentifier)===null||n===void 0)&&n.call(m,b)||m.isStringLiteralLike(b)?b.text:m.isNumericLiteral(b)?Number(b.text):m.isComputedPropertyName(b)?l.expression(b.expression,o):g(new qI({node:b,environment:p,typescript:m}))}function gDn(o,n){let{node:i,typescript:l}=n;if(!l.isExternalModuleNameRelative(o))return o;let p=i.getSourceFile().fileName;return UCe.join(UCe.dirname(p),o)}function jot(o){var n,i,l,p,m;let{node:g,typescript:b,throwError:T,environment:I}=o,R=cur(o);if(Mee(R))return R;if(R==null)return T(new qI({node:g,environment:I,typescript:b}));let V=xD(g,o.environment,R);if(V!=null&&V.literal!=null)return V.literal;let X=xD(g,o.environment,"require").literal,ue=b.isModuleDeclaration(g)?g:uur(g,b.SyntaxKind.ModuleDeclaration,b);if(ue==null)return T(new qI({node:g,environment:I,typescript:b}));let De=ue.name.text,we=gDn(De,o);try{let We=(p=(i=(n=o.moduleOverrides)===null||n===void 0?void 0:n[De])!==null&&i!==void 0?i:(l=o.moduleOverrides)===null||l===void 0?void 0:l[we])!==null&&p!==void 0?p:X(we);return b.isModuleDeclaration(g)?We:(m=We[R])!==null&&m!==void 0?m:We}catch(We){return Mee(We)?We:T(new zot({node:ue,environment:I,path:we}))}}function Oot(o,n,i){var l,p,m,g,b,T;let{node:I,throwError:R,environment:V}=i,X=xD(I,i.environment,"require").literal,ue=gDn(n,i);try{let De=(g=(p=(l=i.moduleOverrides)===null||l===void 0?void 0:l[n])!==null&&p!==void 0?p:(m=i.moduleOverrides)===null||m===void 0?void 0:m[ue])!==null&&g!==void 0?g:X(ue);return(T=(b=De[o])!==null&&b!==void 0?b:De.default)!==null&&T!==void 0?T:De}catch(De){return Mee(De)?De:R(new zot({node:I,environment:V,path:ue}))}}function uur(o,n,i){let l=o;for(;;){if(l=l.parent,l==null)return;if(l.kind===n){let p=i.getCombinedNodeFlags(l);if(!((p&i.NodeFlags.Namespace)!==0||(p&i.NodeFlags.NestedNamespace)!==0))return l}if(i.isSourceFile(l))return}}function Q9t(o,n,i,l=new WeakSet){let{typescript:p}=i,m;function g(T,I=0){var R,V,X,ue,De;if(l.has(T))return!1;if(l.add(T),p.isIdentifier(T)){if(T.text===n)return m=T,!0}else{if(p.isShorthandPropertyAssignment(T))return!1;if(p.isPropertyAssignment(T))return!1;if(p.isImportDeclaration(T)){if(T.importClause!=null){if(T.importClause.name!=null&&g(T.importClause.name)){let we=T.moduleSpecifier;if(we!=null&&p.isStringLiteralLike(we))return m=Oot(n,we.text,i),!0}else if(T.importClause.namedBindings!=null&&g(T.importClause.namedBindings))return!0}return!1}else if(p.isImportEqualsDeclaration(T)){if(T.name!=null&&g(T.name)){if(p.isIdentifier(T.moduleReference))return m=Q9t(T.parent,T.moduleReference.text,i,l),m!=null;if(p.isQualifiedName(T.moduleReference))return!1;{let we=T.moduleReference.expression;if(we!=null&&p.isStringLiteralLike(we))return m=Oot(n,we.text,i),!0}}return!1}else if(p.isNamespaceImport(T)){if(g(T.name)){let we=(V=(R=T.parent)===null||R===void 0?void 0:R.parent)===null||V===void 0?void 0:V.moduleSpecifier;return we==null||!p.isStringLiteralLike(we)?!1:(m=Oot(n,we.text,i),!0)}}else if(p.isNamedImports(T)){for(let we of T.elements)if(g(we))return!0}else if(p.isImportSpecifier(T)){if(g(T.name)){let we=(De=(ue=(X=T.parent)===null||X===void 0?void 0:X.parent)===null||ue===void 0?void 0:ue.parent)===null||De===void 0?void 0:De.moduleSpecifier;return we==null||!p.isStringLiteralLike(we)?!1:(m=Oot(n,we.text,i),!0)}}else if(p.isSourceFile(T)){for(let we of T.statements)if(g(we))return!0}else if(p.isVariableStatement(T)){for(let we of T.declarationList.declarations)if(g(we)&&(hDn(T.declarationList,p)||I<1))return!0}else if(p.isBlock(T)){for(let we of T.statements)if(g(we,I+1))return!0}else if(lur(T,p)&&T.name!=null&&g(T.name))return m=T,!0}return!1}return p.findAncestor(o,T=>g(T))?m:void 0}function oDn(o,n){let i=o;for(;;){if(i=i.parent,i==null)return;if(_Dn(i,n)||n.isSourceFile(i))return i}}function pur(o){return o!=null&&(typeof o=="function"||typeof o=="object")}function sDn(o){return pur(o)}function $9t(o,n){switch(o){case Function.prototype.bind:case Function.prototype.call:case Function.prototype.apply:return!0}if(n!=null){let i=xD(void 0,n,"Function").literal;switch(o){case i.prototype.bind:case i.prototype.call:case i.prototype.apply:return!0}}return!1}var Lee=class{constructor(n){this.intent=n}construct(n,i){return this.intent(n,i)}};function BDn(o){return typeof o=="object"&&o!=null&&o instanceof Lee}function Xot(o,n,i){return BDn(i)?n.throwError(i.construct(o,n)):i}function W9t(o){return o.map(n=>typeof n=="symbol"?n.description:n).join(".")}function aDn({hook:o,item:n,scope:i,policy:l}){function p(m,g){let b=(T,I)=>{if(T!==!1)return BDn(T)||Mee(T)?T:I()};return!sDn(g)||$9t(g)?g:new Proxy(g,{construct(T,I,R){return b(o({kind:"__$$_PROXY_CONSTRUCT",policy:l,newTarget:R,argArray:I,target:T,path:W9t(m)}),()=>Reflect.construct(T,I,R))},apply(T,I,R=[]){return b(o({kind:"__$$_PROXY_APPLY",policy:l,thisArg:I,argArray:R,target:T,path:W9t(m)}),()=>Reflect.apply(T,I,R))},get(T,I,R){let V=[...m,I];return b(o({kind:"__$$_PROXY_GET",policy:l,path:W9t(V),target:T}),()=>{let X=Reflect.get(T,I,R),ue=Reflect.getOwnPropertyDescriptor(g,I);return ue!=null&&ue.configurable===!1&&ue.writable===!1?g[I]:p(V,X)})}})}return sDn(n)?p([i],n):n}function lDn(o,n){switch(o){case"__$$_PROXY_GET":return`get ${n}`;case"__$$_PROXY_APPLY":return`${n}(...)`;case"__$$_PROXY_CONSTRUCT":return`new ${n}(...)`}}var yDn={"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}}},fur={...yDn,Math:{random:{__$$_PROXY_APPLY:!0}},Date:{now:{__$$_PROXY_APPLY:!0},__$$_PROXY_CONSTRUCT:(...o)=>o.length===0&&!(o[0]instanceof Date)}};function dur(o,n){return typeof o==typeof n||typeof o=="function"}function mur(o){return typeof o=="function"}function JCe(o,n,i){let l=i.path.split(".");return z9t(o,n,i,l)}function z9t(o,n,i,l){let[p,...m]=l;if(p==null)return!1;let g=o[p];if(g==null)return!1;if(typeof g=="string")return z9t(o,n,i,[g,...m]);if(dur(g,n))return cDn(g,n,i);{let b=g[i.kind];return b!=null?cDn(b,n,i):z9t(g,n,i,m)}}function cDn(o,n,i){if(mur(o)){let l=i;return l.argArray!=null&&o(...l.argArray)===n}else return o===n}function _ur(o){return JCe(fur,!0,o)}var Nre=class extends ZM{constructor({violation:n,node:i,environment:l,message:p}){super({node:i,environment:l,message:`[${n}]: ${p}`}),this.violation=n}},j9t=class extends Nre{constructor({operation:n,node:i,environment:l,message:p=`The operation: '${n}' is nondeterministic. That is in violation of the policy`}){super({violation:"deterministic",message:p,node:i,environment:l}),this.operation=n}},CDn={"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 hur(o){return JCe(CDn,"read",o)}var Vot=class extends Nre{constructor({node:n,environment:i,kind:l,message:p=`${l} operations are in violation of the policy`}){super({violation:"io",message:p,environment:i,node:n}),this.kind=l}};function gur(o){return JCe(CDn,"write",o)}function Bur(o){return JCe(yDn,!0,o)}var V9t=class extends Nre{constructor({operation:n,node:i,environment:l,message:p=`The operation: '${n}' is performing network activity. That is in violation of the policy`}){super({violation:"deterministic",message:p,node:i,environment:l}),this.operation=n}},vDn={"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 yur(o){return JCe(vDn,"exit",o)}var Uot=class extends Nre{constructor({kind:n,node:i,environment:l,message:p=`${n} operations are in violation of the policy`}){super({violation:"process",message:p,node:i,environment:l}),this.kind=n}};function Cur(o){return JCe(vDn,"spawnChild",o)}var vur={"node:console":"console",console:{__$$_PROXY_APPLY:!0}};function bur(o){return JCe(vur,!0,o)}function Sur({policy:o,env:n}){let i=g=>!o.console&&bur(g)?!1:!o.io.read&&hur(g)?new Lee((b,T)=>new Vot({...T,node:b,kind:"read"})):!o.io.write&&gur(g)?new Lee((b,T)=>new Vot({...T,node:b,kind:"write"})):!o.process.exit&&yur(g)?new Lee((b,T)=>new Uot({...T,node:b,kind:"exit"})):!o.process.exit&&Cur(g)?new Lee((b,T)=>new Uot({...T,node:b,kind:"spawnChild"})):!o.network&&Bur(g)?new Lee((b,T)=>new V9t({...T,node:b,operation:lDn(g.kind,g.path)})):o.deterministic&&_ur(g)?new Lee((b,T)=>new j9t({...T,node:b,operation:lDn(g.kind,g.path)})):!0,l=Object.entries(Object.getOwnPropertyDescriptors(n)),p=Object.assign({},...l.filter(([,g])=>!("value"in g)).map(([g,b])=>({[g]:b}))),m=Object.assign({},...l.filter(([,g])=>"value"in g).map(([g,b])=>({[g]:g==="require"?new Proxy(b.value,{apply(T,I,R=[]){let[V]=R;return aDn({policy:o,item:Reflect.apply(T,I,R),scope:V,hook:i})}}):aDn({policy:o,item:b.value,scope:g,hook:i})})));return Object.defineProperties(m,{...p})}function wVe(o,n){let[i]=n.split(".");if(GO.default.has(o.env,i))return o.env;if(o.parentEnv!=null)return wVe(o.parentEnv,n)}function U9t(o){return o.preset!=null?o.preset:o.parentEnv!=null?U9t(o.parentEnv):"NONE"}function bDn(o,n,i){let l=oDn(o.startingNode,i),p=oDn(n,i);if(l?.pos===p?.pos)return o;if(o.parentEnv!=null)return bDn(o.parentEnv,n,i)}function xD(o,n,i){let[l]=i.split(".");if(GO.default.has(n.env,l)){let p=GO.default.get(n.env,i);switch(i){case"__dirname":case"__filename":{let m=U9t(n);return(m==="NODE"||m==="NODE_CJS")&&typeof p=="function"&&o!=null?{literal:p(o.getSourceFile().fileName)}:{literal:p}}case"import.meta":{let m=U9t(n);return(m==="NODE_ESM"||m==="BROWSER"||m==="ECMA")&&typeof p=="object"&&p!=null&&typeof p.url=="function"&&o!=null?{literal:{url:p.url(o.getSourceFile().fileName)}}:{literal:p}}default:return{literal:p}}}if(n.parentEnv!=null)return xD(o,n.parentEnv,i)}function lx(o,n,i,...l){return l.some(p=>{let m=xD(o,n,p);return m==null?!1:m.literal===i})}function G9t(o){switch(o){case g1:case YL:case QM:case $M:case HCe:return!0;default:return!1}}function e_({environment:o,path:n,value:i,reporting:l,node:p,newBinding:m=!1}){let[g]=n.split(".");if(GO.default.has(o.env,g)||m||o.parentEnv==null){if(GO.default.has(o.env,n)&&GO.default.get(o.env,n)===i)return;GO.default.set(o.env,n,i),l.reportBindings!=null&&!G9t(n)&&l.reportBindings({path:n,value:i,node:p})}else{let b=o.parentEnv;for(;b!=null;)if(GO.default.has(b.env,g)){if(GO.default.has(b.env,n)&&GO.default.get(b.env,n)===i)return;GO.default.set(b.env,n,i),l.reportBindings!=null&&!G9t(n)&&l.reportBindings({path:n,value:i,node:p});return}else b.parentEnv==null?(GO.default.set(b.env,n,i),l.reportBindings!=null&&!G9t(n)&&l.reportBindings({path:n,value:i,node:p})):b=b.parentEnv}}function xur({inputEnvironment:{extra:o,preset:n},startingNode:i,policy:l}){let p;switch(n){case"NONE":p=Pre(o);break;case"ECMA":p=Pre(Kot(),o);break;case"NODE":case"NODE_CJS":p=Pre(nur(),o);break;case"NODE_ESM":p=Pre(aur(),o);break;case"BROWSER":p=Pre(sur(),o);break;default:p={};break}return{parentEnv:void 0,preset:n,startingNode:i,env:Sur({policy:l,env:p})}}function SDn(o,n){return o.kind===n.SyntaxKind.TrueKeyword||o.kind===n.SyntaxKind.FalseKeyword}function xDn(o,n){return o.kind===n.SyntaxKind.NullKeyword}function Eur(o,n){var i;return n.isStringLiteralLike(o)?{success:!0,value:o.text}:SDn(o,n)?{success:!0,value:o.kind===n.SyntaxKind.TrueKeyword}:n.isRegularExpressionLiteral(o)?{success:!0,value:new Function(`return ${o.text}`)()}:n.isNumericLiteral(o)?{success:!0,value:Number(o.text)}:!((i=n.isBigIntLiteral)===null||i===void 0)&&i.call(n,o)?{success:!0,value:BigInt(o.text)}:n.isIdentifier(o)&&o.text==="Infinity"?{success:!0,value:1/0}:n.isIdentifier(o)&&o.text==="NaN"?{success:!0,value:NaN}:n.isIdentifier(o)&&o.text==="null"?{success:!0,value:null}:n.isIdentifier(o)&&o.text==="undefined"?{success:!0,value:void 0}:xDn(o,n)?{success:!0,value:null}:{success:!1}}var H9t=class extends Nre{constructor({ops:n,node:i,environment:l,message:p=`Maximum ops exceeded: ${n}`}){super({violation:"maxOps",message:p,node:i,environment:l}),this.ops=n}};function EDn(o,n){let{node:i,environment:l,evaluate:p,stack:m,typescript:g,throwError:b,getCurrentError:T}=o,I=n??(i.initializer==null?void 0:p.expression(i.initializer,o));if(T()==null){if(I==null&&!g.isIdentifier(i.name))return b(new ZM({node:i,environment:l}));p.nodeWithArgument(i.name,I,o),T()==null&&m.push(I)}}function DDn(o,n){return o.kind===n.SyntaxKind.ThisKeyword}function Yot(o,n){return o.kind===n.SyntaxKind.SuperKeyword}function qSe(o){var n,i;let{node:l,evaluate:p,typescript:m}=o;if(m.isIdentifier(l))return l.text;if(!((n=m.isPrivateIdentifier)===null||n===void 0)&&n.call(m,l))return l.text;if(DDn(l,m))return $M;if(Yot(l,m))return HCe;if(m.isParenthesizedExpression(l))return qSe({...o,node:l.expression});if(!((i=m.isTypeAssertionExpression)===null||i===void 0)&&i.call(m,l)||!("isTypeAssertionExpression"in m)&&m.isTypeAssertion(l))return qSe({...o,node:l.expression});if(m.isPropertyAccessExpression(l)){let g=qSe({...o,node:l.expression});g==null&&(g=p.expression(l.expression,o));let b=qSe({...o,node:l.name});return b==null&&(b=p.expression(l.name,o)),g==null||b==null?void 0:`${g}.${b}`}else if(m.isElementAccessExpression(l)){let g=qSe({...o,node:l.expression});g==null&&(g=p.expression(l.expression,o));let b=p.expression(l.argumentExpression,o);return g==null||b==null?void 0:`${g}.${b}`}else if(m.isFunctionDeclaration(l))return l.name==null?void 0:l.name.text}var J9t=class extends ZM{constructor({node:n,environment:i,message:l="'No leftValue could be determined'"}){super({message:l,environment:i,node:n})}};function Wot(o,n){var i;return n.isParenthesizedExpression(o)||n.isAsExpression(o)||!((i=n.isTypeAssertionExpression)===null||i===void 0)&&i.call(n,o)||!("isTypeAssertionExpression"in n)&&n.isTypeAssertion(o)?Wot(o.expression,n):o}function TDn(o){return o!=null&&typeof o=="object"&&"kind"in o&&"flags"in o&&"pos"in o&&"end"in o}function Dur(o){var n;let{node:i,environment:l,evaluate:p,logger:m,throwError:g,typeChecker:b,typescript:T,getCurrentError:I}=o,R=p.expression(i.left,o);if(I()!=null)return;let V=p.expression(i.right,o);if(I()!=null)return;let X=qSe({...o,node:i.left}),ue=i.operatorToken.kind;switch(ue){case T.SyntaxKind.AmpersandToken:return R&V;case T.SyntaxKind.AmpersandAmpersandToken:return R&&V;case T.SyntaxKind.AmpersandEqualsToken:case T.SyntaxKind.CaretEqualsToken:case T.SyntaxKind.BarEqualsToken:case T.SyntaxKind.MinusEqualsToken:case T.SyntaxKind.PlusEqualsToken:case T.SyntaxKind.PercentEqualsToken:case T.SyntaxKind.SlashEqualsToken:case T.SyntaxKind.AsteriskEqualsToken:case T.SyntaxKind.AsteriskAsteriskEqualsToken:case T.SyntaxKind.LessThanLessThanEqualsToken:case T.SyntaxKind.GreaterThanGreaterThanEqualsToken:case T.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken:case T.SyntaxKind.QuestionQuestionEqualsToken:case T.SyntaxKind.BarBarEqualsToken:case T.SyntaxKind.AmpersandAmpersandEqualsToken:{let De=R;switch(ue){case T.SyntaxKind.AmpersandEqualsToken:De&=V;break;case T.SyntaxKind.CaretEqualsToken:De^=V;break;case T.SyntaxKind.BarEqualsToken:De|=V;break;case T.SyntaxKind.AsteriskEqualsToken:De*=V;break;case T.SyntaxKind.AsteriskAsteriskEqualsToken:De**=V;break;case T.SyntaxKind.LessThanLessThanEqualsToken:De<<=V;break;case T.SyntaxKind.GreaterThanGreaterThanEqualsToken:De>>=V;break;case T.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken:De>>>=V;break;case T.SyntaxKind.MinusEqualsToken:De-=V;break;case T.SyntaxKind.PlusEqualsToken:De+=V;break;case T.SyntaxKind.PercentEqualsToken:De%=V;break;case T.SyntaxKind.SlashEqualsToken:De/=V;break;case T.SyntaxKind.QuestionQuestionEqualsToken:De=R??V;break;case T.SyntaxKind.BarBarEqualsToken:R||(De=V);break;case T.SyntaxKind.AmpersandAmpersandEqualsToken:R&&(De=V);break}return X!=null&&e_({...o,path:X,value:De}),De}case T.SyntaxKind.AsteriskToken:return R*V;case T.SyntaxKind.AsteriskAsteriskToken:return R**V;case T.SyntaxKind.BarToken:return R|V;case T.SyntaxKind.BarBarToken:return R||V;case T.SyntaxKind.CaretToken:return R^V;case T.SyntaxKind.CommaToken:return V;case T.SyntaxKind.MinusToken:return R-V;case T.SyntaxKind.PlusToken:return m.logResult(R+V,"BinaryExpression (PlusToken)"),R+V;case T.SyntaxKind.PercentToken:return R%V;case T.SyntaxKind.SlashToken:return R/V;case T.SyntaxKind.EqualsToken:{if(X!=null){let De=Wot(i.left,T),we=b?.getSymbolAtLocation(De),We=we?.valueDeclaration;if(We==null&&b==null&&T.isIdentifier(De)){let Me=Q9t(De.parent,De.text,o);TDn(Me)&&(We=Me)}let Ne=We==null?l:(n=bDn(l,We,T))!==null&&n!==void 0?n:l;e_({...o,environment:Ne,path:X,value:V}),m.logBinding(X,V,"Assignment")}else return g(new J9t({node:i.left,environment:l}));return V}case T.SyntaxKind.EqualsEqualsToken:return R==V;case T.SyntaxKind.EqualsEqualsEqualsToken:return R===V;case T.SyntaxKind.ExclamationEqualsToken:return R!=V;case T.SyntaxKind.ExclamationEqualsEqualsToken:return R!==V;case T.SyntaxKind.GreaterThanToken:return R>V;case T.SyntaxKind.GreaterThanEqualsToken:return R>=V;case T.SyntaxKind.LessThanToken:return R<V;case T.SyntaxKind.LessThanEqualsToken:return R<=V;case T.SyntaxKind.InKeyword:return R in V;case T.SyntaxKind.QuestionQuestionToken:return R??V;case T.SyntaxKind.InstanceOfKeyword:return R instanceof V}return g(new qI({node:i.operatorToken,typescript:T,environment:l}))}var Z9t="___lazyCallFlag";function Tur(o){return o!=null&&typeof o=="object"&&Z9t in o}function eWt(o){return o===void 0?"undefined":o===null?"null":typeof o=="string"?`"${o}"`:o.toString()}var Hot=class extends ZM{constructor({value:n,node:i,environment:l,message:p=`${eWt(n)} is not a function'`}){super({message:p,environment:l,node:i}),this.value=n}};function Ire(o,n){var i;return Yot(o,n)?!0:n.isPropertyAccessExpression(o)?Ire(o.expression,n)||Ire(o.name,n):n.isElementAccessExpression(o)?Ire(o.expression,n)||Ire(o.argumentExpression,n):n.isParenthesizedExpression(o)||n.isAsExpression(o)||!((i=n.isTypeAssertionExpression)===null||i===void 0)&&i.call(n,o)||!("isTypeAssertionExpression"in n)&&n.isTypeAssertion(o)?Ire(o.expression,n):!1}function Aur(o){let{node:n,environment:i,evaluate:l,throwError:p,typescript:m,logger:g,getCurrentError:b}=o,T=[];for(let R=0;R<n.arguments.length;R++)if(T[R]=l.expression(n.arguments[R],o),b()!=null)return;let I=l.expression(n.expression,o);if(b()==null)if(Tur(I)){let R=Ire(n.expression,m)?xD(n,i,$M):void 0,V=I.invoke(R?.literal,...T);return b()!=null?void 0:(g.logResult(V,"CallExpression"),V)}else{if(n.questionDotToken==null&&typeof I!="function")return p(new Hot({value:I,node:n.expression,environment:i}));let R=typeof I!="function"?void 0:Xot(n,o,I(...T));return b()!=null?void 0:(g.logResult(R,"CallExpression"),R)}}function kur({node:o,evaluate:n,...i}){return n.expression(o.expression,i)}function _I(o,n){return{parentEnv:o,startingNode:n,env:{}}}function DU(o,n){let i=Array.isArray(o)?o:o.modifiers;return i!=null&&i.some(l=>l.kind===n)}function TU(o,n,i){let{node:l,evaluate:p,environment:m,typescript:g,getCurrentError:b}=o,T=l.filter(I=>!(g.isIdentifier(I.name)&&I.name.text==="this"));for(let I=0;I<T.length;I++){let R=T[I];if(R.dotDotDotToken!=null){if(p.nodeWithArgument(R,n.slice(I),o),b()!=null)return;break}else{if(p.nodeWithArgument(R,n[I],o),b()!=null)return;if(i!=null&&g.isIdentifier(R.name)&&(DU(R,g.SyntaxKind.PublicKeyword)||DU(R,g.SyntaxKind.ProtectedKeyword)||DU(R,g.SyntaxKind.PrivateKeyword))){let V=xD(R,m,R.name.text);V!=null&&(i[R.name.text]=V.literal)}}}}function wur(o){let{node:n,environment:i,evaluate:l,stack:p,typescript:m,getCurrentError:g}=o,b=DU(n,m.SyntaxKind.AsyncKeyword)?async(...T)=>{let I=_I(i,n),R={...o,environment:I};if(e_({...R,path:g1,value:!1,newBinding:!0}),e_({...R,path:"arguments",value:arguments,newBinding:!0}),TU({...o,node:n.parameters,environment:I},T),g()==null)return m.isBlock(n.body)?(l.statement(n.body,R),g()!=null?void 0:lx(n,I,!0,g1)?p.pop():void 0):l.expression(n.body,R)}:(...T)=>{let I=_I(i,n),R={...o,environment:I};if(e_({...R,path:g1,value:!1,newBinding:!0}),e_({...R,path:"arguments",value:arguments,newBinding:!0}),TU({...o,node:n.parameters,environment:I},T),g()==null)return m.isBlock(n.body)?(l.statement(n.body,R),g()!=null?void 0:lx(n,I,!0,g1)?p.pop():void 0):l.expression(n.body,R)};return b.toString=()=>"[Function: anonymous]",Object.setPrototypeOf(b,xD(n,i,"Function").literal),b}function Iur({node:o}){return o.text}function Pur({node:o}){return Number(o.text)}function Nur({node:o,typescript:n}){return o.kind===n.SyntaxKind.TrueKeyword}function Rur({node:o,environment:n}){let i=xD(o,n,"Function").literal;return new i(`return ${o.text}`)()}function Lur(o){let{node:n,evaluate:i,environment:l,getCurrentError:p}=o,m=xD(n,l,"Object").literal,g=m.create(m.prototype);e_({...o,path:$M,value:g,newBinding:!0});for(let b of n.properties)if(i.nodeWithArgument(b,g,o),p()!=null)return;return g}function Mur(o){return o!=null&&o[Symbol.iterator]!=null}function Fur(o){let{node:n,environment:i,evaluate:l,typescript:p,getCurrentError:m}=o,b=xD(n,i,"Array").literal.of();for(let T of n.elements){let I=l.expression(T,o);if(m()!=null)return;p.isSpreadElement(T)&&Mur(I)?b.push(...I):b.push(I)}return b}var Jot=class extends ZM{constructor({node:n,environment:i,message:l=`'${n.text}' is not defined'`}){super({message:l,environment:i,node:n})}};function uDn(o){let{node:n,environment:i,typeChecker:l,evaluate:p,stack:m,logger:g,reporting:b,typescript:T,throwError:I,getCurrentError:R}=o,V=xD(n,i,n.text);if(V!=null)return g.logBinding(n.text,V.literal,"Lexical Environment match"),V.literal;let X=T.isShorthandPropertyAssignment(n.parent)?l?.getShorthandAssignmentValueSymbol(n.parent):l?.getSymbolAtLocation(n),ue=X?.valueDeclaration;if(X!=null&&ue==null)try{let De=l?.getAliasedSymbol(X);ue=De?.valueDeclaration}catch{}if(ue==null){let De=Q9t(n.parent,n.text,o);if(R()!=null)return;if(TDn(De)&&!T.isIdentifier(De))ue=De;else if(De!=null)return e_({...o,path:n.text,value:De}),g.logBinding(n.text,De,"Discovered declaration value"),De}if(ue!=null){if(ue.getSourceFile().isDeclarationFile){let we=jot({...o,node:ue});return R()!=null?void 0:(e_({environment:i,path:n.text,value:we,reporting:b,node:ue}),g.logBinding(n.text,we,`Discovered declaration value${ue.getSourceFile()===n.getSourceFile()?"":` (imported into '${n.getSourceFile().fileName}' from '${ue.getSourceFile().fileName}')`}`),we)}if(T.isVariableDeclaration(ue)&&ue.getSourceFile().fileName===n.getSourceFile().fileName&&ue.pos>n.pos)if(T.isVariableDeclarationList(ue.parent)&&hDn(ue.parent,T)){e_({...o,path:n.text,value:void 0,newBinding:!0,node:ue}),g.logBinding(n.text,void 0,"Hoisted var declaration");return}else return I(new Jot({node:n,environment:i}));if(p.declaration(ue,o),R()!=null)return;let De=m.pop();return e_({...o,path:n.text,value:De,node:ue}),g.logBinding(n.text,De,`Discovered declaration value${ue.getSourceFile()===n.getSourceFile()?"":` (imported into '${n.getSourceFile().fileName}' from '${ue.getSourceFile().fileName}')`}`),De}return I(new Jot({node:n,environment:i}))}function Our(o){let{node:n,environment:i,typescript:l,evaluate:p,getCurrentError:m}=o,g=_I(i,n);for(let b=0;b<n.statements.length;b++){let T=n.statements[b];if(!(l.isConstructorDeclaration(n.parent)&&b===0&&l.isExpressionStatement(T)&&l.isCallExpression(T.expression)&&Yot(T.expression.expression,l))&&(p.statement(T,{...o,environment:g}),m()!=null||lx(n,g,!0,YL,QM,g1)))break}}function Wur({node:o,evaluate:n,stack:i,...l}){let{getCurrentError:p}=l;if(e_({...l,environment:l.environment,path:g1,value:!0,node:o}),o.expression==null)i.push(void 0);else{let m=n.expression(o.expression,l);if(p()!=null)return;i.push(m)}}function ADn({node:o,evaluate:n,...i}){for(let l of o.declarations)if(n.declaration(l,i),i.getCurrentError()!=null)return}function Gur({node:o,...n}){ADn({node:o.declarationList,...n})}function zur(o){var n,i;let{node:l,environment:p,evaluate:m,reporting:g,typescript:b,throwError:T,getCurrentError:I}=o,R=m.expression(l.operand,o);if(I()==null)switch(l.operator){case b.SyntaxKind.PlusToken:return+R;case b.SyntaxKind.MinusToken:return-R;case b.SyntaxKind.TildeToken:return~R;case b.SyntaxKind.ExclamationToken:return!R;case b.SyntaxKind.PlusPlusToken:{if(!b.isIdentifier(l.operand)&&!(!((n=b.isPrivateIdentifier)===null||n===void 0)&&n.call(b,l.operand)))return T(new qI({node:l.operand,environment:p,typescript:b}));let V=wVe(p,l.operand.text),X=++V[l.operand.text];return g.reportBindings!=null&&g.reportBindings({path:l.operand.text,value:X,node:l}),X}case b.SyntaxKind.MinusMinusToken:{if(!b.isIdentifier(l.operand)&&!(!((i=b.isPrivateIdentifier)===null||i===void 0)&&i.call(b,l.operand)))return T(new qI({node:l.operand,environment:p,typescript:b}));let V=wVe(p,l.operand.text),X=--V[l.operand.text];return g.reportBindings!=null&&g.reportBindings({path:l.operand.text,value:X,node:l}),X}}}function jur(o){let{evaluate:n,node:i,statementTraversalStack:l,environment:p,typescript:m,getCurrentError:g}=o,b=n.expression(i.expression,o);if(b==null||g()!=null)return;let T=i.questionDotToken!=null&&b==null?void 0:b[i.name.text];return typeof T=="function"&&l.includes(m.SyntaxKind.CallExpression)?{[Z9t]:0,invoke:(I,...R)=>Xot(i,o,I!=null&&!$9t(T,p)?b[i.name.text].call(I,...R):b[i.name.text](...R))}:T}function Vur(o){let{node:n,environment:i,evaluate:l,statementTraversalStack:p,typescript:m,getCurrentError:g}=o,b=l.expression(n.expression,o);if(g()!=null)return;let T=l.expression(n.argumentExpression,o);if(g()!=null)return;let I=n.questionDotToken!=null&&b==null?void 0:b[T];return typeof I=="function"&&p.includes(m.SyntaxKind.CallExpression)?{[Z9t]:0,invoke:(R,...V)=>Xot(n,o,R!=null&&!$9t(I,i)?b[T].call(R,...V):b[T](...V))}:I}function Uur({node:o,evaluate:n,...i}){return n.expression(o.expression,i)}function Hur(o){let{node:n,environment:i,evaluate:l,stack:p,typescript:m,getCurrentError:g}=o,b=n.name==null?void 0:n.name.text,T=DU(n,m.SyntaxKind.AsyncKeyword)?async function(...R){let V=_I(i,n),X={...o,environment:V};if(e_({...X,path:g1,value:!1,newBinding:!0}),e_({...X,path:"arguments",value:arguments,newBinding:!0}),this!=null&&e_({...X,path:$M,value:this,newBinding:!0}),TU({...o,node:n.parameters,environment:V},R),g()!=null)return;let ue=n.getSourceFile();if(b!=null&&ue.isDeclarationFile)return jot(o)(...R);if(n.body!=null&&(l.statement(n.body,X),g()==null&&lx(n,V,!0,g1)))return p.pop()}:function(...R){let V=_I(i,n),X={...o,environment:V};if(e_({...X,path:g1,value:!1,newBinding:!0}),e_({...X,path:"arguments",value:arguments,newBinding:!0}),this!=null&&e_({...X,path:$M,value:this,newBinding:!0}),TU({...X,node:n.parameters},R),g()!=null)return;let ue=n.getSourceFile();if(b!=null&&ue.isDeclarationFile)return jot(o)(...R);if(n.body!=null&&(l.statement(n.body,X),g()==null&&lx(n,V,!0,g1)))return p.pop()};b!=null&&e_({...o,path:b,value:T.bind(T)}),T.toString=()=>`[Function${b==null?"":`: ${b}`}]`,Object.setPrototypeOf(T,xD(n,i,"Function").literal),p.push(T)}function Jur({node:o,evaluate:n,...i}){let{getCurrentError:l}=i,p=n.expression(o.expression,i);if(l()==null){if(p){if(n.statement(o.thenStatement,i),l()!=null)return}else if(o.elseStatement!=null)return n.statement(o.elseStatement,i)}}function qur({node:o,evaluate:n,stack:i,...l}){let p=n.expression(o.expression,l);l.getCurrentError()==null&&i.push(p)}function Kur({node:o,evaluate:n,...i}){let l="";l+=o.head.text;for(let p of o.templateSpans){let m=n.expression(p.expression,i);if(i.getCurrentError()!=null)return;l+=m,l+=p.literal.text}return l}function Xur({node:o,evaluate:n,...i}){return n.expression(o.expression,i)}function Yur(o){var n,i;let{evaluate:l,node:p,environment:m,typescript:g,throwError:b,reporting:T}=o;switch(l.expression(p.operand,o),p.operator){case g.SyntaxKind.PlusPlusToken:{if(!g.isIdentifier(p.operand)&&!(!((n=g.isPrivateIdentifier)===null||n===void 0)&&n.call(g,p.operand)))return b(new qI({node:p.operand,environment:m,typescript:g}));let I=wVe(m,p.operand.text)[p.operand.text]++;return T.reportBindings!=null&&T.reportBindings({path:p.operand.text,value:I,node:p}),I}case g.SyntaxKind.MinusMinusToken:{if(!g.isIdentifier(p.operand)&&!(!((i=g.isPrivateIdentifier)===null||i===void 0)&&i.call(g,p.operand)))return b(new qI({node:p.operand,environment:m,typescript:g}));let I=wVe(m,p.operand.text)[p.operand.text]--;return T.reportBindings!=null&&T.reportBindings({path:p.operand.text,value:I,node:p}),I}}}function Qur({node:o,evaluate:n,...i}){let{getCurrentError:l}=i,p=[];if(o.arguments!=null){for(let g=0;g<o.arguments.length;g++)if(p[g]=n.expression(o.arguments[g],i),l()!=null)return}let m=n.expression(o.expression,i);if(l()==null)return typeof m=="function"&&e_({...i,node:o,path:"[[NewTarget]]",value:m,newBinding:!0}),Xot(o,i,new m(...p))}function $ur({node:o,evaluate:n,...i}){return n.expression(o.expression,i)}function Zur({node:o,evaluate:n,...i}){return n.expression(o.expression,i)}function epr({node:o,evaluate:n,...i}){let l=n.expression(o.expression,i);i.getCurrentError()==null&&n.nodeWithArgument(o.caseBlock,l,i)}var q9t=class extends ZM{constructor({message:n="It is not possible to evaluate an async iterator'",typescript:i,environment:l}){var p,m;super({message:n,environment:l,node:(m=(p=i.factory)===null||p===void 0?void 0:p.createEmptyStatement())!==null&&m!==void 0?m:i.createEmptyStatement()})}};function tpr(o){let{node:n,environment:i,evaluate:l,logger:p,typescript:m,throwError:g,getCurrentError:b}=o,T=l.expression(n.expression,o);if(b()==null){if(m.isVariableDeclarationList(n.initializer)){if(n.initializer.declarations.length>1)return g(new qI({node:n.initializer.declarations[1],environment:i,typescript:m}))}else return g(new qI({node:n.initializer,environment:i,typescript:m}));if(n.awaitModifier!=null)return g(new q9t({typescript:m,environment:i}));for(let I of T){let R=_I(i,n),V={...o,environment:R};if(e_({...V,path:YL,value:!1,newBinding:!0}),e_({...V,path:QM,value:!1,newBinding:!0}),l.nodeWithArgument(n.initializer.declarations[0],I,V),b()!=null||(l.statement(n.statement,V),b()!=null))return;if(lx(n,R,!0,YL)){p.logBreak(n,m);break}else if(lx(n,R,!0,QM)){p.logContinue(n,m);continue}else if(lx(n,R,!0,g1)){p.logReturn(n,m);return}}}}function npr({node:o,environment:n}){let i=xD(o,n,$M);return i?.literal}function rpr(o){e_({...o,path:YL,value:!0})}function ipr(o){e_({...o,path:QM,value:!0})}function opr({environment:o,evaluate:n,typescript:i,...l}){let{node:p,getCurrentError:m}=l,g=_I(o,p),b={...l,environment:g};if(p.initializer!==void 0){if(i.isVariableDeclarationList(p.initializer)){for(let T of p.initializer.declarations)if(n.declaration(T,b),m()!=null)return}else if(n.expression(p.initializer,b),m()!=null)return}for(;;){let T=_I(g,p),I={...l,environment:T};if(e_({...I,path:YL,value:!1,newBinding:!0}),e_({...I,path:QM,value:!1,newBinding:!0}),!(p.condition==null?!0:n.expression(p.condition,b))||m()!=null||(n.statement(p.statement,I),m()!=null))return;if(lx(p,T,!0,YL))break;if(lx(p,T,!0,g1))return;if(p.incrementor!=null){if(n.expression(p.incrementor,b),m()!=null)return}else if(lx(p,T,!0,QM))continue}}function spr(o){let{node:n,environment:i,evaluate:l,logger:p,typescript:m,getCurrentError:g}=o,b=l.expression(n.expression,o);if(g()==null)for(;b;){let T=_I(i,n),I={...o,environment:T};if(e_({...I,path:YL,value:!1,newBinding:!0}),e_({...I,path:QM,value:!1,newBinding:!0}),l.statement(n.statement,I),g()!=null)return;if(lx(n,T,!0,YL)){p.logBreak(n,m);break}else if(lx(n,T,!0,g1)){p.logReturn(n,m);return}if(b=l.expression(n.expression,o),g()!=null)return;if(lx(n,T,!0,QM)){p.logContinue(n,m);continue}}}function apr(o){let{node:n,environment:i,evaluate:l,logger:p,typescript:m,throwError:g,getCurrentError:b}=o,T=l.expression(n.expression,o);if(b()==null){if(m.isVariableDeclarationList(n.initializer)){if(n.initializer.declarations.length>1)return g(new qI({node:n.initializer.declarations[1],environment:i,typescript:m}))}else return g(new qI({node:n.initializer,environment:i,typescript:m}));for(let I in T){let R=_I(i,n),V={...o,environment:R};if(e_({...V,path:YL,value:!1,newBinding:!0}),e_({...V,path:QM,value:!1,newBinding:!0}),l.nodeWithArgument(n.initializer.declarations[0],I,V),b()!=null||(l.statement(n.statement,V),b()!=null))return;if(lx(n,R,!0,YL)){p.logBreak(n,m);break}else if(lx(n,R,!0,QM)){p.logContinue(n,m);continue}else if(lx(n,R,!0,g1)){p.logReturn(n,m);return}}}}function lpr(o){let{node:n,environment:i,evaluate:l,stack:p,typescript:m,getCurrentError:g}=o,b=n.name==null?void 0:n.name.text,T=DU(n,m.SyntaxKind.AsyncKeyword)?async function(...R){let V=_I(i,n),X={...o,environment:V};if(e_({...X,path:g1,value:!1,newBinding:!0}),e_({...X,path:"arguments",value:arguments,newBinding:!0}),this!=null&&e_({...X,path:$M,value:this,newBinding:!0}),TU({...X,node:n.parameters},R),!(n.body==null||g()!=null)&&(l.statement(n.body,X),g()==null&&lx(n,V,!0,g1)))return p.pop()}:function(...R){let V=_I(i,n),X={...o,environment:V};if(e_({...X,path:g1,value:!1,newBinding:!0}),e_({...X,path:"arguments",value:arguments,newBinding:!0}),this!=null&&e_({...X,path:$M,value:this,newBinding:!0}),TU({...X,node:n.parameters},R),!(n.body==null||g()!=null)&&(l.statement(n.body,X),g()==null&&lx(n,V,!0,g1)))return p.pop()};return b!=null&&e_({...o,path:b,value:T.bind(T)}),T.toString=()=>`[Function${b==null?"":`: ${b}`}]`,Object.setPrototypeOf(T,xD(n,i,"Function").literal),T}var K9t=class extends ZM{constructor({node:n,environment:i,message:l="Missing catch or finally after try"}){super({node:n,environment:i,message:l})}};function cpr(o){let{node:n,evaluate:i,environment:l,throwError:p}=o,m,g=()=>{try{return i.statement(n.tryBlock,{...o,throwError:I=>(m=I,I),getCurrentError:()=>m})}catch(I){m=I}},b=I=>{i.nodeWithArgument(n.catchClause,I,o)},T=()=>{let I;i.statement(n.finallyBlock,{...o,throwError:R=>(I=R,o.throwError(R),R),getCurrentError:()=>I})};if(n.catchClause==null&&n.finallyBlock==null)return p(new K9t({node:n,environment:l}));n.catchClause!=null&&n.finallyBlock==null?(g(),m!=null&&b(m)):n.catchClause!=null&&n.finallyBlock!=null?(g(),m!=null&&b(m),T()):n.catchClause==null&&n.finallyBlock!=null&&(g(),m!=null&&p(m),T())}function kDn({name:o,extendedType:n,ctor:i=()=>{}}){return n==null?new Function("ctor",`return class ${o??""} {constructor () {const ctorReturnValue = ctor.call(this, ...arguments); if (ctorReturnValue != null) return ctorReturnValue;}}`)(i):new Function("extendedType","ctor",`return class ${o??""} extends extendedType {constructor () {super(...arguments); const ctorReturnValue = ctor.call(this, ...arguments); if (ctorReturnValue != null) return ctorReturnValue;}}`)(n,i)}function IVe(o,n){return"canHaveDecorators"in n?n.canHaveDecorators(o):!0}function PVe(o,n){var i;if("getDecorators"in n)return n.getDecorators(o);{let l="decorators"in o&&Array.isArray(o.decorators)?o.decorators:void 0,p=(i=o.modifiers)===null||i===void 0?void 0:i.filter(m=>"expression"in m);return[...l??[],...p??[]]}}function upr(o){var n;let{node:i,evaluate:l,stack:p,logger:m,typescript:g,getCurrentError:b}=o,T,I=i.members.find(g.isConstructorDeclaration),R=i.members.filter(De=>!g.isConstructorDeclaration(De)),V;if(I!=null){if(l.declaration(I,o),b()!=null)return;V=p.pop()}if(i.heritageClauses!=null){let De=i.heritageClauses.find(we=>we.token===g.SyntaxKind.ExtendsKeyword);if(De!=null){let[we]=De.types;if(we!=null&&(T=l.expression(we.expression,o),b()!=null))return}}let X=i.name==null?void 0:i.name.text,ue=kDn({name:X,extendedType:T,ctor:V});if(IVe(i,g))for(let De of(n=PVe(i,g))!==null&&n!==void 0?n:[]){if(l.nodeWithArgument(De,[ue],o),b()!=null)return;ue=p.pop()}ue.toString=()=>`[Class${X==null?"":`: ${X}`}]`,X!=null&&e_({...o,path:X,value:ue,newBinding:!0});for(let De of R)if(l.nodeWithArgument(De,DU(De,g.SyntaxKind.StaticKeyword)?ue:ue.prototype,o),b()!=null)return;m.logHeritage(ue),p.push(ue),m.logStack(p)}function ppr(o){let{node:n,environment:i,evaluate:l,stack:p,getCurrentError:m}=o;function g(...b){let T=_I(i,n),I={...o,environment:T};if(e_({...I,path:g1,value:!1,newBinding:!0}),e_({...I,path:"arguments",value:arguments,newBinding:!0}),this!=null&&e_({...I,path:$M,value:this,newBinding:!0}),TU({...I,node:n.parameters},b,this),!(n.body==null||m()!=null)&&(l.statement(n.body,I),m()==null&&lx(n,T,!0,g1)))return p.pop()}g.toString=()=>"[Function: constructor]",p.push(g)}function fpr({node:o,environment:n}){let i=xD(o,n,HCe);return i?.literal}function dpr({node:o,evaluate:n,...i}){return n.expression(o.expression,i)}function mpr(o){var n;let{node:i,evaluate:l,stack:p,logger:m,typescript:g,getCurrentError:b}=o,T,I=i.members.find(g.isConstructorDeclaration),R=i.members.filter(De=>!g.isConstructorDeclaration(De)),V;if(I!=null){if(l.declaration(I,o),b()!=null)return;V=p.pop()}if(i.heritageClauses!=null){let De=i.heritageClauses.find(we=>we.token===g.SyntaxKind.ExtendsKeyword);if(De!=null){let[we]=De.types;if(we!=null&&(T=l.expression(we.expression,o),b()!=null))return}}let X=i.name==null?void 0:i.name.text,ue=kDn({name:X,extendedType:T,ctor:V});if(IVe(i,g))for(let De of(n=PVe(i,g))!==null&&n!==void 0?n:[]){if(l.nodeWithArgument(De,[ue],o),b()!=null)return;ue=p.pop()}ue.toString=()=>`[Class${X==null?"":`: ${X}`}]`,X!=null&&e_({...o,path:X,value:ue,newBinding:!0});for(let De of R)if(l.nodeWithArgument(De,DU(De,g.SyntaxKind.StaticKeyword)?ue:ue.prototype,o),b()!=null)return;return m.logHeritage(ue),ue}function _pr(o){return null}function hpr({node:o,evaluate:n,...i}){n.expression(o.expression,i)}function gpr({evaluate:o,node:n,...i}){let l=o.expression(n.expression,i);if(i.getCurrentError()==null)return typeof l}function Bpr({node:o,environment:n}){let i=xD(o,n,"BigInt").literal;return i(o.text.endsWith("n")?o.text.slice(0,-1):o.text)}function ypr(o){let{node:n,environment:i,evaluate:l,stack:p,getCurrentError:m}=o,g=xD(n,i,"Object").literal,b=g.create(g.prototype),T=n.name.text;e_({...o,path:T,value:b,newBinding:!0});for(let I of n.members)if(l.nodeWithArgument(I,b,o),m()!=null)return;b.toString=()=>`[Enum: ${T}]`,p.push(b)}function Cpr(o){let{node:n,evaluate:i,environment:l,typeChecker:p,stack:m,getCurrentError:g}=o,b=xD(n,l,"Object").literal,T=b.create(b.prototype),I=p?.getSymbolAtLocation(n);if(I!=null){let R=I.exports;if(R!=null)for(let[V,X]of R.entries()){let ue=X.valueDeclaration;if(ue==null||(i.declaration(ue,o),g()!=null))return;T[V]=m.pop()}}m.push(T)}function vpr(o){let{getCurrentError:n,stack:i}=o,l=jot(o);n()==null&&i.push(l)}function bpr({node:o,evaluate:n,...i}){o.importClause!=null&&n.declaration(o.importClause,i)}function Spr({node:o,evaluate:n,...i}){let{getCurrentError:l,throwError:p}=i,m=n.expression(o.expression,i);if(l()==null)return p(m)}var X9t=class extends Nre{constructor({duration:n,environment:i,node:l,message:p=`Maximum operation duration exceeded: ${n}`}){super({violation:"maxOpDuration",message:p,node:l,environment:i}),this.duration=n}};async function xpr(o){let{node:n,environment:i,evaluate:l,policy:p,throwError:m,getCurrentError:g}=o,b=p.maxOpDuration===1/0?void 0:setTimeout(()=>{m(new X9t({duration:p.maxOpDuration,node:n,environment:i}))},p.maxOpDuration),T=l.expression(n.expression,o);if(b!=null&&clearTimeout(b),g()==null)return T}function Epr({node:o,evaluate:n,...i}){let{getCurrentError:l}=i,p=n.expression(o.condition,i);if(l()==null)return p?n.expression(o.whenTrue,i):n.expression(o.whenFalse,i)}function Qot(o,n){let i=o;for(;i!=null&&!n.isSourceFile(i);){if(DU(i,n.SyntaxKind.StaticKeyword))return!0;i=i.parent}return!1}function wDn(o,n){var i,l;let{node:p,environment:m,evaluate:g,stack:b,typescript:T,getCurrentError:I}=o,R=g.nodeWithValue(p.name,o);if(I()!=null)return;let V=Qot(p,T);if(n==null){let ue;if(T.isClassLike(p.parent)){if(g.declaration(p.parent,o),I()!=null)return;ue=b.pop()}else if(ue=g.expression(p.parent,o),I()!=null)return;b.push(V?ue[R]:ue.prototype[R]);return}let X=DU(p,T.SyntaxKind.AsyncKeyword)?async function(...De){let we=_I(m,p),We={...o,environment:we};if(e_({...We,path:g1,value:!1,newBinding:!0}),e_({...We,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(e_({...We,path:$M,value:this,newBinding:!0}),e_({...We,path:HCe,value:V?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),TU({...o,node:p.parameters,environment:we},De),!(p.body==null||I()!=null)&&(g.statement(p.body,We),I()==null&&lx(p,we,!0,g1)))return b.pop()}:function(...De){let we=_I(m,p),We={...o,environment:we};if(e_({...We,path:g1,value:!1,newBinding:!0}),e_({...We,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(e_({...We,path:$M,value:this,newBinding:!0}),e_({...We,path:HCe,value:V?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),TU({...o,node:p.parameters,environment:we},De),!(p.body==null||I()!=null)&&(g.statement(p.body,We),I()==null&&lx(p,we,!0,g1)))return b.pop()};if(X.toString=()=>`[Method: ${R}]`,Object.setPrototypeOf(X,xD(p,m,"Function").literal),n[R]=X,IVe(p,T))for(let ue of(i=PVe(p,T))!==null&&i!==void 0?i:[]){if(g.nodeWithArgument(ue,[n,R],o),I()!=null)return;b.pop()}if(p.parameters!=null){let ue=p.parameters.filter(De=>!(T.isIdentifier(De.name)&&De.name.text==="this"));for(let De=0;De<ue.length;De++){let we=ue[De];if(IVe(we,T))for(let We of(l=PVe(we,T))!==null&&l!==void 0?l:[]){if(g.nodeWithArgument(We,[n,R,De],o),I()!=null)return;b.pop()}}}}function IDn({node:o,evaluate:n,typescript:i,stack:l,...p},m){var g;let{getCurrentError:b}=p,T=n.nodeWithValue(o.name,p);if(b()==null){if(m==null){if(n.declaration(o.parent,p),b()!=null)return;let I=l.pop(),R=Qot(o,i);l.push(R?I[T]:I.prototype[T]);return}if(m[T]=o.initializer==null?void 0:n.expression(o.initializer,p),b()==null&&IVe(o,i))for(let I of(g=PVe(o,i))!==null&&g!==void 0?g:[]){if(n.nodeWithArgument(I,[m,T],p),b()!=null)return;l.pop()}}}function PDn(o,n){let{node:i,environment:l,evaluate:p,stack:m,typescript:g,getCurrentError:b}=o;if(g.isTypeLiteralNode(i.parent)||g.isInterfaceDeclaration(i.parent))return;let T=p.nodeWithValue(i.name,o);if(b()!=null)return;let I=Qot(i,g);if(n==null){let X;if(g.isClassLike(i.parent)){if(p.declaration(i.parent,o),b()!=null)return;X=m.pop()}else if(X=p.expression(i.parent,o),b()!=null)return;m.push(I?X[T]:X.prototype[T]);return}function R(){let X=_I(l,i),ue={...o,environment:X};if(e_({...ue,path:g1,value:!1,newBinding:!0}),e_({...ue,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(e_({...ue,path:$M,value:this,newBinding:!0}),e_({...ue,path:HCe,value:I?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),i.body!=null&&(p.statement(i.body,ue),b()==null&&lx(i,X,!0,g1)))return m.pop()}R.toString=()=>`[Get: ${T}]`;let V=Object.getOwnPropertyDescriptor(n,T);V==null&&(V={}),Object.defineProperty(n,T,{...V,configurable:!0,get:R})}function Dpr({node:o,evaluate:n,...i}){let{getCurrentError:l}=i;if(!(o.name!=null&&(n.declaration(o.name,i),l()!=null))&&o.namedBindings!=null)if("elements"in o.namedBindings){for(let p of o.namedBindings.elements)if(n.declaration(p,i),l()!=null)return}else n.declaration(o.namedBindings.name,i)}function Tpr({node:o,evaluate:n,...i}){var l;n.declaration((l=o.propertyName)!==null&&l!==void 0?l:o.name,i)}function Apr({node:o,evaluate:n,...i}){n.declaration(o.name,i)}var qot=class extends ZM{constructor({node:n,environment:i,message:l="'SyntaxError'"}){super({message:l,environment:i,node:n})}};function kpr({node:o,typescript:n,throwError:i,environment:l}){var p,m;switch(o.keywordToken){case n.SyntaxKind.NewKeyword:switch(o.name.text){case"target":return(p=xD(o,l,"[[NewTarget]]"))===null||p===void 0?void 0:p.literal;default:return i(new qot({node:o.name,environment:l}))}case n.SyntaxKind.ImportKeyword:switch(o.name.text){case"meta":return(m=xD(o,l,"import.meta"))===null||m===void 0?void 0:m.literal;default:return i(new qot({node:o.name,environment:l}))}}}function tWt({node:o,...n}){var i,l,p,m,g,b;return n.typescript.isIdentifier(o)?uDn({node:o,...n}):!((l=(i=n.typescript).isPrivateIdentifier)===null||l===void 0)&&l.call(i,o)?uDn({node:o,...n}):n.typescript.isStringLiteralLike(o)?Iur({node:o,...n}):n.typescript.isNumericLiteral(o)?Pur({node:o,...n}):SDn(o,n.typescript)?Nur({node:o,...n}):n.typescript.isForOfStatement(o)?tpr({node:o,...n}):n.typescript.isForInStatement(o)?apr({node:o,...n}):n.typescript.isForStatement(o)?opr({node:o,...n}):n.typescript.isWhileStatement(o)?spr({node:o,...n}):n.typescript.isRegularExpressionLiteral(o)?Rur({node:o,...n}):n.typescript.isObjectLiteralExpression(o)?Lur({node:o,...n}):n.typescript.isAwaitExpression(o)?xpr({node:o,...n}):!((m=(p=n.typescript).isTypeAssertionExpression)===null||m===void 0)&&m.call(p,o)||!("isTypeAssertionExpression"in n.typescript)&&n.typescript.isTypeAssertion(o)?Xur({node:o,...n}):n.typescript.isTemplateExpression(o)?Kur({node:o,...n}):n.typescript.isMethodDeclaration(o)?wDn({node:o,...n}):n.typescript.isPropertyDeclaration(o)?IDn({node:o,...n}):n.typescript.isGetAccessorDeclaration(o)?PDn({node:o,...n}):n.typescript.isArrayLiteralExpression(o)?Fur({node:o,...n}):n.typescript.isSourceFile(o)?Cpr({node:o,...n}):n.typescript.isModuleDeclaration(o)?vpr({node:o,...n}):n.typescript.isPrefixUnaryExpression(o)?zur({node:o,...n}):n.typescript.isPostfixUnaryExpression(o)?Yur({node:o,...n}):n.typescript.isVariableStatement(o)?Gur({node:o,...n}):n.typescript.isComputedPropertyName(o)?Uur({node:o,...n}):n.typescript.isVariableDeclarationList(o)?ADn({node:o,...n}):n.typescript.isImportDeclaration(o)?bpr({node:o,...n}):n.typescript.isImportClause(o)?Dpr({node:o,...n}):n.typescript.isImportSpecifier(o)?Tpr({node:o,...n}):n.typescript.isNamespaceImport(o)?Apr({node:o,...n}):n.typescript.isImportEqualsDeclaration(o)?({...n},void 0):n.typescript.isMetaProperty(o)?kpr({node:o,...n}):n.typescript.isThrowStatement(o)?Spr({node:o,...n}):n.typescript.isVariableDeclaration(o)?EDn({node:o,...n}):n.typescript.isEnumDeclaration(o)?ypr({node:o,...n}):n.typescript.isConstructorDeclaration(o)?ppr({node:o,...n}):n.typescript.isBinaryExpression(o)?Dur({node:o,...n}):n.typescript.isParenthesizedExpression(o)?kur({node:o,...n}):n.typescript.isExpressionStatement(o)?qur({node:o,...n}):n.typescript.isArrowFunction(o)?wur({node:o,...n}):n.typescript.isFunctionDeclaration(o)?Hur({node:o,...n}):n.typescript.isFunctionExpression(o)?lpr({node:o,...n}):n.typescript.isClassDeclaration(o)?upr({node:o,...n}):n.typescript.isIfStatement(o)?Jur({node:o,...n}):n.typescript.isConditionalExpression(o)?Epr({node:o,...n}):n.typescript.isPropertyAccessExpression(o)?jur({node:o,...n}):n.typescript.isElementAccessExpression(o)?Vur({node:o,...n}):n.typescript.isCallExpression(o)?Aur({node:o,...n}):n.typescript.isSwitchStatement(o)?epr({node:o,...n}):n.typescript.isNewExpression(o)?Qur({node:o,...n}):n.typescript.isNonNullExpression(o)?$ur({node:o,...n}):n.typescript.isAsExpression(o)?Zur({node:o,...n}):n.typescript.isBlock(o)?Our({node:o,...n}):n.typescript.isClassExpression(o)?mpr({node:o,...n}):n.typescript.isSpreadElement(o)?dpr({node:o,...n}):n.typescript.isTryStatement(o)?cpr({node:o,...n}):n.typescript.isReturnStatement(o)?Wur({node:o,...n}):DDn(o,n.typescript)?npr({node:o,...n}):n.typescript.isVoidExpression(o)?hpr({node:o,...n}):n.typescript.isTypeOfExpression(o)?gpr({node:o,...n}):Yot(o,n.typescript)?fpr({node:o,...n}):xDn(o,n.typescript)?_pr({node:o,...n}):!((b=(g=n.typescript).isBigIntLiteral)===null||b===void 0)&&b.call(g,o)?Bpr({node:o,...n}):n.typescript.isBreakStatement(o)?rpr({node:o,...n}):n.typescript.isContinueStatement(o)?ipr({node:o,...n}):n.typescript.isTypeAliasDeclaration(o)?({...n},void 0):n.typescript.isInterfaceDeclaration(o)?({...n},void 0):n.getCurrentError()!=null?void 0:n.throwError(new qI({node:o,environment:n.environment,typescript:n.typescript}))}function nWt(){return[]}function wpr(o){o.logger.logNode(o.node,o.typescript),o.statementTraversalStack=nWt(),tWt(o)}function Ipr(o){let{getCurrentError:n}=o;o.logger.logNode(o.node,o.typescript);let i=tWt(o);if(n()==null)return o.reporting.reportIntermediateResults!=null&&o.reporting.reportIntermediateResults({node:o.node,value:i}),i}function Ppr(o){o.logger.logNode(o.node,o.typescript),tWt(o)}function Npr({node:o,evaluate:n,typescript:i,logger:l,...p},m){var g;i.isIdentifier(o)||!((g=i.isPrivateIdentifier)===null||g===void 0)&&g.call(i,o)?(e_({...p,node:o,path:o.text,value:m,newBinding:!0}),l.logBinding(o.text,m,"evaluateBindingName")):n.nodeWithArgument(o,m,p)}function Rpr(o,n){let{node:i,environment:l,evaluate:p,typescript:m,getCurrentError:g}=o,b=p.nodeWithValue(i.name,o);if(g()!=null)return;let T=Qot(i,m);function I(...V){let X=_I(l,i),ue={...o,environment:X};e_({...ue,path:g1,value:!1,newBinding:!0}),e_({...ue,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(e_({...ue,path:$M,value:this,newBinding:!0}),e_({...ue,path:HCe,value:T?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),TU({...ue,node:i.parameters},V),!(i.body==null||g()!=null)&&(p.statement(i.body,ue),g()==null)}I.toString=()=>`[Set: ${b}]`;let R=Object.getOwnPropertyDescriptor(n,b);R==null&&(R={}),Object.defineProperty(n,b,{...R,configurable:!0,set:I})}function Lpr({node:o,evaluate:n,...i},l){let p=n.expression(o.initializer,i);if(i.getCurrentError()!=null)return;let m=n.nodeWithValue(o.name,i);i.getCurrentError()==null&&(l[m]=p)}function Mpr({node:o,evaluate:n,logger:i,...l},p){let m=p!=null||o.initializer===void 0?p:n.expression(o.initializer,l);l.getCurrentError()==null&&(i.logBinding(o.name.getText(),m,"evaluateParameterDeclaration"),n.nodeWithArgument(o.name,m,l))}function Fpr({node:o,evaluate:n,...i},l){let{getCurrentError:p}=i,m=o.name.text,g=n.expression(o.name,i);p()==null&&(l[m]=g)}function Opr({node:o,evaluate:n,...i},l){let p=n.expression(o.expression,i);i.getCurrentError()==null&&Object.assign(l,p)}function Wpr({node:o,evaluate:n,...i},l){let p=l[Symbol.iterator](),m=0;for(;m<o.elements.length;){let{done:g,value:b}=p.next();if(g===!0)break;if(n.nodeWithArgument(o.elements[m++],b,i),i.getCurrentError()!=null)return}}function Gpr(o,n){var i,l,p,m;let{node:g,evaluate:b,logger:T,typescript:I,getCurrentError:R}=o,V=g.initializer==null?void 0:b.expression(g.initializer,o);if(R()==null){if((I.isIdentifier(g.name)||!((i=I.isPrivateIdentifier)===null||i===void 0)&&i.call(I,g.name))&&g.propertyName!=null){let X=g.name.text,ue=b.nodeWithValue(g.propertyName,o);if(R()!=null)return;let De=I.isArrayBindingPattern(g.parent)?n:n[ue];e_({...o,path:X,value:De??V,newBinding:!0})}else if((I.isIdentifier(g.name)||!((l=I.isPrivateIdentifier)===null||l===void 0)&&l.call(I,g.name))&&g.propertyName==null){let X=g.name.text,ue=I.isArrayBindingPattern(g.parent)?n:n[X],De=ue??V;T.logBinding(g.name.text,De),e_({...o,path:g.name.text,value:De,newBinding:!0})}else if(!I.isIdentifier(g.name)&&!(!((p=I.isPrivateIdentifier)===null||p===void 0)&&p.call(I,g.name))&&g.propertyName!=null){let X=b.nodeWithValue(g.propertyName,o);if(R()!=null)return;let ue=I.isArrayBindingPattern(g.parent)?n:n[X],De=ue??V;if(b.nodeWithArgument(g.name,De,o),R()!=null)return}else if(!I.isIdentifier(g.name)&&!(!((m=I.isPrivateIdentifier)===null||m===void 0)&&m.call(I,g.name))&&g.propertyName==null){let X=n??V;if(b.nodeWithArgument(g.name,X,o),R()!=null)return}}}function zpr({node:o,evaluate:n,...i},l){for(let p of o.elements)if(n.nodeWithArgument(p,l,i),i.getCurrentError()!=null)return}function jpr(o,n){let{node:i,evaluate:l,environment:p,getCurrentError:m}=o,g=_I(p,i),b={...o,environment:g};e_({...b,path:YL,value:!1,newBinding:!0});for(let T of i.clauses){if(l.nodeWithArgument(T,n,b),m()!=null)return;if(lx(i,g,!0,YL,QM,g1))break}}function Vpr({node:o,evaluate:n,...i},l){let{getCurrentError:p}=i;if(!(n.expression(o.expression,i)!==l||p()!=null))for(let g of o.statements){if(n.statement(g,i),p()!=null)return;if(lx(o,i.environment,!0,YL,QM,g1))break}}function Upr(o){let{node:n,evaluate:i,environment:l,getCurrentError:p}=o;for(let m of n.statements){if(i.statement(m,o),p()!=null)return;if(lx(n,l,!0,YL,QM,g1))break}}function Hpr(o,n){let{node:i,evaluate:l,environment:p,getCurrentError:m}=o,g=i.variableDeclaration==null?p:_I(p,i),b={...o,environment:g};i.variableDeclaration!=null&&(l.nodeWithArgument(i.variableDeclaration,n,b),m()!=null)||l.statement(i.block,b)}function Jpr(o,n,i,l){let p=arguments.length,m=p<3?n:l===null?l=Object.getOwnPropertyDescriptor(n,i):l,g;for(let b=o.length-1;b>=0;b--)(g=o[b])&&(m=(p<3?g(m):p>3?g(n,i,m):g(n,i))||m);return p>3&&m&&Object.defineProperty(n,i,m),m}function qpr(o,n){return function(i,l){n(i,l,o)}}function Kpr(o,[n,i,l]){let{node:p,evaluate:m,environment:g,throwError:b,stack:T,getCurrentError:I}=o,R=m.expression(p.expression,o);if(I()==null){if(typeof R!="function")return b(new Hot({node:p,environment:g,value:R,message:`${eWt(R)} is not a valid decorator implementation'`}));T.push(Jpr([l!=null?qpr(l,R):R],n,i))}}function Xpr(o,n){let{node:i,typeChecker:l,evaluate:p,getCurrentError:m}=o,g=l?.getConstantValue(i);if(g==null)if(i.initializer!=null){if(g=p.expression(i.initializer,o),m()!=null)return}else{let T=i.parent.members,I=T.findIndex(X=>X===i),R=T.slice(0,I),V=0;for(let X of[...R].reverse())if(V++,X.initializer!=null){let ue=p.expression(X.initializer,o);if(m()!=null)return;if(typeof ue=="number"){g=ue+V;break}}g==null&&(g=I)}let b=p.nodeWithValue(i.name,o);m()==null&&(typeof g=="string"?n[b]=g:n[n[b]=g??0]=b)}function Ypr(o,n){o.logger.logNode(o.node,o.typescript,"nodeWithArgument");let{node:i,...l}=o;if(l.typescript.isGetAccessorDeclaration(i))PDn({node:i,...l},n);else if(l.typescript.isSetAccessorDeclaration(i))Rpr({node:i,...l},n);else if(l.typescript.isPropertyAssignment(i))Lpr({node:i,...l},n);else if(l.typescript.isPropertyDeclaration(i))IDn({node:i,...l},n);else if(l.typescript.isParameter(i))Mpr({node:i,...l},n);else if(l.typescript.isEnumMember(i))Xpr({node:i,...l},n);else if(l.typescript.isShorthandPropertyAssignment(i))Fpr({node:i,...l},n);else if(l.typescript.isDecorator(i))Kpr({node:i,...l},n);else if(l.typescript.isSpreadAssignment(i))Opr({node:i,...l},n);else if(l.typescript.isMethodDeclaration(i))wDn({node:i,...l},n);else if(l.typescript.isArrayBindingPattern(i))Wpr({node:i,...l},n);else if(l.typescript.isBindingElement(i))Gpr({node:i,...l},n);else if(l.typescript.isObjectBindingPattern(i))zpr({node:i,...l},n);else if(l.typescript.isVariableDeclaration(i))EDn({node:i,...l},n);else if(l.typescript.isCaseBlock(i))jpr({node:i,...l},n);else if(l.typescript.isCaseClause(i))Vpr({node:i,...l},n);else if(l.typescript.isDefaultClause(i))Upr({node:i,...l});else if(l.typescript.isCatchClause(i))Hpr({node:i,...l},n);else if(l.typescript.isBindingName(i))Npr({node:i,...l},n);else if(l.typescript.isOmittedExpression(i))({...l});else{if(o.getCurrentError()!=null)return;l.throwError(new qI({node:i,environment:l.environment,typescript:l.typescript}))}}function Qpr({node:o,evaluate:n,typescript:i,...l}){var p;return i.isComputedPropertyName(o)?n.expression(o.expression,l):i.isIdentifier(o)||!((p=i.isPrivateIdentifier)===null||p===void 0)&&p.call(i,o)?o.text:n.expression(o,l)}function $pr(o){o.logger.logNode(o.node,o.typescript,"nodeWithValue");let{node:n,...i}=o;return o.typescript.isPropertyName(n)||o.typescript.isPrivateIdentifier(n)?Qpr({node:n,...i}):o.throwError(new qI({node:n,environment:o.environment,typescript:o.typescript}))}function Zpr(o){let n=0,{policy:i,reporting:l}=o,p=(b,T)=>{let{environment:I=o.environment,statementTraversalStack:R=o.statementTraversalStack,getCurrentError:V=o.getCurrentError,throwError:X=o.throwError}=T??{},ue=V();if(ue!=null)return ue;if(n++,n>=i.maxOps)return X(new H9t({ops:n,environment:I,node:b}));R.push(b.kind),l.reportTraversal!=null&&l.reportTraversal({node:b})},m={statement:(b,T)=>{let I={...T,statementTraversalStack:nWt()},R=p(b,I);if(!Mee(R))return wpr(g(b,I))},declaration:(b,T)=>{let I=p(b,T);if(!Mee(I))return Ppr(g(b,T))},nodeWithArgument:(b,T,I)=>{let R=p(b,I);if(!Mee(R))return Ypr(g(b,I),T)},expression:(b,T)=>{let I=p(b,T);return Mee(I)?I:Ipr(g(b,T))},nodeWithValue:(b,T)=>{let I=p(b,T);return Mee(I)?I:$pr(g(b,T))}};function g(b,T){return{...o,...T,evaluate:m,node:b}}return m}function kVe(o,n){return o===n.SyntaxKind.NumericLiteral?"NumericLiteral":n.SyntaxKind[o]}var Y9t=class{constructor(n={}){let{logLevel:i=0,color:{info:l="white",verbose:p="yellow",debug:m="magenta"}={}}=typeof n=="object"?n:{logLevel:n};this.options={logLevel:i,color:{info:l,verbose:p,debug:m}}}logInfo(n){this.options.logLevel<1||console.log(this.formatWithColor(this.options.color.info,n))}logVerbose(n){this.options.logLevel<2||console.log(this.formatWithColor(this.options.color.verbose,n))}logDebug(n){this.options.logLevel<3||console.log(this.formatWithColor(this.options.color.debug,n))}logContinue(n,i){this.options.logLevel<3||console.log(`${this.formatWithColor(this.options.color.debug,"continue")} encountered within ${this.formatWithColor(this.options.color.debug,kVe(n.kind,i))}`)}logBreak(n,i){this.options.logLevel<3||console.log(`${this.formatWithColor(this.options.color.debug,"break")} encountered within ${this.formatWithColor(this.options.color.debug,kVe(n.kind,i))}`)}logReturn(n,i){this.options.logLevel<3||console.log(`${this.formatWithColor(this.options.color.debug,"return")} encountered within ${this.formatWithColor(this.options.color.debug,kVe(n.kind,i))}`)}logResult(n,i){this.options.logLevel<1||(i!=null?console.log(this.formatWithColor(this.options.color.info,`(intermediate value from context '${i}'):`),this.formatWithColor(this.options.color.info,"[RESULT]:"),this.compactValue(n)):console.log(this.formatWithColor(this.options.color.info,"[RESULT]:"),n))}logNode(n,i,l){if(this.options.logLevel<3)return;let p=`[${kVe(n.kind,i)}]`.padEnd(25);l!=null&&(p+=this.formatWithColor(this.options.color.debug,`(${l})`));let m=n.getText(),g=this.formatWithColor(this.options.color.debug,p),b=this.formatWithColor(this.options.color.debug,m);console.log(g),console.log(b)}logBinding(n,i,l){this.options.logLevel<2||console.log(`${l==null?"":this.formatWithColor(this.options.color.verbose,`(${l}): `)}${this.formatWithColor(this.options.color.verbose,`${n} ->`)}`,this.formatWithColor(this.options.color.verbose,this.compactValue(i)))}logHeritage(n){if(this.options.logLevel<3)return;let i=Object.getPrototypeOf(n);i.toString().includes("[Class")&&console.log(`${this.formatWithColor(this.options.color.debug,n.toString())} ${this.formatWithColor(this.options.color.debug,"extends")} ${this.formatWithColor(this.options.color.debug,i.toString())}`)}logStack(n){this.options.logLevel<3||console.log(this.formatWithColor(this.options.color.debug,`Stack value: ${eWt(this.compactValue(n.lastItem))}`))}logStatementTraversalStack(n,i){this.options.logLevel<3||console.log(this.formatWithColor(this.options.color.debug,`[${n.map(l=>kVe(l,i)).join(", ")}]`))}compactValue(n){return(0,fDn.inspect)(n,{depth:0,colors:!0,compact:!0,maxArrayLength:5})}formatWithColor(n,i){return dDn.default[n](i)}};function efr(o,n){var i;return n.isExpressionNode(o)||n.isIdentifier(o)||((i=n.isPrivateIdentifier)===null||i===void 0?void 0:i.call(n,o))}function tfr(o,n){return n.isStatementButNotDeclaration(o)}function nfr(){let o=[];return{[Symbol.iterator](){return o[Symbol.iterator]()},get length(){return o.length},get lastItem(){return o[o.length-1]},push(...n){return o.push(...n)},pop(){return o.pop()}}}function rfr(o,n,i){o.reportErrors!=null&&!o.reportedErrorSet.has(n)&&(o.reportedErrorSet.add(n),o.reportErrors({error:n,node:n instanceof ZM?n.node:i}))}function ifr(){return new WeakSet}function NDn({typeChecker:o,node:n,environment:{preset:i="NODE",extra:l={}}={},moduleOverrides:p={},typescript:m=tur,logLevel:g=0,policy:{deterministic:b=!1,network:T=!1,console:I=!1,maxOps:R=1/0,maxOpDuration:V=1/0,io:X={read:!0,write:!1},process:ue={exit:!1,spawnChild:!1}}={},reporting:De={}}){let we=Eur(n,m);if(we.success)return we;let We={deterministic:b,maxOps:R,maxOpDuration:V,network:T,console:I,io:{read:typeof X=="boolean"?X:X.read,write:typeof X=="boolean"?X:X.write},process:{exit:typeof ue=="boolean"?ue:ue.exit,spawnChild:typeof ue=="boolean"?ue:ue.spawnChild}},Ne={...De,reportedErrorSet:ifr()},Me,Ct=new Y9t(g),Rt=$n=>(rfr(Ne,$n,$n.node),Me=$n,Me),en=xur({inputEnvironment:{preset:i,extra:l},startingNode:n,policy:We}),Tn=nfr(),hn=nWt(),ln={policy:We,typeChecker:o,typescript:m,logger:Ct,stack:Tn,moduleOverrides:p,reporting:Ne,throwError:Rt,environment:en,statementTraversalStack:hn,getCurrentError:()=>Me},Nn=Zpr(ln);try{let $n;return efr(n,m)?$n=Nn.expression(n,ln):tfr(n,m)?(Nn.statement(n,ln),$n=Tn.pop()):_Dn(n,m)?(Nn.declaration(n,ln),$n=Tn.pop()):Rt(new qI({node:n,environment:en,typescript:m})),Me!=null?{success:!1,reason:Me}:(Ct.logResult($n),{success:!0,value:$n})}catch($n){return Rt($n),{success:!1,reason:$n}}}var zDn=yd(WO(),1),e4=yd(WO(),1),LVe=yd(WO(),1);var KCe=yd(WO(),1);var Gj=yd(WO(),1);var oWt=yd(WO(),1);var sWt=yd(WO(),1);var ofr=o=>{if(Array.isArray(o))return"array";if(typeof o=="string")return"string";if(typeof o=="number")return"number";if(typeof o=="boolean")return"boolean";if(o===null)return"null";if(o===void 0)return"undefined";throw new Error(`Unexpected literal type: ${o}`)},ck=o=>o!=null,ODn=o=>o==null,WDn=o=>o!=null&&typeof o=="object",sfr=o=>Array.isArray(o),afr=o=>{let n=typeof o;return n==="string"||n==="number"||n==="boolean"||o===null||o===void 0},P1=o=>RVe.Node.isAsExpression(o)||RVe.Node.isParenthesizedExpression(o)||RVe.Node.isNonNullExpression(o)||RVe.Node.isTypeAssertion(o)?P1(o.getExpression()):o,lfr=o=>o.getTagNameNode().getText(),cfr=/\s+/g,GDn=o=>o.replaceAll(cfr," "),ufr=o=>{let n=o.getSourceFile(),[i,l]=[o.getStart(),o.getEnd()],p=n.getLineAndColumnAtPos(i),m=n.getLineAndColumnAtPos(l);return{startPosition:i,startLineNumber:p.line,startColumn:p.column,endPosition:l,endLineNumber:m.line,endColumn:m.column}},Lre=class{type;stack=[];node;constructor(o){this.type=o.type,this.node=o.node,this.stack=[...o.stack??[]]}getNode(){return this.node}getStack(){return this.stack}getRange=()=>ufr(this.node);toJSON(){let o=this.getRange();return{type:this.type,value:this.value,node:this.node.getKindName(),line:o.startLineNumber,column:o.startColumn}}toString(){return JSON.stringify(this.toJSON(),null,2)}},RDn=class extends Lre{value;isEmpty;constructor(o){super(o),this.value=o.value,this.isEmpty=o.isEmpty}},pfr=class extends Lre{value;kind;constructor(o){super(o),this.value=o.value,this.kind=o.kind}},ffr=class extends Lre{value;spreadConditions;constructor(o){super(o),this.value=o.value}},dfr=class extends Lre{value;constructor(o){super(o),this.value=o.value}},mfr=class extends Lre{},_fr=class extends Lre{whenTrue;whenFalse;constructor(o){super(o),this.whenTrue=o.whenTrue,this.whenFalse=o.whenFalse}},hfr=class extends Lre{},KSe=o=>o instanceof Lre;function iWt(o,n,i){return U_(o).when(ODn,()=>{}).when(KSe,l=>l).when(WDn,l=>Zc.object(l,n,i)).when(sfr,l=>l.length===1?iWt(l[0],n,i):l.map(p=>iWt(p,n,i))).when(afr,l=>Zc.literal(l,n,i)).otherwise(()=>{})}var Zc={object(o,n,i){return new RDn({type:"object",value:o,node:n,stack:i})},literal(o,n,i){return new pfr({type:"literal",value:o,kind:ofr(o),node:n,stack:i})},map(o,n,i){return new ffr({type:"map",value:o,node:n,stack:i})},array(o,n,i){return new dfr({type:"array",value:o,node:n,stack:i})},conditional(o,n,i,l){return new _fr({type:"conditional",whenTrue:o,whenFalse:n,node:i,stack:l})},from:iWt,emptyObject:(o,n)=>new RDn({type:"object",value:{},isEmpty:!0,node:o,stack:n}),emptyInitializer:(o,n)=>new hfr({type:"empty-initializer",node:o,stack:n}),unresolvable:(o,n)=>new mfr({type:"unresolvable",node:o,stack:n}),isObject(o){return o?.type==="object"},isLiteral(o){return o?.type==="literal"},isMap(o){return o?.type==="map"},isArray(o){return o?.type==="array"},isUnresolvable(o){return o?.type==="unresolvable"},isConditional(o){return o?.type==="conditional"},isEmptyInitializer(o){return o?.type==="empty-initializer"},isNumberLiteral(o){return Zc.isLiteral(o)&&o.kind==="number"},hasValue:o=>Zc.isObject(o)||Zc.isLiteral(o)||Zc.isMap(o)||Zc.isArray(o)},jDn=Symbol("EvalError"),rWt=new WeakMap,gfr=(o,n,i)=>{if(i.flags?.skipEvaluate||i.canEval&&!i.canEval?.(o,n))return;if(rWt.has(o))return rWt.get(o);let l=NDn({policy:{deterministic:!0,network:!1,console:!1,maxOps:Number.POSITIVE_INFINITY,maxOpDuration:1e3,io:{read:!0,write:!1},process:{exit:!1,spawnChild:!1}},...i.getEvaluateOptions?.(o,n),node:o.compilerNode,typescript:zDn.ts}),p=l.success?l.value:jDn;return rWt.set(o,p),p},$ot=(o,n,i)=>{let l=gfr(o,n,i);if(l!==jDn)return l};function Bfr(o){return e4.Node.isFunctionDeclaration(o)||e4.Node.isFunctionExpression(o)||e4.Node.isArrowFunction(o)||e4.Node.isSourceFile(o)}function yfr(o,n,i){let l=o.getParent();if(!l)return;let p=[],m;if((e4.Node.isVariableDeclaration(l)||e4.Node.isParameterDeclaration(l)||e4.Node.isFunctionDeclaration(l)||e4.Node.isBindingElement(l))&&l.getNameNode()==o)p.push(l),m=l;else if(e4.Node.isImportSpecifier(l)&&l.getNameNode()==o){if(i.flags?.skipTraverseFiles)return;let g=KDn(l.getImportDeclaration());if(g){let b=[l,g],T=qDn(o.getText(),g,b,i);T&&(p.push(...b.concat(T)),m=T)}}return m&&n.push(...p),m}var Cfr=o=>{let n=o.getParent();for(;n&&!Bfr(n);)n=n.getParent();return n};function nst(o,n,i,l=new Map){let p=o,m,g=!1,b=0,T=[];do{if(p=Cfr(p),b++,!p)return;let I=o.getText();if(p.forEachDescendant((R,V)=>{if(l.has(R)){V.skip(),T.push(...l.get(R));return}if(R!=o&&(l.set(R,T),e4.Node.isIdentifier(R)&&R.getText()==I)){let X=[R],ue=yfr(R,X,i);if(ue){if(e4.Node.isParameterDeclaration(ue)){let De=ue.getInitializer(),we=ue.getTypeNode();De?(T.push(...X.concat(De)),m=ue):we&&e4.Node.isTypeLiteral(we)?(T.push(...X.concat(we)),m=ue):g=!0,V.stop();return}T.push(...X),m=ue,V.stop()}}}),m||g)return m&&n.push(...T),m}while(p&&!e4.Node.isSourceFile(p)&&!m&&!g&&b<100)}var vfr=(o,n,i)=>U_(o).when(KCe.Node.isPropertyAssignment,l=>{let p=P1(l.getNameNode());return U_(p).when(KCe.Node.isIdentifier,m=>Zc.from(m.getText(),m,n)).when(KCe.Node.isComputedPropertyName,m=>{let g=m.getExpression();return n.push(g),kU(g,n,i)}).when(uI.or(KCe.Node.isStringLiteral,KCe.Node.isNumericLiteral),m=>Zc.from(m.getLiteralText(),m,n)).otherwise(()=>{})}).when(KCe.Node.isShorthandPropertyAssignment,l=>{let p=l.getName();if(p!=null)return Zc.from(p,l,n)}).otherwise(()=>{}),bfr=(o,n,i,l)=>{let p=o.getProperties();if(p.length===0)return Zc.emptyObject(o,n);let m=[],g=[];p.forEach(I=>{let R=[...n];if(R.push(I),LVe.Node.isPropertyAssignment(I)||LVe.Node.isShorthandPropertyAssignment(I)){let V=vfr(I,R,i);if(!V)return;let X=V.value;if(ODn(X)||l&&!l?.({propName:X,propNode:I}))return;if(LVe.Node.isShorthandPropertyAssignment(I)){let We=I.getNameNode();R.push(We);let Ne=Tb(We,R,i);if(Ne){m.push([X.toString(),Ne]);return}}let ue=I.getInitializer();if(!ue)return;let De=P1(ue);R.push(De);let we=Tb(De,R,i);if(we){m.push([X.toString(),we]);return}}if(LVe.Node.isSpreadAssignment(I)){let V=P1(I.getExpression());R.push(V);let X=Tb(V,R,i,l);if(!X)return;if(Zc.isObject(X)){Object.entries(X.value).forEach(([ue,De])=>{let we=Zc.from(De,V,R);we&&m.push([ue,we])});return}if(Zc.isMap(X)){X.value.forEach((ue,De)=>{m.push([De,ue])});return}Zc.isConditional(X)&&g.push(X)}});let b=new Map;m.forEach(([I,R])=>{b.has(I)&&b.delete(I),b.set(I,R)});let T=Zc.map(b,o,n);return g.length>0&&(T.spreadConditions=g),T},aWt=new WeakMap,Sfr=o=>aWt.has(o),xfr=o=>aWt.get(o),Efr=o=>o===jp.ts.SyntaxKind.PlusToken,Dfr=o=>o===jp.ts.SyntaxKind.BarBarToken||o===jp.ts.SyntaxKind.QuestionQuestionToken||o===jp.ts.SyntaxKind.AmpersandAmpersandToken||o===jp.ts.SyntaxKind.EqualsEqualsEqualsToken||o===jp.ts.SyntaxKind.EqualsEqualsToken||o===jp.ts.SyntaxKind.ExclamationEqualsEqualsToken||o===jp.ts.SyntaxKind.ExclamationEqualsToken||o===jp.ts.SyntaxKind.GreaterThanEqualsToken||o===jp.ts.SyntaxKind.GreaterThanToken||o===jp.ts.SyntaxKind.LessThanEqualsToken||o===jp.ts.SyntaxKind.LessThanToken||o===jp.ts.SyntaxKind.InstanceOfKeyword||o===jp.ts.SyntaxKind.InKeyword,Tfr=o=>o===jp.ts.SyntaxKind.AsteriskToken||o===jp.ts.SyntaxKind.SlashToken||o===jp.ts.SyntaxKind.PercentToken||o===jp.ts.SyntaxKind.AsteriskAsteriskToken||o===jp.ts.SyntaxKind.MinusToken,Afr=o=>o===jp.ts.SyntaxKind.BarBarToken||o===jp.ts.SyntaxKind.QuestionQuestionToken;function Tb(o,n,i,l){let p=m=>(aWt.set(o,m),m);return U_(o).when(Sfr,xfr).when(uI.or(jp.Node.isStringLiteral,jp.Node.isNoSubstitutionTemplateLiteral),m=>{let g=GDn(m.getLiteralValue());return p(Zc.literal(g,m,n))}).when(jp.Node.isObjectLiteralExpression,m=>p(bfr(m,n,i,l))).when(uI.or(jp.Node.isTrueLiteral,jp.Node.isFalseLiteral),m=>{let g=m.getLiteralValue();return p(Zc.literal(g,m,n))}).when(jp.Node.isNumericLiteral,m=>{let g=m.getLiteralValue();return p(Zc.literal(g,m,n))}).when(jp.Node.isNullLiteral,m=>p(Zc.literal(null,m,n))).when(jp.Node.isPrefixUnaryExpression,m=>{let g=m.getOperand(),b=m.getOperatorToken(),T=Tb(g,n,i);if(Zc.isNumberLiteral(T))return p(b===jp.ts.SyntaxKind.MinusToken?Zc.literal(-Number(T.value),m,n):T)}).when(jp.Node.isArrayLiteralExpression,m=>{let g=m.getElements().map(b=>Tb(b,n,i)??p(Zc.unresolvable(b,n)));return p(Zc.array(g,m,n))}).when(jp.Node.isIdentifier,m=>U_(m.getText()).with("undefined",()=>p(Zc.literal(void 0,m,n))).otherwise(()=>p(Ffr(m,n,i)))).when(jp.Node.isTemplateHead,m=>p(Zc.literal(m.getLiteralText(),m,n))).when(jp.Node.isTemplateExpression,m=>{let g=UDn(m,n,i);return p(Zc.literal(g,m,n))}).when(jp.Node.isTaggedTemplateExpression,m=>p(Tb(m.getTemplate(),n,i))).when(jp.Node.isElementAccessExpression,m=>p(est(m,n,i))).when(jp.Node.isPropertyAccessExpression,m=>p(tst(m,[],n,i))).when(jp.Node.isConditionalExpression,m=>{if(i.flags?.skipConditions)return p(Zc.unresolvable(m,n));let g=P1(m.getCondition()),b=(jp.Node.isIdentifier(g)?Tb(g,[],i):$ot(g,n,i))??Zc.unresolvable(g,n),T=KSe(b)?b:Zc.from(b,m,n);if(Zc.isEmptyInitializer(T))return;let I=T.getStack().some(ue=>jp.Node.isBindingElement(ue));if(Zc.isUnresolvable(T)||Zc.isConditional(T)||I){let ue=P1(m.getWhenTrue()),De=P1(m.getWhenFalse());return p(LDn({whenTrueExpr:ue,whenFalseExpr:De,node:m,stack:n},i))}if(T.value){let ue=P1(m.getWhenTrue()),De=[...n],we=Tb(ue,De,i);return p(we??Zc.unresolvable(ue,n))}let R=P1(m.getWhenFalse()),V=[...n],X=Tb(R,V,i);return p(X??Zc.unresolvable(m,n))}).when(jp.Node.isCallExpression,m=>{let g=$ot(m,n,i);if(g)return p(Zc.from(g,m,n))}).when(jp.Node.isBinaryExpression,m=>{let g=m.getOperatorToken().getKind();return U_(g).when(Efr,()=>{let b=XDn(m,n,i)??$ot(m,n,i);if(b)return p(Zc.from(b,m,n))}).when(Dfr,b=>{let T=P1(m.getLeft()),I=P1(m.getRight()),R={whenTrueExpr:T,whenFalseExpr:I,node:m,stack:n,canReturnWhenTrue:Afr(b)};return p(LDn(R,i))}).when(Tfr,()=>p(Zc.literal($ot(m,n,i),m,n))).otherwise(()=>{})}).otherwise(()=>{})}var VDn=o=>{if(o&&KSe(o)&&Zc.isLiteral(o)&&typeof o.value=="string")return o},kfr=o=>{if(o&&KSe(o)&&Zc.isLiteral(o)&&typeof o.value=="number")return o},wfr=(o,n,i)=>VDn(Tb(o,n,i)),kU=(o,n,i)=>{let l=Tb(o,n,i),p=VDn(l);if(p)return p;let m=kfr(l);if(m)return m},LDn=({whenTrueExpr:o,whenFalseExpr:n,node:i,stack:l,canReturnWhenTrue:p},m)=>{let g=Tb(o,l,m),b=Tb(n,l,m);if(p&&g&&!Zc.isUnresolvable(g))return g;if(jp.Node.isBinaryExpression(i)&&i.getOperatorToken().getKind()===jp.ts.SyntaxKind.AmpersandAmpersandToken&&g&&b&&Zc.isLiteral(g)&&g.value===!0)return b;if(!g&&!b)return;if(g&&!b)return g;if(!g&&b)return b;let T=g,I=b;return Zc.isLiteral(T)&&Zc.isLiteral(I)&&T.value===I.value?T:Zc.conditional(T,I,i,l)},Ifr=(o,n,i,l)=>{let p=[...i];if(jp.Node.isPropertyAssignment(o)){let m=o.getNameNode();if(jp.Node.isIdentifier(m)&&m.getText()===n)return p.push(m),o;if(jp.Node.isStringLiteral(m)&&m.getLiteralText()===n)return p.push(m),m.getLiteralText();if(jp.Node.isComputedPropertyName(m)){let g=P1(m.getExpression()),b=kU(g,p,l);if(!b)return;if(String(b.value)===n)return p.push(m,g),o}}if(jp.Node.isShorthandPropertyAssignment(o)){let m=o.getNameNode();if(jp.Node.isIdentifier(m)&&m.getText()===n)return p.push(m),o}},lWt=(o,n,i,l)=>{let p=[...i],m=n.pop(),g=o.getProperty(m)??o.getProperties().find(b=>Ifr(b,m,p,l));if(g){if(p.push(g),jp.Node.isPropertyAssignment(g)){let b=g.getInitializer();if(!b)return;if(jp.Node.isObjectLiteralExpression(b))return n.length>0?lWt(b,n,p,l):Tb(b,p,l);let T=Tb(b,p,l);if(T)return T}if(jp.Node.isShorthandPropertyAssignment(g)){let b=g.getNameNode();if(n.length>0)return AU(b,n,p,l);let T=Tb(b,p,l);if(T)return T}}},UDn=(o,n,i)=>{let l=o.getHead(),p=o.getTemplateSpans(),m=wfr(l,n,i);if(!m)return;let g=p.map(b=>{let T=b.getExpression(),I=kU(T,n,i);if(!I)return;let R=b.getLiteral();return I.value+R.getLiteralText()});if(g.every(ck))return m.value+g.join("")},HDn=(o,n,i,l)=>{let p=o.getParent();if(!p)return;let m=p.getParent();if(m){if(jp.Node.isArrayBindingPattern(p)){let g=p.getChildIndex();if(Number.isNaN(g))return;if(jp.Node.isVariableDeclaration(m)){let b=m.getInitializer();if(!b)return;let T=P1(b);if(!jp.Node.isArrayLiteralExpression(T))return;let I=T.getElements()[g+1];if(!I)return;let R=[...n,T,I],V=Tb(I,R,l);if(!V)return;if(Zc.isObject(V)){let ue=V.value[i];return Zc.from(ue,I,R)}if(!Zc.isMap(V))return V;let X=V.value.get(i);return X||void 0}}jp.Node.isObjectBindingPattern(p)}};function Pfr(o,n,i,l){let p=n.at(-1);if(jp.Node.isVariableDeclaration(o)){let m=o.getInitializer();if(!m){let I=o.getTypeNode();if(!I)return;if(jp.Node.isTypeLiteral(I)){if(n.length>0){let V=[...i];V.push(I);let X=n.pop(),ue=I.getProperty(X),De=ue?.getTypeNode();for(;ue&&n.length>0&&De&&jp.Node.isTypeLiteral(De);)V.push(ue,De),X=n.pop(),ue=De.getProperty(X),De=ue?.getTypeNode();if(!De)return;let we=cWt(De,V,l);return Zc.from(we,De,V)}let R=JDn(I,p,i,l);return i.push(I),Zc.from(R,I,i)}return}let g=P1(m);if(jp.Node.isObjectLiteralExpression(g)){let I=lWt(g,n,i,l);return I?(i.push(g),I):void 0}if(jp.Node.isArrayLiteralExpression(g)){let I=Number(p);if(Number.isNaN(I))return;let R=g.getElements()[I];if(!R)return;i.push(g);let V=Tb(R,i,l);if(V&&KSe(V)&&Zc.isLiteral(V))return V}let b=[...i,g],T=Tb(g,b,l);if(T)return T}if(jp.Node.isBindingElement(o)){let m=HDn(o,i,p,l);if(m)return m}}var AU=(o,n,i,l)=>{let p=nst(o,i,l);if(!p)return Zc.unresolvable(o,i);let m=Pfr(p,n,i,l);return m||Zc.unresolvable(o,i)},qCe=new WeakMap,JDn=(o,n,i,l)=>{if(qCe.has(o)){let g=qCe.get(o);if(g===null)return;if(g?.has(n))return g.get(n)}let m=o.getMembers().find(g=>jp.Node.isPropertySignature(g)&&g.getName()===n);if(jp.Node.isPropertySignature(m)&&m.isReadonly()){let g=m.getTypeNode();if(!g){qCe.set(o,null);return}let b=cWt(g,i,l);if(ck(b))return qCe.has(o)||qCe.set(o,new Map),qCe.get(o).set(n,b),b}qCe.set(o,null)};function Nfr(o){return jp.Node.isStringLiteral(o)?o.getLiteralText():o.getText()}var NVe=new WeakMap,cWt=(o,n,i)=>{if(NVe.has(o))return NVe.get(o);if(jp.Node.isLiteralTypeNode(o)){let l=o.getLiteral();if(jp.Node.isStringLiteral(l)){let p=l.getLiteralText();return NVe.set(o,p),p}}if(jp.Node.isTypeLiteral(o)){let l=o.getMembers();if(!l.some(p=>!jp.Node.isPropertySignature(p)||!p.isReadonly())){let m=l.map(b=>{let T=b.getNameNode(),I=T.getText(),R=Nfr(T);if(!R)return;let V=JDn(o,I,n,i);return[R,V]}).filter(ck),g=Object.fromEntries(m);return NVe.set(o,g),g}}NVe.set(o,void 0)},Rfr=(o,n,i)=>{if(jp.Node.isShorthandPropertyAssignment(o)){let l=o.getNameNode();return AU(l,[l.getText()],n,i)}if(jp.Node.isVariableDeclaration(o)){let l=o.getInitializer();if(!l){let b=o.getTypeNode();if(!b)return;if(jp.Node.isTypeLiteral(b)){n.push(b);let T=cWt(b,n,i);if(ck(T))return Zc.from(T,o,n)}return Zc.unresolvable(o,n)}let p=P1(l),m=[...n,p],g=Tb(p,m,i);if(g)return g}if(jp.Node.isBindingElement(o)){let l=o.getInitializer();if(!l){let b=o.getPropertyNameNode()??o.getNameNode(),T=b.getText(),I=[...n,b],R=HDn(o,I,T,i);return R||Zc.unresolvable(o,n)}let p=P1(l),m=[...n,p],g=Tb(p,m,i);if(g)return g}},qDn=(o,n,i,l)=>{let p=n.getVariableDeclaration(o);if(p)return p;let m=Mfr(o,n,i,l);if(m)return m},Lfr=(o,n)=>{let i=n.getNamedExports();if(i.length===0)return!0;for(let l of i)if(l.getNameNode().getText()===o)return!0},KDn=o=>{let n=o.getProject(),i=o.getModuleSpecifierValue();if(!i)return;let l=o.getSourceFile().getFilePath(),p=jp.ts.resolveModuleName(i,l,n.getCompilerOptions(),n.getModuleResolutionHost());return p.resolvedModule?n.addSourceFileAtPath(p.resolvedModule.resolvedFileName):void 0};function Mfr(o,n,i,l){for(let p of n.getExportDeclarations()){let m=[p];if(!Lfr(o,p))continue;let g=KDn(p);if(!g)continue;m.push(g);let b=qDn(o,g,i,l);if(b)return i.push(...m.concat(b)),b}}var Ffr=(o,n,i)=>{let l=nst(o,n,i);if(!l)return Zc.unresolvable(o,n);let p=P1(l),m=[...n],g=Rfr(p,m,i);return g||Zc.unresolvable(o,m)},XDn=(o,n,i)=>{let l=P1(o.getLeft()),p=P1(o.getRight()),m=kU(l,n,i),g=kU(p,n,i);if(!(!m||!g)&&ck(m.value)&&ck(g.value))return Zc.literal(String(m.value)+String(g.value),o,n)},est=(o,n,i)=>{let l=P1(o.getExpression()),p=o.getArgumentExpression();if(!p)return;let m=P1(p),g=[...n,l,m],b=kU(m,g,i);if(jp.Node.isIdentifier(l)&&b)return ck(b.value)?AU(l,[b.value.toString()],g,i):void 0;if(jp.Node.isBinaryExpression(m)){if(m.getOperatorToken().getKind()!==jp.ts.SyntaxKind.PlusToken)return;let T=XDn(m,g,i)??kU(m,g,i);if(T&&jp.Node.isIdentifier(l))return ck(T.value)?AU(l,[T.value.toString()],g,i):void 0}if(jp.Node.isTemplateExpression(m)){let T=UDn(m,g,i);if(T&&jp.Node.isIdentifier(l))return AU(l,[T],g,i)}if(jp.Node.isObjectLiteralExpression(l)&&b)return ck(b.value)?lWt(l,[b.value.toString()],g,i):void 0;if(jp.Node.isPropertyAccessExpression(m))return tst(m,[],g,i);if(jp.Node.isPropertyAccessExpression(l)&&b&&ck(b.value)){let T=tst(l,[],g,i);if(!T)return Zc.unresolvable(l,g);let I=b.value.toString();if(Zc.isObject(T)){let R=T.value[I];return Zc.from(R,m,g)}if(Zc.isMap(T)){let R=T.value.get(I);return Zc.from(R,m,g)}if(Zc.isArray(T)){let R=T.value[Number(I)];return Zc.from(R,m,g)}return Zc.unresolvable(l,g)}if(jp.Node.isIdentifier(l)&&jp.Node.isElementAccessExpression(m)){let T=est(m,g,i);if(typeof T=="string"&&ck(T))return AU(l,[T],g,i)}if(jp.Node.isElementAccessExpression(l)&&b&&ck(b.value)){let T=est(l,g,i);if(WDn(T)){let I=b.value.toString();if(Zc.isMap(T))return T.value.get(I);if(Zc.isObject(T)){let R=T.value[I];return R?Zc.from(R,o,g):void 0}}}if(jp.Node.isArrayLiteralExpression(l)&&b)return Ofr(l,Number(b.value),g,i);if(jp.Node.isConditionalExpression(m)){if(i.flags?.skipConditions)return Zc.unresolvable(m,g);let T=kU(m,g,i);if(ck(T)&&ck(T.value)&&jp.Node.isIdentifier(l))return AU(l,[T.value.toString()],g,i);let I=P1(m.getWhenTrue()),R=P1(m.getWhenFalse()),V=kU(I,g,i),X=kU(R,g,i);if(jp.Node.isIdentifier(l)){let ue=V&&ck(V.value)?AU(l,[V.value.toString()],g,i):void 0,De=X&&ck(X.value)?AU(l,[X.value.toString()],g,i):void 0;return!ue&&!De?void 0:ue&&!De?ue:!ue&&De?De:Zc.conditional(ue,De,m,g)}}},Ofr=(o,n,i,l)=>{let p=o.getElements()[n];if(!p)return;let m=Tb(p,i,l);if(ck(m))return m},tst=(o,n,i,l)=>{let p=o.getName(),m=P1(o.getExpression()),g=n.concat(p);if(i.push(m),jp.Node.isIdentifier(m))return AU(m,g,i,l);if(jp.Node.isPropertyAccessExpression(m))return tst(m,g,i,l);if(jp.Node.isElementAccessExpression(m)){let b=est(m,i,l);if(!b)return;if(Zc.isObject(b)){let T=b.value[p];return Zc.from(T,o,i)}if(Zc.isMap(b)){let T=b.value.get(p);return Zc.from(T,o,i)}}},MDn=()=>!0,rst=(o,n,i=MDn,l=MDn)=>{let p=o.getArguments(),m=o.getExpression().getText();return p.length===0?Zc.array([],o,[]):Zc.array(p.map((g,b)=>{let T=P1(g),I=[o,T];return U_(T).when(R=>l({fnNode:o,fnName:m,argNode:R,index:b}),R=>Tb(R,I,n,i)??Zc.unresolvable(R,I)).otherwise(()=>Zc.unresolvable(T,I))}),o,[])},ist=(o,n)=>{let i=o.getInitializer(),l=[o,i];return U_(i).with(MS.nullish,()=>{let p=o.getNameNode();return Zc.emptyInitializer(p,l)}).when(oWt.Node.isStringLiteral,p=>{let m=p.getLiteralText();return Zc.literal(GDn(m),p,l)}).when(oWt.Node.isJsxExpression,p=>{let m=p.getExpression();if(!m)return;let g=P1(m);if(!g)return;l.push(g);let b=Tb(g,l,n);if(b)return b}).otherwise(()=>{})},YDn=(o,n,i)=>{let l=P1(o.getExpression());return Tb(l,[],n,i)},FDn=(o,n)=>o?KSe(o)?Zc.isUnresolvable(o)||Zc.isConditional(o)?new Map:Zc.isMap(o)?o.value:new Map(Object.entries(o.value).map(([i,l])=>{let p=Zc.from(l,o.getNode()??n,o.getStack()??[]);return[i,p||null]}).filter(([,i])=>i!==null)):new Map(Object.entries(o)):new Map,Wfr=uI.or(Gj.Node.isImportDeclaration,Gj.Node.isExportDeclaration),QDn=({ast:o,...n})=>{let{components:i,functions:l,taggedTemplates:p}=n,m=new Map,g=new Map,b,T,I,R,V;return o.forEachDescendant((X,ue)=>{if(Wfr(X)){ue.skip();return}if(i){if(Gj.Node.isJsxOpeningElement(X)||Gj.Node.isJsxSelfClosingElement(X)){if(b=X,T=lfr(b),I=T.includes("."),!i.matchTag({tagNode:b,tagName:T,isFactory:I})){b=void 0;return}m.has(T)||m.set(T,{kind:"component",nodesByProp:new Map,queryList:[]}),R=m.get(T).nodesByProp,g.has(b)||g.set(b,{name:T,props:new Map,conditionals:[]}),V=g.get(b)}if(Gj.Node.isJsxSpreadAttribute(X)){if(!b||!V)return;let De=({propName:Me,propNode:Ct})=>i.matchProp({tagNode:b,tagName:T,propName:Me,propNode:Ct}),we=YDn(X,n,aU(De));if(!we)return;let We=Me=>{let Ct=FDn(Me,X),Rt=Zc.isMap(Me),en=Zc.map(Ct,X,[b]);Rt&&Me.spreadConditions?.length&&(en.spreadConditions=Me.spreadConditions),Ct.forEach((Tn,hn)=>{De({propName:hn,propNode:X})&&(V.props.set(hn,Tn),R.set(hn,(R.get(hn)??[]).concat(Tn)))})};(Me=>U_(Me).when(Zc.isConditional,Ct=>{V.conditionals.push(Ct)}).when(uI.or(Zc.isObject,Zc.isMap),Ct=>We(Ct)).otherwise(hZe))(we);return}if(Gj.Node.isJsxAttribute(X)){if(!b||!V)return;let De=X.getNameNode().getText();if(!i.matchProp({tagNode:b,tagName:T,propName:De,propNode:X}))return;ik(ist(X,n),Aje.fromNullable,Aje.tap(we=>{V.props.set(De,we),R.set(De,(R.get(De)??[]).concat(we))}))}}if(l&&Gj.Node.isCallExpression(X)){let De=X.getExpression(),we=Gj.Node.isCallExpression(De)?De.getExpression().getText():De.getText();if(!l.matchFn({fnNode:X,fnName:we}))return;let We=({propName:Tn,propNode:hn})=>l.matchProp({fnNode:X,fnName:we,propName:Tn,propNode:hn});m.has(we)||m.set(we,{kind:"function",nodesByProp:new Map,queryList:[]});let Ne=m.get(we),Me=Ne.nodesByProp,Ct=rst(X,n,We,l.matchArg),Rt=ik(Ct.value,PO.map(Tn=>U_(Tn).when(uI.or(Zc.isObject,Zc.isMap),hn=>{let ln=FDn(hn,X),Nn=Zc.isMap(hn);ln.forEach((qt,Hs)=>{(Nn||We({propName:Hs,propNode:X}))&&Me.set(Hs,(Me.get(Hs)??[]).concat(qt))});let $n=Zc.map(ln,X,hn.getStack());return Zc.isMap(hn)&&hn.spreadConditions?.length&&($n.spreadConditions=hn.spreadConditions),$n}).otherwise(hn=>hn))),en={kind:"call-expression",name:we,box:Zc.array(Rt,X,[])};Ne.queryList.push(en)}if(p&&Gj.Node.isTaggedTemplateExpression(X)){let De=X.getTag(),we=Gj.Node.isCallExpression(De)?De.getExpression().getText():De.getText();if(!p.matchTaggedTemplate({taggedTemplateNode:X,fnName:we}))return;m.has(we)||m.set(we,{kind:"function",nodesByProp:new Map,queryList:[]});let We=m.get(we),Ne={kind:"tagged-template",name:we,box:Tb(X,[],n)};We.queryList.push(Ne)}}),g.forEach((X,ue)=>{let De=g.get(ue);if(!De)return;let we=aU({name:X.name,box:Zc.map(De.props,ue,[])});De.conditionals?.length&&(we.box.spreadConditions=De.conditionals);let We=X.name;m.get(We).queryList.push(we)}),m},Gfr=uI.or(Zc.isObject,Zc.isMap),$Dn=(o,n)=>{let i=o.getTagNameNode().getText(),l=o.getAttributes(),p=new Map;return l.forEach(m=>{if(sWt.Node.isJsxAttribute(m)){let g=m.getNameNode(),b=ist(m,n);if(!b)return;p.set(g.getText(),b);return}if(sWt.Node.isJsxSpreadAttribute(m)){let g=YDn(m,n,()=>!0);if(!Gfr(g))return;Zc.isMap(g)&&g.value.forEach((b,T)=>{p.set(T,b)}),Zc.isObject(g)&&Object.entries(g.value).forEach(([b,T])=>{p.set(b,Zc.literal(T,o,[]))})}}),{name:i,props:p}},Zot=(o,n)=>{if(!o.length)return n;let i={};return o.reduce((l,p,m)=>{let g=m===o.length-1;return l[p]=g?n:{},g?i:l[p]},i),i},Rre=(o,n)=>U_(o).with(MS.nullish,()=>{}).when(Zc.isConditional,i=>{let l=n.path,p=Rre(i.whenTrue,Object.assign({},n,{path:l,parent:i})),m=Rre(i.whenFalse,Object.assign({},n,{path:l,parent:i}));p&&n.conditions.push(Zot(l,p)),m&&n.conditions.push(Zot(l,m))}).when(uI.or(Zc.isLiteral,Zc.isObject),i=>i.value).when(Zc.isEmptyInitializer,()=>!0).when(Zc.isMap,i=>{if(i.spreadConditions){let l=n.path;i.spreadConditions.forEach(p=>{let m=Rre(p.whenTrue,Object.assign({},n,{path:l,parent:i})),g=Rre(p.whenFalse,Object.assign({},n,{path:l,parent:i}));m&&n.spreadConditions.push(Zot(l,m)),g&&n.spreadConditions.push(Zot(l,g))})}return ik(PO.from(i.value.entries()),PO.map(([l,p])=>[l,Rre(p,Object.assign({},n,{path:n.path.concat(l),parent:i}))]),PO.filter(([,l])=>ck(l)),Object.fromEntries)}).when(Zc.isArray,i=>{let l=0;return ik(i.value,PO.map(p=>Rre(p,Object.assign({},n,{path:n.path.concat(String(l++)),parent:i}))),PO.filter(ck),p=>p.flat())}).otherwise(()=>{}),zfr=new WeakMap,jfr=o=>({value:o,has:n=>o.has(n),get:n=>o.get(n),set:(n,i)=>o.set(n,i)}),wU=(o,n)=>{let i={cache:n?.cache??zfr,...n,path:[],parent:void 0,conditions:[],spreadConditions:[]},l=jfr(i.cache);return{raw:U_(o).with(MS.nullish,()=>{}).when(l.has,l.get).when(Array.isArray,m=>{let g=ik(m,PO.map(b=>Rre(b,i)),PO.filter(ck),PO.head);return l.set(m,g),g}).otherwise(m=>{let g=Rre(m,i);return l.set(m,g),g})??{},conditions:i.conditions,spreadConditions:i.spreadConditions}};re();re();re();re();function MVe(o){return Object.prototype.toString.call(o).slice(8,-1)}function Vfr(o){return MVe(o)==="Undefined"}function Ufr(o){return MVe(o)==="Null"}function FVe(o){if(MVe(o)!=="Object")return!1;let n=Object.getPrototypeOf(o);return n.constructor===Object&&n===Object.prototype}function uWt(o){return MVe(o)==="Array"}function pWt(o){return MVe(o)==="Symbol"}var UBi=Hfr(Ufr,Vfr);function Hfr(o,n,i,l,p){return m=>o(m)||n(m)||!!i&&i(m)||!!l&&l(m)||!!p&&p(m)}function Jfr(o,n){return uWt(o)&&uWt(n)?o.concat(n):n}function ZDn(o,n,i,l){let p={}.propertyIsEnumerable.call(l,n)?"enumerable":"nonenumerable";p==="enumerable"&&(o[n]=i),p==="nonenumerable"&&Object.defineProperty(o,n,{value:i,enumerable:!1,writable:!0,configurable:!0})}function eTn(o,n,i){if(!FVe(n))return n;let l={};if(FVe(o)){let b=Object.getOwnPropertyNames(o),T=Object.getOwnPropertySymbols(o);l=[...b,...T].reduce((I,R)=>{let V=o[R];return(!pWt(R)&&!Object.getOwnPropertyNames(n).includes(R)||pWt(R)&&!Object.getOwnPropertySymbols(n).includes(R))&&ZDn(I,R,V,o),I},{})}let p=Object.getOwnPropertyNames(n),m=Object.getOwnPropertySymbols(n);return[...p,...m].reduce((b,T)=>{let I=n[T],R=FVe(o)?o[T]:void 0;R!==void 0&&FVe(I)&&(I=eTn(R,I,i));let V=i?i(R,I,T):I;return ZDn(b,T,V,n),b},l)}function tTn(o,...n){return n.reduce((i,l)=>eTn(i,l,Jfr),o)}var nTn=o=>Object.prototype.toString.call(o)==="[object Object]";function fWt(o,...n){let i=n.pop();for(let l of n)for(let p in l){let m=i(o[p],l[p]);m===void 0?nTn(o[p])&&nTn(l[p])?o[p]=fWt({},o[p],l[p],i):o[p]=l[p]:o[p]=m}return o}function rTn(o,...n){for(let i of n)for(let l in i)o?.hasOwnProperty?.(l)||(o[l]=i[l]);return o}function qfr(o){return o.reduce((n,{extend:i})=>i?fWt(n,i,(l,p)=>p===void 0?l??[]:l===void 0?[p]:Array.isArray(l)?[p,...l]:[p,l]):n,{})}function Kfr(o){return{...o.reduce((n,i)=>rTn(n,i),{}),extend:qfr(o)}}function OVe(o){let{extend:n=[],...i}=Kfr(o);return fWt(i,n,(l,p)=>tTn({},l,...p))}var Xfr=o=>typeof o=="object"&&Object.keys(o).length===0,Yfr=o=>Object.keys(o).reduce((n,i)=>(o[i]!==void 0&&!Xfr(o[i])&&(n[i]=o[i]),n),{});function iTn(o){let n=rTn({conditions:OVe(o.map(i=>i.conditions??{})),theme:OVe(o.map(i=>i.theme??{})),patterns:OVe(o.map(i=>i.patterns??{})),utilities:OVe(o.map(i=>i.utilities??{})),globalCss:OVe(o.map(i=>i.globalCss??{}))},...o);return Yfr(n)}re();var WVe=(o,n)=>{for(let i of o){let l=n.match(i.pattern);if(l)for(let p of i.paths){let m=0;return p.replace(/\*/g,()=>{let b=Math.min(++m,l.length-1);return l[b]})}}};re();var XSe=require("path"),ost=require("fs");function oTn(o,n){let i=(0,XSe.resolve)(".",o),l;for((0,ost.statSync)(i).isDirectory()||(i=(0,XSe.dirname)(i));;){if(l=n(i,(0,ost.readdirSync)(i)),l)return(0,XSe.resolve)(i,l);if(i=(0,XSe.dirname)(l=i),l===i)break}}var fTn=require("path"),GVe=yd(require("fs"),1),YSe=yd(require("path"),1),dTn=require("path"),dWt=yd(R9t(),1);re();var sTn=require("esbuild"),aTn=yd(require("path"),1),sst=yd(require("fs"),1),IU=(o=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(o,{get:(n,i)=>(typeof require<"u"?require:n)[i]}):o)(function(o){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+o+'" is not supported')});function Qfr(o){let n=sst.default.realpathSync(o);delete IU.cache[o];let i=IU(n);return{mod:i.default??i,dependencies:[n],code:sst.default.readFileSync(n,"utf-8")}}async function $fr(o,n){let i=await(0,sTn.build)({absWorkingDir:n,entryPoints:[o],outfile:"out.js",write:!1,platform:"node",bundle:!0,format:"cjs",sourcemap:!1,metafile:!0,mainFields:["module","main"]}),{text:l}=i.outputFiles[0];return{code:l,dependencies:i.metafile?Object.keys(i.metafile.inputs):[]}}function Zfr(o,n){let i=aTn.default.extname(o),l=sst.default.realpathSync(o),p=IU.extensions[i];IU.extensions[i]=(b,T)=>{T===l?b._compile(n,T):p(b,T)},delete IU.cache[IU.resolve(o)];let m=IU(o),g=m.default??m;return IU.extensions[i]=p,g}async function lTn(o,n={}){let{cwd:i=process.cwd()}=n,l=IU.resolve(o,{paths:[i]});try{return Qfr(l)}catch{let p=await $fr(l,i);try{p.mod=await Zfr(l,p.code)}catch{p.mod=IU("node-eval")(p.code).default}return p}}re();var cTn=class extends Error{code;hint;constructor(o,n,i){super(n),this.code=`ERR_PANDA_${o}`,this.hint=i?.hint}};var ast=class extends cTn{constructor(){let o="Cannot find config file: panda.config.ts or panda.config.js/cjs/mjs. Did you forget to run `panda init`?";super("NO_CONFIG",o)}},uTn=class extends cTn{constructor(o){super("CONFIG_ERROR",o)}};var mWt=require("@pandacss/preset-base"),cst=require("@pandacss/preset-panda"),edr=[".ts",".js",".mjs",".cjs"],tdr=new RegExp(`panda.config(${edr.join("|")})$`),ndr=o=>tdr.test(o);function rdr({cwd:o,file:n}){return n?(0,fTn.resolve)(o,n):oTn(o,(i,l)=>l.find(ndr))}function mTn(o,n){let i=Object.keys(o).sort((p,m)=>pTn(m)-pTn(p)),l=[];for(let p of i){let m=o[p];p=idr(p).replace(/\*/g,"(.+)"),l.push({pattern:new RegExp("^"+p+"$"),paths:m.map(g=>(0,dTn.resolve)(n,g))})}return l}function pTn(o){let n=o.indexOf("*");return o.substr(0,n).length}function idr(o){return o.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/-/g,"\\x2d")}var odr=[".js",".cjs",".mjs"],sdr=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],adr=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];function ldr(o,n){for(let i of n){let l=`${o}${i}`;if(GVe.default.existsSync(l)&&GVe.default.statSync(l).isFile())return l}for(let i of n){let l=`${o}/index${i}`;if(GVe.default.existsSync(l))return l}return null}var cdr=/import[\s\S]*?['"](.{3,}?)['"]/gi,udr=/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,pdr=/require\(['"`](.+)['"`]\)/gi,fdr=/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi;function lst(o,n){let{filename:i,seen:l}=o,{moduleResolution:p,...m}=o.compilerOptions??{},g=ldr(YSe.default.resolve(o.cwd,i),odr.includes(o.ext)?sdr:adr);if(g===null||(n&&o.foundModuleAliases.set(n,g),l.size>1&&l.has(g)))return;l.add(g);let b=GVe.default.readFileSync(g,"utf-8"),T=[...b.matchAll(cdr),...b.matchAll(udr),...b.matchAll(pdr),...b.matchAll(fdr)];if(!T.length)return;let I={cwd:YSe.default.dirname(g),ext:YSe.default.extname(g),seen:l,baseUrl:o.baseUrl,pathMappings:o.pathMappings,foundModuleAliases:o.foundModuleAliases};T.forEach(R=>{let V=R[1];if(V[0]==="."){lst(Object.assign({},I,{filename:V}));return}try{let X=dWt.default.resolveModuleName(V,g,m,dWt.default.sys).resolvedModule;if(X&&X.extension===".ts"){lst(Object.assign({},I,{filename:X.resolvedFileName}));return}if(!o.pathMappings)return;let ue=WVe(o.pathMappings,V);if(!ue)return;lst(Object.assign({},I,{filename:ue}),V)}catch{}})}function _Tn(o,n={pathMappings:[]},i){if(o===null)return{deps:new Set,aliases:new Map};let l=new Map,p=new Set;return p.add(o),lst({filename:o,ext:YSe.default.extname(o),cwd:YSe.default.dirname(o),seen:p,baseUrl:n.baseUrl,pathMappings:n.pathMappings??[],foundModuleAliases:l,compilerOptions:i}),{deps:p,aliases:l}}async function hTn(o,n){let{mod:i,dependencies:l}=await lTn(o,{cwd:n,interopDefault:!0});return{config:i?.default??i,dependencies:l}}async function ddr(o,n){let i=o.presets??[],l=[o];for(;i.length>0;){let p=await i.shift();if(typeof p=="string"){let m=await hTn(p,n);l.push(await m.config),i.unshift(...await m.config.presets??[])}else l.push(p),i.unshift(...p.presets??[])}return iTn(l)}var gTn={"@pandacss/preset-base":mWt.preset,"@pandacss/preset-panda":cst.preset,"@pandacss/dev/presets":cst.preset},mdr=Object.keys(gTn),_dr=o=>mdr.includes(o);async function BTn(o){let n=await gdr(o);return hdr(n,o.cwd)}async function hdr(o,n){let i=new Set;o.config.eject||i.add(mWt.preset),o.config.presets?o.config.presets.forEach(p=>{typeof p=="string"&&_dr(p)?i.add(gTn[p]):i.add(p)}):o.config.eject||i.add(cst.preset),o.config.presets=Array.from(i);let l=await ddr(o.config,n);return{...o,config:l}}async function gdr(o){let{cwd:n,file:i}=o,l=rdr({cwd:n,file:i});if(!l)throw new ast;I1.debug("config:path",l);let p=await hTn(l,n);if(typeof p.config!="object")throw new uTn("\u{1F4A5} Config must export or return an object.");return{...p,config:p.config,path:l}}var d8n=require("fs"),oHt=yd(PWt(),1),Sct=require("path");re();var txe=require("path"),NWt=require("fs");var hkn=o=>o===(0,txe.dirname)(o),x_r=Symbol("stop"),E_r=o=>o===x_r;var vst=(o,n=process.cwd())=>{if(typeof o=="function"&&o(n)instanceof Promise)throw new Error("Async matcher can not be used in 'lookItUpSync'");if(typeof o=="string"){let l=(0,txe.join)(n,o);return(0,NWt.existsSync)(l)?l:hkn(n)?null:vst(o,(0,txe.dirname)(n))}let i=o(n);return E_r(i)?null:i??(hkn(n)?null:vst(o,(0,txe.dirname)(n)))};re();var nxe=yd(require("path"),1),xkn=require("fs"),Ekn=yd(require("path"),1);var Vj=yd(require("path"),1),Tkn=require("fs"),OWt=require("module"),UD=yd(require("path"),1),Akn=require("fs");async function gkn(o,n){let i=nxe.default.dirname(nxe.default.resolve(o)),l=n?.root?nxe.default.resolve(n.root):null;for(;i;){let p=await D_r(i,n);if(p)return p;{if(l===i)break;let m=nxe.default.dirname(i);if(m===i)break;i=m}}throw new Error(`no tsconfig file found for ${o}`)}async function D_r(o,n){let i=nxe.default.join(o,"tsconfig.json");if(n?.tsConfigPaths)return n.tsConfigPaths.has(i)?i:void 0;try{let l=await xkn.promises.stat(i);if(l.isFile()||l.isFIFO())return i}catch(l){if(l.code!=="ENOENT")throw l}}var RCi=Ekn.default.sep;function T_r(o){let n=A_r(k_r(w_r(o)));return n.trim()===""?"{}":n}function A_r(o){let n=!1,i=0,l="",p=null;for(let m=0;m<o.length;m++){let g=o[m];if(g==='"'&&(Dkn(o,m)||(n=!n)),n){p=null;continue}if(g===","){p=m;continue}p&&(g==="}"||g==="]"?(l+=o.slice(i,p)+" ",i=p+1,p=null):g.match(/\s/)||(p=null))}return l+o.substring(i)}function Dkn(o,n){let i=n-1,l=0;for(;o[i]==="\\";)i-=1,l+=1;return!!(l%2)}function bst(o,n,i){return o.slice(n,i).replace(/\S/g," ")}var RWt=Symbol("singleComment"),Bkn=Symbol("multiComment");function k_r(o){let n=!1,i=!1,l=0,p="";for(let m=0;m<o.length;m++){let g=o[m],b=o[m+1];!i&&g==='"'&&(Dkn(o,m)||(n=!n)),!n&&(!i&&g+b==="//"?(p+=o.slice(l,m),l=m,i=RWt,m++):i===RWt&&g+b===`\r
30728
+ ${p}`),o?ZZe(p):p}catch(i){throw i instanceof hQt&&(I1.error("sheet",i.message),i.plugin&&I1.error("sheet",`By plugin: ${i.plugin}:`),i.source&&(I1.error("sheet",`Line ${i.line}:${i.column}, in:`),I1.error("sheet",i.source))),i}};append=(...o)=>{this.context.root.append(...o)};prepend=(...o)=>{this.context.root.prepend(...o)}},E1n=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(o){let{tokens:n,config:i={},separator:l,prefix:p,shorthands:m}=o;this.tokens=n,this.config=i,l&&(this.separator=l),p&&(this.prefix=p),m&&this.assignShorthands(),this.assignColorPaletteProperty(),this.assignProperties(),this.assignPropertyTypes()}register=(o,n)=>{this.assignProperty(o,n),this.assignPropertyType(o,n),this.config[o]=n};assignShorthands=()=>{for(let[o,n]of Object.entries(this.config)){let{shorthand:i}=this.normalize(n)??{};if(!i)continue;(Array.isArray(i)?i:[i]).forEach(p=>{this.shorthands.set(p,o)})}};assignColorPaletteProperty=()=>{let o=this.tokens.colorPalettes;this.config.colorPalette={values:Object.keys(o),transform(n){return o[n]}}};resolveShorthand=o=>this.shorthands.get(o)??o;get hasShorthand(){return this.shorthands.size>0}get isEmpty(){return Object.keys(this.config).length===0}entries=()=>Object.entries(this.config).filter(([,n])=>!!n?.className).map(([n,i])=>[n,i.className]);getPropKey=(o,n)=>`(${o} = ${n})`;hash=(o,n)=>`${o}${this.separator}${n}`;getPropertyValues=(o,n)=>{let{values:i}=o,l=p=>{let m=n?.(p);return m?{[m]:m}:void 0};return H7(i)?l?.(i)??this.tokens.getValue(i)??{}:Array.isArray(i)?i.reduce((p,m)=>(p[m]=m,p),{}):ZMt(i)?i(n?l:this.getToken.bind(this)):i};getToken=o=>this.tokens.get(o);normalize=o=>o;assignProperty=(o,n)=>{let i=this.normalize(n);if(this.setTransform(o,i?.transform),!i)return;this.configs.set(o,i);let l=this.getPropertyValues(i);if(l)for(let[p,m]of Object.entries(l)){let g=this.getPropKey(o,p);this.setStyles(o,m,p,g),this.setClassName(o,p)}};assignProperties=()=>{for(let[o,n]of Object.entries(this.config))n&&this.assignProperty(o,n)};getPropertyKeys=o=>{let n=this.propertyKeys.get(o);return n?Array.from(n):[]};assignPropertyType=(o,n)=>{let i=this.normalize(n);if(!i)return;let l=this.getPropertyValues(i,m=>`type:Tokens["${m}"]`);if(typeof l=="object"&&l.type){this.types.set(o,new Set([`type:${l.type}`]));return}if(l){let m=new Set(Object.keys(l));this.types.set(o,m),this.propertyKeys.set(o,m)}let p=this.types.get(o)??new Set;i.property&&this.types.set(o,p.add(`CssProperties["${i.property}"]`))};assignPropertyTypes=()=>{for(let[o,n]of Object.entries(this.config))n&&this.assignPropertyType(o,n)};getTypes=()=>{let o=new Map;for(let[n,i]of this.types.entries()){if(i.size===0){o.set(n,["string"]);continue}let l=Array.from(i).map(p=>p.startsWith("CssProperties")?p:p.startsWith("type:")?p.replace("type:",""):JSON.stringify(p));o.set(n,l)}return o};defaultTransform=RS((o,n)=>{if(n.startsWith("--")){let l=this.tokens.getTokenVar(o);o=typeof l=="string"?l:o}return{[n]:o}});setTransform=(o,n)=>{let l=n??(p=>this.defaultTransform(p,o));return this.transforms.set(o,l),this};setStyles=(o,n,i,l)=>{l=l??this.getPropKey(o,n);let p=b=>this.defaultTransform(b,o),g=(this.transforms.get(o)??p)(n,{token:this.getToken.bind(this),raw:i});return this.styles.set(l,g??{}),this};formatClassName=o=>[this.prefix,o].filter(Boolean).join("-");setClassName=(o,n)=>{let i=this.getPropKey(o,n),l=this.configs.get(o),p;return!l||!l.className?p=this.hash(nCe(o),n):p=this.hash(l.className,n),this.classNames.set(i,p),this};isProperty=o=>this.configs.has(o);getOrCreateClassName=(o,n)=>((l,p)=>{let m=this.getPropKey(l,p);return this.classNames.has(m)||(this.isProperty(l)&&this.customValues.set(l,p),this.setClassName(l,p)),this.classNames.get(m)})(o,n);getOrCreateStyle=(o,n)=>{let i=this.getPropKey(o,n);return this.styles.get(i)??this.setStyles(o,n,n,i),this.styles.get(i)};transform=(o,n)=>{if(n==null)return{className:"",styles:{}};let i=this.resolveShorthand(o);return tre({layer:this.configs.get(i)?.layer,className:this.getOrCreateClassName(i,wze(n)),styles:this.getOrCreateStyle(i,n)})};keys=()=>{let o=Array.from(this.shorthands.keys()),n=Object.keys(this.config);return[...o,...n]};getPropShorthandsMap=()=>{let o=new Map;return this.shorthands.forEach((n,i)=>{let l=o.get(n)??[];l.push(i),o.set(n,l)}),o};getPropShorthands=o=>this.getPropShorthandsMap().get(o)??[]};re();re();var RVe=yd(WO(),1);var jp=yd(WO(),1);re();var tur=yd(R9t(),1),GO=yd(HEn(),1);re();var r5=yd(require("path"),1),qEn=yd(require("os"),1),Rcr=/(^\/\w:\/)|(^\/\w:\\)/,JEn=r5.default.parse(process.cwd()).root,KEn=/^\w:/,Lcr=qEn.default.platform();function Mcr(o){return/\\/.test(o)||KEn.test(o)}function XEn(o){let n=/^\\\\\?\\/.test(o),i=/[^\u0000-\u0080]+/.test(o);return n||i?o:o.replace(/\\/g,"/")}function Fcr(o){let n=typeof o=="string"?o:o.pathname;return n.startsWith("file:")&&(n.startsWith("file://")&&(n=n.slice(7)),Rcr.test(n)&&(n=n.slice(1))),L9t(n)}function YEn(o){return[...o].some(n=>typeof n=="string"&&Mcr(n))?r5.default.win32:r5.default}function wre(o,n){return XEn(YEn(n)[o](...n))}function QEn(o,n){return r5.default.posix[o](...[...n].map(i=>typeof i=="string"?XEn(i):i))}function Ocr(o){return QEn("parse",arguments)}function Wcr(o){return QEn("extname",arguments)}function Gcr(o){return YEn(arguments).isAbsolute(o)}function zcr(...o){return wre("join",arguments)}function L9t(o){let n=wre("normalize",arguments);return o.startsWith("./")&&!n.startsWith("./")?"./"+n:n}function jcr(o,n){return wre("relative",arguments)}function Vcr(...o){return wre("resolve",arguments)}function Ucr(o){return wre("dirname",arguments)}function Hcr(o,n){return wre("basename",arguments)}function Jcr(o){return wre("format",arguments)}function qcr(o){return wre("toNamespacedPath",arguments)}function Kcr(o){return Lcr!=="win32"||KEn.test(o)||o.startsWith(JEn)||!r5.default.win32.isAbsolute(r5.default.win32.normalize(o))?o:r5.default.win32.join(JEn,o)}var M9t={sep:r5.default.posix.sep,delimiter:r5.default.posix.delimiter,parse:Ocr,isAbsolute:Gcr,join:zcr,extname:Wcr,normalize:L9t,relative:jcr,resolve:Vcr,dirname:Ucr,basename:Hcr,format:Jcr,toNamespacedPath:qcr,get posix(){return this},get win32(){return $En}},$En={...r5.default.win32,get posix(){return M9t},get win32(){return this}},Xcr=r5.default,UCe={...M9t,posix:M9t,win32:$En,native:Xcr,includeDriveLetter:Kcr,urlToFilename:Fcr};var pDn=require("module"),fDn=require("util"),dDn=yd(iDn(),1),Kot=()=>{let o={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{o.AggregateError=AggregateError}catch{}try{o.FinalizationRegistry=FinalizationRegistry}catch{}try{o.WeakRef=WeakRef}catch{}try{o.BigInt=BigInt}catch{}try{o.Reflect=Reflect}catch{}try{o.WeakMap=WeakMap}catch{}try{o.WeakSet=WeakSet}catch{}try{o.Set=Set}catch{}try{o.Map=Map}catch{}try{o.Uint8Array=Uint8Array}catch{}try{o.BigUint64Array=BigUint64Array}catch{}try{o.BigInt64Array=BigInt64Array}catch{}try{o.Atomics=Atomics}catch{}try{o.SharedArrayBuffer=SharedArrayBuffer}catch{}try{o.WebAssembly=WebAssembly}catch{}try{o.Uint8ClampedArray=Uint8ClampedArray}catch{}try{o.Uint16Array=Uint16Array}catch{}try{o.Uint32Array=Uint32Array}catch{}try{o.Intl=Intl}catch{}try{o.Int8Array=Int8Array}catch{}try{o.Int16Array=Int16Array}catch{}try{o.Int32Array=Int32Array}catch{}try{o.Float32Array=Float32Array}catch{}try{o.Float64Array=Float64Array}catch{}try{o.ArrayBuffer=ArrayBuffer}catch{}try{o.DataView=DataView}catch{}try{o.isFinite=isFinite}catch{}try{o.Promise=Promise}catch{}try{o.Proxy=Proxy}catch{}try{o.Symbol=Symbol}catch{}return o};function Pre(o,n,i){let l={};return[o,n??{},i??{}].forEach(g=>Object.defineProperties(l,Object.getOwnPropertyDescriptors(g))),l}function Got(o,n){let i={};return Object.getOwnPropertyNames(o).forEach(l=>{l in n||Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(o,l))}),i}var mDn=(0,pDn.createRequire)(Ze),nur=()=>{let o=Kot(),n=Pre(Got(global,o),o,{require:mDn,process,__dirname:i=>UCe.native.normalize(UCe.native.dirname(i)),__filename:i=>UCe.native.normalize(i)});return Object.defineProperties(n,{global:{get(){return n}},globalThis:{get(){return n}}}),n};function rur(o){let n=0;return{requestAnimationFrame:function(m){let g=new Date().getTime(),b=Math.max(0,16-(g-n)),T=o.setTimeout(function(){m(g+b)},b);return n=g+b,T},cancelAnimationFrame:function(m){clearTimeout(m)}}}var Fot;function iur(o=!1){return Fot??(Fot=our("evaluate against a browser environment",o,"jsdom"))}function our(o,n,i=o){try{return mDn(i)}catch{if(n)throw new ReferenceError(`You must install the peer dependency '${i}' in order to ${o} with ts-evaluator`);return}}var sur=()=>{let{JSDOM:o}=iur(!0),{window:n}=new o("",{url:"https://example.com"}),i=Kot(),l=rur(n),p=Pre(Got(n,i),Got(l,n),i);return Object.defineProperties(p,{window:{get(){return p}},globalThis:{get(){return p}}}),p},g1="[return]",YL="[break]",QM="[continue]",$M="this",HCe="super",aur=()=>{let o=Kot(),n=Pre(Got(global,o),o,{import:{meta:{url:i=>{let l=UCe.normalize(i);return`file:///${l.startsWith("/")?l.slice(1):l}`}}},process});return Object.defineProperties(n,{global:{get(){return n}},globalThis:{get(){return n}}}),n};function _Dn(o,n){return n.isDeclaration(o)}function lur(o,n){return n.isPropertyAccessExpression(o)?!1:"name"in o&&o.name!=null}function hDn(o,n){return o.flags!==n.NodeFlags.Const&&o.flags!==n.NodeFlags.Let}var ZM=class extends Error{constructor({node:n,environment:i,message:l}){super(l),Error.captureStackTrace(this,this.constructor),this.node=n,this.environment=i}};function Mee(o){return typeof o=="object"&&o!=null&&o instanceof ZM}var zot=class extends ZM{constructor({path:n,node:i,environment:l,message:p=`Module '${n}' could not be resolved'`}){super({message:p,environment:l,node:i}),this.path=n}},qI=class extends ZM{constructor({node:n,environment:i,typescript:l,message:p=`Unexpected Node: '${l.SyntaxKind[n.kind]}'`}){super({message:p,node:n,environment:i})}};function cur(o){var n;let{node:i,evaluate:l,environment:p,typescript:m,throwError:g}=o,b=m.getNameOfDeclaration(i);if(b!=null)return m.isIdentifier(b)||!((n=m.isPrivateIdentifier)===null||n===void 0)&&n.call(m,b)||m.isStringLiteralLike(b)?b.text:m.isNumericLiteral(b)?Number(b.text):m.isComputedPropertyName(b)?l.expression(b.expression,o):g(new qI({node:b,environment:p,typescript:m}))}function gDn(o,n){let{node:i,typescript:l}=n;if(!l.isExternalModuleNameRelative(o))return o;let p=i.getSourceFile().fileName;return UCe.join(UCe.dirname(p),o)}function jot(o){var n,i,l,p,m;let{node:g,typescript:b,throwError:T,environment:I}=o,R=cur(o);if(Mee(R))return R;if(R==null)return T(new qI({node:g,environment:I,typescript:b}));let V=xD(g,o.environment,R);if(V!=null&&V.literal!=null)return V.literal;let X=xD(g,o.environment,"require").literal,ue=b.isModuleDeclaration(g)?g:uur(g,b.SyntaxKind.ModuleDeclaration,b);if(ue==null)return T(new qI({node:g,environment:I,typescript:b}));let De=ue.name.text,we=gDn(De,o);try{let We=(p=(i=(n=o.moduleOverrides)===null||n===void 0?void 0:n[De])!==null&&i!==void 0?i:(l=o.moduleOverrides)===null||l===void 0?void 0:l[we])!==null&&p!==void 0?p:X(we);return b.isModuleDeclaration(g)?We:(m=We[R])!==null&&m!==void 0?m:We}catch(We){return Mee(We)?We:T(new zot({node:ue,environment:I,path:we}))}}function Oot(o,n,i){var l,p,m,g,b,T;let{node:I,throwError:R,environment:V}=i,X=xD(I,i.environment,"require").literal,ue=gDn(n,i);try{let De=(g=(p=(l=i.moduleOverrides)===null||l===void 0?void 0:l[n])!==null&&p!==void 0?p:(m=i.moduleOverrides)===null||m===void 0?void 0:m[ue])!==null&&g!==void 0?g:X(ue);return(T=(b=De[o])!==null&&b!==void 0?b:De.default)!==null&&T!==void 0?T:De}catch(De){return Mee(De)?De:R(new zot({node:I,environment:V,path:ue}))}}function uur(o,n,i){let l=o;for(;;){if(l=l.parent,l==null)return;if(l.kind===n){let p=i.getCombinedNodeFlags(l);if(!((p&i.NodeFlags.Namespace)!==0||(p&i.NodeFlags.NestedNamespace)!==0))return l}if(i.isSourceFile(l))return}}function Q9t(o,n,i,l=new WeakSet){let{typescript:p}=i,m;function g(T,I=0){var R,V,X,ue,De;if(l.has(T))return!1;if(l.add(T),p.isIdentifier(T)){if(T.text===n)return m=T,!0}else{if(p.isShorthandPropertyAssignment(T))return!1;if(p.isPropertyAssignment(T))return!1;if(p.isImportDeclaration(T)){if(T.importClause!=null){if(T.importClause.name!=null&&g(T.importClause.name)){let we=T.moduleSpecifier;if(we!=null&&p.isStringLiteralLike(we))return m=Oot(n,we.text,i),!0}else if(T.importClause.namedBindings!=null&&g(T.importClause.namedBindings))return!0}return!1}else if(p.isImportEqualsDeclaration(T)){if(T.name!=null&&g(T.name)){if(p.isIdentifier(T.moduleReference))return m=Q9t(T.parent,T.moduleReference.text,i,l),m!=null;if(p.isQualifiedName(T.moduleReference))return!1;{let we=T.moduleReference.expression;if(we!=null&&p.isStringLiteralLike(we))return m=Oot(n,we.text,i),!0}}return!1}else if(p.isNamespaceImport(T)){if(g(T.name)){let we=(V=(R=T.parent)===null||R===void 0?void 0:R.parent)===null||V===void 0?void 0:V.moduleSpecifier;return we==null||!p.isStringLiteralLike(we)?!1:(m=Oot(n,we.text,i),!0)}}else if(p.isNamedImports(T)){for(let we of T.elements)if(g(we))return!0}else if(p.isImportSpecifier(T)){if(g(T.name)){let we=(De=(ue=(X=T.parent)===null||X===void 0?void 0:X.parent)===null||ue===void 0?void 0:ue.parent)===null||De===void 0?void 0:De.moduleSpecifier;return we==null||!p.isStringLiteralLike(we)?!1:(m=Oot(n,we.text,i),!0)}}else if(p.isSourceFile(T)){for(let we of T.statements)if(g(we))return!0}else if(p.isVariableStatement(T)){for(let we of T.declarationList.declarations)if(g(we)&&(hDn(T.declarationList,p)||I<1))return!0}else if(p.isBlock(T)){for(let we of T.statements)if(g(we,I+1))return!0}else if(lur(T,p)&&T.name!=null&&g(T.name))return m=T,!0}return!1}return p.findAncestor(o,T=>g(T))?m:void 0}function oDn(o,n){let i=o;for(;;){if(i=i.parent,i==null)return;if(_Dn(i,n)||n.isSourceFile(i))return i}}function pur(o){return o!=null&&(typeof o=="function"||typeof o=="object")}function sDn(o){return pur(o)}function $9t(o,n){switch(o){case Function.prototype.bind:case Function.prototype.call:case Function.prototype.apply:return!0}if(n!=null){let i=xD(void 0,n,"Function").literal;switch(o){case i.prototype.bind:case i.prototype.call:case i.prototype.apply:return!0}}return!1}var Lee=class{constructor(n){this.intent=n}construct(n,i){return this.intent(n,i)}};function BDn(o){return typeof o=="object"&&o!=null&&o instanceof Lee}function Xot(o,n,i){return BDn(i)?n.throwError(i.construct(o,n)):i}function W9t(o){return o.map(n=>typeof n=="symbol"?n.description:n).join(".")}function aDn({hook:o,item:n,scope:i,policy:l}){function p(m,g){let b=(T,I)=>{if(T!==!1)return BDn(T)||Mee(T)?T:I()};return!sDn(g)||$9t(g)?g:new Proxy(g,{construct(T,I,R){return b(o({kind:"__$$_PROXY_CONSTRUCT",policy:l,newTarget:R,argArray:I,target:T,path:W9t(m)}),()=>Reflect.construct(T,I,R))},apply(T,I,R=[]){return b(o({kind:"__$$_PROXY_APPLY",policy:l,thisArg:I,argArray:R,target:T,path:W9t(m)}),()=>Reflect.apply(T,I,R))},get(T,I,R){let V=[...m,I];return b(o({kind:"__$$_PROXY_GET",policy:l,path:W9t(V),target:T}),()=>{let X=Reflect.get(T,I,R),ue=Reflect.getOwnPropertyDescriptor(g,I);return ue!=null&&ue.configurable===!1&&ue.writable===!1?g[I]:p(V,X)})}})}return sDn(n)?p([i],n):n}function lDn(o,n){switch(o){case"__$$_PROXY_GET":return`get ${n}`;case"__$$_PROXY_APPLY":return`${n}(...)`;case"__$$_PROXY_CONSTRUCT":return`new ${n}(...)`}}var yDn={"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}}},fur={...yDn,Math:{random:{__$$_PROXY_APPLY:!0}},Date:{now:{__$$_PROXY_APPLY:!0},__$$_PROXY_CONSTRUCT:(...o)=>o.length===0&&!(o[0]instanceof Date)}};function dur(o,n){return typeof o==typeof n||typeof o=="function"}function mur(o){return typeof o=="function"}function JCe(o,n,i){let l=i.path.split(".");return z9t(o,n,i,l)}function z9t(o,n,i,l){let[p,...m]=l;if(p==null)return!1;let g=o[p];if(g==null)return!1;if(typeof g=="string")return z9t(o,n,i,[g,...m]);if(dur(g,n))return cDn(g,n,i);{let b=g[i.kind];return b!=null?cDn(b,n,i):z9t(g,n,i,m)}}function cDn(o,n,i){if(mur(o)){let l=i;return l.argArray!=null&&o(...l.argArray)===n}else return o===n}function _ur(o){return JCe(fur,!0,o)}var Nre=class extends ZM{constructor({violation:n,node:i,environment:l,message:p}){super({node:i,environment:l,message:`[${n}]: ${p}`}),this.violation=n}},j9t=class extends Nre{constructor({operation:n,node:i,environment:l,message:p=`The operation: '${n}' is nondeterministic. That is in violation of the policy`}){super({violation:"deterministic",message:p,node:i,environment:l}),this.operation=n}},CDn={"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 hur(o){return JCe(CDn,"read",o)}var Vot=class extends Nre{constructor({node:n,environment:i,kind:l,message:p=`${l} operations are in violation of the policy`}){super({violation:"io",message:p,environment:i,node:n}),this.kind=l}};function gur(o){return JCe(CDn,"write",o)}function Bur(o){return JCe(yDn,!0,o)}var V9t=class extends Nre{constructor({operation:n,node:i,environment:l,message:p=`The operation: '${n}' is performing network activity. That is in violation of the policy`}){super({violation:"deterministic",message:p,node:i,environment:l}),this.operation=n}},vDn={"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 yur(o){return JCe(vDn,"exit",o)}var Uot=class extends Nre{constructor({kind:n,node:i,environment:l,message:p=`${n} operations are in violation of the policy`}){super({violation:"process",message:p,node:i,environment:l}),this.kind=n}};function Cur(o){return JCe(vDn,"spawnChild",o)}var vur={"node:console":"console",console:{__$$_PROXY_APPLY:!0}};function bur(o){return JCe(vur,!0,o)}function Sur({policy:o,env:n}){let i=g=>!o.console&&bur(g)?!1:!o.io.read&&hur(g)?new Lee((b,T)=>new Vot({...T,node:b,kind:"read"})):!o.io.write&&gur(g)?new Lee((b,T)=>new Vot({...T,node:b,kind:"write"})):!o.process.exit&&yur(g)?new Lee((b,T)=>new Uot({...T,node:b,kind:"exit"})):!o.process.exit&&Cur(g)?new Lee((b,T)=>new Uot({...T,node:b,kind:"spawnChild"})):!o.network&&Bur(g)?new Lee((b,T)=>new V9t({...T,node:b,operation:lDn(g.kind,g.path)})):o.deterministic&&_ur(g)?new Lee((b,T)=>new j9t({...T,node:b,operation:lDn(g.kind,g.path)})):!0,l=Object.entries(Object.getOwnPropertyDescriptors(n)),p=Object.assign({},...l.filter(([,g])=>!("value"in g)).map(([g,b])=>({[g]:b}))),m=Object.assign({},...l.filter(([,g])=>"value"in g).map(([g,b])=>({[g]:g==="require"?new Proxy(b.value,{apply(T,I,R=[]){let[V]=R;return aDn({policy:o,item:Reflect.apply(T,I,R),scope:V,hook:i})}}):aDn({policy:o,item:b.value,scope:g,hook:i})})));return Object.defineProperties(m,{...p})}function wVe(o,n){let[i]=n.split(".");if(GO.default.has(o.env,i))return o.env;if(o.parentEnv!=null)return wVe(o.parentEnv,n)}function U9t(o){return o.preset!=null?o.preset:o.parentEnv!=null?U9t(o.parentEnv):"NONE"}function bDn(o,n,i){let l=oDn(o.startingNode,i),p=oDn(n,i);if(l?.pos===p?.pos)return o;if(o.parentEnv!=null)return bDn(o.parentEnv,n,i)}function xD(o,n,i){let[l]=i.split(".");if(GO.default.has(n.env,l)){let p=GO.default.get(n.env,i);switch(i){case"__dirname":case"__filename":{let m=U9t(n);return(m==="NODE"||m==="NODE_CJS")&&typeof p=="function"&&o!=null?{literal:p(o.getSourceFile().fileName)}:{literal:p}}case"import.meta":{let m=U9t(n);return(m==="NODE_ESM"||m==="BROWSER"||m==="ECMA")&&typeof p=="object"&&p!=null&&typeof p.url=="function"&&o!=null?{literal:{url:p.url(o.getSourceFile().fileName)}}:{literal:p}}default:return{literal:p}}}if(n.parentEnv!=null)return xD(o,n.parentEnv,i)}function lx(o,n,i,...l){return l.some(p=>{let m=xD(o,n,p);return m==null?!1:m.literal===i})}function G9t(o){switch(o){case g1:case YL:case QM:case $M:case HCe:return!0;default:return!1}}function e_({environment:o,path:n,value:i,reporting:l,node:p,newBinding:m=!1}){let[g]=n.split(".");if(GO.default.has(o.env,g)||m||o.parentEnv==null){if(GO.default.has(o.env,n)&&GO.default.get(o.env,n)===i)return;GO.default.set(o.env,n,i),l.reportBindings!=null&&!G9t(n)&&l.reportBindings({path:n,value:i,node:p})}else{let b=o.parentEnv;for(;b!=null;)if(GO.default.has(b.env,g)){if(GO.default.has(b.env,n)&&GO.default.get(b.env,n)===i)return;GO.default.set(b.env,n,i),l.reportBindings!=null&&!G9t(n)&&l.reportBindings({path:n,value:i,node:p});return}else b.parentEnv==null?(GO.default.set(b.env,n,i),l.reportBindings!=null&&!G9t(n)&&l.reportBindings({path:n,value:i,node:p})):b=b.parentEnv}}function xur({inputEnvironment:{extra:o,preset:n},startingNode:i,policy:l}){let p;switch(n){case"NONE":p=Pre(o);break;case"ECMA":p=Pre(Kot(),o);break;case"NODE":case"NODE_CJS":p=Pre(nur(),o);break;case"NODE_ESM":p=Pre(aur(),o);break;case"BROWSER":p=Pre(sur(),o);break;default:p={};break}return{parentEnv:void 0,preset:n,startingNode:i,env:Sur({policy:l,env:p})}}function SDn(o,n){return o.kind===n.SyntaxKind.TrueKeyword||o.kind===n.SyntaxKind.FalseKeyword}function xDn(o,n){return o.kind===n.SyntaxKind.NullKeyword}function Eur(o,n){var i;return n.isStringLiteralLike(o)?{success:!0,value:o.text}:SDn(o,n)?{success:!0,value:o.kind===n.SyntaxKind.TrueKeyword}:n.isRegularExpressionLiteral(o)?{success:!0,value:new Function(`return ${o.text}`)()}:n.isNumericLiteral(o)?{success:!0,value:Number(o.text)}:!((i=n.isBigIntLiteral)===null||i===void 0)&&i.call(n,o)?{success:!0,value:BigInt(o.text)}:n.isIdentifier(o)&&o.text==="Infinity"?{success:!0,value:1/0}:n.isIdentifier(o)&&o.text==="NaN"?{success:!0,value:NaN}:n.isIdentifier(o)&&o.text==="null"?{success:!0,value:null}:n.isIdentifier(o)&&o.text==="undefined"?{success:!0,value:void 0}:xDn(o,n)?{success:!0,value:null}:{success:!1}}var H9t=class extends Nre{constructor({ops:n,node:i,environment:l,message:p=`Maximum ops exceeded: ${n}`}){super({violation:"maxOps",message:p,node:i,environment:l}),this.ops=n}};function EDn(o,n){let{node:i,environment:l,evaluate:p,stack:m,typescript:g,throwError:b,getCurrentError:T}=o,I=n??(i.initializer==null?void 0:p.expression(i.initializer,o));if(T()==null){if(I==null&&!g.isIdentifier(i.name))return b(new ZM({node:i,environment:l}));p.nodeWithArgument(i.name,I,o),T()==null&&m.push(I)}}function DDn(o,n){return o.kind===n.SyntaxKind.ThisKeyword}function Yot(o,n){return o.kind===n.SyntaxKind.SuperKeyword}function qSe(o){var n,i;let{node:l,evaluate:p,typescript:m}=o;if(m.isIdentifier(l))return l.text;if(!((n=m.isPrivateIdentifier)===null||n===void 0)&&n.call(m,l))return l.text;if(DDn(l,m))return $M;if(Yot(l,m))return HCe;if(m.isParenthesizedExpression(l))return qSe({...o,node:l.expression});if(!((i=m.isTypeAssertionExpression)===null||i===void 0)&&i.call(m,l)||!("isTypeAssertionExpression"in m)&&m.isTypeAssertion(l))return qSe({...o,node:l.expression});if(m.isPropertyAccessExpression(l)){let g=qSe({...o,node:l.expression});g==null&&(g=p.expression(l.expression,o));let b=qSe({...o,node:l.name});return b==null&&(b=p.expression(l.name,o)),g==null||b==null?void 0:`${g}.${b}`}else if(m.isElementAccessExpression(l)){let g=qSe({...o,node:l.expression});g==null&&(g=p.expression(l.expression,o));let b=p.expression(l.argumentExpression,o);return g==null||b==null?void 0:`${g}.${b}`}else if(m.isFunctionDeclaration(l))return l.name==null?void 0:l.name.text}var J9t=class extends ZM{constructor({node:n,environment:i,message:l="'No leftValue could be determined'"}){super({message:l,environment:i,node:n})}};function Wot(o,n){var i;return n.isParenthesizedExpression(o)||n.isAsExpression(o)||!((i=n.isTypeAssertionExpression)===null||i===void 0)&&i.call(n,o)||!("isTypeAssertionExpression"in n)&&n.isTypeAssertion(o)?Wot(o.expression,n):o}function TDn(o){return o!=null&&typeof o=="object"&&"kind"in o&&"flags"in o&&"pos"in o&&"end"in o}function Dur(o){var n;let{node:i,environment:l,evaluate:p,logger:m,throwError:g,typeChecker:b,typescript:T,getCurrentError:I}=o,R=p.expression(i.left,o);if(I()!=null)return;let V=p.expression(i.right,o);if(I()!=null)return;let X=qSe({...o,node:i.left}),ue=i.operatorToken.kind;switch(ue){case T.SyntaxKind.AmpersandToken:return R&V;case T.SyntaxKind.AmpersandAmpersandToken:return R&&V;case T.SyntaxKind.AmpersandEqualsToken:case T.SyntaxKind.CaretEqualsToken:case T.SyntaxKind.BarEqualsToken:case T.SyntaxKind.MinusEqualsToken:case T.SyntaxKind.PlusEqualsToken:case T.SyntaxKind.PercentEqualsToken:case T.SyntaxKind.SlashEqualsToken:case T.SyntaxKind.AsteriskEqualsToken:case T.SyntaxKind.AsteriskAsteriskEqualsToken:case T.SyntaxKind.LessThanLessThanEqualsToken:case T.SyntaxKind.GreaterThanGreaterThanEqualsToken:case T.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken:case T.SyntaxKind.QuestionQuestionEqualsToken:case T.SyntaxKind.BarBarEqualsToken:case T.SyntaxKind.AmpersandAmpersandEqualsToken:{let De=R;switch(ue){case T.SyntaxKind.AmpersandEqualsToken:De&=V;break;case T.SyntaxKind.CaretEqualsToken:De^=V;break;case T.SyntaxKind.BarEqualsToken:De|=V;break;case T.SyntaxKind.AsteriskEqualsToken:De*=V;break;case T.SyntaxKind.AsteriskAsteriskEqualsToken:De**=V;break;case T.SyntaxKind.LessThanLessThanEqualsToken:De<<=V;break;case T.SyntaxKind.GreaterThanGreaterThanEqualsToken:De>>=V;break;case T.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken:De>>>=V;break;case T.SyntaxKind.MinusEqualsToken:De-=V;break;case T.SyntaxKind.PlusEqualsToken:De+=V;break;case T.SyntaxKind.PercentEqualsToken:De%=V;break;case T.SyntaxKind.SlashEqualsToken:De/=V;break;case T.SyntaxKind.QuestionQuestionEqualsToken:De=R??V;break;case T.SyntaxKind.BarBarEqualsToken:R||(De=V);break;case T.SyntaxKind.AmpersandAmpersandEqualsToken:R&&(De=V);break}return X!=null&&e_({...o,path:X,value:De}),De}case T.SyntaxKind.AsteriskToken:return R*V;case T.SyntaxKind.AsteriskAsteriskToken:return R**V;case T.SyntaxKind.BarToken:return R|V;case T.SyntaxKind.BarBarToken:return R||V;case T.SyntaxKind.CaretToken:return R^V;case T.SyntaxKind.CommaToken:return V;case T.SyntaxKind.MinusToken:return R-V;case T.SyntaxKind.PlusToken:return m.logResult(R+V,"BinaryExpression (PlusToken)"),R+V;case T.SyntaxKind.PercentToken:return R%V;case T.SyntaxKind.SlashToken:return R/V;case T.SyntaxKind.EqualsToken:{if(X!=null){let De=Wot(i.left,T),we=b?.getSymbolAtLocation(De),We=we?.valueDeclaration;if(We==null&&b==null&&T.isIdentifier(De)){let Me=Q9t(De.parent,De.text,o);TDn(Me)&&(We=Me)}let Ne=We==null?l:(n=bDn(l,We,T))!==null&&n!==void 0?n:l;e_({...o,environment:Ne,path:X,value:V}),m.logBinding(X,V,"Assignment")}else return g(new J9t({node:i.left,environment:l}));return V}case T.SyntaxKind.EqualsEqualsToken:return R==V;case T.SyntaxKind.EqualsEqualsEqualsToken:return R===V;case T.SyntaxKind.ExclamationEqualsToken:return R!=V;case T.SyntaxKind.ExclamationEqualsEqualsToken:return R!==V;case T.SyntaxKind.GreaterThanToken:return R>V;case T.SyntaxKind.GreaterThanEqualsToken:return R>=V;case T.SyntaxKind.LessThanToken:return R<V;case T.SyntaxKind.LessThanEqualsToken:return R<=V;case T.SyntaxKind.InKeyword:return R in V;case T.SyntaxKind.QuestionQuestionToken:return R??V;case T.SyntaxKind.InstanceOfKeyword:return R instanceof V}return g(new qI({node:i.operatorToken,typescript:T,environment:l}))}var Z9t="___lazyCallFlag";function Tur(o){return o!=null&&typeof o=="object"&&Z9t in o}function eWt(o){return o===void 0?"undefined":o===null?"null":typeof o=="string"?`"${o}"`:o.toString()}var Hot=class extends ZM{constructor({value:n,node:i,environment:l,message:p=`${eWt(n)} is not a function'`}){super({message:p,environment:l,node:i}),this.value=n}};function Ire(o,n){var i;return Yot(o,n)?!0:n.isPropertyAccessExpression(o)?Ire(o.expression,n)||Ire(o.name,n):n.isElementAccessExpression(o)?Ire(o.expression,n)||Ire(o.argumentExpression,n):n.isParenthesizedExpression(o)||n.isAsExpression(o)||!((i=n.isTypeAssertionExpression)===null||i===void 0)&&i.call(n,o)||!("isTypeAssertionExpression"in n)&&n.isTypeAssertion(o)?Ire(o.expression,n):!1}function Aur(o){let{node:n,environment:i,evaluate:l,throwError:p,typescript:m,logger:g,getCurrentError:b}=o,T=[];for(let R=0;R<n.arguments.length;R++)if(T[R]=l.expression(n.arguments[R],o),b()!=null)return;let I=l.expression(n.expression,o);if(b()==null)if(Tur(I)){let R=Ire(n.expression,m)?xD(n,i,$M):void 0,V=I.invoke(R?.literal,...T);return b()!=null?void 0:(g.logResult(V,"CallExpression"),V)}else{if(n.questionDotToken==null&&typeof I!="function")return p(new Hot({value:I,node:n.expression,environment:i}));let R=typeof I!="function"?void 0:Xot(n,o,I(...T));return b()!=null?void 0:(g.logResult(R,"CallExpression"),R)}}function kur({node:o,evaluate:n,...i}){return n.expression(o.expression,i)}function _I(o,n){return{parentEnv:o,startingNode:n,env:{}}}function DU(o,n){let i=Array.isArray(o)?o:o.modifiers;return i!=null&&i.some(l=>l.kind===n)}function TU(o,n,i){let{node:l,evaluate:p,environment:m,typescript:g,getCurrentError:b}=o,T=l.filter(I=>!(g.isIdentifier(I.name)&&I.name.text==="this"));for(let I=0;I<T.length;I++){let R=T[I];if(R.dotDotDotToken!=null){if(p.nodeWithArgument(R,n.slice(I),o),b()!=null)return;break}else{if(p.nodeWithArgument(R,n[I],o),b()!=null)return;if(i!=null&&g.isIdentifier(R.name)&&(DU(R,g.SyntaxKind.PublicKeyword)||DU(R,g.SyntaxKind.ProtectedKeyword)||DU(R,g.SyntaxKind.PrivateKeyword))){let V=xD(R,m,R.name.text);V!=null&&(i[R.name.text]=V.literal)}}}}function wur(o){let{node:n,environment:i,evaluate:l,stack:p,typescript:m,getCurrentError:g}=o,b=DU(n,m.SyntaxKind.AsyncKeyword)?async(...T)=>{let I=_I(i,n),R={...o,environment:I};if(e_({...R,path:g1,value:!1,newBinding:!0}),e_({...R,path:"arguments",value:arguments,newBinding:!0}),TU({...o,node:n.parameters,environment:I},T),g()==null)return m.isBlock(n.body)?(l.statement(n.body,R),g()!=null?void 0:lx(n,I,!0,g1)?p.pop():void 0):l.expression(n.body,R)}:(...T)=>{let I=_I(i,n),R={...o,environment:I};if(e_({...R,path:g1,value:!1,newBinding:!0}),e_({...R,path:"arguments",value:arguments,newBinding:!0}),TU({...o,node:n.parameters,environment:I},T),g()==null)return m.isBlock(n.body)?(l.statement(n.body,R),g()!=null?void 0:lx(n,I,!0,g1)?p.pop():void 0):l.expression(n.body,R)};return b.toString=()=>"[Function: anonymous]",Object.setPrototypeOf(b,xD(n,i,"Function").literal),b}function Iur({node:o}){return o.text}function Pur({node:o}){return Number(o.text)}function Nur({node:o,typescript:n}){return o.kind===n.SyntaxKind.TrueKeyword}function Rur({node:o,environment:n}){let i=xD(o,n,"Function").literal;return new i(`return ${o.text}`)()}function Lur(o){let{node:n,evaluate:i,environment:l,getCurrentError:p}=o,m=xD(n,l,"Object").literal,g=m.create(m.prototype);e_({...o,path:$M,value:g,newBinding:!0});for(let b of n.properties)if(i.nodeWithArgument(b,g,o),p()!=null)return;return g}function Mur(o){return o!=null&&o[Symbol.iterator]!=null}function Fur(o){let{node:n,environment:i,evaluate:l,typescript:p,getCurrentError:m}=o,b=xD(n,i,"Array").literal.of();for(let T of n.elements){let I=l.expression(T,o);if(m()!=null)return;p.isSpreadElement(T)&&Mur(I)?b.push(...I):b.push(I)}return b}var Jot=class extends ZM{constructor({node:n,environment:i,message:l=`'${n.text}' is not defined'`}){super({message:l,environment:i,node:n})}};function uDn(o){let{node:n,environment:i,typeChecker:l,evaluate:p,stack:m,logger:g,reporting:b,typescript:T,throwError:I,getCurrentError:R}=o,V=xD(n,i,n.text);if(V!=null)return g.logBinding(n.text,V.literal,"Lexical Environment match"),V.literal;let X=T.isShorthandPropertyAssignment(n.parent)?l?.getShorthandAssignmentValueSymbol(n.parent):l?.getSymbolAtLocation(n),ue=X?.valueDeclaration;if(X!=null&&ue==null)try{let De=l?.getAliasedSymbol(X);ue=De?.valueDeclaration}catch{}if(ue==null){let De=Q9t(n.parent,n.text,o);if(R()!=null)return;if(TDn(De)&&!T.isIdentifier(De))ue=De;else if(De!=null)return e_({...o,path:n.text,value:De}),g.logBinding(n.text,De,"Discovered declaration value"),De}if(ue!=null){if(ue.getSourceFile().isDeclarationFile){let we=jot({...o,node:ue});return R()!=null?void 0:(e_({environment:i,path:n.text,value:we,reporting:b,node:ue}),g.logBinding(n.text,we,`Discovered declaration value${ue.getSourceFile()===n.getSourceFile()?"":` (imported into '${n.getSourceFile().fileName}' from '${ue.getSourceFile().fileName}')`}`),we)}if(T.isVariableDeclaration(ue)&&ue.getSourceFile().fileName===n.getSourceFile().fileName&&ue.pos>n.pos)if(T.isVariableDeclarationList(ue.parent)&&hDn(ue.parent,T)){e_({...o,path:n.text,value:void 0,newBinding:!0,node:ue}),g.logBinding(n.text,void 0,"Hoisted var declaration");return}else return I(new Jot({node:n,environment:i}));if(p.declaration(ue,o),R()!=null)return;let De=m.pop();return e_({...o,path:n.text,value:De,node:ue}),g.logBinding(n.text,De,`Discovered declaration value${ue.getSourceFile()===n.getSourceFile()?"":` (imported into '${n.getSourceFile().fileName}' from '${ue.getSourceFile().fileName}')`}`),De}return I(new Jot({node:n,environment:i}))}function Our(o){let{node:n,environment:i,typescript:l,evaluate:p,getCurrentError:m}=o,g=_I(i,n);for(let b=0;b<n.statements.length;b++){let T=n.statements[b];if(!(l.isConstructorDeclaration(n.parent)&&b===0&&l.isExpressionStatement(T)&&l.isCallExpression(T.expression)&&Yot(T.expression.expression,l))&&(p.statement(T,{...o,environment:g}),m()!=null||lx(n,g,!0,YL,QM,g1)))break}}function Wur({node:o,evaluate:n,stack:i,...l}){let{getCurrentError:p}=l;if(e_({...l,environment:l.environment,path:g1,value:!0,node:o}),o.expression==null)i.push(void 0);else{let m=n.expression(o.expression,l);if(p()!=null)return;i.push(m)}}function ADn({node:o,evaluate:n,...i}){for(let l of o.declarations)if(n.declaration(l,i),i.getCurrentError()!=null)return}function Gur({node:o,...n}){ADn({node:o.declarationList,...n})}function zur(o){var n,i;let{node:l,environment:p,evaluate:m,reporting:g,typescript:b,throwError:T,getCurrentError:I}=o,R=m.expression(l.operand,o);if(I()==null)switch(l.operator){case b.SyntaxKind.PlusToken:return+R;case b.SyntaxKind.MinusToken:return-R;case b.SyntaxKind.TildeToken:return~R;case b.SyntaxKind.ExclamationToken:return!R;case b.SyntaxKind.PlusPlusToken:{if(!b.isIdentifier(l.operand)&&!(!((n=b.isPrivateIdentifier)===null||n===void 0)&&n.call(b,l.operand)))return T(new qI({node:l.operand,environment:p,typescript:b}));let V=wVe(p,l.operand.text),X=++V[l.operand.text];return g.reportBindings!=null&&g.reportBindings({path:l.operand.text,value:X,node:l}),X}case b.SyntaxKind.MinusMinusToken:{if(!b.isIdentifier(l.operand)&&!(!((i=b.isPrivateIdentifier)===null||i===void 0)&&i.call(b,l.operand)))return T(new qI({node:l.operand,environment:p,typescript:b}));let V=wVe(p,l.operand.text),X=--V[l.operand.text];return g.reportBindings!=null&&g.reportBindings({path:l.operand.text,value:X,node:l}),X}}}function jur(o){let{evaluate:n,node:i,statementTraversalStack:l,environment:p,typescript:m,getCurrentError:g}=o,b=n.expression(i.expression,o);if(b==null||g()!=null)return;let T=i.questionDotToken!=null&&b==null?void 0:b[i.name.text];return typeof T=="function"&&l.includes(m.SyntaxKind.CallExpression)?{[Z9t]:0,invoke:(I,...R)=>Xot(i,o,I!=null&&!$9t(T,p)?b[i.name.text].call(I,...R):b[i.name.text](...R))}:T}function Vur(o){let{node:n,environment:i,evaluate:l,statementTraversalStack:p,typescript:m,getCurrentError:g}=o,b=l.expression(n.expression,o);if(g()!=null)return;let T=l.expression(n.argumentExpression,o);if(g()!=null)return;let I=n.questionDotToken!=null&&b==null?void 0:b[T];return typeof I=="function"&&p.includes(m.SyntaxKind.CallExpression)?{[Z9t]:0,invoke:(R,...V)=>Xot(n,o,R!=null&&!$9t(I,i)?b[T].call(R,...V):b[T](...V))}:I}function Uur({node:o,evaluate:n,...i}){return n.expression(o.expression,i)}function Hur(o){let{node:n,environment:i,evaluate:l,stack:p,typescript:m,getCurrentError:g}=o,b=n.name==null?void 0:n.name.text,T=DU(n,m.SyntaxKind.AsyncKeyword)?async function(...R){let V=_I(i,n),X={...o,environment:V};if(e_({...X,path:g1,value:!1,newBinding:!0}),e_({...X,path:"arguments",value:arguments,newBinding:!0}),this!=null&&e_({...X,path:$M,value:this,newBinding:!0}),TU({...o,node:n.parameters,environment:V},R),g()!=null)return;let ue=n.getSourceFile();if(b!=null&&ue.isDeclarationFile)return jot(o)(...R);if(n.body!=null&&(l.statement(n.body,X),g()==null&&lx(n,V,!0,g1)))return p.pop()}:function(...R){let V=_I(i,n),X={...o,environment:V};if(e_({...X,path:g1,value:!1,newBinding:!0}),e_({...X,path:"arguments",value:arguments,newBinding:!0}),this!=null&&e_({...X,path:$M,value:this,newBinding:!0}),TU({...X,node:n.parameters},R),g()!=null)return;let ue=n.getSourceFile();if(b!=null&&ue.isDeclarationFile)return jot(o)(...R);if(n.body!=null&&(l.statement(n.body,X),g()==null&&lx(n,V,!0,g1)))return p.pop()};b!=null&&e_({...o,path:b,value:T.bind(T)}),T.toString=()=>`[Function${b==null?"":`: ${b}`}]`,Object.setPrototypeOf(T,xD(n,i,"Function").literal),p.push(T)}function Jur({node:o,evaluate:n,...i}){let{getCurrentError:l}=i,p=n.expression(o.expression,i);if(l()==null){if(p){if(n.statement(o.thenStatement,i),l()!=null)return}else if(o.elseStatement!=null)return n.statement(o.elseStatement,i)}}function qur({node:o,evaluate:n,stack:i,...l}){let p=n.expression(o.expression,l);l.getCurrentError()==null&&i.push(p)}function Kur({node:o,evaluate:n,...i}){let l="";l+=o.head.text;for(let p of o.templateSpans){let m=n.expression(p.expression,i);if(i.getCurrentError()!=null)return;l+=m,l+=p.literal.text}return l}function Xur({node:o,evaluate:n,...i}){return n.expression(o.expression,i)}function Yur(o){var n,i;let{evaluate:l,node:p,environment:m,typescript:g,throwError:b,reporting:T}=o;switch(l.expression(p.operand,o),p.operator){case g.SyntaxKind.PlusPlusToken:{if(!g.isIdentifier(p.operand)&&!(!((n=g.isPrivateIdentifier)===null||n===void 0)&&n.call(g,p.operand)))return b(new qI({node:p.operand,environment:m,typescript:g}));let I=wVe(m,p.operand.text)[p.operand.text]++;return T.reportBindings!=null&&T.reportBindings({path:p.operand.text,value:I,node:p}),I}case g.SyntaxKind.MinusMinusToken:{if(!g.isIdentifier(p.operand)&&!(!((i=g.isPrivateIdentifier)===null||i===void 0)&&i.call(g,p.operand)))return b(new qI({node:p.operand,environment:m,typescript:g}));let I=wVe(m,p.operand.text)[p.operand.text]--;return T.reportBindings!=null&&T.reportBindings({path:p.operand.text,value:I,node:p}),I}}}function Qur({node:o,evaluate:n,...i}){let{getCurrentError:l}=i,p=[];if(o.arguments!=null){for(let g=0;g<o.arguments.length;g++)if(p[g]=n.expression(o.arguments[g],i),l()!=null)return}let m=n.expression(o.expression,i);if(l()==null)return typeof m=="function"&&e_({...i,node:o,path:"[[NewTarget]]",value:m,newBinding:!0}),Xot(o,i,new m(...p))}function $ur({node:o,evaluate:n,...i}){return n.expression(o.expression,i)}function Zur({node:o,evaluate:n,...i}){return n.expression(o.expression,i)}function epr({node:o,evaluate:n,...i}){let l=n.expression(o.expression,i);i.getCurrentError()==null&&n.nodeWithArgument(o.caseBlock,l,i)}var q9t=class extends ZM{constructor({message:n="It is not possible to evaluate an async iterator'",typescript:i,environment:l}){var p,m;super({message:n,environment:l,node:(m=(p=i.factory)===null||p===void 0?void 0:p.createEmptyStatement())!==null&&m!==void 0?m:i.createEmptyStatement()})}};function tpr(o){let{node:n,environment:i,evaluate:l,logger:p,typescript:m,throwError:g,getCurrentError:b}=o,T=l.expression(n.expression,o);if(b()==null){if(m.isVariableDeclarationList(n.initializer)){if(n.initializer.declarations.length>1)return g(new qI({node:n.initializer.declarations[1],environment:i,typescript:m}))}else return g(new qI({node:n.initializer,environment:i,typescript:m}));if(n.awaitModifier!=null)return g(new q9t({typescript:m,environment:i}));for(let I of T){let R=_I(i,n),V={...o,environment:R};if(e_({...V,path:YL,value:!1,newBinding:!0}),e_({...V,path:QM,value:!1,newBinding:!0}),l.nodeWithArgument(n.initializer.declarations[0],I,V),b()!=null||(l.statement(n.statement,V),b()!=null))return;if(lx(n,R,!0,YL)){p.logBreak(n,m);break}else if(lx(n,R,!0,QM)){p.logContinue(n,m);continue}else if(lx(n,R,!0,g1)){p.logReturn(n,m);return}}}}function npr({node:o,environment:n}){let i=xD(o,n,$M);return i?.literal}function rpr(o){e_({...o,path:YL,value:!0})}function ipr(o){e_({...o,path:QM,value:!0})}function opr({environment:o,evaluate:n,typescript:i,...l}){let{node:p,getCurrentError:m}=l,g=_I(o,p),b={...l,environment:g};if(p.initializer!==void 0){if(i.isVariableDeclarationList(p.initializer)){for(let T of p.initializer.declarations)if(n.declaration(T,b),m()!=null)return}else if(n.expression(p.initializer,b),m()!=null)return}for(;;){let T=_I(g,p),I={...l,environment:T};if(e_({...I,path:YL,value:!1,newBinding:!0}),e_({...I,path:QM,value:!1,newBinding:!0}),!(p.condition==null?!0:n.expression(p.condition,b))||m()!=null||(n.statement(p.statement,I),m()!=null))return;if(lx(p,T,!0,YL))break;if(lx(p,T,!0,g1))return;if(p.incrementor!=null){if(n.expression(p.incrementor,b),m()!=null)return}else if(lx(p,T,!0,QM))continue}}function spr(o){let{node:n,environment:i,evaluate:l,logger:p,typescript:m,getCurrentError:g}=o,b=l.expression(n.expression,o);if(g()==null)for(;b;){let T=_I(i,n),I={...o,environment:T};if(e_({...I,path:YL,value:!1,newBinding:!0}),e_({...I,path:QM,value:!1,newBinding:!0}),l.statement(n.statement,I),g()!=null)return;if(lx(n,T,!0,YL)){p.logBreak(n,m);break}else if(lx(n,T,!0,g1)){p.logReturn(n,m);return}if(b=l.expression(n.expression,o),g()!=null)return;if(lx(n,T,!0,QM)){p.logContinue(n,m);continue}}}function apr(o){let{node:n,environment:i,evaluate:l,logger:p,typescript:m,throwError:g,getCurrentError:b}=o,T=l.expression(n.expression,o);if(b()==null){if(m.isVariableDeclarationList(n.initializer)){if(n.initializer.declarations.length>1)return g(new qI({node:n.initializer.declarations[1],environment:i,typescript:m}))}else return g(new qI({node:n.initializer,environment:i,typescript:m}));for(let I in T){let R=_I(i,n),V={...o,environment:R};if(e_({...V,path:YL,value:!1,newBinding:!0}),e_({...V,path:QM,value:!1,newBinding:!0}),l.nodeWithArgument(n.initializer.declarations[0],I,V),b()!=null||(l.statement(n.statement,V),b()!=null))return;if(lx(n,R,!0,YL)){p.logBreak(n,m);break}else if(lx(n,R,!0,QM)){p.logContinue(n,m);continue}else if(lx(n,R,!0,g1)){p.logReturn(n,m);return}}}}function lpr(o){let{node:n,environment:i,evaluate:l,stack:p,typescript:m,getCurrentError:g}=o,b=n.name==null?void 0:n.name.text,T=DU(n,m.SyntaxKind.AsyncKeyword)?async function(...R){let V=_I(i,n),X={...o,environment:V};if(e_({...X,path:g1,value:!1,newBinding:!0}),e_({...X,path:"arguments",value:arguments,newBinding:!0}),this!=null&&e_({...X,path:$M,value:this,newBinding:!0}),TU({...X,node:n.parameters},R),!(n.body==null||g()!=null)&&(l.statement(n.body,X),g()==null&&lx(n,V,!0,g1)))return p.pop()}:function(...R){let V=_I(i,n),X={...o,environment:V};if(e_({...X,path:g1,value:!1,newBinding:!0}),e_({...X,path:"arguments",value:arguments,newBinding:!0}),this!=null&&e_({...X,path:$M,value:this,newBinding:!0}),TU({...X,node:n.parameters},R),!(n.body==null||g()!=null)&&(l.statement(n.body,X),g()==null&&lx(n,V,!0,g1)))return p.pop()};return b!=null&&e_({...o,path:b,value:T.bind(T)}),T.toString=()=>`[Function${b==null?"":`: ${b}`}]`,Object.setPrototypeOf(T,xD(n,i,"Function").literal),T}var K9t=class extends ZM{constructor({node:n,environment:i,message:l="Missing catch or finally after try"}){super({node:n,environment:i,message:l})}};function cpr(o){let{node:n,evaluate:i,environment:l,throwError:p}=o,m,g=()=>{try{return i.statement(n.tryBlock,{...o,throwError:I=>(m=I,I),getCurrentError:()=>m})}catch(I){m=I}},b=I=>{i.nodeWithArgument(n.catchClause,I,o)},T=()=>{let I;i.statement(n.finallyBlock,{...o,throwError:R=>(I=R,o.throwError(R),R),getCurrentError:()=>I})};if(n.catchClause==null&&n.finallyBlock==null)return p(new K9t({node:n,environment:l}));n.catchClause!=null&&n.finallyBlock==null?(g(),m!=null&&b(m)):n.catchClause!=null&&n.finallyBlock!=null?(g(),m!=null&&b(m),T()):n.catchClause==null&&n.finallyBlock!=null&&(g(),m!=null&&p(m),T())}function kDn({name:o,extendedType:n,ctor:i=()=>{}}){return n==null?new Function("ctor",`return class ${o??""} {constructor () {const ctorReturnValue = ctor.call(this, ...arguments); if (ctorReturnValue != null) return ctorReturnValue;}}`)(i):new Function("extendedType","ctor",`return class ${o??""} extends extendedType {constructor () {super(...arguments); const ctorReturnValue = ctor.call(this, ...arguments); if (ctorReturnValue != null) return ctorReturnValue;}}`)(n,i)}function IVe(o,n){return"canHaveDecorators"in n?n.canHaveDecorators(o):!0}function PVe(o,n){var i;if("getDecorators"in n)return n.getDecorators(o);{let l="decorators"in o&&Array.isArray(o.decorators)?o.decorators:void 0,p=(i=o.modifiers)===null||i===void 0?void 0:i.filter(m=>"expression"in m);return[...l??[],...p??[]]}}function upr(o){var n;let{node:i,evaluate:l,stack:p,logger:m,typescript:g,getCurrentError:b}=o,T,I=i.members.find(g.isConstructorDeclaration),R=i.members.filter(De=>!g.isConstructorDeclaration(De)),V;if(I!=null){if(l.declaration(I,o),b()!=null)return;V=p.pop()}if(i.heritageClauses!=null){let De=i.heritageClauses.find(we=>we.token===g.SyntaxKind.ExtendsKeyword);if(De!=null){let[we]=De.types;if(we!=null&&(T=l.expression(we.expression,o),b()!=null))return}}let X=i.name==null?void 0:i.name.text,ue=kDn({name:X,extendedType:T,ctor:V});if(IVe(i,g))for(let De of(n=PVe(i,g))!==null&&n!==void 0?n:[]){if(l.nodeWithArgument(De,[ue],o),b()!=null)return;ue=p.pop()}ue.toString=()=>`[Class${X==null?"":`: ${X}`}]`,X!=null&&e_({...o,path:X,value:ue,newBinding:!0});for(let De of R)if(l.nodeWithArgument(De,DU(De,g.SyntaxKind.StaticKeyword)?ue:ue.prototype,o),b()!=null)return;m.logHeritage(ue),p.push(ue),m.logStack(p)}function ppr(o){let{node:n,environment:i,evaluate:l,stack:p,getCurrentError:m}=o;function g(...b){let T=_I(i,n),I={...o,environment:T};if(e_({...I,path:g1,value:!1,newBinding:!0}),e_({...I,path:"arguments",value:arguments,newBinding:!0}),this!=null&&e_({...I,path:$M,value:this,newBinding:!0}),TU({...I,node:n.parameters},b,this),!(n.body==null||m()!=null)&&(l.statement(n.body,I),m()==null&&lx(n,T,!0,g1)))return p.pop()}g.toString=()=>"[Function: constructor]",p.push(g)}function fpr({node:o,environment:n}){let i=xD(o,n,HCe);return i?.literal}function dpr({node:o,evaluate:n,...i}){return n.expression(o.expression,i)}function mpr(o){var n;let{node:i,evaluate:l,stack:p,logger:m,typescript:g,getCurrentError:b}=o,T,I=i.members.find(g.isConstructorDeclaration),R=i.members.filter(De=>!g.isConstructorDeclaration(De)),V;if(I!=null){if(l.declaration(I,o),b()!=null)return;V=p.pop()}if(i.heritageClauses!=null){let De=i.heritageClauses.find(we=>we.token===g.SyntaxKind.ExtendsKeyword);if(De!=null){let[we]=De.types;if(we!=null&&(T=l.expression(we.expression,o),b()!=null))return}}let X=i.name==null?void 0:i.name.text,ue=kDn({name:X,extendedType:T,ctor:V});if(IVe(i,g))for(let De of(n=PVe(i,g))!==null&&n!==void 0?n:[]){if(l.nodeWithArgument(De,[ue],o),b()!=null)return;ue=p.pop()}ue.toString=()=>`[Class${X==null?"":`: ${X}`}]`,X!=null&&e_({...o,path:X,value:ue,newBinding:!0});for(let De of R)if(l.nodeWithArgument(De,DU(De,g.SyntaxKind.StaticKeyword)?ue:ue.prototype,o),b()!=null)return;return m.logHeritage(ue),ue}function _pr(o){return null}function hpr({node:o,evaluate:n,...i}){n.expression(o.expression,i)}function gpr({evaluate:o,node:n,...i}){let l=o.expression(n.expression,i);if(i.getCurrentError()==null)return typeof l}function Bpr({node:o,environment:n}){let i=xD(o,n,"BigInt").literal;return i(o.text.endsWith("n")?o.text.slice(0,-1):o.text)}function ypr(o){let{node:n,environment:i,evaluate:l,stack:p,getCurrentError:m}=o,g=xD(n,i,"Object").literal,b=g.create(g.prototype),T=n.name.text;e_({...o,path:T,value:b,newBinding:!0});for(let I of n.members)if(l.nodeWithArgument(I,b,o),m()!=null)return;b.toString=()=>`[Enum: ${T}]`,p.push(b)}function Cpr(o){let{node:n,evaluate:i,environment:l,typeChecker:p,stack:m,getCurrentError:g}=o,b=xD(n,l,"Object").literal,T=b.create(b.prototype),I=p?.getSymbolAtLocation(n);if(I!=null){let R=I.exports;if(R!=null)for(let[V,X]of R.entries()){let ue=X.valueDeclaration;if(ue==null||(i.declaration(ue,o),g()!=null))return;T[V]=m.pop()}}m.push(T)}function vpr(o){let{getCurrentError:n,stack:i}=o,l=jot(o);n()==null&&i.push(l)}function bpr({node:o,evaluate:n,...i}){o.importClause!=null&&n.declaration(o.importClause,i)}function Spr({node:o,evaluate:n,...i}){let{getCurrentError:l,throwError:p}=i,m=n.expression(o.expression,i);if(l()==null)return p(m)}var X9t=class extends Nre{constructor({duration:n,environment:i,node:l,message:p=`Maximum operation duration exceeded: ${n}`}){super({violation:"maxOpDuration",message:p,node:l,environment:i}),this.duration=n}};async function xpr(o){let{node:n,environment:i,evaluate:l,policy:p,throwError:m,getCurrentError:g}=o,b=p.maxOpDuration===1/0?void 0:setTimeout(()=>{m(new X9t({duration:p.maxOpDuration,node:n,environment:i}))},p.maxOpDuration),T=l.expression(n.expression,o);if(b!=null&&clearTimeout(b),g()==null)return T}function Epr({node:o,evaluate:n,...i}){let{getCurrentError:l}=i,p=n.expression(o.condition,i);if(l()==null)return p?n.expression(o.whenTrue,i):n.expression(o.whenFalse,i)}function Qot(o,n){let i=o;for(;i!=null&&!n.isSourceFile(i);){if(DU(i,n.SyntaxKind.StaticKeyword))return!0;i=i.parent}return!1}function wDn(o,n){var i,l;let{node:p,environment:m,evaluate:g,stack:b,typescript:T,getCurrentError:I}=o,R=g.nodeWithValue(p.name,o);if(I()!=null)return;let V=Qot(p,T);if(n==null){let ue;if(T.isClassLike(p.parent)){if(g.declaration(p.parent,o),I()!=null)return;ue=b.pop()}else if(ue=g.expression(p.parent,o),I()!=null)return;b.push(V?ue[R]:ue.prototype[R]);return}let X=DU(p,T.SyntaxKind.AsyncKeyword)?async function(...De){let we=_I(m,p),We={...o,environment:we};if(e_({...We,path:g1,value:!1,newBinding:!0}),e_({...We,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(e_({...We,path:$M,value:this,newBinding:!0}),e_({...We,path:HCe,value:V?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),TU({...o,node:p.parameters,environment:we},De),!(p.body==null||I()!=null)&&(g.statement(p.body,We),I()==null&&lx(p,we,!0,g1)))return b.pop()}:function(...De){let we=_I(m,p),We={...o,environment:we};if(e_({...We,path:g1,value:!1,newBinding:!0}),e_({...We,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(e_({...We,path:$M,value:this,newBinding:!0}),e_({...We,path:HCe,value:V?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),TU({...o,node:p.parameters,environment:we},De),!(p.body==null||I()!=null)&&(g.statement(p.body,We),I()==null&&lx(p,we,!0,g1)))return b.pop()};if(X.toString=()=>`[Method: ${R}]`,Object.setPrototypeOf(X,xD(p,m,"Function").literal),n[R]=X,IVe(p,T))for(let ue of(i=PVe(p,T))!==null&&i!==void 0?i:[]){if(g.nodeWithArgument(ue,[n,R],o),I()!=null)return;b.pop()}if(p.parameters!=null){let ue=p.parameters.filter(De=>!(T.isIdentifier(De.name)&&De.name.text==="this"));for(let De=0;De<ue.length;De++){let we=ue[De];if(IVe(we,T))for(let We of(l=PVe(we,T))!==null&&l!==void 0?l:[]){if(g.nodeWithArgument(We,[n,R,De],o),I()!=null)return;b.pop()}}}}function IDn({node:o,evaluate:n,typescript:i,stack:l,...p},m){var g;let{getCurrentError:b}=p,T=n.nodeWithValue(o.name,p);if(b()==null){if(m==null){if(n.declaration(o.parent,p),b()!=null)return;let I=l.pop(),R=Qot(o,i);l.push(R?I[T]:I.prototype[T]);return}if(m[T]=o.initializer==null?void 0:n.expression(o.initializer,p),b()==null&&IVe(o,i))for(let I of(g=PVe(o,i))!==null&&g!==void 0?g:[]){if(n.nodeWithArgument(I,[m,T],p),b()!=null)return;l.pop()}}}function PDn(o,n){let{node:i,environment:l,evaluate:p,stack:m,typescript:g,getCurrentError:b}=o;if(g.isTypeLiteralNode(i.parent)||g.isInterfaceDeclaration(i.parent))return;let T=p.nodeWithValue(i.name,o);if(b()!=null)return;let I=Qot(i,g);if(n==null){let X;if(g.isClassLike(i.parent)){if(p.declaration(i.parent,o),b()!=null)return;X=m.pop()}else if(X=p.expression(i.parent,o),b()!=null)return;m.push(I?X[T]:X.prototype[T]);return}function R(){let X=_I(l,i),ue={...o,environment:X};if(e_({...ue,path:g1,value:!1,newBinding:!0}),e_({...ue,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(e_({...ue,path:$M,value:this,newBinding:!0}),e_({...ue,path:HCe,value:I?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),i.body!=null&&(p.statement(i.body,ue),b()==null&&lx(i,X,!0,g1)))return m.pop()}R.toString=()=>`[Get: ${T}]`;let V=Object.getOwnPropertyDescriptor(n,T);V==null&&(V={}),Object.defineProperty(n,T,{...V,configurable:!0,get:R})}function Dpr({node:o,evaluate:n,...i}){let{getCurrentError:l}=i;if(!(o.name!=null&&(n.declaration(o.name,i),l()!=null))&&o.namedBindings!=null)if("elements"in o.namedBindings){for(let p of o.namedBindings.elements)if(n.declaration(p,i),l()!=null)return}else n.declaration(o.namedBindings.name,i)}function Tpr({node:o,evaluate:n,...i}){var l;n.declaration((l=o.propertyName)!==null&&l!==void 0?l:o.name,i)}function Apr({node:o,evaluate:n,...i}){n.declaration(o.name,i)}var qot=class extends ZM{constructor({node:n,environment:i,message:l="'SyntaxError'"}){super({message:l,environment:i,node:n})}};function kpr({node:o,typescript:n,throwError:i,environment:l}){var p,m;switch(o.keywordToken){case n.SyntaxKind.NewKeyword:switch(o.name.text){case"target":return(p=xD(o,l,"[[NewTarget]]"))===null||p===void 0?void 0:p.literal;default:return i(new qot({node:o.name,environment:l}))}case n.SyntaxKind.ImportKeyword:switch(o.name.text){case"meta":return(m=xD(o,l,"import.meta"))===null||m===void 0?void 0:m.literal;default:return i(new qot({node:o.name,environment:l}))}}}function tWt({node:o,...n}){var i,l,p,m,g,b;return n.typescript.isIdentifier(o)?uDn({node:o,...n}):!((l=(i=n.typescript).isPrivateIdentifier)===null||l===void 0)&&l.call(i,o)?uDn({node:o,...n}):n.typescript.isStringLiteralLike(o)?Iur({node:o,...n}):n.typescript.isNumericLiteral(o)?Pur({node:o,...n}):SDn(o,n.typescript)?Nur({node:o,...n}):n.typescript.isForOfStatement(o)?tpr({node:o,...n}):n.typescript.isForInStatement(o)?apr({node:o,...n}):n.typescript.isForStatement(o)?opr({node:o,...n}):n.typescript.isWhileStatement(o)?spr({node:o,...n}):n.typescript.isRegularExpressionLiteral(o)?Rur({node:o,...n}):n.typescript.isObjectLiteralExpression(o)?Lur({node:o,...n}):n.typescript.isAwaitExpression(o)?xpr({node:o,...n}):!((m=(p=n.typescript).isTypeAssertionExpression)===null||m===void 0)&&m.call(p,o)||!("isTypeAssertionExpression"in n.typescript)&&n.typescript.isTypeAssertion(o)?Xur({node:o,...n}):n.typescript.isTemplateExpression(o)?Kur({node:o,...n}):n.typescript.isMethodDeclaration(o)?wDn({node:o,...n}):n.typescript.isPropertyDeclaration(o)?IDn({node:o,...n}):n.typescript.isGetAccessorDeclaration(o)?PDn({node:o,...n}):n.typescript.isArrayLiteralExpression(o)?Fur({node:o,...n}):n.typescript.isSourceFile(o)?Cpr({node:o,...n}):n.typescript.isModuleDeclaration(o)?vpr({node:o,...n}):n.typescript.isPrefixUnaryExpression(o)?zur({node:o,...n}):n.typescript.isPostfixUnaryExpression(o)?Yur({node:o,...n}):n.typescript.isVariableStatement(o)?Gur({node:o,...n}):n.typescript.isComputedPropertyName(o)?Uur({node:o,...n}):n.typescript.isVariableDeclarationList(o)?ADn({node:o,...n}):n.typescript.isImportDeclaration(o)?bpr({node:o,...n}):n.typescript.isImportClause(o)?Dpr({node:o,...n}):n.typescript.isImportSpecifier(o)?Tpr({node:o,...n}):n.typescript.isNamespaceImport(o)?Apr({node:o,...n}):n.typescript.isImportEqualsDeclaration(o)?({...n},void 0):n.typescript.isMetaProperty(o)?kpr({node:o,...n}):n.typescript.isThrowStatement(o)?Spr({node:o,...n}):n.typescript.isVariableDeclaration(o)?EDn({node:o,...n}):n.typescript.isEnumDeclaration(o)?ypr({node:o,...n}):n.typescript.isConstructorDeclaration(o)?ppr({node:o,...n}):n.typescript.isBinaryExpression(o)?Dur({node:o,...n}):n.typescript.isParenthesizedExpression(o)?kur({node:o,...n}):n.typescript.isExpressionStatement(o)?qur({node:o,...n}):n.typescript.isArrowFunction(o)?wur({node:o,...n}):n.typescript.isFunctionDeclaration(o)?Hur({node:o,...n}):n.typescript.isFunctionExpression(o)?lpr({node:o,...n}):n.typescript.isClassDeclaration(o)?upr({node:o,...n}):n.typescript.isIfStatement(o)?Jur({node:o,...n}):n.typescript.isConditionalExpression(o)?Epr({node:o,...n}):n.typescript.isPropertyAccessExpression(o)?jur({node:o,...n}):n.typescript.isElementAccessExpression(o)?Vur({node:o,...n}):n.typescript.isCallExpression(o)?Aur({node:o,...n}):n.typescript.isSwitchStatement(o)?epr({node:o,...n}):n.typescript.isNewExpression(o)?Qur({node:o,...n}):n.typescript.isNonNullExpression(o)?$ur({node:o,...n}):n.typescript.isAsExpression(o)?Zur({node:o,...n}):n.typescript.isBlock(o)?Our({node:o,...n}):n.typescript.isClassExpression(o)?mpr({node:o,...n}):n.typescript.isSpreadElement(o)?dpr({node:o,...n}):n.typescript.isTryStatement(o)?cpr({node:o,...n}):n.typescript.isReturnStatement(o)?Wur({node:o,...n}):DDn(o,n.typescript)?npr({node:o,...n}):n.typescript.isVoidExpression(o)?hpr({node:o,...n}):n.typescript.isTypeOfExpression(o)?gpr({node:o,...n}):Yot(o,n.typescript)?fpr({node:o,...n}):xDn(o,n.typescript)?_pr({node:o,...n}):!((b=(g=n.typescript).isBigIntLiteral)===null||b===void 0)&&b.call(g,o)?Bpr({node:o,...n}):n.typescript.isBreakStatement(o)?rpr({node:o,...n}):n.typescript.isContinueStatement(o)?ipr({node:o,...n}):n.typescript.isTypeAliasDeclaration(o)?({...n},void 0):n.typescript.isInterfaceDeclaration(o)?({...n},void 0):n.getCurrentError()!=null?void 0:n.throwError(new qI({node:o,environment:n.environment,typescript:n.typescript}))}function nWt(){return[]}function wpr(o){o.logger.logNode(o.node,o.typescript),o.statementTraversalStack=nWt(),tWt(o)}function Ipr(o){let{getCurrentError:n}=o;o.logger.logNode(o.node,o.typescript);let i=tWt(o);if(n()==null)return o.reporting.reportIntermediateResults!=null&&o.reporting.reportIntermediateResults({node:o.node,value:i}),i}function Ppr(o){o.logger.logNode(o.node,o.typescript),tWt(o)}function Npr({node:o,evaluate:n,typescript:i,logger:l,...p},m){var g;i.isIdentifier(o)||!((g=i.isPrivateIdentifier)===null||g===void 0)&&g.call(i,o)?(e_({...p,node:o,path:o.text,value:m,newBinding:!0}),l.logBinding(o.text,m,"evaluateBindingName")):n.nodeWithArgument(o,m,p)}function Rpr(o,n){let{node:i,environment:l,evaluate:p,typescript:m,getCurrentError:g}=o,b=p.nodeWithValue(i.name,o);if(g()!=null)return;let T=Qot(i,m);function I(...V){let X=_I(l,i),ue={...o,environment:X};e_({...ue,path:g1,value:!1,newBinding:!0}),e_({...ue,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(e_({...ue,path:$M,value:this,newBinding:!0}),e_({...ue,path:HCe,value:T?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),TU({...ue,node:i.parameters},V),!(i.body==null||g()!=null)&&(p.statement(i.body,ue),g()==null)}I.toString=()=>`[Set: ${b}]`;let R=Object.getOwnPropertyDescriptor(n,b);R==null&&(R={}),Object.defineProperty(n,b,{...R,configurable:!0,set:I})}function Lpr({node:o,evaluate:n,...i},l){let p=n.expression(o.initializer,i);if(i.getCurrentError()!=null)return;let m=n.nodeWithValue(o.name,i);i.getCurrentError()==null&&(l[m]=p)}function Mpr({node:o,evaluate:n,logger:i,...l},p){let m=p!=null||o.initializer===void 0?p:n.expression(o.initializer,l);l.getCurrentError()==null&&(i.logBinding(o.name.getText(),m,"evaluateParameterDeclaration"),n.nodeWithArgument(o.name,m,l))}function Fpr({node:o,evaluate:n,...i},l){let{getCurrentError:p}=i,m=o.name.text,g=n.expression(o.name,i);p()==null&&(l[m]=g)}function Opr({node:o,evaluate:n,...i},l){let p=n.expression(o.expression,i);i.getCurrentError()==null&&Object.assign(l,p)}function Wpr({node:o,evaluate:n,...i},l){let p=l[Symbol.iterator](),m=0;for(;m<o.elements.length;){let{done:g,value:b}=p.next();if(g===!0)break;if(n.nodeWithArgument(o.elements[m++],b,i),i.getCurrentError()!=null)return}}function Gpr(o,n){var i,l,p,m;let{node:g,evaluate:b,logger:T,typescript:I,getCurrentError:R}=o,V=g.initializer==null?void 0:b.expression(g.initializer,o);if(R()==null){if((I.isIdentifier(g.name)||!((i=I.isPrivateIdentifier)===null||i===void 0)&&i.call(I,g.name))&&g.propertyName!=null){let X=g.name.text,ue=b.nodeWithValue(g.propertyName,o);if(R()!=null)return;let De=I.isArrayBindingPattern(g.parent)?n:n[ue];e_({...o,path:X,value:De??V,newBinding:!0})}else if((I.isIdentifier(g.name)||!((l=I.isPrivateIdentifier)===null||l===void 0)&&l.call(I,g.name))&&g.propertyName==null){let X=g.name.text,ue=I.isArrayBindingPattern(g.parent)?n:n[X],De=ue??V;T.logBinding(g.name.text,De),e_({...o,path:g.name.text,value:De,newBinding:!0})}else if(!I.isIdentifier(g.name)&&!(!((p=I.isPrivateIdentifier)===null||p===void 0)&&p.call(I,g.name))&&g.propertyName!=null){let X=b.nodeWithValue(g.propertyName,o);if(R()!=null)return;let ue=I.isArrayBindingPattern(g.parent)?n:n[X],De=ue??V;if(b.nodeWithArgument(g.name,De,o),R()!=null)return}else if(!I.isIdentifier(g.name)&&!(!((m=I.isPrivateIdentifier)===null||m===void 0)&&m.call(I,g.name))&&g.propertyName==null){let X=n??V;if(b.nodeWithArgument(g.name,X,o),R()!=null)return}}}function zpr({node:o,evaluate:n,...i},l){for(let p of o.elements)if(n.nodeWithArgument(p,l,i),i.getCurrentError()!=null)return}function jpr(o,n){let{node:i,evaluate:l,environment:p,getCurrentError:m}=o,g=_I(p,i),b={...o,environment:g};e_({...b,path:YL,value:!1,newBinding:!0});for(let T of i.clauses){if(l.nodeWithArgument(T,n,b),m()!=null)return;if(lx(i,g,!0,YL,QM,g1))break}}function Vpr({node:o,evaluate:n,...i},l){let{getCurrentError:p}=i;if(!(n.expression(o.expression,i)!==l||p()!=null))for(let g of o.statements){if(n.statement(g,i),p()!=null)return;if(lx(o,i.environment,!0,YL,QM,g1))break}}function Upr(o){let{node:n,evaluate:i,environment:l,getCurrentError:p}=o;for(let m of n.statements){if(i.statement(m,o),p()!=null)return;if(lx(n,l,!0,YL,QM,g1))break}}function Hpr(o,n){let{node:i,evaluate:l,environment:p,getCurrentError:m}=o,g=i.variableDeclaration==null?p:_I(p,i),b={...o,environment:g};i.variableDeclaration!=null&&(l.nodeWithArgument(i.variableDeclaration,n,b),m()!=null)||l.statement(i.block,b)}function Jpr(o,n,i,l){let p=arguments.length,m=p<3?n:l===null?l=Object.getOwnPropertyDescriptor(n,i):l,g;for(let b=o.length-1;b>=0;b--)(g=o[b])&&(m=(p<3?g(m):p>3?g(n,i,m):g(n,i))||m);return p>3&&m&&Object.defineProperty(n,i,m),m}function qpr(o,n){return function(i,l){n(i,l,o)}}function Kpr(o,[n,i,l]){let{node:p,evaluate:m,environment:g,throwError:b,stack:T,getCurrentError:I}=o,R=m.expression(p.expression,o);if(I()==null){if(typeof R!="function")return b(new Hot({node:p,environment:g,value:R,message:`${eWt(R)} is not a valid decorator implementation'`}));T.push(Jpr([l!=null?qpr(l,R):R],n,i))}}function Xpr(o,n){let{node:i,typeChecker:l,evaluate:p,getCurrentError:m}=o,g=l?.getConstantValue(i);if(g==null)if(i.initializer!=null){if(g=p.expression(i.initializer,o),m()!=null)return}else{let T=i.parent.members,I=T.findIndex(X=>X===i),R=T.slice(0,I),V=0;for(let X of[...R].reverse())if(V++,X.initializer!=null){let ue=p.expression(X.initializer,o);if(m()!=null)return;if(typeof ue=="number"){g=ue+V;break}}g==null&&(g=I)}let b=p.nodeWithValue(i.name,o);m()==null&&(typeof g=="string"?n[b]=g:n[n[b]=g??0]=b)}function Ypr(o,n){o.logger.logNode(o.node,o.typescript,"nodeWithArgument");let{node:i,...l}=o;if(l.typescript.isGetAccessorDeclaration(i))PDn({node:i,...l},n);else if(l.typescript.isSetAccessorDeclaration(i))Rpr({node:i,...l},n);else if(l.typescript.isPropertyAssignment(i))Lpr({node:i,...l},n);else if(l.typescript.isPropertyDeclaration(i))IDn({node:i,...l},n);else if(l.typescript.isParameter(i))Mpr({node:i,...l},n);else if(l.typescript.isEnumMember(i))Xpr({node:i,...l},n);else if(l.typescript.isShorthandPropertyAssignment(i))Fpr({node:i,...l},n);else if(l.typescript.isDecorator(i))Kpr({node:i,...l},n);else if(l.typescript.isSpreadAssignment(i))Opr({node:i,...l},n);else if(l.typescript.isMethodDeclaration(i))wDn({node:i,...l},n);else if(l.typescript.isArrayBindingPattern(i))Wpr({node:i,...l},n);else if(l.typescript.isBindingElement(i))Gpr({node:i,...l},n);else if(l.typescript.isObjectBindingPattern(i))zpr({node:i,...l},n);else if(l.typescript.isVariableDeclaration(i))EDn({node:i,...l},n);else if(l.typescript.isCaseBlock(i))jpr({node:i,...l},n);else if(l.typescript.isCaseClause(i))Vpr({node:i,...l},n);else if(l.typescript.isDefaultClause(i))Upr({node:i,...l});else if(l.typescript.isCatchClause(i))Hpr({node:i,...l},n);else if(l.typescript.isBindingName(i))Npr({node:i,...l},n);else if(l.typescript.isOmittedExpression(i))({...l});else{if(o.getCurrentError()!=null)return;l.throwError(new qI({node:i,environment:l.environment,typescript:l.typescript}))}}function Qpr({node:o,evaluate:n,typescript:i,...l}){var p;return i.isComputedPropertyName(o)?n.expression(o.expression,l):i.isIdentifier(o)||!((p=i.isPrivateIdentifier)===null||p===void 0)&&p.call(i,o)?o.text:n.expression(o,l)}function $pr(o){o.logger.logNode(o.node,o.typescript,"nodeWithValue");let{node:n,...i}=o;return o.typescript.isPropertyName(n)||o.typescript.isPrivateIdentifier(n)?Qpr({node:n,...i}):o.throwError(new qI({node:n,environment:o.environment,typescript:o.typescript}))}function Zpr(o){let n=0,{policy:i,reporting:l}=o,p=(b,T)=>{let{environment:I=o.environment,statementTraversalStack:R=o.statementTraversalStack,getCurrentError:V=o.getCurrentError,throwError:X=o.throwError}=T??{},ue=V();if(ue!=null)return ue;if(n++,n>=i.maxOps)return X(new H9t({ops:n,environment:I,node:b}));R.push(b.kind),l.reportTraversal!=null&&l.reportTraversal({node:b})},m={statement:(b,T)=>{let I={...T,statementTraversalStack:nWt()},R=p(b,I);if(!Mee(R))return wpr(g(b,I))},declaration:(b,T)=>{let I=p(b,T);if(!Mee(I))return Ppr(g(b,T))},nodeWithArgument:(b,T,I)=>{let R=p(b,I);if(!Mee(R))return Ypr(g(b,I),T)},expression:(b,T)=>{let I=p(b,T);return Mee(I)?I:Ipr(g(b,T))},nodeWithValue:(b,T)=>{let I=p(b,T);return Mee(I)?I:$pr(g(b,T))}};function g(b,T){return{...o,...T,evaluate:m,node:b}}return m}function kVe(o,n){return o===n.SyntaxKind.NumericLiteral?"NumericLiteral":n.SyntaxKind[o]}var Y9t=class{constructor(n={}){let{logLevel:i=0,color:{info:l="white",verbose:p="yellow",debug:m="magenta"}={}}=typeof n=="object"?n:{logLevel:n};this.options={logLevel:i,color:{info:l,verbose:p,debug:m}}}logInfo(n){this.options.logLevel<1||console.log(this.formatWithColor(this.options.color.info,n))}logVerbose(n){this.options.logLevel<2||console.log(this.formatWithColor(this.options.color.verbose,n))}logDebug(n){this.options.logLevel<3||console.log(this.formatWithColor(this.options.color.debug,n))}logContinue(n,i){this.options.logLevel<3||console.log(`${this.formatWithColor(this.options.color.debug,"continue")} encountered within ${this.formatWithColor(this.options.color.debug,kVe(n.kind,i))}`)}logBreak(n,i){this.options.logLevel<3||console.log(`${this.formatWithColor(this.options.color.debug,"break")} encountered within ${this.formatWithColor(this.options.color.debug,kVe(n.kind,i))}`)}logReturn(n,i){this.options.logLevel<3||console.log(`${this.formatWithColor(this.options.color.debug,"return")} encountered within ${this.formatWithColor(this.options.color.debug,kVe(n.kind,i))}`)}logResult(n,i){this.options.logLevel<1||(i!=null?console.log(this.formatWithColor(this.options.color.info,`(intermediate value from context '${i}'):`),this.formatWithColor(this.options.color.info,"[RESULT]:"),this.compactValue(n)):console.log(this.formatWithColor(this.options.color.info,"[RESULT]:"),n))}logNode(n,i,l){if(this.options.logLevel<3)return;let p=`[${kVe(n.kind,i)}]`.padEnd(25);l!=null&&(p+=this.formatWithColor(this.options.color.debug,`(${l})`));let m=n.getText(),g=this.formatWithColor(this.options.color.debug,p),b=this.formatWithColor(this.options.color.debug,m);console.log(g),console.log(b)}logBinding(n,i,l){this.options.logLevel<2||console.log(`${l==null?"":this.formatWithColor(this.options.color.verbose,`(${l}): `)}${this.formatWithColor(this.options.color.verbose,`${n} ->`)}`,this.formatWithColor(this.options.color.verbose,this.compactValue(i)))}logHeritage(n){if(this.options.logLevel<3)return;let i=Object.getPrototypeOf(n);i.toString().includes("[Class")&&console.log(`${this.formatWithColor(this.options.color.debug,n.toString())} ${this.formatWithColor(this.options.color.debug,"extends")} ${this.formatWithColor(this.options.color.debug,i.toString())}`)}logStack(n){this.options.logLevel<3||console.log(this.formatWithColor(this.options.color.debug,`Stack value: ${eWt(this.compactValue(n.lastItem))}`))}logStatementTraversalStack(n,i){this.options.logLevel<3||console.log(this.formatWithColor(this.options.color.debug,`[${n.map(l=>kVe(l,i)).join(", ")}]`))}compactValue(n){return(0,fDn.inspect)(n,{depth:0,colors:!0,compact:!0,maxArrayLength:5})}formatWithColor(n,i){return dDn.default[n](i)}};function efr(o,n){var i;return n.isExpressionNode(o)||n.isIdentifier(o)||((i=n.isPrivateIdentifier)===null||i===void 0?void 0:i.call(n,o))}function tfr(o,n){return n.isStatementButNotDeclaration(o)}function nfr(){let o=[];return{[Symbol.iterator](){return o[Symbol.iterator]()},get length(){return o.length},get lastItem(){return o[o.length-1]},push(...n){return o.push(...n)},pop(){return o.pop()}}}function rfr(o,n,i){o.reportErrors!=null&&!o.reportedErrorSet.has(n)&&(o.reportedErrorSet.add(n),o.reportErrors({error:n,node:n instanceof ZM?n.node:i}))}function ifr(){return new WeakSet}function NDn({typeChecker:o,node:n,environment:{preset:i="NODE",extra:l={}}={},moduleOverrides:p={},typescript:m=tur,logLevel:g=0,policy:{deterministic:b=!1,network:T=!1,console:I=!1,maxOps:R=1/0,maxOpDuration:V=1/0,io:X={read:!0,write:!1},process:ue={exit:!1,spawnChild:!1}}={},reporting:De={}}){let we=Eur(n,m);if(we.success)return we;let We={deterministic:b,maxOps:R,maxOpDuration:V,network:T,console:I,io:{read:typeof X=="boolean"?X:X.read,write:typeof X=="boolean"?X:X.write},process:{exit:typeof ue=="boolean"?ue:ue.exit,spawnChild:typeof ue=="boolean"?ue:ue.spawnChild}},Ne={...De,reportedErrorSet:ifr()},Me,Ct=new Y9t(g),Rt=$n=>(rfr(Ne,$n,$n.node),Me=$n,Me),en=xur({inputEnvironment:{preset:i,extra:l},startingNode:n,policy:We}),Tn=nfr(),hn=nWt(),ln={policy:We,typeChecker:o,typescript:m,logger:Ct,stack:Tn,moduleOverrides:p,reporting:Ne,throwError:Rt,environment:en,statementTraversalStack:hn,getCurrentError:()=>Me},Nn=Zpr(ln);try{let $n;return efr(n,m)?$n=Nn.expression(n,ln):tfr(n,m)?(Nn.statement(n,ln),$n=Tn.pop()):_Dn(n,m)?(Nn.declaration(n,ln),$n=Tn.pop()):Rt(new qI({node:n,environment:en,typescript:m})),Me!=null?{success:!1,reason:Me}:(Ct.logResult($n),{success:!0,value:$n})}catch($n){return Rt($n),{success:!1,reason:$n}}}var zDn=yd(WO(),1),e4=yd(WO(),1),LVe=yd(WO(),1);var KCe=yd(WO(),1);var Gj=yd(WO(),1);var oWt=yd(WO(),1);var sWt=yd(WO(),1);var ofr=o=>{if(Array.isArray(o))return"array";if(typeof o=="string")return"string";if(typeof o=="number")return"number";if(typeof o=="boolean")return"boolean";if(o===null)return"null";if(o===void 0)return"undefined";throw new Error(`Unexpected literal type: ${o}`)},ck=o=>o!=null,ODn=o=>o==null,WDn=o=>o!=null&&typeof o=="object",sfr=o=>Array.isArray(o),afr=o=>{let n=typeof o;return n==="string"||n==="number"||n==="boolean"||o===null||o===void 0},P1=o=>RVe.Node.isAsExpression(o)||RVe.Node.isParenthesizedExpression(o)||RVe.Node.isNonNullExpression(o)||RVe.Node.isTypeAssertion(o)?P1(o.getExpression()):o,lfr=o=>o.getTagNameNode().getText(),cfr=/\s+/g,GDn=o=>o.replaceAll(cfr," "),ufr=o=>{let n=o.getSourceFile(),[i,l]=[o.getStart(),o.getEnd()],p=n.getLineAndColumnAtPos(i),m=n.getLineAndColumnAtPos(l);return{startPosition:i,startLineNumber:p.line,startColumn:p.column,endPosition:l,endLineNumber:m.line,endColumn:m.column}},Lre=class{type;stack=[];node;constructor(o){this.type=o.type,this.node=o.node,this.stack=[...o.stack??[]]}getNode(){return this.node}getStack(){return this.stack}getRange=()=>ufr(this.node);toJSON(){let o=this.getRange();return{type:this.type,value:this.value,node:this.node.getKindName(),line:o.startLineNumber,column:o.startColumn}}toString(){return JSON.stringify(this.toJSON(),null,2)}},RDn=class extends Lre{value;isEmpty;constructor(o){super(o),this.value=o.value,this.isEmpty=o.isEmpty}},pfr=class extends Lre{value;kind;constructor(o){super(o),this.value=o.value,this.kind=o.kind}},ffr=class extends Lre{value;spreadConditions;constructor(o){super(o),this.value=o.value}},dfr=class extends Lre{value;constructor(o){super(o),this.value=o.value}},mfr=class extends Lre{},_fr=class extends Lre{whenTrue;whenFalse;constructor(o){super(o),this.whenTrue=o.whenTrue,this.whenFalse=o.whenFalse}},hfr=class extends Lre{},KSe=o=>o instanceof Lre;function iWt(o,n,i){return U_(o).when(ODn,()=>{}).when(KSe,l=>l).when(WDn,l=>Zc.object(l,n,i)).when(sfr,l=>l.length===1?iWt(l[0],n,i):l.map(p=>iWt(p,n,i))).when(afr,l=>Zc.literal(l,n,i)).otherwise(()=>{})}var Zc={object(o,n,i){return new RDn({type:"object",value:o,node:n,stack:i})},literal(o,n,i){return new pfr({type:"literal",value:o,kind:ofr(o),node:n,stack:i})},map(o,n,i){return new ffr({type:"map",value:o,node:n,stack:i})},array(o,n,i){return new dfr({type:"array",value:o,node:n,stack:i})},conditional(o,n,i,l){return new _fr({type:"conditional",whenTrue:o,whenFalse:n,node:i,stack:l})},from:iWt,emptyObject:(o,n)=>new RDn({type:"object",value:{},isEmpty:!0,node:o,stack:n}),emptyInitializer:(o,n)=>new hfr({type:"empty-initializer",node:o,stack:n}),unresolvable:(o,n)=>new mfr({type:"unresolvable",node:o,stack:n}),isObject(o){return o?.type==="object"},isLiteral(o){return o?.type==="literal"},isMap(o){return o?.type==="map"},isArray(o){return o?.type==="array"},isUnresolvable(o){return o?.type==="unresolvable"},isConditional(o){return o?.type==="conditional"},isEmptyInitializer(o){return o?.type==="empty-initializer"},isNumberLiteral(o){return Zc.isLiteral(o)&&o.kind==="number"},hasValue:o=>Zc.isObject(o)||Zc.isLiteral(o)||Zc.isMap(o)||Zc.isArray(o)},jDn=Symbol("EvalError"),rWt=new WeakMap,gfr=(o,n,i)=>{if(i.flags?.skipEvaluate||i.canEval&&!i.canEval?.(o,n))return;if(rWt.has(o))return rWt.get(o);let l=NDn({policy:{deterministic:!0,network:!1,console:!1,maxOps:Number.POSITIVE_INFINITY,maxOpDuration:1e3,io:{read:!0,write:!1},process:{exit:!1,spawnChild:!1}},...i.getEvaluateOptions?.(o,n),node:o.compilerNode,typescript:zDn.ts}),p=l.success?l.value:jDn;return rWt.set(o,p),p},$ot=(o,n,i)=>{let l=gfr(o,n,i);if(l!==jDn)return l};function Bfr(o){return e4.Node.isFunctionDeclaration(o)||e4.Node.isFunctionExpression(o)||e4.Node.isArrowFunction(o)||e4.Node.isSourceFile(o)}function yfr(o,n,i){let l=o.getParent();if(!l)return;let p=[],m;if((e4.Node.isVariableDeclaration(l)||e4.Node.isParameterDeclaration(l)||e4.Node.isFunctionDeclaration(l)||e4.Node.isBindingElement(l))&&l.getNameNode()==o)p.push(l),m=l;else if(e4.Node.isImportSpecifier(l)&&l.getNameNode()==o){if(i.flags?.skipTraverseFiles)return;let g=KDn(l.getImportDeclaration());if(g){let b=[l,g],T=qDn(o.getText(),g,b,i);T&&(p.push(...b.concat(T)),m=T)}}return m&&n.push(...p),m}var Cfr=o=>{let n=o.getParent();for(;n&&!Bfr(n);)n=n.getParent();return n};function nst(o,n,i,l=new Map){let p=o,m,g=!1,b=0,T=[];do{if(p=Cfr(p),b++,!p)return;let I=o.getText();if(p.forEachDescendant((R,V)=>{if(l.has(R)){V.skip(),T.push(...l.get(R));return}if(R!=o&&(l.set(R,T),e4.Node.isIdentifier(R)&&R.getText()==I)){let X=[R],ue=yfr(R,X,i);if(ue){if(e4.Node.isParameterDeclaration(ue)){let De=ue.getInitializer(),we=ue.getTypeNode();De?(T.push(...X.concat(De)),m=ue):we&&e4.Node.isTypeLiteral(we)?(T.push(...X.concat(we)),m=ue):g=!0,V.stop();return}T.push(...X),m=ue,V.stop()}}}),m||g)return m&&n.push(...T),m}while(p&&!e4.Node.isSourceFile(p)&&!m&&!g&&b<100)}var vfr=(o,n,i)=>U_(o).when(KCe.Node.isPropertyAssignment,l=>{let p=P1(l.getNameNode());return U_(p).when(KCe.Node.isIdentifier,m=>Zc.from(m.getText(),m,n)).when(KCe.Node.isComputedPropertyName,m=>{let g=m.getExpression();return n.push(g),kU(g,n,i)}).when(uI.or(KCe.Node.isStringLiteral,KCe.Node.isNumericLiteral),m=>Zc.from(m.getLiteralText(),m,n)).otherwise(()=>{})}).when(KCe.Node.isShorthandPropertyAssignment,l=>{let p=l.getName();if(p!=null)return Zc.from(p,l,n)}).otherwise(()=>{}),bfr=(o,n,i,l)=>{let p=o.getProperties();if(p.length===0)return Zc.emptyObject(o,n);let m=[],g=[];p.forEach(I=>{let R=[...n];if(R.push(I),LVe.Node.isPropertyAssignment(I)||LVe.Node.isShorthandPropertyAssignment(I)){let V=vfr(I,R,i);if(!V)return;let X=V.value;if(ODn(X)||l&&!l?.({propName:X,propNode:I}))return;if(LVe.Node.isShorthandPropertyAssignment(I)){let We=I.getNameNode();R.push(We);let Ne=Tb(We,R,i);if(Ne){m.push([X.toString(),Ne]);return}}let ue=I.getInitializer();if(!ue)return;let De=P1(ue);R.push(De);let we=Tb(De,R,i);if(we){m.push([X.toString(),we]);return}}if(LVe.Node.isSpreadAssignment(I)){let V=P1(I.getExpression());R.push(V);let X=Tb(V,R,i,l);if(!X)return;if(Zc.isObject(X)){Object.entries(X.value).forEach(([ue,De])=>{let we=Zc.from(De,V,R);we&&m.push([ue,we])});return}if(Zc.isMap(X)){X.value.forEach((ue,De)=>{m.push([De,ue])});return}Zc.isConditional(X)&&g.push(X)}});let b=new Map;m.forEach(([I,R])=>{b.has(I)&&b.delete(I),b.set(I,R)});let T=Zc.map(b,o,n);return g.length>0&&(T.spreadConditions=g),T},aWt=new WeakMap,Sfr=o=>aWt.has(o),xfr=o=>aWt.get(o),Efr=o=>o===jp.ts.SyntaxKind.PlusToken,Dfr=o=>o===jp.ts.SyntaxKind.BarBarToken||o===jp.ts.SyntaxKind.QuestionQuestionToken||o===jp.ts.SyntaxKind.AmpersandAmpersandToken||o===jp.ts.SyntaxKind.EqualsEqualsEqualsToken||o===jp.ts.SyntaxKind.EqualsEqualsToken||o===jp.ts.SyntaxKind.ExclamationEqualsEqualsToken||o===jp.ts.SyntaxKind.ExclamationEqualsToken||o===jp.ts.SyntaxKind.GreaterThanEqualsToken||o===jp.ts.SyntaxKind.GreaterThanToken||o===jp.ts.SyntaxKind.LessThanEqualsToken||o===jp.ts.SyntaxKind.LessThanToken||o===jp.ts.SyntaxKind.InstanceOfKeyword||o===jp.ts.SyntaxKind.InKeyword,Tfr=o=>o===jp.ts.SyntaxKind.AsteriskToken||o===jp.ts.SyntaxKind.SlashToken||o===jp.ts.SyntaxKind.PercentToken||o===jp.ts.SyntaxKind.AsteriskAsteriskToken||o===jp.ts.SyntaxKind.MinusToken,Afr=o=>o===jp.ts.SyntaxKind.BarBarToken||o===jp.ts.SyntaxKind.QuestionQuestionToken;function Tb(o,n,i,l){let p=m=>(aWt.set(o,m),m);return U_(o).when(Sfr,xfr).when(uI.or(jp.Node.isStringLiteral,jp.Node.isNoSubstitutionTemplateLiteral),m=>{let g=GDn(m.getLiteralValue());return p(Zc.literal(g,m,n))}).when(jp.Node.isObjectLiteralExpression,m=>p(bfr(m,n,i,l))).when(uI.or(jp.Node.isTrueLiteral,jp.Node.isFalseLiteral),m=>{let g=m.getLiteralValue();return p(Zc.literal(g,m,n))}).when(jp.Node.isNumericLiteral,m=>{let g=m.getLiteralValue();return p(Zc.literal(g,m,n))}).when(jp.Node.isNullLiteral,m=>p(Zc.literal(null,m,n))).when(jp.Node.isPrefixUnaryExpression,m=>{let g=m.getOperand(),b=m.getOperatorToken(),T=Tb(g,n,i);if(Zc.isNumberLiteral(T))return p(b===jp.ts.SyntaxKind.MinusToken?Zc.literal(-Number(T.value),m,n):T)}).when(jp.Node.isArrayLiteralExpression,m=>{let g=m.getElements().map(b=>Tb(b,n,i)??p(Zc.unresolvable(b,n)));return p(Zc.array(g,m,n))}).when(jp.Node.isIdentifier,m=>U_(m.getText()).with("undefined",()=>p(Zc.literal(void 0,m,n))).otherwise(()=>p(Ffr(m,n,i)))).when(jp.Node.isTemplateHead,m=>p(Zc.literal(m.getLiteralText(),m,n))).when(jp.Node.isTemplateExpression,m=>{let g=UDn(m,n,i);return p(Zc.literal(g,m,n))}).when(jp.Node.isTaggedTemplateExpression,m=>p(Tb(m.getTemplate(),n,i))).when(jp.Node.isElementAccessExpression,m=>p(est(m,n,i))).when(jp.Node.isPropertyAccessExpression,m=>p(tst(m,[],n,i))).when(jp.Node.isConditionalExpression,m=>{if(i.flags?.skipConditions)return p(Zc.unresolvable(m,n));let g=P1(m.getCondition()),b=(jp.Node.isIdentifier(g)?Tb(g,[],i):$ot(g,n,i))??Zc.unresolvable(g,n),T=KSe(b)?b:Zc.from(b,m,n);if(Zc.isEmptyInitializer(T))return;let I=T.getStack().some(ue=>jp.Node.isBindingElement(ue));if(Zc.isUnresolvable(T)||Zc.isConditional(T)||I){let ue=P1(m.getWhenTrue()),De=P1(m.getWhenFalse());return p(LDn({whenTrueExpr:ue,whenFalseExpr:De,node:m,stack:n},i))}if(T.value){let ue=P1(m.getWhenTrue()),De=[...n],we=Tb(ue,De,i);return p(we??Zc.unresolvable(ue,n))}let R=P1(m.getWhenFalse()),V=[...n],X=Tb(R,V,i);return p(X??Zc.unresolvable(m,n))}).when(jp.Node.isCallExpression,m=>{let g=$ot(m,n,i);if(g)return p(Zc.from(g,m,n))}).when(jp.Node.isBinaryExpression,m=>{let g=m.getOperatorToken().getKind();return U_(g).when(Efr,()=>{let b=XDn(m,n,i)??$ot(m,n,i);if(b)return p(Zc.from(b,m,n))}).when(Dfr,b=>{let T=P1(m.getLeft()),I=P1(m.getRight()),R={whenTrueExpr:T,whenFalseExpr:I,node:m,stack:n,canReturnWhenTrue:Afr(b)};return p(LDn(R,i))}).when(Tfr,()=>p(Zc.literal($ot(m,n,i),m,n))).otherwise(()=>{})}).otherwise(()=>{})}var VDn=o=>{if(o&&KSe(o)&&Zc.isLiteral(o)&&typeof o.value=="string")return o},kfr=o=>{if(o&&KSe(o)&&Zc.isLiteral(o)&&typeof o.value=="number")return o},wfr=(o,n,i)=>VDn(Tb(o,n,i)),kU=(o,n,i)=>{let l=Tb(o,n,i),p=VDn(l);if(p)return p;let m=kfr(l);if(m)return m},LDn=({whenTrueExpr:o,whenFalseExpr:n,node:i,stack:l,canReturnWhenTrue:p},m)=>{let g=Tb(o,l,m),b=Tb(n,l,m);if(p&&g&&!Zc.isUnresolvable(g))return g;if(jp.Node.isBinaryExpression(i)&&i.getOperatorToken().getKind()===jp.ts.SyntaxKind.AmpersandAmpersandToken&&g&&b&&Zc.isLiteral(g)&&g.value===!0)return b;if(!g&&!b)return;if(g&&!b)return g;if(!g&&b)return b;let T=g,I=b;return Zc.isLiteral(T)&&Zc.isLiteral(I)&&T.value===I.value?T:Zc.conditional(T,I,i,l)},Ifr=(o,n,i,l)=>{let p=[...i];if(jp.Node.isPropertyAssignment(o)){let m=o.getNameNode();if(jp.Node.isIdentifier(m)&&m.getText()===n)return p.push(m),o;if(jp.Node.isStringLiteral(m)&&m.getLiteralText()===n)return p.push(m),m.getLiteralText();if(jp.Node.isComputedPropertyName(m)){let g=P1(m.getExpression()),b=kU(g,p,l);if(!b)return;if(String(b.value)===n)return p.push(m,g),o}}if(jp.Node.isShorthandPropertyAssignment(o)){let m=o.getNameNode();if(jp.Node.isIdentifier(m)&&m.getText()===n)return p.push(m),o}},lWt=(o,n,i,l)=>{let p=[...i],m=n.pop(),g=o.getProperty(m)??o.getProperties().find(b=>Ifr(b,m,p,l));if(g){if(p.push(g),jp.Node.isPropertyAssignment(g)){let b=g.getInitializer();if(!b)return;if(jp.Node.isObjectLiteralExpression(b))return n.length>0?lWt(b,n,p,l):Tb(b,p,l);let T=Tb(b,p,l);if(T)return T}if(jp.Node.isShorthandPropertyAssignment(g)){let b=g.getNameNode();if(n.length>0)return AU(b,n,p,l);let T=Tb(b,p,l);if(T)return T}}},UDn=(o,n,i)=>{let l=o.getHead(),p=o.getTemplateSpans(),m=wfr(l,n,i);if(!m)return;let g=p.map(b=>{let T=b.getExpression(),I=kU(T,n,i);if(!I)return;let R=b.getLiteral();return I.value+R.getLiteralText()});if(g.every(ck))return m.value+g.join("")},HDn=(o,n,i,l)=>{let p=o.getParent();if(!p)return;let m=p.getParent();if(m){if(jp.Node.isArrayBindingPattern(p)){let g=p.getChildIndex();if(Number.isNaN(g))return;if(jp.Node.isVariableDeclaration(m)){let b=m.getInitializer();if(!b)return;let T=P1(b);if(!jp.Node.isArrayLiteralExpression(T))return;let I=T.getElements()[g+1];if(!I)return;let R=[...n,T,I],V=Tb(I,R,l);if(!V)return;if(Zc.isObject(V)){let ue=V.value[i];return Zc.from(ue,I,R)}if(!Zc.isMap(V))return V;let X=V.value.get(i);return X||void 0}}jp.Node.isObjectBindingPattern(p)}};function Pfr(o,n,i,l){let p=n.at(-1);if(jp.Node.isVariableDeclaration(o)){let m=o.getInitializer();if(!m){let I=o.getTypeNode();if(!I)return;if(jp.Node.isTypeLiteral(I)){if(n.length>0){let V=[...i];V.push(I);let X=n.pop(),ue=I.getProperty(X),De=ue?.getTypeNode();for(;ue&&n.length>0&&De&&jp.Node.isTypeLiteral(De);)V.push(ue,De),X=n.pop(),ue=De.getProperty(X),De=ue?.getTypeNode();if(!De)return;let we=cWt(De,V,l);return Zc.from(we,De,V)}let R=JDn(I,p,i,l);return i.push(I),Zc.from(R,I,i)}return}let g=P1(m);if(jp.Node.isObjectLiteralExpression(g)){let I=lWt(g,n,i,l);return I?(i.push(g),I):void 0}if(jp.Node.isArrayLiteralExpression(g)){let I=Number(p);if(Number.isNaN(I))return;let R=g.getElements()[I];if(!R)return;i.push(g);let V=Tb(R,i,l);if(V&&KSe(V)&&Zc.isLiteral(V))return V}let b=[...i,g],T=Tb(g,b,l);if(T)return T}if(jp.Node.isBindingElement(o)){let m=HDn(o,i,p,l);if(m)return m}}var AU=(o,n,i,l)=>{let p=nst(o,i,l);if(!p)return Zc.unresolvable(o,i);let m=Pfr(p,n,i,l);return m||Zc.unresolvable(o,i)},qCe=new WeakMap,JDn=(o,n,i,l)=>{if(qCe.has(o)){let g=qCe.get(o);if(g===null)return;if(g?.has(n))return g.get(n)}let m=o.getMembers().find(g=>jp.Node.isPropertySignature(g)&&g.getName()===n);if(jp.Node.isPropertySignature(m)&&m.isReadonly()){let g=m.getTypeNode();if(!g){qCe.set(o,null);return}let b=cWt(g,i,l);if(ck(b))return qCe.has(o)||qCe.set(o,new Map),qCe.get(o).set(n,b),b}qCe.set(o,null)};function Nfr(o){return jp.Node.isStringLiteral(o)?o.getLiteralText():o.getText()}var NVe=new WeakMap,cWt=(o,n,i)=>{if(NVe.has(o))return NVe.get(o);if(jp.Node.isLiteralTypeNode(o)){let l=o.getLiteral();if(jp.Node.isStringLiteral(l)){let p=l.getLiteralText();return NVe.set(o,p),p}}if(jp.Node.isTypeLiteral(o)){let l=o.getMembers();if(!l.some(p=>!jp.Node.isPropertySignature(p)||!p.isReadonly())){let m=l.map(b=>{let T=b.getNameNode(),I=T.getText(),R=Nfr(T);if(!R)return;let V=JDn(o,I,n,i);return[R,V]}).filter(ck),g=Object.fromEntries(m);return NVe.set(o,g),g}}NVe.set(o,void 0)},Rfr=(o,n,i)=>{if(jp.Node.isShorthandPropertyAssignment(o)){let l=o.getNameNode();return AU(l,[l.getText()],n,i)}if(jp.Node.isVariableDeclaration(o)){let l=o.getInitializer();if(!l){let b=o.getTypeNode();if(!b)return;if(jp.Node.isTypeLiteral(b)){n.push(b);let T=cWt(b,n,i);if(ck(T))return Zc.from(T,o,n)}return Zc.unresolvable(o,n)}let p=P1(l),m=[...n,p],g=Tb(p,m,i);if(g)return g}if(jp.Node.isBindingElement(o)){let l=o.getInitializer();if(!l){let b=o.getPropertyNameNode()??o.getNameNode(),T=b.getText(),I=[...n,b],R=HDn(o,I,T,i);return R||Zc.unresolvable(o,n)}let p=P1(l),m=[...n,p],g=Tb(p,m,i);if(g)return g}},qDn=(o,n,i,l)=>{let p=n.getVariableDeclaration(o);if(p)return p;let m=Mfr(o,n,i,l);if(m)return m},Lfr=(o,n)=>{let i=n.getNamedExports();if(i.length===0)return!0;for(let l of i)if(l.getNameNode().getText()===o)return!0},KDn=o=>{let n=o.getProject(),i=o.getModuleSpecifierValue();if(!i)return;let l=o.getSourceFile().getFilePath(),p=jp.ts.resolveModuleName(i,l,n.getCompilerOptions(),n.getModuleResolutionHost());return p.resolvedModule?n.addSourceFileAtPath(p.resolvedModule.resolvedFileName):void 0};function Mfr(o,n,i,l){for(let p of n.getExportDeclarations()){let m=[p];if(!Lfr(o,p))continue;let g=KDn(p);if(!g)continue;m.push(g);let b=qDn(o,g,i,l);if(b)return i.push(...m.concat(b)),b}}var Ffr=(o,n,i)=>{let l=nst(o,n,i);if(!l)return Zc.unresolvable(o,n);let p=P1(l),m=[...n],g=Rfr(p,m,i);return g||Zc.unresolvable(o,m)},XDn=(o,n,i)=>{let l=P1(o.getLeft()),p=P1(o.getRight()),m=kU(l,n,i),g=kU(p,n,i);if(!(!m||!g)&&ck(m.value)&&ck(g.value))return Zc.literal(String(m.value)+String(g.value),o,n)},est=(o,n,i)=>{let l=P1(o.getExpression()),p=o.getArgumentExpression();if(!p)return;let m=P1(p),g=[...n,l,m],b=kU(m,g,i);if(jp.Node.isIdentifier(l)&&b)return ck(b.value)?AU(l,[b.value.toString()],g,i):void 0;if(jp.Node.isBinaryExpression(m)){if(m.getOperatorToken().getKind()!==jp.ts.SyntaxKind.PlusToken)return;let T=XDn(m,g,i)??kU(m,g,i);if(T&&jp.Node.isIdentifier(l))return ck(T.value)?AU(l,[T.value.toString()],g,i):void 0}if(jp.Node.isTemplateExpression(m)){let T=UDn(m,g,i);if(T&&jp.Node.isIdentifier(l))return AU(l,[T],g,i)}if(jp.Node.isObjectLiteralExpression(l)&&b)return ck(b.value)?lWt(l,[b.value.toString()],g,i):void 0;if(jp.Node.isPropertyAccessExpression(m))return tst(m,[],g,i);if(jp.Node.isPropertyAccessExpression(l)&&b&&ck(b.value)){let T=tst(l,[],g,i);if(!T)return Zc.unresolvable(l,g);let I=b.value.toString();if(Zc.isObject(T)){let R=T.value[I];return Zc.from(R,m,g)}if(Zc.isMap(T)){let R=T.value.get(I);return Zc.from(R,m,g)}if(Zc.isArray(T)){let R=T.value[Number(I)];return Zc.from(R,m,g)}return Zc.unresolvable(l,g)}if(jp.Node.isIdentifier(l)&&jp.Node.isElementAccessExpression(m)){let T=est(m,g,i);if(typeof T=="string"&&ck(T))return AU(l,[T],g,i)}if(jp.Node.isElementAccessExpression(l)&&b&&ck(b.value)){let T=est(l,g,i);if(WDn(T)){let I=b.value.toString();if(Zc.isMap(T))return T.value.get(I);if(Zc.isObject(T)){let R=T.value[I];return R?Zc.from(R,o,g):void 0}}}if(jp.Node.isArrayLiteralExpression(l)&&b)return Ofr(l,Number(b.value),g,i);if(jp.Node.isConditionalExpression(m)){if(i.flags?.skipConditions)return Zc.unresolvable(m,g);let T=kU(m,g,i);if(ck(T)&&ck(T.value)&&jp.Node.isIdentifier(l))return AU(l,[T.value.toString()],g,i);let I=P1(m.getWhenTrue()),R=P1(m.getWhenFalse()),V=kU(I,g,i),X=kU(R,g,i);if(jp.Node.isIdentifier(l)){let ue=V&&ck(V.value)?AU(l,[V.value.toString()],g,i):void 0,De=X&&ck(X.value)?AU(l,[X.value.toString()],g,i):void 0;return!ue&&!De?void 0:ue&&!De?ue:!ue&&De?De:Zc.conditional(ue,De,m,g)}}},Ofr=(o,n,i,l)=>{let p=o.getElements()[n];if(!p)return;let m=Tb(p,i,l);if(ck(m))return m},tst=(o,n,i,l)=>{let p=o.getName(),m=P1(o.getExpression()),g=n.concat(p);if(i.push(m),jp.Node.isIdentifier(m))return AU(m,g,i,l);if(jp.Node.isPropertyAccessExpression(m))return tst(m,g,i,l);if(jp.Node.isElementAccessExpression(m)){let b=est(m,i,l);if(!b)return;if(Zc.isObject(b)){let T=b.value[p];return Zc.from(T,o,i)}if(Zc.isMap(b)){let T=b.value.get(p);return Zc.from(T,o,i)}}},MDn=()=>!0,rst=(o,n,i=MDn,l=MDn)=>{let p=o.getArguments(),m=o.getExpression().getText();return p.length===0?Zc.array([],o,[]):Zc.array(p.map((g,b)=>{let T=P1(g),I=[o,T];return U_(T).when(R=>l({fnNode:o,fnName:m,argNode:R,index:b}),R=>Tb(R,I,n,i)??Zc.unresolvable(R,I)).otherwise(()=>Zc.unresolvable(T,I))}),o,[])},ist=(o,n)=>{let i=o.getInitializer(),l=[o,i];return U_(i).with(MS.nullish,()=>{let p=o.getNameNode();return Zc.emptyInitializer(p,l)}).when(oWt.Node.isStringLiteral,p=>{let m=p.getLiteralText();return Zc.literal(GDn(m),p,l)}).when(oWt.Node.isJsxExpression,p=>{let m=p.getExpression();if(!m)return;let g=P1(m);if(!g)return;l.push(g);let b=Tb(g,l,n);if(b)return b}).otherwise(()=>{})},YDn=(o,n,i)=>{let l=P1(o.getExpression());return Tb(l,[],n,i)},FDn=(o,n)=>o?KSe(o)?Zc.isUnresolvable(o)||Zc.isConditional(o)?new Map:Zc.isMap(o)?o.value:new Map(Object.entries(o.value).map(([i,l])=>{let p=Zc.from(l,o.getNode()??n,o.getStack()??[]);return[i,p||null]}).filter(([,i])=>i!==null)):new Map(Object.entries(o)):new Map,Wfr=uI.or(Gj.Node.isImportDeclaration,Gj.Node.isExportDeclaration),QDn=({ast:o,...n})=>{let{components:i,functions:l,taggedTemplates:p}=n,m=new Map,g=new Map,b,T,I,R,V;return o.forEachDescendant((X,ue)=>{if(Wfr(X)){ue.skip();return}if(i){if(Gj.Node.isJsxOpeningElement(X)||Gj.Node.isJsxSelfClosingElement(X)){if(b=X,T=lfr(b),I=T.includes("."),!i.matchTag({tagNode:b,tagName:T,isFactory:I})){b=void 0;return}m.has(T)||m.set(T,{kind:"component",nodesByProp:new Map,queryList:[]}),R=m.get(T).nodesByProp,g.has(b)||g.set(b,{name:T,props:new Map,conditionals:[]}),V=g.get(b)}if(Gj.Node.isJsxSpreadAttribute(X)){if(!b||!V)return;let De=({propName:Me,propNode:Ct})=>i.matchProp({tagNode:b,tagName:T,propName:Me,propNode:Ct}),we=YDn(X,n,aU(De));if(!we)return;let We=Me=>{let Ct=FDn(Me,X),Rt=Zc.isMap(Me),en=Zc.map(Ct,X,[b]);Rt&&Me.spreadConditions?.length&&(en.spreadConditions=Me.spreadConditions),Ct.forEach((Tn,hn)=>{De({propName:hn,propNode:X})&&(V.props.set(hn,Tn),R.set(hn,(R.get(hn)??[]).concat(Tn)))})};(Me=>U_(Me).when(Zc.isConditional,Ct=>{V.conditionals.push(Ct)}).when(uI.or(Zc.isObject,Zc.isMap),Ct=>We(Ct)).otherwise(hZe))(we);return}if(Gj.Node.isJsxAttribute(X)){if(!b||!V)return;let De=X.getNameNode().getText();if(!i.matchProp({tagNode:b,tagName:T,propName:De,propNode:X}))return;ik(ist(X,n),Aje.fromNullable,Aje.tap(we=>{V.props.set(De,we),R.set(De,(R.get(De)??[]).concat(we))}))}}if(l&&Gj.Node.isCallExpression(X)){let De=X.getExpression(),we=Gj.Node.isCallExpression(De)?De.getExpression().getText():De.getText();if(!l.matchFn({fnNode:X,fnName:we}))return;let We=({propName:Tn,propNode:hn})=>l.matchProp({fnNode:X,fnName:we,propName:Tn,propNode:hn});m.has(we)||m.set(we,{kind:"function",nodesByProp:new Map,queryList:[]});let Ne=m.get(we),Me=Ne.nodesByProp,Ct=rst(X,n,We,l.matchArg),Rt=ik(Ct.value,PO.map(Tn=>U_(Tn).when(uI.or(Zc.isObject,Zc.isMap),hn=>{let ln=FDn(hn,X),Nn=Zc.isMap(hn);ln.forEach((qt,Hs)=>{(Nn||We({propName:Hs,propNode:X}))&&Me.set(Hs,(Me.get(Hs)??[]).concat(qt))});let $n=Zc.map(ln,X,hn.getStack());return Zc.isMap(hn)&&hn.spreadConditions?.length&&($n.spreadConditions=hn.spreadConditions),$n}).otherwise(hn=>hn))),en={kind:"call-expression",name:we,box:Zc.array(Rt,X,[])};Ne.queryList.push(en)}if(p&&Gj.Node.isTaggedTemplateExpression(X)){let De=X.getTag(),we=Gj.Node.isCallExpression(De)?De.getExpression().getText():De.getText();if(!p.matchTaggedTemplate({taggedTemplateNode:X,fnName:we}))return;m.has(we)||m.set(we,{kind:"function",nodesByProp:new Map,queryList:[]});let We=m.get(we),Ne={kind:"tagged-template",name:we,box:Tb(X,[],n)};We.queryList.push(Ne)}}),g.forEach((X,ue)=>{let De=g.get(ue);if(!De)return;let we=aU({name:X.name,box:Zc.map(De.props,ue,[])});De.conditionals?.length&&(we.box.spreadConditions=De.conditionals);let We=X.name;m.get(We).queryList.push(we)}),m},Gfr=uI.or(Zc.isObject,Zc.isMap),$Dn=(o,n)=>{let i=o.getTagNameNode().getText(),l=o.getAttributes(),p=new Map;return l.forEach(m=>{if(sWt.Node.isJsxAttribute(m)){let g=m.getNameNode(),b=ist(m,n);if(!b)return;p.set(g.getText(),b);return}if(sWt.Node.isJsxSpreadAttribute(m)){let g=YDn(m,n,()=>!0);if(!Gfr(g))return;Zc.isMap(g)&&g.value.forEach((b,T)=>{p.set(T,b)}),Zc.isObject(g)&&Object.entries(g.value).forEach(([b,T])=>{p.set(b,Zc.literal(T,o,[]))})}}),{name:i,props:p}},Zot=(o,n)=>{if(!o.length)return n;let i={};return o.reduce((l,p,m)=>{let g=m===o.length-1;return l[p]=g?n:{},g?i:l[p]},i),i},Rre=(o,n)=>U_(o).with(MS.nullish,()=>{}).when(Zc.isConditional,i=>{let l=n.path,p=Rre(i.whenTrue,Object.assign({},n,{path:l,parent:i})),m=Rre(i.whenFalse,Object.assign({},n,{path:l,parent:i}));p&&n.conditions.push(Zot(l,p)),m&&n.conditions.push(Zot(l,m))}).when(uI.or(Zc.isLiteral,Zc.isObject),i=>i.value).when(Zc.isEmptyInitializer,()=>!0).when(Zc.isMap,i=>{if(i.spreadConditions){let l=n.path;i.spreadConditions.forEach(p=>{let m=Rre(p.whenTrue,Object.assign({},n,{path:l,parent:i})),g=Rre(p.whenFalse,Object.assign({},n,{path:l,parent:i}));m&&n.spreadConditions.push(Zot(l,m)),g&&n.spreadConditions.push(Zot(l,g))})}return ik(PO.from(i.value.entries()),PO.map(([l,p])=>[l,Rre(p,Object.assign({},n,{path:n.path.concat(l),parent:i}))]),PO.filter(([,l])=>ck(l)),Object.fromEntries)}).when(Zc.isArray,i=>{let l=0;return ik(i.value,PO.map(p=>Rre(p,Object.assign({},n,{path:n.path.concat(String(l++)),parent:i}))),PO.filter(ck),p=>p.flat())}).otherwise(()=>{}),zfr=new WeakMap,jfr=o=>({value:o,has:n=>o.has(n),get:n=>o.get(n),set:(n,i)=>o.set(n,i)}),wU=(o,n)=>{let i={cache:n?.cache??zfr,...n,path:[],parent:void 0,conditions:[],spreadConditions:[]},l=jfr(i.cache);return{raw:U_(o).with(MS.nullish,()=>{}).when(l.has,l.get).when(Array.isArray,m=>{let g=ik(m,PO.map(b=>Rre(b,i)),PO.filter(ck),PO.head);return l.set(m,g),g}).otherwise(m=>{let g=Rre(m,i);return l.set(m,g),g})??{},conditions:i.conditions,spreadConditions:i.spreadConditions}};re();re();re();re();function MVe(o){return Object.prototype.toString.call(o).slice(8,-1)}function Vfr(o){return MVe(o)==="Undefined"}function Ufr(o){return MVe(o)==="Null"}function FVe(o){if(MVe(o)!=="Object")return!1;let n=Object.getPrototypeOf(o);return n.constructor===Object&&n===Object.prototype}function uWt(o){return MVe(o)==="Array"}function pWt(o){return MVe(o)==="Symbol"}var UBi=Hfr(Ufr,Vfr);function Hfr(o,n,i,l,p){return m=>o(m)||n(m)||!!i&&i(m)||!!l&&l(m)||!!p&&p(m)}function Jfr(o,n){return uWt(o)&&uWt(n)?o.concat(n):n}function ZDn(o,n,i,l){let p={}.propertyIsEnumerable.call(l,n)?"enumerable":"nonenumerable";p==="enumerable"&&(o[n]=i),p==="nonenumerable"&&Object.defineProperty(o,n,{value:i,enumerable:!1,writable:!0,configurable:!0})}function eTn(o,n,i){if(!FVe(n))return n;let l={};if(FVe(o)){let b=Object.getOwnPropertyNames(o),T=Object.getOwnPropertySymbols(o);l=[...b,...T].reduce((I,R)=>{let V=o[R];return(!pWt(R)&&!Object.getOwnPropertyNames(n).includes(R)||pWt(R)&&!Object.getOwnPropertySymbols(n).includes(R))&&ZDn(I,R,V,o),I},{})}let p=Object.getOwnPropertyNames(n),m=Object.getOwnPropertySymbols(n);return[...p,...m].reduce((b,T)=>{let I=n[T],R=FVe(o)?o[T]:void 0;R!==void 0&&FVe(I)&&(I=eTn(R,I,i));let V=i?i(R,I,T):I;return ZDn(b,T,V,n),b},l)}function tTn(o,...n){return n.reduce((i,l)=>eTn(i,l,Jfr),o)}var nTn=o=>Object.prototype.toString.call(o)==="[object Object]";function fWt(o,...n){let i=n.pop();for(let l of n)for(let p in l){let m=i(o[p],l[p]);m===void 0?nTn(o[p])&&nTn(l[p])?o[p]=fWt({},o[p],l[p],i):o[p]=l[p]:o[p]=m}return o}function rTn(o,...n){for(let i of n)for(let l in i)o?.hasOwnProperty?.(l)||(o[l]=i[l]);return o}function qfr(o){return o.reduce((n,{extend:i})=>i?fWt(n,i,(l,p)=>p===void 0?l??[]:l===void 0?[p]:Array.isArray(l)?[p,...l]:[p,l]):n,{})}function Kfr(o){return{...o.reduce((n,i)=>rTn(n,i),{}),extend:qfr(o)}}function OVe(o){let{extend:n=[],...i}=Kfr(o);return fWt(i,n,(l,p)=>tTn({},l,...p))}var Xfr=o=>typeof o=="object"&&Object.keys(o).length===0,Yfr=o=>Object.keys(o).reduce((n,i)=>(o[i]!==void 0&&!Xfr(o[i])&&(n[i]=o[i]),n),{});function iTn(o){let n=rTn({conditions:OVe(o.map(i=>i.conditions??{})),theme:OVe(o.map(i=>i.theme??{})),patterns:OVe(o.map(i=>i.patterns??{})),utilities:OVe(o.map(i=>i.utilities??{})),globalCss:OVe(o.map(i=>i.globalCss??{}))},...o);return Yfr(n)}re();var WVe=(o,n)=>{for(let i of o){let l=n.match(i.pattern);if(l)for(let p of i.paths){let m=0;return p.replace(/\*/g,()=>{let b=Math.min(++m,l.length-1);return l[b]})}}};re();var XSe=require("path"),ost=require("fs");function oTn(o,n){let i=(0,XSe.resolve)(".",o),l;for((0,ost.statSync)(i).isDirectory()||(i=(0,XSe.dirname)(i));;){if(l=n(i,(0,ost.readdirSync)(i)),l)return(0,XSe.resolve)(i,l);if(i=(0,XSe.dirname)(l=i),l===i)break}}var fTn=require("path"),GVe=yd(require("fs"),1),YSe=yd(require("path"),1),dTn=require("path"),dWt=yd(R9t(),1);re();var sTn=require("esbuild"),aTn=yd(require("path"),1),sst=yd(require("fs"),1),IU=(o=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(o,{get:(n,i)=>(typeof require<"u"?require:n)[i]}):o)(function(o){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+o+'" is not supported')});function Qfr(o){let n=sst.default.realpathSync(o);delete IU.cache[o];let i=IU(n);return{mod:i.default??i,dependencies:[n],code:sst.default.readFileSync(n,"utf-8")}}async function $fr(o,n){let i=await(0,sTn.build)({absWorkingDir:n,entryPoints:[o],outfile:"out.js",write:!1,platform:"node",bundle:!0,format:"cjs",sourcemap:!1,metafile:!0,mainFields:["module","main"]}),{text:l}=i.outputFiles[0];return{code:l,dependencies:i.metafile?Object.keys(i.metafile.inputs):[]}}function Zfr(o,n){let i=aTn.default.extname(o),l=sst.default.realpathSync(o),p=IU.extensions[i];IU.extensions[i]=(b,T)=>{T===l?b._compile(n,T):p(b,T)},delete IU.cache[IU.resolve(o)];let m=IU(o),g=m.default??m;return IU.extensions[i]=p,g}async function lTn(o,n={}){let{cwd:i=process.cwd()}=n,l=IU.resolve(o,{paths:[i]});try{return Qfr(l)}catch{let p=await $fr(l,i);try{p.mod=await Zfr(l,p.code)}catch{p.mod=IU("node-eval")(p.code).default}return p}}re();var cTn=class extends Error{code;hint;constructor(o,n,i){super(n),this.code=`ERR_PANDA_${o}`,this.hint=i?.hint}};var ast=class extends cTn{constructor(){let o="Cannot find config file: panda.config.ts or panda.config.js/cjs/mjs. Did you forget to run `panda init`?";super("NO_CONFIG",o)}},uTn=class extends cTn{constructor(o){super("CONFIG_ERROR",o)}};var mWt=require("@pandacss/preset-base"),cst=require("@pandacss/preset-panda"),edr=[".ts",".js",".mjs",".cjs"],tdr=new RegExp(`panda.config(${edr.join("|")})$`),ndr=o=>tdr.test(o);function rdr({cwd:o,file:n}){return n?(0,fTn.resolve)(o,n):oTn(o,(i,l)=>l.find(ndr))}function mTn(o,n){let i=Object.keys(o).sort((p,m)=>pTn(m)-pTn(p)),l=[];for(let p of i){let m=o[p];p=idr(p).replace(/\*/g,"(.+)"),l.push({pattern:new RegExp("^"+p+"$"),paths:m.map(g=>(0,dTn.resolve)(n,g))})}return l}function pTn(o){let n=o.indexOf("*");return o.substr(0,n).length}function idr(o){return o.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/-/g,"\\x2d")}var odr=[".js",".cjs",".mjs"],sdr=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],adr=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];function ldr(o,n){for(let i of n){let l=`${o}${i}`;if(GVe.default.existsSync(l)&&GVe.default.statSync(l).isFile())return l}for(let i of n){let l=`${o}/index${i}`;if(GVe.default.existsSync(l))return l}return null}var cdr=/import[\s\S]*?['"](.{3,}?)['"]/gi,udr=/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,pdr=/require\(['"`](.+)['"`]\)/gi,fdr=/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi;function lst(o,n){let{filename:i,seen:l}=o,{moduleResolution:p,...m}=o.compilerOptions??{},g=ldr(YSe.default.resolve(o.cwd,i),odr.includes(o.ext)?sdr:adr);if(g===null||(n&&o.foundModuleAliases.set(n,g),l.size>1&&l.has(g)))return;l.add(g);let b=GVe.default.readFileSync(g,"utf-8"),T=[...b.matchAll(cdr),...b.matchAll(udr),...b.matchAll(pdr),...b.matchAll(fdr)];if(!T.length)return;let I={cwd:YSe.default.dirname(g),ext:YSe.default.extname(g),seen:l,baseUrl:o.baseUrl,pathMappings:o.pathMappings,foundModuleAliases:o.foundModuleAliases};T.forEach(R=>{let V=R[1];if(V[0]==="."){lst(Object.assign({},I,{filename:V}));return}try{let X=dWt.default.resolveModuleName(V,g,m,dWt.default.sys).resolvedModule;if(X&&X.extension===".ts"){lst(Object.assign({},I,{filename:X.resolvedFileName}));return}if(!o.pathMappings)return;let ue=WVe(o.pathMappings,V);if(!ue)return;lst(Object.assign({},I,{filename:ue}),V)}catch{}})}function _Tn(o,n={pathMappings:[]},i){if(o===null)return{deps:new Set,aliases:new Map};let l=new Map,p=new Set;return p.add(o),lst({filename:o,ext:YSe.default.extname(o),cwd:YSe.default.dirname(o),seen:p,baseUrl:n.baseUrl,pathMappings:n.pathMappings??[],foundModuleAliases:l,compilerOptions:i}),{deps:p,aliases:l}}async function hTn(o,n){let{mod:i,dependencies:l}=await lTn(o,{cwd:n,interopDefault:!0});return{config:i?.default??i,dependencies:l}}async function ddr(o,n){let i=o.presets??[],l=[o];for(;i.length>0;){let p=await i.shift();if(typeof p=="string"){let m=await hTn(p,n);l.push(await m.config),i.unshift(...await m.config.presets??[])}else l.push(p),i.unshift(...p.presets??[])}return iTn(l)}var gTn={"@pandacss/preset-base":mWt.preset,"@pandacss/preset-panda":cst.preset,"@pandacss/dev/presets":cst.preset},mdr=Object.keys(gTn),_dr=o=>mdr.includes(o);async function BTn(o){let n=await gdr(o);return hdr(n,o.cwd)}async function hdr(o,n){let i=new Set;o.config.eject||i.add(mWt.preset),o.config.presets?o.config.presets.forEach(p=>{typeof p=="string"&&_dr(p)?i.add(gTn[p]):i.add(p)}):o.config.eject||i.add(cst.preset),o.config.presets=Array.from(i);let l=await ddr(o.config,n);return{...o,config:l}}async function gdr(o){let{cwd:n,file:i}=o,l=rdr({cwd:n,file:i});if(!l)throw new ast;I1.debug("config:path",l);let p=await hTn(l,n);if(typeof p.config!="object")throw new uTn("\u{1F4A5} Config must export or return an object.");return{...p,config:p.config,path:l}}var d8n=require("fs"),oHt=yd(PWt(),1),Sct=require("path");re();var txe=require("path"),NWt=require("fs");var hkn=o=>o===(0,txe.dirname)(o),x_r=Symbol("stop"),E_r=o=>o===x_r;var vst=(o,n=process.cwd())=>{if(typeof o=="function"&&o(n)instanceof Promise)throw new Error("Async matcher can not be used in 'lookItUpSync'");if(typeof o=="string"){let l=(0,txe.join)(n,o);return(0,NWt.existsSync)(l)?l:hkn(n)?null:vst(o,(0,txe.dirname)(n))}let i=o(n);return E_r(i)?null:i??(hkn(n)?null:vst(o,(0,txe.dirname)(n)))};re();var nxe=yd(require("path"),1),xkn=require("fs"),Ekn=yd(require("path"),1);var Vj=yd(require("path"),1),Tkn=require("fs"),OWt=require("module"),UD=yd(require("path"),1),Akn=require("fs");async function gkn(o,n){let i=nxe.default.dirname(nxe.default.resolve(o)),l=n?.root?nxe.default.resolve(n.root):null;for(;i;){let p=await D_r(i,n);if(p)return p;{if(l===i)break;let m=nxe.default.dirname(i);if(m===i)break;i=m}}throw new Error(`no tsconfig file found for ${o}`)}async function D_r(o,n){let i=nxe.default.join(o,"tsconfig.json");if(n?.tsConfigPaths)return n.tsConfigPaths.has(i)?i:void 0;try{let l=await xkn.promises.stat(i);if(l.isFile()||l.isFIFO())return i}catch(l){if(l.code!=="ENOENT")throw l}}var RCi=Ekn.default.sep;function T_r(o){let n=A_r(k_r(w_r(o)));return n.trim()===""?"{}":n}function A_r(o){let n=!1,i=0,l="",p=null;for(let m=0;m<o.length;m++){let g=o[m];if(g==='"'&&(Dkn(o,m)||(n=!n)),n){p=null;continue}if(g===","){p=m;continue}p&&(g==="}"||g==="]"?(l+=o.slice(i,p)+" ",i=p+1,p=null):g.match(/\s/)||(p=null))}return l+o.substring(i)}function Dkn(o,n){let i=n-1,l=0;for(;o[i]==="\\";)i-=1,l+=1;return!!(l%2)}function bst(o,n,i){return o.slice(n,i).replace(/\S/g," ")}var RWt=Symbol("singleComment"),Bkn=Symbol("multiComment");function k_r(o){let n=!1,i=!1,l=0,p="";for(let m=0;m<o.length;m++){let g=o[m],b=o[m+1];!i&&g==='"'&&(Dkn(o,m)||(n=!n)),!n&&(!i&&g+b==="//"?(p+=o.slice(l,m),l=m,i=RWt,m++):i===RWt&&g+b===`\r
30729
30729
  `?(m++,i=!1,p+=bst(o,l,m),l=m):i===RWt&&g===`
30730
30730
  `?(i=!1,p+=bst(o,l,m),l=m):!i&&g+b==="/*"?(p+=o.slice(l,m),l=m,i=Bkn,m++):i===Bkn&&g+b==="*/"&&(m++,i=!1,p+=bst(o,l,m+1),l=m+1))}return p+(i?bst(o.slice(l)):o.slice(l))}function w_r(o){return o.charCodeAt(0)===65279?o.slice(1):o}var I_r=new RegExp("\\"+UD.default.posix.sep,"g"),P_r=new RegExp("\\"+UD.default.sep,"g"),LWt=new Map,kkn="**/*",GWt=[".ts",".tsx",".mts",".cts"],N_r=`\\.(?:${GWt.map(o=>o.substring(1)).join("|")})`,LCi=new Function("path","return import(path).then(m => m.default)");async function ykn(o){if(UD.default.extname(o)!==".json")return;let n=UD.default.resolve(o);try{let i=await Akn.promises.stat(n);if(i.isFile()||i.isFIFO())return n}catch(i){if(i.code!=="ENOENT")throw i}throw new Error(`no tsconfig file found for ${o}`)}function MWt(o){return UD.default.posix.sep!==UD.default.sep&&o.includes(UD.default.posix.sep)?o.replace(I_r,UD.default.sep):o}function zWt(o){return UD.default.posix.sep!==UD.default.sep&&o.includes(UD.default.sep)?o.replace(P_r,UD.default.posix.sep):o}function XVe(o,n){return UD.default.sep===UD.default.posix.sep?o?UD.default.resolve(o,n):UD.default.resolve(n):zWt(o?UD.default.resolve(MWt(o),MWt(n)):UD.default.resolve(MWt(n)))}function R_r(o){let n=UD.default.dirname(o.tsconfigFile);return o.tsconfig.references.map(i=>{let l=i.path.endsWith(".json")?i.path:UD.default.join(i.path,"tsconfig.json");return XVe(n,l)})}function L_r(o,n){if(n.referenced&&GWt.some(i=>o.endsWith(i))&&!Ckn(o,n)){let i=n.referenced.find(l=>Ckn(o,l));if(i)return{...i,solution:n}}return n}function Ckn(o,n){let i=zWt(UD.default.dirname(n.tsconfigFile)),l=(n.tsconfig.files||[]).map(g=>XVe(i,g)),p=XVe(null,o);return l.includes(o)?!0:vkn(p,i,n.tsconfig.include||(n.tsconfig.files?[]:[kkn]))?!vkn(p,i,n.tsconfig.exclude||[]):!1}function vkn(o,n,i){return i.some(l=>{let p=l.length,m=!1;for(let I=l.length-1;I>-1;I--)if(l[I]==="*"||l[I]==="?"){p=I,m=!0;break}if(p<l.length-1&&!o.endsWith(l.slice(p+1))||l.endsWith("*")&&!GWt.some(I=>o.endsWith(I)))return!1;if(l===kkn)return o.startsWith(`${n}/`);let g=XVe(n,l),b=-1;for(let I=0;I<g.length;I++)if(g[I]==="*"||g[I]==="?"){b=I,m=!0;break}if(b>1&&!o.startsWith(g.slice(0,b-1)))return!1;if(!m)return o===g;if(LWt.has(g))return LWt.get(g).test(o);let T=M_r(g);return LWt.set(g,T),T.test(o)})}function M_r(o){let n="^";for(let i=0;i<o.length;i++){let l=o[i];if(l==="?"){n+="[^\\/]";continue}if(l==="*"){if(o[i+1]==="*"&&o[i+2]==="/"){i+=2,n+="(?:[^\\/]*\\/)*";continue}n+="[^\\/]*";continue}"/.+^${}()|[]\\".includes(l)&&(n+="\\"),n+=l}return o.endsWith("*")&&(n+=N_r),n+="$",new RegExp(n)}async function wkn(o,n){let i=n?.cache;if(i?.has(o))return i.get(o);let l;if(n?.resolveWithEmptyIfConfigNotFound)try{l=await ykn(o)||await gkn(o,n)}catch{let g={tsconfigFile:"no_tsconfig_file_found",tsconfig:{}};return i?.set(o,g),g}else l=await ykn(o)||await gkn(o,n);let p;return i?.has(l)?p=i.get(l):(p=await jWt(l,i),await Promise.all([Ikn(p,i),O_r(p,i)]),i?.set(l,p)),p=L_r(o,p),i?.set(o,p),p}async function jWt(o,n){if(n?.has(o))return n.get(o);try{let i=await Tkn.promises.readFile(o,"utf-8"),l=T_r(i),p={tsconfigFile:o,tsconfig:F_r(JSON.parse(l),Vj.default.dirname(o))};return n?.set(o,p),p}catch(i){throw new VWt(`parsing ${o} failed: ${i}`,"PARSE_FILE",o,i)}}function F_r(o,n){var i;return(i=o.compilerOptions)!=null&&i.baseUrl&&!Vj.default.isAbsolute(o.compilerOptions.baseUrl)&&(o.compilerOptions.baseUrl=XVe(n,o.compilerOptions.baseUrl)),o}async function O_r(o,n){if(!o.tsconfig.references)return;let i=R_r(o),l=await Promise.all(i.map(p=>jWt(p,n)));await Promise.all(l.map(p=>Ikn(p,n))),o.referenced=l}async function Ikn(o,n){if(!o.tsconfig.extends)return;let i=[{tsconfigFile:o.tsconfigFile,tsconfig:JSON.parse(JSON.stringify(o.tsconfig))}],l=0,p=[],m=0;for(;l<i.length;){let g=i[l];if(p.push(g.tsconfigFile),g.tsconfig.extends){m+=1;let b;Array.isArray(g.tsconfig.extends)?b=g.tsconfig.extends.reverse().map(I=>bkn(I,g.tsconfigFile)):b=[bkn(g.tsconfig.extends,g.tsconfigFile)];let T=b.find(I=>p.includes(I));if(T){let I=p.concat([T]).join(" -> ");throw new VWt(`Circular dependency in "extends": ${I}`,"EXTENDS_CIRCULAR",o.tsconfigFile)}i.splice(l+1,0,...await Promise.all(b.map(I=>jWt(I,n))))}else p.splice(-m),m=0;l=l+1}o.extended=i;for(let g of o.extended.slice(1))G_r(o,g)}function bkn(o,n){let i;try{return(0,OWt.createRequire)(n).resolve(o)}catch(l){i=l}if(!Vj.default.isAbsolute(o)&&!o.startsWith("./")&&!o.startsWith("../"))try{let l=Vj.default.join(o,"tsconfig.json");return(0,OWt.createRequire)(n).resolve(l)}catch(l){i=l}throw new VWt(`failed to resolve "extends":"${o}" in ${n}`,"EXTENDS_RESOLVE",n,i)}var W_r=["compilerOptions","files","include","exclude","watchOptions","compileOnSave","typeAcquisition","buildOptions"];function G_r(o,n){let i=o.tsconfig,l=n.tsconfig,p=zWt(Vj.default.relative(Vj.default.dirname(o.tsconfigFile),Vj.default.dirname(n.tsconfigFile)));for(let m of Object.keys(l).filter(g=>W_r.includes(g)))if(m==="compilerOptions"){i.compilerOptions||(i.compilerOptions={});for(let g of Object.keys(l.compilerOptions))Object.prototype.hasOwnProperty.call(i.compilerOptions,g)||(i.compilerOptions[g]=FWt(g,l.compilerOptions[g],p))}else if(i[m]===void 0)if(m==="watchOptions"){i.watchOptions={};for(let g of Object.keys(l.watchOptions))i.watchOptions[g]=FWt(g,l.watchOptions[g],p)}else i[m]=FWt(m,l[m],p)}var z_r=["files","include","exclude","baseUrl","rootDir","rootDirs","typeRoots","outDir","outFile","declarationDir","excludeDirectories","excludeFiles"];function FWt(o,n,i){return z_r.includes(o)?Array.isArray(n)?n.map(l=>Skn(l,i)):Skn(n,i):n}function Skn(o,n){return Vj.default.isAbsolute(o)?o:Vj.default.posix.normalize(Vj.default.posix.join(n,o))}var VWt=class WWt extends Error{constructor(n,i,l,p){super(n),Object.setPrototypeOf(this,WWt.prototype),this.name=WWt.name,this.code=i,this.cause=p,this.tsconfigFile=l}};re();re();function Sst(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n]}function Pkn(){return typeof WeakMap<"u"?new WeakMap:j_r()}function j_r(){return{add:Sst,delete:Sst,get:Sst,set:Sst,has:function(o){return!1}}}var V_r=Object.prototype.hasOwnProperty,HWt=function(o,n){return V_r.call(o,n)};function UWt(o,n){for(var i in n)HWt(n,i)&&(o[i]=n[i]);return o}var U_r=/^[ \t]*(?:\r\n|\r|\n)/,H_r=/(?:\r\n|\r|\n)[ \t]*$/,J_r=/^(?:[\r\n]|$)/,q_r=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,K_r=/^[ \t]*[\r\n][ \t\r\n]*$/;function Nkn(o,n,i){var l=0,p=o[0].match(q_r);p&&(l=p[1].length);var m="(\\r\\n|\\r|\\n).{0,"+l+"}",g=new RegExp(m,"g");n&&(o=o.slice(1));var b=i.newline,T=i.trimLeadingNewline,I=i.trimTrailingNewline,R=typeof b=="string",V=o.length,X=o.map(function(ue,De){return ue=ue.replace(g,"$1"),De===0&&T&&(ue=ue.replace(U_r,"")),De===V-1&&I&&(ue=ue.replace(H_r,"")),R&&(ue=ue.replace(/\r\n|\n|\r/g,function(we){return b})),ue});return X}function X_r(o,n){for(var i="",l=0,p=o.length;l<p;l++)i+=o[l],l<p-1&&(i+=n[l]);return i}function Y_r(o){return HWt(o,"raw")&&HWt(o,"length")}function Rkn(o){var n=Pkn(),i=Pkn();function l(m){for(var g=[],b=1;b<arguments.length;b++)g[b-1]=arguments[b];if(Y_r(m)){var T=m,I=(g[0]===l||g[0]===zc)&&K_r.test(T[0])&&J_r.test(T[1]),R=I?i:n,V=R.get(T);if(V||(V=Nkn(T,I,o),R.set(T,V)),g.length===0)return V[0];var X=X_r(V,I?g.slice(1):g);return X}else return Rkn(UWt(UWt({},o),m||{}))}var p=UWt(l,{string:function(m){return Nkn([m],!1,o)[0]}});return p}var zc=Rkn({trimLeadingNewline:!0,trimTrailingNewline:!0}),cx=zc;if(typeof module<"u")try{module.exports=zc,Object.defineProperty(zc,"__esModule",{value:!0}),zc.default=zc,zc.outdent=zc}catch{}_1();_1();var mwn=yd(Vkn(),1);_1();re();var Shr="",xhr=Shr.split(","),Ehr="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationTimingFunction,animationTimeline,appearance,aspectRatio,azimuth,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockOverflow,blockSize,border,borderBlock,borderBlockColor,borderBlockStyle,borderBlockWidth,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineEnd,borderInlineColor,borderInlineStyle,borderInlineWidth,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,color,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicSize,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,direction,display,emptyCells,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontVariationSettings,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inputSecurity,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,printColorAdjust,quotes,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,scale,scrollbarColor,scrollbarGutter,scrollbarWidth,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockStart,scrollMarginBlockEnd,scrollMarginBottom,scrollMarginInline,scrollMarginInlineStart,scrollMarginInlineEnd,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockStart,scrollPaddingBlockEnd,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineStart,scrollPaddingInlineEnd,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,shapeImageThreshold,shapeMargin,shapeOutside,tabSize,tableLayout,textAlign,textAlignLast,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textTransform,textUnderlineOffset,textUnderlinePosition,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,verticalAlign,viewTransitionName,visibility,whiteSpace,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,zIndex,zoom",XWt=Ehr.split(",").concat(xhr),Dhr=new Map(XWt.map(o=>[o,!0]));function Thr(o){let n=Object.create(null);return i=>(n[i]===void 0&&(n[i]=o(i)),n[i])}var Ahr=/&|@/,Ukn=Thr(o=>Dhr.has(o)||o.startsWith("--")||Ahr.test(o));_1();var hwn=yd(Hkn(),1);re();_1();re();_1();_1();_1();_1();_1();_1();_1();var Kkn=/(\$[^\s,]+\w)|({([^}]*)})/g,khr=/[{}]/g;function tGt(o){if(typeof o!="string")return[];let n=o.match(Kkn);return n?n.map(i=>i.replace(khr,"")).map(i=>i.trim()):[]}function whr(o){return Kkn.test(o)}function Ihr(o){let n={};return o.forEach((i,l)=>{i instanceof Map?n[l]=Object.fromEntries(i):n[l]=i}),n}var ZWt=o=>wO(o)&&"value"in o;function Jkn(o){if(!ZWt(o))throw new Error(`Invalid token format: ${JSON.stringify(o)}`)}var kst=class Xkn{name;value;originalValue;path;type;description;extensions;constructor(n){this.name=n.name,this.value=n.value,this.originalValue=n.value,this.path=n.path??[],n.type&&(this.type=n.type),n.description&&(this.description=n.description),this.extensions=n.extensions??{},this.extensions.condition=n.extensions?.condition??"base",this.setType()}get id(){return Zye(`${this.name}-${this.extensions.condition}-${this.value}`)}get isConditional(){return!!this.extensions?.conditions}get hasReference(){return!!this.extensions?.references}get isComposite(){return wO(this.originalValue)||Array.isArray(this.originalValue)}expandReferences(){if(!this.hasReference)return this.value;let n=this.extensions.references??{};return this.value=Object.keys(n).reduce((i,l)=>{let p=n[l];if(p.isConditional)return i;let m=p.expandReferences();return i.replace(`{${l}}`,m)},this.value),delete this.extensions.references,this.value}get isReference(){return whr(this.originalValue)}get references(){return tGt(this.originalValue)}clone(){return new Xkn({name:this.name,value:this.value,type:this.type,path:[...this.path],description:this.description,extensions:eGt(this.extensions)})}getConditionTokens(){if(!this.isConditional)return;let n=this.extensions.conditions??{},i=[];return jI(n,(l,p)=>{let m=p.filter(b=>!Vbe(b));if(!m.length)return;let g=this.clone();g.value=l,g.extensions.condition=m.join(":"),i.push(g)}),i}setExtensions(n){return this.extensions={...this.extensions,...n},this.setType(),this}setType(){this.type||this.extensions.category&&(this.type=Phr[this.extensions.category])}};function eGt(o){return o instanceof kst?o.clone():Array.isArray(o)?o.map(n=>eGt(n)):typeof o=="object"&&o!==null?Object.fromEntries(Object.entries(o).map(([n,i])=>[n,eGt(i)])):o}var Phr={colors:"color",spacing:"dimension",sizing:"dimension",shadows:"shadow",fonts:"fontFamily",fontSizes:"fontSize",fontWeights:"fontWeight",letterSpacings:"letterSpacing",durations:"duration",transitions:"transition",radii:"borderRadius",gradients:"gradient",easings:"cubicBezier",borders:"border",components:"cti",assets:"asset"};function Nhr(o){return o?{breakpoints:eCe(o,n=>({value:n})),sizes:Object.fromEntries(Object.entries(o).map(([n,i])=>[`breakpoint-${n}`,{value:i}]))}:{breakpoints:{},sizes:{}}}function qkn(o){return o[0]==="DEFAULT"?o:o.filter(n=>n!=="DEFAULT")}var Rhr=class{allTokens=[];prefix;hash;get allNames(){return Array.from(new Set(this.allTokens.map(o=>o.name)))}constructor(o){let{tokens:n={},semanticTokens:i={},breakpoints:l,prefix:p,hash:m}=o,g=Nhr(l),b=tre({...n,breakpoints:g.breakpoints,sizes:{...n.sizes,...g.sizes}});this.prefix=p,this.hash=m,jI(b,(T,I)=>{I=qkn(I),Jkn(T);let R=I[0],V=I.join("."),X=new kst({...T,name:V,path:I});X.setExtensions({category:R,prop:I.slice(1).join(".")}),this.allTokens.push(X)},{stop:ZWt}),jI(i,(T,I)=>{I=qkn(I),Jkn(T);let R=I[0],V=I.join("."),X=H7(T.value)?{value:{base:T.value}}:T,{value:ue,...De}=X,we=new kst({...De,name:V,value:ue.base||"",path:I});we.setExtensions({category:R,conditions:ue,prop:I.slice(1).join(".")}),this.allTokens.push(we)},{stop:ZWt})}getByName=RS(o=>{for(let n of this.allTokens)if(n.name===o)return n});transforms=new Map;registerTransform(...o){return o.forEach(n=>{n.type||="value",n.enforce||="pre",this.transforms.set(n.name,n)}),this}execTransform(o){let n=this.transforms.get(o);n&&this.allTokens.forEach(i=>{if(i.extensions.hasReference||typeof n.match=="function"&&!n.match(i))return;let l=n.transform(i,{prefix:this.prefix,hash:this.hash});U_(n).with({type:"extensions"},()=>{i.setExtensions(l)}).with({type:"value"},()=>{i.value=l,i.isComposite&&(i.originalValue=l)}).otherwise(()=>{i[n.type]=l})})}transformTokens(o){return this.transforms.forEach(n=>{n.enforce===o&&this.execTransform(n.name)}),this}middlewares=[];registerMiddleware(...o){for(let n of o)n.enforce||="pre",this.middlewares.push(n);return this}applyMiddlewares(o){this.middlewares.forEach(n=>{n.enforce===o&&n.transform(this,{prefix:this.prefix})})}getReferences(o){return tGt(o).map(i=>this.getByName(i)).filter(Boolean)}usesReference(o){return H7(o)?this.getReferences(o).length>0:!1}addReferences(){return this.allTokens.forEach(o=>{if(!this.usesReference(o.value))return;let n=this.getReferences(o.value);o.setExtensions({references:n.reduce((i,l)=>(i[l.name]=l,i),{})})}),this}filter(o){let n=typeof o=="function"?o:lre(o);return this.allTokens.filter(n)}addConditionalTokens(){let o=[];return this.allTokens.forEach(n=>{o.push(n);let i=n.getConditionTokens();i&&i.length>0&&o.push(...i)}),this.allTokens=o,this}expandReferences(){return this.allTokens.forEach(o=>{o.expandReferences()}),this}build(){this.applyMiddlewares("pre"),this.transformTokens("pre"),this.addConditionalTokens(),this.addReferences(),this.expandReferences(),this.applyMiddlewares("post"),this.transformTokens("post")}get isEmpty(){return this.allTokens.length===0}},Oee={groupByCondition(o){let n=new Map;return o.allTokens.forEach(i=>{let{condition:l}=i.extensions;l&&(n.get(l)||n.set(l,new Set),n.set(l,n.get(l).add(i)))}),n},groupByColorPalette(o){let n=new Map;return o.allTokens.forEach(i=>{let{colorPalette:l}=i.extensions;if(!l||i.extensions.isVirtual)return;n.get(l)||n.set(l,new Map);let p=i.name.replace(l,"colorPalette"),m=o.getByName(p);if(!m)return;let g=m.extensions.var;n.get(l).set(g,i.extensions.varRef)}),n},groupByCategory(o){let n=new Map;return o.allTokens.forEach(i=>{let{category:l,prop:p}=i.extensions;l&&(n.get(l)||n.set(l,new Map),n.set(l,n.get(l).set(p,i)))}),n},getFlattenedValues(o){let n=Oee.groupByCategory(o),i=new Map;return n.forEach((l,p)=>{i.get(p)||i.set(p,new Map),l.forEach(m=>{let{prop:g,varRef:b,isNegative:T}=m.extensions,I=T?m.isConditional?m.originalValue:m.value:b;i.set(p,i.get(p).set(g,I))})}),i},getVars(o){let n=Oee.groupByCondition(o),i=new Map;return n.forEach((l,p)=>{i.get(p)||i.set(p,new Map),l.forEach(m=>{m.extensions.isNegative||m.extensions.isVirtual||i.get(p).set(m.extensions.var,m.value)})}),i},createVarGetter(o){let n=Ihr(Oee.getFlattenedValues(o));return function(l,p){return Kbe(n,l,p)}},getColorPaletteValues(o){let n=new Set;return o.allTokens.forEach(i=>{let{colorPalette:l}=i.extensions;!l||i.extensions.isVirtual||n.add(l)}),n}},Lhr={enforce:"pre",transform(o,{prefix:n,hash:i}){o.filter({extensions:{category:"spacing"}}).forEach(p=>{let m=[...p.path],g=qbe(m.join("-"),{prefix:n,hash:i});if(p.value==="0rem")return;let b=p.clone();b.setExtensions({isNegative:!0,prop:`-${p.extensions.prop}`,originalPath:m}),b.value=e4t.negate(g);let T=b.path.at(-1);T!=null&&(b.path[b.path.length-1]=`-${T}`),b.path&&(b.name=b.path.join(".")),o.allTokens.push(b)})}},Mhr=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),Fhr={enforce:"post",transform(o){o.filter(i=>Mhr.has(i.extensions.category)&&!i.extensions.isNegative).forEach(i=>{i.setExtensions({pixelValue:tCe(i.value)})})}},Ohr={enforce:"post",transform(o){let n=o.filter({extensions:{category:"colors"}}),i=new Set,l=new Map;n.forEach(p=>{let{colorPalette:m}=p.extensions;if(!m)return;let g=l.get(m)||[];i.add(p.path.at(-1)),g.push(p),l.set(m,g)}),i.forEach(p=>{let m=new kst({name:`colors.colorPalette.${p}`,value:`{colors.colorPalette.${p}}`,path:["colors","colorPalette",p]});m.setExtensions({category:"colors",prop:`colorPalette.${p}`,isVirtual:!0}),o.allTokens.push(m)}),o.transformTokens("pre")}},Whr={enforce:"post",transform(o){o.allTokens=o.allTokens.filter(n=>n.value!=="")}},Ghr=[Lhr,Ohr,Whr,Fhr],$Wt={aqua:/#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,azure:/#f0ffff(ff)?(?!\w)/gi,beige:/#f5f5dc(ff)?(?!\w)/gi,bisque:/#ffe4c4(ff)?(?!\w)/gi,black:/#000000(ff)?(?!\w)|#000(f)?(?!\w)/gi,blue:/#0000ff(ff)?(?!\w)|#00f(f)?(?!\w)/gi,brown:/#a52a2a(ff)?(?!\w)/gi,coral:/#ff7f50(ff)?(?!\w)/gi,cornsilk:/#fff8dc(ff)?(?!\w)/gi,crimson:/#dc143c(ff)?(?!\w)/gi,cyan:/#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,darkblue:/#00008b(ff)?(?!\w)/gi,darkcyan:/#008b8b(ff)?(?!\w)/gi,darkgrey:/#a9a9a9(ff)?(?!\w)/gi,darkred:/#8b0000(ff)?(?!\w)/gi,deeppink:/#ff1493(ff)?(?!\w)/gi,dimgrey:/#696969(ff)?(?!\w)/gi,gold:/#ffd700(ff)?(?!\w)/gi,green:/#008000(ff)?(?!\w)/gi,grey:/#808080(ff)?(?!\w)/gi,honeydew:/#f0fff0(ff)?(?!\w)/gi,hotpink:/#ff69b4(ff)?(?!\w)/gi,indigo:/#4b0082(ff)?(?!\w)/gi,ivory:/#fffff0(ff)?(?!\w)/gi,khaki:/#f0e68c(ff)?(?!\w)/gi,lavender:/#e6e6fa(ff)?(?!\w)/gi,lime:/#00ff00(ff)?(?!\w)|#0f0(f)?(?!\w)/gi,linen:/#faf0e6(ff)?(?!\w)/gi,maroon:/#800000(ff)?(?!\w)/gi,moccasin:/#ffe4b5(ff)?(?!\w)/gi,navy:/#000080(ff)?(?!\w)/gi,oldlace:/#fdf5e6(ff)?(?!\w)/gi,olive:/#808000(ff)?(?!\w)/gi,orange:/#ffa500(ff)?(?!\w)/gi,orchid:/#da70d6(ff)?(?!\w)/gi,peru:/#cd853f(ff)?(?!\w)/gi,pink:/#ffc0cb(ff)?(?!\w)/gi,plum:/#dda0dd(ff)?(?!\w)/gi,purple:/#800080(ff)?(?!\w)/gi,red:/#ff0000(ff)?(?!\w)|#f00(f)?(?!\w)/gi,salmon:/#fa8072(ff)?(?!\w)/gi,seagreen:/#2e8b57(ff)?(?!\w)/gi,seashell:/#fff5ee(ff)?(?!\w)/gi,sienna:/#a0522d(ff)?(?!\w)/gi,silver:/#c0c0c0(ff)?(?!\w)/gi,skyblue:/#87ceeb(ff)?(?!\w)/gi,snow:/#fffafa(ff)?(?!\w)/gi,tan:/#d2b48c(ff)?(?!\w)/gi,teal:/#008080(ff)?(?!\w)/gi,thistle:/#d8bfd8(ff)?(?!\w)/gi,tomato:/#ff6347(ff)?(?!\w)/gi,violet:/#ee82ee(ff)?(?!\w)/gi,wheat:/#f5deb3(ff)?(?!\w)/gi,white:/#ffffff(ff)?(?!\w)|#fff(f)?(?!\w)/gi},nGt={whitespace:/\s+/g,urlHexPairs:/%[\dA-F]{2}/g,quotes:/"/g};function zhr(o){return o.trim().replace(nGt.whitespace," ")}function jhr(o){return encodeURIComponent(o).replace(nGt.urlHexPairs,Uhr)}function Vhr(o){return Jhr($Wt).forEach(n=>{$Wt[n].test(o)&&(o=o.replace($Wt[n],n))}),o}function Uhr(o){switch(o){case"%20":return" ";case"%3D":return"=";case"%3A":return":";case"%2F":return"/";default:return o.toLowerCase()}}function Hhr(o){if(typeof o!="string")throw new TypeError("Expected a string, but received "+typeof o);o.charCodeAt(0)===65279&&(o=o.slice(1));let n=Vhr(zhr(o)).replace(nGt.quotes,"'");return"data:image/svg+xml,"+jhr(n)}var Jhr=o=>Object.keys(o),qhr=lre({inset:MS.optional(MS.boolean),offsetX:MS.number,offsetY:MS.number,blur:MS.number,spread:MS.number,color:MS.string}),Khr={name:"tokens/shadow",match:o=>o.extensions.category==="shadows",transform(o,{prefix:n}){if(H7(o.value))return o.value;if(Array.isArray(o.value)){if(o.extensions.conditions){let i=o.extensions.conditions;for(let[l,p]of Object.entries(i))Array.isArray(p)&&(i[l]=p.map(m=>this.transform({value:m},{prefix:n})).join(", "));if(o.extensions.conditions?.base&&Array.isArray(o.originalValue))return o.extensions.conditions.base}return o.value.map(i=>this.transform({value:i},{prefix:n})).join(", ")}if(qhr(o.value)){let{offsetX:i,offsetY:l,blur:p,spread:m,color:g,inset:b}=o.value;return`${b?"inset ":""}${i}px ${l}px ${p}px ${m}px ${g}`}return o.value}},Xhr=lre({type:MS.string,placement:MS.string,stops:MS.union(MS.array(MS.string),MS.array({color:MS.string,position:MS.number}))}),Yhr={name:"tokens/gradient",match:o=>o.extensions.category==="gradients",transform(o){if(H7(o.value))return o.value;if(Xhr(o.value)){let{type:n,stops:i,placement:l}=o.value,p=i.map(m=>{if(H7(m))return m;let{color:g,position:b}=m;return`${g} ${b}px`});return`${n}-gradient(${l}, ${p.join(", ")})`}return o.value}},Qhr={name:"tokens/fonts",match:o=>o.extensions.category==="fonts",transform(o){return Array.isArray(o.value)?o.value.join(", "):o.value}},$hr={name:"tokens/easings",match:o=>o.extensions.category==="easings",transform(o){return H7(o.value)?o.value:`cubic-bezier(${o.value.join(", ")})`}},Zhr={name:"tokens/borders",match:o=>o.extensions.category==="borders",transform(o){if(H7(o.value))return o.value;let{width:n,style:i,color:l}=o.value;return`${n}px ${i} ${l}`}},egr={name:"tokens/assets",match:o=>o.extensions.category==="assets",transform(o){let n=o.value;return U_(n).with(MS.string,i=>i).with({type:"url"},({value:i})=>`url('${i}')`).with({type:"svg"},({value:i})=>`url('${Hhr(i)})'`).exhaustive()}},tgr={type:"extensions",name:"tokens/css-var",transform(o,{prefix:n,hash:i}){let{isNegative:l,originalPath:p}=o.extensions,m=l?p:o.path,g=qbe(m.join("-"),{prefix:n,hash:i});return{var:g.var,varRef:g.ref}}},ngr={enforce:"post",name:"tokens/conditionals",transform(o,{prefix:n,hash:i}){let l=tGt(o.value);return l.length&&l.forEach(p=>{let m=qbe(p.split(".").join("-"),{prefix:n,hash:i}).ref;o.value=o.value.replace(`{${p}}`,m)}),o.value}};function rgr(o){if(o.includes("colorPalette"))return"";let n=[...o];return n.pop(),n.shift(),n.join(".")}var igr={type:"extensions",name:"tokens/colors/colorPalette",match(o){return o.extensions.category==="colors"},transform(o){return{colorPalette:rgr(o.path)}}},ogr=[Khr,Yhr,Qhr,$hr,Zhr,egr,tgr,ngr,igr],Ykn=class extends Rhr{constructor(o){super(o),this.registerTransform(...ogr),this.registerMiddleware(...Ghr),this.build()}get get(){return Oee.createVarGetter(this)}get conditionMap(){return Oee.groupByCondition(this)}get categoryMap(){return Oee.groupByCategory(this)}get values(){return Oee.getFlattenedValues(this)}get colorPalettes(){return b$e(Oee.groupByColorPalette(this))}get vars(){return Oee.getVars(this)}getValue(o){let n=this.values.get(o);if(n!=null)return Object.fromEntries(n)}getTokenVar(o){let n=b$e(this.values);return Kbe(n,o)}};_1();_1();var sgr=Object.defineProperty,agr=(o,n)=>{for(var i in n)sgr(o,i,{get:n[i],enumerable:!0})},lgr={};agr(lgr,{artifactsGenerated:()=>Zkn,buildComplete:()=>swn,codegenComplete:()=>nwn,configExists:()=>ewn,configWatch:()=>own,getMessages:()=>awn,noExtract:()=>rwn,thankYou:()=>twn,watch:()=>iwn});var QVe=UI.green().bold("\u2714\uFE0F"),Zkn=o=>{let{config:{outdir:n},recipes:i,patterns:l,tokens:p,jsx:m}=o;return()=>[zc`
30731
30731
  ${QVe} ${See(n,"/css")}: the css function to author styles
@@ -31050,7 +31050,7 @@ ${p}`),o?ZZe(p):p}catch(i){throw i instanceof hQt&&(I1.error("sheet",i.message),
31050
31050
  })
31051
31051
  }
31052
31052
  `,dts:cx`
31053
- `}}function dgr(o){let{utility:n,config:{hash:i,prefix:l},conditions:p}=o,{separator:m}=n,g=Array.from(n.shorthands.entries()).reduce((b,[T,I])=>(b[I]=T,b),{});return{dts:zc`
31053
+ `}}function dgr(o){let{utility:n,config:{hash:i,prefix:l},conditions:p}=o,{separator:m,getPropShorthands:g}=n;return{dts:zc`
31054
31054
  import type { SystemStyleObject } from '../types'
31055
31055
 
31056
31056
  interface CssFunction {
@@ -31063,23 +31063,27 @@ ${p}`),o?ZZe(p):p}catch(i){throw i instanceof hQt&&(I1.error("sheet",i.message),
31063
31063
  ${o.file.import("createCss, createMergeCss, hypenateProperty, withoutSpace","../helpers")}
31064
31064
  ${o.file.import("sortConditions, finalizeConditions","./conditions")}
31065
31065
 
31066
- const utilities = "${n.entries().map(([b,T])=>{let I=g[b];return[b,I?[T,I===T?1:I].join("/"):T].join(":")}).join(",")}"
31066
+ const utilities = "${n.entries().map(([b,T])=>{let I=g(b);return[b,[T,I.length?I.map(V=>V===T?1:V).join("/"):null].filter(Boolean).join("/")].join(":")}).join(",")}"
31067
31067
 
31068
- const classMap = {}
31068
+ const classNames = new Map()
31069
31069
  ${n.hasShorthand?zc`
31070
- const shorthands = {}
31070
+ const shorthands = new Map()
31071
31071
  utilities.split(',').forEach((utility) => {
31072
31072
  const [prop, meta] = utility.split(':')
31073
- const [className, shorthand] = meta.split('/')
31074
- classMap[prop] = className
31075
- if (shorthand) shorthands[shorthand === '1' ? className : shorthand] = prop
31073
+ const [className, ...shorthandList] = meta.split('/')
31074
+ classNames.set(prop, className)
31075
+ if (shorthandList.length) {
31076
+ shorthandList.forEach((shorthand) => {
31077
+ shorthands.set(shorthand === '1' ? className : shorthand, prop)
31078
+ })
31079
+ }
31076
31080
  })
31077
31081
 
31078
- const resolveShorthand = (prop) => shorthands[prop] || prop
31082
+ const resolveShorthand = (prop) => shorthands.get(prop) || prop
31079
31083
  `:zc`
31080
31084
  utilities.split(',').forEach((utility) => {
31081
31085
  const [prop, className] = utility.split(':')
31082
- classMap[prop] = className
31086
+ classNames.set(prop, className)
31083
31087
  })
31084
31088
  `}
31085
31089
 
@@ -31094,9 +31098,9 @@ ${p}`),o?ZZe(p):p}catch(i){throw i instanceof hQt&&(I1.error("sheet",i.message),
31094
31098
  ${l?"prefix: "+JSON.stringify(l)+",":""}
31095
31099
  transform: ${n.hasShorthand?`(prop, value) => {
31096
31100
  const key = resolveShorthand(prop)
31097
- const propKey = classMap[key] || hypenateProperty(key)
31101
+ const propKey = classNames.get(key) || hypenateProperty(key)
31098
31102
  return { className: \`\${propKey}${m}\${withoutSpace(value)}\` }
31099
- }`:`(key, value) => ({ className: \`\${classMap[key] || hypenateProperty(key)}${m}\${withoutSpace(value)}\` })`},
31103
+ }`:`(key, value) => ({ className: \`\${classNames.get(key) || hypenateProperty(key)}${m}\${withoutSpace(value)}\` })`},
31100
31104
  ${n.hasShorthand?"hasShorthand: true,":""}
31101
31105
  resolveShorthand: ${n.hasShorthand?"resolveShorthand":"prop => prop"},
31102
31106
  }
@@ -54320,7 +54324,7 @@ ${l.code}`)}),n)),FBr=o=>n=>{let{files:i,resolve:l}=n,{theme:{keyframes:p}={},pr
54320
54324
 
54321
54325
  `),I=o.createSheet({content:l?[lwn(o),b&&pwn(o),m&&uwn(o),!o.tokens.isEmpty&&fwn(o),p&&cwn(o)].filter(Boolean).join(`
54322
54326
 
54323
- `):T});return I.append(...i),I.toCss({optimize:!0,minify:g})},OBr=o=>n=>ik({...o,sheet:o.createSheet(),result:n},vee(({sheet:i,result:l,patterns:p,recipes:m})=>{l.css.forEach(g=>{g.data.forEach(b=>{i.processAtomic(b)})}),l.cva.forEach(g=>{g.data.forEach(b=>{i.processAtomicRecipe(b)})}),l.sva.forEach(g=>{g.data.forEach(b=>{i.processAtomicSlotRecipe(b)})}),l.jsx.forEach(g=>{g.data.forEach(b=>{i.processStyleProps(b)})}),l.recipe.forEach((g,b)=>{try{for(let T of g){let I=m.getConfig(b);I&&U_(T).with({type:"jsx-recipe"},()=>{T.data.forEach(R=>{let[V,X]=m.splitProps(b,R);i.processStyleProps(X),i.processRecipe(b,I,V)})}).otherwise(()=>{T.data.forEach(R=>{i.processRecipe(b,I,R)})})}}catch(T){I1.error("serializer:recipe",T)}}),l.pattern.forEach((g,b)=>{try{for(let T of g)U_(T).with({type:"jsx-pattern",name:MS.string},({name:I})=>{T.data.forEach(R=>{let V=p.getFnName(I),X=p.transform(V,R);i.processStyleProps(X)})}).otherwise(()=>{T.data.forEach(I=>{let R=p.transform(b,I);i.processAtomic(R)})})}catch(T){I1.error("serializer:pattern",T)}})}),t6(({sheet:i,result:l,config:{minify:p,optimize:m}})=>{let g=l.isEmpty()?void 0:i.toCss({minify:p,optimize:m});return o.hooks.callHook("parser:css",l.filePath??"",g),g},i=>{I1.error("serializer:css","Failed to serialize CSS: "+i)})),WBr={map:eCe},GBr=o=>{let{config:n}=o,i=n.theme??{},l=n.syntax==="template-literal",p={tokens:gZe(n.hash)?n.hash:n.hash?.cssVar,className:gZe(n.hash)?n.hash:n.hash?.className},m={tokens:BZe(n.prefix)?n.prefix:n.prefix?.cssVar,className:BZe(n.prefix)?n.prefix:n.prefix?.className},g=new Ykn({breakpoints:i.breakpoints,tokens:i.tokens,semanticTokens:i.semanticTokens,prefix:m.tokens,hash:p.tokens}),b=new E1n({prefix:m.className,tokens:g,config:l?{}:n.utilities,separator:n.separator,shorthands:n.shorthands}),T=new l1n({conditions:l?{}:n.conditions,breakpoints:n.theme?.breakpoints}),{textStyles:I,layerStyles:R}=i,V=tre({textStyle:I,layerStyle:R});a1n(V,{conditions:T,utility:b});let ue=()=>({root:_B.root(),conditions:T,utility:b,hash:p.className,helpers:WBr}),De=Tn=>{let hn=ue();return new x1n(hn,{content:Tn?.content,recipes:i?.recipes,slotRecipes:i?.slotRecipes})},we=ue(),We=Object.assign({},i.recipes??{},i.slotRecipes??{}),Ne=new gOt(We,we);Ne.save();let Me=Array.from(new Set(["css",...b.keys(),...T.keys()])),Ct=new Map(Me.map(Tn=>[Tn,!0])),Rt=RS(Tn=>Ct.has(Tn)||Ukn(Tn)),en={outdir:`${n.outdir}-studio`,...o.config.studio};return{...o,isTemplateLiteralSyntax:l,studio:en,hash:p,prefix:m,tokens:g,utility:b,properties:Me,isValidProperty:Rt,recipes:Ne,conditions:T,createSheetContext:ue,createSheet:De}},zBr=o=>{let{jsxFactory:n,jsxFramework:i,jsxStyleProps:l}=o;return{factoryName:n,upperName:e6(n),typeName:`HTML${e6(n)}Props`,componentName:`${e6(n)}Component`,framework:i,styleProps:l??"all"}},jBr=({cwd:o,emitPackage:n,outdir:i})=>{let l=p=>[o,n?"node_modules":void 0,i,p].filter(Boolean);return{get:l,root:l(),css:l("css"),token:l("tokens"),types:l("types"),recipe:l("recipes"),pattern:l("patterns"),chunk:l("chunks"),outCss:l("styles.css"),jsx:l("jsx")}},VBr={map:eCe},UBr=o=>{let n=o.patterns??{},i=p=>{let m=e6(p);return{upperName:m,baseName:p,dashName:kze(p),styleFnName:`get${m}Style`,jsxName:n[p]?.jsxName??m}},l=Object.entries(n).map(([p,m])=>{let g=i(p),b=(m.jsx??[]).concat([g.jsxName]);return{...g,props:Object.keys(m?.properties??{}),blocklistType:m?.blocklist?`| '${m.blocklist.join("' | '")}'`:"",config:m,type:"pattern",match:Ize(b),jsx:b}});return{getConfig:p=>n[p],transform:(p,m)=>n[p]?.transform?.(m,VBr)??{},getNames:i,details:l,getFnName:RS(p=>l.find(m=>m.jsxName===p)?.baseName??n4t(p)),filter:RS(p=>l.filter(m=>m.match.test(p))),isEmpty:()=>Object.keys(n).length===0}},HBr=o=>({...GBr(o),patterns:UBr(o.config),jsx:zBr(o.config),paths:jBr(o.config),file:{ext(n){return`${n}.${o.config.outExtension}`},import(n,i){return`import { ${n} } from '${this.ext(i)}';`},export(n){return`export * from '${this.ext(n)}';`}}}),JBr=o=>({...o,config:{cssVarRoot:":where(:root, :host)",jsxFactory:"styled",jsxStyleProps:"all",outExtension:"mjs",shorthands:!0,syntax:"object-literal",...o.config}}),qBr=o=>({css:[o,"css"],recipe:[o,"recipes"],pattern:[o,"patterns"],jsx:[o,"jsx"]}),gwn=o=>{let n=HBr(JBr(o)),{config:i,jsx:l,isValidProperty:p,patterns:m,recipes:g}=n,b=o.tsconfig?.compilerOptions??{},T=b.baseUrl??"",I=o.config.cwd,R=T!==I?T.replace(I,"").slice(1):I;return{...n,getArtifacts:MBr(n),getCss:FBr(n),getParserCss:OBr(n),messages:awn(n),parserOptions:{importMap:qBr(i.outdir.replace(R,"")),jsx:{factory:l.factoryName,styleProps:l.styleProps,isStyleProp:p,nodes:[...m.details,...g.details]},getRecipesByJsxName:g.filter,getPatternsByJsxName:m.filter,compilerOptions:b,tsOptions:o.tsOptions}}};re();var uHe=yd(WO(),1);_1();var q6n=yd(WO(),1);_1();re();re();function E3(o,n){let i=Object.create(null),l=o.split(",");for(let p=0;p<l.length;p++)i[l[p]]=!0;return n?p=>!!i[p.toLowerCase()]:p=>!!i[p]}var KBr=Object.freeze({}),Bwn=()=>{},oGt=()=>!1,XBr=/^on[^a-z]/,YIn=o=>XBr.test(o),Kee=Object.assign,YBr=Object.prototype.hasOwnProperty,QBr=(o,n)=>YBr.call(o,n),s5=Array.isArray,$Br=o=>Azt(o)==="[object Map]",ZBr=o=>Azt(o)==="[object Set]",eyr=o=>typeof o=="function",y1=o=>typeof o=="string",ZUe=o=>typeof o=="symbol",Ixe=o=>o!==null&&typeof o=="object",QIn=Object.prototype.toString,Azt=o=>QIn.call(o),tyr=o=>Azt(o)==="[object Object]",ywn=E3(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),$In=E3("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Gat=o=>{let n=Object.create(null);return i=>n[i]||(n[i]=o(i))},nyr=/-(\w)/g,Hj=Gat(o=>o.replace(nyr,(n,i)=>i?i.toUpperCase():"")),ryr=/\B([A-Z])/g,ZIn=Gat(o=>o.replace(ryr,"-$1").toLowerCase()),u0e=Gat(o=>o.charAt(0).toUpperCase()+o.slice(1)),iyr=Gat(o=>o?`on${u0e(o)}`:""),oyr=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function Cwn(o){return oyr.test(o)?`__props.${o}`:`__props[${JSON.stringify(o)}]`}var FU={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"HYDRATE_EVENTS",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},syr={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},ayr="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",ePn=E3(ayr),vwn=2;function lyr(o,n=0,i=o.length){let l=o.split(/(\r?\n)/),p=l.filter((b,T)=>T%2===1);l=l.filter((b,T)=>T%2===0);let m=0,g=[];for(let b=0;b<l.length;b++)if(m+=l[b].length+(p[b]&&p[b].length||0),m>=n){for(let T=b-vwn;T<=b+vwn||i>m;T++){if(T<0||T>=l.length)continue;let I=T+1;g.push(`${I}${" ".repeat(Math.max(3-String(I).length,0))}| ${l[T]}`);let R=l[T].length,V=p[T]&&p[T].length||0;if(T===b){let X=n-(m-(R+V)),ue=Math.max(1,i>m?R-X:i-n);g.push(" | "+" ".repeat(X)+"^".repeat(ue))}else if(T>b){if(i>m){let X=Math.max(Math.min(i-m,R),1);g.push(" | "+"^".repeat(X))}m+=R+V}}break}return g.join(`
54327
+ `):T});I.append(...i);let R=I.toCss({optimize:!0,minify:g});return o.hooks.callHook("generator:css","styles.css",R),R},OBr=o=>n=>ik({...o,sheet:o.createSheet(),result:n},vee(({sheet:i,result:l,patterns:p,recipes:m})=>{l.css.forEach(g=>{g.data.forEach(b=>{i.processAtomic(b)})}),l.cva.forEach(g=>{g.data.forEach(b=>{i.processAtomicRecipe(b)})}),l.sva.forEach(g=>{g.data.forEach(b=>{i.processAtomicSlotRecipe(b)})}),l.jsx.forEach(g=>{g.data.forEach(b=>{i.processStyleProps(b)})}),l.recipe.forEach((g,b)=>{try{for(let T of g){let I=m.getConfig(b);I&&U_(T).with({type:"jsx-recipe"},()=>{T.data.forEach(R=>{let[V,X]=m.splitProps(b,R);i.processStyleProps(X),i.processRecipe(b,I,V)})}).otherwise(()=>{T.data.forEach(R=>{i.processRecipe(b,I,R)})})}}catch(T){I1.error("serializer:recipe",T)}}),l.pattern.forEach((g,b)=>{try{for(let T of g)U_(T).with({type:"jsx-pattern",name:MS.string},({name:I})=>{T.data.forEach(R=>{let V=p.getFnName(I),X=p.transform(V,R);i.processStyleProps(X)})}).otherwise(()=>{T.data.forEach(I=>{let R=p.transform(b,I);i.processAtomic(R)})})}catch(T){I1.error("serializer:pattern",T)}})}),t6(({sheet:i,result:l,config:{minify:p,optimize:m}})=>{let g=l.isEmpty()?void 0:i.toCss({minify:p,optimize:m});return o.hooks.callHook("parser:css",l.filePath??"",g),g},i=>{I1.error("serializer:css","Failed to serialize CSS: "+i)})),WBr={map:eCe},GBr=o=>{let{config:n}=o,i=n.theme??{},l=n.syntax==="template-literal",p={tokens:gZe(n.hash)?n.hash:n.hash?.cssVar,className:gZe(n.hash)?n.hash:n.hash?.className},m={tokens:BZe(n.prefix)?n.prefix:n.prefix?.cssVar,className:BZe(n.prefix)?n.prefix:n.prefix?.className},g=new Ykn({breakpoints:i.breakpoints,tokens:i.tokens,semanticTokens:i.semanticTokens,prefix:m.tokens,hash:p.tokens}),b=new E1n({prefix:m.className,tokens:g,config:l?{}:n.utilities,separator:n.separator,shorthands:n.shorthands}),T=new l1n({conditions:l?{}:n.conditions,breakpoints:n.theme?.breakpoints}),{textStyles:I,layerStyles:R}=i,V=tre({textStyle:I,layerStyle:R});a1n(V,{conditions:T,utility:b});let ue=()=>({root:_B.root(),conditions:T,utility:b,hash:p.className,helpers:WBr}),De=Tn=>{let hn=ue();return new x1n(hn,{content:Tn?.content,recipes:i?.recipes,slotRecipes:i?.slotRecipes})},we=ue(),We=Object.assign({},i.recipes??{},i.slotRecipes??{}),Ne=new gOt(We,we);Ne.save();let Me=Array.from(new Set(["css",...b.keys(),...T.keys()])),Ct=new Map(Me.map(Tn=>[Tn,!0])),Rt=RS(Tn=>Ct.has(Tn)||Ukn(Tn)),en={outdir:`${n.outdir}-studio`,...o.config.studio};return{...o,isTemplateLiteralSyntax:l,studio:en,hash:p,prefix:m,tokens:g,utility:b,properties:Me,isValidProperty:Rt,recipes:Ne,conditions:T,createSheetContext:ue,createSheet:De}},zBr=o=>{let{jsxFactory:n,jsxFramework:i,jsxStyleProps:l}=o;return{factoryName:n,upperName:e6(n),typeName:`HTML${e6(n)}Props`,componentName:`${e6(n)}Component`,framework:i,styleProps:l??"all"}},jBr=({cwd:o,emitPackage:n,outdir:i})=>{let l=p=>[o,n?"node_modules":void 0,i,p].filter(Boolean);return{get:l,root:l(),css:l("css"),token:l("tokens"),types:l("types"),recipe:l("recipes"),pattern:l("patterns"),chunk:l("chunks"),outCss:l("styles.css"),jsx:l("jsx")}},VBr={map:eCe},UBr=o=>{let n=o.patterns??{},i=p=>{let m=e6(p);return{upperName:m,baseName:p,dashName:kze(p),styleFnName:`get${m}Style`,jsxName:n[p]?.jsxName??m}},l=Object.entries(n).map(([p,m])=>{let g=i(p),b=(m.jsx??[]).concat([g.jsxName]);return{...g,props:Object.keys(m?.properties??{}),blocklistType:m?.blocklist?`| '${m.blocklist.join("' | '")}'`:"",config:m,type:"pattern",match:Ize(b),jsx:b}});return{getConfig:p=>n[p],transform:(p,m)=>n[p]?.transform?.(m,VBr)??{},getNames:i,details:l,getFnName:RS(p=>l.find(m=>m.jsxName===p)?.baseName??n4t(p)),filter:RS(p=>l.filter(m=>m.match.test(p))),isEmpty:()=>Object.keys(n).length===0}},HBr=o=>({...GBr(o),patterns:UBr(o.config),jsx:zBr(o.config),paths:jBr(o.config),file:{ext(n){return`${n}.${o.config.outExtension}`},import(n,i){return`import { ${n} } from '${this.ext(i)}';`},export(n){return`export * from '${this.ext(n)}';`}}}),JBr=o=>({...o,config:{cssVarRoot:":where(:root, :host)",jsxFactory:"styled",jsxStyleProps:"all",outExtension:"mjs",shorthands:!0,syntax:"object-literal",...o.config}}),qBr=o=>({css:[o,"css"],recipe:[o,"recipes"],pattern:[o,"patterns"],jsx:[o,"jsx"]}),gwn=o=>{let n=HBr(JBr(o)),{config:i,jsx:l,isValidProperty:p,patterns:m,recipes:g}=n,b=o.tsconfig?.compilerOptions??{},T=b.baseUrl??"",I=o.config.cwd,R=T!==I?T.replace(I,"").slice(1):I;return{...n,getArtifacts:MBr(n),getCss:FBr(n),getParserCss:OBr(n),messages:awn(n),parserOptions:{importMap:qBr(i.outdir.replace(R,"")),jsx:{factory:l.factoryName,styleProps:l.styleProps,isStyleProp:p,nodes:[...m.details,...g.details]},getRecipesByJsxName:g.filter,getPatternsByJsxName:m.filter,compilerOptions:b,tsOptions:o.tsOptions}}};re();var uHe=yd(WO(),1);_1();var q6n=yd(WO(),1);_1();re();re();function E3(o,n){let i=Object.create(null),l=o.split(",");for(let p=0;p<l.length;p++)i[l[p]]=!0;return n?p=>!!i[p.toLowerCase()]:p=>!!i[p]}var KBr=Object.freeze({}),Bwn=()=>{},oGt=()=>!1,XBr=/^on[^a-z]/,YIn=o=>XBr.test(o),Kee=Object.assign,YBr=Object.prototype.hasOwnProperty,QBr=(o,n)=>YBr.call(o,n),s5=Array.isArray,$Br=o=>Azt(o)==="[object Map]",ZBr=o=>Azt(o)==="[object Set]",eyr=o=>typeof o=="function",y1=o=>typeof o=="string",ZUe=o=>typeof o=="symbol",Ixe=o=>o!==null&&typeof o=="object",QIn=Object.prototype.toString,Azt=o=>QIn.call(o),tyr=o=>Azt(o)==="[object Object]",ywn=E3(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),$In=E3("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Gat=o=>{let n=Object.create(null);return i=>n[i]||(n[i]=o(i))},nyr=/-(\w)/g,Hj=Gat(o=>o.replace(nyr,(n,i)=>i?i.toUpperCase():"")),ryr=/\B([A-Z])/g,ZIn=Gat(o=>o.replace(ryr,"-$1").toLowerCase()),u0e=Gat(o=>o.charAt(0).toUpperCase()+o.slice(1)),iyr=Gat(o=>o?`on${u0e(o)}`:""),oyr=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function Cwn(o){return oyr.test(o)?`__props.${o}`:`__props[${JSON.stringify(o)}]`}var FU={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"HYDRATE_EVENTS",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},syr={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},ayr="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",ePn=E3(ayr),vwn=2;function lyr(o,n=0,i=o.length){let l=o.split(/(\r?\n)/),p=l.filter((b,T)=>T%2===1);l=l.filter((b,T)=>T%2===0);let m=0,g=[];for(let b=0;b<l.length;b++)if(m+=l[b].length+(p[b]&&p[b].length||0),m>=n){for(let T=b-vwn;T<=b+vwn||i>m;T++){if(T<0||T>=l.length)continue;let I=T+1;g.push(`${I}${" ".repeat(Math.max(3-String(I).length,0))}| ${l[T]}`);let R=l[T].length,V=p[T]&&p[T].length||0;if(T===b){let X=n-(m-(R+V)),ue=Math.max(1,i>m?R-X:i-n);g.push(" | "+" ".repeat(X)+"^".repeat(ue))}else if(T>b){if(i>m){let X=Math.max(Math.min(i-m,R),1);g.push(" | "+"^".repeat(X))}m+=R+V}}break}return g.join(`
54324
54328
  `)}function tPn(o){if(s5(o)){let n={};for(let i=0;i<o.length;i++){let l=o[i],p=y1(l)?nPn(l):tPn(l);if(p)for(let m in p)n[m]=p[m]}return n}else{if(y1(o))return o;if(Ixe(o))return o}}var cyr=/;(?![^(]*\))/g,uyr=/:([^]+)/,pyr=/\/\*[^]*?\*\//g;function nPn(o){let n={};return o.replace(pyr,"").split(cyr).forEach(i=>{if(i){let l=i.split(uyr);l.length>1&&(n[l[0].trim()]=l[1].trim())}}),n}function fyr(o){let n="";if(!o||y1(o))return n;for(let i in o){let l=o[i],p=i.startsWith("--")?i:ZIn(i);(y1(l)||typeof l=="number")&&(n+=`${p}:${l};`)}return n}function rPn(o){let n="";if(y1(o))n=o;else if(s5(o))for(let i=0;i<o.length;i++){let l=rPn(o[i]);l&&(n+=l+" ")}else if(Ixe(o))for(let i in o)o[i]&&(n+=i+" ");return n.trim()}var dyr="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",myr="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",_yr="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",hyr=E3(dyr),gyr=E3(myr),iPn=E3(_yr),Byr="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",yyr=E3(Byr+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");var Cyr=E3("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),vyr=E3("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan"),byr=/["'&<>]/;function t0e(o){let n=""+o,i=byr.exec(n);if(!i)return n;let l="",p,m,g=0;for(m=i.index;m<n.length;m++){switch(n.charCodeAt(m)){case 34:p="&quot;";break;case 38:p="&amp;";break;case 39:p="&#39;";break;case 60:p="&lt;";break;case 62:p="&gt;";break;default:continue}g!==m&&(l+=n.slice(g,m)),g=m+1,l+=p}return g!==m?l+n.slice(g,m):l}var kzt=o=>y1(o)?o:o==null?"":s5(o)||Ixe(o)&&(o.toString===QIn||!eyr(o.toString))?JSON.stringify(o,oPn,2):String(o),oPn=(o,n)=>n&&n.__v_isRef?oPn(o,n.value):$Br(n)?{[`Map(${n.size})`]:[...n.entries()].reduce((i,[l,p])=>(i[`${l} =>`]=p,i),{})}:ZBr(n)?{[`Set(${n.size})`]:[...n.values()]}:Ixe(n)&&!s5(n)&&!tyr(n)?String(n):n;function wzt(o){throw o}function sPn(o){console.warn(`[Vue warn] ${o.message}`)}function N1(o,n,i,l){let p=(i||Syr)[o]+(l||""),m=new SyntaxError(String(p));return m.code=o,m.loc=n,m}var Syr={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '&lt;' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '<!--' in comment.",17:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:`v-model cannot be used on a prop, because local prop bindings are not writable.
54325
54329
  Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:"Error parsing JavaScript expression: ",46:"<KeepAlive> expects exactly one child component.",47:'"prefixIdentifiers" option is not supported in this build of compiler.',48:"ES module mode is not supported in this build of compiler.",49:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',50:'"scopeId" option is only supported in module mode.',51:"@vnode-* hooks in templates are deprecated. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support will be removed in 3.4.",52:'v-is="component-name" has been deprecated. Use is="vue:component-name" instead. v-is support will be removed in 3.4.',53:""},gxe=Symbol("Fragment"),cxe=Symbol("Teleport"),zat=Symbol("Suspense"),BUe=Symbol("KeepAlive"),Izt=Symbol("BaseTransition"),Qre=Symbol("openBlock"),Pzt=Symbol("createBlock"),Nzt=Symbol("createElementBlock"),jat=Symbol("createVNode"),Vat=Symbol("createElementVNode"),Pxe=Symbol("createCommentVNode"),Uat=Symbol("createTextVNode"),Hat=Symbol("createStaticVNode"),yUe=Symbol("resolveComponent"),CUe=Symbol("resolveDynamicComponent"),Jat=Symbol("resolveDirective"),aPn=Symbol("resolveFilter"),qat=Symbol("withDirectives"),Kat=Symbol("renderList"),Rzt=Symbol("renderSlot"),Lzt=Symbol("createSlots"),eHe=Symbol("toDisplayString"),vUe=Symbol("mergeProps"),Xat=Symbol("normalizeClass"),Yat=Symbol("normalizeStyle"),Bxe=Symbol("normalizeProps"),Nxe=Symbol("guardReactiveProps"),Qat=Symbol("toHandlers"),rat=Symbol("camelize"),lPn=Symbol("capitalize"),iat=Symbol("toHandlerKey"),bUe=Symbol("setBlockTracking"),$at=Symbol("pushScopeId"),Zat=Symbol("popScopeId"),elt=Symbol("withCtx"),SUe=Symbol("unref"),xUe=Symbol("isRef"),tlt=Symbol("withMemo"),Mzt=Symbol("isMemoSame"),o4={[gxe]:"Fragment",[cxe]:"Teleport",[zat]:"Suspense",[BUe]:"KeepAlive",[Izt]:"BaseTransition",[Qre]:"openBlock",[Pzt]:"createBlock",[Nzt]:"createElementBlock",[jat]:"createVNode",[Vat]:"createElementVNode",[Pxe]:"createCommentVNode",[Uat]:"createTextVNode",[Hat]:"createStaticVNode",[yUe]:"resolveComponent",[CUe]:"resolveDynamicComponent",[Jat]:"resolveDirective",[aPn]:"resolveFilter",[qat]:"withDirectives",[Kat]:"renderList",[Rzt]:"renderSlot",[Lzt]:"createSlots",[eHe]:"toDisplayString",[vUe]:"mergeProps",[Xat]:"normalizeClass",[Yat]:"normalizeStyle",[Bxe]:"normalizeProps",[Nxe]:"guardReactiveProps",[Qat]:"toHandlers",[rat]:"camelize",[lPn]:"capitalize",[iat]:"toHandlerKey",[bUe]:"setBlockTracking",[$at]:"pushScopeId",[Zat]:"popScopeId",[elt]:"withCtx",[SUe]:"unref",[xUe]:"isRef",[tlt]:"withMemo",[Mzt]:"isMemoSame"};function Fzt(o){Object.getOwnPropertySymbols(o).forEach(n=>{o4[n]=o[n]})}var fk={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function Ozt(o,n=fk){return{type:0,children:o,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:n}}function yxe(o,n,i,l,p,m,g,b=!1,T=!1,I=!1,R=fk){return o&&(b?(o.helper(Qre),o.helper(d0e(o.inSSR,I))):o.helper(f0e(o.inSSR,I)),g&&o.helper(qat)),{type:13,tag:n,props:i,children:l,patchFlag:p,dynamicProps:m,directives:g,isBlock:b,disableTracking:T,isComponent:I,loc:R}}function Rxe(o,n=fk){return{type:17,loc:n,elements:o}}function jO(o,n=fk){return{type:15,loc:n,properties:o}}function nE(o,n){return{type:16,loc:fk,key:y1(o)?$g(o,!0):o,value:n}}function $g(o,n=!1,i=fk,l=0){return{type:4,loc:i,content:o,isStatic:n,constType:n?3:l}}function xyr(o,n){return{type:5,loc:n,content:y1(o)?$g(o,!1,n):o}}function rM(o,n=fk){return{type:8,loc:n,children:o}}function HD(o,n=[],i=fk){return{type:14,loc:i,callee:o,arguments:n}}function p0e(o,n=void 0,i=!1,l=!1,p=fk){return{type:18,params:o,returns:n,newline:i,isSlot:l,loc:p}}function oat(o,n,i,l=!0){return{type:19,test:o,consequent:n,alternate:i,newline:l,loc:fk}}function cPn(o,n,i=!1){return{type:20,index:o,value:n,isVNode:i,loc:fk}}function uPn(o){return{type:21,body:o,loc:fk}}function Eyr(o){return{type:22,elements:o,loc:fk}}function Dyr(o,n,i){return{type:23,test:o,consequent:n,alternate:i,loc:fk}}function Tyr(o,n){return{type:24,left:o,right:n,loc:fk}}function Ayr(o){return{type:25,expressions:o,loc:fk}}function kyr(o){return{type:26,returns:o,loc:fk}}function f0e(o,n){return o||n?jat:Vat}function d0e(o,n){return o||n?Pzt:Nzt}function nlt(o,{helper:n,removeHelper:i,inSSR:l}){o.isBlock||(o.isBlock=!0,i(f0e(l,o.isComponent)),n(Qre),n(d0e(l,o.isComponent)))}function wyr(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}function tHe(o){if(o.__esModule)return o;var n=o.default;if(typeof n=="function"){var i=function l(){if(this instanceof l){var p=[null];p.push.apply(p,arguments);var m=Function.bind.apply(n,p);return new m}return n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(o).forEach(function(l){var p=Object.getOwnPropertyDescriptor(o,l);Object.defineProperty(i,l,p.get?p:{enumerable:!0,get:function(){return o[l]}})}),i}var rlt={};Object.defineProperty(rlt,"__esModule",{value:!0});var bwn={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};function Iyr(o){if(o&&o.annexB!=null&&o.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");let n={};for(let i of Object.keys(bwn))n[i]=o&&o[i]!=null?o[i]:bwn[i];return n}var n0e=class{constructor(n,i){this.token=void 0,this.preserveSpace=void 0,this.token=n,this.preserveSpace=!!i}},Gb={brace:new n0e("{"),j_oTag:new n0e("<tag"),j_cTag:new n0e("</tag"),j_expr:new n0e("<tag>...</tag>",!0)};Gb.template=new n0e("`",!0);var Jy=!0,Id=!0,sGt=!0,$Ve=!0,jre=!0,Pyr=!0,sat=class{constructor(n,i={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=n,this.keyword=i.keyword,this.beforeExpr=!!i.beforeExpr,this.startsExpr=!!i.startsExpr,this.rightAssociative=!!i.rightAssociative,this.isLoop=!!i.isLoop,this.isAssign=!!i.isAssign,this.prefix=!!i.prefix,this.postfix=!!i.postfix,this.binop=i.binop!=null?i.binop:null,this.updateContext=null}},Wzt=new Map;function d0(o,n={}){n.keyword=o;let i=H_(o,n);return Wzt.set(o,i),i}function tM(o,n){return H_(o,{beforeExpr:Jy,binop:n})}var uUe=-1,zee=[],Gzt=[],zzt=[],jzt=[],Vzt=[],Uzt=[];function H_(o,n={}){var i,l,p,m;return++uUe,Gzt.push(o),zzt.push((i=n.binop)!=null?i:-1),jzt.push((l=n.beforeExpr)!=null?l:!1),Vzt.push((p=n.startsExpr)!=null?p:!1),Uzt.push((m=n.prefix)!=null?m:!1),zee.push(new sat(o,n)),uUe}function LC(o,n={}){var i,l,p,m;return++uUe,Wzt.set(o,uUe),Gzt.push(o),zzt.push((i=n.binop)!=null?i:-1),jzt.push((l=n.beforeExpr)!=null?l:!1),Vzt.push((p=n.startsExpr)!=null?p:!1),Uzt.push((m=n.prefix)!=null?m:!1),zee.push(new sat("name",n)),uUe}var Nyr={bracketL:H_("[",{beforeExpr:Jy,startsExpr:Id}),bracketHashL:H_("#[",{beforeExpr:Jy,startsExpr:Id}),bracketBarL:H_("[|",{beforeExpr:Jy,startsExpr:Id}),bracketR:H_("]"),bracketBarR:H_("|]"),braceL:H_("{",{beforeExpr:Jy,startsExpr:Id}),braceBarL:H_("{|",{beforeExpr:Jy,startsExpr:Id}),braceHashL:H_("#{",{beforeExpr:Jy,startsExpr:Id}),braceR:H_("}"),braceBarR:H_("|}"),parenL:H_("(",{beforeExpr:Jy,startsExpr:Id}),parenR:H_(")"),comma:H_(",",{beforeExpr:Jy}),semi:H_(";",{beforeExpr:Jy}),colon:H_(":",{beforeExpr:Jy}),doubleColon:H_("::",{beforeExpr:Jy}),dot:H_("."),question:H_("?",{beforeExpr:Jy}),questionDot:H_("?."),arrow:H_("=>",{beforeExpr:Jy}),template:H_("template"),ellipsis:H_("...",{beforeExpr:Jy}),backQuote:H_("`",{startsExpr:Id}),dollarBraceL:H_("${",{beforeExpr:Jy,startsExpr:Id}),templateTail:H_("...`",{startsExpr:Id}),templateNonTail:H_("...${",{beforeExpr:Jy,startsExpr:Id}),at:H_("@"),hash:H_("#",{startsExpr:Id}),interpreterDirective:H_("#!..."),eq:H_("=",{beforeExpr:Jy,isAssign:$Ve}),assign:H_("_=",{beforeExpr:Jy,isAssign:$Ve}),slashAssign:H_("_=",{beforeExpr:Jy,isAssign:$Ve}),xorAssign:H_("_=",{beforeExpr:Jy,isAssign:$Ve}),moduloAssign:H_("_=",{beforeExpr:Jy,isAssign:$Ve}),incDec:H_("++/--",{prefix:jre,postfix:Pyr,startsExpr:Id}),bang:H_("!",{beforeExpr:Jy,prefix:jre,startsExpr:Id}),tilde:H_("~",{beforeExpr:Jy,prefix:jre,startsExpr:Id}),doubleCaret:H_("^^",{startsExpr:Id}),doubleAt:H_("@@",{startsExpr:Id}),pipeline:tM("|>",0),nullishCoalescing:tM("??",1),logicalOR:tM("||",1),logicalAND:tM("&&",2),bitwiseOR:tM("|",3),bitwiseXOR:tM("^",4),bitwiseAND:tM("&",5),equality:tM("==/!=/===/!==",6),lt:tM("</>/<=/>=",7),gt:tM("</>/<=/>=",7),relational:tM("</>/<=/>=",7),bitShift:tM("<</>>/>>>",8),bitShiftL:tM("<</>>/>>>",8),bitShiftR:tM("<</>>/>>>",8),plusMin:H_("+/-",{beforeExpr:Jy,binop:9,prefix:jre,startsExpr:Id}),modulo:H_("%",{binop:10,startsExpr:Id}),star:H_("*",{binop:10}),slash:tM("/",10),exponent:H_("**",{beforeExpr:Jy,binop:11,rightAssociative:!0}),_in:d0("in",{beforeExpr:Jy,binop:7}),_instanceof:d0("instanceof",{beforeExpr:Jy,binop:7}),_break:d0("break"),_case:d0("case",{beforeExpr:Jy}),_catch:d0("catch"),_continue:d0("continue"),_debugger:d0("debugger"),_default:d0("default",{beforeExpr:Jy}),_else:d0("else",{beforeExpr:Jy}),_finally:d0("finally"),_function:d0("function",{startsExpr:Id}),_if:d0("if"),_return:d0("return",{beforeExpr:Jy}),_switch:d0("switch"),_throw:d0("throw",{beforeExpr:Jy,prefix:jre,startsExpr:Id}),_try:d0("try"),_var:d0("var"),_const:d0("const"),_with:d0("with"),_new:d0("new",{beforeExpr:Jy,startsExpr:Id}),_this:d0("this",{startsExpr:Id}),_super:d0("super",{startsExpr:Id}),_class:d0("class",{startsExpr:Id}),_extends:d0("extends",{beforeExpr:Jy}),_export:d0("export"),_import:d0("import",{startsExpr:Id}),_null:d0("null",{startsExpr:Id}),_true:d0("true",{startsExpr:Id}),_false:d0("false",{startsExpr:Id}),_typeof:d0("typeof",{beforeExpr:Jy,prefix:jre,startsExpr:Id}),_void:d0("void",{beforeExpr:Jy,prefix:jre,startsExpr:Id}),_delete:d0("delete",{beforeExpr:Jy,prefix:jre,startsExpr:Id}),_do:d0("do",{isLoop:sGt,beforeExpr:Jy}),_for:d0("for",{isLoop:sGt}),_while:d0("while",{isLoop:sGt}),_as:LC("as",{startsExpr:Id}),_assert:LC("assert",{startsExpr:Id}),_async:LC("async",{startsExpr:Id}),_await:LC("await",{startsExpr:Id}),_from:LC("from",{startsExpr:Id}),_get:LC("get",{startsExpr:Id}),_let:LC("let",{startsExpr:Id}),_meta:LC("meta",{startsExpr:Id}),_of:LC("of",{startsExpr:Id}),_sent:LC("sent",{startsExpr:Id}),_set:LC("set",{startsExpr:Id}),_static:LC("static",{startsExpr:Id}),_using:LC("using",{startsExpr:Id}),_yield:LC("yield",{startsExpr:Id}),_asserts:LC("asserts",{startsExpr:Id}),_checks:LC("checks",{startsExpr:Id}),_exports:LC("exports",{startsExpr:Id}),_global:LC("global",{startsExpr:Id}),_implements:LC("implements",{startsExpr:Id}),_intrinsic:LC("intrinsic",{startsExpr:Id}),_infer:LC("infer",{startsExpr:Id}),_is:LC("is",{startsExpr:Id}),_mixins:LC("mixins",{startsExpr:Id}),_proto:LC("proto",{startsExpr:Id}),_require:LC("require",{startsExpr:Id}),_satisfies:LC("satisfies",{startsExpr:Id}),_keyof:LC("keyof",{startsExpr:Id}),_readonly:LC("readonly",{startsExpr:Id}),_unique:LC("unique",{startsExpr:Id}),_abstract:LC("abstract",{startsExpr:Id}),_declare:LC("declare",{startsExpr:Id}),_enum:LC("enum",{startsExpr:Id}),_module:LC("module",{startsExpr:Id}),_namespace:LC("namespace",{startsExpr:Id}),_interface:LC("interface",{startsExpr:Id}),_type:LC("type",{startsExpr:Id}),_opaque:LC("opaque",{startsExpr:Id}),name:H_("name",{startsExpr:Id}),string:H_("string",{startsExpr:Id}),num:H_("num",{startsExpr:Id}),bigint:H_("bigint",{startsExpr:Id}),decimal:H_("decimal",{startsExpr:Id}),regexp:H_("regexp",{startsExpr:Id}),privateName:H_("#name",{startsExpr:Id}),eof:H_("eof"),jsxName:H_("jsxName"),jsxText:H_("jsxText",{beforeExpr:!0}),jsxTagStart:H_("jsxTagStart",{startsExpr:!0}),jsxTagEnd:H_("jsxTagEnd"),placeholder:H_("%%",{startsExpr:!0})};function dv(o){return o>=93&&o<=130}function Ryr(o){return o<=92}function LU(o){return o>=58&&o<=130}function pPn(o){return o>=58&&o<=134}function Lyr(o){return jzt[o]}function DGt(o){return Vzt[o]}function Myr(o){return o>=29&&o<=33}function Swn(o){return o>=127&&o<=129}function Fyr(o){return o>=90&&o<=92}function Hzt(o){return o>=58&&o<=92}function Oyr(o){return o>=39&&o<=59}function Wyr(o){return o===34}function Gyr(o){return Uzt[o]}function zyr(o){return o>=119&&o<=121}function jyr(o){return o>=122&&o<=128}function Yre(o){return Gzt[o]}function Jst(o){return zzt[o]}function Vyr(o){return o===57}function aat(o){return o>=24&&o<=25}function Gee(o){return zee[o]}zee[8].updateContext=o=>{o.pop()},zee[5].updateContext=zee[7].updateContext=zee[23].updateContext=o=>{o.push(Gb.brace)},zee[22].updateContext=o=>{o[o.length-1]===Gb.template?o.pop():o.push(Gb.template)},zee[140].updateContext=o=>{o.push(Gb.j_expr,Gb.j_oTag)};function lat(o,n){if(o==null)return{};var i={},l=Object.keys(o),p,m;for(m=0;m<l.length;m++)p=l[m],!(n.indexOf(p)>=0)&&(i[p]=o[p]);return i}var OU=class{constructor(n,i,l){this.line=void 0,this.column=void 0,this.index=void 0,this.line=n,this.column=i,this.index=l}},Cxe=class{constructor(n,i){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=n,this.end=i}};function iM(o,n){let{line:i,column:l,index:p}=o;return new OU(i,l+n,p+n)}var TGt={SyntaxError:"BABEL_PARSER_SYNTAX_ERROR",SourceTypeModuleError:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"},Uyr=(o,n=o.length-1)=>({get(){return o.reduce((i,l)=>i[l],this)},set(i){o.reduce((l,p,m)=>m===n?l[p]=i:l[p],this)}}),Hyr=(o,n,i)=>Object.keys(i).map(l=>[l,i[l]]).filter(([,l])=>!!l).map(([l,p])=>[l,typeof p=="function"?{value:p,enumerable:!1}:typeof p.reflect=="string"?Object.assign({},p,Uyr(p.reflect.split("."))):p]).reduce((l,[p,m])=>Object.defineProperty(l,p,Object.assign({configurable:!0},m)),Object.assign(new o,n)),Jyr={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:TGt.SourceTypeModuleError},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:TGt.SourceTypeModuleError}},xwn={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},AGt=({type:o,prefix:n})=>o==="UpdateExpression"?xwn.UpdateExpression[String(n)]:xwn[o],qyr={AccessorIsGenerator:({kind:o})=>`A ${o}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitInUsingBinding:"'await' is not allowed to be used as a name in 'using' declarations.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:o})=>`Missing initializer in ${o} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:o})=>`\`${o}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:o,exportName:n})=>`A string literal cannot be used as an exported binding without \`from\`.
54326
54330
  - Did you mean \`export { '${o}' as '${n}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:o})=>`'${o==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:o})=>`Unsyntactic ${o==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportBindingIsString:({importName:o})=>`A string literal cannot be used as an imported binding.
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-20230807185908",
5
+ "version": "0.0.0-dev-20230810090440",
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-20230807185908",
36
- "@pandacss/extension-shared": "0.0.0-dev-20230807185908",
37
- "@pandacss/extractor": "0.0.0-dev-20230807185908",
38
- "@pandacss/parser": "0.0.0-dev-20230807185908",
39
- "@pandacss/node": "0.0.0-dev-20230807185908",
40
- "@pandacss/shared": "0.0.0-dev-20230807185908",
41
- "@pandacss/token-dictionary": "0.0.0-dev-20230807185908",
42
- "@pandacss/types": "0.0.0-dev-20230807185908"
35
+ "@pandacss/core": "0.0.0-dev-20230810090440",
36
+ "@pandacss/extension-shared": "0.0.0-dev-20230810090440",
37
+ "@pandacss/extractor": "0.0.0-dev-20230810090440",
38
+ "@pandacss/node": "0.0.0-dev-20230810090440",
39
+ "@pandacss/parser": "0.0.0-dev-20230810090440",
40
+ "@pandacss/shared": "0.0.0-dev-20230810090440",
41
+ "@pandacss/token-dictionary": "0.0.0-dev-20230810090440",
42
+ "@pandacss/types": "0.0.0-dev-20230810090440"
43
43
  },
44
44
  "dependencies": {
45
45
  "fast-glob": "^3.3.1"