@stacksjs/stx-vscode 0.2.800 → 0.2.802
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.
|
@@ -1,13 +1,24 @@
|
|
|
1
|
-
var
|
|
2
|
-
`)n++;continue}if(
|
|
3
|
-
`)return-1;if(
|
|
4
|
-
`)s+=" ",t++;continue}if(
|
|
1
|
+
var kt=Object.create;var{getPrototypeOf:At,defineProperty:$e,getOwnPropertyNames:Rt}=Object;var _e=Object.prototype.hasOwnProperty;function Pt(e){return this[e]}var Dt,Mt,G=(e,s,t)=>{var n=e!=null&&typeof e==="object";if(n){var i=s?Dt??=new WeakMap:Mt??=new WeakMap,o=i.get(e);if(o)return o}t=e!=null?kt(At(e)):{};let r=s||!e||!e.__esModule||!_e.call(e,"default")?$e(t,"default",{value:e,enumerable:!0}):t;if(e&&typeof e==="object"||typeof e==="function"){for(let a of Rt(e))if(!_e.call(r,a))$e(r,a,{get:Pt.bind(e,a),enumerable:!0})}if(n)i.set(e,r);return r};var xt=require("node:crypto"),F=require("node:fs"),bt=require("node:os"),B=G(require("node:path"));var fe=["browserQuery","BrowserQueryBuilder","BrowserQueryError","browserAuth","configureBrowser","getBrowserConfig","createBrowserDb","createBrowserModel","isBrowser","debounce","throttle","retry","sleep","wait","delay","waitUntil","waitWhile","lazy","clamp","rand","readableSize","useActiveElement","useIntervalFn","useObjectUrl"];var xe=G(require("node:path"),1);function It(e,s){let t=e[s],n=s+1;while(n<e.length){if(e[n]==="\\"){n+=2;continue}if(e[n]===t)return n+1;n++}return e.length}function Lt(e,s){let t=s+1;while(t<e.length){if(e[t]==="\\"){t+=2;continue}if(e[t]==="`")return t+1;if(e[t]==="$"&&e[t+1]==="{"){if(t=Ce(e,t+2),t<e.length)t++;continue}t++}return e.length}function Ce(e,s){let t=1,n=s,i="{",o="";while(n<e.length){let r=e[n];if(r==="\\"){n+=2;continue}if(r==='"'||r==="'"){n=It(e,n),i=U,o="";continue}if(r==="`"){n=Lt(e,n),i=U,o="";continue}if(r==="/"&&e[n+1]==="/"){while(n<e.length&&e[n]!==`
|
|
2
|
+
`)n++;continue}if(r==="/"&&e[n+1]==="*"){n+=2;while(n<e.length&&e.slice(n,n+2)!=="*/")n++;n+=2;continue}if(r==="/"&&ke(i,o)){let a=Ae(e,n);if(a!==-1){n=a,i=U,o="";continue}}if(r==="{")t++;else if(r==="}"){if(t--,t===0)return n}if(/[\w$]/.test(r))o=/[\w$]/.test(i)?o+r:r,i=r;else if(!/\s/.test(r))i=r,o="";n++}return e.length}var Ot=new Set(["return","typeof","instanceof","in","of","new","delete","void","throw","case","do","else","yield","await"]);function ke(e,s){if(s)return Ot.has(s);return!(e===")"||e==="]"||e===U)}var U="\x00";function Ae(e,s){let t=s+1,n=!1;while(t<e.length){let i=e[t];if(i===`
|
|
3
|
+
`)return-1;if(i==="\\"){t+=2;continue}if(i==="[")n=!0;else if(i==="]")n=!1;else if(i==="/"&&!n){t++;while(t<e.length&&/[a-z]/i.test(e[t]))t++;return t}t++}return-1}function O(e){let s="",t=0,n="",i="";while(t<e.length){let o=e.slice(t,t+2);if(o==="//"){while(t<e.length&&e[t]!==`
|
|
4
|
+
`)s+=" ",t++;continue}if(o==="/*"){while(t<e.length&&e.slice(t,t+2)!=="*/")s+=e[t]===`
|
|
5
5
|
`?`
|
|
6
|
-
`:" ",t++;s+=" ",t+=2;continue}let
|
|
6
|
+
`:" ",t++;s+=" ",t+=2;continue}let r=e[t];if(r==='"'||r==="'"){let a=r;s+=" ",t++;while(t<e.length&&e[t]!==a){if(e[t]==="\\"){s+=" ",t+=2;continue}s+=e[t]===`
|
|
7
7
|
`?`
|
|
8
|
-
`:" ",t++}s+=" ",t++,n=
|
|
8
|
+
`:" ",t++}s+=" ",t++,n=U,i="";continue}if(r==="/"&&ke(n,i)){let a=Ae(e,t);if(a!==-1){s+=`/${" ".repeat(a-t-2)}/`,t=a,n=U,i="";continue}}if(r==="`"){s+=" ",t++;while(t<e.length&&e[t]!=="`"){if(e[t]==="\\"){s+=" ",t+=2;continue}if(e[t]==="$"&&e[t+1]==="{"){let a=t+2,c=Ce(e,a);if(s+=" ",s+=O(e.slice(a,c)),c<e.length)s+=" ";t=c+1;continue}s+=e[t]===`
|
|
9
9
|
`?`
|
|
10
|
-
`:" ",t++}s+=" ",t++,n=
|
|
10
|
+
`:" ",t++}s+=" ",t++,n=U,i="";continue}if(s+=r,t++,/[\w$]/.test(r))i=/[\w$]/.test(n)?i+r:r,n=r;else if(!/\s/.test(r))n=r,i=""}return s}function ne(e){let s=new Uint16Array(e.length),t=0,n=!0;for(let i=0;i<e.length;i++){let o=e[i];if(o===")"||o==="]"||o==="}")if(t===0)n=!1;else t--;if(s[i]=t,o==="("||o==="["||o==="{")t++}return{depths:s,balanced:n&&t===0}}class pe{cache=new Map;maxSize;options;sizes;bytes=0;constructor(e=100,s){this.maxSize=e,this.options=s??null,this.sizes=s?new Map:null}get byteSize(){return this.bytes}setMaxBytes(e){if(!this.options)return;this.options={...this.options,maxBytes:e};while(this.bytes>e&&this.cache.size>0){let s=this.cache.keys().next().value;if(s===void 0)break;this.delete(s)}}get(e){if(!this.cache.has(e))return;let s=this.cache.get(e);return this.cache.delete(e),this.cache.set(e,s),s}set(e,s){if(this.cache.has(e))this.delete(e);let t=this.options?this.options.sizeOf(s):0;if(this.options&&t>this.options.maxBytes)return;while(this.cache.size>0&&(this.cache.size>=this.maxSize||this.options!==null&&this.bytes+t>this.options.maxBytes)){let n=this.cache.keys().next().value;if(n===void 0)break;this.delete(n)}if(this.cache.set(e,s),this.sizes)this.sizes.set(e,t),this.bytes+=t}has(e){return this.cache.has(e)}delete(e){if(this.sizes){let s=this.sizes.get(e);if(s!==void 0)this.bytes-=s,this.sizes.delete(e)}return this.cache.delete(e)}clear(){this.cache.clear(),this.sizes?.clear(),this.bytes=0}get size(){return this.cache.size}keys(){return this.cache.keys()}values(){return this.cache.values()}}class Re{pool=[];maxPoolSize=10;fnCache=new Map;fnCacheMaxSize=200;getEvaluator(e){let s=Array.from(new Set(e)),t=s.sort().join(","),n=this.pool.find((a)=>a.context.join(",")===t);if(n)return n.func;let i=this.fnCache,o=this.fnCacheMaxSize,r=(...a)=>(c)=>{try{let u=`${t}:${c}`,f=i.get(u);if(!f){if(i.size>=o){let y=i.keys().next().value;if(y)i.delete(y)}f=Function(...s,`
|
|
11
|
+
'use strict';
|
|
12
|
+
try {
|
|
13
|
+
return ${c};
|
|
14
|
+
}
|
|
15
|
+
catch (e) {
|
|
16
|
+
if (e instanceof ReferenceError || e instanceof TypeError) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
throw e;
|
|
20
|
+
}
|
|
21
|
+
`),i.set(u,f)}return f(...a)}catch{return}};if(this.pool.length<this.maxPoolSize)this.pool.push({func:r,context:s.slice()});return r}clear(){this.pool.length=0,this.fnCache.clear()}}var Rn=new Re;class Pe{metrics=new Map;budgets=new Map;violations=[];maxViolations=100;violationHandlers=[];enabled=!0;setEnabled(e){this.enabled=e}isEnabled(){return this.enabled}setBudget(e,s){this.budgets.set(e,{warnThreshold:0.8,action:"warn",...s})}setBudgets(e){for(let[s,t]of Object.entries(e))this.setBudget(s,t)}removeBudget(e){this.budgets.delete(e)}getBudgets(){let e={};for(let[s,t]of this.budgets.entries())e[s]=t;return e}onViolation(e){this.violationHandlers.push(e)}offViolation(e){let s=this.violationHandlers.indexOf(e);if(s!==-1)this.violationHandlers.splice(s,1)}time(e,s){if(!this.enabled)return s();let t=performance.now(),n=s(),i=performance.now()-t;return this.recordTime(e,i),this.checkBudget(e,i),n}async timeAsync(e,s){if(!this.enabled)return s();let t=performance.now(),n=await s(),i=performance.now()-t;return this.recordTime(e,i),this.checkBudget(e,i),n}checkBudget(e,s){let t=this.budgets.get(e);if(!t)return;let n=s/t.maxTime*100,i=t.warnThreshold!==void 0?s>=t.maxTime*t.warnThreshold&&s<t.maxTime:!1,o=s>=t.maxTime;if(!i&&!o)return;let r={label:e,actualTime:s,budgetTime:t.maxTime,exceedancePercent:n,timestamp:new Date,isWarning:i};this.violations.push(r);while(this.violations.length>this.maxViolations)this.violations.shift();for(let c of this.violationHandlers)try{c(r)}catch{}let a=i?`[Performance Warning] "${e}" took ${s.toFixed(2)}ms (${n.toFixed(1)}% of ${t.maxTime}ms budget)`:`[Performance Budget Exceeded] "${e}" took ${s.toFixed(2)}ms (exceeded ${t.maxTime}ms budget by ${(n-100).toFixed(1)}%)`;switch(t.action){case"log":console.log(a);break;case"warn":console.warn(a);break;case"error":console.error(a);break;case"throw":if(o)throw Error(a);else console.warn(a);break}}recordTime(e,s){let t=this.metrics.get(e);if(t)t.count++,t.totalTime+=s,t.maxTime=Math.max(t.maxTime,s),t.minTime=Math.min(t.minTime,s);else this.metrics.set(e,{count:1,totalTime:s,maxTime:s,minTime:s})}getStats(e){if(e){let t=this.metrics.get(e);if(!t)return{};let n=this.budgets.get(e);return{count:t.count,avgTime:t.totalTime/t.count,totalTime:t.totalTime,maxTime:t.maxTime,minTime:t.minTime,budget:n?.maxTime,budgetUtilization:n?t.totalTime/t.count/n.maxTime*100:void 0}}let s={};for(let[t,n]of this.metrics.entries()){let i=this.budgets.get(t);s[t]={count:n.count,avgTime:n.totalTime/n.count,totalTime:n.totalTime,maxTime:n.maxTime,minTime:n.minTime,budget:i?.maxTime,budgetUtilization:i?n.totalTime/n.count/i.maxTime*100:void 0}}return s}getViolations(e){if(e)return this.violations.filter((s)=>s.label===e);return[...this.violations]}getViolationStats(){let e={},s=0,t=0;for(let n of this.violations)if(e[n.label]=(e[n.label]||0)+1,n.isWarning)s++;else t++;return{total:this.violations.length,byLabel:e,warnings:s,errors:t}}clear(){this.metrics.clear()}clearViolations(){this.violations.length=0}clearBudgets(){this.budgets.clear()}reset(){this.clear(),this.clearViolations(),this.clearBudgets(),this.violationHandlers.length=0}}var de=null;function Bt(){if(!de)de=new Pe;return de}var Pn=new Proxy({},{get(e,s){return Bt()[s]}});var Ln=new pe(32,{maxBytes:2097152,sizeOf:(e)=>e.code.length*4});function De(e){let s=e.indexOf(" as ");if(s!==-1){let o=e.slice(0,s).trim(),r=e.slice(s+4).trim();return o&&r?{arrayExpr:o,itemVar:r}:null}let t=/^\s*(.+?)\s+in\s+([\s\S]+)$/.exec(e);if(!t)return null;let n=t[1].trim().replace(/^\(([\s\S]*)\)$/,"$1").trim(),i=t[2].trim();return n&&i?{arrayExpr:i,itemVar:n}:null}var X=["batch","cachedQuery","clearServerData","computed","configureFetch","defineEmits","defineExpose","definePageMeta","defineProps","defineSlots","defineStore","derived","effect","flushKeptState","forgetKeptState","goBack","goForward","inject","invalidateRoute","isDerived","isSignal","keptState","memo","navigate","nextTick","onBeforeMount","onBeforeUnmount","onDestroy","onMount","onMounted","onUnmounted","peek","provide","reactive","ref","refDebounced","refresh","registerStoresClient","setKeptScope","setRouteParams","sharedRequest","state","untrack","useAsync","useBroadcastStream","useClickOutside","useColorMode","useCookie","useCounter","useDark","useDebounce","useDebounceFn","useDebouncedValue","useDocumentVisibility","useEventListener","useFetch","useFocus","useHead","useId","useInterval","useLocalStorage","useMediaQuery","useModel","useMutation","useNativeDesktop","useOptimistic","usePreferredContrast","usePreferredDark","usePreferredLight","usePreferredReducedMotion","useQuery","useReactiveProp","useRef","useRoute","useRouteParam","useRouteParams","useScrollLock","useSearchParams","useSeoMeta","useSessionStorage","useSlots","useStore","useThrottle","useThrottleFn","useTimeout","useTimeoutFn","useToggle","useWebSocket","watch","watchEffect","watchMultiple","withDefaults"];var jt=["defineEmits","defineExpose","definePageMeta","defineProps","defineSlots","withDefaults"];var Vn=X.filter((e)=>!jt.includes(e));var Nt=["x-text","x-html","x-model","x-show","x-if","x-for","x-cloak","x-ref","x-data","x-bind","x-class","x-style","x-tooltip","x-tooltip-position"],zt=["x-init","x-transition","x-effect","x-on"],Fn=[...Nt,...zt];var se=G(require("node:fs"),1),Z=G(require("node:path"),1);function Me(e,s,t,n){let i=0;for(let o=s;o<e.length;o++)if(e[o]===t)i++;else if(e[o]===n&&!(n===">"&&e[o-1]==="=")){if(--i===0)return o}return-1}function Vt(e){let s=O(e),t=0,n=0,i=[];for(let o=0;o<s.length;o++)if("([{".includes(s[o]))t++;else if(")]}".includes(s[o]))t--;else if(s[o]===","&&t===0)i.push(e.slice(n,o).trim()),n=o+1;return i.push(e.slice(n).trim()),i}function ge(e,s){let t=O(e),n=new RegExp(`\\b(?:${s.map((i)=>i.replace(/[$]/g,"\\$&")).join("|")})\\s*(?=[<(])`,"g");for(let i of t.matchAll(n)){let o=i.index+i[0].length,r="";if(t[o]==="<"){let c=Me(t,o,"<",">");if(c<0)continue;r=e.slice(o+1,c),o=c+1;while(/\s/.test(t[o]||"")&&o<t.length)o++}if(t[o]!=="(")continue;let a=Me(t,o,"(",")");if(a>=0)return{type:r,args:Vt(e.slice(o+1,a))}}return null}var Ie=`
|
|
11
22
|
type __StxCtor<T> = T extends StringConstructor ? string : T extends NumberConstructor ? number : T extends BooleanConstructor ? boolean : T extends ArrayConstructor ? unknown[] : T extends ObjectConstructor ? object : T extends readonly unknown[] ? __StxCtor<T[number]> : T extends abstract new (...args: any[]) => infer V ? V : unknown;
|
|
12
23
|
type __StxWiden<T> = T extends string ? string : T extends number ? number : T extends boolean ? boolean : T;
|
|
13
24
|
type __StxOption<T> = T extends { type: infer C } ? __StxCtor<C> : T extends { default: infer D } ? D extends (...args: any[]) => infer V ? V : __StxWiden<D> : __StxCtor<T>;
|
|
@@ -15,39 +26,39 @@ type __StxRequired<O> = { [K in keyof O]-?: O[K] extends { required: true } ? K
|
|
|
15
26
|
type __StxDefaulted<O> = { [K in keyof O]-?: O[K] extends { default: unknown } ? K : never }[keyof O];
|
|
16
27
|
type __StxOptions<O> = { [K in Exclude<__StxRequired<O>, __StxDefaulted<O>>]: __StxOption<O[K]> } & { [K in Exclude<keyof O, Exclude<__StxRequired<O>, __StxDefaulted<O>>>]?: __StxOption<O[K]> };
|
|
17
28
|
type __StxDefaults<P, K> = Omit<P, Extract<keyof P, K>> & Partial<Pick<P, Extract<keyof P, K>>>;
|
|
18
|
-
`;function
|
|
19
|
-
`)}),
|
|
29
|
+
`;function Le(e,s){let t=[],n={defineProps:["defineProps"],defineEmits:["defineEmits"],withDefaults:["withDefaults"]},i=O(e),o=e.replace(/\bimport\s+(?:type\s+)?(\{[^}]*\}|\*\s+as\s+[\w$]+|[\w$]+)\s+from\s*(['"])([^'"]+)\2\s*;?/g,(b,C,w,m,S)=>{if(i.slice(S,S+6)!=="import")return b;if(m.endsWith(".stx"))return"";let v=`${s}Import${t.length}`;if(t.push(`import * as ${v} from ${JSON.stringify(m)};`),C.startsWith("*"))return`import ${C.replace(/^\*\s+as\s+/,"")} = ${v};`;if(!C.startsWith("{"))return`import ${C} = ${v}.default;`;return C.slice(1,-1).split(",").map((g)=>{let[T,k=T]=g.trim().replace(/^type\s+/,"").split(/\s+as\s+/);if(!T)return"";if(/^(?:stx|@stacksjs\/stx)(?:\/|$)/.test(m)&&T in n)n[T].push(k);return`import ${k} = ${v}.${T};`}).join(`
|
|
30
|
+
`)}),r=ge(e,n.defineProps),a=ge(e,n.defineEmits),c=ge(e,n.withDefaults);if(!r&&!a)return{declarations:"",props:null,events:null};let u=[],f=null,y=null;if(r){u.push(`const __options = (${r.args[0]||"{}"}) as const;`),u.push(`const __defaults = (${c?.args[1]||"{}"});`);let b=r.type||"__StxOptions<typeof __options>";u.push(`export type __StxProps = __StxDefaults<${b}, keyof typeof __defaults | __StxDefaulted<typeof __options>>;`),f=`${s}.__StxProps`}if(a)u.push(`const __events = (${a.args[0]||"[]"}) as const;`),u.push(`export type __StxEvents = ${a.type||"Record<(typeof __events)[number], any[]>"};`),y=`${s}.__StxEvents`;return{declarations:`${t.join(`
|
|
20
31
|
`)}
|
|
21
32
|
namespace ${s} {
|
|
22
|
-
${
|
|
33
|
+
${o}
|
|
23
34
|
${u.join(`
|
|
24
35
|
`)}
|
|
25
|
-
}`,props:
|
|
26
|
-
`).length,column:
|
|
27
|
-
`)}},C=(
|
|
28
|
-
`):"",checks:n,events:
|
|
29
|
-
`,s-1)+1;return s-t+1}function oe(e){let s=e.split(""),t=(
|
|
30
|
-
`)s[
|
|
31
|
-
`),
|
|
32
|
-
`)),
|
|
33
|
-
${
|
|
36
|
+
}`,props:f,events:y}}var Q=G(require("node:fs"),1),P=G(require("node:path"),1);function Be(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z])/g,"$1-$2").toLowerCase()}var Oe=new Map;function je(e,s=!0){let t=Oe.get(e);if(s&&t)return t;let n=new Map,i=[P.default.join(e,"src"),P.default.join(e,"dist"),e];function o(r,a){if(a>6)return;let c;try{c=Q.default.readdirSync(r,{withFileTypes:!0})}catch{return}for(let u of c){let f=P.default.join(r,u.name);if(u.isDirectory()){if(u.name==="node_modules"||u.name.startsWith("."))continue;o(f,a+1)}else if(u.isFile()&&u.name.endsWith(".stx")){let y=u.name.slice(0,-4);if(!n.has(y))n.set(y,f);let b=y.toLowerCase();if(!n.has(b))n.set(b,f);let C=Be(y);if(!n.has(C))n.set(C,f)}}}for(let r of i)if(o(r,0),n.size>0)break;if(s)Oe.set(e,n);return n}function Ne(e,s){if(e.startsWith(".")||e.startsWith("/"))return null;let t=s;while(!0){let n=P.default.join(t,"node_modules",e);try{if(Q.default.statSync(n).isDirectory())return n}catch{}let i=P.default.dirname(t);if(i===t)return null;t=i}}function ze(e,s,t={}){return[P.default.resolve(P.default.dirname(s),`${e}.stx`),P.default.resolve(P.default.dirname(s),e),P.default.resolve(t.componentsDir||"components",`${e}.stx`),P.default.resolve(t.componentsDir||"components",e),e.endsWith(".stx")?e:`${e}.stx`]}function Ve(e){let s=e.endsWith(".stx")?e.slice(0,-4):e,t=s.split("-").map((i)=>i.charAt(0).toUpperCase()+i.slice(1)).join(""),n=Be(s);return[s,t,n]}function Ft(e,s){let[t,n,i]=Ve(e);for(let o of[t,t.toLowerCase(),n,i]){let r=s?.__importedComponents?.get(o);if(r!==void 0)return r}}function*Kt(e,s,t={},n){let i=Ve(e);if(i[0].startsWith("./")||i[0].startsWith("../")){yield P.default.resolve(P.default.dirname(s),`${i[0]}.stx`);return}let o=[...new Set(i.map((c)=>`${c}.stx`))],r=t.projectRoot||process.cwd(),a=[...n?.__originalFilePath?[P.default.join(P.default.dirname(n.__originalFilePath),"components")]:[],...t.componentsDir?[t.componentsDir]:[],P.default.join(P.default.dirname(s),"components"),P.default.resolve(r,"src/components"),P.default.resolve(r,"components"),P.default.resolve("/home/runner/work/stx/stx/packages/stx/src","components")];for(let c of new Set(a)){for(let u of o)yield P.default.join(c,u);try{for(let u of Q.default.readdirSync(c,{withFileTypes:!0}))if(u.isDirectory())for(let f of o)yield P.default.join(c,u.name,f)}catch{}}}function Fe(e,s,t={},n){let i=Ft(e,n);if(i!==void 0)return i;for(let o of Kt(e,s,t,n))try{if(Q.default.statSync(o,{throwIfNoEntry:!1})?.isFile())return o}catch{}return null}var Ke=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","component","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","path","circle","rect","line","polygon","polyline","ellipse","text","tspan","textPath","g","defs","use","symbol","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","foreignObject","animate","animateMotion","animateTransform","set","mpath","desc","metadata","switch","view"]);function We(e){if(e.includes("-")||e==="component")return!1;if(/^[A-Z]/.test(e))return!/[a-z]/.test(e)&&[...Ke].some((s)=>s.toLowerCase()===e.toLowerCase());return Ke.has(e)||/[A-Z]/.test(e)}function*Wt(e){let s=/<([A-Za-z][\w.-]*)(?=[\s/>])/g,t;while(t=s.exec(e)){let n=s.lastIndex,i=[];while(n<e.length){while(/\s/.test(e[n]||""))n++;if(e[n]===">"||e.slice(n,n+2)==="/>"){n+=e[n]===">"?1:2;break}let o=/^[^\s=/>]+/.exec(e.slice(n))?.[0];if(!o){n++;continue}let r=n;n+=o.length;while(/\s/.test(e[n]||""))n++;if(e[n]!=="="){i.push({name:o,value:!0,offset:r,braced:!1});continue}n++;while(/\s/.test(e[n]||""))n++;let a=e[n],c=a==="{",u=a==='"'||a==="'";if(u||c)n++;let f=n;if(c){let y=O(e.slice(n)),b=1,C=0;for(;C<y.length;C++){if(y[C]==="{")b++;if(y[C]==="}"&&--b===0)break}n+=C}else if(u)while(n<e.length&&e[n]!==a)n++;else while(n<e.length&&!/[\s/>]/.test(e[n]))n++;if(i.push({name:o,value:e.slice(f,n),offset:f,braced:c}),u||c)n++}s.lastIndex=n,yield{name:t[1],offset:t.index,attributes:i}}}function He(e,s,t){let n=[],i=[Ie,"type __StxAssignedValue<T> = T extends { readonly _isSignal: true } | { readonly _isDerived: true } ? T extends () => infer V ? V : T : T;","type __StxProp<P, K> = K extends keyof P ? P[K] : unknown;",'type __StxStaticProp<P, K> = __StxProp<P, K> extends infer T ? boolean extends T ? T | "true" | "false" : T : never;','type __StxEvent<E, K> = K extends keyof E ? E[K] extends readonly unknown[] ? number extends E[K]["length"] ? E[K][0] : Exclude<E[K]["length"], 0 | 1> extends never ? E[K][0] : E[K] : E[K] : any;'],o=new Map,r=new Map,a=new Map,c=t.scriptCode(e,t.filePath),u=O(c);for(let w of c.matchAll(/\bimport\s+(\{[^}]+\}|[\w$]+)\s+from\s*['"]([^'"]+)['"]/g)){if(u.slice(w.index,w.index+6)!=="import")continue;let m=w[2],S=Z.default.isAbsolute(m)||m.startsWith(".")?Z.default.resolve(Z.default.dirname(t.filePath),m):Ne(m,Z.default.dirname(t.filePath));if(!S)continue;let v=S.endsWith(".stx")?S:se.default.existsSync(`${S}.stx`)?`${S}.stx`:void 0,g=v?null:je(S,!1),T=w[1].startsWith("{")?w[1].slice(1,-1).split(","):[w[1]];for(let k of T){let[E,A=E]=k.trim().split(/\s+as\s+/),M=v||g?.get(E)||g?.get(E.toLowerCase());if(M)a.set(A,M),a.set(A.toLowerCase(),M),a.set(A.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),M)}}for(let w of s.matchAll(/@import\s*\(([^)]+)\)/g))for(let m of w[1].matchAll(/['"]([^'"]+)['"]/g)){let S=ze(m[1],t.filePath,t).find((v)=>se.default.statSync(v,{throwIfNoEntry:!1})?.isFile());if(S)a.set(Z.default.basename(m[1]).replace(/\.stx$/,""),S)}let f={__importedComponents:a},y=new Map,b=(w,m,S)=>{let v=e.slice(0,w);return{code:m,offset:w,attribute:S,anchor:!0,kind:"directive",line:v.split(`
|
|
37
|
+
`).length,column:w-v.lastIndexOf(`
|
|
38
|
+
`)}},C=(w,m,S)=>n.push({expression:w,statement:{text:m+w.code+S,prefixLength:m.length}});for(let w of Wt(s)){if(We(w.name)||w.name==="component")continue;let m=Fe(w.name,t.filePath,t,f);if(!m)continue;let S=y.get(m);if(!S){let g;try{g=t.readComponent?t.readComponent(m):se.default.readFileSync(m,"utf8")}catch{continue}if(g===void 0)continue;r.set(m,g),S=Le(t.scriptCode(g,m),`__StxComponent${y.size}`),y.set(m,S),i.push(S.declarations)}let v=[];for(let g of w.attributes){let{name:T,offset:k}=g,E=g.value===!0?"true":g.value;if(T.startsWith("@")||T.startsWith("v-on:")){if(S.events&&g.value!==!0)o.set(k,`__StxEvent<${S.events}, ${JSON.stringify(T.replace(/^@|^v-on:/,"").split(".")[0])}>`);continue}let A=/^v-model(?::([\w-]+))?(?:\.[\w-]+)*$/.exec(T);if(T.startsWith("v-")&&!T.startsWith("v-bind:")&&!A)continue;if(/^(?:x-|:)(?:if|for|show|key|else)(?:$|[.:-])/.test(T))continue;let M=(A?A[1]||"modelValue":T.replace(/^:|^v-bind:/,"")).replace(/-([a-z])/g,(z,V)=>V.toUpperCase());if(v.push(M),!S.props)continue;let j=T.startsWith(":")||T.startsWith("v-bind:")||!!A||g.braced,R=j?E:g.value!==!0?JSON.stringify(E):"true",D=!j&&g.value!==!0&&(E==="true"||E==="false");C(b(k,R,T),";void ((",`) satisfies ${D?"__StxStaticProp":"__StxProp"}<${S.props}, ${JSON.stringify(M)}>);`)}if(S.props){let g=[...new Set(v)].map((k)=>`${JSON.stringify(k)}: undefined as any`).join(", "),T=b(w.offset,`<${w.name}>`);n.push({expression:T,statement:{text:`;void ({ ${g} } satisfies ${S.props} & Record<string, unknown>);`,prefixLength:0}})}}return{declarations:y.size?i.join(`
|
|
39
|
+
`):"",checks:n,events:o,dependencies:r}}function Ge(e){if(!e.includes("#")&&!e.includes("v-slot:")&&!e.includes("data-stx-slot-binding"))return[];let s=[],t=[],n=/<!--[\s\S]*?-->|<script\b(?:"[^"]*"|'[^']*'|[^'">])*>[\s\S]*?<\/script\s*>|<style\b(?:"[^"]*"|'[^']*'|[^'">])*>[\s\S]*?<\/style\s*>|<\/?[a-z][\w:-]*\b(?:"[^"]*"|'[^']*'|[^'">])*>/gi;for(let i of e.matchAll(n)){let o=i[0];if(/^<\/template\s*>$/i.test(o)){let r=t.pop();if(r)r.end=i.index}else if(/^<template\b/i.test(o)&&!/\/\s*>$/.test(o)){let a=[...o.slice(9).matchAll(/([^\s=/>]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+)))?/g)].find((f)=>/^(?:#[\w-]+|v-slot:[\w-]+|data-stx-slot-binding)$/i.test(f[1])),c=(a?.[2]??a?.[3])?.trim();if(c&&a?.[1]==="data-stx-slot-binding")try{c=decodeURIComponent(c)}catch{c=void 0}let u=c?{start:i.index+o.length,end:e.length,binding:c}:void 0;if(t.push(u),u)s.push(u)}}return s}var Ue=/<script(\s[^>]*)?>([\s\S]*?)<\/script>/gi;function Ht(e){let s=(t)=>t.replace(/[^\n]/g," ");return e.replace(/<!--[\s\S]*?-->/g,s).replace(/\{\{--[\s\S]*?--\}\}/g,s)}function re(e){let s=[],t=Ht(e);Ue.lastIndex=0;let n;while((n=Ue.exec(t))!==null){let i=(n[1]||"").trim(),o=(n[0].match(/^<script(?:\s[^>]*)?>/i)?.[0]??"<script>").length,r=(n[0].match(/<\/script\s*>$/i)?.[0]??"</script>").length,a=n.index+o,c=n.index+n[0].length-r,u=e.slice(a,c);if(/\bsrc\s*=/.test(i))continue;let f=i.match(/\btype\s*=\s*["']([^"']+)["']/i);if(f&&!/^(?:module|text\/(?:javascript|typescript))$/i.test(f[1]))continue;let y=/\bserver\b/.test(i)?"server":/\bclient\b/.test(i)?"client":"plain",b=J(e,a);s.push({kind:y,code:u,startLine:b,startColumn:ee(e,a),offset:a,attrs:i})}return s}function J(e,s){let t=1;for(let n=0;n<s&&n<e.length;n++)if(e.charCodeAt(n)===10)t++;return t}function ee(e,s){let t=e.lastIndexOf(`
|
|
40
|
+
`,s-1)+1;return s-t+1}function oe(e){let s=e.split(""),t=(i,o)=>{for(let r=i;r<o&&r<s.length;r++)if(s[r]!==`
|
|
41
|
+
`)s[r]=" "},n=[/<script(?:\s[^>]*)?>[\s\S]*?<\/script>/gi,/<style(?:\s[^>]*)?>[\s\S]*?<\/style>/gi,/<!--[\s\S]*?-->/g,/\{\{--[\s\S]*?--\}\}/g,/@verbatim\b[\s\S]*?@endverbatim\b/g];for(let i of n){i.lastIndex=0;let o;while((o=i.exec(e))!==null)t(o.index,o.index+o[0].length)}return s.join("")}function Je(e){let s=0,t="";for(let n=0;n<e.length;n++){let i=e[n];if(t){if(i==="\\"){n++;continue}if(i===t)t="";continue}if(i==='"'||i==="'"||i==="`"){t=i;continue}if(i==="("||i==="["||i==="{"){s++;continue}if(i===")"||i==="]"||i==="}"){s--;continue}if(i==="|"&&s===0){if(e[n+1]==="|"){n++;continue}if(e[n-1]==="|")continue;return e.slice(0,n)}}return e}var et=new Set([":for","x-for","v-for"]),ae=/(?:^|\s)((?::|x-|v-|@)[\w.:-]+)\s*=\s*(["'])([\s\S]*?)\2/g,he="__stx_interpolated",Xe="__StxElement",tt="__StxTemplateValue",Gt=`type ${tt}<T> = T extends { readonly _isSignal: true } | { readonly _isDerived: true } ? (T extends () => infer V ? T & V : T) : T`;function Ze(e){return e.replace(/\{\{[\s\S]*?\}\}/g,he).replace(/\{!![\s\S]*?!!\}/g,he)}function Ut(e,s,t="0"){let n=`__stxScript${t}`;while((e+s).includes(n))n+="_";let i=new Map,o=[],r=[],a=O(e),c=ce(e),u=[],f=0;for(let S of a.matchAll(/\{\{([\s\S]*?)\}\}|\{!!([\s\S]*?)!!\}/g)){let v=S.index,g=e.slice(v,v+S[0].length),T=S[1]!==void 0,k=g.slice(T?2:3,T?-2:-3),E=r.length,A=q(c,v),M=q(c,v+(T?2:3));r.push({code:Je(k),...M});let j=`${n}_${E}`,R=g.split(`
|
|
42
|
+
`),D=R[0].length;R[0]=j+" ".repeat(Math.max(0,D-j.length));for(let N=1;N<R.length;N++)R[N]=R[N].replace(/[^\r]/g," ");let z=i.get(A.line)??[],V=z.at(-1),H=A.column+(V?V.generatedEnd-V.sourceEnd:0);z.push({sourceStart:A.column,sourceEnd:A.column+D,generatedStart:H,generatedEnd:H+R[0].length}),i.set(A.line,z),u.push(e.slice(f,v),R.join(`
|
|
43
|
+
`)),f=v+g.length}u.push(e.slice(f));let y=u.join("");if(!r.length)return{code:y,columns:i,declarations:o};let{imports:b,body:C}=tn(s),w=[],m=0;for(let S of b.split(/\n(?=import\b)/)){if(!S.trim())continue;let v=/^import\s+(?:type\s+)?([\s\S]+?)\s+from\s*(['"][^'"]+['"])/.exec(S);if(!v){o.push({text:S});continue}let g=`${n}Module${m++}`;o.push({text:`import * as ${g} from ${v[2]}`});let T=v[1],k=/\{([\s\S]*?)\}/.exec(T);for(let j of k?.[1].split(",")??[]){let[R,D=R]=j.trim().replace(/^type\s+/,"").split(/\s+as\s+/);if(R==="default")w.push(`const ${D} = ${g}.default; type ${D} = import(${v[2]}).default`);else if(R)w.push(`import ${D} = ${g}.${R}`)}let E=T.replace(/\{[\s\S]*?\}/,""),A=/\*\s+as\s+(\w+)/.exec(E);if(A)w.push(`import ${A[1]} = ${g}`);let M=/^\s*([\w$]+)/.exec(E)?.[1];if(M)w.push(`const ${M} = ${g}.default; type ${M} = import(${v[2]}).default`)}o.push({text:`namespace ${n}Scope {
|
|
44
|
+
${w.join(`
|
|
34
45
|
`)}
|
|
35
46
|
export async function read() {
|
|
36
|
-
${
|
|
37
|
-
return {`});for(let[S,
|
|
47
|
+
${st(C).replace(/^[ \t]*export[ \t]+(?=(?:const|let|var|function|async|class|interface|type)\b)/gm,"")}
|
|
48
|
+
return {`});for(let[S,v]of r.entries())o.push({text:`value${S}: (`}),o.push({text:v.code,origin:{line:v.line,column:v.column}}),o.push({text:"),"});o.push({text:`}
|
|
38
49
|
}
|
|
39
|
-
}`});for(let S=0;S<
|
|
50
|
+
}`});for(let S=0;S<r.length;S++)o.push({text:`declare var ${n}_${S}: Awaited<ReturnType<typeof ${n}Scope.read>>['value${S}']`});return{code:y,columns:i,declarations:o}}function Xt(e,s){let t=0;for(let n of e){if(s<n.generatedStart)break;if(s<n.generatedEnd)return n.sourceStart+Math.min(s-n.generatedStart,n.sourceEnd-n.sourceStart);t=n.sourceEnd-n.generatedEnd}return s+t}function nt(e,s){let t=0;for(let n of e){if(s<n.sourceStart)break;if(s<n.sourceEnd)return n.generatedStart+Math.min(s-n.sourceStart,n.generatedEnd-n.generatedStart);t=n.generatedEnd-n.sourceEnd}return s+t}var Zt=["foreach","endforeach","forelse","endforelse","for","endfor","while","endwhile","empty","if","elseif","else","endif","unless","endunless","isset","endisset","switch","case","default","endswitch","auth","endauth","guest","endguest","env","endenv","once","endonce","break","continue"],qt=new RegExp(String.raw`^[ \t]*@(?:${Zt.join("|")})\b[ \t]*(\([^\n)]*\))?[ \t]*$`,"gm");function st(e){return e.replace(qt,(s)=>s.replace(/[^\n]/g," "))}var qe=new Set(["x-cloak","x-ref","x-transition","x-teleport","v-slot","x-hydrate",":key","x-tooltip","x-tooltip-position"]);function Yt(e){let s=oe(e),t=[],n=/(@?)\{\{([\s\S]*?)\}\}|(@?)\{!!([\s\S]*?)!!\}/g,i;while((i=n.exec(s))!==null){if(i[1]||i[3])continue;let a=i[2]??i[4]??"",c=i[2]!==void 0?2:3,u=Je(a);if(!u.trim())continue;let f=i.index+c+(u.length-u.trimStart().length);t.push({code:u.trim(),line:J(s,f),column:ee(s,f),offset:f,kind:"interpolation"})}let o=/@(if|elseif|else\s+if|unless)\b\s*\(/g;while((i=o.exec(s))!==null){let r=i.index+i[0].length-1,a=0,c=r;for(;c<s.length;c++){let b=s[c];if(b==="(")a++;else if(b===")"){if(a--,a===0)break}}if(a!==0)continue;let u=s.slice(r+1,c),f=u.trim();if(o.lastIndex=c+1,!f)continue;let y=r+1+(u.length-u.trimStart().length);t.push({code:f,line:J(s,y),column:ee(s,y),offset:i.index,kind:"condition"})}ae.lastIndex=0;while((i=ae.exec(s))!==null){let r=i[1],a=i[3]??"",c=r.replace(/\..*$/,"").replace(/^([^:].*?):.*$/,"$1");if(qe.has(c)||qe.has(r))continue;if(!a.trim())continue;let u=i.index+i[0].indexOf(i[2],i[0].indexOf(r)+r.length)+1;if(et.has(c)){let y=a.match(/\s+(?:in|of)\s+/);if(!y||y.index===void 0)continue;let b=a.slice(y.index+y[0].length),C=y.index+y[0].length+(b.length-b.trimStart().length);t.push({code:Ze(b.trim()),line:J(s,u+C),column:ee(s,u+C),offset:u+C,kind:"directive",attribute:c});continue}let f=a.length-a.trimStart().length;t.push({code:Ze(a.trim()),line:J(s,u+f),column:ee(s,u+f),offset:u+f,kind:"directive",attribute:c})}return t.sort((r,a)=>r.line-a.line||r.column-a.column),t}var Qt=2000;function Jt(e,s){let t=0,n=Math.min(e.length,s+Qt);for(let i=s;i<n;i++){let o=e[i];if(o==="(")t++;else if(o===")"){if(t--,t===0)return e.slice(s+1,i)}}return null}function en(e){let s=new Map,t=(a,c)=>{let u=a.split(/[,[\]{}()\s]+/).filter(Boolean);for(let f of u){let y=f.replace(/^\.\.\./,"").trim();if(!/^\$?[A-Z_$][\w$]*$/i.test(y))continue;let b=u.length===1?c:void 0,C=s.get(y);if(!C)s.set(y,{name:y,iterable:b});else if(C.iterable!==b)C.iterable=void 0}},n=/^\$?[A-Z_$][\w$]*$/i,i=(a)=>{let c=a.trim();return n.test(c)?c:void 0};for(let a of e.matchAll(/@for(?:each|else)\s*\(/g)){let c=Jt(e,a.index+a[0].length-1);if(c===null)continue;let u=De(c);if(!u)continue;t(u.itemVar.replace(/=>/g," "),i(u.arrayExpr))}for(let a of e.matchAll(/@for\s*\(\s*(?:(?:let|const|var)\s+)?([\w$]+|\[[^\]]*\]|\{[^}]*\})\s+(of|in)\s+([^)]*)/g))t(a[1],a[2]==="of"?i(a[3]):void 0);for(let a of e.matchAll(/@for\s*\(\s*(?:let|const|var)\s+([\w$]+)\s*[=;]/g))t(a[1]);let o=oe(e);ae.lastIndex=0;let r;while((r=ae.exec(o))!==null){let a=r[1].replace(/\..*$/,"");if(!et.has(a))continue;let c=r[3].match(/\s+(?:in|of)\s+/);if(!c||c.index===void 0)continue;t(r[3].slice(0,c.index),i(r[3].slice(c.index+c[0].length)))}for(let a of e.matchAll(/@(?:php|js|ts)\b([\s\S]*?)@end(?:php|js|ts)\b/g))for(let c of a[1].matchAll(/\b(?:const|let|var|function|class)\s+([\w$]+)/g))t(c[1]);return[...s.values()].sort((a,c)=>a.name.localeCompare(c.name))}function ie(e){let s=new Set;for(let t of e.matchAll(/^\s*(?:export\s+)?(?:const|let|var)\s+([\w$]+)/gm))s.add(t[1]);for(let t of e.matchAll(/^\s*(?:export\s+)?(?:async\s+)?function\s*\*?\s*([\w$]+)/gm))s.add(t[1]);for(let t of e.matchAll(/^\s*(?:export\s+)?class\s+([\w$]+)/gm))s.add(t[1]);for(let t of e.matchAll(/^\s*(?:export\s+)?(?:const|let|var)\s*[[{]([^\]}]*)[\]}]/gm))for(let n of t[1].split(",")){let i=n.split(":").pop().split("=")[0].replace(/^\.\.\./,"").trim();if(/^[A-Z_$][\w$]*$/i.test(i))s.add(i)}return[...s].sort()}var Ye=["params","query","cookies","host","ip","setResponseStatus","setResponseHeader","notFound","request","url","definePageMeta","defineClientPayload","defineStore","props","$props"];function tn(e){let s=/^[ \t]*import\b[\s\S]*?(?:from\s*['"][^'"]*['"]|['"][^'"]*['"])[ \t]*;?[ \t]*$/gm,t=[],n=e.replace(s,(i)=>(t.push(i.trim()),i.split(`
|
|
40
51
|
`).map(()=>"").join(`
|
|
41
52
|
`)));return{imports:t.join(`
|
|
42
|
-
`),body:n}}var
|
|
43
|
-
`),
|
|
44
|
-
`),u=s.filePath&&s.templateExpressions!==!1?
|
|
45
|
-
`)}):void 0,
|
|
46
|
-
`);g.forEach((
|
|
47
|
-
`).entries())if(
|
|
48
|
-
`))b(m);let
|
|
49
|
-
`),lineMap:
|
|
50
|
-
`).length;t.push({line:C,column:
|
|
51
|
-
`)+1)+1,offset:
|
|
53
|
+
`),body:n}}var Qe=["$env","$user","$slot","$slots","$attrs","$props","$page","$route","$loop","loop","$errors","$csrf","$native","props","slot"];function it(e){let s=new Set,t=new Set;for(let n of e){let i=n.kind==="server"?s:t;for(let o of ie(n.code))i.add(o)}return[...s].filter((n)=>t.has(n)).sort()}var nn=/^\s*[A-Z_$][\w$]*\s*=[^=]/i;function sn(e){let s=new Map,t=/!|===|!==|==|!=|&&|\|\||<|>|\btypeof\b|\binstanceof\b|\bin\b/;for(let n of e){let i=O(n),{depths:o,balanced:r}=ne(i);if(!r)continue;let a=/^([ \t]*(?:export[ \t]+)?const[ \t]+)([A-Za-z_$][\w$]*)[ \t]*(?::[^=\n]+)?=[ \t]*([^\n]+)$/gm;for(let c of i.matchAll(a)){let u=c.index??0;if(o[u+c[1].length]!==0)continue;let f=c[2],y=u+c[0].length-c[3].length,b=n.slice(y,u+c[0].length).trim().replace(/;$/,"").trim(),C=c[3],w=t.test(C)&&!/\bawait\b|=>|\bfunction\b|[{}]/.test(C)&&!/[,+\-*/%&|?:=]$/.test(b)&&ne(C).balanced;s.set(f,s.has(f)||!w?null:b)}}return new Map([...s].filter((n)=>n[1]!==null))}function rt(e,s,t=0,n=new Set){if(s.size===0||t>=5)return e;let i=O(e),o="",r=0;for(let a of i.matchAll(/[A-Za-z_$][\w$]*/g)){let c=a.index??0,u=a[0],f=s.get(u);if(!f||n.has(u))continue;let y=i.slice(0,c).trimEnd(),b=i.slice(c+u.length).trimStart();if(y.endsWith(".")||/^:(?!:)/.test(b)&&/[{,]$/.test(y))continue;if(c>0&&/[\w$]/.test(i[c-1]))continue;o+=`${e.slice(r,c)}(${rt(f,s,t+1,new Set([...n,u]))})`,r=c+u.length}return o+e.slice(r)}function rn(e,s){let t=/@(if|unless|elseif|else|endif|endunless)\b\s*(\()?/g,n=[],i;while((i=t.exec(e))!==null){if(i.index>s)break;let o=i[1];if(i.index===s){if(o==="elseif"){let a=n[n.length-1];if(a?.current)a.seen.push(a.current);if(a)a.current=null}break}if(o==="endif"||o==="endunless"){n.pop();continue}let r="";if(i[2]==="("){let a=0,c=i.index+i[0].length-1,u=c+1;for(;c<e.length;c++){let f=e[c];if(f==="(")a++;else if(f===")"){if(a--,a===0)break}}r=e.slice(u,c).trim(),t.lastIndex=c+1}if(o==="if")n.push({seen:[],current:r});else if(o==="unless")n.push({seen:[],current:`!(${r})`});else if(o==="elseif"||o==="else"){let a=n[n.length-1];if(!a)continue;if(a.current)a.seen.push(a.current);a.current=o==="elseif"?r:null}}return n.flatMap((o)=>[...o.seen.map((r)=>`!(${r})`),...o.current?[o.current]:[]]).filter(Boolean)}function on(e){let s=e.code.trim();if(!s)return null;if(e.attribute?.startsWith("@")){if(nn.test(s))return null;let n=";(($event: any): void => { ";return{text:`${n}${s} });`,prefixLength:n.length}}let t=";void ((";return{text:`${t}${s}));`,prefixLength:t.length}}var an=/(\bfrom\s*|\bimport\s*\(\s*|\bimport\s+)(['"])(\.{1,2}\/[^'"\n]*)\2/g;function me(e,s){if(!s)return e;return e.replace(an,(t,n,i,o)=>{let r=xe.default.resolve(s,o).replace(/\\/g,"/");return`${n}${i}${r}${i}`})}function cn(e){return" ".repeat(Math.max(0,(e.startColumn??1)-1))}function ln(e){let s=new Set,t=O(e);for(let n of t.matchAll(/\bimport\s+(?:type\s+)?([\w$*{}\s,]+?)\s+from\b/g)){let i=n[1],o=/\{([^}]*)\}/.exec(i);for(let u of o?.[1].split(",")??[]){let f=u.trim().replace(/^type\s+/,"").split(/\s+as\s+/).pop()?.trim();if(f&&/^[A-Z_$][\w$]*$/i.test(f))s.add(f)}let r=i.replace(/\{[^}]*\}/,""),a=/\*\s*as\s+([A-Z_$][\w$]*)/i.exec(r);if(a)s.add(a[1]);let c=/^\s*([A-Z_$][\w$]*)/i.exec(r);if(c&&c[1]!=="type")s.add(c[1])}return[...s].sort()}function ot(e,s={}){let t=re(e),n=e.split(`
|
|
54
|
+
`),i=Array.from({length:n.length},()=>""),o=new Map,r=new Map,a=[],c=t.filter((w)=>w.kind==="server").map((w)=>w.code).join(`
|
|
55
|
+
`),u=s.filePath&&s.templateExpressions!==!1?He(e,oe(e),{filePath:s.filePath,componentsDir:s.componentsDir,projectRoot:s.projectRoot,readComponent:s.readComponent,scriptCode:(w,m)=>re(w).map((S)=>me(S.code,xe.default.dirname(m))).join(`
|
|
56
|
+
`)}):void 0,f=new Set,y=[];for(let[w,m]of t.entries()){let S=Ut(cn(m)+m.code,c,String(w));for(let[T,k]of S.columns)r.set(m.startLine+T-1,k);for(let T of S.declarations)a.push({text:me(T.text,s.originDir??""),origin:T.origin?{...T.origin,line:T.origin.line+m.startLine-1}:void 0});let v=st(S.code),g=me(v,s.originDir??"").split(`
|
|
57
|
+
`);g.forEach((T,k)=>{let E=m.startLine-1+k;if(E<i.length)i[E]=T,f.add(E)}),y.push(m.startLine-1+g.length-1)}for(let w of y){let m=i[w]?.trim()===""?w:w+1;if(m<i.length&&i[m].trim()===""&&(m===w||!f.has(m)))i[m]=";"}let b=(w,m)=>{for(let[S,v]of w.split(`
|
|
58
|
+
`).entries())if(i.push(v),m)o.set(i.length,S===0?m:{...m,line:m.line+S,column:1,prefixLength:0})};for(let w of a)b(w.text,w.origin);if(s.globals!==!1){b("");let w=new Set([...t.flatMap((g)=>ie(g.code)),...t.flatMap((g)=>ln(g.code))]),m=(g)=>{if(!w.has(g))b(`declare var ${g}: any`)};if(s.runtimeGlobals!==!1){if(!w.has("window"))b("declare var window: any");for(let g of X)m(g)}let S=[...new Set([...Ye,...fe,...Qe])].filter((g)=>s.runtimeGlobals!==!1||!X.includes(g));if(s.contextScope==="global"){b("declare global {");for(let g of S)b(` var ${g}: any`);b("}")}else{for(let g of Ye)m(g);for(let g of fe)m(g);for(let g of Qe)m(g)}b(`declare var ${he}: any`);let v=new Set(t.flatMap((g)=>ie(g.code)));b(`type ${Xe}<T> = T extends readonly (infer E)[] ? E : T extends Iterable<infer E2> ? E2 : any`);for(let g of en(e)){if(v.has(g.name))continue;let T=g.iterable&&v.has(g.iterable)?`${Xe}<typeof ${g.iterable}>`:"any";b(`declare var ${g.name}: ${T}`)}}if(s.templateExpressions!==!1){if(u?.declarations)for(let m of u.declarations.split(`
|
|
59
|
+
`))b(m);let w=Yt(e).map((m)=>{let S=u?.events.get(m.offset??-1);if(S){m.anchor=!0;let v=m.code.trim(),g=/^([\w$]+)\s*=\s*([^=][\s\S]*)$/.exec(v),T=g?`void ((${g[2]}) satisfies __StxAssignedValue<typeof ${g[1]}>)`:/^[\w$]+(?:\.[\w$]+)*$/.test(v)?`${v} satisfies (($event: ${S}) => unknown)`:v,k=`;(($event: ${S}): void => { `;return{expression:m,statement:{text:`${k}${T} });`,prefixLength:k.length}}}return{expression:m,statement:on(m)}}).filter((m)=>m.statement!==null);if(w.push(...u?.checks||[]),w.length>0){let m=oe(e),S=Ge(m),v=sn(t.map((E)=>E.code)),T=[...new Set(t.flatMap((E)=>ie(E.code)))].filter((E)=>/^[A-Z_$][\w$]*$/i.test(E)),k=0;if(T.length>0){b(Gt);for(let E of T)b(`function __StxRead_${E}() { return ${E} }`),b(`type __StxT_${E} = ${tt}<ReturnType<typeof __StxRead_${E}>>`);b(`;((${T.map((E)=>`${E}: __StxT_${E}`).join(", ")}) => {`),k=1}for(let{expression:E,statement:A}of w){let M=" ".repeat(k),j=E.offset===void 0?[]:S.filter((N)=>E.offset>=N.start&&E.offset<N.end),R=j.map((N)=>`;((${N.binding.replace(/[\r\n]/g," ")}: any) => { `).join(""),D=" });".repeat(j.length),z=E.offset===void 0?[]:rn(m,E.offset),V=z.length>0?`${z.map((N)=>`if (${rt(N,v)}) `).join("")}{ `:"",H=z.length>0?" }":"";b(M+R+V+A.text+H+D,{line:E.line,column:E.column,expression:E,prefixLength:A.prefixLength+M.length+R.length+V.length,guardPrefixLength:M.length+R.length+V.length})}if(k>0)b("});")}}let C=!1;if(s.reference&&i[0]!==void 0&&i[0].trim()==="")i[0]=`/// <reference path=${JSON.stringify(s.reference.replace(/\\/g,"/"))} />`,C=!0;return b("export {}"),{text:i.join(`
|
|
60
|
+
`),lineMap:o,sourceLineCount:n.length,componentDependencies:u?.dependencies,referenced:C,scriptColumns:r}}function ce(e){let s=[0];for(let t=0;t<e.length;t++)if(e.charCodeAt(t)===10)s.push(t+1);return s}function q(e,s){let t=0,n=e.length-1;while(t<n){let i=Math.ceil((t+n)/2);if(e[i]<=s)t=i;else n=i-1}return{line:t+1,column:s-e[t]+1}}function le(e,s,t){let n=Math.min(Math.max(s,1),e.length)-1,i=n+1<e.length?e[n+1]-1:Number.MAX_SAFE_INTEGER;return Math.min(e[n]+Math.max(t,1)-1,i)}function at(e,s){if(!e.expression)return!1;return e.inGuard===!0||s===2774}function ct(e,s,t){let n=e.lineMap.get(s);if(!n)return s<=e.sourceLineCount?{line:s,column:Xt(e.scriptColumns?.get(s)??[],t)}:null;let i=n.expression?.anchor?0:Math.max(0,t-1-(n.prefixLength??0));return{line:n.line,column:n.column+i,expression:n.expression,inGuard:t<=(n.guardPrefixLength??0)}}var lt=["module","exports","require","props","$props","$bool","$num","defineProps","withDefaults","defineClientPayload","useServerData","useRuntimeConfig","useServerRuntimeConfig","state","derived","effect","batch","onMount","onDestroy","definePageMeta","useRoute","useRouter","useHead","useSeoMeta","setResponseStatus","setResponseHeader","notFound","ref","reactive","computed","watch","onMounted","onUnmounted","nextTick","defineEmits","defineExpose","defineSlots","provide","inject","useColorMode","useDark","useMediaQuery","useScrollLock","usePreferredDark","usePreferredLight","usePreferredReducedMotion","usePreferredContrast","window","document","console","confirm","alert","fetch","params"];var un=new Set(["module","exports","require","$bool","$num","window","document","console","confirm","alert","fetch"]),ft=lt.filter((e)=>!un.has(e)).sort(),dt=[...X].sort(),fn=[...new Set([...ft,...dt])].sort(),dn=new Set(ft),pn=new Set(dt),gn=new Set(fn),ut=/\bimport\s+(?!type[\s{])\{([^}]*)\}\s*from\s*(['"])stx\2/g;function mn(e,s){if(s==="server")return`'${e}' is not provided by 'stx' in a <script server> block. The engine binds only its own names there (defineProps, state, useHead, ...); any other name becomes \`await import('stx')\`, which does not resolve, so the whole script fails when the page renders. Import it from '@stacksjs/stx' instead.`;return`'${e}' is not provided by 'stx' in a client <script> block. The import is replaced by the window.stx runtime, which has no '${e}', so it is undefined in the browser.`}function pt(e,s){let t=[];for(let n of s){if(n.offset===void 0)continue;let i=n.kind==="server"?dn:pn;ut.lastIndex=0;for(let o of n.code.matchAll(ut)){let r=o.index+o[0].indexOf("{")+1;for(let a of o[1].matchAll(/[^,]+/g)){let c=a[0];if(/^\s*type\s/.test(c))continue;let u=/^\s*([A-Za-z_$][\w$]*)/.exec(c);if(!u)continue;let f=u[1];if(!gn.has(f)||i.has(f))continue;let y=n.offset+r+a.index+u[0].length-f.length,b=e.slice(0,y),C=b.split(`
|
|
61
|
+
`).length;t.push({line:C,column:y-(b.lastIndexOf(`
|
|
62
|
+
`)+1)+1,offset:y,length:f.length,name:f,kind:n.kind,message:mn(f,n.kind)})}}}return t}var W=G(require("node:path"),1),hn="@stacksjs/stx-typescript-plugin";function xn(e,s){let t=W.default.resolve(e);for(;;){let n=W.default.join(t,"tsconfig.json");if(s(n))return n;let i=W.default.dirname(t);if(i===t)return;t=i}}function gt(e,s,t){let n=xn(e,t);if(!n)return;let i=new Set,o=(r)=>{if(i.has(r))return;i.add(r);let a=s(r);if(!a)return;let c=a.compilerOptions?.plugins;if(Array.isArray(c)){let f=c.find((b)=>b?.name===hn),y=Array.isArray(f?.libs)?f.libs.filter((b)=>typeof b==="string"):[];return f?{configPath:r,libs:y.map((b)=>W.default.resolve(W.default.dirname(r),b))}:null}let u=typeof a.extends==="string"?[a.extends]:Array.isArray(a.extends)?a.extends:[];for(let f of[...u].reverse()){if(typeof f!=="string"||!f.startsWith("."))continue;let y=W.default.resolve(W.default.dirname(r),f.endsWith(".json")?f:`${f}.json`),b=o(y);if(b!==void 0)return b}return};return o(n)??void 0}var mt=Symbol.for("@stacksjs/stx-typescript-plugin"),bn=new Set([2300,2451,2403]);function te(e){return e.endsWith(".stx")}function ht(e){return te(e)||e.endsWith(".md")}function Sn(e){if(!e)return;return F.existsSync(B.default.join(e,"stx-module.d.ts"))&&F.existsSync(B.default.join(e,"stx.d.ts"))?B.default.join(e,"stx-module.d.ts"):void 0}function yn(e,s=F.existsSync){let t=e;for(;;){let n=B.default.join(t,"node_modules","@stacksjs","stx","stx-module.d.ts");if(s(n))return n;let i=B.default.dirname(t);if(i===t)return;t=i}}function wn(e,s=B.default.join(bt.tmpdir(),"stx-typescript-plugin")){let t=e.map((i)=>`/// <reference path=${JSON.stringify(i.replace(/\\/g,"/"))} />`).join(`
|
|
52
63
|
`)+`
|
|
53
|
-
`,n=
|
|
64
|
+
`,n=B.default.join(s,`${xt.createHash("sha1").update(t).digest("hex").slice(0,16)}.d.ts`);if(!F.existsSync(n))F.mkdirSync(s,{recursive:!0}),F.writeFileSync(n,t);return n}function vn(e,s,t,n){let i=(a)=>ot(s,{templateExpressions:te(e),originDir:B.default.dirname(e),filePath:e,readComponent:n.readComponent,componentsDir:n.componentsDir,projectRoot:n.projectRoot,reference:a,runtimeGlobals:!a,contextScope:"global"}),o=i(n.declarations);if(n.declarations&&!o.referenced)o=i(void 0);let r=re(s);return{version:t,source:s,virtual:o,blocks:r,sourceStarts:ce(s),virtualStarts:ce(o.text),collisions:new Set(it(r))}}function Tn(e,s){let t=e.findConfigFile(s,e.sys.fileExists);if(!t)return;let n=e.readConfigFile(t,e.sys.readFile);if(n.error)return;let i=e.parseJsonConfigFileContent(n.config,e.sys,B.default.dirname(t),void 0,t),o={};if(i.options.types)o.types=i.options.types;let r=i.options.paths;if(r){let a=i.options.baseUrl??i.options.pathsBasePath??B.default.dirname(t);o.paths={};for(let[c,u]of Object.entries(r))o.paths[c]=u.map((f)=>B.default.isAbsolute(f)?f:B.default.resolve(a,f))}return o}function En(e,s={}){let t=e.typescript,n={},i=new Set,o=new WeakSet;return{create(r){let a=(l)=>{r.project.projectService.logger.info(`[stx-plugin] ${l}`)};if(r.languageService[mt])return o.add(r.project),a("already applied to this project by another registration of the plugin; leaving it as it is"),r.languageService;a("TypeScript stx plugin initialized");let{languageService:c,languageServiceHost:u}=r,f=(l)=>{let p=c[l];return typeof p==="function"?p.bind(c):()=>{return}},y=u.getScriptSnapshot?.bind(u),b=u.getScriptVersion?.bind(u),C=Sn(s.declarationsDir);if(!C)a("the bundled stx declarations were not found; apps without their own fall back to `any`");let w=(l)=>t.sys?.fileExists(l)??F.existsSync(l),m=(l)=>{let p=t.readConfigFile?.(l,(d)=>t.sys.readFile(d));return p&&!p.error?p.config:void 0},S=new Map,v=(l)=>{let p=B.default.dirname(l);if(!S.has(p)){let d=yn(p,w)??C,x=[];try{x=(gt(p,m,w)?.libs??[]).filter(w)}catch(h){a(`could not read the stx entry of the project's tsconfig: ${String(h)}`)}S.set(p,d&&x.length>0?wn([d,...x]):d)}return S.get(p)},g=new Map,T=(l)=>{let p=y?.(l);return p?p.getText(0,p.getLength()):t.sys?.readFile(l)},k=()=>n.enabled!==!1;i.add(()=>{g.clear(),r.project.refreshDiagnostics?.()});let E=(l)=>{if(!ht(l)||!y)return;let p=`${b?.(l)||"0"}:${u.getProjectVersion?.()||""}`,d=g.get(l);if(d&&d.version===p&&[...d.virtual.componentDependencies||[]].every(([h,_])=>T(h)===_))return d;let x=y(l);if(!x)return;try{let h=r.project.getCurrentDirectory?.(),_=h?B.default.resolve(h,typeof r.config?.componentsDir==="string"?r.config.componentsDir:"components"):void 0,I=vn(l,x.getText(0,x.getLength()),p,{declarations:v(l),readComponent:T,componentsDir:_,projectRoot:h});return g.set(l,I),I}catch(h){a(`failed to build virtual document for ${l}: ${String(h)}`);return}},A=(l)=>te(l)?E(l):void 0,M=(l,p)=>{let d=q(l.virtualStarts,p);return ct(l.virtual,d.line,d.column)},j=(l,p)=>{let d=M(l,p);if(!d)return;return le(l.sourceStarts,d.line,d.column)},R=(l,p)=>{let d=q(l.sourceStarts,p);return le(l.virtualStarts,d.line,nt(l.virtual.scriptColumns?.get(d.line)??[],d.column))},D=(l,p)=>{let d=j(l,p.start);if(d===void 0)return;let x=j(l,p.start+p.length);return{start:d,length:x!==void 0&&x>=d?x-d:p.length}},z=(l,p)=>l.blocks.some((d)=>d.offset!==void 0&&p>=d.offset&&p<=d.offset+d.code.length),V=(l)=>{let p=A(l.fileName);if(!p)return l;let d=D(p,l.textSpan);if(!d)return;let x=l.contextSpan?D(p,l.contextSpan):void 0;return{...l,textSpan:d,contextSpan:x}},H=(l)=>l?.map(V).filter((p)=>p!==void 0),N=(l)=>l?.filter((p)=>{let d=A(p.fileName);if(!d)return!0;let{line:x}=q(d.virtualStarts,p.textSpan.start);return x<=d.virtual.sourceLineCount&&!d.virtual.lineMap.has(x)});if(y)u.getScriptSnapshot=(l)=>{let p=E(l);if(p)return t.ScriptSnapshot.fromString(p.virtual.text);return y(l)};let be=u.getCompilationSettings?.bind(u),yt=t.server?.ProjectKind!==void 0&&r.project.projectKind===t.server.ProjectKind.Inferred;if(be&&yt){let l=null,p;u.getCompilationSettings=()=>{let d=be();if(l===null)try{l=Tn(t,r.project.getCurrentDirectory())}catch(x){a(`could not read the project's tsconfig: ${String(x)}`),l=void 0}if(!l)return d;if(p?.from!==d)p={from:d,options:{...d,...l.paths&&!d.paths?{paths:l.paths}:{},...l.types&&!d.types?{types:l.types}:{}}};return p.options}}let ue=(l,p)=>{let d=E(l);if(!d)return p;if(te(l)&&!k())return[];let x=[];for(let h of p){let _=typeof h.messageText==="string"?h.messageText:h.messageText.messageText;if(bn.has(h.code)){let K=_.match(/'([^']+)'/)?.[1];if(K&&d.collisions.has(K))continue}if(h.start===void 0){x.push(h);continue}let I=M(d,h.start);if(!I||at(I,h.code))continue;let L=le(d.sourceStarts,I.line,I.column),Y=j(d,h.start+(h.length??0));x.push({...h,start:L,length:Y!==void 0&&Y>L?Y-L:h.length??0})}return x},wt=f("getSemanticDiagnostics");c.getSemanticDiagnostics=(l)=>{let p=ue(l,wt(l)),d=A(l);if(!d||!k())return p;let x=c.getProgram?.()?.getSourceFile(l);for(let h of pt(d.source,d.blocks))p.push({file:x,start:h.offset,length:h.length,messageText:h.message,category:t.DiagnosticCategory?.Error??1,code:0,source:"stx"});return p};let vt=f("getSyntacticDiagnostics");c.getSyntacticDiagnostics=(l)=>ue(l,vt(l));let Tt=f("getSuggestionDiagnostics");c.getSuggestionDiagnostics=(l)=>ue(l,Tt(l));let Se=f("getQuickInfoAtPosition");c.getQuickInfoAtPosition=(l,p,...d)=>{let x=A(l);if(!x)return Se(l,p,...d);if(!k())return;let h=Se(l,R(x,p),...d);if(!h)return h;let _=D(x,h.textSpan);return _?{...h,textSpan:_}:void 0};let ye=f("getCompletionsAtPosition");c.getCompletionsAtPosition=(l,p,d,...x)=>{let h=A(l);if(!h)return ye(l,p,d,...x);if(!k()||!z(h,p))return;let _=ye(l,R(h,p),{...d,includeCompletionsForModuleExports:!1},...x);if(!_)return _;let I=(L)=>L&&D(h,L);return{..._,optionalReplacementSpan:I(_.optionalReplacementSpan),entries:_.entries.filter((L)=>!L.name.startsWith("__stx")&&!L.name.startsWith("__Stx")).map((L)=>L.replacementSpan?{...L,replacementSpan:I(L.replacementSpan)}:L)}};let we=f("getCompletionEntryDetails");c.getCompletionEntryDetails=(l,p,...d)=>{let x=A(l);if(!x)return we(l,p,...d);let h=we(l,R(x,p),...d);return h?{...h,codeActions:void 0}:h};let ve=f("getSignatureHelpItems");c.getSignatureHelpItems=(l,p,...d)=>{let x=A(l);if(!x)return ve(l,p,...d);if(!k()||!z(x,p))return;let h=ve(l,R(x,p),...d),_=h&&D(x,h.applicableSpan);return h&&_?{...h,applicableSpan:_}:void 0};let Te=f("getDefinitionAndBoundSpan");c.getDefinitionAndBoundSpan=(l,p)=>{let d=A(l);if(!d)return Ee(Te(l,p));if(!k())return;let x=Te(l,R(d,p)),h=x&&D(d,x.textSpan);return x&&h?{...Ee(x),textSpan:h}:void 0};let Ee=(l)=>l&&{...l,definitions:N(l.definitions)};for(let l of["getDefinitionAtPosition","getTypeDefinitionAtPosition","getImplementationAtPosition"]){let p=f(l);c[l]=(d,x,...h)=>{let _=A(d);if(_&&!k())return;return N(p(d,_?R(_,x):x,...h))}}for(let l of["getReferencesAtPosition"]){let p=f(l);c[l]=(d,x,...h)=>{let _=A(d);if(_&&!k())return;return H(p(d,_?R(_,x):x,...h))}}let Et=f("findReferences");c.findReferences=(l,p)=>{let d=A(l);if(d&&!k())return;return Et(l,d?R(d,p):p)?.map((x)=>{let h=V(x.definition);return h?{definition:h,references:H(x.references)}:void 0}).filter((x)=>x!==void 0)};let $t=f("getDocumentHighlights");c.getDocumentHighlights=(l,p,d)=>{let x=A(l);if(x&&(!k()||!z(x,p)))return;return $t(l,x?R(x,p):p,d)?.map((h)=>{let _=A(h.fileName);if(!_)return h;return{...h,highlightSpans:h.highlightSpans.map((I)=>{let L=D(_,I.textSpan);return L?{...I,textSpan:L,contextSpan:I.contextSpan&&D(_,I.contextSpan)}:void 0}).filter((I)=>I!==void 0)}})};let _t=f("getNavigationTree");c.getNavigationTree=(l)=>{let p=_t(l),d=A(l);if(!d)return p;let x=(_)=>{let I=_.spans.map((K)=>D(d,K)).filter((K)=>K!==void 0);if(I.length===0)return;let L=_.nameSpan&&D(d,_.nameSpan),Y=_.childItems?.map(x).filter((K)=>K!==void 0);return{..._,spans:I,nameSpan:L,childItems:Y}},h={...p,spans:[{start:0,length:d.source.length}]};return k()?{...h,childItems:p.childItems?.map(x).filter((_)=>_!==void 0)}:{...h,childItems:[]}};let Ct={getEncodedSemanticClassifications:()=>{return},getEncodedSyntacticClassifications:()=>{return},getSemanticClassifications:()=>[],getSyntacticClassifications:()=>[],getFormattingEditsForDocument:()=>[],getFormattingEditsForRange:()=>[],getFormattingEditsAfterKeystroke:()=>[],getNavigationBarItems:()=>[],getOutliningSpans:()=>[],getBraceMatchingAtPosition:()=>[],getTodoComments:()=>[],getDocCommentTemplateAtPosition:()=>{return},getJsxClosingTagAtPosition:()=>{return},getLinkedEditingRangeAtPosition:()=>{return},getSpanOfEnclosingComment:()=>{return},getCodeFixesAtPosition:()=>[],getApplicableRefactors:()=>[],getEditsForRefactor:()=>{return},getRenameInfo:()=>({canRename:!1,localizedErrorMessage:"Rename is not supported in .stx files."}),findRenameLocations:()=>{return},provideInlayHints:()=>[],prepareCallHierarchy:()=>{return},provideCallHierarchyIncomingCalls:()=>[],provideCallHierarchyOutgoingCalls:()=>[],getFileReferences:()=>[]};for(let[l,p]of Object.entries(Ct)){let d=c[l];if(typeof d!=="function")continue;let x=d.bind(c);c[l]=(h,..._)=>typeof h==="string"&&te(h)?p():x(h,..._)}return c[mt]=!0,a("Language service proxy created"),c},getExternalFiles(r){if(o.has(r))return[];return r.getFileNames().filter(ht)},onConfigurationChanged(r){n={...n,...r};for(let a of i)a()}}}var St=En;module.exports=St;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/stx-vscode",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.802",
|
|
5
5
|
"description": "stx language support for VS Code extensions to embed: the hovers, completions, diagnostics, grammar, snippets, language configuration and TypeScript server plugin behind the stx extension.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|