@pandacss/language-server 0.13.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +101 -95
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -30727,7 +30727,7 @@ ${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. 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",".mjs",".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="";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
|
|
30731
30731
|
`?(m++,i=!1,p+=$st(r,l,m),l=m):i===SGt&&g===`
|
|
30732
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`
|
|
30733
30733
|
${mUe} ${wee(n,"/css")}: the css function to author styles
|
|
@@ -31004,7 +31004,7 @@ ${p}`),r?wet(p,{minify:n}):p}catch(i){throw i instanceof o$t&&(P1.error("sheet",
|
|
|
31004
31004
|
})
|
|
31005
31005
|
}
|
|
31006
31006
|
`,dts:ux`
|
|
31007
|
-
|
|
31007
|
+
${r.file.importType("AnySelector, Selectors","./selectors")}
|
|
31008
31008
|
|
|
31009
31009
|
export type Conditions = {
|
|
31010
31010
|
${n.map(i=>` ${JSON.stringify(i)}: string`).join(`
|
|
@@ -31053,7 +31053,7 @@ ${p}`),r?wet(p,{minify:n}):p}catch(i){throw i instanceof o$t&&(P1.error("sheet",
|
|
|
31053
31053
|
}
|
|
31054
31054
|
`,dts:ux`
|
|
31055
31055
|
`}}function yyr(r){let{utility:n,config:{hash:i,prefix:l},conditions:p}=r,{separator:m,getPropShorthands:g}=n;return{dts:jc`
|
|
31056
|
-
|
|
31056
|
+
${r.file.importType("SystemStyleObject","../types/index")}
|
|
31057
31057
|
|
|
31058
31058
|
interface CssFunction {
|
|
31059
31059
|
(...styles: SystemStyleObject[]): string
|
|
@@ -31212,12 +31212,11 @@ ${p}`),r?wet(p,{minify:n}):p}catch(i){throw i instanceof o$t&&(P1.error("sheet",
|
|
|
31212
31212
|
}
|
|
31213
31213
|
|
|
31214
31214
|
`,dts:jc`
|
|
31215
|
-
|
|
31215
|
+
${r.file.importType("RecipeCreatorFn","../types/recipe")}
|
|
31216
31216
|
|
|
31217
31217
|
export declare const cva: RecipeCreatorFn
|
|
31218
31218
|
|
|
31219
|
-
|
|
31220
|
-
|
|
31219
|
+
${r.file.exportType("RecipeVariantProps","../types/recipe")}
|
|
31221
31220
|
`}}function byr(){return{js:ux`
|
|
31222
31221
|
function cx() {
|
|
31223
31222
|
let str = '',
|
|
@@ -31604,11 +31603,11 @@ export {
|
|
|
31604
31603
|
|
|
31605
31604
|
export { isCssProperty };
|
|
31606
31605
|
`}}function Iyr(r){if(!r.patterns.isEmpty())return r.patterns.details.map(n=>{let{baseName:i,config:l,dashName:p,upperName:m,styleFnName:g,blocklistType:b}=n,{properties:D,transform:I,strict:R,description:V}=l,X=(0,HIn.stringify)({transform:I})??"",ue=["mapObject"];return X.includes("__spreadValues")&&ue.push("__spreadValues"),X.includes("__objRest")&&ue.push("__objRest"),{name:p,dts:jc`
|
|
31607
|
-
|
|
31608
|
-
|
|
31609
|
-
|
|
31610
|
-
|
|
31611
|
-
|
|
31606
|
+
${r.file.importType("SystemStyleObject, ConditionalValue","../types/index")}
|
|
31607
|
+
${r.file.importType("Properties","../types/csstype")}
|
|
31608
|
+
${r.file.importType("PropertyValue","../types/prop-type")}
|
|
31609
|
+
${r.file.importType("DistributiveOmit","../types/system-types")}
|
|
31610
|
+
${r.file.importType("Tokens","../tokens/index")}
|
|
31612
31611
|
|
|
31613
31612
|
export type ${m}Properties = {
|
|
31614
31613
|
${Object.keys(D??{}).map(De=>{let we=D[De];return H_(we).with({type:"property"},We=>`${De}?: PropertyValue<'${We.value}'>`).with({type:"token"},We=>We.property?`${De}?: ConditionalValue<Tokens["${We.value}"] | Properties["${We.property}"]>`:`${De}?: ConditionalValue<Tokens["${We.value}"]>`).with({type:"enum"},We=>`${De}?: ConditionalValue<${Y7(We.value)}>`).otherwise(()=>`${De}?: ConditionalValue<${we.type}>`)}).join(`
|
|
@@ -31720,9 +31719,9 @@ transform`)}
|
|
|
31720
31719
|
},
|
|
31721
31720
|
})
|
|
31722
31721
|
`);return{name:V,js:we,dts:jc`
|
|
31723
|
-
|
|
31724
|
-
|
|
31725
|
-
|
|
31722
|
+
${r.file.importType("ConditionalValue","../types/index")}
|
|
31723
|
+
${r.file.importType("Pretty","../types/helpers")}
|
|
31724
|
+
${r.file.importType("DistributiveOmit","../types/system-types")}
|
|
31726
31725
|
|
|
31727
31726
|
type ${I}Variant = {
|
|
31728
31727
|
${Object.keys(R).map(We=>{let Ne=R[We];return Ne.every(Pyr)?`${We}: boolean`:`${We}: ${Y7(Ne)}`}).join(`
|
|
@@ -31779,7 +31778,7 @@ transform`)}
|
|
|
31779
31778
|
})
|
|
31780
31779
|
}
|
|
31781
31780
|
`,dts:jc`
|
|
31782
|
-
|
|
31781
|
+
${r.file.importType("SlotRecipeCreatorFn","../types/recipe")}
|
|
31783
31782
|
|
|
31784
31783
|
export declare const sva: SlotRecipeCreatorFn
|
|
31785
31784
|
`}}function Lyr(r){let{tokens:n}=r,i=new Map;n.allTokens.forEach(p=>{let{varRef:m}=p.extensions,g=p.isConditional?m:p.value;i.set(p.name,{value:g,variable:m})});let l=Object.fromEntries(i);return{js:ux`
|
|
@@ -31795,19 +31794,19 @@ transform`)}
|
|
|
31795
31794
|
|
|
31796
31795
|
token.var = tokenVar
|
|
31797
31796
|
`,dts:ux`
|
|
31798
|
-
|
|
31797
|
+
${r.file.importType("Token","./tokens")}
|
|
31799
31798
|
|
|
31800
31799
|
export declare const token: {
|
|
31801
31800
|
(path: Token, fallback?: string): string
|
|
31802
31801
|
var: (path: Token, fallback?: string) => string
|
|
31803
31802
|
}
|
|
31804
31803
|
|
|
31805
|
-
|
|
31804
|
+
${r.file.exportTypeStar("./tokens")}
|
|
31806
31805
|
`}}function Myr(r){let{factoryName:n,componentName:i}=r.jsx;return{js:jc`
|
|
31807
31806
|
import { h } from 'preact'
|
|
31808
31807
|
import { forwardRef } from 'preact/compat'
|
|
31809
31808
|
import { useMemo } from 'preact/hooks'
|
|
31810
|
-
${r.file.import("css, cx, assignCss","../css/index")}
|
|
31809
|
+
${r.file.import("css, cx, cva, assignCss","../css/index")}
|
|
31811
31810
|
${r.file.import("splitProps, normalizeHTMLProps","../helpers")}
|
|
31812
31811
|
${r.file.import("isCssProperty","./is-valid-prop")}
|
|
31813
31812
|
|
|
@@ -31883,9 +31882,9 @@ transform`)}
|
|
|
31883
31882
|
})
|
|
31884
31883
|
`,dts:jc`
|
|
31885
31884
|
import type { FunctionComponent } from 'preact'
|
|
31886
|
-
|
|
31887
|
-
|
|
31888
|
-
|
|
31885
|
+
${r.file.importType(`${p}Properties`,`../patterns/${g}`)}
|
|
31886
|
+
${r.file.importType("DistributiveOmit","../types/system-types")}
|
|
31887
|
+
${r.file.importType(n,"../types/jsx")}
|
|
31889
31888
|
|
|
31890
31889
|
export type ${p}Props = ${p}Properties & DistributiveOmit<${n}<'${V}'>, keyof ${p}Properties ${I}>
|
|
31891
31890
|
|
|
@@ -31896,8 +31895,8 @@ import type { ${p} } from '../types/jsx'
|
|
|
31896
31895
|
export declare const ${n}: ${p}
|
|
31897
31896
|
`,jsxType:jc`
|
|
31898
31897
|
import type { ComponentProps, JSX } from 'preact'
|
|
31899
|
-
|
|
31900
|
-
|
|
31898
|
+
${r.file.importType("Assign, JsxStyleProps, JsxHTMLProps","./system-types")}
|
|
31899
|
+
${r.file.importType("RecipeDefinition, RecipeSelection, RecipeVariantRecord","./recipe")}
|
|
31901
31900
|
|
|
31902
31901
|
type ElementType = keyof JSX.IntrinsicElements
|
|
31903
31902
|
|
|
@@ -31966,7 +31965,7 @@ export type ${m}<T extends ElementType> = JsxHTMLProps<ComponentProps<T>, JsxSty
|
|
|
31966
31965
|
|
|
31967
31966
|
export const ${n} = /* @__PURE__ */ createJsxFactory()
|
|
31968
31967
|
`}}function Gyr(r){let{factoryName:n,styleProps:i,componentName:l,upperName:p,typeName:m}=r.jsx;return{jsxFactory:jc`
|
|
31969
|
-
|
|
31968
|
+
${r.file.importType(p,"../types/jsx")}
|
|
31970
31969
|
export declare const ${n}: ${p}
|
|
31971
31970
|
`,jsxType:jc`
|
|
31972
31971
|
import type { ComponentProps, JSX } from 'preact'
|
|
@@ -32065,16 +32064,16 @@ export type ${m}<T extends ElementType> = ComponentProps<T>
|
|
|
32065
32064
|
}
|
|
32066
32065
|
`,dts:jc`
|
|
32067
32066
|
import type { Component } from '@builder.io/qwik'
|
|
32068
|
-
|
|
32069
|
-
|
|
32070
|
-
|
|
32067
|
+
${r.file.importType(`${p}Properties`,`../patterns/${g}`)}
|
|
32068
|
+
${r.file.importType(n,"../types/jsx")}
|
|
32069
|
+
${r.file.importType("Assign, DistributiveOmit","../types/system-types")}
|
|
32071
32070
|
|
|
32072
32071
|
export type ${p}Props = Assign<${n}<'${V}'>, DistributiveOmit<${p}Properties, ${I||'""'}>>
|
|
32073
32072
|
|
|
32074
32073
|
${R?`/** ${R} */`:""}
|
|
32075
32074
|
export declare const ${b}: Component<${p}Props>
|
|
32076
32075
|
`}})}function Vyr(r){let{factoryName:n,styleProps:i,componentName:l,upperName:p,typeName:m}=r.jsx;return{jsxFactory:jc`
|
|
32077
|
-
|
|
32076
|
+
${r.file.importType(p,"../types/jsx")}
|
|
32078
32077
|
export declare const ${n}: ${p}
|
|
32079
32078
|
`,jsxType:jc`
|
|
32080
32079
|
import type { Component, QwikIntrinsicElements } from '@builder.io/qwik'
|
|
@@ -32150,7 +32149,7 @@ export type ${m}<T extends ElementType> = Assign<ComponentProps<T>, JsxStyleProp
|
|
|
32150
32149
|
export const ${n} = /* @__PURE__ */ createJsxFactory()
|
|
32151
32150
|
|
|
32152
32151
|
`}}function Hyr(r){let{factoryName:n,styleProps:i,componentName:l,upperName:p,typeName:m}=r.jsx;return{jsxFactory:jc`
|
|
32153
|
-
|
|
32152
|
+
${r.file.importType(p,"../types/jsx")}
|
|
32154
32153
|
export declare const ${n}: ${p}
|
|
32155
32154
|
`,jsxType:jc`
|
|
32156
32155
|
import type { Component, QwikIntrinsicElements } from '@builder.io/qwik'
|
|
@@ -32284,21 +32283,21 @@ export type ${m}<T extends ElementType> = ComponentProps<T>
|
|
|
32284
32283
|
})
|
|
32285
32284
|
`,dts:jc`
|
|
32286
32285
|
import type { FunctionComponent } from 'react'
|
|
32287
|
-
|
|
32288
|
-
|
|
32289
|
-
|
|
32286
|
+
${r.file.importType(`${p}Properties`,`../patterns/${g}`)}
|
|
32287
|
+
${r.file.importType(n,"../types/jsx")}
|
|
32288
|
+
${r.file.importType("DistributiveOmit","../types/system-types")}
|
|
32290
32289
|
|
|
32291
32290
|
export type ${p}Props = ${p}Properties & DistributiveOmit<${n}<'${V}'>, keyof ${p}Properties ${I}>
|
|
32292
32291
|
|
|
32293
32292
|
${R?`/** ${R} */`:""}
|
|
32294
32293
|
export declare const ${b}: FunctionComponent<${p}Props>
|
|
32295
32294
|
`}})}function Kyr(r){let{factoryName:n,styleProps:i,componentName:l,upperName:p,typeName:m}=r.jsx;return{jsxFactory:jc`
|
|
32296
|
-
|
|
32295
|
+
${r.file.importType(p,"../types/jsx")}
|
|
32297
32296
|
export declare const ${n}: ${p}
|
|
32298
32297
|
`,jsxType:jc`
|
|
32299
32298
|
import type { ComponentPropsWithoutRef, ElementType, ElementRef, Ref } from 'react'
|
|
32300
|
-
|
|
32301
|
-
|
|
32299
|
+
${r.file.importType("Assign, DistributiveOmit, JsxHTMLProps, JsxStyleProps","./system-types")}
|
|
32300
|
+
${r.file.importType("RecipeDefinition, RecipeSelection, RecipeVariantRecord","./recipe")}
|
|
32302
32301
|
|
|
32303
32302
|
type Dict = Record<string, unknown>
|
|
32304
32303
|
|
|
@@ -32369,11 +32368,11 @@ export type ${m}<T extends ElementType> = JsxHTMLProps<ComponentProps<T>, JsxSty
|
|
|
32369
32368
|
export const ${n} = /* @__PURE__ */ createJsxFactory()
|
|
32370
32369
|
|
|
32371
32370
|
`}}function Yyr(r){let{factoryName:n,styleProps:i,componentName:l,upperName:p,typeName:m}=r.jsx;return{jsxFactory:jc`
|
|
32372
|
-
|
|
32371
|
+
${r.file.importType(p,"../types/jsx")}
|
|
32373
32372
|
export declare const ${n}: ${p}
|
|
32374
32373
|
`,jsxType:jc`
|
|
32375
32374
|
import type { ComponentPropsWithoutRef, ElementType, ElementRef, Ref } from 'react'
|
|
32376
|
-
|
|
32375
|
+
${r.file.importType("DistributiveOmit","../types/system-types")}
|
|
32377
32376
|
|
|
32378
32377
|
type Dict = Record<string, unknown>
|
|
32379
32378
|
|
|
@@ -32484,22 +32483,22 @@ export type ${m}<T extends ElementType> = ComponentProps<T>
|
|
|
32484
32483
|
`)}
|
|
32485
32484
|
}
|
|
32486
32485
|
`,dts:jc`
|
|
32487
|
-
import { Component } from 'solid-js'
|
|
32488
|
-
|
|
32489
|
-
|
|
32490
|
-
|
|
32486
|
+
import type { Component } from 'solid-js'
|
|
32487
|
+
${r.file.importType(`${p}Properties`,`../patterns/${g}`)}
|
|
32488
|
+
${r.file.importType(n,"../types/jsx")}
|
|
32489
|
+
${r.file.importType("DistributiveOmit","../types/system-types")}
|
|
32491
32490
|
|
|
32492
32491
|
export type ${p}Props = ${p}Properties & DistributiveOmit<${n}<'${V}'>, keyof ${p}Properties ${I}>
|
|
32493
32492
|
|
|
32494
32493
|
${R?`/** ${R} */`:""}
|
|
32495
32494
|
export declare const ${b}: Component<${p}Props>
|
|
32496
32495
|
`}})}function Zyr(r){let{factoryName:n,styleProps:i,componentName:l,upperName:p,typeName:m}=r.jsx;return{jsxFactory:jc`
|
|
32497
|
-
|
|
32496
|
+
${r.file.importType(p,"../types/jsx")}
|
|
32498
32497
|
export declare const ${n}: ${p}
|
|
32499
32498
|
`,jsxType:jc`
|
|
32500
32499
|
import type { ComponentProps, Component, JSX } from 'solid-js'
|
|
32501
|
-
|
|
32502
|
-
|
|
32500
|
+
${r.file.importType("Assign, JsxStyleProps, JsxHTMLProps","./system-types")}
|
|
32501
|
+
${r.file.importType("RecipeDefinition, RecipeSelection, RecipeVariantRecord","./recipe")}
|
|
32503
32502
|
|
|
32504
32503
|
type Dict = Record<string, unknown>
|
|
32505
32504
|
|
|
@@ -32574,7 +32573,7 @@ function createJsxFactory() {
|
|
|
32574
32573
|
|
|
32575
32574
|
export const ${i} = /* @__PURE__ */ createJsxFactory()
|
|
32576
32575
|
`}}function tCr(r){let{factoryName:n,styleProps:i,componentName:l,upperName:p,typeName:m}=r.jsx;return{jsxFactory:jc`
|
|
32577
|
-
|
|
32576
|
+
${r.file.importType(p,"../types/jsx")}
|
|
32578
32577
|
export declare const ${n}: ${p}
|
|
32579
32578
|
`,jsxType:jc`
|
|
32580
32579
|
import type { Component, ComponentProps, JSX } from 'solid-js'
|
|
@@ -32729,22 +32728,24 @@ export type ${m}<T extends ElementType> = ComponentProps<T>
|
|
|
32729
32728
|
}
|
|
32730
32729
|
})
|
|
32731
32730
|
`,dts:jc`
|
|
32732
|
-
import { FunctionalComponent } from 'vue'
|
|
32733
|
-
|
|
32734
|
-
|
|
32735
|
-
|
|
32731
|
+
import type { FunctionalComponent } from 'vue'
|
|
32732
|
+
${r.file.importType(`${p}Properties`,`../patterns/${g}`)}
|
|
32733
|
+
${r.file.importType(n,"../types/jsx")}
|
|
32734
|
+
${r.file.importType("DistributiveOmit","../types/system-types")}
|
|
32736
32735
|
|
|
32737
32736
|
export type ${p}Props = ${p}Properties & DistributiveOmit<${n}<'${V}'>, keyof ${p}Properties ${I}>
|
|
32738
32737
|
|
|
32739
32738
|
${R?`/** ${R} */`:""}
|
|
32740
32739
|
export declare const ${b}: FunctionalComponent<${p}Props>
|
|
32741
32740
|
`}})}function oCr(r){let{factoryName:n,styleProps:i,componentName:l,upperName:p,typeName:m}=r.jsx;return{jsxFactory:jc`
|
|
32742
|
-
|
|
32741
|
+
${r.file.importType(p,"../types/jsx")}
|
|
32742
|
+
|
|
32743
32743
|
export declare const ${n}: ${p}
|
|
32744
32744
|
`,jsxType:jc`
|
|
32745
32745
|
import type { Component, FunctionalComponent } from 'vue'
|
|
32746
|
-
|
|
32747
|
-
|
|
32746
|
+
|
|
32747
|
+
${r.file.importType("RecipeDefinition, RecipeSelection, RecipeVariantRecord","./recipe")}
|
|
32748
|
+
${r.file.importType("Assign, JsxStyleProps, JsxHTMLProps","./system-types")}
|
|
32748
32749
|
|
|
32749
32750
|
type IntrinsicElement =
|
|
32750
32751
|
| 'a'
|
|
@@ -32894,7 +32895,8 @@ type IntrinsicElement =
|
|
|
32894
32895
|
|
|
32895
32896
|
export type ${m}<T extends ElementType> = JsxHTMLProps<ComponentProps<T>, JsxStyleProps>
|
|
32896
32897
|
`}}function sCr(r){let{factoryName:n,styleProps:i,componentName:l,upperName:p,typeName:m}=r.jsx;return{jsxFactory:jc`
|
|
32897
|
-
|
|
32898
|
+
${r.file.importType(p,"../types/jsx")}
|
|
32899
|
+
|
|
32898
32900
|
export declare const ${n}: ${p}
|
|
32899
32901
|
`,jsxType:jc`
|
|
32900
32902
|
import type { Component, FunctionalComponent } from 'vue'
|
|
@@ -33038,7 +33040,7 @@ type IntrinsicElement =
|
|
|
33038
33040
|
export type ${p} = JsxFactory ${i==="none"?"":"& JsxElements"}
|
|
33039
33041
|
|
|
33040
33042
|
export type ${m}<T extends ElementType> = ComponentProps<T>
|
|
33041
|
-
`}}var aCr={react:Kyr,preact:Oyr,solid:Zyr,vue:oCr,qwik:Vyr},lCr={react:Yyr,solid:tCr,qwik:Hyr,preact:Gyr,vue:sCr};function JIn(r){return r.jsx.framework?(r.isTemplateLiteralSyntax?lCr[r.jsx.framework]:aCr[r.jsx.framework])?.(r):void 0}var cCr={react:Jyr,solid:Qyr,preact:Myr,vue:nCr,qwik:zyr},uCr={react:Xyr,solid:eCr,qwik:Uyr,preact:Wyr,vue:rCr};function pCr(r){return r.jsx.framework?(r.isTemplateLiteralSyntax?uCr[r.jsx.framework]:cCr[r.jsx.framework])?.(r):void 0}var fCr={react:qyr,solid:$yr,preact:Fyr,vue:iCr,qwik:jyr};function dCr(r){return r.isTemplateLiteralSyntax?[]:r.patterns.isEmpty()&&!r.jsx.framework?[]:fCr[r.jsx.framework](r)}function mCr(r){let{config:{outdir:n
|
|
33043
|
+
`}}var aCr={react:Kyr,preact:Oyr,solid:Zyr,vue:oCr,qwik:Vyr},lCr={react:Yyr,solid:tCr,qwik:Hyr,preact:Gyr,vue:sCr};function JIn(r){return r.jsx.framework?(r.isTemplateLiteralSyntax?lCr[r.jsx.framework]:aCr[r.jsx.framework])?.(r):void 0}var cCr={react:Jyr,solid:Qyr,preact:Myr,vue:nCr,qwik:zyr},uCr={react:Xyr,solid:eCr,qwik:Uyr,preact:Wyr,vue:rCr};function pCr(r){return r.jsx.framework?(r.isTemplateLiteralSyntax?uCr[r.jsx.framework]:cCr[r.jsx.framework])?.(r):void 0}var fCr={react:qyr,solid:$yr,preact:Fyr,vue:iCr,qwik:jyr};function dCr(r){return r.isTemplateLiteralSyntax?[]:r.patterns.isEmpty()&&!r.jsx.framework?[]:fCr[r.jsx.framework](r)}function mCr(r){let{config:{outdir:n}}=r,i={name:n,description:"This package is auto-generated by Panda CSS",version:`0.0.0-${performance.now()}`,type:"module",exports:{"./css":{types:r.file.extDts("./css/index"),require:r.file.ext("./css/index"),import:r.file.ext("./css/index")},"./jsx":{types:r.file.extDts("./jsx/index"),require:r.file.ext("./jsx/index"),import:r.file.ext("./jsx/index")},"./patterns":{types:r.file.extDts("./patterns/index"),require:r.file.ext("./patterns/index"),import:r.file.ext("./patterns/index")},"./recipes":{types:r.file.extDts("./recipes/index"),require:r.file.ext("./recipes/index"),import:r.file.ext("./recipes/index")},"./tokens":{types:r.file.extDts("./tokens/index"),require:r.file.ext("./tokens/index"),import:r.file.ext("./tokens/index")},"./types":{types:r.file.extDts("./types/index")},"./styles.css":"./styles.css"}};return JSON.stringify(i,null,2)}var _Cr={content:`export {};
|
|
33042
33044
|
|
|
33043
33045
|
export type PropertyValue<TValue> = TValue extends Array<infer AValue>
|
|
33044
33046
|
? Array<AValue extends infer TUnpacked & {} ? TUnpacked : AValue>
|
|
@@ -54238,13 +54240,14 @@ type AtRuleType = 'media' | 'layer' | 'container' | 'supports' | 'page'
|
|
|
54238
54240
|
|
|
54239
54241
|
export type AnySelector = \`\${string}&\` | \`&\${string}\` | \`@\${AtRuleType}\${string}\`
|
|
54240
54242
|
export type Selectors = AttributeSelector | ParentSelector
|
|
54241
|
-
`},AIn="export type JsxStyleProps = StyleProps & WithCss";function vCr(r){return{cssType:_Cr.content,recipe:gCr.content,pattern:BCr.content,parts:yCr.content,composition:hCr.content,selectors:CCr.content,system:H_(r.jsx.styleProps).with("all",()=>JGt.content).with("minimal",()=>JGt.content.replace(AIn,"export type JsxStyleProps = WithCss")).with("none",()=>JGt.content.replace(AIn,"export type JsxStyleProps = {}")).exhaustive()}}var bCr=
|
|
54243
|
+
`},AIn="export type JsxStyleProps = StyleProps & WithCss";function vCr(r){let n=i=>i.replace(/import\s+type\s+\{([^}]+)\}\s+from\s+['"]([^'"]+)['"]/g,r.file.importType("$1","$2"));return{cssType:_Cr.content,recipe:n(gCr.content),pattern:n(BCr.content.replace("../tokens","../tokens/index")),parts:n(yCr.content),composition:n(hCr.content),selectors:n(CCr.content),system:n(H_(r.jsx.styleProps).with("all",()=>JGt.content).with("minimal",()=>JGt.content.replace(AIn,"export type JsxStyleProps = WithCss")).with("none",()=>JGt.content.replace(AIn,"export type JsxStyleProps = {}")).exhaustive())}}var bCr=r=>({global:jc`
|
|
54244
|
+
// @ts-nocheck
|
|
54242
54245
|
import type { TextStyles, LayerStyles } from '@pandacss/dev'
|
|
54243
|
-
|
|
54244
|
-
|
|
54245
|
-
|
|
54246
|
-
|
|
54247
|
-
|
|
54246
|
+
${r.file.importType("RecipeVariantRecord, RecipeConfig, SlotRecipeVariantRecord, SlotRecipeConfig","./recipe")}
|
|
54247
|
+
${r.file.importType("Parts","./parts")}
|
|
54248
|
+
${r.file.importType("PatternConfig, PatternProperties","./pattern")}
|
|
54249
|
+
${r.file.importType("GlobalStyleObject, SystemStyleObject","./system-types")}
|
|
54250
|
+
${r.file.importType("CompositionStyles","./composition")}
|
|
54248
54251
|
|
|
54249
54252
|
declare module '@pandacss/dev' {
|
|
54250
54253
|
export function defineRecipe<V extends RecipeVariantRecord>(config: RecipeConfig<V>): RecipeConfig
|
|
@@ -54257,16 +54260,16 @@ export type Selectors = AttributeSelector | ParentSelector
|
|
|
54257
54260
|
export function defineParts<T extends Parts>(parts: T): (config: Partial<Record<keyof T, SystemStyleObject>>) => Partial<Record<keyof T, SystemStyleObject>>
|
|
54258
54261
|
}
|
|
54259
54262
|
`,index:jc`
|
|
54260
|
-
import './global'
|
|
54261
|
-
|
|
54262
|
-
|
|
54263
|
+
import '${r.file.extDts("./global")}'
|
|
54264
|
+
${r.file.exportType("ConditionalValue","./conditions")}
|
|
54265
|
+
${r.file.exportType("GlobalStyleObject, JsxStyleProps, SystemStyleObject","./system-types")}
|
|
54263
54266
|
|
|
54264
54267
|
`,helpers:jc`
|
|
54265
54268
|
export type Pretty<T> = T extends infer U ? { [K in keyof U]: U[K] } : never
|
|
54266
54269
|
`});function SCr(r){let{config:{strictTokens:n},utility:i}=r,l=`${n?"":" | CssValue<T>"}`,p=[jc`
|
|
54267
|
-
|
|
54268
|
-
|
|
54269
|
-
|
|
54270
|
+
${r.file.importType("ConditionalValue","./conditions")}
|
|
54271
|
+
${r.file.importType("CssProperties","./system-types")}
|
|
54272
|
+
${r.file.importType("Tokens","../tokens/index")}
|
|
54270
54273
|
|
|
54271
54274
|
type PropertyValueTypes = {`],m=i.getTypes();for(let[g,b]of m.entries())p.push(` ${g}: ${b.join(" | ")};`);return p.push("}",`
|
|
54272
54275
|
`),p.push(`
|
|
@@ -54285,9 +54288,9 @@ export type Selectors = AttributeSelector | ParentSelector
|
|
|
54285
54288
|
? ConditionalValue<CssProperties[T] | (string & {})>
|
|
54286
54289
|
: ConditionalValue<string | number>
|
|
54287
54290
|
`}function xCr(r){let n=new Set(OGt.concat(r.utility.keys()).filter(Boolean));return ux`
|
|
54288
|
-
|
|
54289
|
-
|
|
54290
|
-
|
|
54291
|
+
${r.file.importType("ConditionalValue","./conditions")}
|
|
54292
|
+
${r.file.importType("PropertyValue","./prop-type")}
|
|
54293
|
+
${r.file.importType("Token","../tokens/index")}
|
|
54291
54294
|
|
|
54292
54295
|
export type CssVarProperties = {
|
|
54293
54296
|
[key in \`--\${string}\`]?: ConditionalValue<Token | (string & {}) | (number & {})>
|
|
@@ -54300,37 +54303,40 @@ export type Selectors = AttributeSelector | ParentSelector
|
|
|
54300
54303
|
`}var ECr=["zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","borders","durations","easings","animations","blurs","gradients","breakpoints","assets"];function DCr(r){let{tokens:n,config:{theme:i}}=r,l=new Set;l.add(`export type Token = ${n.isEmpty?"string":Y7(n.allNames)}`);let p=new Set(["export type Tokens = {"]);if(n.isEmpty)p.add("[token: string]: string");else{Object.keys(n.colorPalettes).length&&l.add(`export type ColorPalette = ${Y7(Object.keys(n.colorPalettes))}`);for(let[g,b]of n.categoryMap.entries()){let D=t6(qIn.default.singular(g));l.add(`export type ${D}Token = ${Y7(b.keys())}`),p.add(` ${g}: ${D}Token`)}i?.keyframes&&l.add(`export type AnimationName = ${Y7(Object.keys(i.keyframes))}`),p.add(" animationName: AnimationName")}return p.add("} & { [token: string]: never }"),l.add(Array.from(p).join(`
|
|
54301
54304
|
`)),l.add(`export type TokenCategory = ${Y7(ECr)}`),jc.string(Array.from(l).join(`
|
|
54302
54305
|
|
|
54303
|
-
`))}function TCr(r){let n=Dyr(r);return{files:[{file:r.file.ext("helpers"),code:n.js}]}}function ACr(r){let n=GIn(r);return{dir:r.paths.token,files:[{file:"keyframes.css",code:n}]}}function kIn(r){if(r.tokens.isEmpty)return;let n=Lyr(r),i=VIn(r);return{dir:r.paths.token,files:[{file:"index.css",code:i},{file:
|
|
54304
|
-
`)),dts:ux.string(i.map(p
|
|
54305
|
-
`))};return{dir:r.paths.recipe,files:[...n.map(p=>({file:r.file.ext(p.name),code:p.js})),...n.map(p=>({file
|
|
54306
|
-
`)),dts:ux.string(n.map(l
|
|
54307
|
-
`))};return{dir:r.paths.pattern,files:[...n.map(l=>({file:r.file.ext(l.name),code:l.js})),...n.map(l=>({file
|
|
54308
|
-
${r.file.
|
|
54309
|
-
${n?.js?r.file.
|
|
54310
|
-
${ux.string(p.map(g=>r.file.
|
|
54306
|
+
`))}function TCr(r){let n=Dyr(r);return{files:[{file:r.file.ext("helpers"),code:n.js}]}}function ACr(r){let n=GIn(r);return{dir:r.paths.token,files:[{file:"keyframes.css",code:n}]}}function kIn(r){if(r.tokens.isEmpty)return;let n=Lyr(r),i=VIn(r);return{dir:r.paths.token,files:[{file:"index.css",code:i},{file:r.file.extDts("index"),code:n.dts},{file:r.file.ext("index"),code:n.js},{file:r.file.extDts("tokens"),code:DCr(r)}]}}function kCr(r){let n=vCr(r),i=UIn(r),l=JIn(r),p=bCr(r);return{dir:r.paths.types,files:[l?{file:r.file.extDts("jsx"),code:l.jsxType}:null,{file:r.file.extDts("csstype"),code:n.cssType},{file:r.file.extDts("system-types"),code:n.system},{file:r.file.extDts("selectors"),code:n.selectors},{file:r.file.extDts("composition"),code:n.composition},{file:r.file.extDts("global"),code:p.global},{file:r.file.extDts("helpers"),code:p.helpers},{file:r.file.extDts("recipe"),code:n.recipe},{file:r.file.extDts("pattern"),code:n.pattern},{file:r.file.extDts("parts"),code:n.parts},{file:r.file.extDts("index"),code:p.index},{file:r.file.extDts("prop-type"),code:SCr(r)},{file:r.file.extDts("style-props"),code:xCr(r)},{file:r.file.extDts("conditions"),code:i.dts}].filter(Boolean)}}function wCr(r){let n=r.isTemplateLiteralSyntax?Cyr(r):yyr(r),i=r.isTemplateLiteralSyntax?Byr(r):UIn(r);return{dir:r.paths.css,files:[{file:r.file.ext("conditions"),code:i.js},{file:r.file.ext("css"),code:n.js},{file:r.file.extDts("css"),code:n.dts}]}}function ICr(r){if(r.isTemplateLiteralSyntax)return;let n=vyr(r);return{dir:r.paths.css,files:[{file:r.file.ext("cva"),code:n.js},{file:r.file.extDts("cva"),code:n.dts}]}}function PCr(r){if(r.isTemplateLiteralSyntax)return;let n=Ryr(r);return{dir:r.paths.css,files:[{file:r.file.ext("sva"),code:n.js},{file:r.file.extDts("sva"),code:n.dts}]}}function NCr(r){let n=byr();return{dir:r.paths.css,files:[{file:r.file.ext("cx"),code:n.js},{file:r.file.extDts("cx"),code:n.dts}]}}function RCr(r){let n=Nyr(r);if(!n)return;let i=n.filter(p=>!p.name.includes("create-recipe")),l={js:ux.string(i.map(p=>r.file.exportStar(`./${p.name}`)).join(`
|
|
54307
|
+
`)),dts:ux.string(i.map(p=>r.file.exportTypeStar(`./${p.name}`)).join(`
|
|
54308
|
+
`))};return{dir:r.paths.recipe,files:[...n.map(p=>({file:r.file.ext(p.name),code:p.js})),...n.map(p=>({file:r.file.extDts(p.name),code:p.dts})),{file:r.file.ext("index"),code:l.js},{file:r.file.extDts("index"),code:l.dts}]}}function LCr(r){if(r.isTemplateLiteralSyntax)return;let n=Iyr(r);if(!n)return;let i={js:ux.string(n.map(l=>r.file.exportStar(`./${l.name}`)).join(`
|
|
54309
|
+
`)),dts:ux.string(n.map(l=>r.file.exportTypeStar(`./${l.name}`)).join(`
|
|
54310
|
+
`))};return{dir:r.paths.pattern,files:[...n.map(l=>({file:r.file.ext(l.name),code:l.js})),...n.map(l=>({file:r.file.extDts(l.name),code:l.dts})),{file:r.file.ext("index"),code:i.js},{file:r.file.extDts("index"),code:i.dts}]}}function MCr(r){if(!r.jsx.framework)return;let n=wyr(r),i=JIn(r),l=pCr(r),p=dCr(r),m={js:ux`
|
|
54311
|
+
${r.file.exportStar("./factory")}
|
|
54312
|
+
${n?.js?r.file.exportStar("./is-valid-prop"):""}
|
|
54313
|
+
${ux.string(p.map(g=>r.file.exportStar(`./${g.name}`)).join(`
|
|
54311
54314
|
`))}
|
|
54312
54315
|
`,dts:ux`
|
|
54313
|
-
|
|
54314
|
-
|
|
54315
|
-
${
|
|
54316
|
+
${r.file.exportTypeStar("./factory")}
|
|
54317
|
+
|
|
54318
|
+
${n?.dts?r.file.exportTypeStar("./is-valid-prop"):""}
|
|
54319
|
+
|
|
54320
|
+
${ux.string(p.map(g=>r.file.exportTypeStar(`./${g.name}`)).join(`
|
|
54316
54321
|
`))}
|
|
54317
|
-
|
|
54318
|
-
|
|
54319
|
-
|
|
54320
|
-
${r.file.
|
|
54321
|
-
${r.
|
|
54322
|
-
${r.isTemplateLiteralSyntax?"":r.file.
|
|
54322
|
+
|
|
54323
|
+
${r.file.exportType(r.jsx.typeName,"../types/jsx")}
|
|
54324
|
+
`};return{dir:r.paths.jsx,files:[...p.map(g=>({file:r.file.ext(g.name),code:g.js})),...p.map(g=>({file:r.file.extDts(g.name),code:g.dts})),{file:r.file.ext("is-valid-prop"),code:n?.js},{file:r.file.extDts("is-valid-prop"),code:n?.dts},{file:r.file.ext("factory"),code:l?.js},{file:r.file.extDts("factory"),code:i.jsxFactory},{file:r.file.ext("index"),code:m.js},{file:r.file.extDts("index"),code:m.dts}]}}function FCr(r){let n={js:ux`
|
|
54325
|
+
${r.file.exportStar("./css")}
|
|
54326
|
+
${r.file.exportStar("./cx")}
|
|
54327
|
+
${r.isTemplateLiteralSyntax?"":r.file.exportStar("./cva")}
|
|
54328
|
+
${r.isTemplateLiteralSyntax?"":r.file.exportStar("./sva")}
|
|
54323
54329
|
`,dts:ux`
|
|
54324
|
-
|
|
54325
|
-
|
|
54326
|
-
${r.isTemplateLiteralSyntax?"":"
|
|
54327
|
-
${r.isTemplateLiteralSyntax?"":"
|
|
54328
|
-
`};return{dir:r.paths.css,files:[{file:r.file.ext("index"),code:n.js},{file:
|
|
54330
|
+
${r.file.exportTypeStar("./css")}
|
|
54331
|
+
${r.file.exportTypeStar("./cx")}
|
|
54332
|
+
${r.isTemplateLiteralSyntax?"":r.file.exportTypeStar("./cva")}
|
|
54333
|
+
${r.isTemplateLiteralSyntax?"":r.file.exportTypeStar("./sva")}
|
|
54334
|
+
`};return{dir:r.paths.css,files:[{file:r.file.ext("index"),code:n.js},{file:r.file.extDts("index"),code:n.dts}]}}function OCr(r){let{preflight:n}=r.config;if(!n)return;let i=R8(n)?n.scope:void 0;return{files:[{file:"reset.css",code:zIn(r,i)}]}}function WCr(r){return{files:[{file:"global.css",code:WIn(r)}]}}function GCr(r){return{files:[{file:"static.css",code:jIn(r)}]}}function zCr(r){if(r.config.emitPackage)return{files:[{file:"package.json",code:mCr(r)}]}}var jCr=r=>()=>r.config.emitTokensOnly?[kIn(r)]:[TCr(r),kIn(r),ACr(r),kCr(r),ICr(r),PCr(r),NCr(r),wCr(r),RCr(r),LCr(r),FCr(r),MCr(r),WCr(r),GCr(r),OCr(r),zCr(r)].filter(Boolean).map(n=>((n?.files??[]).forEach(l=>{r.file.isTypeFile(l.file)&&(l.code=`/* eslint-disable */
|
|
54329
54335
|
${l.code}`)}),n)),VCr=r=>n=>{let{files:i,resolve:l}=n,{theme:{keyframes:p}={},preflight:m,minify:g,staticCss:b}=r.config,D=[r.layerString,m&&"@import './reset.css';","@import './global.css';",b&&"@import './static.css';",!r.tokens.isEmpty&&"@import './tokens/index.css';",p&&"@import './tokens/keyframes.css';"].filter(Boolean).join(`
|
|
54330
54336
|
|
|
54331
54337
|
`),I=r.createSheet({content:l?[WIn(r),b&&jIn(r),m&&zIn(r),!r.tokens.isEmpty&&VIn(r),p&&GIn(r)].filter(Boolean).join(`
|
|
54332
54338
|
|
|
54333
|
-
`):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=>
|
|
54339
|
+
`):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(`
|
|
54334
54340
|
`)}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=""";break;case 38:p="&";break;case 39:p="'";break;case 60:p="<";break;case 62:p=">";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 '<' 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.
|
|
54335
54341
|
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\`.
|
|
54336
54342
|
- 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.
|
|
@@ -54413,9 +54419,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
54413
54419
|
`);if(i.length>1){for(let l=0;l<i.length-1;l++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=i[i.length-1].length}},DHe=`
|
|
54414
54420
|
`,r2e={insertLeft:!1,insertRight:!1,storeName:!1},I0e=class r{constructor(n,i={}){let l=new sct(0,n.length,n);Object.defineProperties(this,{original:{writable:!0,value:n},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:l},lastChunk:{writable:!0,value:l},lastSearchedChunk:{writable:!0,value:l},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:i.filename},indentExclusionRanges:{writable:!0,value:i.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new oct},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:i.ignoreList}}),this.byStart[0]=l,this.byEnd[n.length]=l}addSourcemapLocation(n){this.sourcemapLocations.add(n)}append(n){if(typeof n!="string")throw new TypeError("outro content must be a string");return this.outro+=n,this}appendLeft(n,i){if(typeof i!="string")throw new TypeError("inserted content must be a string");this._split(n);let l=this.byEnd[n];return l?l.appendLeft(i):this.intro+=i,this}appendRight(n,i){if(typeof i!="string")throw new TypeError("inserted content must be a string");this._split(n);let l=this.byStart[n];return l?l.appendRight(i):this.outro+=i,this}clone(){let n=new r(this.original,{filename:this.filename}),i=this.firstChunk,l=n.firstChunk=n.lastSearchedChunk=i.clone();for(;i;){n.byStart[l.start]=l,n.byEnd[l.end]=l;let p=i.next,m=p&&p.clone();m&&(l.next=m,m.previous=l,l=m),i=p}return n.lastChunk=l,this.indentExclusionRanges&&(n.indentExclusionRanges=this.indentExclusionRanges.slice()),n.sourcemapLocations=new oct(this.sourcemapLocations),n.intro=this.intro,n.outro=this.outro,n}generateDecodedMap(n){n=n||{};let i=0,l=Object.keys(this.storedNames),p=new pUt(n.hires),m=vLn(this.original);return this.intro&&p.advance(this.intro),this.firstChunk.eachNext(g=>{let b=m(g.start);g.intro.length&&p.advance(g.intro),g.edited?p.addEdit(i,g.content,b,g.storeName?l.indexOf(g.original):-1):p.addUneditedChunk(i,g,this.original,b,this.sourcemapLocations),g.outro.length&&p.advance(g.outro)}),{file:n.file?n.file.split(/[/\\]/).pop():void 0,sources:[n.source?Ikr(n.file||"",n.source):n.file||""],sourcesContent:n.includeContent?[this.original]:void 0,names:l,mappings:p.raw,x_google_ignoreList:this.ignoreList?[i]:void 0}}generateMap(n){return new uUt(this.generateDecodedMap(n))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=wkr(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(n,i){let l=/^[^\r\n]/gm;if(Nkr(n)&&(i=n,n=void 0),n===void 0&&(this._ensureindentStr(),n=this.indentStr||" "),n==="")return this;i=i||{};let p={};i.exclude&&(typeof i.exclude[0]=="number"?[i.exclude]:i.exclude).forEach(R=>{for(let V=R[0];V<R[1];V+=1)p[V]=!0});let m=i.indentStart!==!1,g=I=>m?`${n}${I}`:(m=!0,I);this.intro=this.intro.replace(l,g);let b=0,D=this.firstChunk;for(;D;){let I=D.end;if(D.edited)p[b]||(D.content=D.content.replace(l,g),D.content.length&&(m=D.content[D.content.length-1]===`
|
|
54415
54421
|
`));else for(b=D.start;b<I;){if(!p[b]){let R=this.original[b];R===`
|
|
54416
|
-
`?m=!0:R!=="\r"&&m&&(m=!1,b===D.start||(this._splitChunk(D,b),D=D.next),D.prependRight(n))}b+=1}b=D.end,D=D.next}return this.outro=this.outro.replace(l,g),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(n,i){return r2e.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),r2e.insertLeft=!0),this.appendLeft(n,i)}insertRight(n,i){return r2e.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),r2e.insertRight=!0),this.prependRight(n,i)}move(n,i,l){if(l>=n&&l<=i)throw new Error("Cannot move a selection inside itself");this._split(n),this._split(i),this._split(l);let p=this.byStart[n],m=this.byEnd[i],g=p.previous,b=m.next,D=this.byStart[l];if(!D&&m===this.lastChunk)return this;let I=D?D.previous:this.lastChunk;return g&&(g.next=b),b&&(b.previous=g),I&&(I.next=p),D&&(D.previous=m),p.previous||(this.firstChunk=m.next),m.next||(this.lastChunk=p.previous,this.lastChunk.next=null),p.previous=I,m.next=D||null,I||(this.firstChunk=p),D||(this.lastChunk=m),this}overwrite(n,i,l,p){return p=p||{},this.update(n,i,l,{...p,overwrite:!p.contentOnly})}update(n,i,l,p){if(typeof l!="string")throw new TypeError("replacement content must be a string");for(;n<0;)n+=this.original.length;for(;i<0;)i+=this.original.length;if(i>this.original.length)throw new Error("end is out of bounds");if(n===i)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(n),this._split(i),p===!0&&(r2e.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),r2e.storeName=!0),p={storeName:!0});let m=p!==void 0?p.storeName:!1,g=p!==void 0?p.overwrite:!1;if(m){let I=this.original.slice(n,i);Object.defineProperty(this.storedNames,I,{writable:!0,value:!0,enumerable:!0})}let b=this.byStart[n],D=this.byEnd[i];if(b){let I=b;for(;I!==D;){if(I.next!==this.byStart[I.end])throw new Error("Cannot overwrite across a split point");I=I.next,I.edit("",!1)}b.edit(l,m,!g)}else{let I=new sct(n,i,"").edit(l,m);D.next=I,I.previous=D}return this}prepend(n){if(typeof n!="string")throw new TypeError("outro content must be a string");return this.intro=n+this.intro,this}prependLeft(n,i){if(typeof i!="string")throw new TypeError("inserted content must be a string");this._split(n);let l=this.byEnd[n];return l?l.prependLeft(i):this.intro=i+this.intro,this}prependRight(n,i){if(typeof i!="string")throw new TypeError("inserted content must be a string");this._split(n);let l=this.byStart[n];return l?l.prependRight(i):this.outro=i+this.outro,this}remove(n,i){for(;n<0;)n+=this.original.length;for(;i<0;)i+=this.original.length;if(n===i)return this;if(n<0||i>this.original.length)throw new Error("Character is out of bounds");if(n>i)throw new Error("end must be greater than start");this._split(n),this._split(i);let l=this.byStart[n];for(;l;)l.intro="",l.outro="",l.edit(""),l=i>l.end?this.byStart[l.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let n=this.lastChunk;do{if(n.outro.length)return n.outro[n.outro.length-1];if(n.content.length)return n.content[n.content.length-1];if(n.intro.length)return n.intro[n.intro.length-1]}while(n=n.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let n=this.outro.lastIndexOf(DHe);if(n!==-1)return this.outro.substr(n+1);let i=this.outro,l=this.lastChunk;do{if(l.outro.length>0){if(n=l.outro.lastIndexOf(DHe),n!==-1)return l.outro.substr(n+1)+i;i=l.outro+i}if(l.content.length>0){if(n=l.content.lastIndexOf(DHe),n!==-1)return l.content.substr(n+1)+i;i=l.content+i}if(l.intro.length>0){if(n=l.intro.lastIndexOf(DHe),n!==-1)return l.intro.substr(n+1)+i;i=l.intro+i}}while(l=l.previous);return n=this.intro.lastIndexOf(DHe),n!==-1?this.intro.substr(n+1)+i:this.intro+i}slice(n=0,i=this.original.length){for(;n<0;)n+=this.original.length;for(;i<0;)i+=this.original.length;let l="",p=this.firstChunk;for(;p&&(p.start>n||p.end<=n);){if(p.start<i&&p.end>=i)return l;p=p.next}if(p&&p.edited&&p.start!==n)throw new Error(`Cannot use replaced character ${n} as slice start anchor.`);let m=p;for(;p;){p.intro&&(m!==p||p.start===n)&&(l+=p.intro);let g=p.start<i&&p.end>=i;if(g&&p.edited&&p.end!==i)throw new Error(`Cannot use replaced character ${i} as slice end anchor.`);let b=m===p?n-p.start:0,D=g?p.content.length+i-p.end:p.content.length;if(l+=p.content.slice(b,D),p.outro&&(!g||p.end===i)&&(l+=p.outro),g)break;p=p.next}return l}snip(n,i){let l=this.clone();return l.remove(0,n),l.remove(i,l.original.length),l}_split(n){if(this.byStart[n]||this.byEnd[n])return;let i=this.lastSearchedChunk,l=n>i.end;for(;i;){if(i.contains(n))return this._splitChunk(i,n);i=l?this.byStart[i.end]:this.byEnd[i.start]}}_splitChunk(n,i){if(n.edited&&n.content.length){let p=vLn(this.original)(i);throw new Error(`Cannot split a chunk that has already been edited (${p.line}:${p.column} \u2013 "${n.original}")`)}let l=n.split(i);return this.byEnd[i]=n,this.byStart[i]=l,this.byEnd[l.end]=l,n===this.lastChunk&&(this.lastChunk=l),this.lastSearchedChunk=n,!0}toString(){let n=this.intro,i=this.firstChunk;for(;i;)n+=i.toString(),i=i.next;return n+this.outro}isEmpty(){let n=this.firstChunk;do if(n.intro.length&&n.intro.trim()||n.content.length&&n.content.trim()||n.outro.length&&n.outro.trim())return!1;while(n=n.next);return!0}length(){let n=this.firstChunk,i=0;do i+=n.intro.length+n.content.length+n.outro.length;while(n=n.next);return i}trimLines(){return this.trim("[\\r\\n]")}trim(n){return this.trimStart(n).trimEnd(n)}trimEndAborted(n){let i=new RegExp((n||"\\s")+"+$");if(this.outro=this.outro.replace(i,""),this.outro.length)return!0;let l=this.lastChunk;do{let p=l.end,m=l.trimEnd(i);if(l.end!==p&&(this.lastChunk===l&&(this.lastChunk=l.next),this.byEnd[l.end]=l,this.byStart[l.next.start]=l.next,this.byEnd[l.next.end]=l.next),m)return!0;l=l.previous}while(l);return!1}trimEnd(n){return this.trimEndAborted(n),this}trimStartAborted(n){let i=new RegExp("^"+(n||"\\s")+"+");if(this.intro=this.intro.replace(i,""),this.intro.length)return!0;let l=this.firstChunk;do{let p=l.end,m=l.trimStart(i);if(l.end!==p&&(l===this.lastChunk&&(this.lastChunk=l.next),this.byEnd[l.end]=l,this.byStart[l.next.start]=l.next,this.byEnd[l.next.end]=l.next),m)return!0;l=l.next}while(l);return!1}trimStart(n){return this.trimStartAborted(n),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(n,i){function l(m,g){return typeof i=="string"?i.replace(/\$(\$|&|\d+)/g,(b,D)=>D==="$"?"$":D==="&"?m[0]:+D<m.length?m[+D]:`$${D}`):i(...m,m.index,g,m.groups)}function p(m,g){let b,D=[];for(;b=m.exec(g);)D.push(b);return D}if(n.global)p(n,this.original).forEach(g=>{g.index!=null&&this.overwrite(g.index,g.index+g[0].length,l(g,this.original))});else{let m=this.original.match(n);m&&m.index!=null&&this.overwrite(m.index,m.index+m[0].length,l(m,this.original))}return this}_replaceString(n,i){let{original:l}=this,p=l.indexOf(n);return p!==-1&&this.overwrite(p,p+n.length,i),this}replace(n,i){return typeof n=="string"?this._replaceString(n,i):this._replaceRegexp(n,i)}_replaceAllString(n,i){let{original:l}=this,p=n.length;for(let m=l.indexOf(n);m!==-1;m=l.indexOf(n,m+p))this.overwrite(m,m+p,i);return this}replaceAll(n,i){if(typeof n=="string")return this._replaceAllString(n,i);if(!n.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(n,i)}};var Lkr=r=>{try{return r.getModuleSpecifierValue()}catch{return}};function Mkr(r,n){let{match:i}=n,l=[];return r.getImportDeclarations().forEach(p=>{let m=Lkr(p);if(!m)return;p.getNamedImports().forEach(b=>{let D=b.getNameNode().getText(),I=b.getAliasNode()?.getText()||D,R=i({name:D,alias:I,mod:m});R&&l.push({name:D,alias:I,mod:m,importMapValue:R})})}),{value:l,toString(){return l.map(p=>p.alias).join(", ")},find(p){return l.find(m=>m.alias===p)},createMatch(p){let m=l.filter(g=>g.mod.includes(p)||g.importMapValue===p);return zb(g=>!!m.find(b=>b.alias===g||b.name===g))},match(p){return!!this.find(p)},getName(p){return this.find(p)?.name||p},getAlias(p){return l.find(m=>m.name===p)?.alias||p}}}var ELn=class DLn{jsx=new Set;css=new Set;cva=new Set;sva=new Set;recipe=new Map;pattern=new Map;filePath;set(n,i){this[n].add({type:"object",...i})}setCva(n){this.cva.add({type:"cva",...n})}setSva(n){this.sva.add({type:"sva",...n})}setJsx(n){this.jsx.add({type:"jsx",...n})}setPattern(n,i){this.pattern.get(n)??this.pattern.set(n,new Set),this.pattern.get(n)?.add({type:"pattern",name:n,...i})}setRecipe(n,i){this.recipe.get(n)??this.recipe.set(n,new Set),this.recipe.get(n)?.add({type:"recipe",...i})}isEmpty(){return this.css.size===0&&this.cva.size===0&&this.sva.size===0&&this.recipe.size===0&&this.pattern.size===0&&this.jsx.size===0}setFilePath(n){return this.filePath=n,this}toArray(){let n=[];return this.css.forEach(i=>n.push(i)),this.cva.forEach(i=>n.push(i)),this.sva.forEach(i=>n.push(i)),this.jsx.forEach(i=>n.push(i)),this.recipe.forEach(i=>i.forEach(l=>n.push(l))),this.pattern.forEach(i=>i.forEach(l=>n.push(l))),n}toJSON(){return{css:Array.from(this.css),cva:Array.from(this.cva),sva:Array.from(this.sva),jsx:Array.from(this.jsx),recipe:Object.fromEntries(Array.from(this.recipe.entries()).map(([n,i])=>[n,Array.from(i)])),pattern:Object.fromEntries(Array.from(this.pattern.entries()).map(([n,i])=>[n,Array.from(i)]))}}merge(n){return n.css.forEach(i=>this.css.add(i)),n.cva.forEach(i=>this.cva.add(i)),n.sva.forEach(i=>this.sva.add(i)),n.jsx.forEach(i=>this.jsx.add(i)),n.recipe.forEach((i,l)=>{this.recipe.get(l)??this.recipe.set(l,new Set),i.forEach(p=>this.recipe.get(l)?.add(p))}),n.pattern.forEach((i,l)=>{this.pattern.get(l)??this.pattern.set(l,new Set),i.forEach(p=>this.pattern.get(l)?.add(p))}),this}static fromJSON(n){let i=JSON.parse(n),l=new DLn;return l.css=new Set(i.css),l.cva=new Set(i.cva),l.sva=new Set(i.sva),l.jsx=new Set(i.jsx),l.recipe=new Map(Object.entries(i.recipe)),l.pattern=new Map(Object.entries(i.pattern)),l}},Fkr=()=>new ELn,Okr=r=>r.type==="recipe",Wkr=r=>r.type==="pattern",Gkr=["compoundVariants","defaultVariants","variants","base"],bLn=r=>Gkr.some(n=>r.has(n));function act(r,n){let i=n?new RegExp(`^(${n.join("|")})$`):/.*/;return{mod:r,regex:i,match(l){return i.test(l)}}}var P0e=r=>[...r.conditions,r.raw,...r.spreadConditions],fie=r=>({value:void 0,getNode:()=>r.getNode(),getStack:()=>r.getStack()}),zkr={preset:"NONE"};function jkr(r){let{jsx:n,getRecipesByJsxName:i,getPatternsByJsxName:l,tsOptions:p,join:m}=r,g=Object.fromEntries(Object.entries(r.importMap).map(([D,I])=>[D,m(...I)])),b=[act(g.css,["css","cva","sva"]),act(g.recipe),act(g.pattern)];return n&&b.push(act(g.jsx,[n.factory,...n.nodes.map(D=>D.jsxName)])),function(I){if(!I)return;let R=I.getFilePath(),V=Mkr(I,{match(Xr){let qs=!1;for(let{regex:Wo,mod:ds}of b)if(Wo.test(Xr.name)){if(Xr.mod.includes(ds)){qs=!0;break}if(p?.pathMappings&&nUe(p.pathMappings,Xr.mod)?.includes(ds)){qs=ds;break}}return qs}}),X=Fkr();P1.debug("ast:import",V.value.length?`Found import { ${V} } in ${R}`:`No import found in ${R}`);let[ue]=b,De=n?V.getAlias(n.factory):"styled",we=V.createMatch(g.pattern),We=V.createMatch(g.recipe),Ne=Xr=>Xr===n?.factory,Me=Xr=>!!(n&&Xr.startsWith(De)),Ct=Xr=>{let qs=Xr.split(".raw")[0]??"";return qs==="css"||we(qs)||We(qs)},Rt=new Map,en=(n?.nodes??[]).filter(Wkr).reduce((Xr,qs)=>(Rt.set(qs.jsxName,new Set(qs.props??[])),qs.jsx?.forEach(Wo=>{typeof Wo=="string"?Xr.string.add(Wo):Xr.regex.push(Wo)}),Xr),{string:new Set,regex:[]}),Tn=new Set,hn=new Set;V.value.forEach(Xr=>{let{alias:qs}=Xr;We(qs)&&Tn.add(qs),we(qs)&&hn.add(qs)});let on=new Map,Pn=new Map,Xn=new Map,Jt=new Map,Gs=(n?.nodes??[]).filter(Okr).reduce((Xr,qs)=>(Jt.set(qs.jsxName,new Set(qs.props??[])),qs.jsx?.forEach(Wo=>{typeof Wo=="string"?Xr.string.add(Wo):Xr.regex.push(Wo)}),Xr),{string:new Set,regex:[]}),Qs=V.getAlias("cva"),Zt=V.getAlias("css"),hi=V.getAlias("sva");r.jsx&&r.jsx.nodes.forEach(Xr=>{let qs=V.getAlias(Xr.jsxName);Xr.props?.forEach(Wo=>Xn.set(Wo,!0)),on.set(Xr.baseName,Xn),on.set(qs,Xn),Pn.set(qs,Xn)});let Gn=zb(Xr=>Gs.string.has(Xr)||Gs.regex.some(qs=>qs.test(Xr))),Ti=zb(Xr=>en.string.has(Xr)||en.regex.some(qs=>qs.test(Xr))),ai=zb(Xr=>Xr?Pn.has(Xr)||Vkr(Xr)||Me(Xr)||Gn(Xr)||Ti(Xr):!1),_a=zb((Xr,qs)=>Gn(Xr)?i(Xr).some(ds=>Jt.get(ds.baseName)?.has(qs)):Ti(Xr)?l(Xr).some(ds=>Rt.get(ds.baseName)?.has(qs)):!1),tc=H_(n?.styleProps).with("all",()=>zb((Xr,qs)=>!!Pn.get(Xr)?.has(qs)||r.jsx?.isStyleProp(qs)||Xn.has(qs)||_a(Xr,qs))).with("minimal",()=>(Xr,qs)=>qs==="css"||_a(Xr,qs)).otherwise(()=>(Xr,qs)=>_a(Xr,qs)),Lo=zb(Xr=>Tn.has(Xr)||hn.has(Xr)||Xr===Qs||Xr===Zt||Xr===hi||Ct(Xr)||Me(Xr)?!0:on.has(Xr)),us=P1.time.debug(`Tokens extracted from ${R}`),Ar=AAn({ast:I,components:{matchTag:Xr=>ai(Xr.tagName),matchProp:Xr=>tc(Xr.tagName,Xr.propName)},functions:{matchFn:Xr=>Lo(Xr.fnName),matchProp:()=>!0,matchArg:Xr=>!(Xr.fnName===De&&Xr.index===1&&xLn.Node.isIdentifier(Xr.argNode))},taggedTemplates:{matchTaggedTemplate:Xr=>Lo(Xr.fnName)},getEvaluateOptions:Xr=>({node:Xr,environment:zkr}),flags:{skipTraverseFiles:!0}});return us(),Ar.forEach((Xr,qs)=>{let Wo=V.getName(qs);Ct(Wo)&&(Wo=Wo.replace(".raw","")),P1.debug(`ast:${Wo}`,Wo!==qs?{kind:Xr.kind,alias:qs}:{kind:Xr.kind}),Xr.kind==="function"?H_(Wo).when(ue.match,ds=>{Xr.queryList.forEach(wl=>{if(wl.kind==="call-expression")wl.box.value.length>1?X.set(ds,{name:ds,box:wl.box,data:wl.box.value.reduce((Bl,Wc)=>[...Bl,...P0e(qj(Wc))],[])}):X.set(ds,{name:ds,box:wl.box.value[0]??fie(wl.box),data:P0e(qj(wl.box.value[0]))});else if(wl.kind==="tagged-template"){let Bl=tSe(wl.box.value);X.set(ds,{name:ds,box:wl.box??fie(wl.box),data:[Bl]})}})}).when(we,ds=>{Xr.queryList.forEach(wl=>{wl.kind==="call-expression"&&X.setPattern(ds,{name:ds,box:wl.box.value[0]??fie(wl.box),data:P0e(qj(wl.box.value[0]))})})}).when(We,ds=>{Xr.queryList.forEach(wl=>{wl.kind==="call-expression"&&X.setRecipe(ds,{name:ds,box:wl.box.value[0]??fie(wl.box),data:P0e(qj(wl.box.value[0]))})})}).when(Ne,()=>{Xr.queryList.forEach(ds=>{if(ds.kind==="call-expression"&&ds.box.value[1]){let wl=ds.box.value[1],Bl=Vc.isMap(wl)?wl:fie(ds.box),Wc={name:Wo,box:Bl,data:P0e(qj(Bl))};Vc.isMap(wl)&&bLn(wl.value)?X.setCva(Wc):X.set("css",Wc)}else if(ds.kind==="tagged-template"){let wl=tSe(ds.box.value);X.set("css",{name:Wo,box:ds.box??fie(ds.box),data:[wl]})}})}).when(Me,ds=>{Xr.queryList.forEach(wl=>{if(wl.kind==="call-expression"){let Bl=wl.box.value[0],Wc=Vc.isMap(Bl)?Bl:fie(wl.box),Dt={name:ds,box:Wc,data:P0e(qj(Wc))};Vc.isMap(Bl)&&bLn(Bl.value)?X.setCva(Dt):X.set("css",Dt)}else if(wl.kind==="tagged-template"){let Bl=tSe(wl.box.value);X.set("css",{name:ds,box:wl.box??fie(wl.box),data:[Bl]})}})}).otherwise(()=>{}):Xr.kind==="component"&&Xr.queryList.forEach(ds=>{let wl=P0e(qj(ds.box));H_(Wo).when(Me,Bl=>{X.setJsx({name:Bl,box:ds.box,type:"jsx-factory",data:wl})}).when(Ti,Bl=>{X.setPattern(Bl,{type:"jsx-pattern",name:Bl,box:ds.box,data:wl})}).when(Gn,Bl=>{i(Bl).map(Dt=>{X.setRecipe(Dt.baseName,{type:"jsx-recipe",name:Bl,box:ds.box,data:wl})})}).otherwise(()=>{X.setJsx({name:Wo,box:ds.box,type:"jsx",data:wl})})})}),X}}var Vkr=r=>r[0]===r[0]?.toUpperCase(),lct={ROOT:0,ELEMENT:1,TEXT:2,COMMENT:3,SIMPLE_EXPRESSION:4,INTERPOLATION:5,ATTRIBUTE:6,DIRECTIVE:7,COMPOUND_EXPRESSION:8,IF:9,IF_BRANCH:10,FOR:11,TEXT_CALL:12,VNODE_CALL:13,JS_CALL_EXPRESSION:14,JS_OBJECT_EXPRESSION:15,JS_PROPERTY:16,JS_ARRAY_EXPRESSION:17,JS_FUNCTION_EXPRESSION:18,JS_CONDITIONAL_EXPRESSION:19,JS_CACHE_EXPRESSION:20,JS_BLOCK_STATEMENT:21,JS_TEMPLATE_LITERAL:22,JS_IF_STATEMENT:23,JS_ASSIGNMENT_EXPRESSION:24,JS_SEQUENCE_EXPRESSION:25,JS_RETURN_STATEMENT:26},Ukr=r=>{try{let n=b6n(r),i=new I0e(r),l=I=>{I.type===lct.DIRECTIVE&&I.exp?.type===lct.SIMPLE_EXPRESSION&&I.arg?.type===lct.SIMPLE_EXPRESSION&&i.update(I.loc.start.offset,I.loc.end.offset,`${I.arg.content}={${I.exp.content}}`)},p=[...n.descriptor.template.ast.children];for(;p.length;){let I=p.pop();I&&I.type===lct.ELEMENT&&(I.props.forEach(l),I.children.forEach(R=>p.push(R)))}let m=r.indexOf("<template"),g=r.indexOf("</template>")+11,b=(n.descriptor.scriptSetup??n.descriptor.script)?.content+`
|
|
54417
|
-
`;return new I0e(`${
|
|
54418
|
-
const render = ${i.
|
|
54422
|
+
`?m=!0:R!=="\r"&&m&&(m=!1,b===D.start||(this._splitChunk(D,b),D=D.next),D.prependRight(n))}b+=1}b=D.end,D=D.next}return this.outro=this.outro.replace(l,g),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(n,i){return r2e.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),r2e.insertLeft=!0),this.appendLeft(n,i)}insertRight(n,i){return r2e.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),r2e.insertRight=!0),this.prependRight(n,i)}move(n,i,l){if(l>=n&&l<=i)throw new Error("Cannot move a selection inside itself");this._split(n),this._split(i),this._split(l);let p=this.byStart[n],m=this.byEnd[i],g=p.previous,b=m.next,D=this.byStart[l];if(!D&&m===this.lastChunk)return this;let I=D?D.previous:this.lastChunk;return g&&(g.next=b),b&&(b.previous=g),I&&(I.next=p),D&&(D.previous=m),p.previous||(this.firstChunk=m.next),m.next||(this.lastChunk=p.previous,this.lastChunk.next=null),p.previous=I,m.next=D||null,I||(this.firstChunk=p),D||(this.lastChunk=m),this}overwrite(n,i,l,p){return p=p||{},this.update(n,i,l,{...p,overwrite:!p.contentOnly})}update(n,i,l,p){if(typeof l!="string")throw new TypeError("replacement content must be a string");for(;n<0;)n+=this.original.length;for(;i<0;)i+=this.original.length;if(i>this.original.length)throw new Error("end is out of bounds");if(n===i)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(n),this._split(i),p===!0&&(r2e.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),r2e.storeName=!0),p={storeName:!0});let m=p!==void 0?p.storeName:!1,g=p!==void 0?p.overwrite:!1;if(m){let I=this.original.slice(n,i);Object.defineProperty(this.storedNames,I,{writable:!0,value:!0,enumerable:!0})}let b=this.byStart[n],D=this.byEnd[i];if(b){let I=b;for(;I!==D;){if(I.next!==this.byStart[I.end])throw new Error("Cannot overwrite across a split point");I=I.next,I.edit("",!1)}b.edit(l,m,!g)}else{let I=new sct(n,i,"").edit(l,m);D.next=I,I.previous=D}return this}prepend(n){if(typeof n!="string")throw new TypeError("outro content must be a string");return this.intro=n+this.intro,this}prependLeft(n,i){if(typeof i!="string")throw new TypeError("inserted content must be a string");this._split(n);let l=this.byEnd[n];return l?l.prependLeft(i):this.intro=i+this.intro,this}prependRight(n,i){if(typeof i!="string")throw new TypeError("inserted content must be a string");this._split(n);let l=this.byStart[n];return l?l.prependRight(i):this.outro=i+this.outro,this}remove(n,i){for(;n<0;)n+=this.original.length;for(;i<0;)i+=this.original.length;if(n===i)return this;if(n<0||i>this.original.length)throw new Error("Character is out of bounds");if(n>i)throw new Error("end must be greater than start");this._split(n),this._split(i);let l=this.byStart[n];for(;l;)l.intro="",l.outro="",l.edit(""),l=i>l.end?this.byStart[l.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let n=this.lastChunk;do{if(n.outro.length)return n.outro[n.outro.length-1];if(n.content.length)return n.content[n.content.length-1];if(n.intro.length)return n.intro[n.intro.length-1]}while(n=n.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let n=this.outro.lastIndexOf(DHe);if(n!==-1)return this.outro.substr(n+1);let i=this.outro,l=this.lastChunk;do{if(l.outro.length>0){if(n=l.outro.lastIndexOf(DHe),n!==-1)return l.outro.substr(n+1)+i;i=l.outro+i}if(l.content.length>0){if(n=l.content.lastIndexOf(DHe),n!==-1)return l.content.substr(n+1)+i;i=l.content+i}if(l.intro.length>0){if(n=l.intro.lastIndexOf(DHe),n!==-1)return l.intro.substr(n+1)+i;i=l.intro+i}}while(l=l.previous);return n=this.intro.lastIndexOf(DHe),n!==-1?this.intro.substr(n+1)+i:this.intro+i}slice(n=0,i=this.original.length){for(;n<0;)n+=this.original.length;for(;i<0;)i+=this.original.length;let l="",p=this.firstChunk;for(;p&&(p.start>n||p.end<=n);){if(p.start<i&&p.end>=i)return l;p=p.next}if(p&&p.edited&&p.start!==n)throw new Error(`Cannot use replaced character ${n} as slice start anchor.`);let m=p;for(;p;){p.intro&&(m!==p||p.start===n)&&(l+=p.intro);let g=p.start<i&&p.end>=i;if(g&&p.edited&&p.end!==i)throw new Error(`Cannot use replaced character ${i} as slice end anchor.`);let b=m===p?n-p.start:0,D=g?p.content.length+i-p.end:p.content.length;if(l+=p.content.slice(b,D),p.outro&&(!g||p.end===i)&&(l+=p.outro),g)break;p=p.next}return l}snip(n,i){let l=this.clone();return l.remove(0,n),l.remove(i,l.original.length),l}_split(n){if(this.byStart[n]||this.byEnd[n])return;let i=this.lastSearchedChunk,l=n>i.end;for(;i;){if(i.contains(n))return this._splitChunk(i,n);i=l?this.byStart[i.end]:this.byEnd[i.start]}}_splitChunk(n,i){if(n.edited&&n.content.length){let p=vLn(this.original)(i);throw new Error(`Cannot split a chunk that has already been edited (${p.line}:${p.column} \u2013 "${n.original}")`)}let l=n.split(i);return this.byEnd[i]=n,this.byStart[i]=l,this.byEnd[l.end]=l,n===this.lastChunk&&(this.lastChunk=l),this.lastSearchedChunk=n,!0}toString(){let n=this.intro,i=this.firstChunk;for(;i;)n+=i.toString(),i=i.next;return n+this.outro}isEmpty(){let n=this.firstChunk;do if(n.intro.length&&n.intro.trim()||n.content.length&&n.content.trim()||n.outro.length&&n.outro.trim())return!1;while(n=n.next);return!0}length(){let n=this.firstChunk,i=0;do i+=n.intro.length+n.content.length+n.outro.length;while(n=n.next);return i}trimLines(){return this.trim("[\\r\\n]")}trim(n){return this.trimStart(n).trimEnd(n)}trimEndAborted(n){let i=new RegExp((n||"\\s")+"+$");if(this.outro=this.outro.replace(i,""),this.outro.length)return!0;let l=this.lastChunk;do{let p=l.end,m=l.trimEnd(i);if(l.end!==p&&(this.lastChunk===l&&(this.lastChunk=l.next),this.byEnd[l.end]=l,this.byStart[l.next.start]=l.next,this.byEnd[l.next.end]=l.next),m)return!0;l=l.previous}while(l);return!1}trimEnd(n){return this.trimEndAborted(n),this}trimStartAborted(n){let i=new RegExp("^"+(n||"\\s")+"+");if(this.intro=this.intro.replace(i,""),this.intro.length)return!0;let l=this.firstChunk;do{let p=l.end,m=l.trimStart(i);if(l.end!==p&&(l===this.lastChunk&&(this.lastChunk=l.next),this.byEnd[l.end]=l,this.byStart[l.next.start]=l.next,this.byEnd[l.next.end]=l.next),m)return!0;l=l.next}while(l);return!1}trimStart(n){return this.trimStartAborted(n),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(n,i){function l(m,g){return typeof i=="string"?i.replace(/\$(\$|&|\d+)/g,(b,D)=>D==="$"?"$":D==="&"?m[0]:+D<m.length?m[+D]:`$${D}`):i(...m,m.index,g,m.groups)}function p(m,g){let b,D=[];for(;b=m.exec(g);)D.push(b);return D}if(n.global)p(n,this.original).forEach(g=>{g.index!=null&&this.overwrite(g.index,g.index+g[0].length,l(g,this.original))});else{let m=this.original.match(n);m&&m.index!=null&&this.overwrite(m.index,m.index+m[0].length,l(m,this.original))}return this}_replaceString(n,i){let{original:l}=this,p=l.indexOf(n);return p!==-1&&this.overwrite(p,p+n.length,i),this}replace(n,i){return typeof n=="string"?this._replaceString(n,i):this._replaceRegexp(n,i)}_replaceAllString(n,i){let{original:l}=this,p=n.length;for(let m=l.indexOf(n);m!==-1;m=l.indexOf(n,m+p))this.overwrite(m,m+p,i);return this}replaceAll(n,i){if(typeof n=="string")return this._replaceAllString(n,i);if(!n.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(n,i)}};var Lkr=r=>{try{return r.getModuleSpecifierValue()}catch{return}};function Mkr(r,n){let{match:i}=n,l=[];return r.getImportDeclarations().forEach(p=>{let m=Lkr(p);if(!m)return;p.getNamedImports().forEach(b=>{let D=b.getNameNode().getText(),I=b.getAliasNode()?.getText()||D,R=i({name:D,alias:I,mod:m});R&&l.push({name:D,alias:I,mod:m,importMapValue:R})})}),{value:l,toString(){return l.map(p=>p.alias).join(", ")},find(p){return l.find(m=>m.alias===p)},createMatch(p){let m=l.filter(g=>g.mod.includes(p)||g.importMapValue===p);return zb(g=>!!m.find(b=>b.alias===g||b.name===g))},match(p){return!!this.find(p)},getName(p){return this.find(p)?.name||p},getAlias(p){return l.find(m=>m.name===p)?.alias||p}}}var ELn=class DLn{jsx=new Set;css=new Set;cva=new Set;sva=new Set;recipe=new Map;pattern=new Map;filePath;set(n,i){this[n].add({type:"object",...i})}setCva(n){this.cva.add({type:"cva",...n})}setSva(n){this.sva.add({type:"sva",...n})}setJsx(n){this.jsx.add({type:"jsx",...n})}setPattern(n,i){this.pattern.get(n)??this.pattern.set(n,new Set),this.pattern.get(n)?.add({type:"pattern",name:n,...i})}setRecipe(n,i){this.recipe.get(n)??this.recipe.set(n,new Set),this.recipe.get(n)?.add({type:"recipe",...i})}isEmpty(){return this.css.size===0&&this.cva.size===0&&this.sva.size===0&&this.recipe.size===0&&this.pattern.size===0&&this.jsx.size===0}setFilePath(n){return this.filePath=n,this}toArray(){let n=[];return this.css.forEach(i=>n.push(i)),this.cva.forEach(i=>n.push(i)),this.sva.forEach(i=>n.push(i)),this.jsx.forEach(i=>n.push(i)),this.recipe.forEach(i=>i.forEach(l=>n.push(l))),this.pattern.forEach(i=>i.forEach(l=>n.push(l))),n}toJSON(){return{css:Array.from(this.css),cva:Array.from(this.cva),sva:Array.from(this.sva),jsx:Array.from(this.jsx),recipe:Object.fromEntries(Array.from(this.recipe.entries()).map(([n,i])=>[n,Array.from(i)])),pattern:Object.fromEntries(Array.from(this.pattern.entries()).map(([n,i])=>[n,Array.from(i)]))}}merge(n){return n.css.forEach(i=>this.css.add(i)),n.cva.forEach(i=>this.cva.add(i)),n.sva.forEach(i=>this.sva.add(i)),n.jsx.forEach(i=>this.jsx.add(i)),n.recipe.forEach((i,l)=>{this.recipe.get(l)??this.recipe.set(l,new Set),i.forEach(p=>this.recipe.get(l)?.add(p))}),n.pattern.forEach((i,l)=>{this.pattern.get(l)??this.pattern.set(l,new Set),i.forEach(p=>this.pattern.get(l)?.add(p))}),this}static fromJSON(n){let i=JSON.parse(n),l=new DLn;return l.css=new Set(i.css),l.cva=new Set(i.cva),l.sva=new Set(i.sva),l.jsx=new Set(i.jsx),l.recipe=new Map(Object.entries(i.recipe)),l.pattern=new Map(Object.entries(i.pattern)),l}},Fkr=()=>new ELn,Okr=r=>r.type==="recipe",Wkr=r=>r.type==="pattern",Gkr=["compoundVariants","defaultVariants","variants","base"],bLn=r=>Gkr.some(n=>r.has(n));function act(r,n){let i=n?new RegExp(`^(${n.join("|")})$`):/.*/;return{mod:r,regex:i,match(l){return i.test(l)}}}var P0e=r=>[...r.conditions,r.raw,...r.spreadConditions],fie=r=>({value:void 0,getNode:()=>r.getNode(),getStack:()=>r.getStack()}),zkr={preset:"NONE"};function jkr(r){let{jsx:n,getRecipesByJsxName:i,getPatternsByJsxName:l,tsOptions:p,join:m}=r,g=Object.fromEntries(Object.entries(r.importMap).map(([D,I])=>[D,m(...I)])),b=[act(g.css,["css","cva","sva"]),act(g.recipe),act(g.pattern)];return n&&b.push(act(g.jsx,[n.factory,...n.nodes.map(D=>D.jsxName)])),function(I){if(!I)return;let R=I.getFilePath(),V=Mkr(I,{match(Xr){let qs=!1;for(let{regex:Wo,mod:ds}of b)if(Wo.test(Xr.name)){if(Xr.mod.includes(ds)){qs=!0;break}if(p?.pathMappings&&nUe(p.pathMappings,Xr.mod)?.includes(ds)){qs=ds;break}}return qs}}),X=Fkr();P1.debug("ast:import",V.value.length?`Found import { ${V} } in ${R}`:`No import found in ${R}`);let[ue]=b,De=n?V.getAlias(n.factory):"styled",we=V.createMatch(g.pattern),We=V.createMatch(g.recipe),Ne=Xr=>Xr===n?.factory,Me=Xr=>!!(n&&Xr.startsWith(De)),Ct=Xr=>{let qs=Xr.split(".raw")[0]??"";return qs==="css"||we(qs)||We(qs)},Rt=new Map,en=(n?.nodes??[]).filter(Wkr).reduce((Xr,qs)=>(Rt.set(qs.jsxName,new Set(qs.props??[])),qs.jsx?.forEach(Wo=>{typeof Wo=="string"?Xr.string.add(Wo):Xr.regex.push(Wo)}),Xr),{string:new Set,regex:[]}),Tn=new Set,hn=new Set;V.value.forEach(Xr=>{let{alias:qs}=Xr;We(qs)&&Tn.add(qs),we(qs)&&hn.add(qs)});let on=new Map,Pn=new Map,Xn=new Map,Jt=new Map,Gs=(n?.nodes??[]).filter(Okr).reduce((Xr,qs)=>(Jt.set(qs.jsxName,new Set(qs.props??[])),qs.jsx?.forEach(Wo=>{typeof Wo=="string"?Xr.string.add(Wo):Xr.regex.push(Wo)}),Xr),{string:new Set,regex:[]}),Qs=V.getAlias("cva"),Zt=V.getAlias("css"),hi=V.getAlias("sva");r.jsx&&r.jsx.nodes.forEach(Xr=>{let qs=V.getAlias(Xr.jsxName);Xr.props?.forEach(Wo=>Xn.set(Wo,!0)),on.set(Xr.baseName,Xn),on.set(qs,Xn),Pn.set(qs,Xn)});let Gn=zb(Xr=>Gs.string.has(Xr)||Gs.regex.some(qs=>qs.test(Xr))),Ti=zb(Xr=>en.string.has(Xr)||en.regex.some(qs=>qs.test(Xr))),ai=zb(Xr=>Xr?Pn.has(Xr)||Vkr(Xr)||Me(Xr)||Gn(Xr)||Ti(Xr):!1),_a=zb((Xr,qs)=>Gn(Xr)?i(Xr).some(ds=>Jt.get(ds.baseName)?.has(qs)):Ti(Xr)?l(Xr).some(ds=>Rt.get(ds.baseName)?.has(qs)):!1),tc=H_(n?.styleProps).with("all",()=>zb((Xr,qs)=>!!Pn.get(Xr)?.has(qs)||r.jsx?.isStyleProp(qs)||Xn.has(qs)||_a(Xr,qs))).with("minimal",()=>(Xr,qs)=>qs==="css"||_a(Xr,qs)).otherwise(()=>(Xr,qs)=>_a(Xr,qs)),Lo=zb(Xr=>Tn.has(Xr)||hn.has(Xr)||Xr===Qs||Xr===Zt||Xr===hi||Ct(Xr)||Me(Xr)?!0:on.has(Xr)),us=P1.time.debug(`Tokens extracted from ${R}`),Ar=AAn({ast:I,components:{matchTag:Xr=>ai(Xr.tagName),matchProp:Xr=>tc(Xr.tagName,Xr.propName)},functions:{matchFn:Xr=>Lo(Xr.fnName),matchProp:()=>!0,matchArg:Xr=>!(Xr.fnName===De&&Xr.index===1&&xLn.Node.isIdentifier(Xr.argNode))},taggedTemplates:{matchTaggedTemplate:Xr=>Lo(Xr.fnName)},getEvaluateOptions:Xr=>({node:Xr,environment:zkr}),flags:{skipTraverseFiles:!0}});return us(),Ar.forEach((Xr,qs)=>{let Wo=V.getName(qs);Ct(Wo)&&(Wo=Wo.replace(".raw","")),P1.debug(`ast:${Wo}`,Wo!==qs?{kind:Xr.kind,alias:qs}:{kind:Xr.kind}),Xr.kind==="function"?H_(Wo).when(ue.match,ds=>{Xr.queryList.forEach(wl=>{if(wl.kind==="call-expression")wl.box.value.length>1?X.set(ds,{name:ds,box:wl.box,data:wl.box.value.reduce((Bl,Wc)=>[...Bl,...P0e(qj(Wc))],[])}):X.set(ds,{name:ds,box:wl.box.value[0]??fie(wl.box),data:P0e(qj(wl.box.value[0]))});else if(wl.kind==="tagged-template"){let Bl=tSe(wl.box.value);X.set(ds,{name:ds,box:wl.box??fie(wl.box),data:[Bl]})}})}).when(we,ds=>{Xr.queryList.forEach(wl=>{wl.kind==="call-expression"&&X.setPattern(ds,{name:ds,box:wl.box.value[0]??fie(wl.box),data:P0e(qj(wl.box.value[0]))})})}).when(We,ds=>{Xr.queryList.forEach(wl=>{wl.kind==="call-expression"&&X.setRecipe(ds,{name:ds,box:wl.box.value[0]??fie(wl.box),data:P0e(qj(wl.box.value[0]))})})}).when(Ne,()=>{Xr.queryList.forEach(ds=>{if(ds.kind==="call-expression"&&ds.box.value[1]){let wl=ds.box.value[1],Bl=Vc.isMap(wl)?wl:fie(ds.box),Wc={name:Wo,box:Bl,data:P0e(qj(Bl))};Vc.isMap(wl)&&bLn(wl.value)?X.setCva(Wc):X.set("css",Wc)}else if(ds.kind==="tagged-template"){let wl=tSe(ds.box.value);X.set("css",{name:Wo,box:ds.box??fie(ds.box),data:[wl]})}})}).when(Me,ds=>{Xr.queryList.forEach(wl=>{if(wl.kind==="call-expression"){let Bl=wl.box.value[0],Wc=Vc.isMap(Bl)?Bl:fie(wl.box),Dt={name:ds,box:Wc,data:P0e(qj(Wc))};Vc.isMap(Bl)&&bLn(Bl.value)?X.setCva(Dt):X.set("css",Dt)}else if(wl.kind==="tagged-template"){let Bl=tSe(wl.box.value);X.set("css",{name:ds,box:wl.box??fie(wl.box),data:[Bl]})}})}).otherwise(()=>{}):Xr.kind==="component"&&Xr.queryList.forEach(ds=>{let wl=P0e(qj(ds.box));H_(Wo).when(Me,Bl=>{X.setJsx({name:Bl,box:ds.box,type:"jsx-factory",data:wl})}).when(Ti,Bl=>{X.setPattern(Bl,{type:"jsx-pattern",name:Bl,box:ds.box,data:wl})}).when(Gn,Bl=>{i(Bl).map(Dt=>{X.setRecipe(Dt.baseName,{type:"jsx-recipe",name:Bl,box:ds.box,data:wl})})}).otherwise(()=>{X.setJsx({name:Wo,box:ds.box,type:"jsx",data:wl})})})}),X}}var Vkr=r=>r[0]===r[0]?.toUpperCase(),lct={ROOT:0,ELEMENT:1,TEXT:2,COMMENT:3,SIMPLE_EXPRESSION:4,INTERPOLATION:5,ATTRIBUTE:6,DIRECTIVE:7,COMPOUND_EXPRESSION:8,IF:9,IF_BRANCH:10,FOR:11,TEXT_CALL:12,VNODE_CALL:13,JS_CALL_EXPRESSION:14,JS_OBJECT_EXPRESSION:15,JS_PROPERTY:16,JS_ARRAY_EXPRESSION:17,JS_FUNCTION_EXPRESSION:18,JS_CONDITIONAL_EXPRESSION:19,JS_CACHE_EXPRESSION:20,JS_BLOCK_STATEMENT:21,JS_TEMPLATE_LITERAL:22,JS_IF_STATEMENT:23,JS_ASSIGNMENT_EXPRESSION:24,JS_SEQUENCE_EXPRESSION:25,JS_RETURN_STATEMENT:26},Ukr=r=>{try{let n=b6n(r),i=new I0e(`<template>${n.descriptor.template?.content}</template>`??""),l=b=>{b.type===lct.DIRECTIVE&&b.exp?.type===lct.SIMPLE_EXPRESSION&&b.arg?.type===lct.SIMPLE_EXPRESSION&&i.replace(b.loc.source,`${b.arg.content}={${b.exp.content}}`)},p=[...n.descriptor.template.ast.children];for(;p.length;){let b=p.pop();b&&b.type===lct.ELEMENT&&(b.props.forEach(l),b.children.forEach(D=>p.push(D)))}let m=(n.descriptor.scriptSetup??n.descriptor.script)?.content+`
|
|
54423
|
+
`;return new I0e(`${m}
|
|
54424
|
+
const render = ${i.toString()}`).toString()}catch{return""}},SLn=/<!--[^]*?-->|<style(\s[^]*?)?(?:>([^]*?)<\/style>|\/>)/gi,Hkr=/<!--[^]*?-->|<script(\s[^]*?)?(?:>([^]*?)<\/script>|\/>)/gi,Jkr=r=>{try{let n=[],i=new I0e(r),l;for(;(l=Hkr.exec(r))!=null;){let[g,b,D]=l;D&&(n.push(D),i.remove(l.index,l.index+g.length))}let p=i.toString().trimStart().replace(SLn,"").replace(SLn,"");return`${n.join("")}
|
|
54419
54425
|
const render = <div>${p}</div>`.toString().trim()}catch{return""}},qkr=r=>new THe.Project({skipAddingFilesFromTsConfig:!0,skipFileDependencyResolution:!0,skipLoadingLibFiles:!0,...r,compilerOptions:{allowJs:!0,strictNullChecks:!1,skipLibCheck:!0,...r.compilerOptions}}),TLn=({getFiles:r,readFile:n,parserOptions:i,hooks:l,...p})=>ok({project:qkr(p),parser:jkr(i)},fI.assign(({project:m,parser:g})=>({getSourceFile:b=>m.getSourceFile(b),removeSourceFile:b=>{let D=m.getSourceFile(b);D&&m.removeSourceFile(D)},createSourceFile:b=>m.createSourceFile(b,n(b),{overwrite:!0,scriptKind:THe.ScriptKind.TSX}),addSourceFile:(b,D)=>m.createSourceFile(b,D,{overwrite:!0,scriptKind:THe.ScriptKind.TSX}),parseSourceFile:b=>{if(b.endsWith(".json")){let X=n(b);l.callHook("parser:before",b,X);let ue=ELn.fromJSON(X).setFilePath(b);return l.callHook("parser:after",b,ue),ue}let D=m.getSourceFile(b);if(!D)return;let I=D.getText(),R=Kkr(b,I);I!==R&&D.replaceWithText(R),l.callHook("parser:before",b,I);let V=g(D)?.setFilePath(b);return l.callHook("parser:after",b,V),V}})),Aee(({createSourceFile:m})=>{let g=r();for(let b of g)m(b)}),fI.assign(({getSourceFile:m,project:g})=>({reloadSourceFile:b=>m(b)?.refreshFromFileSystemSync(),reloadSourceFiles:()=>{let b=r();for(let D of b)m(D)?.refreshFromFileSystemSync()??g.addSourceFileAtPath(D)}})),fI.omit(["project","parser"])),Kkr=(r,n)=>r.endsWith(".vue")?Ukr(n):r.endsWith(".svelte")?Jkr(n):n;var H8n=_d(x4n(),1),J8n=_d(require("fast-glob"),1),_6=_d(vGt(),1);re();re();function Act(r=""){return!r||!r.includes("\\")?r:r.replace(/\\/g,"/")}var rNr=/^[/\\]{2}/,iNr=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,E4n=/^[A-Za-z]:$/,cHt="/";var D4n=function(r){if(r.length===0)return".";r=Act(r);let n=r.match(rNr),i=ute(r),l=r[r.length-1]==="/";return r=uHt(r,!i),r.length===0?i?"/":l?"./":".":(l&&(r+="/"),E4n.test(r)&&(r+="/"),n?i?`//${r}`:`//./${r}`:i&&!ute(r)?`/${r}`:r)},kct=function(...r){if(r.length===0)return".";let n;for(let i of r)i&&i.length>0&&(n===void 0?n=i:n+=`/${i}`);return n===void 0?".":D4n(n.replace(/\/\/+/g,"/"))};function oNr(){return typeof process<"u"?process.cwd().replace(/\\/g,"/"):"/"}var lHt=function(...r){r=r.map(l=>Act(l));let n="",i=!1;for(let l=r.length-1;l>=-1&&!i;l--){let p=l>=0?r[l]:oNr();!p||p.length===0||(n=`${p}/${n}`,i=ute(p))}return n=uHt(n,!i),i&&!ute(n)?`/${n}`:n.length>0?n:"."};function uHt(r,n){let i="",l=0,p=-1,m=0,g=null;for(let b=0;b<=r.length;++b){if(b<r.length)g=r[b];else{if(g==="/")break;g="/"}if(g==="/"){if(!(p===b-1||m===1))if(m===2){if(i.length<2||l!==2||i[i.length-1]!=="."||i[i.length-2]!=="."){if(i.length>2){let D=i.lastIndexOf("/");D===-1?(i="",l=0):(i=i.slice(0,D),l=i.length-1-i.lastIndexOf("/")),p=b,m=0;continue}else if(i.length>0){i="",l=0,p=b,m=0;continue}}n&&(i+=i.length>0?"/..":"..",l=2)}else i.length>0?i+=`/${r.slice(p+1,b)}`:i=r.slice(p+1,b),l=b-p-1;p=b,m=0}else g==="."&&m!==-1?++m:m=-1}return i}var ute=function(r){return iNr.test(r)};var sNr=/.(\.[^./]+)$/,pHt=function(r){let n=sNr.exec(Act(r));return n&&n[1]||""},fHt=function(r,n){let i=lHt(r).split("/"),l=lHt(n).split("/"),p=[...i];for(let m of p){if(l[0]!==m)break;i.shift(),l.shift()}return[...i.map(()=>".."),...l].join("/")},dHt=function(r){let n=Act(r).replace(/\/$/,"").split("/").slice(0,-1);return n.length===1&&E4n.test(n[0])&&(n[0]+="/"),n.join("/")||(ute(r)?"/":".")};var KHe=_d(require("process"),1),nut=_d(require("process"),1),K8n=_d(require("os"),1),XHt=_d(require("tty"),1);var t7n=_d(NHe(),1),ZHt=require("path"),n7n=_d(A4n(),1);var GLr=_d(zHt(),1);var zLr=_d(zHt(),1);var gRr=Object.create,j8n=Object.defineProperty,BRr=Object.getOwnPropertyDescriptor,eJt=Object.getOwnPropertyNames,yRr=Object.getPrototypeOf,CRr=Object.prototype.hasOwnProperty,vRr=(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 Error('Dynamic require of "'+r+'" is not supported')}),bRr=(r,n)=>function(){return r&&(n=(0,r[eJt(r)[0]])(r=0)),n},ZU=(r,n)=>function(){return n||(0,r[eJt(r)[0]])((n={exports:{}}).exports,n),n.exports},SRr=(r,n,i,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(let p of eJt(n))!CRr.call(r,p)&&p!==i&&j8n(r,p,{get:()=>n[p],enumerable:!(l=BRr(n,p))||l.enumerable});return r},$He=(r,n,i)=>(i=r!=null?gRr(yRr(r)):{},SRr(n||!r||!r.__esModule?j8n(i,"default",{value:r,enumerable:!0}):i,r)),_y=bRr({"../../node_modules/.pnpm/tsup@7.1.0_postcss@8.4.27_typescript@5.1.6/node_modules/tsup/assets/esm_shims.js"(){"use strict"}}),xRr=ZU({"../../node_modules/.pnpm/eastasianwidth@0.2.0/node_modules/eastasianwidth/eastasianwidth.js"(r,n){"use strict";_y();var i={};typeof n>"u"?window.eastasianwidth=i:n.exports=i,i.eastAsianWidth=function(p){var m=p.charCodeAt(0),g=p.length==2?p.charCodeAt(1):0,b=m;return 55296<=m&&m<=56319&&56320<=g&&g<=57343&&(m&=1023,g&=1023,b=m<<10|g,b+=65536),b==12288||65281<=b&&b<=65376||65504<=b&&b<=65510?"F":b==8361||65377<=b&&b<=65470||65474<=b&&b<=65479||65482<=b&&b<=65487||65490<=b&&b<=65495||65498<=b&&b<=65500||65512<=b&&b<=65518?"H":4352<=b&&b<=4447||4515<=b&&b<=4519||4602<=b&&b<=4607||9001<=b&&b<=9002||11904<=b&&b<=11929||11931<=b&&b<=12019||12032<=b&&b<=12245||12272<=b&&b<=12283||12289<=b&&b<=12350||12353<=b&&b<=12438||12441<=b&&b<=12543||12549<=b&&b<=12589||12593<=b&&b<=12686||12688<=b&&b<=12730||12736<=b&&b<=12771||12784<=b&&b<=12830||12832<=b&&b<=12871||12880<=b&&b<=13054||13056<=b&&b<=19903||19968<=b&&b<=42124||42128<=b&&b<=42182||43360<=b&&b<=43388||44032<=b&&b<=55203||55216<=b&&b<=55238||55243<=b&&b<=55291||63744<=b&&b<=64255||65040<=b&&b<=65049||65072<=b&&b<=65106||65108<=b&&b<=65126||65128<=b&&b<=65131||110592<=b&&b<=110593||127488<=b&&b<=127490||127504<=b&&b<=127546||127552<=b&&b<=127560||127568<=b&&b<=127569||131072<=b&&b<=194367||177984<=b&&b<=196605||196608<=b&&b<=262141?"W":32<=b&&b<=126||162<=b&&b<=163||165<=b&&b<=166||b==172||b==175||10214<=b&&b<=10221||10629<=b&&b<=10630?"Na":b==161||b==164||167<=b&&b<=168||b==170||173<=b&&b<=174||176<=b&&b<=180||182<=b&&b<=186||188<=b&&b<=191||b==198||b==208||215<=b&&b<=216||222<=b&&b<=225||b==230||232<=b&&b<=234||236<=b&&b<=237||b==240||242<=b&&b<=243||247<=b&&b<=250||b==252||b==254||b==257||b==273||b==275||b==283||294<=b&&b<=295||b==299||305<=b&&b<=307||b==312||319<=b&&b<=322||b==324||328<=b&&b<=331||b==333||338<=b&&b<=339||358<=b&&b<=359||b==363||b==462||b==464||b==466||b==468||b==470||b==472||b==474||b==476||b==593||b==609||b==708||b==711||713<=b&&b<=715||b==717||b==720||728<=b&&b<=731||b==733||b==735||768<=b&&b<=879||913<=b&&b<=929||931<=b&&b<=937||945<=b&&b<=961||963<=b&&b<=969||b==1025||1040<=b&&b<=1103||b==1105||b==8208||8211<=b&&b<=8214||8216<=b&&b<=8217||8220<=b&&b<=8221||8224<=b&&b<=8226||8228<=b&&b<=8231||b==8240||8242<=b&&b<=8243||b==8245||b==8251||b==8254||b==8308||b==8319||8321<=b&&b<=8324||b==8364||b==8451||b==8453||b==8457||b==8467||b==8470||8481<=b&&b<=8482||b==8486||b==8491||8531<=b&&b<=8532||8539<=b&&b<=8542||8544<=b&&b<=8555||8560<=b&&b<=8569||b==8585||8592<=b&&b<=8601||8632<=b&&b<=8633||b==8658||b==8660||b==8679||b==8704||8706<=b&&b<=8707||8711<=b&&b<=8712||b==8715||b==8719||b==8721||b==8725||b==8730||8733<=b&&b<=8736||b==8739||b==8741||8743<=b&&b<=8748||b==8750||8756<=b&&b<=8759||8764<=b&&b<=8765||b==8776||b==8780||b==8786||8800<=b&&b<=8801||8804<=b&&b<=8807||8810<=b&&b<=8811||8814<=b&&b<=8815||8834<=b&&b<=8835||8838<=b&&b<=8839||b==8853||b==8857||b==8869||b==8895||b==8978||9312<=b&&b<=9449||9451<=b&&b<=9547||9552<=b&&b<=9587||9600<=b&&b<=9615||9618<=b&&b<=9621||9632<=b&&b<=9633||9635<=b&&b<=9641||9650<=b&&b<=9651||9654<=b&&b<=9655||9660<=b&&b<=9661||9664<=b&&b<=9665||9670<=b&&b<=9672||b==9675||9678<=b&&b<=9681||9698<=b&&b<=9701||b==9711||9733<=b&&b<=9734||b==9737||9742<=b&&b<=9743||9748<=b&&b<=9749||b==9756||b==9758||b==9792||b==9794||9824<=b&&b<=9825||9827<=b&&b<=9829||9831<=b&&b<=9834||9836<=b&&b<=9837||b==9839||9886<=b&&b<=9887||9918<=b&&b<=9919||9924<=b&&b<=9933||9935<=b&&b<=9953||b==9955||9960<=b&&b<=9983||b==10045||b==10071||10102<=b&&b<=10111||11093<=b&&b<=11097||12872<=b&&b<=12879||57344<=b&&b<=63743||65024<=b&&b<=65039||b==65533||127232<=b&&b<=127242||127248<=b&&b<=127277||127280<=b&&b<=127337||127344<=b&&b<=127386||917760<=b&&b<=917999||983040<=b&&b<=1048573||1048576<=b&&b<=1114109?"A":"N"},i.characterLength=function(p){var m=this.eastAsianWidth(p);return m=="F"||m=="W"||m=="A"?2:1};function l(p){return p.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}i.length=function(p){for(var m=l(p),g=0,b=0;b<m.length;b++)g=g+this.characterLength(m[b]);return g},i.slice=function(p,m,g){textLen=i.length(p),m=m||0,g=g||1,m<0&&(m=textLen+m),g<0&&(g=textLen+g);for(var b="",D=0,I=l(p),R=0;R<I.length;R++){var V=I[R],X=i.length(V);if(D>=m-(X==2?1:0))if(D+X<=g)b+=V;else break;D+=X}return b}}}),ERr=ZU({"../../node_modules/.pnpm/emoji-regex@9.2.2/node_modules/emoji-regex/index.js"(r,n){"use strict";_y(),n.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}}}),DRr=ZU({"../../node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/boxes.json"(r,n){n.exports={single:{topLeft:"\u250C",top:"\u2500",topRight:"\u2510",right:"\u2502",bottomRight:"\u2518",bottom:"\u2500",bottomLeft:"\u2514",left:"\u2502"},double:{topLeft:"\u2554",top:"\u2550",topRight:"\u2557",right:"\u2551",bottomRight:"\u255D",bottom:"\u2550",bottomLeft:"\u255A",left:"\u2551"},round:{topLeft:"\u256D",top:"\u2500",topRight:"\u256E",right:"\u2502",bottomRight:"\u256F",bottom:"\u2500",bottomLeft:"\u2570",left:"\u2502"},bold:{topLeft:"\u250F",top:"\u2501",topRight:"\u2513",right:"\u2503",bottomRight:"\u251B",bottom:"\u2501",bottomLeft:"\u2517",left:"\u2503"},singleDouble:{topLeft:"\u2553",top:"\u2500",topRight:"\u2556",right:"\u2551",bottomRight:"\u255C",bottom:"\u2500",bottomLeft:"\u2559",left:"\u2551"},doubleSingle:{topLeft:"\u2552",top:"\u2550",topRight:"\u2555",right:"\u2502",bottomRight:"\u255B",bottom:"\u2550",bottomLeft:"\u2558",left:"\u2502"},classic:{topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},arrow:{topLeft:"\u2198",top:"\u2193",topRight:"\u2199",right:"\u2190",bottomRight:"\u2196",bottom:"\u2191",bottomLeft:"\u2197",left:"\u2192"}}}}),V8n=ZU({"../../node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/index.js"(r,n){"use strict";_y();var i=DRr();n.exports=i,n.exports.default=i}}),TRr=ZU({"../../node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js"(r,n){"use strict";_y(),n.exports=({onlyFirst:i=!1}={})=>{let l=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(l,i?void 0:"g")}}}),ARr=ZU({"../../node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(r,n){"use strict";_y();var i=TRr();n.exports=l=>typeof l=="string"?l.replace(i(),""):l}}),kRr=ZU({"../../node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js"(r,n){"use strict";_y();var i=l=>Number.isNaN(l)?!1:l>=4352&&(l<=4447||l===9001||l===9002||11904<=l&&l<=12871&&l!==12351||12880<=l&&l<=19903||19968<=l&&l<=42182||43360<=l&&l<=43388||44032<=l&&l<=55203||63744<=l&&l<=64255||65040<=l&&l<=65049||65072<=l&&l<=65131||65281<=l&&l<=65376||65504<=l&&l<=65510||110592<=l&&l<=110593||127488<=l&&l<=127569||131072<=l&&l<=262141);n.exports=i,n.exports.default=i}}),wRr=ZU({"../../node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js"(r,n){"use strict";_y(),n.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}}}),IRr=ZU({"../../node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js"(r,n){"use strict";_y();var i=ARr(),l=kRr(),p=wRr(),m=g=>{if(typeof g!="string"||g.length===0||(g=i(g),g.length===0))return 0;g=g.replace(p()," ");let b=0;for(let D=0;D<g.length;D++){let I=g.codePointAt(D);I<=31||I>=127&&I<=159||I>=768&&I<=879||(I>65535&&D++,b+=l(I)?2:1)}return b};n.exports=m,n.exports.default=m}}),PRr=ZU({"../../node_modules/.pnpm/ansi-align@3.0.1/node_modules/ansi-align/index.js"(r,n){"use strict";_y();var i=IRr();function l(g,b){if(!g)return g;b=b||{};let D=b.align||"center";if(D==="left")return g;let I=b.split||`
|
|
54420
54426
|
`,R=b.pad||" ",V=D!=="right"?p:m,X=!1;Array.isArray(g)||(X=!0,g=String(g).split(I));let ue,De=0;return g=g.map(function(we){return we=String(we),ue=i(we),De=Math.max(ue,De),{str:we,width:ue}}).map(function(we){return new Array(V(De,we.width)+1).join(R)+we.str}),X?g.join(I):g}l.left=function(b){return l(b,{align:"left"})},l.center=function(b){return l(b,{align:"center"})},l.right=function(b){return l(b,{align:"right"})},n.exports=l;function p(g,b){return Math.floor((g-b)/2)}function m(g,b){return g-b}}});_y();_y();_y();_y();_y();_y();_y();var NRr=({paths:r,config:n,runtime:{path:i,fs:l}})=>({dir:i.join(...r.chunk),readFile(p){let m=i.join(...r.chunk,this.format(p));return l.existsSync(m)?l.readFileSync(m):""},getFiles(){return(l.existsSync(this.dir)?l.readDirSync(this.dir):[]).map(m=>l.readFileSync(i.join(this.dir,m)))},format(p){return i.relative(n.cwd,p).replaceAll(i.sep,"__").replace(i.extname(p),".css")},getArtifact(p,m){let g=this.format(p),b=Iet(this.readFile(p),m);return{dir:r.chunk,files:[{file:g,code:b}]}},rm(p){return l.rmFileSync(i.join(...r.chunk,this.format(p)))},empty(){return l.rmDirSync(this.dir)},get glob(){return[`${this.dir}/**/*.css`]}});_y();var b8n={cwd(){return process.cwd()},env(r){return process.env[r]},path:{join:kct,relative:fHt,dirname:dHt,extname:pHt,isAbsolute:ute,sep:cHt,abs(r,n){return ute(n)?n:kct(r,n)}},fs:{existsSync:_6.existsSync,readFileSync(r){return(0,_6.readFileSync)(r,"utf8")},glob(r){if(!r.include)return[];let n=r.exclude??[];return n.length||n.push("**/*.d.ts"),J8n.default.sync(r.include,{cwd:r.cwd,ignore:n,absolute:!0})},writeFile:_6.writeFile,writeFileSync:_6.writeFileSync,readDirSync:_6.readdirSync,rmDirSync:_6.emptyDirSync,rmFileSync:_6.removeSync,ensureDirSync(r){return(0,_6.ensureDirSync)(r)},watch(r){let{include:n,exclude:i,cwd:l,poll:p}=r,m=p||process.platform==="win32",g=H8n.default.watch(n,{usePolling:p,cwd:l,ignoreInitial:!0,ignorePermissionErrors:!0,ignored:i,awaitWriteFinish:m?{stabilityThreshold:50,pollInterval:10}:!1});return P1.debug("watch:file",`watching [${n}]`),process.once("SIGINT",async()=>{await g.close()}),g}}};process.setMaxListeners(1/0);process.on("unhandledRejection",r=>{P1.error("\u274C",r)});process.on("uncaughtException",r=>{P1.error("\u274C",r)});_y();var RRr=({paths:r,runtime:{path:n,fs:i}})=>({empty(){i.rmDirSync(n.join(...r.root))},async write(l){if(!l)return;let{dir:p=r.root,files:m}=l;return i.ensureDirSync(n.join(...p)),Promise.all(m.map(async({file:g,code:b})=>{let D=n.join(...p,g);if(b)return i.writeFile(D,b)}))}}),LRr=r=>{let n=KIn(r),i=r.config,l=b8n;i.cwd||=l.cwd();let{include:p,exclude:m,cwd:g}=i,b=()=>l.fs.glob({include:p,exclude:m,cwd:g}),D={...r,...n,runtime:b8n,hooks:r.hooks,getFiles:b,project:TLn({...r.tsconfig,getFiles:b,readFile:l.fs.readFileSync,hooks:r.hooks,parserOptions:{join:l.path.join,...n.parserOptions}})};return Object.assign(D,{chunks:NRr(D),output:RRr(D)})},MRr=[".ts",".js",".mjs",".cjs"];function FRr(){for(let r of MRr){let n=Qst(`panda.config${r}`);if(n)return n}}async function ORr(r={}){let n=xet(),{cwd:i=process.cwd(),config:l,configPath:p}=r,m=await XAn({cwd:i,file:p});l&&Object.assign(m.config,l),r.cwd&&(m.config.cwd=r.cwd);let g=await aIn(m.path,{root:i,resolveWithEmptyIfConfigNotFound:!0});if(g){m.tsconfig=g.tsconfig,m.tsconfigFile=g.tsconfigFile;let b=g.tsconfig?.compilerOptions;if(b?.paths){let D=b.baseUrl;m.tsOptions={baseUrl:D,pathMappings:HAn(b.paths,D??i)}}}return m.config.outdir??="styled-system",m.config.hooks&&n.addHooks(m.config.hooks),await n.callHook("config:resolved",m),m.config.logLevel==="debug"&&Tbn(n,{tag:"panda"}),LRr({...m,hooks:n})}_y();_y();_y();_y();_y();_y();function WRr({onlyFirst:r=!1}={}){let n=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(n,r?void 0:"g")}var GRr=WRr();function q8n(r){if(typeof r!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof r}\``);return r.replace(GRr,"")}var zRr=$He(xRr(),1),jRr=$He(ERr(),1);function m4(r,n={}){if(typeof r!="string"||r.length===0||(n={ambiguousIsNarrow:!0,...n},r=q8n(r),r.length===0))return 0;r=r.replace((0,jRr.default)()," ");let i=n.ambiguousIsNarrow?1:2,l=0;for(let p of r){let m=p.codePointAt(0);if(m<=31||m>=127&&m<=159||m>=768&&m<=879)continue;switch(zRr.default.eastAsianWidth(p)){case"F":case"W":l+=2;break;case"A":l+=i;break;default:l+=1}}return l}_y();_y();var jHt=10,S8n=(r=0)=>n=>`\x1B[${n+r}m`,x8n=(r=0)=>n=>`\x1B[${38+r};5;${n}m`,E8n=(r=0)=>(n,i,l)=>`\x1B[${38+r};2;${n};${i};${l}m`,aE={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},GDi=Object.keys(aE.modifier),VRr=Object.keys(aE.color),URr=Object.keys(aE.bgColor),zDi=[...VRr,...URr];function HRr(){let r=new Map;for(let[n,i]of Object.entries(aE)){for(let[l,p]of Object.entries(i))aE[l]={open:`\x1B[${p[0]}m`,close:`\x1B[${p[1]}m`},i[l]=aE[l],r.set(p[0],p[1]);Object.defineProperty(aE,n,{value:i,enumerable:!1})}return Object.defineProperty(aE,"codes",{value:r,enumerable:!1}),aE.color.close="\x1B[39m",aE.bgColor.close="\x1B[49m",aE.color.ansi=S8n(),aE.color.ansi256=x8n(),aE.color.ansi16m=E8n(),aE.bgColor.ansi=S8n(jHt),aE.bgColor.ansi256=x8n(jHt),aE.bgColor.ansi16m=E8n(jHt),Object.defineProperties(aE,{rgbToAnsi256:{value(n,i,l){return n===i&&i===l?n<8?16:n>248?231:Math.round((n-8)/247*24)+232:16+36*Math.round(n/255*5)+6*Math.round(i/255*5)+Math.round(l/255*5)},enumerable:!1},hexToRgb:{value(n){let i=/[a-f\d]{6}|[a-f\d]{3}/i.exec(n.toString(16));if(!i)return[0,0,0];let[l]=i;l.length===3&&(l=[...l].map(m=>m+m).join(""));let p=Number.parseInt(l,16);return[p>>16&255,p>>8&255,p&255]},enumerable:!1},hexToAnsi256:{value:n=>aE.rgbToAnsi256(...aE.hexToRgb(n)),enumerable:!1},ansi256ToAnsi:{value(n){if(n<8)return 30+n;if(n<16)return 90+(n-8);let i,l,p;if(n>=232)i=((n-232)*10+8)/255,l=i,p=i;else{n-=16;let b=n%36;i=Math.floor(n/36)/5,l=Math.floor(b/6)/5,p=b%6/5}let m=Math.max(i,l,p)*2;if(m===0)return 30;let g=30+(Math.round(p)<<2|Math.round(l)<<1|Math.round(i));return m===2&&(g+=60),g},enumerable:!1},rgbToAnsi:{value:(n,i,l)=>aE.ansi256ToAnsi(aE.rgbToAnsi256(n,i,l)),enumerable:!1},hexToAnsi:{value:n=>aE.ansi256ToAnsi(aE.hexToAnsi256(n)),enumerable:!1}}),aE}var JRr=HRr(),$U=JRr;_y();function g5(r,n=globalThis.Deno?globalThis.Deno.args:nut.default.argv){let i=r.startsWith("-")?"":r.length===1?"-":"--",l=n.indexOf(i+r),p=n.indexOf("--");return l!==-1&&(p===-1||l<p)}var{env:KD}=nut.default,eut;g5("no-color")||g5("no-colors")||g5("color=false")||g5("color=never")?eut=0:(g5("color")||g5("colors")||g5("color=true")||g5("color=always"))&&(eut=1);function qRr(){if("FORCE_COLOR"in KD)return KD.FORCE_COLOR==="true"?1:KD.FORCE_COLOR==="false"?0:KD.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(KD.FORCE_COLOR,10),3)}function KRr(r){return r===0?!1:{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3}}function XRr(r,{streamIsTTY:n,sniffFlags:i=!0}={}){let l=qRr();l!==void 0&&(eut=l);let p=i?eut:l;if(p===0)return 0;if(i){if(g5("color=16m")||g5("color=full")||g5("color=truecolor"))return 3;if(g5("color=256"))return 2}if("TF_BUILD"in KD&&"AGENT_NAME"in KD)return 1;if(r&&!n&&p===void 0)return 0;let m=p||0;if(KD.TERM==="dumb")return m;if(nut.default.platform==="win32"){let g=K8n.default.release().split(".");return Number(g[0])>=10&&Number(g[2])>=10586?Number(g[2])>=14931?3:2:1}if("CI"in KD)return"GITHUB_ACTIONS"in KD?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(g=>g in KD)||KD.CI_NAME==="codeship"?1:m;if("TEAMCITY_VERSION"in KD)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(KD.TEAMCITY_VERSION)?1:0;if(KD.COLORTERM==="truecolor"||KD.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in KD){let g=Number.parseInt((KD.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(KD.TERM_PROGRAM){case"iTerm.app":return g>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(KD.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(KD.TERM)||"COLORTERM"in KD?1:m}function D8n(r,n={}){let i=XRr(r,{streamIsTTY:r&&r.isTTY,...n});return KRr(i)}var YRr={stdout:D8n({isTTY:XHt.default.isatty(1)}),stderr:D8n({isTTY:XHt.default.isatty(2)})},QRr=YRr;_y();function $Rr(r,n,i){let l=r.indexOf(n);if(l===-1)return r;let p=n.length,m=0,g="";do g+=r.slice(m,l)+n+i,m=l+p,l=r.indexOf(n,m);while(l!==-1);return g+=r.slice(m),g}function ZRr(r,n,i,l){let p=0,m="";do{let g=r[l-1]==="\r";m+=r.slice(p,g?l-1:l)+n+(g?`\r
|
|
54421
54427
|
`:`
|