@pandacss/language-server 0.0.0-dev-20230830225324 → 0.0.0-dev-20230901162735

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 +5 -5
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -30727,9 +30727,9 @@ ${Mt}`}cn.exports={isPragma:Ft,hasPragma:T,insertPragma:y}}}),_v=Oo({"src/langua
30727
30727
  ${r.type!=="rule"&&l>0?`
30728
30728
  `:""}${" ".repeat(n)}`),Ubn(i,n+1)})}function nVe(){return r=>{Ubn(r),r.first&&(r.first.raws.before="")}}nVe.postcssPlugin="panda-prettify";var tsr=[":link",":visited",":focus-within",":focus",":focus-visible",":hover",":active"],Nbn=r=>tsr.findIndex(i=>r.trim().includes(i))+1;function i7t(){let r=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,D=g.selectors.length?g.selectors[0]:g.selector;return Nbn(b)-Nbn(D)}),n.nodes=[...i,...l,...p],n.nodes.forEach(m=>{"nodes"in m&&r(m)})};return r}i7t.postcssPlugin="panda-sort-css";var Hbn=/(!?\(\s*min(-device-)?-width)(.|\n)+\(\s*max(-device)?-width/i,nsr=/\(\s*min(-device)?-width/i,Jbn=/(!?\(\s*max(-device)?-width)(.|\n)+\(\s*min(-device)?-width/i,rsr=/\(\s*max(-device)?-width/i,J8t=Aet(Hbn,Jbn,nsr),Rbn=Aet(Jbn,Hbn,rsr),qbn=/(!?\(\s*min(-device)?-height)(.|\n)+\(\s*max(-device)?-height/i,isr=/\(\s*min(-device)?-height/i,Kbn=/(!?\(\s*max(-device)?-height)(.|\n)+\(\s*min(-device)?-height/i,osr=/\(\s*max(-device)?-height/i,q8t=Aet(qbn,Kbn,isr),Lbn=Aet(Kbn,qbn,osr),Mbn=/print/i,Fbn=/^print$/i,eVe=Number.MAX_VALUE;function Obn(r){let n=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/.exec(r);if(n===null&&(J8t(r)||q8t(r))&&(n=/(\d)/.exec(r)),n==="0")return 0;if(n===null)return eVe;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 Aet(r,n,i){return function(l){return r.test(l)?!0:n.test(l)?!1:i.test(l)}}function ssr(r,n){let i=Mbn.test(r),l=Fbn.test(r),p=Mbn.test(n),m=Fbn.test(n);return i&&p?!l&&m?1:l&&!m?-1:r.localeCompare(n):i?1:p?-1:null}function asr(r={}){let{unitlessMqAlwaysFirst:n}=r;return function(l,p){let m=ssr(l,p);if(m!==null)return m;let g=J8t(l)||q8t(l),b=Rbn(l)||Lbn(l),D=J8t(p)||q8t(p),I=Rbn(p)||Lbn(p);if(n&&(!g&&!b||!D&&!I))return!g&&!b&&!D&&!I?l.localeCompare(p):!D&&!I?1:-1;{if(g&&I)return-1;if(b&&D)return 1;let R=Obn(l),V=Obn(p);return R===eVe&&V===eVe?l.localeCompare(p):R===eVe?1:V===eVe?-1:R>V?b?-1:1:R<V?b?1:-1:l.localeCompare(p)}}}var lsr=asr();function o7t(){let r=n=>{n.nodes.sort((i,l)=>H_({a:i,b:l}).with({a:{type:"atrule",name:"media"},b:{type:"atrule",name:"media"}},({a:p,b:m})=>lsr(p.params,m.params)).with({a:{type:"atrule",name:"media"},b:FS.any},()=>1).with({a:FS.any,b:{type:"atrule",name:"media"}},()=>-1).otherwise(()=>0)),n.nodes.forEach(i=>{"nodes"in i&&r(i)})};return r}o7t.postcssPlugin="panda-sort-mq";function ket(r,n={}){let{minify:i=!1}=n,l=[(0,Tet.default)(),r7t(),o7t(),(0,$8t.default)(),(0,e7t.default)(),i7t(),(0,Z8t.default)()];i?l.push((0,n7t.default)(),(0,t7t.default)()):l.push(nVe());let{css:p}=hB(l).process(r);return p}function csr(r,n={}){let{token:i}=n,{css:l}=hB([esr(i)]).process(r);return l}function wet(r,n={}){let{minify:i=!1}=n,l=[(0,Tet.default)(),r7t(),o7t(),(0,$8t.default)(),(0,e7t.default)(),i7t(),(0,Z8t.default)()];i?l.push((0,n7t.default)(),(0,t7t.default)()):l.push(nVe());let{css:p}=hB(l).process(r);return p}function Xbn(r){let{css:n}=hB([(0,Tet.default)(),nVe()]).process(r);return n}function Ybn(r){let{css:n}=hB([nVe()]).process(r);return n}function Iet(r,n){let i=tVe(r),l=tVe(n),p=i.nodes.filter(hre({type:"atrule",name:"layer",params:"utilities"}));return l.walkAtRules("layer",m=>{m.params==="utilities"&&p.forEach(g=>{m.append(g.nodes)})}),wet(l)}var YM={classNames:new Map,styles:new Map,nodes:new Map,slots:new Map},s7t=class{constructor(r={},n){this.recipes=r,this.context=n,this.assignRules()}rules=new Map;getPropKey=(r,n,i)=>`${r} (${n} = ${i})`;get separator(){return this.context.utility.separator??"_"}getClassName=(r,n,i)=>`${r}--${n}${this.separator}${i}`;save=()=>{for(let[r,n]of Object.entries(this.recipes))if(LSe(n)){let i=qze(n),l=new Map;Object.entries(i).forEach(([p,m])=>{let g=this.getSlotKey(r,p);this.normalize(g,m),l.set(g,m)}),this.assignRecipe(r,n),YM.slots.set(r,l)}else this.assignRecipe(r,this.normalize(r,n))};assignRecipe=(r,n)=>{let i=Object.keys(n.variants??{}),l=n.jsx??[t6(r)],p=Jze(l);YM.nodes.set(r,{...this.getNames(r),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=>F4t(m,i),props:i})};getSlotKey=(r,n)=>`${r}__${n}`;assignRules=()=>{if(this.context)for(let[r,n]of Object.entries(this.recipes))LSe(n)?n.slots.forEach(i=>{let l=this.getSlotKey(r,i);this.rules.set(l,this.createRule(l))}):this.rules.set(r,this.createRule(r))};isEmpty=()=>YM.nodes.size===0;getNames=zb(r=>({baseName:r,upperName:t6(r),dashName:Uze(r),jsxName:t6(r)}));getRecipe=zb(r=>YM.nodes.get(r));getConfig=zb(r=>this.recipes[r]);find=zb(r=>this.details.find(n=>n.match.test(r)));filter=zb(r=>this.details.filter(n=>n.match.test(r)));get details(){return Array.from(YM.nodes.values())}splitProps=(r,n)=>{let i=this.details.find(l=>l.baseName===r);return i?i.splitProps(n):[{},n]};normalize=(r,n)=>{let{className:i,jsx:l=[t6(r)],base:p={},variants:m={},defaultVariants:g={},description:b="",compoundVariants:D=[]}=n,I={...n,jsx:l,className:i,description:b,base:{},variants:{},defaultVariants:g,compoundVariants:D};I.base=this.serialize(p),YM.styles.set(r,I.base),YM.classNames.set(r,i);for(let[R,V]of Object.entries(m))for(let[X,ue]of Object.entries(V)){let De=this.getPropKey(r,R,X),we=this.getClassName(n.className,R,X),We=this.serialize(ue);YM.styles.set(De,We),YM.classNames.set(De,we),(0,Qbn.default)(I.variants,{[R]:{[X]:We}})}return I};serialize=r=>this.context?Q8t(r,this.context):r;getTransform=r=>(n,i)=>{if(i==="__ignore__")return{layer:"_base",className:YM.classNames.get(r),styles:YM.styles.get(r)??{}};let l=this.getPropKey(r,n,i);return{className:YM.classNames.get(l),styles:YM.styles.get(l)??{}}};createRule=r=>{if(!this.context)throw new Error("Can't create a rule without a context");let n=new Det({...this.context,transform:this.getTransform(r)});return n.layer=this.context.layers.recipes,n};check=(r,n,i)=>{let{defaultVariants:l={},base:p={}}=r,m=Object.assign({[n]:"__ignore__"},l,i),g=Object.keys(m);return{styles:m,isEmpty:g.length===1&&Object.keys(p).length===0}};process=(r,n)=>{let{styles:i}=n,l=this.getRecipe(r);if(!l)return;let p=YM.slots.get(r);if(p)p.forEach((m,g)=>{let{isEmpty:b,styles:D}=this.check(m,g,i);if(b)return;this.rules.get(g)?.process({styles:D})});else{let{isEmpty:m,styles:g}=this.check(l.config,l.config.className,i);if(m)return;this.rules.get(r)?.process({styles:g})}};toCss=()=>this.context?this.context.root.toString():""},usr=/\s&/g;function Zbn(r){let n=new Set;(0,$bn.default)(l=>{l.each(p=>{let m=H8t(p.toString());H_(m).with({type:"parent-nesting"},()=>{n.add(p.toString().replace(usr,"").trim())}).otherwise(()=>{})})}).processSync(r);let i=Array.from(n).join(", ").trim();return n.size>1?`:where(${i})`:i}var Zhi=xet(),V8t=(r,n)=>r.breakpoints.includes(n)?n:`_${n}`;function eSn(r){let{css:n=[],recipes:i={}}=r,l={css:[],recipes:[]};return p=>(n.forEach(m=>{let g=m.conditions||[];m.responsive&&g.push(...p.breakpoints),Object.entries(m.properties).forEach(([b,D])=>{D.flatMap(R=>R==="*"?p.getPropertyKeys(b):R).forEach(R=>{let V=g.reduce((X,ue)=>({base:R,...X,[V8t(p,ue)]:R}),{});l.css.push({[b]:g.length?V:R})})})}),Object.entries(i).forEach(([m,g])=>{g.forEach(b=>{let{__base:D,...I}=p.getRecipeKeys(m),R=b==="*",{conditions:V=[],responsive:X=R,...ue}=R?I:b;if(X&&V.push(...p.breakpoints),D){let De=V.reduce((we,We)=>({base:D,...we,[V8t(p,We)]:D}),{});l.recipes.push({[m]:V.length?De:D})}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,[V8t(p,Rt)]:Ne}),{});l.recipes.push({[m]:{[De]:V.length?Me:Ne}})})})})}),l)}var tSn=class{constructor(r,n){this.context=r,this.options=n;let{recipes:i={},slotRecipes:l={}}=n??{},p=Object.assign({},i,l);this.recipes=new s7t(p,r)}recipes;processGlobalCss=r=>{let{conditions:n,utility:i}=this.context,l=qor(r,{conditions:n,utility:i}),p=hB.atRule({name:"layer",params:this.context.layers.base,nodes:[l]});this.context.root.append(p)};processSelectorObject(r,n){let i=t5(n),{nodes:l}=tVe(i);if(l.length===0)return;let p=hB.rule({selector:r,nodes:i.root.nodes});this.context.root.append(p)}processObject(r){let i=t5(r).root;this.context.root.append(i)}processAtomic=(...r)=>{let n=new Det(this.context);r.forEach(i=>{i&&n.process({styles:i})})};processStyleProps=r=>{let{css:n,...i}=r;this.processAtomic(i,n)};processCompoundVariants=r=>{r.compoundVariants?.forEach(n=>{if(LSe(r))for(let i of Object.values(n.css))this.processAtomic(i);else this.processAtomic(n.css)})};processRecipe=(r,n,i)=>{this.recipes.process(r,{styles:i}),this.processCompoundVariants(n)};processAtomicSlotRecipe=r=>{let n=qze(r);for(let i of Object.values(n))this.processAtomicRecipe(i)};processAtomicRecipe=r=>{let{base:n={},variants:i={},compoundVariants:l=[]}=r;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:r=!1,minify:n}={})=>{try{let{conditions:{breakpoints:i},utility:l}=this.context;i.expandScreenAtRule(this.context.root),csr(this.context.root,{token:l.getToken});let p=this.context.root.toString();return r&&(p=ket(p,{minify:n})),this.options?.content&&(p=`${this.options.content}
30729
30729
 
30730
- ${p}`),r?wet(p,{minify:n}):p}catch(i){throw i instanceof o$t&&(P1.error("sheet",i.message),i.plugin&&P1.error("sheet",`By plugin: ${i.plugin}:`),i.source&&(P1.error("sheet",`Line ${i.line}:${i.column}, in:`),P1.error("sheet",i.source))),i}};append=(...r)=>{this.context.root.append(...r)};prepend=(...r)=>{this.context.root.prepend(...r)}},nSn=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(r){let{tokens:n,config:i={},separator:l,prefix:p,shorthands:m}=r;this.tokens=n,this.config=i,l&&(this.separator=l),p&&(this.prefix=p),m&&this.assignShorthands(),this.assignColorPaletteProperty(),this.assignProperties(),this.assignPropertyTypes()}register=(r,n)=>{this.assignProperty(r,n),this.assignPropertyType(r,n),this.config[r]=n};assignShorthands=()=>{for(let[r,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,r)})}};assignColorPaletteProperty=()=>{let r=this.tokens.colorPalettes;this.config.colorPalette={values:Object.keys(r),transform(n){return r[n]}}};resolveShorthand=r=>this.shorthands.get(r)??r;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=(r,n)=>`(${r} = ${n})`;hash=(r,n)=>`${r}${this.separator}${n}`;getPropertyValues=(r,n)=>{let{values:i}=r,l=p=>{let m=n?.(p);return m?{[m]:m}:void 0};return X7(i)?l?.(i)??this.tokens.getValue(i)??{}:Array.isArray(i)?i.reduce((p,m)=>(p[m]=m,p),{}):k4t(i)?i(n?l:this.getToken.bind(this)):i};getToken=r=>this.tokens.get(r);normalize=r=>r;assignProperty=(r,n)=>{let i=this.normalize(n);if(this.setTransform(r,i?.transform),!i)return;this.configs.set(r,i);let l=this.getPropertyValues(i);if(l)for(let[p,m]of Object.entries(l)){let g=this.getPropKey(r,p);this.setStyles(r,m,p,g),this.setClassName(r,p)}};assignProperties=()=>{for(let[r,n]of Object.entries(this.config))n&&this.assignProperty(r,n)};getPropertyKeys=r=>{let n=this.propertyKeys.get(r);return n?Array.from(n):[]};assignPropertyType=(r,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(r,new Set([`type:${l.type}`]));return}if(l){let m=new Set(Object.keys(l));this.types.set(r,m),this.propertyKeys.set(r,m)}let p=this.types.get(r)??new Set;i.property&&this.types.set(r,p.add(`CssProperties["${i.property}"]`))};assignPropertyTypes=()=>{for(let[r,n]of Object.entries(this.config))n&&this.assignPropertyType(r,n)};getTypes=()=>{let r=new Map;for(let[n,i]of this.types.entries()){if(i.size===0){r.set(n,["string"]);continue}let l=Array.from(i).map(p=>p.startsWith("CssProperties")?p:p.startsWith("type:")?p.replace("type:",""):JSON.stringify(p));r.set(n,l)}return r};defaultTransform=zb((r,n)=>{if(n.startsWith("--")){let l=this.tokens.getTokenVar(r);r=typeof l=="string"?l:r}return{[n]:r}});setTransform=(r,n)=>{let l=n??(p=>this.defaultTransform(p,r));return this.transforms.set(r,l),this};setStyles=(r,n,i,l)=>{l=l??this.getPropKey(r,n);let p=b=>this.defaultTransform(b,r),g=(this.transforms.get(r)??p)(n,{token:this.getToken.bind(this),raw:i});return this.styles.set(l,g??{}),this};formatClassName=r=>[this.prefix,r].filter(Boolean).join("-");setClassName=(r,n)=>{let i=this.getPropKey(r,n),l=this.configs.get(r),p;return!l||!l.className?p=this.hash(dCe(r),n):p=this.hash(l.className,n),this.classNames.set(i,p),this};isProperty=r=>this.configs.has(r);getOrCreateClassName=(r,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)})(r,n);getOrCreateStyle=(r,n)=>{let i=this.getPropKey(r,n);return this.styles.get(i)??this.setStyles(r,n,n,i),this.styles.get(i)};transform=(r,n)=>{if(n==null)return{className:"",styles:{}};let i=this.resolveShorthand(r);return cre({layer:this.configs.get(i)?.layer,className:this.getOrCreateClassName(i,Hze(n)),styles:this.getOrCreateStyle(i,n)})};keys=()=>{let r=Array.from(this.shorthands.keys()),n=Object.keys(this.config);return[...r,...n]};getPropShorthandsMap=()=>{let r=new Map;return this.shorthands.forEach((n,i)=>{let l=r.get(n)??[];l.push(i),r.set(n,l)}),r};getPropShorthands=r=>this.getPropShorthandsMap().get(r)??[]};re();re();var QVe=_d(V8(),1);var jp=_d(V8(),1);re();var afr=_d(SWt(),1),U8=_d(bTn(),1);re();var l5=_d(require("path"),1),xTn=_d(require("os"),1),Gpr=/(^\/\w:\/)|(^\/\w:\\)/,STn=l5.default.parse(process.cwd()).root,ETn=/^\w:/,zpr=xTn.default.platform();function jpr(r){return/\\/.test(r)||ETn.test(r)}function DTn(r){let n=/^\\\\\?\\/.test(r),i=/[^\u0000-\u0080]+/.test(r);return n||i?r:r.replace(/\\/g,"/")}function Vpr(r){let n=typeof r=="string"?r:r.pathname;return n.startsWith("file:")&&(n.startsWith("file://")&&(n=n.slice(7)),Gpr.test(n)&&(n=n.slice(1))),xWt(n)}function TTn(r){return[...r].some(n=>typeof n=="string"&&jpr(n))?l5.default.win32:l5.default}function zre(r,n){return DTn(TTn(n)[r](...n))}function ATn(r,n){return l5.default.posix[r](...[...n].map(i=>typeof i=="string"?DTn(i):i))}function Upr(r){return ATn("parse",arguments)}function Hpr(r){return ATn("extname",arguments)}function Jpr(r){return TTn(arguments).isAbsolute(r)}function qpr(...r){return zre("join",arguments)}function xWt(r){let n=zre("normalize",arguments);return r.startsWith("./")&&!n.startsWith("./")?"./"+n:n}function Kpr(r,n){return zre("relative",arguments)}function Xpr(...r){return zre("resolve",arguments)}function Ypr(r){return zre("dirname",arguments)}function Qpr(r,n){return zre("basename",arguments)}function $pr(r){return zre("format",arguments)}function Zpr(r){return zre("toNamespacedPath",arguments)}function efr(r){return zpr!=="win32"||ETn.test(r)||r.startsWith(STn)||!l5.default.win32.isAbsolute(l5.default.win32.normalize(r))?r:l5.default.win32.join(STn,r)}var EWt={sep:l5.default.posix.sep,delimiter:l5.default.posix.delimiter,parse:Upr,isAbsolute:Jpr,join:qpr,extname:Hpr,normalize:xWt,relative:Kpr,resolve:Xpr,dirname:Ypr,basename:Qpr,format:$pr,toNamespacedPath:Zpr,get posix(){return this},get win32(){return kTn}},kTn={...l5.default.win32,get posix(){return EWt},get win32(){return this}},tfr=l5.default,n0e={...EWt,posix:EWt,win32:kTn,native:tfr,includeDriveLetter:efr,urlToFilename:Vpr};var jTn=require("module"),VTn=require("util"),UTn=_d(LTn(),1),Sst=()=>{let r={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{r.AggregateError=AggregateError}catch{}try{r.FinalizationRegistry=FinalizationRegistry}catch{}try{r.WeakRef=WeakRef}catch{}try{r.BigInt=BigInt}catch{}try{r.Reflect=Reflect}catch{}try{r.WeakMap=WeakMap}catch{}try{r.WeakSet=WeakSet}catch{}try{r.Set=Set}catch{}try{r.Map=Map}catch{}try{r.Uint8Array=Uint8Array}catch{}try{r.BigUint64Array=BigUint64Array}catch{}try{r.BigInt64Array=BigInt64Array}catch{}try{r.Atomics=Atomics}catch{}try{r.SharedArrayBuffer=SharedArrayBuffer}catch{}try{r.WebAssembly=WebAssembly}catch{}try{r.Uint8ClampedArray=Uint8ClampedArray}catch{}try{r.Uint16Array=Uint16Array}catch{}try{r.Uint32Array=Uint32Array}catch{}try{r.Intl=Intl}catch{}try{r.Int8Array=Int8Array}catch{}try{r.Int16Array=Int16Array}catch{}try{r.Int32Array=Int32Array}catch{}try{r.Float32Array=Float32Array}catch{}try{r.Float64Array=Float64Array}catch{}try{r.ArrayBuffer=ArrayBuffer}catch{}try{r.DataView=DataView}catch{}try{r.isFinite=isFinite}catch{}try{r.Promise=Promise}catch{}try{r.Proxy=Proxy}catch{}try{r.Symbol=Symbol}catch{}return r};function Vre(r,n,i){let l={};return[r,n??{},i??{}].forEach(g=>Object.defineProperties(l,Object.getOwnPropertyDescriptors(g))),l}function _st(r,n){let i={};return Object.getOwnPropertyNames(r).forEach(l=>{l in n||Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(r,l))}),i}var HTn=(0,jTn.createRequire)(Ye),lfr=()=>{let r=Sst(),n=Vre(_st(global,r),r,{require:HTn,process,__dirname:i=>n0e.native.normalize(n0e.native.dirname(i)),__filename:i=>n0e.native.normalize(i)});return Object.defineProperties(n,{global:{get(){return n}},globalThis:{get(){return n}}}),n};function cfr(r){let n=0;return{requestAnimationFrame:function(m){let g=new Date().getTime(),b=Math.max(0,16-(g-n)),D=r.setTimeout(function(){m(g+b)},b);return n=g+b,D},cancelAnimationFrame:function(m){clearTimeout(m)}}}var fst;function ufr(r=!1){return fst??(fst=pfr("evaluate against a browser environment",r,"jsdom"))}function pfr(r,n,i=r){try{return HTn(i)}catch{if(n)throw new ReferenceError(`You must install the peer dependency '${i}' in order to ${r} with ts-evaluator`);return}}var ffr=()=>{let{JSDOM:r}=ufr(!0),{window:n}=new r("",{url:"https://example.com"}),i=Sst(),l=cfr(n),p=Vre(_st(n,i),_st(l,n),i);return Object.defineProperties(p,{window:{get(){return p}},globalThis:{get(){return p}}}),p},B1="[return]",ZL="[break]",t4="[continue]",n4="this",r0e="super",dfr=()=>{let r=Sst(),n=Vre(_st(global,r),r,{import:{meta:{url:i=>{let l=n0e.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 JTn(r,n){return n.isDeclaration(r)}function mfr(r,n){return n.isPropertyAccessExpression(r)?!1:"name"in r&&r.name!=null}function qTn(r,n){return r.flags!==n.NodeFlags.Const&&r.flags!==n.NodeFlags.Let}var r4=class extends Error{constructor({node:n,environment:i,message:l}){super(l),Error.captureStackTrace(this,this.constructor),this.node=n,this.environment=i}};function Uee(r){return typeof r=="object"&&r!=null&&r instanceof r4}var hst=class extends r4{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}},KI=class extends r4{constructor({node:n,environment:i,typescript:l,message:p=`Unexpected Node: '${l.SyntaxKind[n.kind]}'`}){super({message:p,node:n,environment:i})}};function _fr(r){var n;let{node:i,evaluate:l,environment:p,typescript:m,throwError:g}=r,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,r):g(new KI({node:b,environment:p,typescript:m}))}function KTn(r,n){let{node:i,typescript:l}=n;if(!l.isExternalModuleNameRelative(r))return r;let p=i.getSourceFile().fileName;return n0e.join(n0e.dirname(p),r)}function gst(r){var n,i,l,p,m;let{node:g,typescript:b,throwError:D,environment:I}=r,R=_fr(r);if(Uee(R))return R;if(R==null)return D(new KI({node:g,environment:I,typescript:b}));let V=ED(g,r.environment,R);if(V!=null&&V.literal!=null)return V.literal;let X=ED(g,r.environment,"require").literal,ue=b.isModuleDeclaration(g)?g:hfr(g,b.SyntaxKind.ModuleDeclaration,b);if(ue==null)return D(new KI({node:g,environment:I,typescript:b}));let De=ue.name.text,we=KTn(De,r);try{let We=(p=(i=(n=r.moduleOverrides)===null||n===void 0?void 0:n[De])!==null&&i!==void 0?i:(l=r.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 Uee(We)?We:D(new hst({node:ue,environment:I,path:we}))}}function dst(r,n,i){var l,p,m,g,b,D;let{node:I,throwError:R,environment:V}=i,X=ED(I,i.environment,"require").literal,ue=KTn(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(D=(b=De[r])!==null&&b!==void 0?b:De.default)!==null&&D!==void 0?D:De}catch(De){return Uee(De)?De:R(new hst({node:I,environment:V,path:ue}))}}function hfr(r,n,i){let l=r;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 GWt(r,n,i,l=new WeakSet){let{typescript:p}=i,m;function g(D,I=0){var R,V,X,ue,De;if(l.has(D))return!1;if(l.add(D),p.isIdentifier(D)){if(D.text===n)return m=D,!0}else{if(p.isShorthandPropertyAssignment(D))return!1;if(p.isPropertyAssignment(D))return!1;if(p.isImportDeclaration(D)){if(D.importClause!=null){if(D.importClause.name!=null&&g(D.importClause.name)){let we=D.moduleSpecifier;if(we!=null&&p.isStringLiteralLike(we))return m=dst(n,we.text,i),!0}else if(D.importClause.namedBindings!=null&&g(D.importClause.namedBindings))return!0}return!1}else if(p.isImportEqualsDeclaration(D)){if(D.name!=null&&g(D.name)){if(p.isIdentifier(D.moduleReference))return m=GWt(D.parent,D.moduleReference.text,i,l),m!=null;if(p.isQualifiedName(D.moduleReference))return!1;{let we=D.moduleReference.expression;if(we!=null&&p.isStringLiteralLike(we))return m=dst(n,we.text,i),!0}}return!1}else if(p.isNamespaceImport(D)){if(g(D.name)){let we=(V=(R=D.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=dst(n,we.text,i),!0)}}else if(p.isNamedImports(D)){for(let we of D.elements)if(g(we))return!0}else if(p.isImportSpecifier(D)){if(g(D.name)){let we=(De=(ue=(X=D.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=dst(n,we.text,i),!0)}}else if(p.isSourceFile(D)){for(let we of D.statements)if(g(we))return!0}else if(p.isVariableStatement(D)){for(let we of D.declarationList.declarations)if(g(we)&&(qTn(D.declarationList,p)||I<1))return!0}else if(p.isBlock(D)){for(let we of D.statements)if(g(we,I+1))return!0}else if(mfr(D,p)&&D.name!=null&&g(D.name))return m=D,!0}return!1}return p.findAncestor(r,D=>g(D))?m:void 0}function MTn(r,n){let i=r;for(;;){if(i=i.parent,i==null)return;if(JTn(i,n)||n.isSourceFile(i))return i}}function gfr(r){return r!=null&&(typeof r=="function"||typeof r=="object")}function FTn(r){return gfr(r)}function zWt(r,n){switch(r){case Function.prototype.bind:case Function.prototype.call:case Function.prototype.apply:return!0}if(n!=null){let i=ED(void 0,n,"Function").literal;switch(r){case i.prototype.bind:case i.prototype.call:case i.prototype.apply:return!0}}return!1}var Vee=class{constructor(n){this.intent=n}construct(n,i){return this.intent(n,i)}};function XTn(r){return typeof r=="object"&&r!=null&&r instanceof Vee}function xst(r,n,i){return XTn(i)?n.throwError(i.construct(r,n)):i}function AWt(r){return r.map(n=>typeof n=="symbol"?n.description:n).join(".")}function OTn({hook:r,item:n,scope:i,policy:l}){function p(m,g){let b=(D,I)=>{if(D!==!1)return XTn(D)||Uee(D)?D:I()};return!FTn(g)||zWt(g)?g:new Proxy(g,{construct(D,I,R){return b(r({kind:"__$$_PROXY_CONSTRUCT",policy:l,newTarget:R,argArray:I,target:D,path:AWt(m)}),()=>Reflect.construct(D,I,R))},apply(D,I,R=[]){return b(r({kind:"__$$_PROXY_APPLY",policy:l,thisArg:I,argArray:R,target:D,path:AWt(m)}),()=>Reflect.apply(D,I,R))},get(D,I,R){let V=[...m,I];return b(r({kind:"__$$_PROXY_GET",policy:l,path:AWt(V),target:D}),()=>{let X=Reflect.get(D,I,R),ue=Reflect.getOwnPropertyDescriptor(g,I);return ue!=null&&ue.configurable===!1&&ue.writable===!1?g[I]:p(V,X)})}})}return FTn(n)?p([i],n):n}function WTn(r,n){switch(r){case"__$$_PROXY_GET":return`get ${n}`;case"__$$_PROXY_APPLY":return`${n}(...)`;case"__$$_PROXY_CONSTRUCT":return`new ${n}(...)`}}var YTn={"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}}},Bfr={...YTn,Math:{random:{__$$_PROXY_APPLY:!0}},Date:{now:{__$$_PROXY_APPLY:!0},__$$_PROXY_CONSTRUCT:(...r)=>r.length===0&&!(r[0]instanceof Date)}};function yfr(r,n){return typeof r==typeof n||typeof r=="function"}function Cfr(r){return typeof r=="function"}function i0e(r,n,i){let l=i.path.split(".");return wWt(r,n,i,l)}function wWt(r,n,i,l){let[p,...m]=l;if(p==null)return!1;let g=r[p];if(g==null)return!1;if(typeof g=="string")return wWt(r,n,i,[g,...m]);if(yfr(g,n))return GTn(g,n,i);{let b=g[i.kind];return b!=null?GTn(b,n,i):wWt(g,n,i,m)}}function GTn(r,n,i){if(Cfr(r)){let l=i;return l.argArray!=null&&r(...l.argArray)===n}else return r===n}function vfr(r){return i0e(Bfr,!0,r)}var Ure=class extends r4{constructor({violation:n,node:i,environment:l,message:p}){super({node:i,environment:l,message:`[${n}]: ${p}`}),this.violation=n}},IWt=class extends Ure{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}},QTn={"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 bfr(r){return i0e(QTn,"read",r)}var Bst=class extends Ure{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 Sfr(r){return i0e(QTn,"write",r)}function xfr(r){return i0e(YTn,!0,r)}var PWt=class extends Ure{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}},$Tn={"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 Efr(r){return i0e($Tn,"exit",r)}var yst=class extends Ure{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 Dfr(r){return i0e($Tn,"spawnChild",r)}var Tfr={"node:console":"console",console:{__$$_PROXY_APPLY:!0}};function Afr(r){return i0e(Tfr,!0,r)}function kfr({policy:r,env:n}){let i=g=>!r.console&&Afr(g)?!1:!r.io.read&&bfr(g)?new Vee((b,D)=>new Bst({...D,node:b,kind:"read"})):!r.io.write&&Sfr(g)?new Vee((b,D)=>new Bst({...D,node:b,kind:"write"})):!r.process.exit&&Efr(g)?new Vee((b,D)=>new yst({...D,node:b,kind:"exit"})):!r.process.exit&&Dfr(g)?new Vee((b,D)=>new yst({...D,node:b,kind:"spawnChild"})):!r.network&&xfr(g)?new Vee((b,D)=>new PWt({...D,node:b,operation:WTn(g.kind,g.path)})):r.deterministic&&vfr(g)?new Vee((b,D)=>new IWt({...D,node:b,operation:WTn(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(D,I,R=[]){let[V]=R;return OTn({policy:r,item:Reflect.apply(D,I,R),scope:V,hook:i})}}):OTn({policy:r,item:b.value,scope:g,hook:i})})));return Object.defineProperties(m,{...p})}function qVe(r,n){let[i]=n.split(".");if(U8.default.has(r.env,i))return r.env;if(r.parentEnv!=null)return qVe(r.parentEnv,n)}function NWt(r){return r.preset!=null?r.preset:r.parentEnv!=null?NWt(r.parentEnv):"NONE"}function ZTn(r,n,i){let l=MTn(r.startingNode,i),p=MTn(n,i);if(l?.pos===p?.pos)return r;if(r.parentEnv!=null)return ZTn(r.parentEnv,n,i)}function ED(r,n,i){let[l]=i.split(".");if(U8.default.has(n.env,l)){let p=U8.default.get(n.env,i);switch(i){case"__dirname":case"__filename":{let m=NWt(n);return(m==="NODE"||m==="NODE_CJS")&&typeof p=="function"&&r!=null?{literal:p(r.getSourceFile().fileName)}:{literal:p}}case"import.meta":{let m=NWt(n);return(m==="NODE_ESM"||m==="BROWSER"||m==="ECMA")&&typeof p=="object"&&p!=null&&typeof p.url=="function"&&r!=null?{literal:{url:p.url(r.getSourceFile().fileName)}}:{literal:p}}default:return{literal:p}}}if(n.parentEnv!=null)return ED(r,n.parentEnv,i)}function cx(r,n,i,...l){return l.some(p=>{let m=ED(r,n,p);return m==null?!1:m.literal===i})}function kWt(r){switch(r){case B1:case ZL:case t4:case n4:case r0e:return!0;default:return!1}}function e_({environment:r,path:n,value:i,reporting:l,node:p,newBinding:m=!1}){let[g]=n.split(".");if(U8.default.has(r.env,g)||m||r.parentEnv==null){if(U8.default.has(r.env,n)&&U8.default.get(r.env,n)===i)return;U8.default.set(r.env,n,i),l.reportBindings!=null&&!kWt(n)&&l.reportBindings({path:n,value:i,node:p})}else{let b=r.parentEnv;for(;b!=null;)if(U8.default.has(b.env,g)){if(U8.default.has(b.env,n)&&U8.default.get(b.env,n)===i)return;U8.default.set(b.env,n,i),l.reportBindings!=null&&!kWt(n)&&l.reportBindings({path:n,value:i,node:p});return}else b.parentEnv==null?(U8.default.set(b.env,n,i),l.reportBindings!=null&&!kWt(n)&&l.reportBindings({path:n,value:i,node:p})):b=b.parentEnv}}function wfr({inputEnvironment:{extra:r,preset:n},startingNode:i,policy:l}){let p;switch(n){case"NONE":p=Vre(r);break;case"ECMA":p=Vre(Sst(),r);break;case"NODE":case"NODE_CJS":p=Vre(lfr(),r);break;case"NODE_ESM":p=Vre(dfr(),r);break;case"BROWSER":p=Vre(ffr(),r);break;default:p={};break}return{parentEnv:void 0,preset:n,startingNode:i,env:kfr({policy:l,env:p})}}function eAn(r,n){return r.kind===n.SyntaxKind.TrueKeyword||r.kind===n.SyntaxKind.FalseKeyword}function tAn(r,n){return r.kind===n.SyntaxKind.NullKeyword}function Ifr(r,n){var i;return n.isStringLiteralLike(r)?{success:!0,value:r.text}:eAn(r,n)?{success:!0,value:r.kind===n.SyntaxKind.TrueKeyword}:n.isRegularExpressionLiteral(r)?{success:!0,value:new Function(`return ${r.text}`)()}:n.isNumericLiteral(r)?{success:!0,value:Number(r.text)}:!((i=n.isBigIntLiteral)===null||i===void 0)&&i.call(n,r)?{success:!0,value:BigInt(r.text)}:n.isIdentifier(r)&&r.text==="Infinity"?{success:!0,value:1/0}:n.isIdentifier(r)&&r.text==="NaN"?{success:!0,value:NaN}:n.isIdentifier(r)&&r.text==="null"?{success:!0,value:null}:n.isIdentifier(r)&&r.text==="undefined"?{success:!0,value:void 0}:tAn(r,n)?{success:!0,value:null}:{success:!1}}var RWt=class extends Ure{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 nAn(r,n){let{node:i,environment:l,evaluate:p,stack:m,typescript:g,throwError:b,getCurrentError:D}=r,I=n??(i.initializer==null?void 0:p.expression(i.initializer,r));if(D()==null){if(I==null&&!g.isIdentifier(i.name))return b(new r4({node:i,environment:l}));p.nodeWithArgument(i.name,I,r),D()==null&&m.push(I)}}function rAn(r,n){return r.kind===n.SyntaxKind.ThisKeyword}function Est(r,n){return r.kind===n.SyntaxKind.SuperKeyword}function cxe(r){var n,i;let{node:l,evaluate:p,typescript:m}=r;if(m.isIdentifier(l))return l.text;if(!((n=m.isPrivateIdentifier)===null||n===void 0)&&n.call(m,l))return l.text;if(rAn(l,m))return n4;if(Est(l,m))return r0e;if(m.isParenthesizedExpression(l))return cxe({...r,node:l.expression});if(!((i=m.isTypeAssertionExpression)===null||i===void 0)&&i.call(m,l)||!("isTypeAssertionExpression"in m)&&m.isTypeAssertion(l))return cxe({...r,node:l.expression});if(m.isPropertyAccessExpression(l)){let g=cxe({...r,node:l.expression});g==null&&(g=p.expression(l.expression,r));let b=cxe({...r,node:l.name});return b==null&&(b=p.expression(l.name,r)),g==null||b==null?void 0:`${g}.${b}`}else if(m.isElementAccessExpression(l)){let g=cxe({...r,node:l.expression});g==null&&(g=p.expression(l.expression,r));let b=p.expression(l.argumentExpression,r);return g==null||b==null?void 0:`${g}.${b}`}else if(m.isFunctionDeclaration(l))return l.name==null?void 0:l.name.text}var LWt=class extends r4{constructor({node:n,environment:i,message:l="'No leftValue could be determined'"}){super({message:l,environment:i,node:n})}};function mst(r,n){var i;return n.isParenthesizedExpression(r)||n.isAsExpression(r)||!((i=n.isTypeAssertionExpression)===null||i===void 0)&&i.call(n,r)||!("isTypeAssertionExpression"in n)&&n.isTypeAssertion(r)?mst(r.expression,n):r}function iAn(r){return r!=null&&typeof r=="object"&&"kind"in r&&"flags"in r&&"pos"in r&&"end"in r}function Pfr(r){var n;let{node:i,environment:l,evaluate:p,logger:m,throwError:g,typeChecker:b,typescript:D,getCurrentError:I}=r,R=p.expression(i.left,r);if(I()!=null)return;let V=p.expression(i.right,r);if(I()!=null)return;let X=cxe({...r,node:i.left}),ue=i.operatorToken.kind;switch(ue){case D.SyntaxKind.AmpersandToken:return R&V;case D.SyntaxKind.AmpersandAmpersandToken:return R&&V;case D.SyntaxKind.AmpersandEqualsToken:case D.SyntaxKind.CaretEqualsToken:case D.SyntaxKind.BarEqualsToken:case D.SyntaxKind.MinusEqualsToken:case D.SyntaxKind.PlusEqualsToken:case D.SyntaxKind.PercentEqualsToken:case D.SyntaxKind.SlashEqualsToken:case D.SyntaxKind.AsteriskEqualsToken:case D.SyntaxKind.AsteriskAsteriskEqualsToken:case D.SyntaxKind.LessThanLessThanEqualsToken:case D.SyntaxKind.GreaterThanGreaterThanEqualsToken:case D.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken:case D.SyntaxKind.QuestionQuestionEqualsToken:case D.SyntaxKind.BarBarEqualsToken:case D.SyntaxKind.AmpersandAmpersandEqualsToken:{let De=R;switch(ue){case D.SyntaxKind.AmpersandEqualsToken:De&=V;break;case D.SyntaxKind.CaretEqualsToken:De^=V;break;case D.SyntaxKind.BarEqualsToken:De|=V;break;case D.SyntaxKind.AsteriskEqualsToken:De*=V;break;case D.SyntaxKind.AsteriskAsteriskEqualsToken:De**=V;break;case D.SyntaxKind.LessThanLessThanEqualsToken:De<<=V;break;case D.SyntaxKind.GreaterThanGreaterThanEqualsToken:De>>=V;break;case D.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken:De>>>=V;break;case D.SyntaxKind.MinusEqualsToken:De-=V;break;case D.SyntaxKind.PlusEqualsToken:De+=V;break;case D.SyntaxKind.PercentEqualsToken:De%=V;break;case D.SyntaxKind.SlashEqualsToken:De/=V;break;case D.SyntaxKind.QuestionQuestionEqualsToken:De=R??V;break;case D.SyntaxKind.BarBarEqualsToken:R||(De=V);break;case D.SyntaxKind.AmpersandAmpersandEqualsToken:R&&(De=V);break}return X!=null&&e_({...r,path:X,value:De}),De}case D.SyntaxKind.AsteriskToken:return R*V;case D.SyntaxKind.AsteriskAsteriskToken:return R**V;case D.SyntaxKind.BarToken:return R|V;case D.SyntaxKind.BarBarToken:return R||V;case D.SyntaxKind.CaretToken:return R^V;case D.SyntaxKind.CommaToken:return V;case D.SyntaxKind.MinusToken:return R-V;case D.SyntaxKind.PlusToken:return m.logResult(R+V,"BinaryExpression (PlusToken)"),R+V;case D.SyntaxKind.PercentToken:return R%V;case D.SyntaxKind.SlashToken:return R/V;case D.SyntaxKind.EqualsToken:{if(X!=null){let De=mst(i.left,D),we=b?.getSymbolAtLocation(De),We=we?.valueDeclaration;if(We==null&&b==null&&D.isIdentifier(De)){let Me=GWt(De.parent,De.text,r);iAn(Me)&&(We=Me)}let Ne=We==null?l:(n=ZTn(l,We,D))!==null&&n!==void 0?n:l;e_({...r,environment:Ne,path:X,value:V}),m.logBinding(X,V,"Assignment")}else return g(new LWt({node:i.left,environment:l}));return V}case D.SyntaxKind.EqualsEqualsToken:return R==V;case D.SyntaxKind.EqualsEqualsEqualsToken:return R===V;case D.SyntaxKind.ExclamationEqualsToken:return R!=V;case D.SyntaxKind.ExclamationEqualsEqualsToken:return R!==V;case D.SyntaxKind.GreaterThanToken:return R>V;case D.SyntaxKind.GreaterThanEqualsToken:return R>=V;case D.SyntaxKind.LessThanToken:return R<V;case D.SyntaxKind.LessThanEqualsToken:return R<=V;case D.SyntaxKind.InKeyword:return R in V;case D.SyntaxKind.QuestionQuestionToken:return R??V;case D.SyntaxKind.InstanceOfKeyword:return R instanceof V}return g(new KI({node:i.operatorToken,typescript:D,environment:l}))}var jWt="___lazyCallFlag";function Nfr(r){return r!=null&&typeof r=="object"&&jWt in r}function VWt(r){return r===void 0?"undefined":r===null?"null":typeof r=="string"?`"${r}"`:r.toString()}var Cst=class extends r4{constructor({value:n,node:i,environment:l,message:p=`${VWt(n)} is not a function'`}){super({message:p,environment:l,node:i}),this.value=n}};function jre(r,n){var i;return Est(r,n)?!0:n.isPropertyAccessExpression(r)?jre(r.expression,n)||jre(r.name,n):n.isElementAccessExpression(r)?jre(r.expression,n)||jre(r.argumentExpression,n):n.isParenthesizedExpression(r)||n.isAsExpression(r)||!((i=n.isTypeAssertionExpression)===null||i===void 0)&&i.call(n,r)||!("isTypeAssertionExpression"in n)&&n.isTypeAssertion(r)?jre(r.expression,n):!1}function Rfr(r){let{node:n,environment:i,evaluate:l,throwError:p,typescript:m,logger:g,getCurrentError:b}=r,D=[];for(let R=0;R<n.arguments.length;R++)if(D[R]=l.expression(n.arguments[R],r),b()!=null)return;let I=l.expression(n.expression,r);if(b()==null)if(Nfr(I)){let R=jre(n.expression,m)?ED(n,i,n4):void 0,V=I.invoke(R?.literal,...D);return b()!=null?void 0:(g.logResult(V,"CallExpression"),V)}else{if(n.questionDotToken==null&&typeof I!="function")return p(new Cst({value:I,node:n.expression,environment:i}));let R=typeof I!="function"?void 0:xst(n,r,I(...D));return b()!=null?void 0:(g.logResult(R,"CallExpression"),R)}}function Lfr({node:r,evaluate:n,...i}){return n.expression(r.expression,i)}function hI(r,n){return{parentEnv:r,startingNode:n,env:{}}}function RU(r,n){let i=Array.isArray(r)?r:r.modifiers;return i!=null&&i.some(l=>l.kind===n)}function LU(r,n,i){let{node:l,evaluate:p,environment:m,typescript:g,getCurrentError:b}=r,D=l.filter(I=>!(g.isIdentifier(I.name)&&I.name.text==="this"));for(let I=0;I<D.length;I++){let R=D[I];if(R.dotDotDotToken!=null){if(p.nodeWithArgument(R,n.slice(I),r),b()!=null)return;break}else{if(p.nodeWithArgument(R,n[I],r),b()!=null)return;if(i!=null&&g.isIdentifier(R.name)&&(RU(R,g.SyntaxKind.PublicKeyword)||RU(R,g.SyntaxKind.ProtectedKeyword)||RU(R,g.SyntaxKind.PrivateKeyword))){let V=ED(R,m,R.name.text);V!=null&&(i[R.name.text]=V.literal)}}}}function Mfr(r){let{node:n,environment:i,evaluate:l,stack:p,typescript:m,getCurrentError:g}=r,b=RU(n,m.SyntaxKind.AsyncKeyword)?async(...D)=>{let I=hI(i,n),R={...r,environment:I};if(e_({...R,path:B1,value:!1,newBinding:!0}),e_({...R,path:"arguments",value:arguments,newBinding:!0}),LU({...r,node:n.parameters,environment:I},D),g()==null)return m.isBlock(n.body)?(l.statement(n.body,R),g()!=null?void 0:cx(n,I,!0,B1)?p.pop():void 0):l.expression(n.body,R)}:(...D)=>{let I=hI(i,n),R={...r,environment:I};if(e_({...R,path:B1,value:!1,newBinding:!0}),e_({...R,path:"arguments",value:arguments,newBinding:!0}),LU({...r,node:n.parameters,environment:I},D),g()==null)return m.isBlock(n.body)?(l.statement(n.body,R),g()!=null?void 0:cx(n,I,!0,B1)?p.pop():void 0):l.expression(n.body,R)};return b.toString=()=>"[Function: anonymous]",Object.setPrototypeOf(b,ED(n,i,"Function").literal),b}function Ffr({node:r}){return r.text}function Ofr({node:r}){return Number(r.text)}function Wfr({node:r,typescript:n}){return r.kind===n.SyntaxKind.TrueKeyword}function Gfr({node:r,environment:n}){let i=ED(r,n,"Function").literal;return new i(`return ${r.text}`)()}function zfr(r){let{node:n,evaluate:i,environment:l,getCurrentError:p}=r,m=ED(n,l,"Object").literal,g=m.create(m.prototype);e_({...r,path:n4,value:g,newBinding:!0});for(let b of n.properties)if(i.nodeWithArgument(b,g,r),p()!=null)return;return g}function jfr(r){return r!=null&&r[Symbol.iterator]!=null}function Vfr(r){let{node:n,environment:i,evaluate:l,typescript:p,getCurrentError:m}=r,b=ED(n,i,"Array").literal.of();for(let D of n.elements){let I=l.expression(D,r);if(m()!=null)return;p.isSpreadElement(D)&&jfr(I)?b.push(...I):b.push(I)}return b}var vst=class extends r4{constructor({node:n,environment:i,message:l=`'${n.text}' is not defined'`}){super({message:l,environment:i,node:n})}};function zTn(r){let{node:n,environment:i,typeChecker:l,evaluate:p,stack:m,logger:g,reporting:b,typescript:D,throwError:I,getCurrentError:R}=r,V=ED(n,i,n.text);if(V!=null)return g.logBinding(n.text,V.literal,"Lexical Environment match"),V.literal;let X=D.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=GWt(n.parent,n.text,r);if(R()!=null)return;if(iAn(De)&&!D.isIdentifier(De))ue=De;else if(De!=null)return e_({...r,path:n.text,value:De}),g.logBinding(n.text,De,"Discovered declaration value"),De}if(ue!=null){if(ue.getSourceFile().isDeclarationFile){let we=gst({...r,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(D.isVariableDeclaration(ue)&&ue.getSourceFile().fileName===n.getSourceFile().fileName&&ue.pos>n.pos)if(D.isVariableDeclarationList(ue.parent)&&qTn(ue.parent,D)){e_({...r,path:n.text,value:void 0,newBinding:!0,node:ue}),g.logBinding(n.text,void 0,"Hoisted var declaration");return}else return I(new vst({node:n,environment:i}));if(p.declaration(ue,r),R()!=null)return;let De=m.pop();return e_({...r,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 vst({node:n,environment:i}))}function Ufr(r){let{node:n,environment:i,typescript:l,evaluate:p,getCurrentError:m}=r,g=hI(i,n);for(let b=0;b<n.statements.length;b++){let D=n.statements[b];if(!(l.isConstructorDeclaration(n.parent)&&b===0&&l.isExpressionStatement(D)&&l.isCallExpression(D.expression)&&Est(D.expression.expression,l))&&(p.statement(D,{...r,environment:g}),m()!=null||cx(n,g,!0,ZL,t4,B1)))break}}function Hfr({node:r,evaluate:n,stack:i,...l}){let{getCurrentError:p}=l;if(e_({...l,environment:l.environment,path:B1,value:!0,node:r}),r.expression==null)i.push(void 0);else{let m=n.expression(r.expression,l);if(p()!=null)return;i.push(m)}}function oAn({node:r,evaluate:n,...i}){for(let l of r.declarations)if(n.declaration(l,i),i.getCurrentError()!=null)return}function Jfr({node:r,...n}){oAn({node:r.declarationList,...n})}function qfr(r){var n,i;let{node:l,environment:p,evaluate:m,reporting:g,typescript:b,throwError:D,getCurrentError:I}=r,R=m.expression(l.operand,r);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 D(new KI({node:l.operand,environment:p,typescript:b}));let V=qVe(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 D(new KI({node:l.operand,environment:p,typescript:b}));let V=qVe(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 Kfr(r){let{evaluate:n,node:i,statementTraversalStack:l,environment:p,typescript:m,getCurrentError:g}=r,b=n.expression(i.expression,r);if(b==null||g()!=null)return;let D=i.questionDotToken!=null&&b==null?void 0:b[i.name.text];return typeof D=="function"&&l.includes(m.SyntaxKind.CallExpression)?{[jWt]:0,invoke:(I,...R)=>xst(i,r,I!=null&&!zWt(D,p)?b[i.name.text].call(I,...R):b[i.name.text](...R))}:D}function Xfr(r){let{node:n,environment:i,evaluate:l,statementTraversalStack:p,typescript:m,getCurrentError:g}=r,b=l.expression(n.expression,r);if(g()!=null)return;let D=l.expression(n.argumentExpression,r);if(g()!=null)return;let I=n.questionDotToken!=null&&b==null?void 0:b[D];return typeof I=="function"&&p.includes(m.SyntaxKind.CallExpression)?{[jWt]:0,invoke:(R,...V)=>xst(n,r,R!=null&&!zWt(I,i)?b[D].call(R,...V):b[D](...V))}:I}function Yfr({node:r,evaluate:n,...i}){return n.expression(r.expression,i)}function Qfr(r){let{node:n,environment:i,evaluate:l,stack:p,typescript:m,getCurrentError:g}=r,b=n.name==null?void 0:n.name.text,D=RU(n,m.SyntaxKind.AsyncKeyword)?async function(...R){let V=hI(i,n),X={...r,environment:V};if(e_({...X,path:B1,value:!1,newBinding:!0}),e_({...X,path:"arguments",value:arguments,newBinding:!0}),this!=null&&e_({...X,path:n4,value:this,newBinding:!0}),LU({...r,node:n.parameters,environment:V},R),g()!=null)return;let ue=n.getSourceFile();if(b!=null&&ue.isDeclarationFile)return gst(r)(...R);if(n.body!=null&&(l.statement(n.body,X),g()==null&&cx(n,V,!0,B1)))return p.pop()}:function(...R){let V=hI(i,n),X={...r,environment:V};if(e_({...X,path:B1,value:!1,newBinding:!0}),e_({...X,path:"arguments",value:arguments,newBinding:!0}),this!=null&&e_({...X,path:n4,value:this,newBinding:!0}),LU({...X,node:n.parameters},R),g()!=null)return;let ue=n.getSourceFile();if(b!=null&&ue.isDeclarationFile)return gst(r)(...R);if(n.body!=null&&(l.statement(n.body,X),g()==null&&cx(n,V,!0,B1)))return p.pop()};b!=null&&e_({...r,path:b,value:D.bind(D)}),D.toString=()=>`[Function${b==null?"":`: ${b}`}]`,Object.setPrototypeOf(D,ED(n,i,"Function").literal),p.push(D)}function $fr({node:r,evaluate:n,...i}){let{getCurrentError:l}=i,p=n.expression(r.expression,i);if(l()==null){if(p){if(n.statement(r.thenStatement,i),l()!=null)return}else if(r.elseStatement!=null)return n.statement(r.elseStatement,i)}}function Zfr({node:r,evaluate:n,stack:i,...l}){let p=n.expression(r.expression,l);l.getCurrentError()==null&&i.push(p)}function edr({node:r,evaluate:n,...i}){let l="";l+=r.head.text;for(let p of r.templateSpans){let m=n.expression(p.expression,i);if(i.getCurrentError()!=null)return;l+=m,l+=p.literal.text}return l}function tdr({node:r,evaluate:n,...i}){return n.expression(r.expression,i)}function ndr(r){var n,i;let{evaluate:l,node:p,environment:m,typescript:g,throwError:b,reporting:D}=r;switch(l.expression(p.operand,r),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 KI({node:p.operand,environment:m,typescript:g}));let I=qVe(m,p.operand.text)[p.operand.text]++;return D.reportBindings!=null&&D.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 KI({node:p.operand,environment:m,typescript:g}));let I=qVe(m,p.operand.text)[p.operand.text]--;return D.reportBindings!=null&&D.reportBindings({path:p.operand.text,value:I,node:p}),I}}}function rdr({node:r,evaluate:n,...i}){let{getCurrentError:l}=i,p=[];if(r.arguments!=null){for(let g=0;g<r.arguments.length;g++)if(p[g]=n.expression(r.arguments[g],i),l()!=null)return}let m=n.expression(r.expression,i);if(l()==null)return typeof m=="function"&&e_({...i,node:r,path:"[[NewTarget]]",value:m,newBinding:!0}),xst(r,i,new m(...p))}function idr({node:r,evaluate:n,...i}){return n.expression(r.expression,i)}function odr({node:r,evaluate:n,...i}){return n.expression(r.expression,i)}function sdr({node:r,evaluate:n,...i}){let l=n.expression(r.expression,i);i.getCurrentError()==null&&n.nodeWithArgument(r.caseBlock,l,i)}var MWt=class extends r4{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 adr(r){let{node:n,environment:i,evaluate:l,logger:p,typescript:m,throwError:g,getCurrentError:b}=r,D=l.expression(n.expression,r);if(b()==null){if(m.isVariableDeclarationList(n.initializer)){if(n.initializer.declarations.length>1)return g(new KI({node:n.initializer.declarations[1],environment:i,typescript:m}))}else return g(new KI({node:n.initializer,environment:i,typescript:m}));if(n.awaitModifier!=null)return g(new MWt({typescript:m,environment:i}));for(let I of D){let R=hI(i,n),V={...r,environment:R};if(e_({...V,path:ZL,value:!1,newBinding:!0}),e_({...V,path:t4,value:!1,newBinding:!0}),l.nodeWithArgument(n.initializer.declarations[0],I,V),b()!=null||(l.statement(n.statement,V),b()!=null))return;if(cx(n,R,!0,ZL)){p.logBreak(n,m);break}else if(cx(n,R,!0,t4)){p.logContinue(n,m);continue}else if(cx(n,R,!0,B1)){p.logReturn(n,m);return}}}}function ldr({node:r,environment:n}){let i=ED(r,n,n4);return i?.literal}function cdr(r){e_({...r,path:ZL,value:!0})}function udr(r){e_({...r,path:t4,value:!0})}function pdr({environment:r,evaluate:n,typescript:i,...l}){let{node:p,getCurrentError:m}=l,g=hI(r,p),b={...l,environment:g};if(p.initializer!==void 0){if(i.isVariableDeclarationList(p.initializer)){for(let D of p.initializer.declarations)if(n.declaration(D,b),m()!=null)return}else if(n.expression(p.initializer,b),m()!=null)return}for(;;){let D=hI(g,p),I={...l,environment:D};if(e_({...I,path:ZL,value:!1,newBinding:!0}),e_({...I,path:t4,value:!1,newBinding:!0}),!(p.condition==null?!0:n.expression(p.condition,b))||m()!=null||(n.statement(p.statement,I),m()!=null))return;if(cx(p,D,!0,ZL))break;if(cx(p,D,!0,B1))return;if(p.incrementor!=null){if(n.expression(p.incrementor,b),m()!=null)return}else if(cx(p,D,!0,t4))continue}}function fdr(r){let{node:n,environment:i,evaluate:l,logger:p,typescript:m,getCurrentError:g}=r,b=l.expression(n.expression,r);if(g()==null)for(;b;){let D=hI(i,n),I={...r,environment:D};if(e_({...I,path:ZL,value:!1,newBinding:!0}),e_({...I,path:t4,value:!1,newBinding:!0}),l.statement(n.statement,I),g()!=null)return;if(cx(n,D,!0,ZL)){p.logBreak(n,m);break}else if(cx(n,D,!0,B1)){p.logReturn(n,m);return}if(b=l.expression(n.expression,r),g()!=null)return;if(cx(n,D,!0,t4)){p.logContinue(n,m);continue}}}function ddr(r){let{node:n,environment:i,evaluate:l,logger:p,typescript:m,throwError:g,getCurrentError:b}=r,D=l.expression(n.expression,r);if(b()==null){if(m.isVariableDeclarationList(n.initializer)){if(n.initializer.declarations.length>1)return g(new KI({node:n.initializer.declarations[1],environment:i,typescript:m}))}else return g(new KI({node:n.initializer,environment:i,typescript:m}));for(let I in D){let R=hI(i,n),V={...r,environment:R};if(e_({...V,path:ZL,value:!1,newBinding:!0}),e_({...V,path:t4,value:!1,newBinding:!0}),l.nodeWithArgument(n.initializer.declarations[0],I,V),b()!=null||(l.statement(n.statement,V),b()!=null))return;if(cx(n,R,!0,ZL)){p.logBreak(n,m);break}else if(cx(n,R,!0,t4)){p.logContinue(n,m);continue}else if(cx(n,R,!0,B1)){p.logReturn(n,m);return}}}}function mdr(r){let{node:n,environment:i,evaluate:l,stack:p,typescript:m,getCurrentError:g}=r,b=n.name==null?void 0:n.name.text,D=RU(n,m.SyntaxKind.AsyncKeyword)?async function(...R){let V=hI(i,n),X={...r,environment:V};if(e_({...X,path:B1,value:!1,newBinding:!0}),e_({...X,path:"arguments",value:arguments,newBinding:!0}),this!=null&&e_({...X,path:n4,value:this,newBinding:!0}),LU({...X,node:n.parameters},R),!(n.body==null||g()!=null)&&(l.statement(n.body,X),g()==null&&cx(n,V,!0,B1)))return p.pop()}:function(...R){let V=hI(i,n),X={...r,environment:V};if(e_({...X,path:B1,value:!1,newBinding:!0}),e_({...X,path:"arguments",value:arguments,newBinding:!0}),this!=null&&e_({...X,path:n4,value:this,newBinding:!0}),LU({...X,node:n.parameters},R),!(n.body==null||g()!=null)&&(l.statement(n.body,X),g()==null&&cx(n,V,!0,B1)))return p.pop()};return b!=null&&e_({...r,path:b,value:D.bind(D)}),D.toString=()=>`[Function${b==null?"":`: ${b}`}]`,Object.setPrototypeOf(D,ED(n,i,"Function").literal),D}var FWt=class extends r4{constructor({node:n,environment:i,message:l="Missing catch or finally after try"}){super({node:n,environment:i,message:l})}};function _dr(r){let{node:n,evaluate:i,environment:l,throwError:p}=r,m,g=()=>{try{return i.statement(n.tryBlock,{...r,throwError:I=>(m=I,I),getCurrentError:()=>m})}catch(I){m=I}},b=I=>{i.nodeWithArgument(n.catchClause,I,r)},D=()=>{let I;i.statement(n.finallyBlock,{...r,throwError:R=>(I=R,r.throwError(R),R),getCurrentError:()=>I})};if(n.catchClause==null&&n.finallyBlock==null)return p(new FWt({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),D()):n.catchClause==null&&n.finallyBlock!=null&&(g(),m!=null&&p(m),D())}function sAn({name:r,extendedType:n,ctor:i=()=>{}}){return n==null?new Function("ctor",`return class ${r??""} {constructor () {const ctorReturnValue = ctor.call(this, ...arguments); if (ctorReturnValue != null) return ctorReturnValue;}}`)(i):new Function("extendedType","ctor",`return class ${r??""} extends extendedType {constructor () {super(...arguments); const ctorReturnValue = ctor.call(this, ...arguments); if (ctorReturnValue != null) return ctorReturnValue;}}`)(n,i)}function KVe(r,n){return"canHaveDecorators"in n?n.canHaveDecorators(r):!0}function XVe(r,n){var i;if("getDecorators"in n)return n.getDecorators(r);{let l="decorators"in r&&Array.isArray(r.decorators)?r.decorators:void 0,p=(i=r.modifiers)===null||i===void 0?void 0:i.filter(m=>"expression"in m);return[...l??[],...p??[]]}}function hdr(r){var n;let{node:i,evaluate:l,stack:p,logger:m,typescript:g,getCurrentError:b}=r,D,I=i.members.find(g.isConstructorDeclaration),R=i.members.filter(De=>!g.isConstructorDeclaration(De)),V;if(I!=null){if(l.declaration(I,r),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&&(D=l.expression(we.expression,r),b()!=null))return}}let X=i.name==null?void 0:i.name.text,ue=sAn({name:X,extendedType:D,ctor:V});if(KVe(i,g))for(let De of(n=XVe(i,g))!==null&&n!==void 0?n:[]){if(l.nodeWithArgument(De,[ue],r),b()!=null)return;ue=p.pop()}ue.toString=()=>`[Class${X==null?"":`: ${X}`}]`,X!=null&&e_({...r,path:X,value:ue,newBinding:!0});for(let De of R)if(l.nodeWithArgument(De,RU(De,g.SyntaxKind.StaticKeyword)?ue:ue.prototype,r),b()!=null)return;m.logHeritage(ue),p.push(ue),m.logStack(p)}function gdr(r){let{node:n,environment:i,evaluate:l,stack:p,getCurrentError:m}=r;function g(...b){let D=hI(i,n),I={...r,environment:D};if(e_({...I,path:B1,value:!1,newBinding:!0}),e_({...I,path:"arguments",value:arguments,newBinding:!0}),this!=null&&e_({...I,path:n4,value:this,newBinding:!0}),LU({...I,node:n.parameters},b,this),!(n.body==null||m()!=null)&&(l.statement(n.body,I),m()==null&&cx(n,D,!0,B1)))return p.pop()}g.toString=()=>"[Function: constructor]",p.push(g)}function Bdr({node:r,environment:n}){let i=ED(r,n,r0e);return i?.literal}function ydr({node:r,evaluate:n,...i}){return n.expression(r.expression,i)}function Cdr(r){var n;let{node:i,evaluate:l,stack:p,logger:m,typescript:g,getCurrentError:b}=r,D,I=i.members.find(g.isConstructorDeclaration),R=i.members.filter(De=>!g.isConstructorDeclaration(De)),V;if(I!=null){if(l.declaration(I,r),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&&(D=l.expression(we.expression,r),b()!=null))return}}let X=i.name==null?void 0:i.name.text,ue=sAn({name:X,extendedType:D,ctor:V});if(KVe(i,g))for(let De of(n=XVe(i,g))!==null&&n!==void 0?n:[]){if(l.nodeWithArgument(De,[ue],r),b()!=null)return;ue=p.pop()}ue.toString=()=>`[Class${X==null?"":`: ${X}`}]`,X!=null&&e_({...r,path:X,value:ue,newBinding:!0});for(let De of R)if(l.nodeWithArgument(De,RU(De,g.SyntaxKind.StaticKeyword)?ue:ue.prototype,r),b()!=null)return;return m.logHeritage(ue),ue}function vdr(r){return null}function bdr({node:r,evaluate:n,...i}){n.expression(r.expression,i)}function Sdr({evaluate:r,node:n,...i}){let l=r.expression(n.expression,i);if(i.getCurrentError()==null)return typeof l}function xdr({node:r,environment:n}){let i=ED(r,n,"BigInt").literal;return i(r.text.endsWith("n")?r.text.slice(0,-1):r.text)}function Edr(r){let{node:n,environment:i,evaluate:l,stack:p,getCurrentError:m}=r,g=ED(n,i,"Object").literal,b=g.create(g.prototype),D=n.name.text;e_({...r,path:D,value:b,newBinding:!0});for(let I of n.members)if(l.nodeWithArgument(I,b,r),m()!=null)return;b.toString=()=>`[Enum: ${D}]`,p.push(b)}function Ddr(r){let{node:n,evaluate:i,environment:l,typeChecker:p,stack:m,getCurrentError:g}=r,b=ED(n,l,"Object").literal,D=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,r),g()!=null))return;D[V]=m.pop()}}m.push(D)}function Tdr(r){let{getCurrentError:n,stack:i}=r,l=gst(r);n()==null&&i.push(l)}function Adr({node:r,evaluate:n,...i}){r.importClause!=null&&n.declaration(r.importClause,i)}function kdr({node:r,evaluate:n,...i}){let{getCurrentError:l,throwError:p}=i,m=n.expression(r.expression,i);if(l()==null)return p(m)}var OWt=class extends Ure{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 wdr(r){let{node:n,environment:i,evaluate:l,policy:p,throwError:m,getCurrentError:g}=r,b=p.maxOpDuration===1/0?void 0:setTimeout(()=>{m(new OWt({duration:p.maxOpDuration,node:n,environment:i}))},p.maxOpDuration),D=l.expression(n.expression,r);if(b!=null&&clearTimeout(b),g()==null)return D}function Idr({node:r,evaluate:n,...i}){let{getCurrentError:l}=i,p=n.expression(r.condition,i);if(l()==null)return p?n.expression(r.whenTrue,i):n.expression(r.whenFalse,i)}function Dst(r,n){let i=r;for(;i!=null&&!n.isSourceFile(i);){if(RU(i,n.SyntaxKind.StaticKeyword))return!0;i=i.parent}return!1}function aAn(r,n){var i,l;let{node:p,environment:m,evaluate:g,stack:b,typescript:D,getCurrentError:I}=r,R=g.nodeWithValue(p.name,r);if(I()!=null)return;let V=Dst(p,D);if(n==null){let ue;if(D.isClassLike(p.parent)){if(g.declaration(p.parent,r),I()!=null)return;ue=b.pop()}else if(ue=g.expression(p.parent,r),I()!=null)return;b.push(V?ue[R]:ue.prototype[R]);return}let X=RU(p,D.SyntaxKind.AsyncKeyword)?async function(...De){let we=hI(m,p),We={...r,environment:we};if(e_({...We,path:B1,value:!1,newBinding:!0}),e_({...We,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(e_({...We,path:n4,value:this,newBinding:!0}),e_({...We,path:r0e,value:V?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),LU({...r,node:p.parameters,environment:we},De),!(p.body==null||I()!=null)&&(g.statement(p.body,We),I()==null&&cx(p,we,!0,B1)))return b.pop()}:function(...De){let we=hI(m,p),We={...r,environment:we};if(e_({...We,path:B1,value:!1,newBinding:!0}),e_({...We,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(e_({...We,path:n4,value:this,newBinding:!0}),e_({...We,path:r0e,value:V?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),LU({...r,node:p.parameters,environment:we},De),!(p.body==null||I()!=null)&&(g.statement(p.body,We),I()==null&&cx(p,we,!0,B1)))return b.pop()};if(X.toString=()=>`[Method: ${R}]`,Object.setPrototypeOf(X,ED(p,m,"Function").literal),n[R]=X,KVe(p,D))for(let ue of(i=XVe(p,D))!==null&&i!==void 0?i:[]){if(g.nodeWithArgument(ue,[n,R],r),I()!=null)return;b.pop()}if(p.parameters!=null){let ue=p.parameters.filter(De=>!(D.isIdentifier(De.name)&&De.name.text==="this"));for(let De=0;De<ue.length;De++){let we=ue[De];if(KVe(we,D))for(let We of(l=XVe(we,D))!==null&&l!==void 0?l:[]){if(g.nodeWithArgument(We,[n,R,De],r),I()!=null)return;b.pop()}}}}function lAn({node:r,evaluate:n,typescript:i,stack:l,...p},m){var g;let{getCurrentError:b}=p,D=n.nodeWithValue(r.name,p);if(b()==null){if(m==null){if(n.declaration(r.parent,p),b()!=null)return;let I=l.pop(),R=Dst(r,i);l.push(R?I[D]:I.prototype[D]);return}if(m[D]=r.initializer==null?void 0:n.expression(r.initializer,p),b()==null&&KVe(r,i))for(let I of(g=XVe(r,i))!==null&&g!==void 0?g:[]){if(n.nodeWithArgument(I,[m,D],p),b()!=null)return;l.pop()}}}function cAn(r,n){let{node:i,environment:l,evaluate:p,stack:m,typescript:g,getCurrentError:b}=r;if(g.isTypeLiteralNode(i.parent)||g.isInterfaceDeclaration(i.parent))return;let D=p.nodeWithValue(i.name,r);if(b()!=null)return;let I=Dst(i,g);if(n==null){let X;if(g.isClassLike(i.parent)){if(p.declaration(i.parent,r),b()!=null)return;X=m.pop()}else if(X=p.expression(i.parent,r),b()!=null)return;m.push(I?X[D]:X.prototype[D]);return}function R(){let X=hI(l,i),ue={...r,environment:X};if(e_({...ue,path:B1,value:!1,newBinding:!0}),e_({...ue,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(e_({...ue,path:n4,value:this,newBinding:!0}),e_({...ue,path:r0e,value:I?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),i.body!=null&&(p.statement(i.body,ue),b()==null&&cx(i,X,!0,B1)))return m.pop()}R.toString=()=>`[Get: ${D}]`;let V=Object.getOwnPropertyDescriptor(n,D);V==null&&(V={}),Object.defineProperty(n,D,{...V,configurable:!0,get:R})}function Pdr({node:r,evaluate:n,...i}){let{getCurrentError:l}=i;if(!(r.name!=null&&(n.declaration(r.name,i),l()!=null))&&r.namedBindings!=null)if("elements"in r.namedBindings){for(let p of r.namedBindings.elements)if(n.declaration(p,i),l()!=null)return}else n.declaration(r.namedBindings.name,i)}function Ndr({node:r,evaluate:n,...i}){var l;n.declaration((l=r.propertyName)!==null&&l!==void 0?l:r.name,i)}function Rdr({node:r,evaluate:n,...i}){n.declaration(r.name,i)}var bst=class extends r4{constructor({node:n,environment:i,message:l="'SyntaxError'"}){super({message:l,environment:i,node:n})}};function Ldr({node:r,typescript:n,throwError:i,environment:l}){var p,m;switch(r.keywordToken){case n.SyntaxKind.NewKeyword:switch(r.name.text){case"target":return(p=ED(r,l,"[[NewTarget]]"))===null||p===void 0?void 0:p.literal;default:return i(new bst({node:r.name,environment:l}))}case n.SyntaxKind.ImportKeyword:switch(r.name.text){case"meta":return(m=ED(r,l,"import.meta"))===null||m===void 0?void 0:m.literal;default:return i(new bst({node:r.name,environment:l}))}}}function UWt({node:r,...n}){var i,l,p,m,g,b;return n.typescript.isIdentifier(r)?zTn({node:r,...n}):!((l=(i=n.typescript).isPrivateIdentifier)===null||l===void 0)&&l.call(i,r)?zTn({node:r,...n}):n.typescript.isStringLiteralLike(r)?Ffr({node:r,...n}):n.typescript.isNumericLiteral(r)?Ofr({node:r,...n}):eAn(r,n.typescript)?Wfr({node:r,...n}):n.typescript.isForOfStatement(r)?adr({node:r,...n}):n.typescript.isForInStatement(r)?ddr({node:r,...n}):n.typescript.isForStatement(r)?pdr({node:r,...n}):n.typescript.isWhileStatement(r)?fdr({node:r,...n}):n.typescript.isRegularExpressionLiteral(r)?Gfr({node:r,...n}):n.typescript.isObjectLiteralExpression(r)?zfr({node:r,...n}):n.typescript.isAwaitExpression(r)?wdr({node:r,...n}):!((m=(p=n.typescript).isTypeAssertionExpression)===null||m===void 0)&&m.call(p,r)||!("isTypeAssertionExpression"in n.typescript)&&n.typescript.isTypeAssertion(r)?tdr({node:r,...n}):n.typescript.isTemplateExpression(r)?edr({node:r,...n}):n.typescript.isMethodDeclaration(r)?aAn({node:r,...n}):n.typescript.isPropertyDeclaration(r)?lAn({node:r,...n}):n.typescript.isGetAccessorDeclaration(r)?cAn({node:r,...n}):n.typescript.isArrayLiteralExpression(r)?Vfr({node:r,...n}):n.typescript.isSourceFile(r)?Ddr({node:r,...n}):n.typescript.isModuleDeclaration(r)?Tdr({node:r,...n}):n.typescript.isPrefixUnaryExpression(r)?qfr({node:r,...n}):n.typescript.isPostfixUnaryExpression(r)?ndr({node:r,...n}):n.typescript.isVariableStatement(r)?Jfr({node:r,...n}):n.typescript.isComputedPropertyName(r)?Yfr({node:r,...n}):n.typescript.isVariableDeclarationList(r)?oAn({node:r,...n}):n.typescript.isImportDeclaration(r)?Adr({node:r,...n}):n.typescript.isImportClause(r)?Pdr({node:r,...n}):n.typescript.isImportSpecifier(r)?Ndr({node:r,...n}):n.typescript.isNamespaceImport(r)?Rdr({node:r,...n}):n.typescript.isImportEqualsDeclaration(r)?({...n},void 0):n.typescript.isMetaProperty(r)?Ldr({node:r,...n}):n.typescript.isThrowStatement(r)?kdr({node:r,...n}):n.typescript.isVariableDeclaration(r)?nAn({node:r,...n}):n.typescript.isEnumDeclaration(r)?Edr({node:r,...n}):n.typescript.isConstructorDeclaration(r)?gdr({node:r,...n}):n.typescript.isBinaryExpression(r)?Pfr({node:r,...n}):n.typescript.isParenthesizedExpression(r)?Lfr({node:r,...n}):n.typescript.isExpressionStatement(r)?Zfr({node:r,...n}):n.typescript.isArrowFunction(r)?Mfr({node:r,...n}):n.typescript.isFunctionDeclaration(r)?Qfr({node:r,...n}):n.typescript.isFunctionExpression(r)?mdr({node:r,...n}):n.typescript.isClassDeclaration(r)?hdr({node:r,...n}):n.typescript.isIfStatement(r)?$fr({node:r,...n}):n.typescript.isConditionalExpression(r)?Idr({node:r,...n}):n.typescript.isPropertyAccessExpression(r)?Kfr({node:r,...n}):n.typescript.isElementAccessExpression(r)?Xfr({node:r,...n}):n.typescript.isCallExpression(r)?Rfr({node:r,...n}):n.typescript.isSwitchStatement(r)?sdr({node:r,...n}):n.typescript.isNewExpression(r)?rdr({node:r,...n}):n.typescript.isNonNullExpression(r)?idr({node:r,...n}):n.typescript.isAsExpression(r)?odr({node:r,...n}):n.typescript.isBlock(r)?Ufr({node:r,...n}):n.typescript.isClassExpression(r)?Cdr({node:r,...n}):n.typescript.isSpreadElement(r)?ydr({node:r,...n}):n.typescript.isTryStatement(r)?_dr({node:r,...n}):n.typescript.isReturnStatement(r)?Hfr({node:r,...n}):rAn(r,n.typescript)?ldr({node:r,...n}):n.typescript.isVoidExpression(r)?bdr({node:r,...n}):n.typescript.isTypeOfExpression(r)?Sdr({node:r,...n}):Est(r,n.typescript)?Bdr({node:r,...n}):tAn(r,n.typescript)?vdr({node:r,...n}):!((b=(g=n.typescript).isBigIntLiteral)===null||b===void 0)&&b.call(g,r)?xdr({node:r,...n}):n.typescript.isBreakStatement(r)?cdr({node:r,...n}):n.typescript.isContinueStatement(r)?udr({node:r,...n}):n.typescript.isTypeAliasDeclaration(r)?({...n},void 0):n.typescript.isInterfaceDeclaration(r)?({...n},void 0):n.getCurrentError()!=null?void 0:n.throwError(new KI({node:r,environment:n.environment,typescript:n.typescript}))}function HWt(){return[]}function Mdr(r){r.logger.logNode(r.node,r.typescript),r.statementTraversalStack=HWt(),UWt(r)}function Fdr(r){let{getCurrentError:n}=r;r.logger.logNode(r.node,r.typescript);let i=UWt(r);if(n()==null)return r.reporting.reportIntermediateResults!=null&&r.reporting.reportIntermediateResults({node:r.node,value:i}),i}function Odr(r){r.logger.logNode(r.node,r.typescript),UWt(r)}function Wdr({node:r,evaluate:n,typescript:i,logger:l,...p},m){var g;i.isIdentifier(r)||!((g=i.isPrivateIdentifier)===null||g===void 0)&&g.call(i,r)?(e_({...p,node:r,path:r.text,value:m,newBinding:!0}),l.logBinding(r.text,m,"evaluateBindingName")):n.nodeWithArgument(r,m,p)}function Gdr(r,n){let{node:i,environment:l,evaluate:p,typescript:m,getCurrentError:g}=r,b=p.nodeWithValue(i.name,r);if(g()!=null)return;let D=Dst(i,m);function I(...V){let X=hI(l,i),ue={...r,environment:X};e_({...ue,path:B1,value:!1,newBinding:!0}),e_({...ue,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(e_({...ue,path:n4,value:this,newBinding:!0}),e_({...ue,path:r0e,value:D?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),LU({...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 zdr({node:r,evaluate:n,...i},l){let p=n.expression(r.initializer,i);if(i.getCurrentError()!=null)return;let m=n.nodeWithValue(r.name,i);i.getCurrentError()==null&&(l[m]=p)}function jdr({node:r,evaluate:n,logger:i,...l},p){let m=p!=null||r.initializer===void 0?p:n.expression(r.initializer,l);l.getCurrentError()==null&&(i.logBinding(r.name.getText(),m,"evaluateParameterDeclaration"),n.nodeWithArgument(r.name,m,l))}function Vdr({node:r,evaluate:n,...i},l){let{getCurrentError:p}=i,m=r.name.text,g=n.expression(r.name,i);p()==null&&(l[m]=g)}function Udr({node:r,evaluate:n,...i},l){let p=n.expression(r.expression,i);i.getCurrentError()==null&&Object.assign(l,p)}function Hdr({node:r,evaluate:n,...i},l){let p=l[Symbol.iterator](),m=0;for(;m<r.elements.length;){let{done:g,value:b}=p.next();if(g===!0)break;if(n.nodeWithArgument(r.elements[m++],b,i),i.getCurrentError()!=null)return}}function Jdr(r,n){var i,l,p,m;let{node:g,evaluate:b,logger:D,typescript:I,getCurrentError:R}=r,V=g.initializer==null?void 0:b.expression(g.initializer,r);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,r);if(R()!=null)return;let De=I.isArrayBindingPattern(g.parent)?n:n[ue];e_({...r,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;D.logBinding(g.name.text,De),e_({...r,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,r);if(R()!=null)return;let ue=I.isArrayBindingPattern(g.parent)?n:n[X],De=ue??V;if(b.nodeWithArgument(g.name,De,r),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,r),R()!=null)return}}}function qdr({node:r,evaluate:n,...i},l){for(let p of r.elements)if(n.nodeWithArgument(p,l,i),i.getCurrentError()!=null)return}function Kdr(r,n){let{node:i,evaluate:l,environment:p,getCurrentError:m}=r,g=hI(p,i),b={...r,environment:g};e_({...b,path:ZL,value:!1,newBinding:!0});for(let D of i.clauses){if(l.nodeWithArgument(D,n,b),m()!=null)return;if(cx(i,g,!0,ZL,t4,B1))break}}function Xdr({node:r,evaluate:n,...i},l){let{getCurrentError:p}=i;if(!(n.expression(r.expression,i)!==l||p()!=null))for(let g of r.statements){if(n.statement(g,i),p()!=null)return;if(cx(r,i.environment,!0,ZL,t4,B1))break}}function Ydr(r){let{node:n,evaluate:i,environment:l,getCurrentError:p}=r;for(let m of n.statements){if(i.statement(m,r),p()!=null)return;if(cx(n,l,!0,ZL,t4,B1))break}}function Qdr(r,n){let{node:i,evaluate:l,environment:p,getCurrentError:m}=r,g=i.variableDeclaration==null?p:hI(p,i),b={...r,environment:g};i.variableDeclaration!=null&&(l.nodeWithArgument(i.variableDeclaration,n,b),m()!=null)||l.statement(i.block,b)}function $dr(r,n,i,l){let p=arguments.length,m=p<3?n:l===null?l=Object.getOwnPropertyDescriptor(n,i):l,g;for(let b=r.length-1;b>=0;b--)(g=r[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 Zdr(r,n){return function(i,l){n(i,l,r)}}function emr(r,[n,i,l]){let{node:p,evaluate:m,environment:g,throwError:b,stack:D,getCurrentError:I}=r,R=m.expression(p.expression,r);if(I()==null){if(typeof R!="function")return b(new Cst({node:p,environment:g,value:R,message:`${VWt(R)} is not a valid decorator implementation'`}));D.push($dr([l!=null?Zdr(l,R):R],n,i))}}function tmr(r,n){let{node:i,typeChecker:l,evaluate:p,getCurrentError:m}=r,g=l?.getConstantValue(i);if(g==null)if(i.initializer!=null){if(g=p.expression(i.initializer,r),m()!=null)return}else{let D=i.parent.members,I=D.findIndex(X=>X===i),R=D.slice(0,I),V=0;for(let X of[...R].reverse())if(V++,X.initializer!=null){let ue=p.expression(X.initializer,r);if(m()!=null)return;if(typeof ue=="number"){g=ue+V;break}}g==null&&(g=I)}let b=p.nodeWithValue(i.name,r);m()==null&&(typeof g=="string"?n[b]=g:n[n[b]=g??0]=b)}function nmr(r,n){r.logger.logNode(r.node,r.typescript,"nodeWithArgument");let{node:i,...l}=r;if(l.typescript.isGetAccessorDeclaration(i))cAn({node:i,...l},n);else if(l.typescript.isSetAccessorDeclaration(i))Gdr({node:i,...l},n);else if(l.typescript.isPropertyAssignment(i))zdr({node:i,...l},n);else if(l.typescript.isPropertyDeclaration(i))lAn({node:i,...l},n);else if(l.typescript.isParameter(i))jdr({node:i,...l},n);else if(l.typescript.isEnumMember(i))tmr({node:i,...l},n);else if(l.typescript.isShorthandPropertyAssignment(i))Vdr({node:i,...l},n);else if(l.typescript.isDecorator(i))emr({node:i,...l},n);else if(l.typescript.isSpreadAssignment(i))Udr({node:i,...l},n);else if(l.typescript.isMethodDeclaration(i))aAn({node:i,...l},n);else if(l.typescript.isArrayBindingPattern(i))Hdr({node:i,...l},n);else if(l.typescript.isBindingElement(i))Jdr({node:i,...l},n);else if(l.typescript.isObjectBindingPattern(i))qdr({node:i,...l},n);else if(l.typescript.isVariableDeclaration(i))nAn({node:i,...l},n);else if(l.typescript.isCaseBlock(i))Kdr({node:i,...l},n);else if(l.typescript.isCaseClause(i))Xdr({node:i,...l},n);else if(l.typescript.isDefaultClause(i))Ydr({node:i,...l});else if(l.typescript.isCatchClause(i))Qdr({node:i,...l},n);else if(l.typescript.isBindingName(i))Wdr({node:i,...l},n);else if(l.typescript.isOmittedExpression(i))({...l});else{if(r.getCurrentError()!=null)return;l.throwError(new KI({node:i,environment:l.environment,typescript:l.typescript}))}}function rmr({node:r,evaluate:n,typescript:i,...l}){var p;return i.isComputedPropertyName(r)?n.expression(r.expression,l):i.isIdentifier(r)||!((p=i.isPrivateIdentifier)===null||p===void 0)&&p.call(i,r)?r.text:n.expression(r,l)}function imr(r){r.logger.logNode(r.node,r.typescript,"nodeWithValue");let{node:n,...i}=r;return r.typescript.isPropertyName(n)||r.typescript.isPrivateIdentifier(n)?rmr({node:n,...i}):r.throwError(new KI({node:n,environment:r.environment,typescript:r.typescript}))}function omr(r){let n=0,{policy:i,reporting:l}=r,p=(b,D)=>{let{environment:I=r.environment,statementTraversalStack:R=r.statementTraversalStack,getCurrentError:V=r.getCurrentError,throwError:X=r.throwError}=D??{},ue=V();if(ue!=null)return ue;if(n++,n>=i.maxOps)return X(new RWt({ops:n,environment:I,node:b}));R.push(b.kind),l.reportTraversal!=null&&l.reportTraversal({node:b})},m={statement:(b,D)=>{let I={...D,statementTraversalStack:HWt()},R=p(b,I);if(!Uee(R))return Mdr(g(b,I))},declaration:(b,D)=>{let I=p(b,D);if(!Uee(I))return Odr(g(b,D))},nodeWithArgument:(b,D,I)=>{let R=p(b,I);if(!Uee(R))return nmr(g(b,I),D)},expression:(b,D)=>{let I=p(b,D);return Uee(I)?I:Fdr(g(b,D))},nodeWithValue:(b,D)=>{let I=p(b,D);return Uee(I)?I:imr(g(b,D))}};function g(b,D){return{...r,...D,evaluate:m,node:b}}return m}function JVe(r,n){return r===n.SyntaxKind.NumericLiteral?"NumericLiteral":n.SyntaxKind[r]}var WWt=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,JVe(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,JVe(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,JVe(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=`[${JVe(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: ${VWt(this.compactValue(n.lastItem))}`))}logStatementTraversalStack(n,i){this.options.logLevel<3||console.log(this.formatWithColor(this.options.color.debug,`[${n.map(l=>JVe(l,i)).join(", ")}]`))}compactValue(n){return(0,VTn.inspect)(n,{depth:0,colors:!0,compact:!0,maxArrayLength:5})}formatWithColor(n,i){return UTn.default[n](i)}};function smr(r,n){var i;return n.isExpressionNode(r)||n.isIdentifier(r)||((i=n.isPrivateIdentifier)===null||i===void 0?void 0:i.call(n,r))}function amr(r,n){return n.isStatementButNotDeclaration(r)}function lmr(){let r=[];return{[Symbol.iterator](){return r[Symbol.iterator]()},get length(){return r.length},get lastItem(){return r[r.length-1]},push(...n){return r.push(...n)},pop(){return r.pop()}}}function cmr(r,n,i){r.reportErrors!=null&&!r.reportedErrorSet.has(n)&&(r.reportedErrorSet.add(n),r.reportErrors({error:n,node:n instanceof r4?n.node:i}))}function umr(){return new WeakSet}function uAn({typeChecker:r,node:n,environment:{preset:i="NODE",extra:l={}}={},moduleOverrides:p={},typescript:m=afr,logLevel:g=0,policy:{deterministic:b=!1,network:D=!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=Ifr(n,m);if(we.success)return we;let We={deterministic:b,maxOps:R,maxOpDuration:V,network:D,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:umr()},Me,Ct=new WWt(g),Rt=Xn=>(cmr(Ne,Xn,Xn.node),Me=Xn,Me),en=wfr({inputEnvironment:{preset:i,extra:l},startingNode:n,policy:We}),Tn=lmr(),hn=HWt(),on={policy:We,typeChecker:r,typescript:m,logger:Ct,stack:Tn,moduleOverrides:p,reporting:Ne,throwError:Rt,environment:en,statementTraversalStack:hn,getCurrentError:()=>Me},Pn=omr(on);try{let Xn;return smr(n,m)?Xn=Pn.expression(n,on):amr(n,m)?(Pn.statement(n,on),Xn=Tn.pop()):JTn(n,m)?(Pn.declaration(n,on),Xn=Tn.pop()):Rt(new KI({node:n,environment:en,typescript:m})),Me!=null?{success:!1,reason:Me}:(Ct.logResult(Xn),{success:!0,value:Xn})}catch(Xn){return Rt(Xn),{success:!1,reason:Xn}}}var BAn=_d(V8(),1),i4=_d(V8(),1),$Ve=_d(V8(),1);var s0e=_d(V8(),1);var Jj=_d(V8(),1);var KWt=_d(V8(),1);var XWt=_d(V8(),1);var pmr=r=>{if(Array.isArray(r))return"array";if(typeof r=="string")return"string";if(typeof r=="number")return"number";if(typeof r=="boolean")return"boolean";if(r===null)return"null";if(r===void 0)return"undefined";throw new Error(`Unexpected literal type: ${r}`)},uk=r=>r!=null,_An=r=>r==null,hAn=r=>r!=null&&typeof r=="object",fmr=r=>Array.isArray(r),dmr=r=>{let n=typeof r;return n==="string"||n==="number"||n==="boolean"||r===null||r===void 0},N1=r=>QVe.Node.isAsExpression(r)||QVe.Node.isParenthesizedExpression(r)||QVe.Node.isNonNullExpression(r)||QVe.Node.isTypeAssertion(r)?N1(r.getExpression()):r,mmr=r=>r.getTagNameNode().getText(),_mr=/\s+/g,gAn=r=>r.replaceAll(_mr," "),hmr=r=>{let n=r.getSourceFile(),[i,l]=[r.getStart(),r.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}},Jre=class{type;stack=[];node;constructor(r){this.type=r.type,this.node=r.node,this.stack=[...r.stack??[]]}getNode(){return this.node}getStack(){return this.stack}getRange=()=>hmr(this.node);toJSON(){let r=this.getRange();return{type:this.type,value:this.value,node:this.node.getKindName(),line:r.startLineNumber,column:r.startColumn}}toString(){return JSON.stringify(this.toJSON(),null,2)}},pAn=class extends Jre{value;isEmpty;constructor(r){super(r),this.value=r.value,this.isEmpty=r.isEmpty}},gmr=class extends Jre{value;kind;constructor(r){super(r),this.value=r.value,this.kind=r.kind}},Bmr=class extends Jre{value;spreadConditions;constructor(r){super(r),this.value=r.value}},ymr=class extends Jre{value;constructor(r){super(r),this.value=r.value}},Cmr=class extends Jre{},vmr=class extends Jre{whenTrue;whenFalse;constructor(r){super(r),this.whenTrue=r.whenTrue,this.whenFalse=r.whenFalse}},bmr=class extends Jre{},uxe=r=>r instanceof Jre;function qWt(r,n,i){return H_(r).when(_An,()=>{}).when(uxe,l=>l).when(hAn,l=>Vc.object(l,n,i)).when(fmr,l=>l.length===1?qWt(l[0],n,i):l.map(p=>qWt(p,n,i))).when(dmr,l=>Vc.literal(l,n,i)).otherwise(()=>{})}var Vc={object(r,n,i){return new pAn({type:"object",value:r,node:n,stack:i})},literal(r,n,i){return new gmr({type:"literal",value:r,kind:pmr(r),node:n,stack:i})},map(r,n,i){return new Bmr({type:"map",value:r,node:n,stack:i})},array(r,n,i){return new ymr({type:"array",value:r,node:n,stack:i})},conditional(r,n,i,l){return new vmr({type:"conditional",whenTrue:r,whenFalse:n,node:i,stack:l})},from:qWt,emptyObject:(r,n)=>new pAn({type:"object",value:{},isEmpty:!0,node:r,stack:n}),emptyInitializer:(r,n)=>new bmr({type:"empty-initializer",node:r,stack:n}),unresolvable:(r,n)=>new Cmr({type:"unresolvable",node:r,stack:n}),isObject(r){return r?.type==="object"},isLiteral(r){return r?.type==="literal"},isMap(r){return r?.type==="map"},isArray(r){return r?.type==="array"},isUnresolvable(r){return r?.type==="unresolvable"},isConditional(r){return r?.type==="conditional"},isEmptyInitializer(r){return r?.type==="empty-initializer"},isNumberLiteral(r){return Vc.isLiteral(r)&&r.kind==="number"},hasValue:r=>Vc.isObject(r)||Vc.isLiteral(r)||Vc.isMap(r)||Vc.isArray(r)},yAn=Symbol("EvalError"),JWt=new WeakMap,Smr=(r,n,i)=>{if(i.flags?.skipEvaluate||i.canEval&&!i.canEval?.(r,n))return;if(JWt.has(r))return JWt.get(r);let l=uAn({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?.(r,n),node:r.compilerNode,typescript:BAn.ts}),p=l.success?l.value:yAn;return JWt.set(r,p),p},Tst=(r,n,i)=>{let l=Smr(r,n,i);if(l!==yAn)return l};function xmr(r){return i4.Node.isFunctionDeclaration(r)||i4.Node.isFunctionExpression(r)||i4.Node.isArrowFunction(r)||i4.Node.isSourceFile(r)}function Emr(r,n,i){let l=r.getParent();if(!l)return;let p=[],m;if((i4.Node.isVariableDeclaration(l)||i4.Node.isParameterDeclaration(l)||i4.Node.isFunctionDeclaration(l)||i4.Node.isBindingElement(l))&&l.getNameNode()==r)p.push(l),m=l;else if(i4.Node.isImportSpecifier(l)&&l.getNameNode()==r){if(i.flags?.skipTraverseFiles)return;let g=EAn(l.getImportDeclaration());if(g){let b=[l,g],D=xAn(r.getText(),g,b,i);D&&(p.push(...b.concat(D)),m=D)}}return m&&n.push(...p),m}var Dmr=r=>{let n=r.getParent();for(;n&&!xmr(n);)n=n.getParent();return n};function Ist(r,n,i,l=new Map){let p=r,m,g=!1,b=0,D=[];do{if(p=Dmr(p),b++,!p)return;let I=r.getText();if(p.forEachDescendant((R,V)=>{if(l.has(R)){V.skip(),D.push(...l.get(R));return}if(R!=r&&(l.set(R,D),i4.Node.isIdentifier(R)&&R.getText()==I)){let X=[R],ue=Emr(R,X,i);if(ue){if(i4.Node.isParameterDeclaration(ue)){let De=ue.getInitializer(),we=ue.getTypeNode();De?(D.push(...X.concat(De)),m=ue):we&&i4.Node.isTypeLiteral(we)?(D.push(...X.concat(we)),m=ue):g=!0,V.stop();return}D.push(...X),m=ue,V.stop()}}}),m||g)return m&&n.push(...D),m}while(p&&!i4.Node.isSourceFile(p)&&!m&&!g&&b<100)}var Tmr=(r,n,i)=>H_(r).when(s0e.Node.isPropertyAssignment,l=>{let p=N1(l.getNameNode());return H_(p).when(s0e.Node.isIdentifier,m=>Vc.from(m.getText(),m,n)).when(s0e.Node.isComputedPropertyName,m=>{let g=m.getExpression();return n.push(g),FU(g,n,i)}).when(pI.or(s0e.Node.isStringLiteral,s0e.Node.isNumericLiteral),m=>Vc.from(m.getLiteralText(),m,n)).otherwise(()=>{})}).when(s0e.Node.isShorthandPropertyAssignment,l=>{let p=l.getName();if(p!=null)return Vc.from(p,l,n)}).otherwise(()=>{}),Amr=(r,n,i,l)=>{let p=r.getProperties();if(p.length===0)return Vc.emptyObject(r,n);let m=[],g=[];p.forEach(I=>{let R=[...n];if(R.push(I),$Ve.Node.isPropertyAssignment(I)||$Ve.Node.isShorthandPropertyAssignment(I)){let V=Tmr(I,R,i);if(!V)return;let X=V.value;if(_An(X)||l&&!l?.({propName:X,propNode:I}))return;if($Ve.Node.isShorthandPropertyAssignment(I)){let We=I.getNameNode();R.push(We);let Ne=Ab(We,R,i);if(Ne){m.push([X.toString(),Ne]);return}}let ue=I.getInitializer();if(!ue)return;let De=N1(ue);R.push(De);let we=Ab(De,R,i);if(we){m.push([X.toString(),we]);return}}if($Ve.Node.isSpreadAssignment(I)){let V=N1(I.getExpression());R.push(V);let X=Ab(V,R,i,l);if(!X)return;if(Vc.isObject(X)){Object.entries(X.value).forEach(([ue,De])=>{let we=Vc.from(De,V,R);we&&m.push([ue,we])});return}if(Vc.isMap(X)){X.value.forEach((ue,De)=>{m.push([De,ue])});return}Vc.isConditional(X)&&g.push(X)}});let b=new Map;m.forEach(([I,R])=>{b.has(I)&&b.delete(I),b.set(I,R)});let D=Vc.map(b,r,n);return g.length>0&&(D.spreadConditions=g),D},YWt=new WeakMap,kmr=r=>YWt.has(r),wmr=r=>YWt.get(r),Imr=r=>r===jp.ts.SyntaxKind.PlusToken,Pmr=r=>r===jp.ts.SyntaxKind.BarBarToken||r===jp.ts.SyntaxKind.QuestionQuestionToken||r===jp.ts.SyntaxKind.AmpersandAmpersandToken||r===jp.ts.SyntaxKind.EqualsEqualsEqualsToken||r===jp.ts.SyntaxKind.EqualsEqualsToken||r===jp.ts.SyntaxKind.ExclamationEqualsEqualsToken||r===jp.ts.SyntaxKind.ExclamationEqualsToken||r===jp.ts.SyntaxKind.GreaterThanEqualsToken||r===jp.ts.SyntaxKind.GreaterThanToken||r===jp.ts.SyntaxKind.LessThanEqualsToken||r===jp.ts.SyntaxKind.LessThanToken||r===jp.ts.SyntaxKind.InstanceOfKeyword||r===jp.ts.SyntaxKind.InKeyword,Nmr=r=>r===jp.ts.SyntaxKind.AsteriskToken||r===jp.ts.SyntaxKind.SlashToken||r===jp.ts.SyntaxKind.PercentToken||r===jp.ts.SyntaxKind.AsteriskAsteriskToken||r===jp.ts.SyntaxKind.MinusToken,Rmr=r=>r===jp.ts.SyntaxKind.BarBarToken||r===jp.ts.SyntaxKind.QuestionQuestionToken;function Ab(r,n,i,l){let p=m=>(YWt.set(r,m),m);return H_(r).when(kmr,wmr).when(pI.or(jp.Node.isStringLiteral,jp.Node.isNoSubstitutionTemplateLiteral),m=>{let g=gAn(m.getLiteralValue());return p(Vc.literal(g,m,n))}).when(jp.Node.isObjectLiteralExpression,m=>p(Amr(m,n,i,l))).when(pI.or(jp.Node.isTrueLiteral,jp.Node.isFalseLiteral),m=>{let g=m.getLiteralValue();return p(Vc.literal(g,m,n))}).when(jp.Node.isNumericLiteral,m=>{let g=m.getLiteralValue();return p(Vc.literal(g,m,n))}).when(jp.Node.isNullLiteral,m=>p(Vc.literal(null,m,n))).when(jp.Node.isPrefixUnaryExpression,m=>{let g=m.getOperand(),b=m.getOperatorToken(),D=Ab(g,n,i);if(Vc.isNumberLiteral(D))return p(b===jp.ts.SyntaxKind.MinusToken?Vc.literal(-Number(D.value),m,n):D)}).when(jp.Node.isArrayLiteralExpression,m=>{let g=m.getElements().map(b=>Ab(b,n,i)??p(Vc.unresolvable(b,n)));return p(Vc.array(g,m,n))}).when(jp.Node.isIdentifier,m=>H_(m.getText()).with("undefined",()=>p(Vc.literal(void 0,m,n))).otherwise(()=>p(Vmr(m,n,i)))).when(jp.Node.isTemplateHead,m=>p(Vc.literal(m.getLiteralText(),m,n))).when(jp.Node.isTemplateExpression,m=>{let g=vAn(m,n,i);return p(Vc.literal(g,m,n))}).when(jp.Node.isTaggedTemplateExpression,m=>p(Ab(m.getTemplate(),n,i))).when(jp.Node.isElementAccessExpression,m=>p(kst(m,n,i))).when(jp.Node.isPropertyAccessExpression,m=>p(wst(m,[],n,i))).when(jp.Node.isConditionalExpression,m=>{if(i.flags?.skipConditions)return p(Vc.unresolvable(m,n));let g=N1(m.getCondition()),b=(jp.Node.isIdentifier(g)?Ab(g,[],i):Tst(g,n,i))??Vc.unresolvable(g,n),D=uxe(b)?b:Vc.from(b,m,n);if(Vc.isEmptyInitializer(D))return;let I=D.getStack().some(ue=>jp.Node.isBindingElement(ue));if(Vc.isUnresolvable(D)||Vc.isConditional(D)||I){let ue=N1(m.getWhenTrue()),De=N1(m.getWhenFalse());return p(fAn({whenTrueExpr:ue,whenFalseExpr:De,node:m,stack:n},i))}if(D.value){let ue=N1(m.getWhenTrue()),De=[...n],we=Ab(ue,De,i);return p(we??Vc.unresolvable(ue,n))}let R=N1(m.getWhenFalse()),V=[...n],X=Ab(R,V,i);return p(X??Vc.unresolvable(m,n))}).when(jp.Node.isCallExpression,m=>{let g=Tst(m,n,i);if(g)return p(Vc.from(g,m,n))}).when(jp.Node.isBinaryExpression,m=>{let g=m.getOperatorToken().getKind();return H_(g).when(Imr,()=>{let b=DAn(m,n,i)??Tst(m,n,i);if(b)return p(Vc.from(b,m,n))}).when(Pmr,b=>{let D=N1(m.getLeft()),I=N1(m.getRight()),R={whenTrueExpr:D,whenFalseExpr:I,node:m,stack:n,canReturnWhenTrue:Rmr(b)};return p(fAn(R,i))}).when(Nmr,()=>p(Vc.literal(Tst(m,n,i),m,n))).otherwise(()=>{})}).otherwise(()=>{})}var CAn=r=>{if(r&&uxe(r)&&Vc.isLiteral(r)&&typeof r.value=="string")return r},Lmr=r=>{if(r&&uxe(r)&&Vc.isLiteral(r)&&typeof r.value=="number")return r},Mmr=(r,n,i)=>CAn(Ab(r,n,i)),FU=(r,n,i)=>{let l=Ab(r,n,i),p=CAn(l);if(p)return p;let m=Lmr(l);if(m)return m},fAn=({whenTrueExpr:r,whenFalseExpr:n,node:i,stack:l,canReturnWhenTrue:p},m)=>{let g=Ab(r,l,m),b=Ab(n,l,m);if(p&&g&&!Vc.isUnresolvable(g))return g;if(jp.Node.isBinaryExpression(i)&&i.getOperatorToken().getKind()===jp.ts.SyntaxKind.AmpersandAmpersandToken&&g&&b&&Vc.isLiteral(g)&&g.value===!0)return b;if(!g&&!b)return;if(g&&!b)return g;if(!g&&b)return b;let D=g,I=b;return Vc.isLiteral(D)&&Vc.isLiteral(I)&&D.value===I.value?D:Vc.conditional(D,I,i,l)},Fmr=(r,n,i,l)=>{let p=[...i];if(jp.Node.isPropertyAssignment(r)){let m=r.getNameNode();if(jp.Node.isIdentifier(m)&&m.getText()===n)return p.push(m),r;if(jp.Node.isStringLiteral(m)&&m.getLiteralText()===n)return p.push(m),m.getLiteralText();if(jp.Node.isComputedPropertyName(m)){let g=N1(m.getExpression()),b=FU(g,p,l);if(!b)return;if(String(b.value)===n)return p.push(m,g),r}}if(jp.Node.isShorthandPropertyAssignment(r)){let m=r.getNameNode();if(jp.Node.isIdentifier(m)&&m.getText()===n)return p.push(m),r}},QWt=(r,n,i,l)=>{let p=[...i],m=n.pop(),g=r.getProperty(m)??r.getProperties().find(b=>Fmr(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?QWt(b,n,p,l):Ab(b,p,l);let D=Ab(b,p,l);if(D)return D}if(jp.Node.isShorthandPropertyAssignment(g)){let b=g.getNameNode();if(n.length>0)return MU(b,n,p,l);let D=Ab(b,p,l);if(D)return D}}},vAn=(r,n,i)=>{let l=r.getHead(),p=r.getTemplateSpans(),m=Mmr(l,n,i);if(!m)return;let g=p.map(b=>{let D=b.getExpression(),I=FU(D,n,i);if(!I)return;let R=b.getLiteral();return I.value+R.getLiteralText()});if(g.every(uk))return m.value+g.join("")},bAn=(r,n,i,l)=>{let p=r.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 D=N1(b);if(!jp.Node.isArrayLiteralExpression(D))return;let I=D.getElements()[g+1];if(!I)return;let R=[...n,D,I],V=Ab(I,R,l);if(!V)return;if(Vc.isObject(V)){let ue=V.value[i];return Vc.from(ue,I,R)}if(!Vc.isMap(V))return V;let X=V.value.get(i);return X||void 0}}jp.Node.isObjectBindingPattern(p)}};function Omr(r,n,i,l){let p=n.at(-1);if(jp.Node.isVariableDeclaration(r)){let m=r.getInitializer();if(!m){let I=r.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=$Wt(De,V,l);return Vc.from(we,De,V)}let R=SAn(I,p,i,l);return i.push(I),Vc.from(R,I,i)}return}let g=N1(m);if(jp.Node.isObjectLiteralExpression(g)){let I=QWt(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=Ab(R,i,l);if(V&&uxe(V)&&Vc.isLiteral(V))return V}let b=[...i,g],D=Ab(g,b,l);if(D)return D}if(jp.Node.isBindingElement(r)){let m=bAn(r,i,p,l);if(m)return m}}var MU=(r,n,i,l)=>{let p=Ist(r,i,l);if(!p)return Vc.unresolvable(r,i);let m=Omr(p,n,i,l);return m||Vc.unresolvable(r,i)},o0e=new WeakMap,SAn=(r,n,i,l)=>{if(o0e.has(r)){let g=o0e.get(r);if(g===null)return;if(g?.has(n))return g.get(n)}let m=r.getMembers().find(g=>jp.Node.isPropertySignature(g)&&g.getName()===n);if(jp.Node.isPropertySignature(m)&&m.isReadonly()){let g=m.getTypeNode();if(!g){o0e.set(r,null);return}let b=$Wt(g,i,l);if(uk(b))return o0e.has(r)||o0e.set(r,new Map),o0e.get(r).set(n,b),b}o0e.set(r,null)};function Wmr(r){return jp.Node.isStringLiteral(r)?r.getLiteralText():r.getText()}var YVe=new WeakMap,$Wt=(r,n,i)=>{if(YVe.has(r))return YVe.get(r);if(jp.Node.isLiteralTypeNode(r)){let l=r.getLiteral();if(jp.Node.isStringLiteral(l)){let p=l.getLiteralText();return YVe.set(r,p),p}}if(jp.Node.isTypeLiteral(r)){let l=r.getMembers();if(!l.some(p=>!jp.Node.isPropertySignature(p)||!p.isReadonly())){let m=l.map(b=>{let D=b.getNameNode(),I=D.getText(),R=Wmr(D);if(!R)return;let V=SAn(r,I,n,i);return[R,V]}).filter(uk),g=Object.fromEntries(m);return YVe.set(r,g),g}}YVe.set(r,void 0)},Gmr=(r,n,i)=>{if(jp.Node.isShorthandPropertyAssignment(r)){let l=r.getNameNode();return MU(l,[l.getText()],n,i)}if(jp.Node.isVariableDeclaration(r)){let l=r.getInitializer();if(!l){let b=r.getTypeNode();if(!b)return;if(jp.Node.isTypeLiteral(b)){n.push(b);let D=$Wt(b,n,i);if(uk(D))return Vc.from(D,r,n)}return Vc.unresolvable(r,n)}let p=N1(l),m=[...n,p],g=Ab(p,m,i);if(g)return g}if(jp.Node.isBindingElement(r)){let l=r.getInitializer();if(!l){let b=r.getPropertyNameNode()??r.getNameNode(),D=b.getText(),I=[...n,b],R=bAn(r,I,D,i);return R||Vc.unresolvable(r,n)}let p=N1(l),m=[...n,p],g=Ab(p,m,i);if(g)return g}},xAn=(r,n,i,l)=>{let p=n.getVariableDeclaration(r);if(p)return p;let m=jmr(r,n,i,l);if(m)return m},zmr=(r,n)=>{let i=n.getNamedExports();if(i.length===0)return!0;for(let l of i)if(l.getNameNode().getText()===r)return!0},EAn=r=>{let n=r.getProject(),i=r.getModuleSpecifierValue();if(!i)return;let l=r.getSourceFile().getFilePath(),p=jp.ts.resolveModuleName(i,l,n.getCompilerOptions(),n.getModuleResolutionHost());return p.resolvedModule?n.addSourceFileAtPath(p.resolvedModule.resolvedFileName):void 0};function jmr(r,n,i,l){for(let p of n.getExportDeclarations()){let m=[p];if(!zmr(r,p))continue;let g=EAn(p);if(!g)continue;m.push(g);let b=xAn(r,g,i,l);if(b)return i.push(...m.concat(b)),b}}var Vmr=(r,n,i)=>{let l=Ist(r,n,i);if(!l)return Vc.unresolvable(r,n);let p=N1(l),m=[...n],g=Gmr(p,m,i);return g||Vc.unresolvable(r,m)},DAn=(r,n,i)=>{let l=N1(r.getLeft()),p=N1(r.getRight()),m=FU(l,n,i),g=FU(p,n,i);if(!(!m||!g)&&uk(m.value)&&uk(g.value))return Vc.literal(String(m.value)+String(g.value),r,n)},kst=(r,n,i)=>{let l=N1(r.getExpression()),p=r.getArgumentExpression();if(!p)return;let m=N1(p),g=[...n,l,m],b=FU(m,g,i);if(jp.Node.isIdentifier(l)&&b)return uk(b.value)?MU(l,[b.value.toString()],g,i):void 0;if(jp.Node.isBinaryExpression(m)){if(m.getOperatorToken().getKind()!==jp.ts.SyntaxKind.PlusToken)return;let D=DAn(m,g,i)??FU(m,g,i);if(D&&jp.Node.isIdentifier(l))return uk(D.value)?MU(l,[D.value.toString()],g,i):void 0}if(jp.Node.isTemplateExpression(m)){let D=vAn(m,g,i);if(D&&jp.Node.isIdentifier(l))return MU(l,[D],g,i)}if(jp.Node.isObjectLiteralExpression(l)&&b)return uk(b.value)?QWt(l,[b.value.toString()],g,i):void 0;if(jp.Node.isPropertyAccessExpression(m))return wst(m,[],g,i);if(jp.Node.isPropertyAccessExpression(l)&&b&&uk(b.value)){let D=wst(l,[],g,i);if(!D)return Vc.unresolvable(l,g);let I=b.value.toString();if(Vc.isObject(D)){let R=D.value[I];return Vc.from(R,m,g)}if(Vc.isMap(D)){let R=D.value.get(I);return Vc.from(R,m,g)}if(Vc.isArray(D)){let R=D.value[Number(I)];return Vc.from(R,m,g)}return Vc.unresolvable(l,g)}if(jp.Node.isIdentifier(l)&&jp.Node.isElementAccessExpression(m)){let D=kst(m,g,i);if(typeof D=="string"&&uk(D))return MU(l,[D],g,i)}if(jp.Node.isElementAccessExpression(l)&&b&&uk(b.value)){let D=kst(l,g,i);if(hAn(D)){let I=b.value.toString();if(Vc.isMap(D))return D.value.get(I);if(Vc.isObject(D)){let R=D.value[I];return R?Vc.from(R,r,g):void 0}}}if(jp.Node.isArrayLiteralExpression(l)&&b)return Umr(l,Number(b.value),g,i);if(jp.Node.isConditionalExpression(m)){if(i.flags?.skipConditions)return Vc.unresolvable(m,g);let D=FU(m,g,i);if(uk(D)&&uk(D.value)&&jp.Node.isIdentifier(l))return MU(l,[D.value.toString()],g,i);let I=N1(m.getWhenTrue()),R=N1(m.getWhenFalse()),V=FU(I,g,i),X=FU(R,g,i);if(jp.Node.isIdentifier(l)){let ue=V&&uk(V.value)?MU(l,[V.value.toString()],g,i):void 0,De=X&&uk(X.value)?MU(l,[X.value.toString()],g,i):void 0;return!ue&&!De?void 0:ue&&!De?ue:!ue&&De?De:Vc.conditional(ue,De,m,g)}}},Umr=(r,n,i,l)=>{let p=r.getElements()[n];if(!p)return;let m=Ab(p,i,l);if(uk(m))return m},wst=(r,n,i,l)=>{let p=r.getName(),m=N1(r.getExpression()),g=n.concat(p);if(i.push(m),jp.Node.isIdentifier(m))return MU(m,g,i,l);if(jp.Node.isPropertyAccessExpression(m))return wst(m,g,i,l);if(jp.Node.isElementAccessExpression(m)){let b=kst(m,i,l);if(!b)return;if(Vc.isObject(b)){let D=b.value[p];return Vc.from(D,r,i)}if(Vc.isMap(b)){let D=b.value.get(p);return Vc.from(D,r,i)}}},dAn=()=>!0,Pst=(r,n,i=dAn,l=dAn)=>{let p=r.getArguments(),m=r.getExpression().getText();return p.length===0?Vc.array([],r,[]):Vc.array(p.map((g,b)=>{let D=N1(g),I=[r,D];return H_(D).when(R=>l({fnNode:r,fnName:m,argNode:R,index:b}),R=>Ab(R,I,n,i)??Vc.unresolvable(R,I)).otherwise(()=>Vc.unresolvable(D,I))}),r,[])},Nst=(r,n)=>{let i=r.getInitializer(),l=[r,i];return H_(i).with(FS.nullish,()=>{let p=r.getNameNode();return Vc.emptyInitializer(p,l)}).when(KWt.Node.isStringLiteral,p=>{let m=p.getLiteralText();return Vc.literal(gAn(m),p,l)}).when(KWt.Node.isJsxExpression,p=>{let m=p.getExpression();if(!m)return;let g=N1(m);if(!g)return;l.push(g);let b=Ab(g,l,n);if(b)return b}).otherwise(()=>{})},TAn=(r,n,i)=>{let l=N1(r.getExpression());return Ab(l,[],n,i)},mAn=(r,n)=>r?uxe(r)?Vc.isUnresolvable(r)||Vc.isConditional(r)?new Map:Vc.isMap(r)?r.value:new Map(Object.entries(r.value).map(([i,l])=>{let p=Vc.from(l,r.getNode()??n,r.getStack()??[]);return[i,p||null]}).filter(([,i])=>i!==null)):new Map(Object.entries(r)):new Map,Hmr=pI.or(Jj.Node.isImportDeclaration,Jj.Node.isExportDeclaration),AAn=({ast:r,...n})=>{let{components:i,functions:l,taggedTemplates:p}=n,m=new Map,g=new Map,b,D,I,R,V;return r.forEachDescendant((X,ue)=>{if(Hmr(X)){ue.skip();return}if(i){if(Jj.Node.isJsxOpeningElement(X)||Jj.Node.isJsxSelfClosingElement(X)){if(b=X,D=mmr(b),I=D.includes("."),!i.matchTag({tagNode:b,tagName:D,isFactory:I})){b=void 0;return}m.has(D)||m.set(D,{kind:"component",nodesByProp:new Map,queryList:[]}),R=m.get(D).nodesByProp,g.has(b)||g.set(b,{name:D,props:new Map,conditionals:[]}),V=g.get(b)}if(Jj.Node.isJsxSpreadAttribute(X)){if(!b||!V)return;let De=({propName:Me,propNode:Ct})=>i.matchProp({tagNode:b,tagName:D,propName:Me,propNode:Ct}),we=TAn(X,n,mU(De));if(!we)return;let We=Me=>{let Ct=mAn(Me,X),Rt=Vc.isMap(Me),en=Vc.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=>H_(Me).when(Vc.isConditional,Ct=>{V.conditionals.push(Ct)}).when(pI.or(Vc.isObject,Vc.isMap),Ct=>We(Ct)).otherwise(PZe))(we);return}if(Jj.Node.isJsxAttribute(X)){if(!b||!V)return;let De=X.getNameNode().getText();if(!i.matchProp({tagNode:b,tagName:D,propName:De,propNode:X}))return;ok(Nst(X,n),Uje.fromNullable,Uje.tap(we=>{V.props.set(De,we),R.set(De,(R.get(De)??[]).concat(we))}))}}if(l&&Jj.Node.isCallExpression(X)){let De=X.getExpression(),we=Jj.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=Pst(X,n,We,l.matchArg),Rt=ok(Ct.value,M8.map(Tn=>H_(Tn).when(pI.or(Vc.isObject,Vc.isMap),hn=>{let on=mAn(hn,X),Pn=Vc.isMap(hn);on.forEach((Jt,Gs)=>{(Pn||We({propName:Gs,propNode:X}))&&Me.set(Gs,(Me.get(Gs)??[]).concat(Jt))});let Xn=Vc.map(on,X,hn.getStack());return Vc.isMap(hn)&&hn.spreadConditions?.length&&(Xn.spreadConditions=hn.spreadConditions),Xn}).otherwise(hn=>hn))),en={kind:"call-expression",name:we,box:Vc.array(Rt,X,[])};Ne.queryList.push(en)}if(p&&Jj.Node.isTaggedTemplateExpression(X)){let De=X.getTag(),we=Jj.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:Ab(X,[],n)};We.queryList.push(Ne)}}),g.forEach((X,ue)=>{let De=g.get(ue);if(!De)return;let we=mU({name:X.name,box:Vc.map(De.props,ue,[])});De.conditionals?.length&&(we.box.spreadConditions=De.conditionals);let We=X.name;m.get(We).queryList.push(we)}),m},Jmr=pI.or(Vc.isObject,Vc.isMap),kAn=(r,n)=>{let i=r.getTagNameNode().getText(),l=r.getAttributes(),p=new Map;return l.forEach(m=>{if(XWt.Node.isJsxAttribute(m)){let g=m.getNameNode(),b=Nst(m,n);if(!b)return;p.set(g.getText(),b);return}if(XWt.Node.isJsxSpreadAttribute(m)){let g=TAn(m,n,()=>!0);if(!Jmr(g))return;Vc.isMap(g)&&g.value.forEach((b,D)=>{p.set(D,b)}),Vc.isObject(g)&&Object.entries(g.value).forEach(([b,D])=>{p.set(b,Vc.literal(D,r,[]))})}}),{name:i,props:p}},Ast=(r,n)=>{if(!r.length)return n;let i={};return r.reduce((l,p,m)=>{let g=m===r.length-1;return l[p]=g?n:{},g?i:l[p]},i),i},Hre=(r,n)=>H_(r).with(FS.nullish,()=>{}).when(Vc.isConditional,i=>{let l=n.path,p=Hre(i.whenTrue,Object.assign({},n,{path:l,parent:i})),m=Hre(i.whenFalse,Object.assign({},n,{path:l,parent:i}));p&&n.conditions.push(Ast(l,p)),m&&n.conditions.push(Ast(l,m))}).when(pI.or(Vc.isLiteral,Vc.isObject),i=>i.value).when(Vc.isEmptyInitializer,()=>!0).when(Vc.isMap,i=>{if(i.spreadConditions){let l=n.path;i.spreadConditions.forEach(p=>{let m=Hre(p.whenTrue,Object.assign({},n,{path:l,parent:i})),g=Hre(p.whenFalse,Object.assign({},n,{path:l,parent:i}));m&&n.spreadConditions.push(Ast(l,m)),g&&n.spreadConditions.push(Ast(l,g))})}return ok(M8.from(i.value.entries()),M8.map(([l,p])=>[l,Hre(p,Object.assign({},n,{path:n.path.concat(l),parent:i}))]),M8.filter(([,l])=>uk(l)),Object.fromEntries)}).when(Vc.isArray,i=>{let l=0;return ok(i.value,M8.map(p=>Hre(p,Object.assign({},n,{path:n.path.concat(String(l++)),parent:i}))),M8.filter(uk),p=>p.flat())}).otherwise(()=>{}),qmr=new WeakMap,Kmr=r=>({value:r,has:n=>r.has(n),get:n=>r.get(n),set:(n,i)=>r.set(n,i)}),qj=(r,n)=>{let i={cache:n?.cache??qmr,...n,path:[],parent:void 0,conditions:[],spreadConditions:[]},l=Kmr(i.cache);return{raw:H_(r).with(FS.nullish,()=>{}).when(l.has,l.get).when(Array.isArray,m=>{let g=ok(m,M8.map(b=>Hre(b,i)),M8.filter(uk),M8.head);return l.set(m,g),g}).otherwise(m=>{let g=Hre(m,i);return l.set(m,g),g})??{},conditions:i.conditions,spreadConditions:i.spreadConditions}};re();re();re();re();function ZVe(r){return Object.prototype.toString.call(r).slice(8,-1)}function Xmr(r){return ZVe(r)==="Undefined"}function Ymr(r){return ZVe(r)==="Null"}function eUe(r){if(ZVe(r)!=="Object")return!1;let n=Object.getPrototypeOf(r);return n.constructor===Object&&n===Object.prototype}function ZWt(r){return ZVe(r)==="Array"}function eGt(r){return ZVe(r)==="Symbol"}var m0i=Qmr(Ymr,Xmr);function Qmr(r,n,i,l,p){return m=>r(m)||n(m)||!!i&&i(m)||!!l&&l(m)||!!p&&p(m)}function $mr(r,n){return ZWt(r)&&ZWt(n)?r.concat(n):n}function wAn(r,n,i,l){let p={}.propertyIsEnumerable.call(l,n)?"enumerable":"nonenumerable";p==="enumerable"&&(r[n]=i),p==="nonenumerable"&&Object.defineProperty(r,n,{value:i,enumerable:!1,writable:!0,configurable:!0})}function IAn(r,n,i){if(!eUe(n))return n;let l={};if(eUe(r)){let b=Object.getOwnPropertyNames(r),D=Object.getOwnPropertySymbols(r);l=[...b,...D].reduce((I,R)=>{let V=r[R];return(!eGt(R)&&!Object.getOwnPropertyNames(n).includes(R)||eGt(R)&&!Object.getOwnPropertySymbols(n).includes(R))&&wAn(I,R,V,r),I},{})}let p=Object.getOwnPropertyNames(n),m=Object.getOwnPropertySymbols(n);return[...p,...m].reduce((b,D)=>{let I=n[D],R=eUe(r)?r[D]:void 0;R!==void 0&&eUe(I)&&(I=IAn(R,I,i));let V=i?i(R,I,D):I;return wAn(b,D,V,n),b},l)}function PAn(r,...n){return n.reduce((i,l)=>IAn(i,l,$mr),r)}var NAn=r=>Object.prototype.toString.call(r)==="[object Object]";function tGt(r,...n){let i=n.pop();for(let l of n)for(let p in l){let m=i(r[p],l[p]);m===void 0?NAn(r[p])&&NAn(l[p])?r[p]=tGt({},r[p],l[p],i):r[p]=l[p]:r[p]=m}return r}function RAn(r,...n){for(let i of n)for(let l in i)r?.hasOwnProperty?.(l)||(r[l]=i[l]);return r}function Zmr(r){return r.reduce((n,{extend:i})=>i?tGt(n,i,(l,p)=>p===void 0?l??[]:l===void 0?[p]:Array.isArray(l)?[p,...l]:[p,l]):n,{})}function e_r(r){return{...r.reduce((n,i)=>RAn(n,i),{}),extend:Zmr(r)}}function tUe(r){let{extend:n=[],...i}=e_r(r);return tGt(i,n,(l,p)=>PAn({},l,...p))}var t_r=r=>typeof r=="object"&&Object.keys(r).length===0,n_r=r=>Object.keys(r).reduce((n,i)=>(r[i]!==void 0&&!t_r(r[i])&&(n[i]=r[i]),n),{});function LAn(r){let n=RAn({conditions:tUe(r.map(i=>i.conditions??{})),theme:tUe(r.map(i=>i.theme??{})),patterns:tUe(r.map(i=>i.patterns??{})),utilities:tUe(r.map(i=>i.utilities??{})),globalCss:tUe(r.map(i=>i.globalCss??{}))},...r);return n_r(n)}re();var Rst=require("path"),nUe=(r,n)=>{for(let i of r){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]}).split(Rst.sep).join(Rst.posix.sep)}}};re();var pxe=require("path"),Lst=require("fs");function MAn(r,n){let i=(0,pxe.resolve)(".",r),l;for((0,Lst.statSync)(i).isDirectory()||(i=(0,pxe.dirname)(i));;){if(l=n(i,(0,Lst.readdirSync)(i)),l)return(0,pxe.resolve)(i,l);if(i=(0,pxe.dirname)(l=i),l===i)break}}var VAn=require("path"),rUe=_d(require("fs"),1),fxe=_d(require("path"),1),UAn=require("path"),nGt=_d(SWt(),1);re();var FAn=require("esbuild"),OAn=_d(require("path"),1),Mst=_d(require("fs"),1),OU=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(n,i)=>(typeof require<"u"?require:n)[i]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+r+'" is not supported')});function r_r(r){let n=Mst.default.realpathSync(r);delete OU.cache[r];let i=OU(n);return{mod:i.default??i,dependencies:[n],code:Mst.default.readFileSync(n,"utf-8")}}async function i_r(r,n){let i=await(0,FAn.build)({absWorkingDir:n,entryPoints:[r],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 o_r(r,n){let i=OAn.default.extname(r),l=Mst.default.realpathSync(r),p=OU.extensions[i];OU.extensions[i]=(b,D)=>{D===l?b._compile(n,D):p(b,D)},delete OU.cache[OU.resolve(r)];let m=OU(r),g=m.default??m;return OU.extensions[i]=p,g}async function WAn(r,n={}){let{cwd:i=process.cwd()}=n,l=OU.resolve(r,{paths:[i]});try{return r_r(l)}catch{let p=await i_r(l,i);try{p.mod=await o_r(l,p.code)}catch{p.mod=OU("node-eval")(p.code).default}return p}}re();var GAn=class extends Error{code;hint;constructor(r,n,i){super(n),this.code=`ERR_PANDA_${r}`,this.hint=i?.hint}};var Fst=class extends GAn{constructor(){let r="Cannot find config file: panda.config.ts or panda.config.js/cjs/mjs/mts/cts. Did you forget to run `panda init`?";super("NO_CONFIG",r)}},zAn=class extends GAn{constructor(r){super("CONFIG_ERROR",r)}};var rGt=require("@pandacss/preset-base"),Wst=require("@pandacss/preset-panda"),s_r=[".ts",".js",".mts",".mjs",".cts",".cjs"],a_r=new RegExp(`panda.config(${s_r.join("|")})$`),l_r=r=>a_r.test(r);function c_r({cwd:r,file:n}){return n?(0,VAn.resolve)(r,n):MAn(r,(i,l)=>l.find(l_r))}function HAn(r,n){let i=Object.keys(r).sort((p,m)=>jAn(m)-jAn(p)),l=[];for(let p of i){let m=r[p];p=u_r(p).replace(/\*/g,"(.+)"),l.push({pattern:new RegExp("^"+p+"$"),paths:m.map(g=>(0,UAn.resolve)(n,g))})}return l}function jAn(r){let n=r.indexOf("*");return r.substr(0,n).length}function u_r(r){return r.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/-/g,"\\x2d")}var p_r=[".js",".cjs",".mjs"],f_r=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],d_r=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];function m_r(r,n){for(let i of n){let l=`${r}${i}`;if(rUe.default.existsSync(l)&&rUe.default.statSync(l).isFile())return l}for(let i of n){let l=`${r}/index${i}`;if(rUe.default.existsSync(l))return l}return null}var __r=/import[\s\S]*?['"](.{3,}?)['"]/gi,h_r=/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,g_r=/require\(['"`](.+)['"`]\)/gi,B_r=/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi;function Ost(r,n){let{filename:i,seen:l}=r,{moduleResolution:p,...m}=r.compilerOptions??{},g=m_r(fxe.default.resolve(r.cwd,i),p_r.includes(r.ext)?f_r:d_r);if(g===null||(n&&r.foundModuleAliases.set(n,g),l.size>1&&l.has(g)))return;l.add(g);let b=rUe.default.readFileSync(g,"utf-8"),D=[...b.matchAll(__r),...b.matchAll(h_r),...b.matchAll(g_r),...b.matchAll(B_r)];if(!D.length)return;let I={cwd:fxe.default.dirname(g),ext:fxe.default.extname(g),seen:l,baseUrl:r.baseUrl,pathMappings:r.pathMappings,foundModuleAliases:r.foundModuleAliases};D.forEach(R=>{let V=R[1];if(V[0]==="."){Ost(Object.assign({},I,{filename:V}));return}try{let X=nGt.default.resolveModuleName(V,g,m,nGt.default.sys).resolvedModule;if(X&&X.extension===".ts"){Ost(Object.assign({},I,{filename:X.resolvedFileName}));return}if(!r.pathMappings)return;let ue=nUe(r.pathMappings,V);if(!ue)return;Ost(Object.assign({},I,{filename:ue}),V)}catch{}})}function JAn(r,n={pathMappings:[]},i){if(r===null)return{deps:new Set,aliases:new Map};let l=new Map,p=new Set;return p.add(r),Ost({filename:r,ext:fxe.default.extname(r),cwd:fxe.default.dirname(r),seen:p,baseUrl:n.baseUrl,pathMappings:n.pathMappings??[],foundModuleAliases:l,compilerOptions:i}),{deps:p,aliases:l}}async function qAn(r,n){let{mod:i,dependencies:l}=await WAn(r,{cwd:n,interopDefault:!0});return{config:i?.default??i,dependencies:l}}async function y_r(r,n){let i=r.presets??[],l=[r];for(;i.length>0;){let p=await i.shift();if(typeof p=="string"){let m=await qAn(p,n);l.push(await m.config),i.unshift(...await m.config.presets??[])}else l.push(p),i.unshift(...p.presets??[])}return LAn(l)}var KAn={"@pandacss/preset-base":rGt.preset,"@pandacss/preset-panda":Wst.preset,"@pandacss/dev/presets":Wst.preset},C_r=Object.keys(KAn),v_r=r=>C_r.includes(r);async function XAn(r){let n=await S_r(r);return b_r(n,r.cwd)}async function b_r(r,n){let i=new Set;r.config.eject||i.add(rGt.preset),r.config.presets?r.config.presets.forEach(p=>{typeof p=="string"&&v_r(p)?i.add(KAn[p]):i.add(p)}):r.config.eject||i.add(Wst.preset),r.config.presets=Array.from(i);let l=await y_r(r.config,n);return{...r,config:l}}async function S_r(r){let{cwd:n,file:i}=r,l=c_r({cwd:n,file:i});if(!l)throw new Fst;P1.debug("config:path",l);let p=await qAn(l,n);if(typeof p.config!="object")throw new zAn("\u{1F4A5} Config must export or return an object.");return{...p,config:p.config,path:l}}var U8n=require("fs"),KHt=_d(vGt(),1),Zct=require("path");re();var gxe=require("path"),bGt=require("fs");var qwn=r=>r===(0,gxe.dirname)(r),wgr=Symbol("stop"),Igr=r=>r===wgr;var Qst=(r,n=process.cwd())=>{if(typeof r=="function"&&r(n)instanceof Promise)throw new Error("Async matcher can not be used in 'lookItUpSync'");if(typeof r=="string"){let l=(0,gxe.join)(n,r);return(0,bGt.existsSync)(l)?l:qwn(n)?null:Qst(r,(0,gxe.dirname)(n))}let i=r(n);return Igr(i)?null:i??(qwn(n)?null:Qst(r,(0,gxe.dirname)(n)))};re();var Bxe=_d(require("path"),1),tIn=require("fs"),nIn=_d(require("path"),1);var Yj=_d(require("path"),1),iIn=require("fs"),TGt=require("module"),HD=_d(require("path"),1),oIn=require("fs");async function Kwn(r,n){let i=Bxe.default.dirname(Bxe.default.resolve(r)),l=n?.root?Bxe.default.resolve(n.root):null;for(;i;){let p=await Pgr(i,n);if(p)return p;{if(l===i)break;let m=Bxe.default.dirname(i);if(m===i)break;i=m}}throw new Error(`no tsconfig file found for ${r}`)}async function Pgr(r,n){let i=Bxe.default.join(r,"tsconfig.json");if(n?.tsConfigPaths)return n.tsConfigPaths.has(i)?i:void 0;try{let l=await tIn.promises.stat(i);if(l.isFile()||l.isFIFO())return i}catch(l){if(l.code!=="ENOENT")throw l}}var i1i=nIn.default.sep;function Ngr(r){let n=Rgr(Lgr(Mgr(r)));return n.trim()===""?"{}":n}function Rgr(r){let n=!1,i=0,l="",p=null;for(let m=0;m<r.length;m++){let g=r[m];if(g==='"'&&(rIn(r,m)||(n=!n)),n){p=null;continue}if(g===","){p=m;continue}p&&(g==="}"||g==="]"?(l+=r.slice(i,p)+" ",i=p+1,p=null):g.match(/\s/)||(p=null))}return l+r.substring(i)}function rIn(r,n){let i=n-1,l=0;for(;r[i]==="\\";)i-=1,l+=1;return!!(l%2)}function $st(r,n,i){return r.slice(n,i).replace(/\S/g," ")}var SGt=Symbol("singleComment"),Xwn=Symbol("multiComment");function Lgr(r){let n=!1,i=!1,l=0,p="";for(let m=0;m<r.length;m++){let g=r[m],b=r[m+1];!i&&g==='"'&&(rIn(r,m)||(n=!n)),!n&&(!i&&g+b==="//"?(p+=r.slice(l,m),l=m,i=SGt,m++):i===SGt&&g+b===`\r
30730
+ ${p}`),r?wet(p,{minify:n}):p}catch(i){throw i instanceof o$t&&(P1.error("sheet",i.message),i.plugin&&P1.error("sheet",`By plugin: ${i.plugin}:`),i.source&&(P1.error("sheet",`Line ${i.line}:${i.column}, in:`),P1.error("sheet",i.source))),i}};append=(...r)=>{this.context.root.append(...r)};prepend=(...r)=>{this.context.root.prepend(...r)}},nSn=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="";strictTokens=!1;constructor(r){let{tokens:n,config:i={},separator:l,prefix:p,shorthands:m,strictTokens:g}=r;this.tokens=n,this.config=i,l&&(this.separator=l),p&&(this.prefix=p),g&&(this.strictTokens=g),m&&this.assignShorthands(),this.assignColorPaletteProperty(),this.assignProperties(),this.assignPropertyTypes()}register=(r,n)=>{this.assignProperty(r,n),this.assignPropertyType(r,n),this.config[r]=n};assignShorthands=()=>{for(let[r,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,r)})}};assignColorPaletteProperty=()=>{let r=this.tokens.colorPalettes;this.config.colorPalette={values:Object.keys(r),transform(n){return r[n]}}};resolveShorthand=r=>this.shorthands.get(r)??r;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=(r,n)=>`(${r} = ${n})`;hash=(r,n)=>`${r}${this.separator}${n}`;getPropertyValues=(r,n)=>{let{values:i}=r,l=p=>{let m=n?.(p);return m?{[m]:m}:void 0};return X7(i)?l?.(i)??this.tokens.getValue(i)??{}:Array.isArray(i)?i.reduce((p,m)=>(p[m]=m,p),{}):k4t(i)?i(n?l:this.getToken.bind(this)):i};getToken=r=>this.tokens.get(r);normalize=r=>r;assignProperty=(r,n)=>{let i=this.normalize(n);if(this.setTransform(r,i?.transform),!i)return;this.configs.set(r,i);let l=this.getPropertyValues(i);if(l)for(let[p,m]of Object.entries(l)){let g=this.getPropKey(r,p);this.setStyles(r,m,p,g),this.setClassName(r,p)}};assignProperties=()=>{for(let[r,n]of Object.entries(this.config))n&&this.assignProperty(r,n)};getPropertyKeys=r=>{let n=this.propertyKeys.get(r);return n?Array.from(n):[]};assignPropertyType=(r,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(r,new Set([`type:${l.type}`]));return}if(l){let m=new Set(Object.keys(l));this.types.set(r,m),this.propertyKeys.set(r,m)}let p=this.types.get(r)??new Set;!this.strictTokens&&i.property&&this.types.set(r,p.add(`CssProperties["${i.property}"]`))};assignPropertyTypes=()=>{for(let[r,n]of Object.entries(this.config))n&&this.assignPropertyType(r,n)};getTypes=()=>{let r=new Map;for(let[n,i]of this.types.entries()){if(i.size===0){r.set(n,["string"]);continue}let l=Array.from(i).map(p=>p.startsWith("CssProperties")?p:p.startsWith("type:")?p.replace("type:",""):JSON.stringify(p));r.set(n,l)}return r};defaultTransform=zb((r,n)=>{if(n.startsWith("--")){let l=this.tokens.getTokenVar(r);r=typeof l=="string"?l:r}return{[n]:r}});setTransform=(r,n)=>{let l=n??(p=>this.defaultTransform(p,r));return this.transforms.set(r,l),this};setStyles=(r,n,i,l)=>{l=l??this.getPropKey(r,n);let p=b=>this.defaultTransform(b,r),g=(this.transforms.get(r)??p)(n,{token:this.getToken.bind(this),raw:i});return this.styles.set(l,g??{}),this};formatClassName=r=>[this.prefix,r].filter(Boolean).join("-");setClassName=(r,n)=>{let i=this.getPropKey(r,n),l=this.configs.get(r),p;return!l||!l.className?p=this.hash(dCe(r),n):p=this.hash(l.className,n),this.classNames.set(i,p),this};isProperty=r=>this.configs.has(r);getOrCreateClassName=(r,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)})(r,n);getOrCreateStyle=(r,n)=>{let i=this.getPropKey(r,n);return this.styles.get(i)??this.setStyles(r,n,n,i),this.styles.get(i)};transform=(r,n)=>{if(n==null)return{className:"",styles:{}};let i=this.resolveShorthand(r);return cre({layer:this.configs.get(i)?.layer,className:this.getOrCreateClassName(i,Hze(n)),styles:this.getOrCreateStyle(i,n)})};keys=()=>{let r=Array.from(this.shorthands.keys()),n=Object.keys(this.config);return[...r,...n]};getPropShorthandsMap=()=>{let r=new Map;return this.shorthands.forEach((n,i)=>{let l=r.get(n)??[];l.push(i),r.set(n,l)}),r};getPropShorthands=r=>this.getPropShorthandsMap().get(r)??[]};re();re();var QVe=_d(V8(),1);var jp=_d(V8(),1);re();var afr=_d(SWt(),1),U8=_d(bTn(),1);re();var l5=_d(require("path"),1),xTn=_d(require("os"),1),Gpr=/(^\/\w:\/)|(^\/\w:\\)/,STn=l5.default.parse(process.cwd()).root,ETn=/^\w:/,zpr=xTn.default.platform();function jpr(r){return/\\/.test(r)||ETn.test(r)}function DTn(r){let n=/^\\\\\?\\/.test(r),i=/[^\u0000-\u0080]+/.test(r);return n||i?r:r.replace(/\\/g,"/")}function Vpr(r){let n=typeof r=="string"?r:r.pathname;return n.startsWith("file:")&&(n.startsWith("file://")&&(n=n.slice(7)),Gpr.test(n)&&(n=n.slice(1))),xWt(n)}function TTn(r){return[...r].some(n=>typeof n=="string"&&jpr(n))?l5.default.win32:l5.default}function zre(r,n){return DTn(TTn(n)[r](...n))}function ATn(r,n){return l5.default.posix[r](...[...n].map(i=>typeof i=="string"?DTn(i):i))}function Upr(r){return ATn("parse",arguments)}function Hpr(r){return ATn("extname",arguments)}function Jpr(r){return TTn(arguments).isAbsolute(r)}function qpr(...r){return zre("join",arguments)}function xWt(r){let n=zre("normalize",arguments);return r.startsWith("./")&&!n.startsWith("./")?"./"+n:n}function Kpr(r,n){return zre("relative",arguments)}function Xpr(...r){return zre("resolve",arguments)}function Ypr(r){return zre("dirname",arguments)}function Qpr(r,n){return zre("basename",arguments)}function $pr(r){return zre("format",arguments)}function Zpr(r){return zre("toNamespacedPath",arguments)}function efr(r){return zpr!=="win32"||ETn.test(r)||r.startsWith(STn)||!l5.default.win32.isAbsolute(l5.default.win32.normalize(r))?r:l5.default.win32.join(STn,r)}var EWt={sep:l5.default.posix.sep,delimiter:l5.default.posix.delimiter,parse:Upr,isAbsolute:Jpr,join:qpr,extname:Hpr,normalize:xWt,relative:Kpr,resolve:Xpr,dirname:Ypr,basename:Qpr,format:$pr,toNamespacedPath:Zpr,get posix(){return this},get win32(){return kTn}},kTn={...l5.default.win32,get posix(){return EWt},get win32(){return this}},tfr=l5.default,n0e={...EWt,posix:EWt,win32:kTn,native:tfr,includeDriveLetter:efr,urlToFilename:Vpr};var jTn=require("module"),VTn=require("util"),UTn=_d(LTn(),1),Sst=()=>{let r={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{r.AggregateError=AggregateError}catch{}try{r.FinalizationRegistry=FinalizationRegistry}catch{}try{r.WeakRef=WeakRef}catch{}try{r.BigInt=BigInt}catch{}try{r.Reflect=Reflect}catch{}try{r.WeakMap=WeakMap}catch{}try{r.WeakSet=WeakSet}catch{}try{r.Set=Set}catch{}try{r.Map=Map}catch{}try{r.Uint8Array=Uint8Array}catch{}try{r.BigUint64Array=BigUint64Array}catch{}try{r.BigInt64Array=BigInt64Array}catch{}try{r.Atomics=Atomics}catch{}try{r.SharedArrayBuffer=SharedArrayBuffer}catch{}try{r.WebAssembly=WebAssembly}catch{}try{r.Uint8ClampedArray=Uint8ClampedArray}catch{}try{r.Uint16Array=Uint16Array}catch{}try{r.Uint32Array=Uint32Array}catch{}try{r.Intl=Intl}catch{}try{r.Int8Array=Int8Array}catch{}try{r.Int16Array=Int16Array}catch{}try{r.Int32Array=Int32Array}catch{}try{r.Float32Array=Float32Array}catch{}try{r.Float64Array=Float64Array}catch{}try{r.ArrayBuffer=ArrayBuffer}catch{}try{r.DataView=DataView}catch{}try{r.isFinite=isFinite}catch{}try{r.Promise=Promise}catch{}try{r.Proxy=Proxy}catch{}try{r.Symbol=Symbol}catch{}return r};function Vre(r,n,i){let l={};return[r,n??{},i??{}].forEach(g=>Object.defineProperties(l,Object.getOwnPropertyDescriptors(g))),l}function _st(r,n){let i={};return Object.getOwnPropertyNames(r).forEach(l=>{l in n||Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(r,l))}),i}var HTn=(0,jTn.createRequire)(Ye),lfr=()=>{let r=Sst(),n=Vre(_st(global,r),r,{require:HTn,process,__dirname:i=>n0e.native.normalize(n0e.native.dirname(i)),__filename:i=>n0e.native.normalize(i)});return Object.defineProperties(n,{global:{get(){return n}},globalThis:{get(){return n}}}),n};function cfr(r){let n=0;return{requestAnimationFrame:function(m){let g=new Date().getTime(),b=Math.max(0,16-(g-n)),D=r.setTimeout(function(){m(g+b)},b);return n=g+b,D},cancelAnimationFrame:function(m){clearTimeout(m)}}}var fst;function ufr(r=!1){return fst??(fst=pfr("evaluate against a browser environment",r,"jsdom"))}function pfr(r,n,i=r){try{return HTn(i)}catch{if(n)throw new ReferenceError(`You must install the peer dependency '${i}' in order to ${r} with ts-evaluator`);return}}var ffr=()=>{let{JSDOM:r}=ufr(!0),{window:n}=new r("",{url:"https://example.com"}),i=Sst(),l=cfr(n),p=Vre(_st(n,i),_st(l,n),i);return Object.defineProperties(p,{window:{get(){return p}},globalThis:{get(){return p}}}),p},B1="[return]",ZL="[break]",t4="[continue]",n4="this",r0e="super",dfr=()=>{let r=Sst(),n=Vre(_st(global,r),r,{import:{meta:{url:i=>{let l=n0e.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 JTn(r,n){return n.isDeclaration(r)}function mfr(r,n){return n.isPropertyAccessExpression(r)?!1:"name"in r&&r.name!=null}function qTn(r,n){return r.flags!==n.NodeFlags.Const&&r.flags!==n.NodeFlags.Let}var r4=class extends Error{constructor({node:n,environment:i,message:l}){super(l),Error.captureStackTrace(this,this.constructor),this.node=n,this.environment=i}};function Uee(r){return typeof r=="object"&&r!=null&&r instanceof r4}var hst=class extends r4{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}},KI=class extends r4{constructor({node:n,environment:i,typescript:l,message:p=`Unexpected Node: '${l.SyntaxKind[n.kind]}'`}){super({message:p,node:n,environment:i})}};function _fr(r){var n;let{node:i,evaluate:l,environment:p,typescript:m,throwError:g}=r,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,r):g(new KI({node:b,environment:p,typescript:m}))}function KTn(r,n){let{node:i,typescript:l}=n;if(!l.isExternalModuleNameRelative(r))return r;let p=i.getSourceFile().fileName;return n0e.join(n0e.dirname(p),r)}function gst(r){var n,i,l,p,m;let{node:g,typescript:b,throwError:D,environment:I}=r,R=_fr(r);if(Uee(R))return R;if(R==null)return D(new KI({node:g,environment:I,typescript:b}));let V=ED(g,r.environment,R);if(V!=null&&V.literal!=null)return V.literal;let X=ED(g,r.environment,"require").literal,ue=b.isModuleDeclaration(g)?g:hfr(g,b.SyntaxKind.ModuleDeclaration,b);if(ue==null)return D(new KI({node:g,environment:I,typescript:b}));let De=ue.name.text,we=KTn(De,r);try{let We=(p=(i=(n=r.moduleOverrides)===null||n===void 0?void 0:n[De])!==null&&i!==void 0?i:(l=r.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 Uee(We)?We:D(new hst({node:ue,environment:I,path:we}))}}function dst(r,n,i){var l,p,m,g,b,D;let{node:I,throwError:R,environment:V}=i,X=ED(I,i.environment,"require").literal,ue=KTn(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(D=(b=De[r])!==null&&b!==void 0?b:De.default)!==null&&D!==void 0?D:De}catch(De){return Uee(De)?De:R(new hst({node:I,environment:V,path:ue}))}}function hfr(r,n,i){let l=r;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 GWt(r,n,i,l=new WeakSet){let{typescript:p}=i,m;function g(D,I=0){var R,V,X,ue,De;if(l.has(D))return!1;if(l.add(D),p.isIdentifier(D)){if(D.text===n)return m=D,!0}else{if(p.isShorthandPropertyAssignment(D))return!1;if(p.isPropertyAssignment(D))return!1;if(p.isImportDeclaration(D)){if(D.importClause!=null){if(D.importClause.name!=null&&g(D.importClause.name)){let we=D.moduleSpecifier;if(we!=null&&p.isStringLiteralLike(we))return m=dst(n,we.text,i),!0}else if(D.importClause.namedBindings!=null&&g(D.importClause.namedBindings))return!0}return!1}else if(p.isImportEqualsDeclaration(D)){if(D.name!=null&&g(D.name)){if(p.isIdentifier(D.moduleReference))return m=GWt(D.parent,D.moduleReference.text,i,l),m!=null;if(p.isQualifiedName(D.moduleReference))return!1;{let we=D.moduleReference.expression;if(we!=null&&p.isStringLiteralLike(we))return m=dst(n,we.text,i),!0}}return!1}else if(p.isNamespaceImport(D)){if(g(D.name)){let we=(V=(R=D.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=dst(n,we.text,i),!0)}}else if(p.isNamedImports(D)){for(let we of D.elements)if(g(we))return!0}else if(p.isImportSpecifier(D)){if(g(D.name)){let we=(De=(ue=(X=D.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=dst(n,we.text,i),!0)}}else if(p.isSourceFile(D)){for(let we of D.statements)if(g(we))return!0}else if(p.isVariableStatement(D)){for(let we of D.declarationList.declarations)if(g(we)&&(qTn(D.declarationList,p)||I<1))return!0}else if(p.isBlock(D)){for(let we of D.statements)if(g(we,I+1))return!0}else if(mfr(D,p)&&D.name!=null&&g(D.name))return m=D,!0}return!1}return p.findAncestor(r,D=>g(D))?m:void 0}function MTn(r,n){let i=r;for(;;){if(i=i.parent,i==null)return;if(JTn(i,n)||n.isSourceFile(i))return i}}function gfr(r){return r!=null&&(typeof r=="function"||typeof r=="object")}function FTn(r){return gfr(r)}function zWt(r,n){switch(r){case Function.prototype.bind:case Function.prototype.call:case Function.prototype.apply:return!0}if(n!=null){let i=ED(void 0,n,"Function").literal;switch(r){case i.prototype.bind:case i.prototype.call:case i.prototype.apply:return!0}}return!1}var Vee=class{constructor(n){this.intent=n}construct(n,i){return this.intent(n,i)}};function XTn(r){return typeof r=="object"&&r!=null&&r instanceof Vee}function xst(r,n,i){return XTn(i)?n.throwError(i.construct(r,n)):i}function AWt(r){return r.map(n=>typeof n=="symbol"?n.description:n).join(".")}function OTn({hook:r,item:n,scope:i,policy:l}){function p(m,g){let b=(D,I)=>{if(D!==!1)return XTn(D)||Uee(D)?D:I()};return!FTn(g)||zWt(g)?g:new Proxy(g,{construct(D,I,R){return b(r({kind:"__$$_PROXY_CONSTRUCT",policy:l,newTarget:R,argArray:I,target:D,path:AWt(m)}),()=>Reflect.construct(D,I,R))},apply(D,I,R=[]){return b(r({kind:"__$$_PROXY_APPLY",policy:l,thisArg:I,argArray:R,target:D,path:AWt(m)}),()=>Reflect.apply(D,I,R))},get(D,I,R){let V=[...m,I];return b(r({kind:"__$$_PROXY_GET",policy:l,path:AWt(V),target:D}),()=>{let X=Reflect.get(D,I,R),ue=Reflect.getOwnPropertyDescriptor(g,I);return ue!=null&&ue.configurable===!1&&ue.writable===!1?g[I]:p(V,X)})}})}return FTn(n)?p([i],n):n}function WTn(r,n){switch(r){case"__$$_PROXY_GET":return`get ${n}`;case"__$$_PROXY_APPLY":return`${n}(...)`;case"__$$_PROXY_CONSTRUCT":return`new ${n}(...)`}}var YTn={"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}}},Bfr={...YTn,Math:{random:{__$$_PROXY_APPLY:!0}},Date:{now:{__$$_PROXY_APPLY:!0},__$$_PROXY_CONSTRUCT:(...r)=>r.length===0&&!(r[0]instanceof Date)}};function yfr(r,n){return typeof r==typeof n||typeof r=="function"}function Cfr(r){return typeof r=="function"}function i0e(r,n,i){let l=i.path.split(".");return wWt(r,n,i,l)}function wWt(r,n,i,l){let[p,...m]=l;if(p==null)return!1;let g=r[p];if(g==null)return!1;if(typeof g=="string")return wWt(r,n,i,[g,...m]);if(yfr(g,n))return GTn(g,n,i);{let b=g[i.kind];return b!=null?GTn(b,n,i):wWt(g,n,i,m)}}function GTn(r,n,i){if(Cfr(r)){let l=i;return l.argArray!=null&&r(...l.argArray)===n}else return r===n}function vfr(r){return i0e(Bfr,!0,r)}var Ure=class extends r4{constructor({violation:n,node:i,environment:l,message:p}){super({node:i,environment:l,message:`[${n}]: ${p}`}),this.violation=n}},IWt=class extends Ure{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}},QTn={"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 bfr(r){return i0e(QTn,"read",r)}var Bst=class extends Ure{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 Sfr(r){return i0e(QTn,"write",r)}function xfr(r){return i0e(YTn,!0,r)}var PWt=class extends Ure{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}},$Tn={"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 Efr(r){return i0e($Tn,"exit",r)}var yst=class extends Ure{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 Dfr(r){return i0e($Tn,"spawnChild",r)}var Tfr={"node:console":"console",console:{__$$_PROXY_APPLY:!0}};function Afr(r){return i0e(Tfr,!0,r)}function kfr({policy:r,env:n}){let i=g=>!r.console&&Afr(g)?!1:!r.io.read&&bfr(g)?new Vee((b,D)=>new Bst({...D,node:b,kind:"read"})):!r.io.write&&Sfr(g)?new Vee((b,D)=>new Bst({...D,node:b,kind:"write"})):!r.process.exit&&Efr(g)?new Vee((b,D)=>new yst({...D,node:b,kind:"exit"})):!r.process.exit&&Dfr(g)?new Vee((b,D)=>new yst({...D,node:b,kind:"spawnChild"})):!r.network&&xfr(g)?new Vee((b,D)=>new PWt({...D,node:b,operation:WTn(g.kind,g.path)})):r.deterministic&&vfr(g)?new Vee((b,D)=>new IWt({...D,node:b,operation:WTn(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(D,I,R=[]){let[V]=R;return OTn({policy:r,item:Reflect.apply(D,I,R),scope:V,hook:i})}}):OTn({policy:r,item:b.value,scope:g,hook:i})})));return Object.defineProperties(m,{...p})}function qVe(r,n){let[i]=n.split(".");if(U8.default.has(r.env,i))return r.env;if(r.parentEnv!=null)return qVe(r.parentEnv,n)}function NWt(r){return r.preset!=null?r.preset:r.parentEnv!=null?NWt(r.parentEnv):"NONE"}function ZTn(r,n,i){let l=MTn(r.startingNode,i),p=MTn(n,i);if(l?.pos===p?.pos)return r;if(r.parentEnv!=null)return ZTn(r.parentEnv,n,i)}function ED(r,n,i){let[l]=i.split(".");if(U8.default.has(n.env,l)){let p=U8.default.get(n.env,i);switch(i){case"__dirname":case"__filename":{let m=NWt(n);return(m==="NODE"||m==="NODE_CJS")&&typeof p=="function"&&r!=null?{literal:p(r.getSourceFile().fileName)}:{literal:p}}case"import.meta":{let m=NWt(n);return(m==="NODE_ESM"||m==="BROWSER"||m==="ECMA")&&typeof p=="object"&&p!=null&&typeof p.url=="function"&&r!=null?{literal:{url:p.url(r.getSourceFile().fileName)}}:{literal:p}}default:return{literal:p}}}if(n.parentEnv!=null)return ED(r,n.parentEnv,i)}function cx(r,n,i,...l){return l.some(p=>{let m=ED(r,n,p);return m==null?!1:m.literal===i})}function kWt(r){switch(r){case B1:case ZL:case t4:case n4:case r0e:return!0;default:return!1}}function e_({environment:r,path:n,value:i,reporting:l,node:p,newBinding:m=!1}){let[g]=n.split(".");if(U8.default.has(r.env,g)||m||r.parentEnv==null){if(U8.default.has(r.env,n)&&U8.default.get(r.env,n)===i)return;U8.default.set(r.env,n,i),l.reportBindings!=null&&!kWt(n)&&l.reportBindings({path:n,value:i,node:p})}else{let b=r.parentEnv;for(;b!=null;)if(U8.default.has(b.env,g)){if(U8.default.has(b.env,n)&&U8.default.get(b.env,n)===i)return;U8.default.set(b.env,n,i),l.reportBindings!=null&&!kWt(n)&&l.reportBindings({path:n,value:i,node:p});return}else b.parentEnv==null?(U8.default.set(b.env,n,i),l.reportBindings!=null&&!kWt(n)&&l.reportBindings({path:n,value:i,node:p})):b=b.parentEnv}}function wfr({inputEnvironment:{extra:r,preset:n},startingNode:i,policy:l}){let p;switch(n){case"NONE":p=Vre(r);break;case"ECMA":p=Vre(Sst(),r);break;case"NODE":case"NODE_CJS":p=Vre(lfr(),r);break;case"NODE_ESM":p=Vre(dfr(),r);break;case"BROWSER":p=Vre(ffr(),r);break;default:p={};break}return{parentEnv:void 0,preset:n,startingNode:i,env:kfr({policy:l,env:p})}}function eAn(r,n){return r.kind===n.SyntaxKind.TrueKeyword||r.kind===n.SyntaxKind.FalseKeyword}function tAn(r,n){return r.kind===n.SyntaxKind.NullKeyword}function Ifr(r,n){var i;return n.isStringLiteralLike(r)?{success:!0,value:r.text}:eAn(r,n)?{success:!0,value:r.kind===n.SyntaxKind.TrueKeyword}:n.isRegularExpressionLiteral(r)?{success:!0,value:new Function(`return ${r.text}`)()}:n.isNumericLiteral(r)?{success:!0,value:Number(r.text)}:!((i=n.isBigIntLiteral)===null||i===void 0)&&i.call(n,r)?{success:!0,value:BigInt(r.text)}:n.isIdentifier(r)&&r.text==="Infinity"?{success:!0,value:1/0}:n.isIdentifier(r)&&r.text==="NaN"?{success:!0,value:NaN}:n.isIdentifier(r)&&r.text==="null"?{success:!0,value:null}:n.isIdentifier(r)&&r.text==="undefined"?{success:!0,value:void 0}:tAn(r,n)?{success:!0,value:null}:{success:!1}}var RWt=class extends Ure{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 nAn(r,n){let{node:i,environment:l,evaluate:p,stack:m,typescript:g,throwError:b,getCurrentError:D}=r,I=n??(i.initializer==null?void 0:p.expression(i.initializer,r));if(D()==null){if(I==null&&!g.isIdentifier(i.name))return b(new r4({node:i,environment:l}));p.nodeWithArgument(i.name,I,r),D()==null&&m.push(I)}}function rAn(r,n){return r.kind===n.SyntaxKind.ThisKeyword}function Est(r,n){return r.kind===n.SyntaxKind.SuperKeyword}function cxe(r){var n,i;let{node:l,evaluate:p,typescript:m}=r;if(m.isIdentifier(l))return l.text;if(!((n=m.isPrivateIdentifier)===null||n===void 0)&&n.call(m,l))return l.text;if(rAn(l,m))return n4;if(Est(l,m))return r0e;if(m.isParenthesizedExpression(l))return cxe({...r,node:l.expression});if(!((i=m.isTypeAssertionExpression)===null||i===void 0)&&i.call(m,l)||!("isTypeAssertionExpression"in m)&&m.isTypeAssertion(l))return cxe({...r,node:l.expression});if(m.isPropertyAccessExpression(l)){let g=cxe({...r,node:l.expression});g==null&&(g=p.expression(l.expression,r));let b=cxe({...r,node:l.name});return b==null&&(b=p.expression(l.name,r)),g==null||b==null?void 0:`${g}.${b}`}else if(m.isElementAccessExpression(l)){let g=cxe({...r,node:l.expression});g==null&&(g=p.expression(l.expression,r));let b=p.expression(l.argumentExpression,r);return g==null||b==null?void 0:`${g}.${b}`}else if(m.isFunctionDeclaration(l))return l.name==null?void 0:l.name.text}var LWt=class extends r4{constructor({node:n,environment:i,message:l="'No leftValue could be determined'"}){super({message:l,environment:i,node:n})}};function mst(r,n){var i;return n.isParenthesizedExpression(r)||n.isAsExpression(r)||!((i=n.isTypeAssertionExpression)===null||i===void 0)&&i.call(n,r)||!("isTypeAssertionExpression"in n)&&n.isTypeAssertion(r)?mst(r.expression,n):r}function iAn(r){return r!=null&&typeof r=="object"&&"kind"in r&&"flags"in r&&"pos"in r&&"end"in r}function Pfr(r){var n;let{node:i,environment:l,evaluate:p,logger:m,throwError:g,typeChecker:b,typescript:D,getCurrentError:I}=r,R=p.expression(i.left,r);if(I()!=null)return;let V=p.expression(i.right,r);if(I()!=null)return;let X=cxe({...r,node:i.left}),ue=i.operatorToken.kind;switch(ue){case D.SyntaxKind.AmpersandToken:return R&V;case D.SyntaxKind.AmpersandAmpersandToken:return R&&V;case D.SyntaxKind.AmpersandEqualsToken:case D.SyntaxKind.CaretEqualsToken:case D.SyntaxKind.BarEqualsToken:case D.SyntaxKind.MinusEqualsToken:case D.SyntaxKind.PlusEqualsToken:case D.SyntaxKind.PercentEqualsToken:case D.SyntaxKind.SlashEqualsToken:case D.SyntaxKind.AsteriskEqualsToken:case D.SyntaxKind.AsteriskAsteriskEqualsToken:case D.SyntaxKind.LessThanLessThanEqualsToken:case D.SyntaxKind.GreaterThanGreaterThanEqualsToken:case D.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken:case D.SyntaxKind.QuestionQuestionEqualsToken:case D.SyntaxKind.BarBarEqualsToken:case D.SyntaxKind.AmpersandAmpersandEqualsToken:{let De=R;switch(ue){case D.SyntaxKind.AmpersandEqualsToken:De&=V;break;case D.SyntaxKind.CaretEqualsToken:De^=V;break;case D.SyntaxKind.BarEqualsToken:De|=V;break;case D.SyntaxKind.AsteriskEqualsToken:De*=V;break;case D.SyntaxKind.AsteriskAsteriskEqualsToken:De**=V;break;case D.SyntaxKind.LessThanLessThanEqualsToken:De<<=V;break;case D.SyntaxKind.GreaterThanGreaterThanEqualsToken:De>>=V;break;case D.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken:De>>>=V;break;case D.SyntaxKind.MinusEqualsToken:De-=V;break;case D.SyntaxKind.PlusEqualsToken:De+=V;break;case D.SyntaxKind.PercentEqualsToken:De%=V;break;case D.SyntaxKind.SlashEqualsToken:De/=V;break;case D.SyntaxKind.QuestionQuestionEqualsToken:De=R??V;break;case D.SyntaxKind.BarBarEqualsToken:R||(De=V);break;case D.SyntaxKind.AmpersandAmpersandEqualsToken:R&&(De=V);break}return X!=null&&e_({...r,path:X,value:De}),De}case D.SyntaxKind.AsteriskToken:return R*V;case D.SyntaxKind.AsteriskAsteriskToken:return R**V;case D.SyntaxKind.BarToken:return R|V;case D.SyntaxKind.BarBarToken:return R||V;case D.SyntaxKind.CaretToken:return R^V;case D.SyntaxKind.CommaToken:return V;case D.SyntaxKind.MinusToken:return R-V;case D.SyntaxKind.PlusToken:return m.logResult(R+V,"BinaryExpression (PlusToken)"),R+V;case D.SyntaxKind.PercentToken:return R%V;case D.SyntaxKind.SlashToken:return R/V;case D.SyntaxKind.EqualsToken:{if(X!=null){let De=mst(i.left,D),we=b?.getSymbolAtLocation(De),We=we?.valueDeclaration;if(We==null&&b==null&&D.isIdentifier(De)){let Me=GWt(De.parent,De.text,r);iAn(Me)&&(We=Me)}let Ne=We==null?l:(n=ZTn(l,We,D))!==null&&n!==void 0?n:l;e_({...r,environment:Ne,path:X,value:V}),m.logBinding(X,V,"Assignment")}else return g(new LWt({node:i.left,environment:l}));return V}case D.SyntaxKind.EqualsEqualsToken:return R==V;case D.SyntaxKind.EqualsEqualsEqualsToken:return R===V;case D.SyntaxKind.ExclamationEqualsToken:return R!=V;case D.SyntaxKind.ExclamationEqualsEqualsToken:return R!==V;case D.SyntaxKind.GreaterThanToken:return R>V;case D.SyntaxKind.GreaterThanEqualsToken:return R>=V;case D.SyntaxKind.LessThanToken:return R<V;case D.SyntaxKind.LessThanEqualsToken:return R<=V;case D.SyntaxKind.InKeyword:return R in V;case D.SyntaxKind.QuestionQuestionToken:return R??V;case D.SyntaxKind.InstanceOfKeyword:return R instanceof V}return g(new KI({node:i.operatorToken,typescript:D,environment:l}))}var jWt="___lazyCallFlag";function Nfr(r){return r!=null&&typeof r=="object"&&jWt in r}function VWt(r){return r===void 0?"undefined":r===null?"null":typeof r=="string"?`"${r}"`:r.toString()}var Cst=class extends r4{constructor({value:n,node:i,environment:l,message:p=`${VWt(n)} is not a function'`}){super({message:p,environment:l,node:i}),this.value=n}};function jre(r,n){var i;return Est(r,n)?!0:n.isPropertyAccessExpression(r)?jre(r.expression,n)||jre(r.name,n):n.isElementAccessExpression(r)?jre(r.expression,n)||jre(r.argumentExpression,n):n.isParenthesizedExpression(r)||n.isAsExpression(r)||!((i=n.isTypeAssertionExpression)===null||i===void 0)&&i.call(n,r)||!("isTypeAssertionExpression"in n)&&n.isTypeAssertion(r)?jre(r.expression,n):!1}function Rfr(r){let{node:n,environment:i,evaluate:l,throwError:p,typescript:m,logger:g,getCurrentError:b}=r,D=[];for(let R=0;R<n.arguments.length;R++)if(D[R]=l.expression(n.arguments[R],r),b()!=null)return;let I=l.expression(n.expression,r);if(b()==null)if(Nfr(I)){let R=jre(n.expression,m)?ED(n,i,n4):void 0,V=I.invoke(R?.literal,...D);return b()!=null?void 0:(g.logResult(V,"CallExpression"),V)}else{if(n.questionDotToken==null&&typeof I!="function")return p(new Cst({value:I,node:n.expression,environment:i}));let R=typeof I!="function"?void 0:xst(n,r,I(...D));return b()!=null?void 0:(g.logResult(R,"CallExpression"),R)}}function Lfr({node:r,evaluate:n,...i}){return n.expression(r.expression,i)}function hI(r,n){return{parentEnv:r,startingNode:n,env:{}}}function RU(r,n){let i=Array.isArray(r)?r:r.modifiers;return i!=null&&i.some(l=>l.kind===n)}function LU(r,n,i){let{node:l,evaluate:p,environment:m,typescript:g,getCurrentError:b}=r,D=l.filter(I=>!(g.isIdentifier(I.name)&&I.name.text==="this"));for(let I=0;I<D.length;I++){let R=D[I];if(R.dotDotDotToken!=null){if(p.nodeWithArgument(R,n.slice(I),r),b()!=null)return;break}else{if(p.nodeWithArgument(R,n[I],r),b()!=null)return;if(i!=null&&g.isIdentifier(R.name)&&(RU(R,g.SyntaxKind.PublicKeyword)||RU(R,g.SyntaxKind.ProtectedKeyword)||RU(R,g.SyntaxKind.PrivateKeyword))){let V=ED(R,m,R.name.text);V!=null&&(i[R.name.text]=V.literal)}}}}function Mfr(r){let{node:n,environment:i,evaluate:l,stack:p,typescript:m,getCurrentError:g}=r,b=RU(n,m.SyntaxKind.AsyncKeyword)?async(...D)=>{let I=hI(i,n),R={...r,environment:I};if(e_({...R,path:B1,value:!1,newBinding:!0}),e_({...R,path:"arguments",value:arguments,newBinding:!0}),LU({...r,node:n.parameters,environment:I},D),g()==null)return m.isBlock(n.body)?(l.statement(n.body,R),g()!=null?void 0:cx(n,I,!0,B1)?p.pop():void 0):l.expression(n.body,R)}:(...D)=>{let I=hI(i,n),R={...r,environment:I};if(e_({...R,path:B1,value:!1,newBinding:!0}),e_({...R,path:"arguments",value:arguments,newBinding:!0}),LU({...r,node:n.parameters,environment:I},D),g()==null)return m.isBlock(n.body)?(l.statement(n.body,R),g()!=null?void 0:cx(n,I,!0,B1)?p.pop():void 0):l.expression(n.body,R)};return b.toString=()=>"[Function: anonymous]",Object.setPrototypeOf(b,ED(n,i,"Function").literal),b}function Ffr({node:r}){return r.text}function Ofr({node:r}){return Number(r.text)}function Wfr({node:r,typescript:n}){return r.kind===n.SyntaxKind.TrueKeyword}function Gfr({node:r,environment:n}){let i=ED(r,n,"Function").literal;return new i(`return ${r.text}`)()}function zfr(r){let{node:n,evaluate:i,environment:l,getCurrentError:p}=r,m=ED(n,l,"Object").literal,g=m.create(m.prototype);e_({...r,path:n4,value:g,newBinding:!0});for(let b of n.properties)if(i.nodeWithArgument(b,g,r),p()!=null)return;return g}function jfr(r){return r!=null&&r[Symbol.iterator]!=null}function Vfr(r){let{node:n,environment:i,evaluate:l,typescript:p,getCurrentError:m}=r,b=ED(n,i,"Array").literal.of();for(let D of n.elements){let I=l.expression(D,r);if(m()!=null)return;p.isSpreadElement(D)&&jfr(I)?b.push(...I):b.push(I)}return b}var vst=class extends r4{constructor({node:n,environment:i,message:l=`'${n.text}' is not defined'`}){super({message:l,environment:i,node:n})}};function zTn(r){let{node:n,environment:i,typeChecker:l,evaluate:p,stack:m,logger:g,reporting:b,typescript:D,throwError:I,getCurrentError:R}=r,V=ED(n,i,n.text);if(V!=null)return g.logBinding(n.text,V.literal,"Lexical Environment match"),V.literal;let X=D.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=GWt(n.parent,n.text,r);if(R()!=null)return;if(iAn(De)&&!D.isIdentifier(De))ue=De;else if(De!=null)return e_({...r,path:n.text,value:De}),g.logBinding(n.text,De,"Discovered declaration value"),De}if(ue!=null){if(ue.getSourceFile().isDeclarationFile){let we=gst({...r,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(D.isVariableDeclaration(ue)&&ue.getSourceFile().fileName===n.getSourceFile().fileName&&ue.pos>n.pos)if(D.isVariableDeclarationList(ue.parent)&&qTn(ue.parent,D)){e_({...r,path:n.text,value:void 0,newBinding:!0,node:ue}),g.logBinding(n.text,void 0,"Hoisted var declaration");return}else return I(new vst({node:n,environment:i}));if(p.declaration(ue,r),R()!=null)return;let De=m.pop();return e_({...r,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 vst({node:n,environment:i}))}function Ufr(r){let{node:n,environment:i,typescript:l,evaluate:p,getCurrentError:m}=r,g=hI(i,n);for(let b=0;b<n.statements.length;b++){let D=n.statements[b];if(!(l.isConstructorDeclaration(n.parent)&&b===0&&l.isExpressionStatement(D)&&l.isCallExpression(D.expression)&&Est(D.expression.expression,l))&&(p.statement(D,{...r,environment:g}),m()!=null||cx(n,g,!0,ZL,t4,B1)))break}}function Hfr({node:r,evaluate:n,stack:i,...l}){let{getCurrentError:p}=l;if(e_({...l,environment:l.environment,path:B1,value:!0,node:r}),r.expression==null)i.push(void 0);else{let m=n.expression(r.expression,l);if(p()!=null)return;i.push(m)}}function oAn({node:r,evaluate:n,...i}){for(let l of r.declarations)if(n.declaration(l,i),i.getCurrentError()!=null)return}function Jfr({node:r,...n}){oAn({node:r.declarationList,...n})}function qfr(r){var n,i;let{node:l,environment:p,evaluate:m,reporting:g,typescript:b,throwError:D,getCurrentError:I}=r,R=m.expression(l.operand,r);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 D(new KI({node:l.operand,environment:p,typescript:b}));let V=qVe(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 D(new KI({node:l.operand,environment:p,typescript:b}));let V=qVe(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 Kfr(r){let{evaluate:n,node:i,statementTraversalStack:l,environment:p,typescript:m,getCurrentError:g}=r,b=n.expression(i.expression,r);if(b==null||g()!=null)return;let D=i.questionDotToken!=null&&b==null?void 0:b[i.name.text];return typeof D=="function"&&l.includes(m.SyntaxKind.CallExpression)?{[jWt]:0,invoke:(I,...R)=>xst(i,r,I!=null&&!zWt(D,p)?b[i.name.text].call(I,...R):b[i.name.text](...R))}:D}function Xfr(r){let{node:n,environment:i,evaluate:l,statementTraversalStack:p,typescript:m,getCurrentError:g}=r,b=l.expression(n.expression,r);if(g()!=null)return;let D=l.expression(n.argumentExpression,r);if(g()!=null)return;let I=n.questionDotToken!=null&&b==null?void 0:b[D];return typeof I=="function"&&p.includes(m.SyntaxKind.CallExpression)?{[jWt]:0,invoke:(R,...V)=>xst(n,r,R!=null&&!zWt(I,i)?b[D].call(R,...V):b[D](...V))}:I}function Yfr({node:r,evaluate:n,...i}){return n.expression(r.expression,i)}function Qfr(r){let{node:n,environment:i,evaluate:l,stack:p,typescript:m,getCurrentError:g}=r,b=n.name==null?void 0:n.name.text,D=RU(n,m.SyntaxKind.AsyncKeyword)?async function(...R){let V=hI(i,n),X={...r,environment:V};if(e_({...X,path:B1,value:!1,newBinding:!0}),e_({...X,path:"arguments",value:arguments,newBinding:!0}),this!=null&&e_({...X,path:n4,value:this,newBinding:!0}),LU({...r,node:n.parameters,environment:V},R),g()!=null)return;let ue=n.getSourceFile();if(b!=null&&ue.isDeclarationFile)return gst(r)(...R);if(n.body!=null&&(l.statement(n.body,X),g()==null&&cx(n,V,!0,B1)))return p.pop()}:function(...R){let V=hI(i,n),X={...r,environment:V};if(e_({...X,path:B1,value:!1,newBinding:!0}),e_({...X,path:"arguments",value:arguments,newBinding:!0}),this!=null&&e_({...X,path:n4,value:this,newBinding:!0}),LU({...X,node:n.parameters},R),g()!=null)return;let ue=n.getSourceFile();if(b!=null&&ue.isDeclarationFile)return gst(r)(...R);if(n.body!=null&&(l.statement(n.body,X),g()==null&&cx(n,V,!0,B1)))return p.pop()};b!=null&&e_({...r,path:b,value:D.bind(D)}),D.toString=()=>`[Function${b==null?"":`: ${b}`}]`,Object.setPrototypeOf(D,ED(n,i,"Function").literal),p.push(D)}function $fr({node:r,evaluate:n,...i}){let{getCurrentError:l}=i,p=n.expression(r.expression,i);if(l()==null){if(p){if(n.statement(r.thenStatement,i),l()!=null)return}else if(r.elseStatement!=null)return n.statement(r.elseStatement,i)}}function Zfr({node:r,evaluate:n,stack:i,...l}){let p=n.expression(r.expression,l);l.getCurrentError()==null&&i.push(p)}function edr({node:r,evaluate:n,...i}){let l="";l+=r.head.text;for(let p of r.templateSpans){let m=n.expression(p.expression,i);if(i.getCurrentError()!=null)return;l+=m,l+=p.literal.text}return l}function tdr({node:r,evaluate:n,...i}){return n.expression(r.expression,i)}function ndr(r){var n,i;let{evaluate:l,node:p,environment:m,typescript:g,throwError:b,reporting:D}=r;switch(l.expression(p.operand,r),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 KI({node:p.operand,environment:m,typescript:g}));let I=qVe(m,p.operand.text)[p.operand.text]++;return D.reportBindings!=null&&D.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 KI({node:p.operand,environment:m,typescript:g}));let I=qVe(m,p.operand.text)[p.operand.text]--;return D.reportBindings!=null&&D.reportBindings({path:p.operand.text,value:I,node:p}),I}}}function rdr({node:r,evaluate:n,...i}){let{getCurrentError:l}=i,p=[];if(r.arguments!=null){for(let g=0;g<r.arguments.length;g++)if(p[g]=n.expression(r.arguments[g],i),l()!=null)return}let m=n.expression(r.expression,i);if(l()==null)return typeof m=="function"&&e_({...i,node:r,path:"[[NewTarget]]",value:m,newBinding:!0}),xst(r,i,new m(...p))}function idr({node:r,evaluate:n,...i}){return n.expression(r.expression,i)}function odr({node:r,evaluate:n,...i}){return n.expression(r.expression,i)}function sdr({node:r,evaluate:n,...i}){let l=n.expression(r.expression,i);i.getCurrentError()==null&&n.nodeWithArgument(r.caseBlock,l,i)}var MWt=class extends r4{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 adr(r){let{node:n,environment:i,evaluate:l,logger:p,typescript:m,throwError:g,getCurrentError:b}=r,D=l.expression(n.expression,r);if(b()==null){if(m.isVariableDeclarationList(n.initializer)){if(n.initializer.declarations.length>1)return g(new KI({node:n.initializer.declarations[1],environment:i,typescript:m}))}else return g(new KI({node:n.initializer,environment:i,typescript:m}));if(n.awaitModifier!=null)return g(new MWt({typescript:m,environment:i}));for(let I of D){let R=hI(i,n),V={...r,environment:R};if(e_({...V,path:ZL,value:!1,newBinding:!0}),e_({...V,path:t4,value:!1,newBinding:!0}),l.nodeWithArgument(n.initializer.declarations[0],I,V),b()!=null||(l.statement(n.statement,V),b()!=null))return;if(cx(n,R,!0,ZL)){p.logBreak(n,m);break}else if(cx(n,R,!0,t4)){p.logContinue(n,m);continue}else if(cx(n,R,!0,B1)){p.logReturn(n,m);return}}}}function ldr({node:r,environment:n}){let i=ED(r,n,n4);return i?.literal}function cdr(r){e_({...r,path:ZL,value:!0})}function udr(r){e_({...r,path:t4,value:!0})}function pdr({environment:r,evaluate:n,typescript:i,...l}){let{node:p,getCurrentError:m}=l,g=hI(r,p),b={...l,environment:g};if(p.initializer!==void 0){if(i.isVariableDeclarationList(p.initializer)){for(let D of p.initializer.declarations)if(n.declaration(D,b),m()!=null)return}else if(n.expression(p.initializer,b),m()!=null)return}for(;;){let D=hI(g,p),I={...l,environment:D};if(e_({...I,path:ZL,value:!1,newBinding:!0}),e_({...I,path:t4,value:!1,newBinding:!0}),!(p.condition==null?!0:n.expression(p.condition,b))||m()!=null||(n.statement(p.statement,I),m()!=null))return;if(cx(p,D,!0,ZL))break;if(cx(p,D,!0,B1))return;if(p.incrementor!=null){if(n.expression(p.incrementor,b),m()!=null)return}else if(cx(p,D,!0,t4))continue}}function fdr(r){let{node:n,environment:i,evaluate:l,logger:p,typescript:m,getCurrentError:g}=r,b=l.expression(n.expression,r);if(g()==null)for(;b;){let D=hI(i,n),I={...r,environment:D};if(e_({...I,path:ZL,value:!1,newBinding:!0}),e_({...I,path:t4,value:!1,newBinding:!0}),l.statement(n.statement,I),g()!=null)return;if(cx(n,D,!0,ZL)){p.logBreak(n,m);break}else if(cx(n,D,!0,B1)){p.logReturn(n,m);return}if(b=l.expression(n.expression,r),g()!=null)return;if(cx(n,D,!0,t4)){p.logContinue(n,m);continue}}}function ddr(r){let{node:n,environment:i,evaluate:l,logger:p,typescript:m,throwError:g,getCurrentError:b}=r,D=l.expression(n.expression,r);if(b()==null){if(m.isVariableDeclarationList(n.initializer)){if(n.initializer.declarations.length>1)return g(new KI({node:n.initializer.declarations[1],environment:i,typescript:m}))}else return g(new KI({node:n.initializer,environment:i,typescript:m}));for(let I in D){let R=hI(i,n),V={...r,environment:R};if(e_({...V,path:ZL,value:!1,newBinding:!0}),e_({...V,path:t4,value:!1,newBinding:!0}),l.nodeWithArgument(n.initializer.declarations[0],I,V),b()!=null||(l.statement(n.statement,V),b()!=null))return;if(cx(n,R,!0,ZL)){p.logBreak(n,m);break}else if(cx(n,R,!0,t4)){p.logContinue(n,m);continue}else if(cx(n,R,!0,B1)){p.logReturn(n,m);return}}}}function mdr(r){let{node:n,environment:i,evaluate:l,stack:p,typescript:m,getCurrentError:g}=r,b=n.name==null?void 0:n.name.text,D=RU(n,m.SyntaxKind.AsyncKeyword)?async function(...R){let V=hI(i,n),X={...r,environment:V};if(e_({...X,path:B1,value:!1,newBinding:!0}),e_({...X,path:"arguments",value:arguments,newBinding:!0}),this!=null&&e_({...X,path:n4,value:this,newBinding:!0}),LU({...X,node:n.parameters},R),!(n.body==null||g()!=null)&&(l.statement(n.body,X),g()==null&&cx(n,V,!0,B1)))return p.pop()}:function(...R){let V=hI(i,n),X={...r,environment:V};if(e_({...X,path:B1,value:!1,newBinding:!0}),e_({...X,path:"arguments",value:arguments,newBinding:!0}),this!=null&&e_({...X,path:n4,value:this,newBinding:!0}),LU({...X,node:n.parameters},R),!(n.body==null||g()!=null)&&(l.statement(n.body,X),g()==null&&cx(n,V,!0,B1)))return p.pop()};return b!=null&&e_({...r,path:b,value:D.bind(D)}),D.toString=()=>`[Function${b==null?"":`: ${b}`}]`,Object.setPrototypeOf(D,ED(n,i,"Function").literal),D}var FWt=class extends r4{constructor({node:n,environment:i,message:l="Missing catch or finally after try"}){super({node:n,environment:i,message:l})}};function _dr(r){let{node:n,evaluate:i,environment:l,throwError:p}=r,m,g=()=>{try{return i.statement(n.tryBlock,{...r,throwError:I=>(m=I,I),getCurrentError:()=>m})}catch(I){m=I}},b=I=>{i.nodeWithArgument(n.catchClause,I,r)},D=()=>{let I;i.statement(n.finallyBlock,{...r,throwError:R=>(I=R,r.throwError(R),R),getCurrentError:()=>I})};if(n.catchClause==null&&n.finallyBlock==null)return p(new FWt({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),D()):n.catchClause==null&&n.finallyBlock!=null&&(g(),m!=null&&p(m),D())}function sAn({name:r,extendedType:n,ctor:i=()=>{}}){return n==null?new Function("ctor",`return class ${r??""} {constructor () {const ctorReturnValue = ctor.call(this, ...arguments); if (ctorReturnValue != null) return ctorReturnValue;}}`)(i):new Function("extendedType","ctor",`return class ${r??""} extends extendedType {constructor () {super(...arguments); const ctorReturnValue = ctor.call(this, ...arguments); if (ctorReturnValue != null) return ctorReturnValue;}}`)(n,i)}function KVe(r,n){return"canHaveDecorators"in n?n.canHaveDecorators(r):!0}function XVe(r,n){var i;if("getDecorators"in n)return n.getDecorators(r);{let l="decorators"in r&&Array.isArray(r.decorators)?r.decorators:void 0,p=(i=r.modifiers)===null||i===void 0?void 0:i.filter(m=>"expression"in m);return[...l??[],...p??[]]}}function hdr(r){var n;let{node:i,evaluate:l,stack:p,logger:m,typescript:g,getCurrentError:b}=r,D,I=i.members.find(g.isConstructorDeclaration),R=i.members.filter(De=>!g.isConstructorDeclaration(De)),V;if(I!=null){if(l.declaration(I,r),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&&(D=l.expression(we.expression,r),b()!=null))return}}let X=i.name==null?void 0:i.name.text,ue=sAn({name:X,extendedType:D,ctor:V});if(KVe(i,g))for(let De of(n=XVe(i,g))!==null&&n!==void 0?n:[]){if(l.nodeWithArgument(De,[ue],r),b()!=null)return;ue=p.pop()}ue.toString=()=>`[Class${X==null?"":`: ${X}`}]`,X!=null&&e_({...r,path:X,value:ue,newBinding:!0});for(let De of R)if(l.nodeWithArgument(De,RU(De,g.SyntaxKind.StaticKeyword)?ue:ue.prototype,r),b()!=null)return;m.logHeritage(ue),p.push(ue),m.logStack(p)}function gdr(r){let{node:n,environment:i,evaluate:l,stack:p,getCurrentError:m}=r;function g(...b){let D=hI(i,n),I={...r,environment:D};if(e_({...I,path:B1,value:!1,newBinding:!0}),e_({...I,path:"arguments",value:arguments,newBinding:!0}),this!=null&&e_({...I,path:n4,value:this,newBinding:!0}),LU({...I,node:n.parameters},b,this),!(n.body==null||m()!=null)&&(l.statement(n.body,I),m()==null&&cx(n,D,!0,B1)))return p.pop()}g.toString=()=>"[Function: constructor]",p.push(g)}function Bdr({node:r,environment:n}){let i=ED(r,n,r0e);return i?.literal}function ydr({node:r,evaluate:n,...i}){return n.expression(r.expression,i)}function Cdr(r){var n;let{node:i,evaluate:l,stack:p,logger:m,typescript:g,getCurrentError:b}=r,D,I=i.members.find(g.isConstructorDeclaration),R=i.members.filter(De=>!g.isConstructorDeclaration(De)),V;if(I!=null){if(l.declaration(I,r),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&&(D=l.expression(we.expression,r),b()!=null))return}}let X=i.name==null?void 0:i.name.text,ue=sAn({name:X,extendedType:D,ctor:V});if(KVe(i,g))for(let De of(n=XVe(i,g))!==null&&n!==void 0?n:[]){if(l.nodeWithArgument(De,[ue],r),b()!=null)return;ue=p.pop()}ue.toString=()=>`[Class${X==null?"":`: ${X}`}]`,X!=null&&e_({...r,path:X,value:ue,newBinding:!0});for(let De of R)if(l.nodeWithArgument(De,RU(De,g.SyntaxKind.StaticKeyword)?ue:ue.prototype,r),b()!=null)return;return m.logHeritage(ue),ue}function vdr(r){return null}function bdr({node:r,evaluate:n,...i}){n.expression(r.expression,i)}function Sdr({evaluate:r,node:n,...i}){let l=r.expression(n.expression,i);if(i.getCurrentError()==null)return typeof l}function xdr({node:r,environment:n}){let i=ED(r,n,"BigInt").literal;return i(r.text.endsWith("n")?r.text.slice(0,-1):r.text)}function Edr(r){let{node:n,environment:i,evaluate:l,stack:p,getCurrentError:m}=r,g=ED(n,i,"Object").literal,b=g.create(g.prototype),D=n.name.text;e_({...r,path:D,value:b,newBinding:!0});for(let I of n.members)if(l.nodeWithArgument(I,b,r),m()!=null)return;b.toString=()=>`[Enum: ${D}]`,p.push(b)}function Ddr(r){let{node:n,evaluate:i,environment:l,typeChecker:p,stack:m,getCurrentError:g}=r,b=ED(n,l,"Object").literal,D=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,r),g()!=null))return;D[V]=m.pop()}}m.push(D)}function Tdr(r){let{getCurrentError:n,stack:i}=r,l=gst(r);n()==null&&i.push(l)}function Adr({node:r,evaluate:n,...i}){r.importClause!=null&&n.declaration(r.importClause,i)}function kdr({node:r,evaluate:n,...i}){let{getCurrentError:l,throwError:p}=i,m=n.expression(r.expression,i);if(l()==null)return p(m)}var OWt=class extends Ure{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 wdr(r){let{node:n,environment:i,evaluate:l,policy:p,throwError:m,getCurrentError:g}=r,b=p.maxOpDuration===1/0?void 0:setTimeout(()=>{m(new OWt({duration:p.maxOpDuration,node:n,environment:i}))},p.maxOpDuration),D=l.expression(n.expression,r);if(b!=null&&clearTimeout(b),g()==null)return D}function Idr({node:r,evaluate:n,...i}){let{getCurrentError:l}=i,p=n.expression(r.condition,i);if(l()==null)return p?n.expression(r.whenTrue,i):n.expression(r.whenFalse,i)}function Dst(r,n){let i=r;for(;i!=null&&!n.isSourceFile(i);){if(RU(i,n.SyntaxKind.StaticKeyword))return!0;i=i.parent}return!1}function aAn(r,n){var i,l;let{node:p,environment:m,evaluate:g,stack:b,typescript:D,getCurrentError:I}=r,R=g.nodeWithValue(p.name,r);if(I()!=null)return;let V=Dst(p,D);if(n==null){let ue;if(D.isClassLike(p.parent)){if(g.declaration(p.parent,r),I()!=null)return;ue=b.pop()}else if(ue=g.expression(p.parent,r),I()!=null)return;b.push(V?ue[R]:ue.prototype[R]);return}let X=RU(p,D.SyntaxKind.AsyncKeyword)?async function(...De){let we=hI(m,p),We={...r,environment:we};if(e_({...We,path:B1,value:!1,newBinding:!0}),e_({...We,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(e_({...We,path:n4,value:this,newBinding:!0}),e_({...We,path:r0e,value:V?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),LU({...r,node:p.parameters,environment:we},De),!(p.body==null||I()!=null)&&(g.statement(p.body,We),I()==null&&cx(p,we,!0,B1)))return b.pop()}:function(...De){let we=hI(m,p),We={...r,environment:we};if(e_({...We,path:B1,value:!1,newBinding:!0}),e_({...We,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(e_({...We,path:n4,value:this,newBinding:!0}),e_({...We,path:r0e,value:V?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),LU({...r,node:p.parameters,environment:we},De),!(p.body==null||I()!=null)&&(g.statement(p.body,We),I()==null&&cx(p,we,!0,B1)))return b.pop()};if(X.toString=()=>`[Method: ${R}]`,Object.setPrototypeOf(X,ED(p,m,"Function").literal),n[R]=X,KVe(p,D))for(let ue of(i=XVe(p,D))!==null&&i!==void 0?i:[]){if(g.nodeWithArgument(ue,[n,R],r),I()!=null)return;b.pop()}if(p.parameters!=null){let ue=p.parameters.filter(De=>!(D.isIdentifier(De.name)&&De.name.text==="this"));for(let De=0;De<ue.length;De++){let we=ue[De];if(KVe(we,D))for(let We of(l=XVe(we,D))!==null&&l!==void 0?l:[]){if(g.nodeWithArgument(We,[n,R,De],r),I()!=null)return;b.pop()}}}}function lAn({node:r,evaluate:n,typescript:i,stack:l,...p},m){var g;let{getCurrentError:b}=p,D=n.nodeWithValue(r.name,p);if(b()==null){if(m==null){if(n.declaration(r.parent,p),b()!=null)return;let I=l.pop(),R=Dst(r,i);l.push(R?I[D]:I.prototype[D]);return}if(m[D]=r.initializer==null?void 0:n.expression(r.initializer,p),b()==null&&KVe(r,i))for(let I of(g=XVe(r,i))!==null&&g!==void 0?g:[]){if(n.nodeWithArgument(I,[m,D],p),b()!=null)return;l.pop()}}}function cAn(r,n){let{node:i,environment:l,evaluate:p,stack:m,typescript:g,getCurrentError:b}=r;if(g.isTypeLiteralNode(i.parent)||g.isInterfaceDeclaration(i.parent))return;let D=p.nodeWithValue(i.name,r);if(b()!=null)return;let I=Dst(i,g);if(n==null){let X;if(g.isClassLike(i.parent)){if(p.declaration(i.parent,r),b()!=null)return;X=m.pop()}else if(X=p.expression(i.parent,r),b()!=null)return;m.push(I?X[D]:X.prototype[D]);return}function R(){let X=hI(l,i),ue={...r,environment:X};if(e_({...ue,path:B1,value:!1,newBinding:!0}),e_({...ue,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(e_({...ue,path:n4,value:this,newBinding:!0}),e_({...ue,path:r0e,value:I?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),i.body!=null&&(p.statement(i.body,ue),b()==null&&cx(i,X,!0,B1)))return m.pop()}R.toString=()=>`[Get: ${D}]`;let V=Object.getOwnPropertyDescriptor(n,D);V==null&&(V={}),Object.defineProperty(n,D,{...V,configurable:!0,get:R})}function Pdr({node:r,evaluate:n,...i}){let{getCurrentError:l}=i;if(!(r.name!=null&&(n.declaration(r.name,i),l()!=null))&&r.namedBindings!=null)if("elements"in r.namedBindings){for(let p of r.namedBindings.elements)if(n.declaration(p,i),l()!=null)return}else n.declaration(r.namedBindings.name,i)}function Ndr({node:r,evaluate:n,...i}){var l;n.declaration((l=r.propertyName)!==null&&l!==void 0?l:r.name,i)}function Rdr({node:r,evaluate:n,...i}){n.declaration(r.name,i)}var bst=class extends r4{constructor({node:n,environment:i,message:l="'SyntaxError'"}){super({message:l,environment:i,node:n})}};function Ldr({node:r,typescript:n,throwError:i,environment:l}){var p,m;switch(r.keywordToken){case n.SyntaxKind.NewKeyword:switch(r.name.text){case"target":return(p=ED(r,l,"[[NewTarget]]"))===null||p===void 0?void 0:p.literal;default:return i(new bst({node:r.name,environment:l}))}case n.SyntaxKind.ImportKeyword:switch(r.name.text){case"meta":return(m=ED(r,l,"import.meta"))===null||m===void 0?void 0:m.literal;default:return i(new bst({node:r.name,environment:l}))}}}function UWt({node:r,...n}){var i,l,p,m,g,b;return n.typescript.isIdentifier(r)?zTn({node:r,...n}):!((l=(i=n.typescript).isPrivateIdentifier)===null||l===void 0)&&l.call(i,r)?zTn({node:r,...n}):n.typescript.isStringLiteralLike(r)?Ffr({node:r,...n}):n.typescript.isNumericLiteral(r)?Ofr({node:r,...n}):eAn(r,n.typescript)?Wfr({node:r,...n}):n.typescript.isForOfStatement(r)?adr({node:r,...n}):n.typescript.isForInStatement(r)?ddr({node:r,...n}):n.typescript.isForStatement(r)?pdr({node:r,...n}):n.typescript.isWhileStatement(r)?fdr({node:r,...n}):n.typescript.isRegularExpressionLiteral(r)?Gfr({node:r,...n}):n.typescript.isObjectLiteralExpression(r)?zfr({node:r,...n}):n.typescript.isAwaitExpression(r)?wdr({node:r,...n}):!((m=(p=n.typescript).isTypeAssertionExpression)===null||m===void 0)&&m.call(p,r)||!("isTypeAssertionExpression"in n.typescript)&&n.typescript.isTypeAssertion(r)?tdr({node:r,...n}):n.typescript.isTemplateExpression(r)?edr({node:r,...n}):n.typescript.isMethodDeclaration(r)?aAn({node:r,...n}):n.typescript.isPropertyDeclaration(r)?lAn({node:r,...n}):n.typescript.isGetAccessorDeclaration(r)?cAn({node:r,...n}):n.typescript.isArrayLiteralExpression(r)?Vfr({node:r,...n}):n.typescript.isSourceFile(r)?Ddr({node:r,...n}):n.typescript.isModuleDeclaration(r)?Tdr({node:r,...n}):n.typescript.isPrefixUnaryExpression(r)?qfr({node:r,...n}):n.typescript.isPostfixUnaryExpression(r)?ndr({node:r,...n}):n.typescript.isVariableStatement(r)?Jfr({node:r,...n}):n.typescript.isComputedPropertyName(r)?Yfr({node:r,...n}):n.typescript.isVariableDeclarationList(r)?oAn({node:r,...n}):n.typescript.isImportDeclaration(r)?Adr({node:r,...n}):n.typescript.isImportClause(r)?Pdr({node:r,...n}):n.typescript.isImportSpecifier(r)?Ndr({node:r,...n}):n.typescript.isNamespaceImport(r)?Rdr({node:r,...n}):n.typescript.isImportEqualsDeclaration(r)?({...n},void 0):n.typescript.isMetaProperty(r)?Ldr({node:r,...n}):n.typescript.isThrowStatement(r)?kdr({node:r,...n}):n.typescript.isVariableDeclaration(r)?nAn({node:r,...n}):n.typescript.isEnumDeclaration(r)?Edr({node:r,...n}):n.typescript.isConstructorDeclaration(r)?gdr({node:r,...n}):n.typescript.isBinaryExpression(r)?Pfr({node:r,...n}):n.typescript.isParenthesizedExpression(r)?Lfr({node:r,...n}):n.typescript.isExpressionStatement(r)?Zfr({node:r,...n}):n.typescript.isArrowFunction(r)?Mfr({node:r,...n}):n.typescript.isFunctionDeclaration(r)?Qfr({node:r,...n}):n.typescript.isFunctionExpression(r)?mdr({node:r,...n}):n.typescript.isClassDeclaration(r)?hdr({node:r,...n}):n.typescript.isIfStatement(r)?$fr({node:r,...n}):n.typescript.isConditionalExpression(r)?Idr({node:r,...n}):n.typescript.isPropertyAccessExpression(r)?Kfr({node:r,...n}):n.typescript.isElementAccessExpression(r)?Xfr({node:r,...n}):n.typescript.isCallExpression(r)?Rfr({node:r,...n}):n.typescript.isSwitchStatement(r)?sdr({node:r,...n}):n.typescript.isNewExpression(r)?rdr({node:r,...n}):n.typescript.isNonNullExpression(r)?idr({node:r,...n}):n.typescript.isAsExpression(r)?odr({node:r,...n}):n.typescript.isBlock(r)?Ufr({node:r,...n}):n.typescript.isClassExpression(r)?Cdr({node:r,...n}):n.typescript.isSpreadElement(r)?ydr({node:r,...n}):n.typescript.isTryStatement(r)?_dr({node:r,...n}):n.typescript.isReturnStatement(r)?Hfr({node:r,...n}):rAn(r,n.typescript)?ldr({node:r,...n}):n.typescript.isVoidExpression(r)?bdr({node:r,...n}):n.typescript.isTypeOfExpression(r)?Sdr({node:r,...n}):Est(r,n.typescript)?Bdr({node:r,...n}):tAn(r,n.typescript)?vdr({node:r,...n}):!((b=(g=n.typescript).isBigIntLiteral)===null||b===void 0)&&b.call(g,r)?xdr({node:r,...n}):n.typescript.isBreakStatement(r)?cdr({node:r,...n}):n.typescript.isContinueStatement(r)?udr({node:r,...n}):n.typescript.isTypeAliasDeclaration(r)?({...n},void 0):n.typescript.isInterfaceDeclaration(r)?({...n},void 0):n.getCurrentError()!=null?void 0:n.throwError(new KI({node:r,environment:n.environment,typescript:n.typescript}))}function HWt(){return[]}function Mdr(r){r.logger.logNode(r.node,r.typescript),r.statementTraversalStack=HWt(),UWt(r)}function Fdr(r){let{getCurrentError:n}=r;r.logger.logNode(r.node,r.typescript);let i=UWt(r);if(n()==null)return r.reporting.reportIntermediateResults!=null&&r.reporting.reportIntermediateResults({node:r.node,value:i}),i}function Odr(r){r.logger.logNode(r.node,r.typescript),UWt(r)}function Wdr({node:r,evaluate:n,typescript:i,logger:l,...p},m){var g;i.isIdentifier(r)||!((g=i.isPrivateIdentifier)===null||g===void 0)&&g.call(i,r)?(e_({...p,node:r,path:r.text,value:m,newBinding:!0}),l.logBinding(r.text,m,"evaluateBindingName")):n.nodeWithArgument(r,m,p)}function Gdr(r,n){let{node:i,environment:l,evaluate:p,typescript:m,getCurrentError:g}=r,b=p.nodeWithValue(i.name,r);if(g()!=null)return;let D=Dst(i,m);function I(...V){let X=hI(l,i),ue={...r,environment:X};e_({...ue,path:B1,value:!1,newBinding:!0}),e_({...ue,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(e_({...ue,path:n4,value:this,newBinding:!0}),e_({...ue,path:r0e,value:D?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),LU({...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 zdr({node:r,evaluate:n,...i},l){let p=n.expression(r.initializer,i);if(i.getCurrentError()!=null)return;let m=n.nodeWithValue(r.name,i);i.getCurrentError()==null&&(l[m]=p)}function jdr({node:r,evaluate:n,logger:i,...l},p){let m=p!=null||r.initializer===void 0?p:n.expression(r.initializer,l);l.getCurrentError()==null&&(i.logBinding(r.name.getText(),m,"evaluateParameterDeclaration"),n.nodeWithArgument(r.name,m,l))}function Vdr({node:r,evaluate:n,...i},l){let{getCurrentError:p}=i,m=r.name.text,g=n.expression(r.name,i);p()==null&&(l[m]=g)}function Udr({node:r,evaluate:n,...i},l){let p=n.expression(r.expression,i);i.getCurrentError()==null&&Object.assign(l,p)}function Hdr({node:r,evaluate:n,...i},l){let p=l[Symbol.iterator](),m=0;for(;m<r.elements.length;){let{done:g,value:b}=p.next();if(g===!0)break;if(n.nodeWithArgument(r.elements[m++],b,i),i.getCurrentError()!=null)return}}function Jdr(r,n){var i,l,p,m;let{node:g,evaluate:b,logger:D,typescript:I,getCurrentError:R}=r,V=g.initializer==null?void 0:b.expression(g.initializer,r);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,r);if(R()!=null)return;let De=I.isArrayBindingPattern(g.parent)?n:n[ue];e_({...r,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;D.logBinding(g.name.text,De),e_({...r,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,r);if(R()!=null)return;let ue=I.isArrayBindingPattern(g.parent)?n:n[X],De=ue??V;if(b.nodeWithArgument(g.name,De,r),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,r),R()!=null)return}}}function qdr({node:r,evaluate:n,...i},l){for(let p of r.elements)if(n.nodeWithArgument(p,l,i),i.getCurrentError()!=null)return}function Kdr(r,n){let{node:i,evaluate:l,environment:p,getCurrentError:m}=r,g=hI(p,i),b={...r,environment:g};e_({...b,path:ZL,value:!1,newBinding:!0});for(let D of i.clauses){if(l.nodeWithArgument(D,n,b),m()!=null)return;if(cx(i,g,!0,ZL,t4,B1))break}}function Xdr({node:r,evaluate:n,...i},l){let{getCurrentError:p}=i;if(!(n.expression(r.expression,i)!==l||p()!=null))for(let g of r.statements){if(n.statement(g,i),p()!=null)return;if(cx(r,i.environment,!0,ZL,t4,B1))break}}function Ydr(r){let{node:n,evaluate:i,environment:l,getCurrentError:p}=r;for(let m of n.statements){if(i.statement(m,r),p()!=null)return;if(cx(n,l,!0,ZL,t4,B1))break}}function Qdr(r,n){let{node:i,evaluate:l,environment:p,getCurrentError:m}=r,g=i.variableDeclaration==null?p:hI(p,i),b={...r,environment:g};i.variableDeclaration!=null&&(l.nodeWithArgument(i.variableDeclaration,n,b),m()!=null)||l.statement(i.block,b)}function $dr(r,n,i,l){let p=arguments.length,m=p<3?n:l===null?l=Object.getOwnPropertyDescriptor(n,i):l,g;for(let b=r.length-1;b>=0;b--)(g=r[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 Zdr(r,n){return function(i,l){n(i,l,r)}}function emr(r,[n,i,l]){let{node:p,evaluate:m,environment:g,throwError:b,stack:D,getCurrentError:I}=r,R=m.expression(p.expression,r);if(I()==null){if(typeof R!="function")return b(new Cst({node:p,environment:g,value:R,message:`${VWt(R)} is not a valid decorator implementation'`}));D.push($dr([l!=null?Zdr(l,R):R],n,i))}}function tmr(r,n){let{node:i,typeChecker:l,evaluate:p,getCurrentError:m}=r,g=l?.getConstantValue(i);if(g==null)if(i.initializer!=null){if(g=p.expression(i.initializer,r),m()!=null)return}else{let D=i.parent.members,I=D.findIndex(X=>X===i),R=D.slice(0,I),V=0;for(let X of[...R].reverse())if(V++,X.initializer!=null){let ue=p.expression(X.initializer,r);if(m()!=null)return;if(typeof ue=="number"){g=ue+V;break}}g==null&&(g=I)}let b=p.nodeWithValue(i.name,r);m()==null&&(typeof g=="string"?n[b]=g:n[n[b]=g??0]=b)}function nmr(r,n){r.logger.logNode(r.node,r.typescript,"nodeWithArgument");let{node:i,...l}=r;if(l.typescript.isGetAccessorDeclaration(i))cAn({node:i,...l},n);else if(l.typescript.isSetAccessorDeclaration(i))Gdr({node:i,...l},n);else if(l.typescript.isPropertyAssignment(i))zdr({node:i,...l},n);else if(l.typescript.isPropertyDeclaration(i))lAn({node:i,...l},n);else if(l.typescript.isParameter(i))jdr({node:i,...l},n);else if(l.typescript.isEnumMember(i))tmr({node:i,...l},n);else if(l.typescript.isShorthandPropertyAssignment(i))Vdr({node:i,...l},n);else if(l.typescript.isDecorator(i))emr({node:i,...l},n);else if(l.typescript.isSpreadAssignment(i))Udr({node:i,...l},n);else if(l.typescript.isMethodDeclaration(i))aAn({node:i,...l},n);else if(l.typescript.isArrayBindingPattern(i))Hdr({node:i,...l},n);else if(l.typescript.isBindingElement(i))Jdr({node:i,...l},n);else if(l.typescript.isObjectBindingPattern(i))qdr({node:i,...l},n);else if(l.typescript.isVariableDeclaration(i))nAn({node:i,...l},n);else if(l.typescript.isCaseBlock(i))Kdr({node:i,...l},n);else if(l.typescript.isCaseClause(i))Xdr({node:i,...l},n);else if(l.typescript.isDefaultClause(i))Ydr({node:i,...l});else if(l.typescript.isCatchClause(i))Qdr({node:i,...l},n);else if(l.typescript.isBindingName(i))Wdr({node:i,...l},n);else if(l.typescript.isOmittedExpression(i))({...l});else{if(r.getCurrentError()!=null)return;l.throwError(new KI({node:i,environment:l.environment,typescript:l.typescript}))}}function rmr({node:r,evaluate:n,typescript:i,...l}){var p;return i.isComputedPropertyName(r)?n.expression(r.expression,l):i.isIdentifier(r)||!((p=i.isPrivateIdentifier)===null||p===void 0)&&p.call(i,r)?r.text:n.expression(r,l)}function imr(r){r.logger.logNode(r.node,r.typescript,"nodeWithValue");let{node:n,...i}=r;return r.typescript.isPropertyName(n)||r.typescript.isPrivateIdentifier(n)?rmr({node:n,...i}):r.throwError(new KI({node:n,environment:r.environment,typescript:r.typescript}))}function omr(r){let n=0,{policy:i,reporting:l}=r,p=(b,D)=>{let{environment:I=r.environment,statementTraversalStack:R=r.statementTraversalStack,getCurrentError:V=r.getCurrentError,throwError:X=r.throwError}=D??{},ue=V();if(ue!=null)return ue;if(n++,n>=i.maxOps)return X(new RWt({ops:n,environment:I,node:b}));R.push(b.kind),l.reportTraversal!=null&&l.reportTraversal({node:b})},m={statement:(b,D)=>{let I={...D,statementTraversalStack:HWt()},R=p(b,I);if(!Uee(R))return Mdr(g(b,I))},declaration:(b,D)=>{let I=p(b,D);if(!Uee(I))return Odr(g(b,D))},nodeWithArgument:(b,D,I)=>{let R=p(b,I);if(!Uee(R))return nmr(g(b,I),D)},expression:(b,D)=>{let I=p(b,D);return Uee(I)?I:Fdr(g(b,D))},nodeWithValue:(b,D)=>{let I=p(b,D);return Uee(I)?I:imr(g(b,D))}};function g(b,D){return{...r,...D,evaluate:m,node:b}}return m}function JVe(r,n){return r===n.SyntaxKind.NumericLiteral?"NumericLiteral":n.SyntaxKind[r]}var WWt=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,JVe(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,JVe(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,JVe(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=`[${JVe(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: ${VWt(this.compactValue(n.lastItem))}`))}logStatementTraversalStack(n,i){this.options.logLevel<3||console.log(this.formatWithColor(this.options.color.debug,`[${n.map(l=>JVe(l,i)).join(", ")}]`))}compactValue(n){return(0,VTn.inspect)(n,{depth:0,colors:!0,compact:!0,maxArrayLength:5})}formatWithColor(n,i){return UTn.default[n](i)}};function smr(r,n){var i;return n.isExpressionNode(r)||n.isIdentifier(r)||((i=n.isPrivateIdentifier)===null||i===void 0?void 0:i.call(n,r))}function amr(r,n){return n.isStatementButNotDeclaration(r)}function lmr(){let r=[];return{[Symbol.iterator](){return r[Symbol.iterator]()},get length(){return r.length},get lastItem(){return r[r.length-1]},push(...n){return r.push(...n)},pop(){return r.pop()}}}function cmr(r,n,i){r.reportErrors!=null&&!r.reportedErrorSet.has(n)&&(r.reportedErrorSet.add(n),r.reportErrors({error:n,node:n instanceof r4?n.node:i}))}function umr(){return new WeakSet}function uAn({typeChecker:r,node:n,environment:{preset:i="NODE",extra:l={}}={},moduleOverrides:p={},typescript:m=afr,logLevel:g=0,policy:{deterministic:b=!1,network:D=!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=Ifr(n,m);if(we.success)return we;let We={deterministic:b,maxOps:R,maxOpDuration:V,network:D,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:umr()},Me,Ct=new WWt(g),Rt=Xn=>(cmr(Ne,Xn,Xn.node),Me=Xn,Me),en=wfr({inputEnvironment:{preset:i,extra:l},startingNode:n,policy:We}),Tn=lmr(),hn=HWt(),on={policy:We,typeChecker:r,typescript:m,logger:Ct,stack:Tn,moduleOverrides:p,reporting:Ne,throwError:Rt,environment:en,statementTraversalStack:hn,getCurrentError:()=>Me},Pn=omr(on);try{let Xn;return smr(n,m)?Xn=Pn.expression(n,on):amr(n,m)?(Pn.statement(n,on),Xn=Tn.pop()):JTn(n,m)?(Pn.declaration(n,on),Xn=Tn.pop()):Rt(new KI({node:n,environment:en,typescript:m})),Me!=null?{success:!1,reason:Me}:(Ct.logResult(Xn),{success:!0,value:Xn})}catch(Xn){return Rt(Xn),{success:!1,reason:Xn}}}var BAn=_d(V8(),1),i4=_d(V8(),1),$Ve=_d(V8(),1);var s0e=_d(V8(),1);var Jj=_d(V8(),1);var KWt=_d(V8(),1);var XWt=_d(V8(),1);var pmr=r=>{if(Array.isArray(r))return"array";if(typeof r=="string")return"string";if(typeof r=="number")return"number";if(typeof r=="boolean")return"boolean";if(r===null)return"null";if(r===void 0)return"undefined";throw new Error(`Unexpected literal type: ${r}`)},uk=r=>r!=null,_An=r=>r==null,hAn=r=>r!=null&&typeof r=="object",fmr=r=>Array.isArray(r),dmr=r=>{let n=typeof r;return n==="string"||n==="number"||n==="boolean"||r===null||r===void 0},N1=r=>QVe.Node.isAsExpression(r)||QVe.Node.isParenthesizedExpression(r)||QVe.Node.isNonNullExpression(r)||QVe.Node.isTypeAssertion(r)?N1(r.getExpression()):r,mmr=r=>r.getTagNameNode().getText(),_mr=/\s+/g,gAn=r=>r.replaceAll(_mr," "),hmr=r=>{let n=r.getSourceFile(),[i,l]=[r.getStart(),r.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}},Jre=class{type;stack=[];node;constructor(r){this.type=r.type,this.node=r.node,this.stack=[...r.stack??[]]}getNode(){return this.node}getStack(){return this.stack}getRange=()=>hmr(this.node);toJSON(){let r=this.getRange();return{type:this.type,value:this.value,node:this.node.getKindName(),line:r.startLineNumber,column:r.startColumn}}toString(){return JSON.stringify(this.toJSON(),null,2)}},pAn=class extends Jre{value;isEmpty;constructor(r){super(r),this.value=r.value,this.isEmpty=r.isEmpty}},gmr=class extends Jre{value;kind;constructor(r){super(r),this.value=r.value,this.kind=r.kind}},Bmr=class extends Jre{value;spreadConditions;constructor(r){super(r),this.value=r.value}},ymr=class extends Jre{value;constructor(r){super(r),this.value=r.value}},Cmr=class extends Jre{},vmr=class extends Jre{whenTrue;whenFalse;constructor(r){super(r),this.whenTrue=r.whenTrue,this.whenFalse=r.whenFalse}},bmr=class extends Jre{},uxe=r=>r instanceof Jre;function qWt(r,n,i){return H_(r).when(_An,()=>{}).when(uxe,l=>l).when(hAn,l=>Vc.object(l,n,i)).when(fmr,l=>l.length===1?qWt(l[0],n,i):l.map(p=>qWt(p,n,i))).when(dmr,l=>Vc.literal(l,n,i)).otherwise(()=>{})}var Vc={object(r,n,i){return new pAn({type:"object",value:r,node:n,stack:i})},literal(r,n,i){return new gmr({type:"literal",value:r,kind:pmr(r),node:n,stack:i})},map(r,n,i){return new Bmr({type:"map",value:r,node:n,stack:i})},array(r,n,i){return new ymr({type:"array",value:r,node:n,stack:i})},conditional(r,n,i,l){return new vmr({type:"conditional",whenTrue:r,whenFalse:n,node:i,stack:l})},from:qWt,emptyObject:(r,n)=>new pAn({type:"object",value:{},isEmpty:!0,node:r,stack:n}),emptyInitializer:(r,n)=>new bmr({type:"empty-initializer",node:r,stack:n}),unresolvable:(r,n)=>new Cmr({type:"unresolvable",node:r,stack:n}),isObject(r){return r?.type==="object"},isLiteral(r){return r?.type==="literal"},isMap(r){return r?.type==="map"},isArray(r){return r?.type==="array"},isUnresolvable(r){return r?.type==="unresolvable"},isConditional(r){return r?.type==="conditional"},isEmptyInitializer(r){return r?.type==="empty-initializer"},isNumberLiteral(r){return Vc.isLiteral(r)&&r.kind==="number"},hasValue:r=>Vc.isObject(r)||Vc.isLiteral(r)||Vc.isMap(r)||Vc.isArray(r)},yAn=Symbol("EvalError"),JWt=new WeakMap,Smr=(r,n,i)=>{if(i.flags?.skipEvaluate||i.canEval&&!i.canEval?.(r,n))return;if(JWt.has(r))return JWt.get(r);let l=uAn({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?.(r,n),node:r.compilerNode,typescript:BAn.ts}),p=l.success?l.value:yAn;return JWt.set(r,p),p},Tst=(r,n,i)=>{let l=Smr(r,n,i);if(l!==yAn)return l};function xmr(r){return i4.Node.isFunctionDeclaration(r)||i4.Node.isFunctionExpression(r)||i4.Node.isArrowFunction(r)||i4.Node.isSourceFile(r)}function Emr(r,n,i){let l=r.getParent();if(!l)return;let p=[],m;if((i4.Node.isVariableDeclaration(l)||i4.Node.isParameterDeclaration(l)||i4.Node.isFunctionDeclaration(l)||i4.Node.isBindingElement(l))&&l.getNameNode()==r)p.push(l),m=l;else if(i4.Node.isImportSpecifier(l)&&l.getNameNode()==r){if(i.flags?.skipTraverseFiles)return;let g=EAn(l.getImportDeclaration());if(g){let b=[l,g],D=xAn(r.getText(),g,b,i);D&&(p.push(...b.concat(D)),m=D)}}return m&&n.push(...p),m}var Dmr=r=>{let n=r.getParent();for(;n&&!xmr(n);)n=n.getParent();return n};function Ist(r,n,i,l=new Map){let p=r,m,g=!1,b=0,D=[];do{if(p=Dmr(p),b++,!p)return;let I=r.getText();if(p.forEachDescendant((R,V)=>{if(l.has(R)){V.skip(),D.push(...l.get(R));return}if(R!=r&&(l.set(R,D),i4.Node.isIdentifier(R)&&R.getText()==I)){let X=[R],ue=Emr(R,X,i);if(ue){if(i4.Node.isParameterDeclaration(ue)){let De=ue.getInitializer(),we=ue.getTypeNode();De?(D.push(...X.concat(De)),m=ue):we&&i4.Node.isTypeLiteral(we)?(D.push(...X.concat(we)),m=ue):g=!0,V.stop();return}D.push(...X),m=ue,V.stop()}}}),m||g)return m&&n.push(...D),m}while(p&&!i4.Node.isSourceFile(p)&&!m&&!g&&b<100)}var Tmr=(r,n,i)=>H_(r).when(s0e.Node.isPropertyAssignment,l=>{let p=N1(l.getNameNode());return H_(p).when(s0e.Node.isIdentifier,m=>Vc.from(m.getText(),m,n)).when(s0e.Node.isComputedPropertyName,m=>{let g=m.getExpression();return n.push(g),FU(g,n,i)}).when(pI.or(s0e.Node.isStringLiteral,s0e.Node.isNumericLiteral),m=>Vc.from(m.getLiteralText(),m,n)).otherwise(()=>{})}).when(s0e.Node.isShorthandPropertyAssignment,l=>{let p=l.getName();if(p!=null)return Vc.from(p,l,n)}).otherwise(()=>{}),Amr=(r,n,i,l)=>{let p=r.getProperties();if(p.length===0)return Vc.emptyObject(r,n);let m=[],g=[];p.forEach(I=>{let R=[...n];if(R.push(I),$Ve.Node.isPropertyAssignment(I)||$Ve.Node.isShorthandPropertyAssignment(I)){let V=Tmr(I,R,i);if(!V)return;let X=V.value;if(_An(X)||l&&!l?.({propName:X,propNode:I}))return;if($Ve.Node.isShorthandPropertyAssignment(I)){let We=I.getNameNode();R.push(We);let Ne=Ab(We,R,i);if(Ne){m.push([X.toString(),Ne]);return}}let ue=I.getInitializer();if(!ue)return;let De=N1(ue);R.push(De);let we=Ab(De,R,i);if(we){m.push([X.toString(),we]);return}}if($Ve.Node.isSpreadAssignment(I)){let V=N1(I.getExpression());R.push(V);let X=Ab(V,R,i,l);if(!X)return;if(Vc.isObject(X)){Object.entries(X.value).forEach(([ue,De])=>{let we=Vc.from(De,V,R);we&&m.push([ue,we])});return}if(Vc.isMap(X)){X.value.forEach((ue,De)=>{m.push([De,ue])});return}Vc.isConditional(X)&&g.push(X)}});let b=new Map;m.forEach(([I,R])=>{b.has(I)&&b.delete(I),b.set(I,R)});let D=Vc.map(b,r,n);return g.length>0&&(D.spreadConditions=g),D},YWt=new WeakMap,kmr=r=>YWt.has(r),wmr=r=>YWt.get(r),Imr=r=>r===jp.ts.SyntaxKind.PlusToken,Pmr=r=>r===jp.ts.SyntaxKind.BarBarToken||r===jp.ts.SyntaxKind.QuestionQuestionToken||r===jp.ts.SyntaxKind.AmpersandAmpersandToken||r===jp.ts.SyntaxKind.EqualsEqualsEqualsToken||r===jp.ts.SyntaxKind.EqualsEqualsToken||r===jp.ts.SyntaxKind.ExclamationEqualsEqualsToken||r===jp.ts.SyntaxKind.ExclamationEqualsToken||r===jp.ts.SyntaxKind.GreaterThanEqualsToken||r===jp.ts.SyntaxKind.GreaterThanToken||r===jp.ts.SyntaxKind.LessThanEqualsToken||r===jp.ts.SyntaxKind.LessThanToken||r===jp.ts.SyntaxKind.InstanceOfKeyword||r===jp.ts.SyntaxKind.InKeyword,Nmr=r=>r===jp.ts.SyntaxKind.AsteriskToken||r===jp.ts.SyntaxKind.SlashToken||r===jp.ts.SyntaxKind.PercentToken||r===jp.ts.SyntaxKind.AsteriskAsteriskToken||r===jp.ts.SyntaxKind.MinusToken,Rmr=r=>r===jp.ts.SyntaxKind.BarBarToken||r===jp.ts.SyntaxKind.QuestionQuestionToken;function Ab(r,n,i,l){let p=m=>(YWt.set(r,m),m);return H_(r).when(kmr,wmr).when(pI.or(jp.Node.isStringLiteral,jp.Node.isNoSubstitutionTemplateLiteral),m=>{let g=gAn(m.getLiteralValue());return p(Vc.literal(g,m,n))}).when(jp.Node.isObjectLiteralExpression,m=>p(Amr(m,n,i,l))).when(pI.or(jp.Node.isTrueLiteral,jp.Node.isFalseLiteral),m=>{let g=m.getLiteralValue();return p(Vc.literal(g,m,n))}).when(jp.Node.isNumericLiteral,m=>{let g=m.getLiteralValue();return p(Vc.literal(g,m,n))}).when(jp.Node.isNullLiteral,m=>p(Vc.literal(null,m,n))).when(jp.Node.isPrefixUnaryExpression,m=>{let g=m.getOperand(),b=m.getOperatorToken(),D=Ab(g,n,i);if(Vc.isNumberLiteral(D))return p(b===jp.ts.SyntaxKind.MinusToken?Vc.literal(-Number(D.value),m,n):D)}).when(jp.Node.isArrayLiteralExpression,m=>{let g=m.getElements().map(b=>Ab(b,n,i)??p(Vc.unresolvable(b,n)));return p(Vc.array(g,m,n))}).when(jp.Node.isIdentifier,m=>H_(m.getText()).with("undefined",()=>p(Vc.literal(void 0,m,n))).otherwise(()=>p(Vmr(m,n,i)))).when(jp.Node.isTemplateHead,m=>p(Vc.literal(m.getLiteralText(),m,n))).when(jp.Node.isTemplateExpression,m=>{let g=vAn(m,n,i);return p(Vc.literal(g,m,n))}).when(jp.Node.isTaggedTemplateExpression,m=>p(Ab(m.getTemplate(),n,i))).when(jp.Node.isElementAccessExpression,m=>p(kst(m,n,i))).when(jp.Node.isPropertyAccessExpression,m=>p(wst(m,[],n,i))).when(jp.Node.isConditionalExpression,m=>{if(i.flags?.skipConditions)return p(Vc.unresolvable(m,n));let g=N1(m.getCondition()),b=(jp.Node.isIdentifier(g)?Ab(g,[],i):Tst(g,n,i))??Vc.unresolvable(g,n),D=uxe(b)?b:Vc.from(b,m,n);if(Vc.isEmptyInitializer(D))return;let I=D.getStack().some(ue=>jp.Node.isBindingElement(ue));if(Vc.isUnresolvable(D)||Vc.isConditional(D)||I){let ue=N1(m.getWhenTrue()),De=N1(m.getWhenFalse());return p(fAn({whenTrueExpr:ue,whenFalseExpr:De,node:m,stack:n},i))}if(D.value){let ue=N1(m.getWhenTrue()),De=[...n],we=Ab(ue,De,i);return p(we??Vc.unresolvable(ue,n))}let R=N1(m.getWhenFalse()),V=[...n],X=Ab(R,V,i);return p(X??Vc.unresolvable(m,n))}).when(jp.Node.isCallExpression,m=>{let g=Tst(m,n,i);if(g)return p(Vc.from(g,m,n))}).when(jp.Node.isBinaryExpression,m=>{let g=m.getOperatorToken().getKind();return H_(g).when(Imr,()=>{let b=DAn(m,n,i)??Tst(m,n,i);if(b)return p(Vc.from(b,m,n))}).when(Pmr,b=>{let D=N1(m.getLeft()),I=N1(m.getRight()),R={whenTrueExpr:D,whenFalseExpr:I,node:m,stack:n,canReturnWhenTrue:Rmr(b)};return p(fAn(R,i))}).when(Nmr,()=>p(Vc.literal(Tst(m,n,i),m,n))).otherwise(()=>{})}).otherwise(()=>{})}var CAn=r=>{if(r&&uxe(r)&&Vc.isLiteral(r)&&typeof r.value=="string")return r},Lmr=r=>{if(r&&uxe(r)&&Vc.isLiteral(r)&&typeof r.value=="number")return r},Mmr=(r,n,i)=>CAn(Ab(r,n,i)),FU=(r,n,i)=>{let l=Ab(r,n,i),p=CAn(l);if(p)return p;let m=Lmr(l);if(m)return m},fAn=({whenTrueExpr:r,whenFalseExpr:n,node:i,stack:l,canReturnWhenTrue:p},m)=>{let g=Ab(r,l,m),b=Ab(n,l,m);if(p&&g&&!Vc.isUnresolvable(g))return g;if(jp.Node.isBinaryExpression(i)&&i.getOperatorToken().getKind()===jp.ts.SyntaxKind.AmpersandAmpersandToken&&g&&b&&Vc.isLiteral(g)&&g.value===!0)return b;if(!g&&!b)return;if(g&&!b)return g;if(!g&&b)return b;let D=g,I=b;return Vc.isLiteral(D)&&Vc.isLiteral(I)&&D.value===I.value?D:Vc.conditional(D,I,i,l)},Fmr=(r,n,i,l)=>{let p=[...i];if(jp.Node.isPropertyAssignment(r)){let m=r.getNameNode();if(jp.Node.isIdentifier(m)&&m.getText()===n)return p.push(m),r;if(jp.Node.isStringLiteral(m)&&m.getLiteralText()===n)return p.push(m),m.getLiteralText();if(jp.Node.isComputedPropertyName(m)){let g=N1(m.getExpression()),b=FU(g,p,l);if(!b)return;if(String(b.value)===n)return p.push(m,g),r}}if(jp.Node.isShorthandPropertyAssignment(r)){let m=r.getNameNode();if(jp.Node.isIdentifier(m)&&m.getText()===n)return p.push(m),r}},QWt=(r,n,i,l)=>{let p=[...i],m=n.pop(),g=r.getProperty(m)??r.getProperties().find(b=>Fmr(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?QWt(b,n,p,l):Ab(b,p,l);let D=Ab(b,p,l);if(D)return D}if(jp.Node.isShorthandPropertyAssignment(g)){let b=g.getNameNode();if(n.length>0)return MU(b,n,p,l);let D=Ab(b,p,l);if(D)return D}}},vAn=(r,n,i)=>{let l=r.getHead(),p=r.getTemplateSpans(),m=Mmr(l,n,i);if(!m)return;let g=p.map(b=>{let D=b.getExpression(),I=FU(D,n,i);if(!I)return;let R=b.getLiteral();return I.value+R.getLiteralText()});if(g.every(uk))return m.value+g.join("")},bAn=(r,n,i,l)=>{let p=r.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 D=N1(b);if(!jp.Node.isArrayLiteralExpression(D))return;let I=D.getElements()[g+1];if(!I)return;let R=[...n,D,I],V=Ab(I,R,l);if(!V)return;if(Vc.isObject(V)){let ue=V.value[i];return Vc.from(ue,I,R)}if(!Vc.isMap(V))return V;let X=V.value.get(i);return X||void 0}}jp.Node.isObjectBindingPattern(p)}};function Omr(r,n,i,l){let p=n.at(-1);if(jp.Node.isVariableDeclaration(r)){let m=r.getInitializer();if(!m){let I=r.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=$Wt(De,V,l);return Vc.from(we,De,V)}let R=SAn(I,p,i,l);return i.push(I),Vc.from(R,I,i)}return}let g=N1(m);if(jp.Node.isObjectLiteralExpression(g)){let I=QWt(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=Ab(R,i,l);if(V&&uxe(V)&&Vc.isLiteral(V))return V}let b=[...i,g],D=Ab(g,b,l);if(D)return D}if(jp.Node.isBindingElement(r)){let m=bAn(r,i,p,l);if(m)return m}}var MU=(r,n,i,l)=>{let p=Ist(r,i,l);if(!p)return Vc.unresolvable(r,i);let m=Omr(p,n,i,l);return m||Vc.unresolvable(r,i)},o0e=new WeakMap,SAn=(r,n,i,l)=>{if(o0e.has(r)){let g=o0e.get(r);if(g===null)return;if(g?.has(n))return g.get(n)}let m=r.getMembers().find(g=>jp.Node.isPropertySignature(g)&&g.getName()===n);if(jp.Node.isPropertySignature(m)&&m.isReadonly()){let g=m.getTypeNode();if(!g){o0e.set(r,null);return}let b=$Wt(g,i,l);if(uk(b))return o0e.has(r)||o0e.set(r,new Map),o0e.get(r).set(n,b),b}o0e.set(r,null)};function Wmr(r){return jp.Node.isStringLiteral(r)?r.getLiteralText():r.getText()}var YVe=new WeakMap,$Wt=(r,n,i)=>{if(YVe.has(r))return YVe.get(r);if(jp.Node.isLiteralTypeNode(r)){let l=r.getLiteral();if(jp.Node.isStringLiteral(l)){let p=l.getLiteralText();return YVe.set(r,p),p}}if(jp.Node.isTypeLiteral(r)){let l=r.getMembers();if(!l.some(p=>!jp.Node.isPropertySignature(p)||!p.isReadonly())){let m=l.map(b=>{let D=b.getNameNode(),I=D.getText(),R=Wmr(D);if(!R)return;let V=SAn(r,I,n,i);return[R,V]}).filter(uk),g=Object.fromEntries(m);return YVe.set(r,g),g}}YVe.set(r,void 0)},Gmr=(r,n,i)=>{if(jp.Node.isShorthandPropertyAssignment(r)){let l=r.getNameNode();return MU(l,[l.getText()],n,i)}if(jp.Node.isVariableDeclaration(r)){let l=r.getInitializer();if(!l){let b=r.getTypeNode();if(!b)return;if(jp.Node.isTypeLiteral(b)){n.push(b);let D=$Wt(b,n,i);if(uk(D))return Vc.from(D,r,n)}return Vc.unresolvable(r,n)}let p=N1(l),m=[...n,p],g=Ab(p,m,i);if(g)return g}if(jp.Node.isBindingElement(r)){let l=r.getInitializer();if(!l){let b=r.getPropertyNameNode()??r.getNameNode(),D=b.getText(),I=[...n,b],R=bAn(r,I,D,i);return R||Vc.unresolvable(r,n)}let p=N1(l),m=[...n,p],g=Ab(p,m,i);if(g)return g}},xAn=(r,n,i,l)=>{let p=n.getVariableDeclaration(r);if(p)return p;let m=jmr(r,n,i,l);if(m)return m},zmr=(r,n)=>{let i=n.getNamedExports();if(i.length===0)return!0;for(let l of i)if(l.getNameNode().getText()===r)return!0},EAn=r=>{let n=r.getProject(),i=r.getModuleSpecifierValue();if(!i)return;let l=r.getSourceFile().getFilePath(),p=jp.ts.resolveModuleName(i,l,n.getCompilerOptions(),n.getModuleResolutionHost());return p.resolvedModule?n.addSourceFileAtPath(p.resolvedModule.resolvedFileName):void 0};function jmr(r,n,i,l){for(let p of n.getExportDeclarations()){let m=[p];if(!zmr(r,p))continue;let g=EAn(p);if(!g)continue;m.push(g);let b=xAn(r,g,i,l);if(b)return i.push(...m.concat(b)),b}}var Vmr=(r,n,i)=>{let l=Ist(r,n,i);if(!l)return Vc.unresolvable(r,n);let p=N1(l),m=[...n],g=Gmr(p,m,i);return g||Vc.unresolvable(r,m)},DAn=(r,n,i)=>{let l=N1(r.getLeft()),p=N1(r.getRight()),m=FU(l,n,i),g=FU(p,n,i);if(!(!m||!g)&&uk(m.value)&&uk(g.value))return Vc.literal(String(m.value)+String(g.value),r,n)},kst=(r,n,i)=>{let l=N1(r.getExpression()),p=r.getArgumentExpression();if(!p)return;let m=N1(p),g=[...n,l,m],b=FU(m,g,i);if(jp.Node.isIdentifier(l)&&b)return uk(b.value)?MU(l,[b.value.toString()],g,i):void 0;if(jp.Node.isBinaryExpression(m)){if(m.getOperatorToken().getKind()!==jp.ts.SyntaxKind.PlusToken)return;let D=DAn(m,g,i)??FU(m,g,i);if(D&&jp.Node.isIdentifier(l))return uk(D.value)?MU(l,[D.value.toString()],g,i):void 0}if(jp.Node.isTemplateExpression(m)){let D=vAn(m,g,i);if(D&&jp.Node.isIdentifier(l))return MU(l,[D],g,i)}if(jp.Node.isObjectLiteralExpression(l)&&b)return uk(b.value)?QWt(l,[b.value.toString()],g,i):void 0;if(jp.Node.isPropertyAccessExpression(m))return wst(m,[],g,i);if(jp.Node.isPropertyAccessExpression(l)&&b&&uk(b.value)){let D=wst(l,[],g,i);if(!D)return Vc.unresolvable(l,g);let I=b.value.toString();if(Vc.isObject(D)){let R=D.value[I];return Vc.from(R,m,g)}if(Vc.isMap(D)){let R=D.value.get(I);return Vc.from(R,m,g)}if(Vc.isArray(D)){let R=D.value[Number(I)];return Vc.from(R,m,g)}return Vc.unresolvable(l,g)}if(jp.Node.isIdentifier(l)&&jp.Node.isElementAccessExpression(m)){let D=kst(m,g,i);if(typeof D=="string"&&uk(D))return MU(l,[D],g,i)}if(jp.Node.isElementAccessExpression(l)&&b&&uk(b.value)){let D=kst(l,g,i);if(hAn(D)){let I=b.value.toString();if(Vc.isMap(D))return D.value.get(I);if(Vc.isObject(D)){let R=D.value[I];return R?Vc.from(R,r,g):void 0}}}if(jp.Node.isArrayLiteralExpression(l)&&b)return Umr(l,Number(b.value),g,i);if(jp.Node.isConditionalExpression(m)){if(i.flags?.skipConditions)return Vc.unresolvable(m,g);let D=FU(m,g,i);if(uk(D)&&uk(D.value)&&jp.Node.isIdentifier(l))return MU(l,[D.value.toString()],g,i);let I=N1(m.getWhenTrue()),R=N1(m.getWhenFalse()),V=FU(I,g,i),X=FU(R,g,i);if(jp.Node.isIdentifier(l)){let ue=V&&uk(V.value)?MU(l,[V.value.toString()],g,i):void 0,De=X&&uk(X.value)?MU(l,[X.value.toString()],g,i):void 0;return!ue&&!De?void 0:ue&&!De?ue:!ue&&De?De:Vc.conditional(ue,De,m,g)}}},Umr=(r,n,i,l)=>{let p=r.getElements()[n];if(!p)return;let m=Ab(p,i,l);if(uk(m))return m},wst=(r,n,i,l)=>{let p=r.getName(),m=N1(r.getExpression()),g=n.concat(p);if(i.push(m),jp.Node.isIdentifier(m))return MU(m,g,i,l);if(jp.Node.isPropertyAccessExpression(m))return wst(m,g,i,l);if(jp.Node.isElementAccessExpression(m)){let b=kst(m,i,l);if(!b)return;if(Vc.isObject(b)){let D=b.value[p];return Vc.from(D,r,i)}if(Vc.isMap(b)){let D=b.value.get(p);return Vc.from(D,r,i)}}},dAn=()=>!0,Pst=(r,n,i=dAn,l=dAn)=>{let p=r.getArguments(),m=r.getExpression().getText();return p.length===0?Vc.array([],r,[]):Vc.array(p.map((g,b)=>{let D=N1(g),I=[r,D];return H_(D).when(R=>l({fnNode:r,fnName:m,argNode:R,index:b}),R=>Ab(R,I,n,i)??Vc.unresolvable(R,I)).otherwise(()=>Vc.unresolvable(D,I))}),r,[])},Nst=(r,n)=>{let i=r.getInitializer(),l=[r,i];return H_(i).with(FS.nullish,()=>{let p=r.getNameNode();return Vc.emptyInitializer(p,l)}).when(KWt.Node.isStringLiteral,p=>{let m=p.getLiteralText();return Vc.literal(gAn(m),p,l)}).when(KWt.Node.isJsxExpression,p=>{let m=p.getExpression();if(!m)return;let g=N1(m);if(!g)return;l.push(g);let b=Ab(g,l,n);if(b)return b}).otherwise(()=>{})},TAn=(r,n,i)=>{let l=N1(r.getExpression());return Ab(l,[],n,i)},mAn=(r,n)=>r?uxe(r)?Vc.isUnresolvable(r)||Vc.isConditional(r)?new Map:Vc.isMap(r)?r.value:new Map(Object.entries(r.value).map(([i,l])=>{let p=Vc.from(l,r.getNode()??n,r.getStack()??[]);return[i,p||null]}).filter(([,i])=>i!==null)):new Map(Object.entries(r)):new Map,Hmr=pI.or(Jj.Node.isImportDeclaration,Jj.Node.isExportDeclaration),AAn=({ast:r,...n})=>{let{components:i,functions:l,taggedTemplates:p}=n,m=new Map,g=new Map,b,D,I,R,V;return r.forEachDescendant((X,ue)=>{if(Hmr(X)){ue.skip();return}if(i){if(Jj.Node.isJsxOpeningElement(X)||Jj.Node.isJsxSelfClosingElement(X)){if(b=X,D=mmr(b),I=D.includes("."),!i.matchTag({tagNode:b,tagName:D,isFactory:I})){b=void 0;return}m.has(D)||m.set(D,{kind:"component",nodesByProp:new Map,queryList:[]}),R=m.get(D).nodesByProp,g.has(b)||g.set(b,{name:D,props:new Map,conditionals:[]}),V=g.get(b)}if(Jj.Node.isJsxSpreadAttribute(X)){if(!b||!V)return;let De=({propName:Me,propNode:Ct})=>i.matchProp({tagNode:b,tagName:D,propName:Me,propNode:Ct}),we=TAn(X,n,mU(De));if(!we)return;let We=Me=>{let Ct=mAn(Me,X),Rt=Vc.isMap(Me),en=Vc.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=>H_(Me).when(Vc.isConditional,Ct=>{V.conditionals.push(Ct)}).when(pI.or(Vc.isObject,Vc.isMap),Ct=>We(Ct)).otherwise(PZe))(we);return}if(Jj.Node.isJsxAttribute(X)){if(!b||!V)return;let De=X.getNameNode().getText();if(!i.matchProp({tagNode:b,tagName:D,propName:De,propNode:X}))return;ok(Nst(X,n),Uje.fromNullable,Uje.tap(we=>{V.props.set(De,we),R.set(De,(R.get(De)??[]).concat(we))}))}}if(l&&Jj.Node.isCallExpression(X)){let De=X.getExpression(),we=Jj.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=Pst(X,n,We,l.matchArg),Rt=ok(Ct.value,M8.map(Tn=>H_(Tn).when(pI.or(Vc.isObject,Vc.isMap),hn=>{let on=mAn(hn,X),Pn=Vc.isMap(hn);on.forEach((Jt,Gs)=>{(Pn||We({propName:Gs,propNode:X}))&&Me.set(Gs,(Me.get(Gs)??[]).concat(Jt))});let Xn=Vc.map(on,X,hn.getStack());return Vc.isMap(hn)&&hn.spreadConditions?.length&&(Xn.spreadConditions=hn.spreadConditions),Xn}).otherwise(hn=>hn))),en={kind:"call-expression",name:we,box:Vc.array(Rt,X,[])};Ne.queryList.push(en)}if(p&&Jj.Node.isTaggedTemplateExpression(X)){let De=X.getTag(),we=Jj.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:Ab(X,[],n)};We.queryList.push(Ne)}}),g.forEach((X,ue)=>{let De=g.get(ue);if(!De)return;let we=mU({name:X.name,box:Vc.map(De.props,ue,[])});De.conditionals?.length&&(we.box.spreadConditions=De.conditionals);let We=X.name;m.get(We).queryList.push(we)}),m},Jmr=pI.or(Vc.isObject,Vc.isMap),kAn=(r,n)=>{let i=r.getTagNameNode().getText(),l=r.getAttributes(),p=new Map;return l.forEach(m=>{if(XWt.Node.isJsxAttribute(m)){let g=m.getNameNode(),b=Nst(m,n);if(!b)return;p.set(g.getText(),b);return}if(XWt.Node.isJsxSpreadAttribute(m)){let g=TAn(m,n,()=>!0);if(!Jmr(g))return;Vc.isMap(g)&&g.value.forEach((b,D)=>{p.set(D,b)}),Vc.isObject(g)&&Object.entries(g.value).forEach(([b,D])=>{p.set(b,Vc.literal(D,r,[]))})}}),{name:i,props:p}},Ast=(r,n)=>{if(!r.length)return n;let i={};return r.reduce((l,p,m)=>{let g=m===r.length-1;return l[p]=g?n:{},g?i:l[p]},i),i},Hre=(r,n)=>H_(r).with(FS.nullish,()=>{}).when(Vc.isConditional,i=>{let l=n.path,p=Hre(i.whenTrue,Object.assign({},n,{path:l,parent:i})),m=Hre(i.whenFalse,Object.assign({},n,{path:l,parent:i}));p&&n.conditions.push(Ast(l,p)),m&&n.conditions.push(Ast(l,m))}).when(pI.or(Vc.isLiteral,Vc.isObject),i=>i.value).when(Vc.isEmptyInitializer,()=>!0).when(Vc.isMap,i=>{if(i.spreadConditions){let l=n.path;i.spreadConditions.forEach(p=>{let m=Hre(p.whenTrue,Object.assign({},n,{path:l,parent:i})),g=Hre(p.whenFalse,Object.assign({},n,{path:l,parent:i}));m&&n.spreadConditions.push(Ast(l,m)),g&&n.spreadConditions.push(Ast(l,g))})}return ok(M8.from(i.value.entries()),M8.map(([l,p])=>[l,Hre(p,Object.assign({},n,{path:n.path.concat(l),parent:i}))]),M8.filter(([,l])=>uk(l)),Object.fromEntries)}).when(Vc.isArray,i=>{let l=0;return ok(i.value,M8.map(p=>Hre(p,Object.assign({},n,{path:n.path.concat(String(l++)),parent:i}))),M8.filter(uk),p=>p.flat())}).otherwise(()=>{}),qmr=new WeakMap,Kmr=r=>({value:r,has:n=>r.has(n),get:n=>r.get(n),set:(n,i)=>r.set(n,i)}),qj=(r,n)=>{let i={cache:n?.cache??qmr,...n,path:[],parent:void 0,conditions:[],spreadConditions:[]},l=Kmr(i.cache);return{raw:H_(r).with(FS.nullish,()=>{}).when(l.has,l.get).when(Array.isArray,m=>{let g=ok(m,M8.map(b=>Hre(b,i)),M8.filter(uk),M8.head);return l.set(m,g),g}).otherwise(m=>{let g=Hre(m,i);return l.set(m,g),g})??{},conditions:i.conditions,spreadConditions:i.spreadConditions}};re();re();re();re();function ZVe(r){return Object.prototype.toString.call(r).slice(8,-1)}function Xmr(r){return ZVe(r)==="Undefined"}function Ymr(r){return ZVe(r)==="Null"}function eUe(r){if(ZVe(r)!=="Object")return!1;let n=Object.getPrototypeOf(r);return n.constructor===Object&&n===Object.prototype}function ZWt(r){return ZVe(r)==="Array"}function eGt(r){return ZVe(r)==="Symbol"}var m0i=Qmr(Ymr,Xmr);function Qmr(r,n,i,l,p){return m=>r(m)||n(m)||!!i&&i(m)||!!l&&l(m)||!!p&&p(m)}function $mr(r,n){return ZWt(r)&&ZWt(n)?r.concat(n):n}function wAn(r,n,i,l){let p={}.propertyIsEnumerable.call(l,n)?"enumerable":"nonenumerable";p==="enumerable"&&(r[n]=i),p==="nonenumerable"&&Object.defineProperty(r,n,{value:i,enumerable:!1,writable:!0,configurable:!0})}function IAn(r,n,i){if(!eUe(n))return n;let l={};if(eUe(r)){let b=Object.getOwnPropertyNames(r),D=Object.getOwnPropertySymbols(r);l=[...b,...D].reduce((I,R)=>{let V=r[R];return(!eGt(R)&&!Object.getOwnPropertyNames(n).includes(R)||eGt(R)&&!Object.getOwnPropertySymbols(n).includes(R))&&wAn(I,R,V,r),I},{})}let p=Object.getOwnPropertyNames(n),m=Object.getOwnPropertySymbols(n);return[...p,...m].reduce((b,D)=>{let I=n[D],R=eUe(r)?r[D]:void 0;R!==void 0&&eUe(I)&&(I=IAn(R,I,i));let V=i?i(R,I,D):I;return wAn(b,D,V,n),b},l)}function PAn(r,...n){return n.reduce((i,l)=>IAn(i,l,$mr),r)}var NAn=r=>Object.prototype.toString.call(r)==="[object Object]";function tGt(r,...n){let i=n.pop();for(let l of n)for(let p in l){let m=i(r[p],l[p]);m===void 0?NAn(r[p])&&NAn(l[p])?r[p]=tGt({},r[p],l[p],i):r[p]=l[p]:r[p]=m}return r}function RAn(r,...n){for(let i of n)for(let l in i)r?.hasOwnProperty?.(l)||(r[l]=i[l]);return r}function Zmr(r){return r.reduce((n,{extend:i})=>i?tGt(n,i,(l,p)=>p===void 0?l??[]:l===void 0?[p]:Array.isArray(l)?[p,...l]:[p,l]):n,{})}function e_r(r){return{...r.reduce((n,i)=>RAn(n,i),{}),extend:Zmr(r)}}function tUe(r){let{extend:n=[],...i}=e_r(r);return tGt(i,n,(l,p)=>PAn({},l,...p))}var t_r=r=>typeof r=="object"&&Object.keys(r).length===0,n_r=r=>Object.keys(r).reduce((n,i)=>(r[i]!==void 0&&!t_r(r[i])&&(n[i]=r[i]),n),{});function LAn(r){let n=RAn({conditions:tUe(r.map(i=>i.conditions??{})),theme:tUe(r.map(i=>i.theme??{})),patterns:tUe(r.map(i=>i.patterns??{})),utilities:tUe(r.map(i=>i.utilities??{})),globalCss:tUe(r.map(i=>i.globalCss??{}))},...r);return n_r(n)}re();var Rst=require("path"),nUe=(r,n)=>{for(let i of r){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]}).split(Rst.sep).join(Rst.posix.sep)}}};re();var pxe=require("path"),Lst=require("fs");function MAn(r,n){let i=(0,pxe.resolve)(".",r),l;for((0,Lst.statSync)(i).isDirectory()||(i=(0,pxe.dirname)(i));;){if(l=n(i,(0,Lst.readdirSync)(i)),l)return(0,pxe.resolve)(i,l);if(i=(0,pxe.dirname)(l=i),l===i)break}}var VAn=require("path"),rUe=_d(require("fs"),1),fxe=_d(require("path"),1),UAn=require("path"),nGt=_d(SWt(),1);re();var FAn=require("esbuild"),OAn=_d(require("path"),1),Mst=_d(require("fs"),1),OU=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(n,i)=>(typeof require<"u"?require:n)[i]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+r+'" is not supported')});function r_r(r){let n=Mst.default.realpathSync(r);delete OU.cache[r];let i=OU(n);return{mod:i.default??i,dependencies:[n],code:Mst.default.readFileSync(n,"utf-8")}}async function i_r(r,n){let i=await(0,FAn.build)({absWorkingDir:n,entryPoints:[r],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 o_r(r,n){let i=OAn.default.extname(r),l=Mst.default.realpathSync(r),p=OU.extensions[i];OU.extensions[i]=(b,D)=>{D===l?b._compile(n,D):p(b,D)},delete OU.cache[OU.resolve(r)];let m=OU(r),g=m.default??m;return OU.extensions[i]=p,g}async function WAn(r,n={}){let{cwd:i=process.cwd()}=n,l=OU.resolve(r,{paths:[i]});try{return r_r(l)}catch{let p=await i_r(l,i);try{p.mod=await o_r(l,p.code)}catch{p.mod=OU("node-eval")(p.code).default}return p}}re();var GAn=class extends Error{code;hint;constructor(r,n,i){super(n),this.code=`ERR_PANDA_${r}`,this.hint=i?.hint}};var Fst=class extends GAn{constructor(){let r="Cannot find config file: panda.config.ts or panda.config.js/cjs/mjs/mts/cts. Did you forget to run `panda init`?";super("NO_CONFIG",r)}},zAn=class extends GAn{constructor(r){super("CONFIG_ERROR",r)}};var rGt=require("@pandacss/preset-base"),Wst=require("@pandacss/preset-panda"),s_r=[".ts",".js",".mts",".mjs",".cts",".cjs"],a_r=new RegExp(`panda.config(${s_r.join("|")})$`),l_r=r=>a_r.test(r);function c_r({cwd:r,file:n}){return n?(0,VAn.resolve)(r,n):MAn(r,(i,l)=>l.find(l_r))}function HAn(r,n){let i=Object.keys(r).sort((p,m)=>jAn(m)-jAn(p)),l=[];for(let p of i){let m=r[p];p=u_r(p).replace(/\*/g,"(.+)"),l.push({pattern:new RegExp("^"+p+"$"),paths:m.map(g=>(0,UAn.resolve)(n,g))})}return l}function jAn(r){let n=r.indexOf("*");return r.substr(0,n).length}function u_r(r){return r.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/-/g,"\\x2d")}var p_r=[".js",".cjs",".mjs"],f_r=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],d_r=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];function m_r(r,n){for(let i of n){let l=`${r}${i}`;if(rUe.default.existsSync(l)&&rUe.default.statSync(l).isFile())return l}for(let i of n){let l=`${r}/index${i}`;if(rUe.default.existsSync(l))return l}return null}var __r=/import[\s\S]*?['"](.{3,}?)['"]/gi,h_r=/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,g_r=/require\(['"`](.+)['"`]\)/gi,B_r=/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi;function Ost(r,n){let{filename:i,seen:l}=r,{moduleResolution:p,...m}=r.compilerOptions??{},g=m_r(fxe.default.resolve(r.cwd,i),p_r.includes(r.ext)?f_r:d_r);if(g===null||(n&&r.foundModuleAliases.set(n,g),l.size>1&&l.has(g)))return;l.add(g);let b=rUe.default.readFileSync(g,"utf-8"),D=[...b.matchAll(__r),...b.matchAll(h_r),...b.matchAll(g_r),...b.matchAll(B_r)];if(!D.length)return;let I={cwd:fxe.default.dirname(g),ext:fxe.default.extname(g),seen:l,baseUrl:r.baseUrl,pathMappings:r.pathMappings,foundModuleAliases:r.foundModuleAliases};D.forEach(R=>{let V=R[1];if(V[0]==="."){Ost(Object.assign({},I,{filename:V}));return}try{let X=nGt.default.resolveModuleName(V,g,m,nGt.default.sys).resolvedModule;if(X&&X.extension===".ts"){Ost(Object.assign({},I,{filename:X.resolvedFileName}));return}if(!r.pathMappings)return;let ue=nUe(r.pathMappings,V);if(!ue)return;Ost(Object.assign({},I,{filename:ue}),V)}catch{}})}function JAn(r,n={pathMappings:[]},i){if(r===null)return{deps:new Set,aliases:new Map};let l=new Map,p=new Set;return p.add(r),Ost({filename:r,ext:fxe.default.extname(r),cwd:fxe.default.dirname(r),seen:p,baseUrl:n.baseUrl,pathMappings:n.pathMappings??[],foundModuleAliases:l,compilerOptions:i}),{deps:p,aliases:l}}async function qAn(r,n){let{mod:i,dependencies:l}=await WAn(r,{cwd:n,interopDefault:!0});return{config:i?.default??i,dependencies:l}}async function y_r(r,n){let i=r.presets??[],l=[r];for(;i.length>0;){let p=await i.shift();if(typeof p=="string"){let m=await qAn(p,n);l.push(await m.config),i.unshift(...await m.config.presets??[])}else l.push(p),i.unshift(...p.presets??[])}return LAn(l)}var KAn={"@pandacss/preset-base":rGt.preset,"@pandacss/preset-panda":Wst.preset,"@pandacss/dev/presets":Wst.preset},C_r=Object.keys(KAn),v_r=r=>C_r.includes(r);async function XAn(r){let n=await S_r(r);return b_r(n,r.cwd)}async function b_r(r,n){let i=new Set;r.config.eject||i.add(rGt.preset),r.config.presets?r.config.presets.forEach(p=>{typeof p=="string"&&v_r(p)?i.add(KAn[p]):i.add(p)}):r.config.eject||i.add(Wst.preset),r.config.presets=Array.from(i);let l=await y_r(r.config,n);return{...r,config:l}}async function S_r(r){let{cwd:n,file:i}=r,l=c_r({cwd:n,file:i});if(!l)throw new Fst;P1.debug("config:path",l);let p=await qAn(l,n);if(typeof p.config!="object")throw new zAn("\u{1F4A5} Config must export or return an object.");return{...p,config:p.config,path:l}}var U8n=require("fs"),KHt=_d(vGt(),1),Zct=require("path");re();var gxe=require("path"),bGt=require("fs");var qwn=r=>r===(0,gxe.dirname)(r),wgr=Symbol("stop"),Igr=r=>r===wgr;var Qst=(r,n=process.cwd())=>{if(typeof r=="function"&&r(n)instanceof Promise)throw new Error("Async matcher can not be used in 'lookItUpSync'");if(typeof r=="string"){let l=(0,gxe.join)(n,r);return(0,bGt.existsSync)(l)?l:qwn(n)?null:Qst(r,(0,gxe.dirname)(n))}let i=r(n);return Igr(i)?null:i??(qwn(n)?null:Qst(r,(0,gxe.dirname)(n)))};re();var Bxe=_d(require("path"),1),tIn=require("fs"),nIn=_d(require("path"),1);var Yj=_d(require("path"),1),iIn=require("fs"),TGt=require("module"),HD=_d(require("path"),1),oIn=require("fs");async function Kwn(r,n){let i=Bxe.default.dirname(Bxe.default.resolve(r)),l=n?.root?Bxe.default.resolve(n.root):null;for(;i;){let p=await Pgr(i,n);if(p)return p;{if(l===i)break;let m=Bxe.default.dirname(i);if(m===i)break;i=m}}throw new Error(`no tsconfig file found for ${r}`)}async function Pgr(r,n){let i=Bxe.default.join(r,"tsconfig.json");if(n?.tsConfigPaths)return n.tsConfigPaths.has(i)?i:void 0;try{let l=await tIn.promises.stat(i);if(l.isFile()||l.isFIFO())return i}catch(l){if(l.code!=="ENOENT")throw l}}var i1i=nIn.default.sep;function Ngr(r){let n=Rgr(Lgr(Mgr(r)));return n.trim()===""?"{}":n}function Rgr(r){let n=!1,i=0,l="",p=null;for(let m=0;m<r.length;m++){let g=r[m];if(g==='"'&&(rIn(r,m)||(n=!n)),n){p=null;continue}if(g===","){p=m;continue}p&&(g==="}"||g==="]"?(l+=r.slice(i,p)+" ",i=p+1,p=null):g.match(/\s/)||(p=null))}return l+r.substring(i)}function rIn(r,n){let i=n-1,l=0;for(;r[i]==="\\";)i-=1,l+=1;return!!(l%2)}function $st(r,n,i){return r.slice(n,i).replace(/\S/g," ")}var SGt=Symbol("singleComment"),Xwn=Symbol("multiComment");function Lgr(r){let n=!1,i=!1,l=0,p="";for(let m=0;m<r.length;m++){let g=r[m],b=r[m+1];!i&&g==='"'&&(rIn(r,m)||(n=!n)),!n&&(!i&&g+b==="//"?(p+=r.slice(l,m),l=m,i=SGt,m++):i===SGt&&g+b===`\r
30731
30731
  `?(m++,i=!1,p+=$st(r,l,m),l=m):i===SGt&&g===`
30732
- `?(i=!1,p+=$st(r,l,m),l=m):!i&&g+b==="/*"?(p+=r.slice(l,m),l=m,i=Xwn,m++):i===Xwn&&g+b==="*/"&&(m++,i=!1,p+=$st(r,l,m+1),l=m+1))}return p+(i?$st(r.slice(l)):r.slice(l))}function Mgr(r){return r.charCodeAt(0)===65279?r.slice(1):r}var Fgr=new RegExp("\\"+HD.default.posix.sep,"g"),Ogr=new RegExp("\\"+HD.default.sep,"g"),xGt=new Map,sIn="**/*",kGt=[".ts",".tsx",".mts",".cts"],Wgr=`\\.(?:${kGt.map(r=>r.substring(1)).join("|")})`,o1i=new Function("path","return import(path).then(m => m.default)");async function Ywn(r){if(HD.default.extname(r)!==".json")return;let n=HD.default.resolve(r);try{let i=await oIn.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 ${r}`)}function EGt(r){return HD.default.posix.sep!==HD.default.sep&&r.includes(HD.default.posix.sep)?r.replace(Fgr,HD.default.sep):r}function wGt(r){return HD.default.posix.sep!==HD.default.sep&&r.includes(HD.default.sep)?r.replace(Ogr,HD.default.posix.sep):r}function fUe(r,n){return HD.default.sep===HD.default.posix.sep?r?HD.default.resolve(r,n):HD.default.resolve(n):wGt(r?HD.default.resolve(EGt(r),EGt(n)):HD.default.resolve(EGt(n)))}function Ggr(r){let n=HD.default.dirname(r.tsconfigFile);return r.tsconfig.references.map(i=>{let l=i.path.endsWith(".json")?i.path:HD.default.join(i.path,"tsconfig.json");return fUe(n,l)})}function zgr(r,n){if(n.referenced&&kGt.some(i=>r.endsWith(i))&&!Qwn(r,n)){let i=n.referenced.find(l=>Qwn(r,l));if(i)return{...i,solution:n}}return n}function Qwn(r,n){let i=wGt(HD.default.dirname(n.tsconfigFile)),l=(n.tsconfig.files||[]).map(g=>fUe(i,g)),p=fUe(null,r);return l.includes(r)?!0:$wn(p,i,n.tsconfig.include||(n.tsconfig.files?[]:[sIn]))?!$wn(p,i,n.tsconfig.exclude||[]):!1}function $wn(r,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&&!r.endsWith(l.slice(p+1))||l.endsWith("*")&&!kGt.some(I=>r.endsWith(I)))return!1;if(l===sIn)return r.startsWith(`${n}/`);let g=fUe(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&&!r.startsWith(g.slice(0,b-1)))return!1;if(!m)return r===g;if(xGt.has(g))return xGt.get(g).test(r);let D=jgr(g);return xGt.set(g,D),D.test(r)})}function jgr(r){let n="^";for(let i=0;i<r.length;i++){let l=r[i];if(l==="?"){n+="[^\\/]";continue}if(l==="*"){if(r[i+1]==="*"&&r[i+2]==="/"){i+=2,n+="(?:[^\\/]*\\/)*";continue}n+="[^\\/]*";continue}"/.+^${}()|[]\\".includes(l)&&(n+="\\"),n+=l}return r.endsWith("*")&&(n+=Wgr),n+="$",new RegExp(n)}async function aIn(r,n){let i=n?.cache;if(i?.has(r))return i.get(r);let l;if(n?.resolveWithEmptyIfConfigNotFound)try{l=await Ywn(r)||await Kwn(r,n)}catch{let g={tsconfigFile:"no_tsconfig_file_found",tsconfig:{}};return i?.set(r,g),g}else l=await Ywn(r)||await Kwn(r,n);let p;return i?.has(l)?p=i.get(l):(p=await IGt(l,i),await Promise.all([lIn(p,i),Ugr(p,i)]),i?.set(l,p)),p=zgr(r,p),i?.set(r,p),p}async function IGt(r,n){if(n?.has(r))return n.get(r);try{let i=await iIn.promises.readFile(r,"utf-8"),l=Ngr(i),p={tsconfigFile:r,tsconfig:Vgr(JSON.parse(l),Yj.default.dirname(r))};return n?.set(r,p),p}catch(i){throw new PGt(`parsing ${r} failed: ${i}`,"PARSE_FILE",r,i)}}function Vgr(r,n){var i;return(i=r.compilerOptions)!=null&&i.baseUrl&&!Yj.default.isAbsolute(r.compilerOptions.baseUrl)&&(r.compilerOptions.baseUrl=fUe(n,r.compilerOptions.baseUrl)),r}async function Ugr(r,n){if(!r.tsconfig.references)return;let i=Ggr(r),l=await Promise.all(i.map(p=>IGt(p,n)));await Promise.all(l.map(p=>lIn(p,n))),r.referenced=l}async function lIn(r,n){if(!r.tsconfig.extends)return;let i=[{tsconfigFile:r.tsconfigFile,tsconfig:JSON.parse(JSON.stringify(r.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=>Zwn(I,g.tsconfigFile)):b=[Zwn(g.tsconfig.extends,g.tsconfigFile)];let D=b.find(I=>p.includes(I));if(D){let I=p.concat([D]).join(" -> ");throw new PGt(`Circular dependency in "extends": ${I}`,"EXTENDS_CIRCULAR",r.tsconfigFile)}i.splice(l+1,0,...await Promise.all(b.map(I=>IGt(I,n))))}else p.splice(-m),m=0;l=l+1}r.extended=i;for(let g of r.extended.slice(1))Jgr(r,g)}function Zwn(r,n){let i;try{return(0,TGt.createRequire)(n).resolve(r)}catch(l){i=l}if(!Yj.default.isAbsolute(r)&&!r.startsWith("./")&&!r.startsWith("../"))try{let l=Yj.default.join(r,"tsconfig.json");return(0,TGt.createRequire)(n).resolve(l)}catch(l){i=l}throw new PGt(`failed to resolve "extends":"${r}" in ${n}`,"EXTENDS_RESOLVE",n,i)}var Hgr=["compilerOptions","files","include","exclude","watchOptions","compileOnSave","typeAcquisition","buildOptions"];function Jgr(r,n){let i=r.tsconfig,l=n.tsconfig,p=wGt(Yj.default.relative(Yj.default.dirname(r.tsconfigFile),Yj.default.dirname(n.tsconfigFile)));for(let m of Object.keys(l).filter(g=>Hgr.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]=DGt(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]=DGt(g,l.watchOptions[g],p)}else i[m]=DGt(m,l[m],p)}var qgr=["files","include","exclude","baseUrl","rootDir","rootDirs","typeRoots","outDir","outFile","declarationDir","excludeDirectories","excludeFiles"];function DGt(r,n,i){return qgr.includes(r)?Array.isArray(n)?n.map(l=>eIn(l,i)):eIn(n,i):n}function eIn(r,n){return Yj.default.isAbsolute(r)?r:Yj.default.posix.normalize(Yj.default.posix.join(n,r))}var PGt=class AGt extends Error{constructor(n,i,l,p){super(n),Object.setPrototypeOf(this,AGt.prototype),this.name=AGt.name,this.code=i,this.cause=p,this.tsconfigFile=l}};re();re();function Zst(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n]}function cIn(){return typeof WeakMap<"u"?new WeakMap:Kgr()}function Kgr(){return{add:Zst,delete:Zst,get:Zst,set:Zst,has:function(r){return!1}}}var Xgr=Object.prototype.hasOwnProperty,RGt=function(r,n){return Xgr.call(r,n)};function NGt(r,n){for(var i in n)RGt(n,i)&&(r[i]=n[i]);return r}var Ygr=/^[ \t]*(?:\r\n|\r|\n)/,Qgr=/(?:\r\n|\r|\n)[ \t]*$/,$gr=/^(?:[\r\n]|$)/,Zgr=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,eBr=/^[ \t]*[\r\n][ \t\r\n]*$/;function uIn(r,n,i){var l=0,p=r[0].match(Zgr);p&&(l=p[1].length);var m="(\\r\\n|\\r|\\n).{0,"+l+"}",g=new RegExp(m,"g");n&&(r=r.slice(1));var b=i.newline,D=i.trimLeadingNewline,I=i.trimTrailingNewline,R=typeof b=="string",V=r.length,X=r.map(function(ue,De){return ue=ue.replace(g,"$1"),De===0&&D&&(ue=ue.replace(Ygr,"")),De===V-1&&I&&(ue=ue.replace(Qgr,"")),R&&(ue=ue.replace(/\r\n|\n|\r/g,function(we){return b})),ue});return X}function tBr(r,n){for(var i="",l=0,p=r.length;l<p;l++)i+=r[l],l<p-1&&(i+=n[l]);return i}function nBr(r){return RGt(r,"raw")&&RGt(r,"length")}function pIn(r){var n=cIn(),i=cIn();function l(m){for(var g=[],b=1;b<arguments.length;b++)g[b-1]=arguments[b];if(nBr(m)){var D=m,I=(g[0]===l||g[0]===jc)&&eBr.test(D[0])&&$gr.test(D[1]),R=I?i:n,V=R.get(D);if(V||(V=uIn(D,I,r),R.set(D,V)),g.length===0)return V[0];var X=tBr(V,I?g.slice(1):g);return X}else return pIn(NGt(NGt({},r),m||{}))}var p=NGt(l,{string:function(m){return uIn([m],!1,r)[0]}});return p}var jc=pIn({trimLeadingNewline:!0,trimTrailingNewline:!0}),ux=jc;if(typeof module<"u")try{module.exports=jc,Object.defineProperty(jc,"__esModule",{value:!0}),jc.default=jc,jc.outdent=jc}catch{}h1();h1();var HIn=_d(CIn(),1);h1();re();var kBr="",wBr=kBr.split(","),IBr="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,alignmentBaseline,baselineShift,clipRule,colorInterpolation,colorRendering,dominantBaseline,fill,fillOpacity,fillRule,floodColor,floodOpacity,glyphOrientationVertical,lightingColor,marker,markerEnd,markerMid,markerStart,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,textAnchor,vectorEffect",OGt=IBr.split(",").concat(wBr),PBr=new Map(OGt.map(r=>[r,!0]));function NBr(r){let n=Object.create(null);return i=>(n[i]===void 0&&(n[i]=r(i)),n[i])}var RBr=/&|@/,vIn=NBr(r=>PBr.has(r)||r.startsWith("--")||RBr.test(r));h1();var qIn=_d(bIn(),1);re();h1();re();h1();h1();h1();h1();h1();h1();h1();var EIn=/(\$[^\s,]+\w)|({([^}]*)})/g,LBr=/[{}]/g;function UGt(r){if(typeof r!="string")return[];let n=r.match(EIn);return n?n.map(i=>i.replace(LBr,"")).map(i=>i.trim()):[]}function MBr(r){return EIn.test(r)}function FBr(r){let n={};return r.forEach((i,l)=>{i instanceof Map?n[l]=Object.fromEntries(i):n[l]=i}),n}var jGt=r=>R8(r)&&"value"in r;function SIn(r){if(!jGt(r))throw new Error(`Invalid token format: ${JSON.stringify(r)}`)}var oat=class DIn{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 uCe(`${this.name}-${this.extensions.condition}-${this.value}`)}get isConditional(){return!!this.extensions?.conditions}get hasReference(){return!!this.extensions?.references}get isComposite(){return R8(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 MBr(this.originalValue)}get references(){return UGt(this.originalValue)}clone(){return new DIn({name:this.name,value:this.value,type:this.type,path:[...this.path],description:this.description,extensions:VGt(this.extensions)})}getConditionTokens(){if(!this.isConditional)return;let n=this.extensions.conditions??{},i=[];return VI(n,(l,p)=>{let m=p.filter(b=>!nSe(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=OBr[this.extensions.category])}};function VGt(r){return r instanceof oat?r.clone():Array.isArray(r)?r.map(n=>VGt(n)):typeof r=="object"&&r!==null?Object.fromEntries(Object.entries(r).map(([n,i])=>[n,VGt(i)])):r}var OBr={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 WBr(r){return r?{breakpoints:pCe(r,n=>({value:n})),sizes:Object.fromEntries(Object.entries(r).map(([n,i])=>[`breakpoint-${n}`,{value:i}]))}:{breakpoints:{},sizes:{}}}function xIn(r){return r[0]==="DEFAULT"?r:r.filter(n=>n!=="DEFAULT")}var GBr=class{allTokens=[];prefix;hash;get allNames(){return Array.from(new Set(this.allTokens.map(r=>r.name)))}constructor(r){let{tokens:n={},semanticTokens:i={},breakpoints:l,prefix:p,hash:m}=r,g=WBr(l),b=cre({...n,breakpoints:g.breakpoints,sizes:{...n.sizes,...g.sizes}});this.prefix=p,this.hash=m,VI(b,(D,I)=>{I=xIn(I),SIn(D);let R=I[0],V=I.join("."),X=new oat({...D,name:V,path:I});X.setExtensions({category:R,prop:I.slice(1).join(".")}),this.allTokens.push(X)},{stop:jGt}),VI(i,(D,I)=>{I=xIn(I),SIn(D);let R=I[0],V=I.join("."),X=X7(D.value)?{value:{base:D.value}}:D,{value:ue,...De}=X,we=new oat({...De,name:V,value:ue.base||"",path:I});we.setExtensions({category:R,conditions:ue,prop:I.slice(1).join(".")}),this.allTokens.push(we)},{stop:jGt})}getByName=zb(r=>{for(let n of this.allTokens)if(n.name===r)return n});transforms=new Map;registerTransform(...r){return r.forEach(n=>{n.type||="value",n.enforce||="pre",this.transforms.set(n.name,n)}),this}execTransform(r){let n=this.transforms.get(r);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});H_(n).with({type:"extensions"},()=>{i.setExtensions(l)}).with({type:"value"},()=>{i.value=l,i.isComposite&&(i.originalValue=l)}).otherwise(()=>{i[n.type]=l})})}transformTokens(r){return this.transforms.forEach(n=>{n.enforce===r&&this.execTransform(n.name)}),this}middlewares=[];registerMiddleware(...r){for(let n of r)n.enforce||="pre",this.middlewares.push(n);return this}applyMiddlewares(r){this.middlewares.forEach(n=>{n.enforce===r&&n.transform(this,{prefix:this.prefix})})}getReferences(r){return UGt(r).map(i=>this.getByName(i)).filter(Boolean)}usesReference(r){return X7(r)?this.getReferences(r).length>0:!1}addReferences(){return this.allTokens.forEach(r=>{if(!this.usesReference(r.value))return;let n=this.getReferences(r.value);r.setExtensions({references:n.reduce((i,l)=>(i[l.name]=l,i),{})})}),this}filter(r){let n=typeof r=="function"?r:hre(r);return this.allTokens.filter(n)}addConditionalTokens(){let r=[];return this.allTokens.forEach(n=>{r.push(n);let i=n.getConditionTokens();i&&i.length>0&&r.push(...i)}),this.allTokens=r,this}expandReferences(){return this.allTokens.forEach(r=>{r.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}},Jee={groupByCondition(r){let n=new Map;return r.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(r){let n=new Map;return r.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=r.getByName(p);if(!m)return;let g=m.extensions.var;n.get(l).set(g,i.extensions.varRef)}),n},groupByCategory(r){let n=new Map;return r.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(r){let n=Jee.groupByCategory(r),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:D}=m.extensions,I=D?m.isConditional?m.originalValue:m.value:b;i.set(p,i.get(p).set(g,I))})}),i},getVars(r){let n=Jee.groupByCondition(r),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(r){let n=FBr(Jee.getFlattenedValues(r));return function(l,p){return aSe(n,l,p)}},getColorPaletteValues(r){let n=new Set;return r.allTokens.forEach(i=>{let{colorPalette:l}=i.extensions;!l||i.extensions.isVirtual||n.add(l)}),n}},zBr={enforce:"pre",transform(r,{prefix:n,hash:i}){r.filter({extensions:{category:"spacing"}}).forEach(p=>{let m=[...p.path],g=sSe(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=w4t.negate(g);let D=b.path.at(-1);D!=null&&(b.path[b.path.length-1]=`-${D}`),b.path&&(b.name=b.path.join(".")),r.allTokens.push(b)})}},jBr=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),VBr={enforce:"post",transform(r){r.filter(i=>jBr.has(i.extensions.category)&&!i.extensions.isNegative).forEach(i=>{i.setExtensions({pixelValue:fCe(i.value)})})}},UBr={enforce:"post",transform(r){let n=r.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 oat({name:`colors.colorPalette.${p}`,value:`{colors.colorPalette.${p}}`,path:["colors","colorPalette",p]});m.setExtensions({category:"colors",prop:`colorPalette.${p}`,isVirtual:!0}),r.allTokens.push(m)}),r.transformTokens("pre")}},HBr={enforce:"post",transform(r){r.allTokens=r.allTokens.filter(n=>n.value!=="")}},JBr=[zBr,UBr,HBr,VBr],zGt={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},HGt={whitespace:/\s+/g,urlHexPairs:/%[\dA-F]{2}/g,quotes:/"/g};function qBr(r){return r.trim().replace(HGt.whitespace," ")}function KBr(r){return encodeURIComponent(r).replace(HGt.urlHexPairs,YBr)}function XBr(r){return $Br(zGt).forEach(n=>{zGt[n].test(r)&&(r=r.replace(zGt[n],n))}),r}function YBr(r){switch(r){case"%20":return" ";case"%3D":return"=";case"%3A":return":";case"%2F":return"/";default:return r.toLowerCase()}}function QBr(r){if(typeof r!="string")throw new TypeError("Expected a string, but received "+typeof r);r.charCodeAt(0)===65279&&(r=r.slice(1));let n=XBr(qBr(r)).replace(HGt.quotes,"'");return"data:image/svg+xml,"+KBr(n)}var $Br=r=>Object.keys(r),ZBr=hre({inset:FS.optional(FS.boolean),offsetX:FS.number,offsetY:FS.number,blur:FS.number,spread:FS.number,color:FS.string}),eyr={name:"tokens/shadow",match:r=>r.extensions.category==="shadows",transform(r,{prefix:n}){if(X7(r.value))return r.value;if(Array.isArray(r.value)){if(r.extensions.conditions){let i=r.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(r.extensions.conditions?.base&&Array.isArray(r.originalValue))return r.extensions.conditions.base}return r.value.map(i=>this.transform({value:i},{prefix:n})).join(", ")}if(ZBr(r.value)){let{offsetX:i,offsetY:l,blur:p,spread:m,color:g,inset:b}=r.value;return`${b?"inset ":""}${i}px ${l}px ${p}px ${m}px ${g}`}return r.value}},tyr=hre({type:FS.string,placement:FS.string,stops:FS.union(FS.array(FS.string),FS.array({color:FS.string,position:FS.number}))}),nyr={name:"tokens/gradient",match:r=>r.extensions.category==="gradients",transform(r){if(X7(r.value))return r.value;if(tyr(r.value)){let{type:n,stops:i,placement:l}=r.value,p=i.map(m=>{if(X7(m))return m;let{color:g,position:b}=m;return`${g} ${b}px`});return`${n}-gradient(${l}, ${p.join(", ")})`}return r.value}},ryr={name:"tokens/fonts",match:r=>r.extensions.category==="fonts",transform(r){return Array.isArray(r.value)?r.value.join(", "):r.value}},iyr={name:"tokens/easings",match:r=>r.extensions.category==="easings",transform(r){return X7(r.value)?r.value:`cubic-bezier(${r.value.join(", ")})`}},oyr={name:"tokens/borders",match:r=>r.extensions.category==="borders",transform(r){if(X7(r.value))return r.value;let{width:n,style:i,color:l}=r.value;return`${n}px ${i} ${l}`}},syr={name:"tokens/assets",match:r=>r.extensions.category==="assets",transform(r){let n=r.value;return H_(n).with(FS.string,i=>i).with({type:"url"},({value:i})=>`url('${i}')`).with({type:"svg"},({value:i})=>`url('${QBr(i)})'`).exhaustive()}},ayr={type:"extensions",name:"tokens/css-var",transform(r,{prefix:n,hash:i}){let{isNegative:l,originalPath:p}=r.extensions,m=l?p:r.path,g=sSe(m.join("-"),{prefix:n,hash:i});return{var:g.var,varRef:g.ref}}},lyr={enforce:"post",name:"tokens/conditionals",transform(r,{prefix:n,hash:i}){let l=UGt(r.value);return l.length&&l.forEach(p=>{let m=sSe(p.split(".").join("-"),{prefix:n,hash:i}).ref;r.value=r.value.replace(`{${p}}`,m)}),r.value}};function cyr(r){if(r.includes("colorPalette"))return"";let n=[...r];return n.pop(),n.shift(),n.join(".")}var uyr={type:"extensions",name:"tokens/colors/colorPalette",match(r){return r.extensions.category==="colors"},transform(r){return{colorPalette:cyr(r.path)}}},pyr=[eyr,nyr,ryr,iyr,oyr,syr,ayr,lyr,uyr],TIn=class extends GBr{constructor(r){super(r),this.registerTransform(...pyr),this.registerMiddleware(...JBr),this.build()}get get(){return Jee.createVarGetter(this)}get conditionMap(){return Jee.groupByCondition(this)}get categoryMap(){return Jee.groupByCategory(this)}get values(){return Jee.getFlattenedValues(this)}get colorPalettes(){return W$e(Jee.groupByColorPalette(this))}get vars(){return Jee.getVars(this)}getValue(r){let n=this.values.get(r);if(n!=null)return Object.fromEntries(n)}getTokenVar(r){let n=W$e(this.values);return aSe(n,r)}};h1();h1();var fyr=Object.defineProperty,dyr=(r,n)=>{for(var i in n)fyr(r,i,{get:n[i],enumerable:!0})},myr={};dyr(myr,{artifactsGenerated:()=>wIn,buildComplete:()=>FIn,codegenComplete:()=>NIn,configExists:()=>IIn,configWatch:()=>MIn,getMessages:()=>OIn,noExtract:()=>RIn,thankYou:()=>PIn,watch:()=>LIn});var mUe=HI.green().bold("\u2714\uFE0F"),wIn=r=>{let{config:{outdir:n},recipes:i,patterns:l,tokens:p,jsx:m}=r;return()=>[jc`
30732
+ `?(i=!1,p+=$st(r,l,m),l=m):!i&&g+b==="/*"?(p+=r.slice(l,m),l=m,i=Xwn,m++):i===Xwn&&g+b==="*/"&&(m++,i=!1,p+=$st(r,l,m+1),l=m+1))}return p+(i?$st(r.slice(l)):r.slice(l))}function Mgr(r){return r.charCodeAt(0)===65279?r.slice(1):r}var Fgr=new RegExp("\\"+HD.default.posix.sep,"g"),Ogr=new RegExp("\\"+HD.default.sep,"g"),xGt=new Map,sIn="**/*",kGt=[".ts",".tsx",".mts",".cts"],Wgr=`\\.(?:${kGt.map(r=>r.substring(1)).join("|")})`,o1i=new Function("path","return import(path).then(m => m.default)");async function Ywn(r){if(HD.default.extname(r)!==".json")return;let n=HD.default.resolve(r);try{let i=await oIn.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 ${r}`)}function EGt(r){return HD.default.posix.sep!==HD.default.sep&&r.includes(HD.default.posix.sep)?r.replace(Fgr,HD.default.sep):r}function wGt(r){return HD.default.posix.sep!==HD.default.sep&&r.includes(HD.default.sep)?r.replace(Ogr,HD.default.posix.sep):r}function fUe(r,n){return HD.default.sep===HD.default.posix.sep?r?HD.default.resolve(r,n):HD.default.resolve(n):wGt(r?HD.default.resolve(EGt(r),EGt(n)):HD.default.resolve(EGt(n)))}function Ggr(r){let n=HD.default.dirname(r.tsconfigFile);return r.tsconfig.references.map(i=>{let l=i.path.endsWith(".json")?i.path:HD.default.join(i.path,"tsconfig.json");return fUe(n,l)})}function zgr(r,n){if(n.referenced&&kGt.some(i=>r.endsWith(i))&&!Qwn(r,n)){let i=n.referenced.find(l=>Qwn(r,l));if(i)return{...i,solution:n}}return n}function Qwn(r,n){let i=wGt(HD.default.dirname(n.tsconfigFile)),l=(n.tsconfig.files||[]).map(g=>fUe(i,g)),p=fUe(null,r);return l.includes(r)?!0:$wn(p,i,n.tsconfig.include||(n.tsconfig.files?[]:[sIn]))?!$wn(p,i,n.tsconfig.exclude||[]):!1}function $wn(r,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&&!r.endsWith(l.slice(p+1))||l.endsWith("*")&&!kGt.some(I=>r.endsWith(I)))return!1;if(l===sIn)return r.startsWith(`${n}/`);let g=fUe(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&&!r.startsWith(g.slice(0,b-1)))return!1;if(!m)return r===g;if(xGt.has(g))return xGt.get(g).test(r);let D=jgr(g);return xGt.set(g,D),D.test(r)})}function jgr(r){let n="^";for(let i=0;i<r.length;i++){let l=r[i];if(l==="?"){n+="[^\\/]";continue}if(l==="*"){if(r[i+1]==="*"&&r[i+2]==="/"){i+=2,n+="(?:[^\\/]*\\/)*";continue}n+="[^\\/]*";continue}"/.+^${}()|[]\\".includes(l)&&(n+="\\"),n+=l}return r.endsWith("*")&&(n+=Wgr),n+="$",new RegExp(n)}async function aIn(r,n){let i=n?.cache;if(i?.has(r))return i.get(r);let l;if(n?.resolveWithEmptyIfConfigNotFound)try{l=await Ywn(r)||await Kwn(r,n)}catch{let g={tsconfigFile:"no_tsconfig_file_found",tsconfig:{}};return i?.set(r,g),g}else l=await Ywn(r)||await Kwn(r,n);let p;return i?.has(l)?p=i.get(l):(p=await IGt(l,i),await Promise.all([lIn(p,i),Ugr(p,i)]),i?.set(l,p)),p=zgr(r,p),i?.set(r,p),p}async function IGt(r,n){if(n?.has(r))return n.get(r);try{let i=await iIn.promises.readFile(r,"utf-8"),l=Ngr(i),p={tsconfigFile:r,tsconfig:Vgr(JSON.parse(l),Yj.default.dirname(r))};return n?.set(r,p),p}catch(i){throw new PGt(`parsing ${r} failed: ${i}`,"PARSE_FILE",r,i)}}function Vgr(r,n){var i;return(i=r.compilerOptions)!=null&&i.baseUrl&&!Yj.default.isAbsolute(r.compilerOptions.baseUrl)&&(r.compilerOptions.baseUrl=fUe(n,r.compilerOptions.baseUrl)),r}async function Ugr(r,n){if(!r.tsconfig.references)return;let i=Ggr(r),l=await Promise.all(i.map(p=>IGt(p,n)));await Promise.all(l.map(p=>lIn(p,n))),r.referenced=l}async function lIn(r,n){if(!r.tsconfig.extends)return;let i=[{tsconfigFile:r.tsconfigFile,tsconfig:JSON.parse(JSON.stringify(r.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=>Zwn(I,g.tsconfigFile)):b=[Zwn(g.tsconfig.extends,g.tsconfigFile)];let D=b.find(I=>p.includes(I));if(D){let I=p.concat([D]).join(" -> ");throw new PGt(`Circular dependency in "extends": ${I}`,"EXTENDS_CIRCULAR",r.tsconfigFile)}i.splice(l+1,0,...await Promise.all(b.map(I=>IGt(I,n))))}else p.splice(-m),m=0;l=l+1}r.extended=i;for(let g of r.extended.slice(1))Jgr(r,g)}function Zwn(r,n){let i;try{return(0,TGt.createRequire)(n).resolve(r)}catch(l){i=l}if(!Yj.default.isAbsolute(r)&&!r.startsWith("./")&&!r.startsWith("../"))try{let l=Yj.default.join(r,"tsconfig.json");return(0,TGt.createRequire)(n).resolve(l)}catch(l){i=l}throw new PGt(`failed to resolve "extends":"${r}" in ${n}`,"EXTENDS_RESOLVE",n,i)}var Hgr=["compilerOptions","files","include","exclude","watchOptions","compileOnSave","typeAcquisition","buildOptions"];function Jgr(r,n){let i=r.tsconfig,l=n.tsconfig,p=wGt(Yj.default.relative(Yj.default.dirname(r.tsconfigFile),Yj.default.dirname(n.tsconfigFile)));for(let m of Object.keys(l).filter(g=>Hgr.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]=DGt(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]=DGt(g,l.watchOptions[g],p)}else i[m]=DGt(m,l[m],p)}var qgr=["files","include","exclude","baseUrl","rootDir","rootDirs","typeRoots","outDir","outFile","declarationDir","excludeDirectories","excludeFiles"];function DGt(r,n,i){return qgr.includes(r)?Array.isArray(n)?n.map(l=>eIn(l,i)):eIn(n,i):n}function eIn(r,n){return Yj.default.isAbsolute(r)?r:Yj.default.posix.normalize(Yj.default.posix.join(n,r))}var PGt=class AGt extends Error{constructor(n,i,l,p){super(n),Object.setPrototypeOf(this,AGt.prototype),this.name=AGt.name,this.code=i,this.cause=p,this.tsconfigFile=l}};re();re();function Zst(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n]}function cIn(){return typeof WeakMap<"u"?new WeakMap:Kgr()}function Kgr(){return{add:Zst,delete:Zst,get:Zst,set:Zst,has:function(r){return!1}}}var Xgr=Object.prototype.hasOwnProperty,RGt=function(r,n){return Xgr.call(r,n)};function NGt(r,n){for(var i in n)RGt(n,i)&&(r[i]=n[i]);return r}var Ygr=/^[ \t]*(?:\r\n|\r|\n)/,Qgr=/(?:\r\n|\r|\n)[ \t]*$/,$gr=/^(?:[\r\n]|$)/,Zgr=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,eBr=/^[ \t]*[\r\n][ \t\r\n]*$/;function uIn(r,n,i){var l=0,p=r[0].match(Zgr);p&&(l=p[1].length);var m="(\\r\\n|\\r|\\n).{0,"+l+"}",g=new RegExp(m,"g");n&&(r=r.slice(1));var b=i.newline,D=i.trimLeadingNewline,I=i.trimTrailingNewline,R=typeof b=="string",V=r.length,X=r.map(function(ue,De){return ue=ue.replace(g,"$1"),De===0&&D&&(ue=ue.replace(Ygr,"")),De===V-1&&I&&(ue=ue.replace(Qgr,"")),R&&(ue=ue.replace(/\r\n|\n|\r/g,function(we){return b})),ue});return X}function tBr(r,n){for(var i="",l=0,p=r.length;l<p;l++)i+=r[l],l<p-1&&(i+=n[l]);return i}function nBr(r){return RGt(r,"raw")&&RGt(r,"length")}function pIn(r){var n=cIn(),i=cIn();function l(m){for(var g=[],b=1;b<arguments.length;b++)g[b-1]=arguments[b];if(nBr(m)){var D=m,I=(g[0]===l||g[0]===jc)&&eBr.test(D[0])&&$gr.test(D[1]),R=I?i:n,V=R.get(D);if(V||(V=uIn(D,I,r),R.set(D,V)),g.length===0)return V[0];var X=tBr(V,I?g.slice(1):g);return X}else return pIn(NGt(NGt({},r),m||{}))}var p=NGt(l,{string:function(m){return uIn([m],!1,r)[0]}});return p}var jc=pIn({trimLeadingNewline:!0,trimTrailingNewline:!0}),ux=jc;if(typeof module<"u")try{module.exports=jc,Object.defineProperty(jc,"__esModule",{value:!0}),jc.default=jc,jc.outdent=jc}catch{}h1();h1();var HIn=_d(CIn(),1);h1();re();var kBr="",wBr=kBr.split(","),IBr="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,alignmentBaseline,baselineShift,clipRule,colorInterpolation,colorRendering,dominantBaseline,fill,fillOpacity,fillRule,floodColor,floodOpacity,glyphOrientationVertical,lightingColor,marker,markerEnd,markerMid,markerStart,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,textAnchor,vectorEffect",OGt=IBr.split(",").concat(wBr),PBr=new Map(OGt.map(r=>[r,!0]));function NBr(r){let n=Object.create(null);return i=>(n[i]===void 0&&(n[i]=r(i)),n[i])}var RBr=/&|@/,vIn=NBr(r=>PBr.has(r)||r.startsWith("--")||RBr.test(r));h1();var qIn=_d(bIn(),1);re();h1();re();h1();h1();h1();h1();h1();h1();h1();var EIn=/(\$[^\s,]+\w)|({([^}]*)})/g,LBr=/[{}]/g;function UGt(r){if(typeof r!="string")return[];let n=r.match(EIn);return n?n.map(i=>i.replace(LBr,"")).map(i=>i.trim()):[]}function MBr(r){return EIn.test(r)}function FBr(r){let n={};return r.forEach((i,l)=>{i instanceof Map?n[l]=Object.fromEntries(i):n[l]=i}),n}var jGt=r=>R8(r)&&"value"in r;function SIn(r){if(!jGt(r))throw new Error(`Invalid token format: ${JSON.stringify(r)}`)}var oat=class DIn{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 uCe(`${this.name}-${this.extensions.condition}-${this.value}`)}get isConditional(){return!!this.extensions?.conditions}get hasReference(){return!!this.extensions?.references}get isComposite(){return R8(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 MBr(this.originalValue)}get references(){return UGt(this.originalValue)}clone(){return new DIn({name:this.name,value:this.value,type:this.type,path:[...this.path],description:this.description,extensions:VGt(this.extensions)})}getConditionTokens(){if(!this.isConditional)return;let n=this.extensions.conditions??{},i=[];return VI(n,(l,p)=>{let m=p.filter(b=>!nSe(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=OBr[this.extensions.category])}};function VGt(r){return r instanceof oat?r.clone():Array.isArray(r)?r.map(n=>VGt(n)):typeof r=="object"&&r!==null?Object.fromEntries(Object.entries(r).map(([n,i])=>[n,VGt(i)])):r}var OBr={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 WBr(r){return r?{breakpoints:pCe(r,n=>({value:n})),sizes:Object.fromEntries(Object.entries(r).map(([n,i])=>[`breakpoint-${n}`,{value:i}]))}:{breakpoints:{},sizes:{}}}function xIn(r){return r[0]==="DEFAULT"?r:r.filter(n=>n!=="DEFAULT")}var GBr=class{allTokens=[];prefix;hash;get allNames(){return Array.from(new Set(this.allTokens.map(r=>r.name)))}constructor(r){let{tokens:n={},semanticTokens:i={},breakpoints:l,prefix:p,hash:m}=r,g=WBr(l),b=cre({...n,breakpoints:g.breakpoints,sizes:{...n.sizes,...g.sizes}});this.prefix=p,this.hash=m,VI(b,(D,I)=>{I=xIn(I),SIn(D);let R=I[0],V=I.join("."),X=new oat({...D,name:V,path:I});X.setExtensions({category:R,prop:I.slice(1).join(".")}),this.allTokens.push(X)},{stop:jGt}),VI(i,(D,I)=>{I=xIn(I),SIn(D);let R=I[0],V=I.join("."),X=X7(D.value)?{value:{base:D.value}}:D,{value:ue,...De}=X,we=new oat({...De,name:V,value:ue.base||"",path:I});we.setExtensions({category:R,conditions:ue,prop:I.slice(1).join(".")}),this.allTokens.push(we)},{stop:jGt})}getByName=zb(r=>{for(let n of this.allTokens)if(n.name===r)return n});transforms=new Map;registerTransform(...r){return r.forEach(n=>{n.type||="value",n.enforce||="pre",this.transforms.set(n.name,n)}),this}execTransform(r){let n=this.transforms.get(r);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});H_(n).with({type:"extensions"},()=>{i.setExtensions(l)}).with({type:"value"},()=>{i.value=l,i.isComposite&&(i.originalValue=l)}).otherwise(()=>{i[n.type]=l})})}transformTokens(r){return this.transforms.forEach(n=>{n.enforce===r&&this.execTransform(n.name)}),this}middlewares=[];registerMiddleware(...r){for(let n of r)n.enforce||="pre",this.middlewares.push(n);return this}applyMiddlewares(r){this.middlewares.forEach(n=>{n.enforce===r&&n.transform(this,{prefix:this.prefix,hash:this.hash})})}getReferences(r){return UGt(r).map(i=>this.getByName(i)).filter(Boolean)}usesReference(r){return X7(r)?this.getReferences(r).length>0:!1}addReferences(){return this.allTokens.forEach(r=>{if(!this.usesReference(r.value))return;let n=this.getReferences(r.value);r.setExtensions({references:n.reduce((i,l)=>(i[l.name]=l,i),{})})}),this}filter(r){let n=typeof r=="function"?r:hre(r);return this.allTokens.filter(n)}addConditionalTokens(){let r=[];return this.allTokens.forEach(n=>{r.push(n);let i=n.getConditionTokens();i&&i.length>0&&r.push(...i)}),this.allTokens=r,this}expandReferences(){return this.allTokens.forEach(r=>{r.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}},Jee={groupByCondition(r){let n=new Map;return r.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(r){let n=new Map;return r.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=r.getByName(p);if(!m)return;let g=m.extensions.var;n.get(l).set(g,i.extensions.varRef)}),n},groupByCategory(r){let n=new Map;return r.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(r){let n=Jee.groupByCategory(r),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:D}=m.extensions,I=D?m.isConditional?m.originalValue:m.value:b;i.set(p,i.get(p).set(g,I))})}),i},getVars(r){let n=Jee.groupByCondition(r),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(r){let n=FBr(Jee.getFlattenedValues(r));return function(l,p){return aSe(n,l,p)}},getColorPaletteValues(r){let n=new Set;return r.allTokens.forEach(i=>{let{colorPalette:l}=i.extensions;!l||i.extensions.isVirtual||n.add(l)}),n}},zBr={enforce:"pre",transform(r,{prefix:n,hash:i}){r.filter({extensions:{category:"spacing"}}).forEach(p=>{let m=[...p.path],g=sSe(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=w4t.negate(g);let D=b.path.at(-1);D!=null&&(b.path[b.path.length-1]=`-${D}`),b.path&&(b.name=b.path.join(".")),r.allTokens.push(b)})}},jBr=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),VBr={enforce:"post",transform(r){r.filter(i=>jBr.has(i.extensions.category)&&!i.extensions.isNegative).forEach(i=>{i.setExtensions({pixelValue:fCe(i.value)})})}},UBr={enforce:"post",transform(r){let n=r.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 oat({name:`colors.colorPalette.${p}`,value:`{colors.colorPalette.${p}}`,path:["colors","colorPalette",p]});m.setExtensions({category:"colors",prop:`colorPalette.${p}`,isVirtual:!0}),r.allTokens.push(m)}),r.transformTokens("pre")}},HBr={enforce:"post",transform(r){r.allTokens=r.allTokens.filter(n=>n.value!=="")}},JBr=[zBr,UBr,HBr,VBr],zGt={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},HGt={whitespace:/\s+/g,urlHexPairs:/%[\dA-F]{2}/g,quotes:/"/g};function qBr(r){return r.trim().replace(HGt.whitespace," ")}function KBr(r){return encodeURIComponent(r).replace(HGt.urlHexPairs,YBr)}function XBr(r){return $Br(zGt).forEach(n=>{zGt[n].test(r)&&(r=r.replace(zGt[n],n))}),r}function YBr(r){switch(r){case"%20":return" ";case"%3D":return"=";case"%3A":return":";case"%2F":return"/";default:return r.toLowerCase()}}function QBr(r){if(typeof r!="string")throw new TypeError("Expected a string, but received "+typeof r);r.charCodeAt(0)===65279&&(r=r.slice(1));let n=XBr(qBr(r)).replace(HGt.quotes,"'");return"data:image/svg+xml,"+KBr(n)}var $Br=r=>Object.keys(r),ZBr=hre({inset:FS.optional(FS.boolean),offsetX:FS.number,offsetY:FS.number,blur:FS.number,spread:FS.number,color:FS.string}),eyr={name:"tokens/shadow",match:r=>r.extensions.category==="shadows",transform(r,{prefix:n}){if(X7(r.value))return r.value;if(Array.isArray(r.value)){if(r.extensions.conditions){let i=r.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(r.extensions.conditions?.base&&Array.isArray(r.originalValue))return r.extensions.conditions.base}return r.value.map(i=>this.transform({value:i},{prefix:n})).join(", ")}if(ZBr(r.value)){let{offsetX:i,offsetY:l,blur:p,spread:m,color:g,inset:b}=r.value;return`${b?"inset ":""}${i}px ${l}px ${p}px ${m}px ${g}`}return r.value}},tyr=hre({type:FS.string,placement:FS.string,stops:FS.union(FS.array(FS.string),FS.array({color:FS.string,position:FS.number}))}),nyr={name:"tokens/gradient",match:r=>r.extensions.category==="gradients",transform(r){if(X7(r.value))return r.value;if(tyr(r.value)){let{type:n,stops:i,placement:l}=r.value,p=i.map(m=>{if(X7(m))return m;let{color:g,position:b}=m;return`${g} ${b}px`});return`${n}-gradient(${l}, ${p.join(", ")})`}return r.value}},ryr={name:"tokens/fonts",match:r=>r.extensions.category==="fonts",transform(r){return Array.isArray(r.value)?r.value.join(", "):r.value}},iyr={name:"tokens/easings",match:r=>r.extensions.category==="easings",transform(r){return X7(r.value)?r.value:`cubic-bezier(${r.value.join(", ")})`}},oyr={name:"tokens/borders",match:r=>r.extensions.category==="borders",transform(r){if(X7(r.value))return r.value;let{width:n,style:i,color:l}=r.value;return`${n}px ${i} ${l}`}},syr={name:"tokens/assets",match:r=>r.extensions.category==="assets",transform(r){let n=r.value;return H_(n).with(FS.string,i=>i).with({type:"url"},({value:i})=>`url('${i}')`).with({type:"svg"},({value:i})=>`url('${QBr(i)})'`).exhaustive()}},ayr={type:"extensions",name:"tokens/css-var",transform(r,{prefix:n,hash:i}){let{isNegative:l,originalPath:p}=r.extensions,m=l?p:r.path,g=sSe(m.join("-"),{prefix:n,hash:i});return{var:g.var,varRef:g.ref}}},lyr={enforce:"post",name:"tokens/conditionals",transform(r,{prefix:n,hash:i}){let l=UGt(r.value);return l.length&&l.forEach(p=>{let m=sSe(p.split(".").join("-"),{prefix:n,hash:i}).ref;r.value=r.value.replace(`{${p}}`,m)}),r.value}};function cyr(r){if(r.includes("colorPalette"))return"";let n=[...r];return n.pop(),n.shift(),n.join(".")}var uyr={type:"extensions",name:"tokens/colors/colorPalette",match(r){return r.extensions.category==="colors"},transform(r){return{colorPalette:cyr(r.path)}}},pyr=[eyr,nyr,ryr,iyr,oyr,syr,ayr,lyr,uyr],TIn=class extends GBr{constructor(r){super(r),this.registerTransform(...pyr),this.registerMiddleware(...JBr),this.build()}get get(){return Jee.createVarGetter(this)}get conditionMap(){return Jee.groupByCondition(this)}get categoryMap(){return Jee.groupByCategory(this)}get values(){return Jee.getFlattenedValues(this)}get colorPalettes(){return W$e(Jee.groupByColorPalette(this))}get vars(){return Jee.getVars(this)}getValue(r){let n=this.values.get(r);if(n!=null)return Object.fromEntries(n)}getTokenVar(r){let n=W$e(this.values);return aSe(n,r)}};h1();h1();var fyr=Object.defineProperty,dyr=(r,n)=>{for(var i in n)fyr(r,i,{get:n[i],enumerable:!0})},myr={};dyr(myr,{artifactsGenerated:()=>wIn,buildComplete:()=>FIn,codegenComplete:()=>NIn,configExists:()=>IIn,configWatch:()=>MIn,getMessages:()=>OIn,noExtract:()=>RIn,thankYou:()=>PIn,watch:()=>LIn});var mUe=HI.green().bold("\u2714\uFE0F"),wIn=r=>{let{config:{outdir:n},recipes:i,patterns:l,tokens:p,jsx:m}=r;return()=>[jc`
30733
30733
  ${mUe} ${wee(n,"/css")}: the css function to author styles
30734
30734
  `,!p.isEmpty&&jc`
30735
30735
  ${mUe} ${wee(n,"/tokens")}: the css variables and js function to query your tokens
@@ -54290,9 +54290,9 @@ export type Selectors = AttributeSelector | ParentSelector
54290
54290
  `)}
54291
54291
 
54292
54292
  export type PropertyValue<T extends string> = T extends keyof PropertyTypes
54293
- ? ConditionalValue<PropertyTypes[T]${l} | (string & {})>
54293
+ ? ConditionalValue<PropertyTypes[T]${l}${r.config.strictTokens?"":" | (string & {})"}>
54294
54294
  : T extends keyof CssProperties
54295
- ? ConditionalValue<CssProperties[T] | (string & {})>
54295
+ ? ConditionalValue<CssProperties[T]${r.config.strictTokens?"":" | (string & {})"}>
54296
54296
  : ConditionalValue<string | number>
54297
54297
  `}function xCr(r){let n=new Set(OGt.concat(r.utility.keys()).filter(Boolean));return ux`
54298
54298
  ${r.file.importType("ConditionalValue","./conditions")}
@@ -54343,7 +54343,7 @@ ${l.code}`)}),n)),VCr=r=>n=>{let{files:i,resolve:l}=n,{theme:{keyframes:p}={},pr
54343
54343
 
54344
54344
  `),I=r.createSheet({content:l?[WIn(r),b&&jIn(r),m&&zIn(r),!r.tokens.isEmpty&&VIn(r),p&&GIn(r)].filter(Boolean).join(`
54345
54345
 
54346
- `):D});I.append(...i);let R=I.toCss({optimize:!0,minify:g});return r.hooks.callHook("generator:css","styles.css",R),R},UCr=r=>n=>ok({...r,sheet:r.createSheet(),result:n},Aee(({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 D of g){let I=m.getConfig(b);I&&H_(D).with({type:"jsx-recipe"},()=>{D.data.forEach(R=>{let[V,X]=m.splitProps(b,R);i.processStyleProps(X),i.processRecipe(b,I,V)})}).otherwise(()=>{D.data.forEach(R=>{i.processRecipe(b,I,R)})})}}catch(D){P1.error("serializer:recipe",D)}}),l.pattern.forEach((g,b)=>{try{for(let D of g)H_(D).with({type:"jsx-pattern",name:FS.string},({name:I})=>{D.data.forEach(R=>{let V=p.find(I),X=p.transform(V,R);i.processStyleProps(X)})}).otherwise(()=>{D.data.forEach(I=>{let R=p.transform(b,I);i.processAtomic(R)})})}catch(D){P1.error("serializer:pattern",D)}})}),n6(({sheet:i,result:l,config:{minify:p,optimize:m}})=>{let g=l.isEmpty()?void 0:i.toCss({minify:p,optimize:m});return r.hooks.callHook("parser:css",l.filePath??"",g),g},i=>{P1.error("serializer:css","Failed to serialize CSS: "+i)})),HCr={map:pCe},JCr=r=>{let{config:n}=r,i=n.theme??{},l=n.syntax==="template-literal",p={tokens:NZe(n.hash)?n.hash:n.hash?.cssVar,className:NZe(n.hash)?n.hash:n.hash?.className},m={tokens:RZe(n.prefix)?n.prefix:n.prefix?.cssVar,className:RZe(n.prefix)?n.prefix:n.prefix?.className},g=new TIn({breakpoints:i.breakpoints,tokens:i.tokens,semanticTokens:i.semanticTokens,prefix:m.tokens,hash:p.tokens}),b=new nSn({prefix:m.className,tokens:g,config:l?{}:n.utilities,separator:n.separator,shorthands:n.shorthands}),D=new jbn({conditions:l?{}:n.conditions,breakpoints:n.theme?.breakpoints}),{textStyles:I,layerStyles:R}=i,V=cre({textStyle:I,layerStyle:R});zbn(V,{conditions:D,utility:b});let ue=n.layers,De=Object.values(ue),we=zb(Xn=>{let Jt=new Set(Xn.split(",").map(Gs=>Gs.trim()));return Jt.size>=5&&De.every(Gs=>Jt.has(Gs))}),We=`@layer ${De.join(", ")};`,Ne=()=>({root:hB.root(),conditions:D,utility:b,hash:p.className,helpers:HCr,layers:ue}),Me=Xn=>{let Jt=Ne();return new tSn(Jt,{content:Xn?.content,recipes:i?.recipes,slotRecipes:i?.slotRecipes})},Ct=Ne(),Rt=Object.assign({},i.recipes??{},i.slotRecipes??{}),en=new s7t(Rt,Ct);en.save();let Tn=Array.from(new Set(["css",...b.keys(),...D.keys()])),hn=new Map(Tn.map(Xn=>[Xn,!0])),on=zb(Xn=>hn.has(Xn)||vIn(Xn)),Pn={outdir:`${n.outdir}-studio`,...r.config.studio};return{...r,isTemplateLiteralSyntax:l,studio:Pn,hash:p,prefix:m,tokens:g,utility:b,properties:Tn,isValidProperty:on,recipes:en,conditions:D,createSheetContext:Ne,createSheet:Me,layers:ue,isValidLayerRule:we,layerString:We,layerNames:De}},qCr=r=>{let{jsxFactory:n,jsxFramework:i,jsxStyleProps:l}=r;return{factoryName:n,upperName:t6(n),typeName:`HTML${t6(n)}Props`,componentName:`${t6(n)}Component`,framework:i,styleProps:l??"all"}},KCr=({cwd:r,emitPackage:n,outdir:i})=>{let l=p=>[r,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")}},XCr={map:pCe},YCr=r=>{let n=r.patterns??{},i=p=>{let m=t6(p);return{upperName:m,baseName:p,dashName:Uze(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:Jze(b),jsx:b}});return{getConfig:p=>n[p],transform:(p,m)=>n[p]?.transform?.(m,XCr)??{},getNames:i,details:l,find:zb(p=>l.find(m=>m.match.test(p))?.baseName??P4t(p)),filter:zb(p=>l.filter(m=>m.match.test(p))),isEmpty:()=>Object.keys(n).length===0}},QCr=r=>{let{config:n}=r,{forceConsistentTypeExtension:i,outExtension:l}=n;return{...JCr(r),patterns:YCr(n),jsx:qCr(n),paths:KCr(n),file:{ext(p){return`${p}.${l}`},extDts(p){return`${p}.${l==="mjs"&&i?"d.mts":"d.ts"}`},__extDts(p){return i?this.extDts(p):p},import(p,m){return`import { ${p} } from '${this.ext(m)}';`},importType(p,m){return`import type { ${p} } from '${this.__extDts(m)}';`},exportType(p,m){return`export type { ${p} } from '${this.__extDts(m)}';`},exportStar(p){return`export * from '${this.ext(p)}';`},exportTypeStar(p){return`export * from '${this.__extDts(p)}';`},isTypeFile(p){return p.endsWith(".d.ts")||p.endsWith(".d.mts")}}}},$Cr=r=>({...r,config:{cssVarRoot:":where(:root, :host)",jsxFactory:"styled",jsxStyleProps:"all",outExtension:"mjs",shorthands:!0,syntax:"object-literal",...r.config,layers:{reset:"reset",base:"base",tokens:"tokens",recipes:"recipes",utilities:"utilities",...r.config.layers}}}),ZCr=r=>({css:[r,"css"],recipe:[r,"recipes"],pattern:[r,"patterns"],jsx:[r,"jsx"]}),KIn=r=>{let n=QCr($Cr(r)),{config:i,jsx:l,isValidProperty:p,patterns:m,recipes:g}=n,b=r.tsconfig?.compilerOptions??{},D=b.baseUrl??"",I=r.config.cwd,R=D!==I?D.replace(I,"").slice(1):I;return{...n,getArtifacts:jCr(n),getCss:VCr(n),getParserCss:UCr(n),messages:OIn(n),parserOptions:{importMap:ZCr(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:r.tsOptions}}};re();var THe=_d(V8(),1);h1();var xLn=_d(V8(),1);h1();re();re();function D3(r,n){let i=Object.create(null),l=r.split(",");for(let p=0;p<l.length;p++)i[l[p]]=!0;return n?p=>!!i[p.toLowerCase()]:p=>!!i[p]}var e0r=Object.freeze({}),XIn=()=>{},KGt=()=>!1,t0r=/^on[^a-z]/,TNn=r=>t0r.test(r),nte=Object.assign,n0r=Object.prototype.hasOwnProperty,r0r=(r,n)=>n0r.call(r,n),p5=Array.isArray,i0r=r=>gjt(r)==="[object Map]",o0r=r=>gjt(r)==="[object Set]",s0r=r=>typeof r=="function",C1=r=>typeof r=="string",hHe=r=>typeof r=="symbol",qxe=r=>r!==null&&typeof r=="object",ANn=Object.prototype.toString,gjt=r=>ANn.call(r),a0r=r=>gjt(r)==="[object Object]",YIn=D3(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),kNn=D3("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),hlt=r=>{let n=Object.create(null);return i=>n[i]||(n[i]=r(i))},l0r=/-(\w)/g,$j=hlt(r=>r.replace(l0r,(n,i)=>i?i.toUpperCase():"")),c0r=/\B([A-Z])/g,wNn=hlt(r=>r.replace(c0r,"-$1").toLowerCase()),b0e=hlt(r=>r.charAt(0).toUpperCase()+r.slice(1)),u0r=hlt(r=>r?`on${b0e(r)}`:""),p0r=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function QIn(r){return p0r.test(r)?`__props.${r}`:`__props[${JSON.stringify(r)}]`}var UU={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"},f0r={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},d0r="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",INn=D3(d0r),$In=2;function m0r(r,n=0,i=r.length){let l=r.split(/(\r?\n)/),p=l.filter((b,D)=>D%2===1);l=l.filter((b,D)=>D%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 D=b-$In;D<=b+$In||i>m;D++){if(D<0||D>=l.length)continue;let I=D+1;g.push(`${I}${" ".repeat(Math.max(3-String(I).length,0))}| ${l[D]}`);let R=l[D].length,V=p[D]&&p[D].length||0;if(D===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(D>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(`
54346
+ `):D});I.append(...i);let R=I.toCss({optimize:!0,minify:g});return r.hooks.callHook("generator:css","styles.css",R),R},UCr=r=>n=>ok({...r,sheet:r.createSheet(),result:n},Aee(({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 D of g){let I=m.getConfig(b);I&&H_(D).with({type:"jsx-recipe"},()=>{D.data.forEach(R=>{let[V,X]=m.splitProps(b,R);i.processStyleProps(X),i.processRecipe(b,I,V)})}).otherwise(()=>{D.data.forEach(R=>{i.processRecipe(b,I,R)})})}}catch(D){P1.error("serializer:recipe",D)}}),l.pattern.forEach((g,b)=>{try{for(let D of g)H_(D).with({type:"jsx-pattern",name:FS.string},({name:I})=>{D.data.forEach(R=>{let V=p.find(I),X=p.transform(V,R);i.processStyleProps(X)})}).otherwise(()=>{D.data.forEach(I=>{let R=p.transform(b,I);i.processAtomic(R)})})}catch(D){P1.error("serializer:pattern",D)}})}),n6(({sheet:i,result:l,config:{minify:p,optimize:m}})=>{let g=l.isEmpty()?void 0:i.toCss({minify:p,optimize:m});return r.hooks.callHook("parser:css",l.filePath??"",g),g},i=>{P1.error("serializer:css","Failed to serialize CSS: "+i)})),HCr={map:pCe},JCr=r=>{let{config:n}=r,i=n.theme??{},l=n.syntax==="template-literal",p={tokens:NZe(n.hash)?n.hash:n.hash?.cssVar,className:NZe(n.hash)?n.hash:n.hash?.className},m={tokens:RZe(n.prefix)?n.prefix:n.prefix?.cssVar,className:RZe(n.prefix)?n.prefix:n.prefix?.className},g=new TIn({breakpoints:i.breakpoints,tokens:i.tokens,semanticTokens:i.semanticTokens,prefix:m.tokens,hash:p.tokens}),b=new nSn({prefix:m.className,tokens:g,config:l?{}:n.utilities,separator:n.separator,shorthands:n.shorthands,strictTokens:n.strictTokens}),D=new jbn({conditions:l?{}:n.conditions,breakpoints:n.theme?.breakpoints}),{textStyles:I,layerStyles:R}=i,V=cre({textStyle:I,layerStyle:R});zbn(V,{conditions:D,utility:b});let ue=n.layers,De=Object.values(ue),we=zb(Xn=>{let Jt=new Set(Xn.split(",").map(Gs=>Gs.trim()));return Jt.size>=5&&De.every(Gs=>Jt.has(Gs))}),We=`@layer ${De.join(", ")};`,Ne=()=>({root:hB.root(),conditions:D,utility:b,hash:p.className,helpers:HCr,layers:ue}),Me=Xn=>{let Jt=Ne();return new tSn(Jt,{content:Xn?.content,recipes:i?.recipes,slotRecipes:i?.slotRecipes})},Ct=Ne(),Rt=Object.assign({},i.recipes??{},i.slotRecipes??{}),en=new s7t(Rt,Ct);en.save();let Tn=Array.from(new Set(["css",...b.keys(),...D.keys()])),hn=new Map(Tn.map(Xn=>[Xn,!0])),on=zb(Xn=>hn.has(Xn)||vIn(Xn)),Pn={outdir:`${n.outdir}-studio`,...r.config.studio};return{...r,isTemplateLiteralSyntax:l,studio:Pn,hash:p,prefix:m,tokens:g,utility:b,properties:Tn,isValidProperty:on,recipes:en,conditions:D,createSheetContext:Ne,createSheet:Me,layers:ue,isValidLayerRule:we,layerString:We,layerNames:De}},qCr=r=>{let{jsxFactory:n,jsxFramework:i,jsxStyleProps:l}=r;return{factoryName:n,upperName:t6(n),typeName:`HTML${t6(n)}Props`,componentName:`${t6(n)}Component`,framework:i,styleProps:l??"all"}},KCr=({cwd:r,emitPackage:n,outdir:i})=>{let l=p=>[r,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")}},XCr={map:pCe},YCr=r=>{let n=r.patterns??{},i=p=>{let m=t6(p);return{upperName:m,baseName:p,dashName:Uze(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:Jze(b),jsx:b}});return{getConfig:p=>n[p],transform:(p,m)=>n[p]?.transform?.(m,XCr)??{},getNames:i,details:l,find:zb(p=>l.find(m=>m.match.test(p))?.baseName??P4t(p)),filter:zb(p=>l.filter(m=>m.match.test(p))),isEmpty:()=>Object.keys(n).length===0}},QCr=r=>{let{config:n}=r,{forceConsistentTypeExtension:i,outExtension:l}=n;return{...JCr(r),patterns:YCr(n),jsx:qCr(n),paths:KCr(n),file:{ext(p){return`${p}.${l}`},extDts(p){return`${p}.${l==="mjs"&&i?"d.mts":"d.ts"}`},__extDts(p){return i?this.extDts(p):p},import(p,m){return`import { ${p} } from '${this.ext(m)}';`},importType(p,m){return`import type { ${p} } from '${this.__extDts(m)}';`},exportType(p,m){return`export type { ${p} } from '${this.__extDts(m)}';`},exportStar(p){return`export * from '${this.ext(p)}';`},exportTypeStar(p){return`export * from '${this.__extDts(p)}';`},isTypeFile(p){return p.endsWith(".d.ts")||p.endsWith(".d.mts")}}}},$Cr=r=>({...r,config:{cssVarRoot:":where(:root, :host)",jsxFactory:"styled",jsxStyleProps:"all",outExtension:"mjs",shorthands:!0,syntax:"object-literal",...r.config,layers:{reset:"reset",base:"base",tokens:"tokens",recipes:"recipes",utilities:"utilities",...r.config.layers}}}),ZCr=r=>({css:[r,"css"],recipe:[r,"recipes"],pattern:[r,"patterns"],jsx:[r,"jsx"]}),KIn=r=>{let n=QCr($Cr(r)),{config:i,jsx:l,isValidProperty:p,patterns:m,recipes:g}=n,b=r.tsconfig?.compilerOptions??{},D=b.baseUrl??"",I=r.config.cwd,R=D!==I?D.replace(I,"").slice(1):I;return{...n,getArtifacts:jCr(n),getCss:VCr(n),getParserCss:UCr(n),messages:OIn(n),parserOptions:{importMap:ZCr(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:r.tsOptions}}};re();var THe=_d(V8(),1);h1();var xLn=_d(V8(),1);h1();re();re();function D3(r,n){let i=Object.create(null),l=r.split(",");for(let p=0;p<l.length;p++)i[l[p]]=!0;return n?p=>!!i[p.toLowerCase()]:p=>!!i[p]}var e0r=Object.freeze({}),XIn=()=>{},KGt=()=>!1,t0r=/^on[^a-z]/,TNn=r=>t0r.test(r),nte=Object.assign,n0r=Object.prototype.hasOwnProperty,r0r=(r,n)=>n0r.call(r,n),p5=Array.isArray,i0r=r=>gjt(r)==="[object Map]",o0r=r=>gjt(r)==="[object Set]",s0r=r=>typeof r=="function",C1=r=>typeof r=="string",hHe=r=>typeof r=="symbol",qxe=r=>r!==null&&typeof r=="object",ANn=Object.prototype.toString,gjt=r=>ANn.call(r),a0r=r=>gjt(r)==="[object Object]",YIn=D3(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),kNn=D3("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),hlt=r=>{let n=Object.create(null);return i=>n[i]||(n[i]=r(i))},l0r=/-(\w)/g,$j=hlt(r=>r.replace(l0r,(n,i)=>i?i.toUpperCase():"")),c0r=/\B([A-Z])/g,wNn=hlt(r=>r.replace(c0r,"-$1").toLowerCase()),b0e=hlt(r=>r.charAt(0).toUpperCase()+r.slice(1)),u0r=hlt(r=>r?`on${b0e(r)}`:""),p0r=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function QIn(r){return p0r.test(r)?`__props.${r}`:`__props[${JSON.stringify(r)}]`}var UU={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"},f0r={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},d0r="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",INn=D3(d0r),$In=2;function m0r(r,n=0,i=r.length){let l=r.split(/(\r?\n)/),p=l.filter((b,D)=>D%2===1);l=l.filter((b,D)=>D%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 D=b-$In;D<=b+$In||i>m;D++){if(D<0||D>=l.length)continue;let I=D+1;g.push(`${I}${" ".repeat(Math.max(3-String(I).length,0))}| ${l[D]}`);let R=l[D].length,V=p[D]&&p[D].length||0;if(D===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(D>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(`
54347
54347
  `)}function PNn(r){if(p5(r)){let n={};for(let i=0;i<r.length;i++){let l=r[i],p=C1(l)?NNn(l):PNn(l);if(p)for(let m in p)n[m]=p[m]}return n}else{if(C1(r))return r;if(qxe(r))return r}}var _0r=/;(?![^(]*\))/g,h0r=/:([^]+)/,g0r=/\/\*[^]*?\*\//g;function NNn(r){let n={};return r.replace(g0r,"").split(_0r).forEach(i=>{if(i){let l=i.split(h0r);l.length>1&&(n[l[0].trim()]=l[1].trim())}}),n}function B0r(r){let n="";if(!r||C1(r))return n;for(let i in r){let l=r[i],p=i.startsWith("--")?i:wNn(i);(C1(l)||typeof l=="number")&&(n+=`${p}:${l};`)}return n}function RNn(r){let n="";if(C1(r))n=r;else if(p5(r))for(let i=0;i<r.length;i++){let l=RNn(r[i]);l&&(n+=l+" ")}else if(qxe(r))for(let i in r)r[i]&&(n+=i+" ");return n.trim()}var y0r="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",C0r="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",v0r="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",b0r=D3(y0r),S0r=D3(C0r),LNn=D3(v0r),x0r="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",E0r=D3(x0r+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");var D0r=D3("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"),T0r=D3("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"),A0r=/["'&<>]/;function d0e(r){let n=""+r,i=A0r.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 Bjt=r=>C1(r)?r:r==null?"":p5(r)||qxe(r)&&(r.toString===ANn||!s0r(r.toString))?JSON.stringify(r,MNn,2):String(r),MNn=(r,n)=>n&&n.__v_isRef?MNn(r,n.value):i0r(n)?{[`Map(${n.size})`]:[...n.entries()].reduce((i,[l,p])=>(i[`${l} =>`]=p,i),{})}:o0r(n)?{[`Set(${n.size})`]:[...n.values()]}:qxe(n)&&!p5(n)&&!a0r(n)?String(n):n;function yjt(r){throw r}function FNn(r){console.warn(`[Vue warn] ${r.message}`)}function R1(r,n,i,l){let p=(i||k0r)[r]+(l||""),m=new SyntaxError(String(p));return m.code=r,m.loc=n,m}var k0r={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.
54348
54348
  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:""},Nxe=Symbol("Fragment"),Exe=Symbol("Teleport"),glt=Symbol("Suspense"),LUe=Symbol("KeepAlive"),Cjt=Symbol("BaseTransition"),lie=Symbol("openBlock"),vjt=Symbol("createBlock"),bjt=Symbol("createElementBlock"),Blt=Symbol("createVNode"),ylt=Symbol("createElementVNode"),Kxe=Symbol("createCommentVNode"),Clt=Symbol("createTextVNode"),vlt=Symbol("createStaticVNode"),MUe=Symbol("resolveComponent"),FUe=Symbol("resolveDynamicComponent"),blt=Symbol("resolveDirective"),ONn=Symbol("resolveFilter"),Slt=Symbol("withDirectives"),xlt=Symbol("renderList"),Sjt=Symbol("renderSlot"),xjt=Symbol("createSlots"),gHe=Symbol("toDisplayString"),OUe=Symbol("mergeProps"),Elt=Symbol("normalizeClass"),Dlt=Symbol("normalizeStyle"),Rxe=Symbol("normalizeProps"),Xxe=Symbol("guardReactiveProps"),Tlt=Symbol("toHandlers"),Nat=Symbol("camelize"),WNn=Symbol("capitalize"),Rat=Symbol("toHandlerKey"),WUe=Symbol("setBlockTracking"),Alt=Symbol("pushScopeId"),klt=Symbol("popScopeId"),wlt=Symbol("withCtx"),GUe=Symbol("unref"),zUe=Symbol("isRef"),Ilt=Symbol("withMemo"),Ejt=Symbol("isMemoSame"),c4={[Nxe]:"Fragment",[Exe]:"Teleport",[glt]:"Suspense",[LUe]:"KeepAlive",[Cjt]:"BaseTransition",[lie]:"openBlock",[vjt]:"createBlock",[bjt]:"createElementBlock",[Blt]:"createVNode",[ylt]:"createElementVNode",[Kxe]:"createCommentVNode",[Clt]:"createTextVNode",[vlt]:"createStaticVNode",[MUe]:"resolveComponent",[FUe]:"resolveDynamicComponent",[blt]:"resolveDirective",[ONn]:"resolveFilter",[Slt]:"withDirectives",[xlt]:"renderList",[Sjt]:"renderSlot",[xjt]:"createSlots",[gHe]:"toDisplayString",[OUe]:"mergeProps",[Elt]:"normalizeClass",[Dlt]:"normalizeStyle",[Rxe]:"normalizeProps",[Xxe]:"guardReactiveProps",[Tlt]:"toHandlers",[Nat]:"camelize",[WNn]:"capitalize",[Rat]:"toHandlerKey",[WUe]:"setBlockTracking",[Alt]:"pushScopeId",[klt]:"popScopeId",[wlt]:"withCtx",[GUe]:"unref",[zUe]:"isRef",[Ilt]:"withMemo",[Ejt]:"isMemoSame"};function Djt(r){Object.getOwnPropertySymbols(r).forEach(n=>{c4[n]=r[n]})}var dk={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function Tjt(r,n=dk){return{type:0,children:r,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:n}}function Lxe(r,n,i,l,p,m,g,b=!1,D=!1,I=!1,R=dk){return r&&(b?(r.helper(lie),r.helper(E0e(r.inSSR,I))):r.helper(x0e(r.inSSR,I)),g&&r.helper(Slt)),{type:13,tag:n,props:i,children:l,patchFlag:p,dynamicProps:m,directives:g,isBlock:b,disableTracking:D,isComponent:I,loc:R}}function Yxe(r,n=dk){return{type:17,loc:n,elements:r}}function J8(r,n=dk){return{type:15,loc:n,properties:r}}function rE(r,n){return{type:16,loc:dk,key:C1(r)?Zg(r,!0):r,value:n}}function Zg(r,n=!1,i=dk,l=0){return{type:4,loc:i,content:r,isStatic:n,constType:n?3:l}}function w0r(r,n){return{type:5,loc:n,content:C1(r)?Zg(r,!1,n):r}}function sM(r,n=dk){return{type:8,loc:n,children:r}}function JD(r,n=[],i=dk){return{type:14,loc:i,callee:r,arguments:n}}function S0e(r,n=void 0,i=!1,l=!1,p=dk){return{type:18,params:r,returns:n,newline:i,isSlot:l,loc:p}}function Lat(r,n,i,l=!0){return{type:19,test:r,consequent:n,alternate:i,newline:l,loc:dk}}function GNn(r,n,i=!1){return{type:20,index:r,value:n,isVNode:i,loc:dk}}function zNn(r){return{type:21,body:r,loc:dk}}function I0r(r){return{type:22,elements:r,loc:dk}}function P0r(r,n,i){return{type:23,test:r,consequent:n,alternate:i,loc:dk}}function N0r(r,n){return{type:24,left:r,right:n,loc:dk}}function R0r(r){return{type:25,expressions:r,loc:dk}}function L0r(r){return{type:26,returns:r,loc:dk}}function x0e(r,n){return r||n?Blt:ylt}function E0e(r,n){return r||n?vjt:bjt}function Plt(r,{helper:n,removeHelper:i,inSSR:l}){r.isBlock||(r.isBlock=!0,i(x0e(l,r.isComponent)),n(lie),n(E0e(l,r.isComponent)))}function M0r(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function BHe(r){if(r.__esModule)return r;var n=r.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(r).forEach(function(l){var p=Object.getOwnPropertyDescriptor(r,l);Object.defineProperty(i,l,p.get?p:{enumerable:!0,get:function(){return r[l]}})}),i}var Nlt={};Object.defineProperty(Nlt,"__esModule",{value:!0});var ZIn={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 F0r(r){if(r&&r.annexB!=null&&r.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");let n={};for(let i of Object.keys(ZIn))n[i]=r&&r[i]!=null?r[i]:ZIn[i];return n}var m0e=class{constructor(n,i){this.token=void 0,this.preserveSpace=void 0,this.token=n,this.preserveSpace=!!i}},jb={brace:new m0e("{"),j_oTag:new m0e("<tag"),j_cTag:new m0e("</tag"),j_expr:new m0e("<tag>...</tag>",!0)};jb.template=new m0e("`",!0);var qy=!0,Id=!0,XGt=!0,_Ue=!0,Zre=!0,O0r=!0,Mat=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}},Ajt=new Map;function m0(r,n={}){n.keyword=r;let i=J_(r,n);return Ajt.set(r,i),i}function iM(r,n){return J_(r,{beforeExpr:qy,binop:n})}var TUe=-1,Xee=[],kjt=[],wjt=[],Ijt=[],Pjt=[],Njt=[];function J_(r,n={}){var i,l,p,m;return++TUe,kjt.push(r),wjt.push((i=n.binop)!=null?i:-1),Ijt.push((l=n.beforeExpr)!=null?l:!1),Pjt.push((p=n.startsExpr)!=null?p:!1),Njt.push((m=n.prefix)!=null?m:!1),Xee.push(new Mat(r,n)),TUe}function MC(r,n={}){var i,l,p,m;return++TUe,Ajt.set(r,TUe),kjt.push(r),wjt.push((i=n.binop)!=null?i:-1),Ijt.push((l=n.beforeExpr)!=null?l:!1),Pjt.push((p=n.startsExpr)!=null?p:!1),Njt.push((m=n.prefix)!=null?m:!1),Xee.push(new Mat("name",n)),TUe}var W0r={bracketL:J_("[",{beforeExpr:qy,startsExpr:Id}),bracketHashL:J_("#[",{beforeExpr:qy,startsExpr:Id}),bracketBarL:J_("[|",{beforeExpr:qy,startsExpr:Id}),bracketR:J_("]"),bracketBarR:J_("|]"),braceL:J_("{",{beforeExpr:qy,startsExpr:Id}),braceBarL:J_("{|",{beforeExpr:qy,startsExpr:Id}),braceHashL:J_("#{",{beforeExpr:qy,startsExpr:Id}),braceR:J_("}"),braceBarR:J_("|}"),parenL:J_("(",{beforeExpr:qy,startsExpr:Id}),parenR:J_(")"),comma:J_(",",{beforeExpr:qy}),semi:J_(";",{beforeExpr:qy}),colon:J_(":",{beforeExpr:qy}),doubleColon:J_("::",{beforeExpr:qy}),dot:J_("."),question:J_("?",{beforeExpr:qy}),questionDot:J_("?."),arrow:J_("=>",{beforeExpr:qy}),template:J_("template"),ellipsis:J_("...",{beforeExpr:qy}),backQuote:J_("`",{startsExpr:Id}),dollarBraceL:J_("${",{beforeExpr:qy,startsExpr:Id}),templateTail:J_("...`",{startsExpr:Id}),templateNonTail:J_("...${",{beforeExpr:qy,startsExpr:Id}),at:J_("@"),hash:J_("#",{startsExpr:Id}),interpreterDirective:J_("#!..."),eq:J_("=",{beforeExpr:qy,isAssign:_Ue}),assign:J_("_=",{beforeExpr:qy,isAssign:_Ue}),slashAssign:J_("_=",{beforeExpr:qy,isAssign:_Ue}),xorAssign:J_("_=",{beforeExpr:qy,isAssign:_Ue}),moduloAssign:J_("_=",{beforeExpr:qy,isAssign:_Ue}),incDec:J_("++/--",{prefix:Zre,postfix:O0r,startsExpr:Id}),bang:J_("!",{beforeExpr:qy,prefix:Zre,startsExpr:Id}),tilde:J_("~",{beforeExpr:qy,prefix:Zre,startsExpr:Id}),doubleCaret:J_("^^",{startsExpr:Id}),doubleAt:J_("@@",{startsExpr:Id}),pipeline:iM("|>",0),nullishCoalescing:iM("??",1),logicalOR:iM("||",1),logicalAND:iM("&&",2),bitwiseOR:iM("|",3),bitwiseXOR:iM("^",4),bitwiseAND:iM("&",5),equality:iM("==/!=/===/!==",6),lt:iM("</>/<=/>=",7),gt:iM("</>/<=/>=",7),relational:iM("</>/<=/>=",7),bitShift:iM("<</>>/>>>",8),bitShiftL:iM("<</>>/>>>",8),bitShiftR:iM("<</>>/>>>",8),plusMin:J_("+/-",{beforeExpr:qy,binop:9,prefix:Zre,startsExpr:Id}),modulo:J_("%",{binop:10,startsExpr:Id}),star:J_("*",{binop:10}),slash:iM("/",10),exponent:J_("**",{beforeExpr:qy,binop:11,rightAssociative:!0}),_in:m0("in",{beforeExpr:qy,binop:7}),_instanceof:m0("instanceof",{beforeExpr:qy,binop:7}),_break:m0("break"),_case:m0("case",{beforeExpr:qy}),_catch:m0("catch"),_continue:m0("continue"),_debugger:m0("debugger"),_default:m0("default",{beforeExpr:qy}),_else:m0("else",{beforeExpr:qy}),_finally:m0("finally"),_function:m0("function",{startsExpr:Id}),_if:m0("if"),_return:m0("return",{beforeExpr:qy}),_switch:m0("switch"),_throw:m0("throw",{beforeExpr:qy,prefix:Zre,startsExpr:Id}),_try:m0("try"),_var:m0("var"),_const:m0("const"),_with:m0("with"),_new:m0("new",{beforeExpr:qy,startsExpr:Id}),_this:m0("this",{startsExpr:Id}),_super:m0("super",{startsExpr:Id}),_class:m0("class",{startsExpr:Id}),_extends:m0("extends",{beforeExpr:qy}),_export:m0("export"),_import:m0("import",{startsExpr:Id}),_null:m0("null",{startsExpr:Id}),_true:m0("true",{startsExpr:Id}),_false:m0("false",{startsExpr:Id}),_typeof:m0("typeof",{beforeExpr:qy,prefix:Zre,startsExpr:Id}),_void:m0("void",{beforeExpr:qy,prefix:Zre,startsExpr:Id}),_delete:m0("delete",{beforeExpr:qy,prefix:Zre,startsExpr:Id}),_do:m0("do",{isLoop:XGt,beforeExpr:qy}),_for:m0("for",{isLoop:XGt}),_while:m0("while",{isLoop:XGt}),_as:MC("as",{startsExpr:Id}),_assert:MC("assert",{startsExpr:Id}),_async:MC("async",{startsExpr:Id}),_await:MC("await",{startsExpr:Id}),_from:MC("from",{startsExpr:Id}),_get:MC("get",{startsExpr:Id}),_let:MC("let",{startsExpr:Id}),_meta:MC("meta",{startsExpr:Id}),_of:MC("of",{startsExpr:Id}),_sent:MC("sent",{startsExpr:Id}),_set:MC("set",{startsExpr:Id}),_static:MC("static",{startsExpr:Id}),_using:MC("using",{startsExpr:Id}),_yield:MC("yield",{startsExpr:Id}),_asserts:MC("asserts",{startsExpr:Id}),_checks:MC("checks",{startsExpr:Id}),_exports:MC("exports",{startsExpr:Id}),_global:MC("global",{startsExpr:Id}),_implements:MC("implements",{startsExpr:Id}),_intrinsic:MC("intrinsic",{startsExpr:Id}),_infer:MC("infer",{startsExpr:Id}),_is:MC("is",{startsExpr:Id}),_mixins:MC("mixins",{startsExpr:Id}),_proto:MC("proto",{startsExpr:Id}),_require:MC("require",{startsExpr:Id}),_satisfies:MC("satisfies",{startsExpr:Id}),_keyof:MC("keyof",{startsExpr:Id}),_readonly:MC("readonly",{startsExpr:Id}),_unique:MC("unique",{startsExpr:Id}),_abstract:MC("abstract",{startsExpr:Id}),_declare:MC("declare",{startsExpr:Id}),_enum:MC("enum",{startsExpr:Id}),_module:MC("module",{startsExpr:Id}),_namespace:MC("namespace",{startsExpr:Id}),_interface:MC("interface",{startsExpr:Id}),_type:MC("type",{startsExpr:Id}),_opaque:MC("opaque",{startsExpr:Id}),name:J_("name",{startsExpr:Id}),string:J_("string",{startsExpr:Id}),num:J_("num",{startsExpr:Id}),bigint:J_("bigint",{startsExpr:Id}),decimal:J_("decimal",{startsExpr:Id}),regexp:J_("regexp",{startsExpr:Id}),privateName:J_("#name",{startsExpr:Id}),eof:J_("eof"),jsxName:J_("jsxName"),jsxText:J_("jsxText",{beforeExpr:!0}),jsxTagStart:J_("jsxTagStart",{startsExpr:!0}),jsxTagEnd:J_("jsxTagEnd"),placeholder:J_("%%",{startsExpr:!0})};function mv(r){return r>=93&&r<=130}function G0r(r){return r<=92}function jU(r){return r>=58&&r<=130}function jNn(r){return r>=58&&r<=134}function z0r(r){return Ijt[r]}function _zt(r){return Pjt[r]}function j0r(r){return r>=29&&r<=33}function ePn(r){return r>=127&&r<=129}function V0r(r){return r>=90&&r<=92}function Rjt(r){return r>=58&&r<=92}function U0r(r){return r>=39&&r<=59}function H0r(r){return r===34}function J0r(r){return Njt[r]}function q0r(r){return r>=119&&r<=121}function K0r(r){return r>=122&&r<=128}function aie(r){return kjt[r]}function bat(r){return wjt[r]}function X0r(r){return r===57}function Fat(r){return r>=24&&r<=25}function Kee(r){return Xee[r]}Xee[8].updateContext=r=>{r.pop()},Xee[5].updateContext=Xee[7].updateContext=Xee[23].updateContext=r=>{r.push(jb.brace)},Xee[22].updateContext=r=>{r[r.length-1]===jb.template?r.pop():r.push(jb.template)},Xee[140].updateContext=r=>{r.push(jb.j_expr,jb.j_oTag)};function Oat(r,n){if(r==null)return{};var i={},l=Object.keys(r),p,m;for(m=0;m<l.length;m++)p=l[m],!(n.indexOf(p)>=0)&&(i[p]=r[p]);return i}var HU=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}},Mxe=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 aM(r,n){let{line:i,column:l,index:p}=r;return new HU(i,l+n,p+n)}var hzt={SyntaxError:"BABEL_PARSER_SYNTAX_ERROR",SourceTypeModuleError:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"},Y0r=(r,n=r.length-1)=>({get(){return r.reduce((i,l)=>i[l],this)},set(i){r.reduce((l,p,m)=>m===n?l[p]=i:l[p],this)}}),Q0r=(r,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,Y0r(p.reflect.split("."))):p]).reduce((l,[p,m])=>Object.defineProperty(l,p,Object.assign({configurable:!0},m)),Object.assign(new r,n)),$0r={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:hzt.SourceTypeModuleError},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:hzt.SourceTypeModuleError}},tPn={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"},gzt=({type:r,prefix:n})=>r==="UpdateExpression"?tPn.UpdateExpression[String(n)]:tPn[r],Z0r={AccessorIsGenerator:({kind:r})=>`A ${r}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:r})=>`Missing initializer in ${r} 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:r})=>`\`${r}\` 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:r,exportName:n})=>`A string literal cannot be used as an exported binding without \`from\`.
54349
54349
  - Did you mean \`export { '${r}' as '${n}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:r})=>`'${r==="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:r})=>`Unsyntactic ${r==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportBindingIsString:({importName:r})=>`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-20230830225324",
5
+ "version": "0.0.0-dev-20230901162735",
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-20230830225324",
36
- "@pandacss/extension-shared": "0.0.0-dev-20230830225324",
37
- "@pandacss/extractor": "0.0.0-dev-20230830225324",
38
- "@pandacss/node": "0.0.0-dev-20230830225324",
39
- "@pandacss/parser": "0.0.0-dev-20230830225324",
40
- "@pandacss/shared": "0.0.0-dev-20230830225324",
41
- "@pandacss/token-dictionary": "0.0.0-dev-20230830225324",
42
- "@pandacss/types": "0.0.0-dev-20230830225324"
35
+ "@pandacss/core": "0.0.0-dev-20230901162735",
36
+ "@pandacss/extension-shared": "0.0.0-dev-20230901162735",
37
+ "@pandacss/extractor": "0.0.0-dev-20230901162735",
38
+ "@pandacss/node": "0.0.0-dev-20230901162735",
39
+ "@pandacss/parser": "0.0.0-dev-20230901162735",
40
+ "@pandacss/shared": "0.0.0-dev-20230901162735",
41
+ "@pandacss/token-dictionary": "0.0.0-dev-20230901162735",
42
+ "@pandacss/types": "0.0.0-dev-20230901162735"
43
43
  },
44
44
  "dependencies": {
45
45
  "fast-glob": "^3.3.1"