@visulima/ono 1.0.12 → 2.0.0-alpha.10

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.
@@ -0,0 +1 @@
1
+ const e=Object.freeze(JSON.parse('{"colors":{"activityBar.background":"#1A1A1A","activityBar.foreground":"#7D7D7D","activityBarBadge.background":"#383838","badge.background":"#383838","badge.foreground":"#C1C1C1","button.background":"#333","debugIcon.breakpointCurrentStackframeForeground":"#79b8ff","debugIcon.breakpointDisabledForeground":"#848484","debugIcon.breakpointForeground":"#FF7A84","debugIcon.breakpointStackframeForeground":"#79b8ff","debugIcon.breakpointUnverifiedForeground":"#848484","debugIcon.continueForeground":"#FF7A84","debugIcon.disconnectForeground":"#FF7A84","debugIcon.pauseForeground":"#FF7A84","debugIcon.restartForeground":"#79b8ff","debugIcon.startForeground":"#79b8ff","debugIcon.stepBackForeground":"#FF7A84","debugIcon.stepIntoForeground":"#FF7A84","debugIcon.stepOutForeground":"#FF7A84","debugIcon.stepOverForeground":"#FF7A84","debugIcon.stopForeground":"#79b8ff","diffEditor.insertedTextBackground":"#3a632a4b","diffEditor.removedTextBackground":"#88063852","editor.background":"#1f1f1f","editor.lineHighlightBorder":"#303030","editorGroupHeader.tabsBackground":"#1A1A1A","editorGroupHeader.tabsBorder":"#1A1A1A","editorIndentGuide.activeBackground":"#383838","editorIndentGuide.background":"#2A2A2A","editorLineNumber.foreground":"#727272","editorRuler.foreground":"#2A2A2A","editorSuggestWidget.background":"#1A1A1A","focusBorder":"#444","foreground":"#888888","gitDecoration.ignoredResourceForeground":"#444444","input.background":"#2A2A2A","input.foreground":"#E0E0E0","inputOption.activeBackground":"#3a3a3a","list.activeSelectionBackground":"#212121","list.activeSelectionForeground":"#F5F5F5","list.focusBackground":"#292929","list.highlightForeground":"#EAEAEA","list.hoverBackground":"#262626","list.hoverForeground":"#9E9E9E","list.inactiveSelectionBackground":"#212121","list.inactiveSelectionForeground":"#F5F5F5","panelTitle.activeBorder":"#1f1f1f","panelTitle.activeForeground":"#FAFAFA","panelTitle.inactiveForeground":"#484848","peekView.border":"#444","peekViewEditor.background":"#242424","pickerGroup.border":"#363636","pickerGroup.foreground":"#EAEAEA","progressBar.background":"#FAFAFA","scrollbar.shadow":"#1f1f1f","sideBar.background":"#1A1A1A","sideBarSectionHeader.background":"#202020","statusBar.background":"#1A1A1A","statusBar.debuggingBackground":"#1A1A1A","statusBar.foreground":"#7E7E7E","statusBar.noFolderBackground":"#1A1A1A","statusBarItem.prominentBackground":"#fafafa1a","statusBarItem.remoteBackground":"#1a1a1a00","statusBarItem.remoteForeground":"#7E7E7E","symbolIcon.classForeground":"#FF9800","symbolIcon.constructorForeground":"#b392f0","symbolIcon.enumeratorForeground":"#FF9800","symbolIcon.enumeratorMemberForeground":"#79b8ff","symbolIcon.eventForeground":"#FF9800","symbolIcon.fieldForeground":"#79b8ff","symbolIcon.functionForeground":"#b392f0","symbolIcon.interfaceForeground":"#79b8ff","symbolIcon.methodForeground":"#b392f0","symbolIcon.variableForeground":"#79b8ff","tab.activeBorder":"#1e1e1e","tab.activeForeground":"#FAFAFA","tab.border":"#1A1A1A","tab.inactiveBackground":"#1A1A1A","tab.inactiveForeground":"#727272","terminal.ansiBrightBlack":"#5c5c5c","textLink.activeForeground":"#fafafa","textLink.foreground":"#CCC","titleBar.activeBackground":"#1A1A1A","titleBar.border":"#00000000"},"displayName":"Min Dark","name":"min-dark","semanticHighlighting":true,"tokenColors":[{"settings":{"foreground":"#b392f0"}},{"scope":["support.function","keyword.operator.accessor","meta.group.braces.round.function.arguments","meta.template.expression","markup.fenced_code meta.embedded.block"],"settings":{"foreground":"#b392f0"}},{"scope":"emphasis","settings":{"fontStyle":"italic"}},{"scope":["strong","markup.heading.markdown","markup.bold.markdown"],"settings":{"fontStyle":"bold","foreground":"#FF7A84"}},{"scope":["markup.italic.markdown"],"settings":{"fontStyle":"italic"}},{"scope":"meta.link.inline.markdown","settings":{"fontStyle":"underline","foreground":"#1976D2"}},{"scope":["string","markup.fenced_code","markup.inline"],"settings":{"foreground":"#9db1c5"}},{"scope":["comment","string.quoted.docstring.multi"],"settings":{"foreground":"#6b737c"}},{"scope":["constant.language","variable.language.this","variable.other.object","variable.other.class","variable.other.constant","meta.property-name","support","string.other.link.title.markdown"],"settings":{"foreground":"#79b8ff"}},{"scope":["constant.numeric","constant.other.placeholder","constant.character.format.placeholder","meta.property-value","keyword.other.unit","keyword.other.template","entity.name.tag.yaml","entity.other.attribute-name","support.type.property-name.json"],"settings":{"foreground":"#f8f8f8"}},{"scope":["keyword","storage.modifier","storage.type","storage.control.clojure","entity.name.function.clojure","support.function.node","punctuation.separator.key-value","punctuation.definition.template-expression"],"settings":{"foreground":"#f97583"}},{"scope":"variable.parameter.function","settings":{"foreground":"#FF9800"}},{"scope":["entity.name.type","entity.other.inherited-class","meta.function-call","meta.instance.constructor","entity.other.attribute-name","entity.name.function","constant.keyword.clojure"],"settings":{"foreground":"#b392f0"}},{"scope":["entity.name.tag","string.quoted","string.regexp","string.interpolated","string.template","string.unquoted.plain.out.yaml","keyword.other.template"],"settings":{"foreground":"#ffab70"}},{"scope":"token.info-token","settings":{"foreground":"#316bcd"}},{"scope":"token.warn-token","settings":{"foreground":"#cd9731"}},{"scope":"token.error-token","settings":{"foreground":"#cd3131"}},{"scope":"token.debug-token","settings":{"foreground":"#800080"}},{"scope":["punctuation.definition.arguments","punctuation.definition.dict","punctuation.separator","meta.function-call.arguments"],"settings":{"foreground":"#bbbbbb"}},{"scope":"markup.underline.link","settings":{"foreground":"#ffab70"}},{"scope":["beginning.punctuation.definition.list.markdown"],"settings":{"foreground":"#FF7A84"}},{"scope":"punctuation.definition.metadata.markdown","settings":{"foreground":"#ffab70"}},{"scope":["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown"],"settings":{"foreground":"#79b8ff"}}],"type":"dark"}'));export{e as default};
@@ -0,0 +1 @@
1
+ const e=Object.freeze(JSON.parse('{"colors":{"activityBar.background":"#f6f6f6","activityBar.foreground":"#9E9E9E","activityBarBadge.background":"#616161","badge.background":"#E0E0E0","badge.foreground":"#616161","button.background":"#757575","button.hoverBackground":"#616161","debugIcon.breakpointCurrentStackframeForeground":"#1976D2","debugIcon.breakpointDisabledForeground":"#848484","debugIcon.breakpointForeground":"#D32F2F","debugIcon.breakpointStackframeForeground":"#1976D2","debugIcon.continueForeground":"#6f42c1","debugIcon.disconnectForeground":"#6f42c1","debugIcon.pauseForeground":"#6f42c1","debugIcon.restartForeground":"#1976D2","debugIcon.startForeground":"#1976D2","debugIcon.stepBackForeground":"#6f42c1","debugIcon.stepIntoForeground":"#6f42c1","debugIcon.stepOutForeground":"#6f42c1","debugIcon.stepOverForeground":"#6f42c1","debugIcon.stopForeground":"#1976D2","diffEditor.insertedTextBackground":"#b7e7a44b","diffEditor.removedTextBackground":"#e597af52","editor.background":"#ffffff","editor.foreground":"#212121","editor.lineHighlightBorder":"#f2f2f2","editorBracketMatch.background":"#E7F3FF","editorBracketMatch.border":"#c8e1ff","editorGroupHeader.tabsBackground":"#f6f6f6","editorGroupHeader.tabsBorder":"#fff","editorIndentGuide.background":"#EEE","editorLineNumber.activeForeground":"#757575","editorLineNumber.foreground":"#CCC","editorSuggestWidget.background":"#F3F3F3","extensionButton.prominentBackground":"#000000AA","extensionButton.prominentHoverBackground":"#000000BB","focusBorder":"#D0D0D0","foreground":"#757575","gitDecoration.ignoredResourceForeground":"#AAAAAA","input.border":"#E9E9E9","inputOption.activeBackground":"#EDEDED","list.activeSelectionBackground":"#EEE","list.activeSelectionForeground":"#212121","list.focusBackground":"#ddd","list.focusForeground":"#212121","list.highlightForeground":"#212121","list.inactiveSelectionBackground":"#E0E0E0","list.inactiveSelectionForeground":"#212121","panel.background":"#fff","panel.border":"#f4f4f4","panelTitle.activeBorder":"#fff","panelTitle.inactiveForeground":"#BDBDBD","peekView.border":"#E0E0E0","peekViewEditor.background":"#f8f8f8","pickerGroup.foreground":"#000","progressBar.background":"#000","scrollbar.shadow":"#FFF","sideBar.background":"#f6f6f6","sideBar.border":"#f6f6f6","sideBarSectionHeader.background":"#EEE","sideBarTitle.foreground":"#999","statusBar.background":"#f6f6f6","statusBar.border":"#f6f6f6","statusBar.debuggingBackground":"#f6f6f6","statusBar.foreground":"#7E7E7E","statusBar.noFolderBackground":"#f6f6f6","statusBarItem.prominentBackground":"#0000001a","statusBarItem.remoteBackground":"#f6f6f600","statusBarItem.remoteForeground":"#7E7E7E","symbolIcon.classForeground":"#dd8500","symbolIcon.constructorForeground":"#6f42c1","symbolIcon.enumeratorForeground":"#dd8500","symbolIcon.enumeratorMemberForeground":"#1976D2","symbolIcon.eventForeground":"#dd8500","symbolIcon.fieldForeground":"#1976D2","symbolIcon.functionForeground":"#6f42c1","symbolIcon.interfaceForeground":"#1976D2","symbolIcon.methodForeground":"#6f42c1","symbolIcon.variableForeground":"#1976D2","tab.activeBorder":"#FFF","tab.activeForeground":"#424242","tab.border":"#f6f6f6","tab.inactiveBackground":"#f6f6f6","tab.inactiveForeground":"#BDBDBD","tab.unfocusedActiveBorder":"#fff","terminal.ansiBlack":"#333","terminal.ansiBlue":"#e0e0e0","terminal.ansiBrightBlack":"#a1a1a1","terminal.ansiBrightBlue":"#6871ff","terminal.ansiBrightCyan":"#57d9ad","terminal.ansiBrightGreen":"#a3d900","terminal.ansiBrightMagenta":"#a37acc","terminal.ansiBrightRed":"#d6656a","terminal.ansiBrightWhite":"#7E7E7E","terminal.ansiBrightYellow":"#e7c547","terminal.ansiCyan":"#4dbf99","terminal.ansiGreen":"#77cc00","terminal.ansiMagenta":"#9966cc","terminal.ansiRed":"#D32F2F","terminal.ansiWhite":"#c7c7c7","terminal.ansiYellow":"#f29718","terminal.background":"#fff","textLink.activeForeground":"#000","textLink.foreground":"#000","titleBar.activeBackground":"#f6f6f6","titleBar.border":"#FFFFFF00","titleBar.inactiveBackground":"#f6f6f6"},"displayName":"Min Light","name":"min-light","tokenColors":[{"settings":{"foreground":"#24292eff"}},{"scope":["keyword.operator.accessor","meta.group.braces.round.function.arguments","meta.template.expression","markup.fenced_code meta.embedded.block"],"settings":{"foreground":"#24292eff"}},{"scope":"emphasis","settings":{"fontStyle":"italic"}},{"scope":["strong","markup.heading.markdown","markup.bold.markdown"],"settings":{"fontStyle":"bold"}},{"scope":["markup.italic.markdown"],"settings":{"fontStyle":"italic"}},{"scope":"meta.link.inline.markdown","settings":{"fontStyle":"underline","foreground":"#1976D2"}},{"scope":["string","markup.fenced_code","markup.inline"],"settings":{"foreground":"#2b5581"}},{"scope":["comment","string.quoted.docstring.multi"],"settings":{"foreground":"#c2c3c5"}},{"scope":["constant.numeric","constant.language","constant.other.placeholder","constant.character.format.placeholder","variable.language.this","variable.other.object","variable.other.class","variable.other.constant","meta.property-name","meta.property-value","support"],"settings":{"foreground":"#1976D2"}},{"scope":["keyword","storage.modifier","storage.type","storage.control.clojure","entity.name.function.clojure","entity.name.tag.yaml","support.function.node","support.type.property-name.json","punctuation.separator.key-value","punctuation.definition.template-expression"],"settings":{"foreground":"#D32F2F"}},{"scope":"variable.parameter.function","settings":{"foreground":"#FF9800"}},{"scope":["support.function","entity.name.type","entity.other.inherited-class","meta.function-call","meta.instance.constructor","entity.other.attribute-name","entity.name.function","constant.keyword.clojure"],"settings":{"foreground":"#6f42c1"}},{"scope":["entity.name.tag","string.quoted","string.regexp","string.interpolated","string.template","string.unquoted.plain.out.yaml","keyword.other.template"],"settings":{"foreground":"#22863a"}},{"scope":"token.info-token","settings":{"foreground":"#316bcd"}},{"scope":"token.warn-token","settings":{"foreground":"#cd9731"}},{"scope":"token.error-token","settings":{"foreground":"#cd3131"}},{"scope":"token.debug-token","settings":{"foreground":"#800080"}},{"scope":["strong","markup.heading.markdown","markup.bold.markdown"],"settings":{"foreground":"#6f42c1"}},{"scope":["punctuation.definition.arguments","punctuation.definition.dict","punctuation.separator","meta.function-call.arguments"],"settings":{"foreground":"#212121"}},{"scope":["markup.underline.link","punctuation.definition.metadata.markdown"],"settings":{"foreground":"#22863a"}},{"scope":["beginning.punctuation.definition.list.markdown"],"settings":{"foreground":"#6f42c1"}},{"scope":["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","string.other.link.title.markdown","string.other.link.description.markdown"],"settings":{"foreground":"#d32f2f"}}],"type":"light"}'));export{e as default};
@@ -0,0 +1 @@
1
+ var f=Object.defineProperty;var l=(t,e)=>f(t,"name",{value:e,configurable:!0});import{sanitize as u}from"isomorphic-dompurify";var w=Object.defineProperty,n=l((t,e)=>w(t,"name",{value:e,configurable:!0}),"e$1");const D=["http://","https://","/","./","../"],g="#",y={'"':"&quot;","&":"&amp;","'":"&#39;","<":"&lt;",">":"&gt;"},x=/^[\w+/-]+={0,2}$/,a=n(t=>t==null?"":(typeof t=="string"?t:String(t)).trim(),"toString"),d=n(t=>t.replaceAll(/[&<>"']/g,e=>y[e]),"escapeHtml"),C=n(t=>{try{return u(a(t))}catch{return d(a(t))}},"sanitizeHtml"),H=n(t=>{const e=a(t);if(!e)return"";try{return u(e).replaceAll('"',"&quot;").replaceAll("'","&#39;")}catch{return d(e)}},"sanitizeAttribute"),b=n(t=>{const e=a(t);if(!e)return g;try{const i=u(e),r=i.toLowerCase();return D.some(o=>r.startsWith(o))?i:g}catch{return g}},"sanitizeUrlAttribute"),P=n(t=>{const e=a(t);if(!e)return"";try{return u(e,{ADD_ATTR:["class","style"]})}catch{return C(e)}},"sanitizeCodeHtml"),j=n(t=>{const e=a(t);if(e)return x.test(e)?e:void 0},"sanitizeCspNonce"),N=n((t={})=>{try{return{...t,cspNonce:j(t.cspNonce),openInEditorUrl:t.openInEditorUrl?b(t.openInEditorUrl):void 0}}catch{return{...t,cspNonce:void 0,openInEditorUrl:void 0}}},"sanitizeOptions");var A=Object.defineProperty,s=l((t,e)=>A(t,"name",{value:e,configurable:!0}),"t");const h={javascript:s(()=>import("@shikijs/langs/javascript"),"javascript"),typescript:s(()=>import("@shikijs/langs/typescript"),"typescript"),jsx:s(()=>import("@shikijs/langs/jsx"),"jsx"),tsx:s(()=>import("@shikijs/langs/tsx"),"tsx"),json:s(()=>import("@shikijs/langs/json"),"json"),jsonc:s(()=>import("@shikijs/langs/jsonc"),"jsonc"),xml:s(()=>import("@shikijs/langs/xml"),"xml"),sql:s(()=>import("@shikijs/langs/sql"),"sql"),markdown:s(()=>import("@shikijs/langs/markdown"),"markdown"),mdx:s(()=>import("@shikijs/langs/mdx"),"mdx"),html:s(()=>import("@shikijs/langs/html"),"html"),css:s(()=>import("@shikijs/langs/css"),"css"),scss:s(()=>import("@shikijs/langs/scss"),"scss"),less:s(()=>import("@shikijs/langs/less"),"less"),sass:s(()=>import("@shikijs/langs/sass"),"sass"),stylus:s(()=>import("@shikijs/langs/stylus"),"stylus"),styl:s(()=>import("@shikijs/langs/styl"),"styl"),svelte:s(()=>import("@shikijs/langs/svelte"),"svelte"),vue:s(()=>import("@shikijs/langs/vue"),"vue"),bash:s(()=>import("@shikijs/langs/bash"),"bash"),shell:s(()=>import("@shikijs/langs/shell"),"shell"),text:s(()=>Promise.resolve({name:"text",patterns:[],scopeName:"source.text",repository:{}}),"text")};s(async t=>{if(typeof t!="string"||!t)return;const e=h[t.toLowerCase()];if(e)return await e()},"getLanguageImport");var F=Object.defineProperty,c=l((t,e)=>F(t,"name",{value:e,configurable:!0}),"a$1");let p,m;const L=c(async()=>{const[t,e]=await Promise.all([import("shiki/core"),import("shiki/engine/javascript")]),{createHighlighterCore:i}=t,{createJavaScriptRegexEngine:r}=e,o=await i({themes:[import("../packem_chunks/min-dark.js"),import("../packem_chunks/min-light.js")],langs:[],engine:r()}),v=o;return m=c(()=>{try{o?.dispose?.()}catch{}p=void 0},"disposeFn"),v},"createSingletonHighlighter"),z=c(async(t,e)=>{if(e==="text")return;const i=e.toLowerCase();if(!(t.getLoadedLanguages?.()??t.getLanguages?.()??[]).includes(i)){const r=h[i];r&&await t.loadLanguage?.(await r())}},"ensureLanguageLoaded"),O=c(async(t=[])=>{p||(p=L());const e=await p,i=[];for(const r of t)if(typeof r=="string")i.push(r.toLowerCase());else{const o=r.name;o&&i.push(o.toLowerCase())}return await Promise.all(i.map(r=>z(e,r))),e},"getHighlighter");c(async()=>{try{m&&(m(),m=void 0)}catch{}},"disposeHighlighter");c((t=[])=>({name:"@shikijs/transformers:compact-line-options",line(e,i){const r=t.find(o=>o.line===i);return r?.classes&&this.addClassToHast(e,r.classes),e}}),"transformerCompactLineOptions");const U="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-check%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22M20%206%209%2017l-5-5%22%20%2F%3E%20%3C%2Fsvg%3E",$="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-clipboard%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Crect%20width%3D%228%22%20height%3D%224%22%20x%3D%228%22%20y%3D%222%22%20rx%3D%221%22%20ry%3D%221%22%20%2F%3E%20%3Cpath%20d%3D%22M16%204h2a2%202%200%200%201%202%202v14a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2V6a2%202%200%200%201%202-2h2%22%20%2F%3E%20%3C%2Fsvg%3E";export{H as a,j as b,b as c,O as d,U as e,N as f,P as g,$ as n,C as s};
@@ -0,0 +1 @@
1
+ var i=Object.defineProperty;var o=(r,e)=>i(r,"name",{value:e,configurable:!0});var l=Object.defineProperty,a=o((r,e)=>l(r,"name",{value:e,configurable:!0}),"r");const g=globalThis.process||Object.create(null),t={versions:{}},c=new Proxy(g,{get(r,e){if(e in r)return r[e];if(e in t)return t[e]}});let s,n;const f=a(()=>(s??=c.version??"",s),"getProcessVersion"),u=a(()=>(n??=c.platform??"",n),"getProcessPlatform");export{u as a,f as g,c as n};
@@ -1,3 +1 @@
1
- var Cr=Object.defineProperty;var B=(n,i)=>Cr(n,"name",{value:i,configurable:!0});import{createRequire as wr}from"node:module";import{a as Ye}from"../packem_shared/process-B37didfB.js";const Ar=wr(import.meta.url),me=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ce=B(n=>{if(typeof me<"u"&&me.versions&&me.versions.node){const[i,l]=me.versions.node.split(".").map(Number);if(i>22||i===22&&l>=3||i===20&&l>=16)return me.getBuiltinModule(n)}return Ar(n)},"__cjs_getBuiltinModule"),{realpathSync:Je}=ce("node:fs"),Be=ce("path"),$r=ce("fs"),Mr=ce("os"),mt=ce("child_process"),Er=ce("url");var Rr=Object.defineProperty,Ir=B((n,i)=>Rr(n,"name",{value:i,configurable:!0}),"$e"),jr=Object.defineProperty,Te=Ir((n,i)=>jr(n,"name",{value:i,configurable:!0}),"W"),Pr=Object.defineProperty,d=Te((n,i)=>Pr(n,"name",{value:i,configurable:!0}),"u$1");let Ke=d(()=>{var n=(()=>{var i=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,m=d((e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})},"ne"),h=d((e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of c(t))!u.call(e,o)&&o!==r&&i(e,o,{get:d(()=>t[o],"get"),enumerable:!(a=l(t,o))||a.enumerable});return e},"ae"),v=d(e=>h(i({},"__esModule",{value:!0}),e),"oe"),y={};m(y,{zeptomatch:d(()=>Ze,"zeptomatch")});var x=d(e=>{const t=new Set,r=[e];for(let a=0;a<r.length;a++){const o=r[a];if(t.has(o))continue;t.add(o);const{children:p}=o;if(p?.length)for(let f=0,w=p.length;f<w;f++)r.push(p[f])}return Array.from(t)},"M"),s=d(e=>{let t="";const r=x(e);for(let a=0,o=r.length;a<o;a++){const p=r[a];if(!p.regex)continue;const f=p.regex.flags;if(t||(t=f),t!==f)throw new Error(`Inconsistent RegExp flags used: "${t}" and "${f}"`)}return t},"se"),b=d((e,t,r)=>{const a=r.get(e);if(a!==void 0)return a;const o=e.partial??t;let p="";if(e.regex&&(p+=o?"(?:$|":"",p+=e.regex.source),e.children?.length){const f=S(e.children.map(w=>b(w,t,r)).filter(Boolean));if(f?.length){const w=e.children.some(pe=>!pe.regex||!(pe.partial??t)),z=f.length>1||o&&(!p.length||w);p+=z?o?"(?:$|":"(?:":"",p+=f.join("|"),p+=z?")":""}}return e.regex&&(p+=o?")":""),r.set(e,p),p},"O"),$=d((e,t)=>{const r=new Map,a=x(e);for(let o=a.length-1;o>=0;o--){const p=b(a[o],t,r);if(!(o>0))return p}return""},"ie"),S=d(e=>Array.from(new Set(e)),"ue"),I=d((e,t,r)=>I.compile(e,r).test(t),"R");I.compile=(e,t)=>{const r=t?.partial??!1,a=$(e,r),o=s(e);return new RegExp(`^(?:${a})$`,o)};var j=I,q=d((e,t)=>{const r=j.compile(e,t),a=`${r.source.slice(0,-1)}[\\\\/]?$`,o=r.flags;return new RegExp(a,o)},"le"),R=q,_=d(e=>{const t=e.map(a=>a.source).join("|")||"$^",r=e[0]?.flags;return new RegExp(t,r)},"ve"),O=_,N=d(e=>Array.isArray(e),"j"),A=d(e=>typeof e=="function","_"),L=d(e=>e.length===0,"he"),D=(()=>{const{toString:e}=Function.prototype,t=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return r=>(r.length===0||r.length===1)&&t.test(e.call(r))})(),k=d(e=>typeof e=="number","de"),U=d(e=>typeof e=="object"&&e!==null,"xe"),G=d(e=>e instanceof RegExp,"me"),C=(()=>{const e=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return t=>e.test(t.source)})(),Z=(()=>{const e=/^[a-zA-Z0-9_-]+$/;return t=>e.test(t.source)&&!t.flags.includes("i")})(),ne=d(e=>typeof e=="string","A"),P=d(e=>e===void 0,"f"),le=d(e=>{const t=new Map;return r=>{const a=t.get(r);if(a!==void 0)return a;const o=e(r);return t.set(r,o),o}},"ye"),M=d((e,t,r={})=>{const a={cache:{},input:e,index:0,indexBacktrackMax:0,options:r,output:[]},o=J(t)(a),p=Math.max(a.index,a.indexBacktrackMax);if(o&&a.index===e.length)return a.output;throw new Error(`Failed to parse at index ${p}`)},"I"),g=d((e,t)=>N(e)?E(e,t):ne(e)?oe(e,t):fe(e,t),"i"),E=d((e,t)=>{const r={};for(const a of e){if(a.length!==1)throw new Error(`Invalid character: "${a}"`);const o=a.charCodeAt(0);r[o]=!0}return a=>{const o=a.input;let p=a.index,f=p;for(;f<o.length&&o.charCodeAt(f)in r;)f+=1;if(f>p){if(!P(t)&&!a.options.silent){const w=o.slice(p,f),z=A(t)?t(w,o,`${p}`):t;P(z)||a.output.push(z)}a.index=f}return!0}},"we"),fe=d((e,t)=>{if(Z(e))return oe(e.source,t);{const r=e.source,a=e.flags.replace(/y|$/,"y"),o=new RegExp(r,a);return C(e)&&A(t)&&!D(t)?F(o,t):K(o,t)}},"$e"),F=d((e,t)=>r=>{const a=r.index,o=r.input;e.lastIndex=a;const p=e.exec(o);if(p){const f=e.lastIndex;if(!r.options.silent){const w=t(...p,o,`${a}`);P(w)||r.output.push(w)}return r.index=f,!0}else return!1},"Ee"),K=d((e,t)=>r=>{const a=r.index,o=r.input;if(e.lastIndex=a,e.test(o)){const p=e.lastIndex;if(!P(t)&&!r.options.silent){const f=A(t)?t(o.slice(a,p),o,`${a}`):t;P(f)||r.output.push(f)}return r.index=p,!0}else return!1},"Ce"),oe=d((e,t)=>r=>{const a=r.index,o=r.input;if(o.startsWith(e,a)){if(!P(t)&&!r.options.silent){const p=A(t)?t(e,o,`${a}`):t;P(p)||r.output.push(p)}return r.index+=e.length,!0}else return!1},"F"),X=d((e,t,r,a)=>{const o=J(e),p=t>1;return Oe(ye(Le(f=>{let w=0;for(;w<r;){const z=f.index;if(!o(f)||(w+=1,f.index===z))break}return w>=t},p),a))},"k"),qe=d((e,t)=>X(e,0,1,t),"L"),he=d((e,t)=>X(e,0,1/0,t),"$"),gt=d((e,t)=>X(e,1,1/0,t),"Re"),ae=d((e,t)=>{const r=e.map(J);return Oe(ye(Le(a=>{for(let o=0,p=r.length;o<p;o++)if(!r[o](a))return!1;return!0}),t))},"x"),V=d((e,t)=>{const r=e.map(J);return Oe(ye(a=>{for(let o=0,p=r.length;o<p;o++)if(r[o](a))return!0;return!1},t))},"p"),Le=d((e,t=!0,r=!1)=>{const a=J(e);return t?o=>{const p=o.index,f=o.output.length,w=a(o);return!w&&!r&&(o.indexBacktrackMax=Math.max(o.indexBacktrackMax,o.index)),(!w||r)&&(o.index=p,o.output.length!==f&&(o.output.length=f)),w}:a},"q"),ye=d((e,t)=>{const r=J(e);return t?a=>{if(a.options.silent)return r(a);const o=a.output.length;if(r(a)){const p=a.output.splice(o,1/0),f=t(p);return P(f)||a.output.push(f),!0}else return!1}:r},"B"),Oe=(()=>{let e=0;return t=>{const r=J(t),a=e+=1;return o=>{var p;if(o.options.memoization===!1)return r(o);const f=o.index,w=(p=o.cache)[a]||(p[a]={indexMax:-1,queue:[]}),z=w.queue;if(f<=w.indexMax){const de=w.store||(w.store=new Map);if(z.length){for(let se=0,yr=z.length;se<yr;se+=2){const Or=z[se*2],Sr=z[se*2+1];de.set(Or,Sr)}z.length=0}const Q=de.get(f);if(Q===!1)return!1;if(k(Q))return o.index=Q,!0;if(Q)return o.index=Q.index,Q.output?.length&&o.output.push(...Q.output),!0}const pe=o.output.length,Br=r(o);if(w.indexMax=Math.max(w.indexMax,f),Br){const de=o.index,Q=o.output.length;if(Q>pe){const se=o.output.slice(pe,Q);z.push(f,{index:de,output:se})}else z.push(f,de);return!0}else return z.push(f,!1),!1}}})(),ke=d(e=>{let t;return r=>(t||(t=J(e())),t(r))},"G"),J=le(e=>{if(A(e))return L(e)?ke(e):e;if(ne(e)||G(e))return g(e);if(N(e))return ae(e);if(U(e))return V(Object.values(e));throw new Error("Invalid rule")}),ee=d(e=>e,"d"),bt=d(e=>typeof e=="string","ke"),vt=d(e=>{const t=new WeakMap,r=new WeakMap;return(a,o)=>{const p=o?.partial?r:t,f=p.get(a);if(f!==void 0)return f;const w=e(a,o);return p.set(a,w),w}},"Be"),Bt=d(e=>{const t={},r={};return(a,o)=>{const p=o?.partial?r:t;return p[a]??(p[a]=e(a,o))}},"Pe"),yt=g(/\\./,ee),Ot=g(/./,ee),St=g(/\*\*\*+/,"*"),Ct=g(/([^/{[(!])\*\*/,(e,t)=>`${t}*`),wt=g(/(^|.)\*\*(?=[^*/)\]}])/,(e,t)=>`${t}*`),At=he(V([yt,St,Ct,wt,Ot])),$t=At,Mt=d(e=>M(e,$t,{memoization:!1}).join(""),"Ie"),Et=Mt,Ne="abcdefghijklmnopqrstuvwxyz",Rt=d(e=>{let t="";for(;e>0;){const r=(e-1)%26;t=Ne[r]+t,e=Math.floor((e-1)/26)}return t},"Le"),ze=d(e=>{let t=0;for(let r=0,a=e.length;r<a;r++)t=t*26+Ne.indexOf(e[r])+1;return t},"V"),Se=d((e,t)=>{if(t<e)return Se(t,e);const r=[];for(;e<=t;)r.push(e++);return r},"b"),It=d((e,t,r)=>Se(e,t).map(a=>String(a).padStart(r,"0")),"qe"),We=d((e,t)=>Se(ze(e),ze(t)).map(Rt),"W"),T=d(e=>({partial:!1,regex:new RegExp(e,"s"),children:[]}),"c"),ue=d(e=>({children:e}),"y"),ie=(()=>{const e=d((t,r,a)=>{if(a.has(t))return;a.add(t);const{children:o}=t;if(!o.length)o.push(r);else for(let p=0,f=o.length;p<f;p++)e(o[p],r,a)},"e");return t=>{if(!t.length)return ue([]);for(let r=t.length-1;r>=1;r--){const a=new Set,o=t[r-1],p=t[r];e(o,p,a)}return t[0]}})(),Y=d(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),jt=g(/\\./,T),Pt=g(/[$.*+?^(){}[\]\|]/,e=>T(`\\${e}`)),_t=g(/[\\\/]/,Y),Tt=g(/[^$.*+?^(){}[\]\|\\\/]+/,T),qt=g(/^(?:!!)*!(.*)$/,(e,t)=>T(`(?!^${Ze.compile(t).source}$).*?`)),Lt=g(/^(!!)+/),kt=V([qt,Lt]),Nt=g(/\/(\*\*\/)+/,()=>ue([ie([Y(),T(".+?"),Y()]),Y()])),zt=g(/^(\*\*\/)+/,()=>ue([T("^"),ie([T(".*?"),Y()])])),Wt=g(/\/(\*\*)$/,()=>ue([ie([Y(),T(".*?")]),T("$")])),Dt=g(/\*\*/,()=>T(".*?")),De=V([Nt,zt,Wt,Dt]),Ut=g(/\*\/(?!\*\*\/|\*$)/,()=>ie([T("[^\\\\/]*?"),Y()])),Gt=g(/\*/,()=>T("[^\\\\/]*")),Ue=V([Ut,Gt]),Ge=g("?",()=>T("[^\\\\/]")),Ft=g("[",ee),Vt=g("]",ee),Qt=g(/[!^]/,"^\\\\/"),Ht=g(/[a-z]-[a-z]|[0-9]-[0-9]/i,ee),Zt=g(/\\./,ee),Jt=g(/[$.*+?^(){}[\|]/,e=>`\\${e}`),Yt=g(/[\\\/]/,"\\\\/"),Kt=g(/[^$.*+?^(){}[\]\|\\\/]+/,ee),Xt=V([Zt,Jt,Yt,Ht,Kt]),Fe=ae([Ft,qe(Qt),he(Xt),Vt],e=>T(e.join(""))),er=g("{","(?:"),tr=g("}",")"),rr=g(/(\d+)\.\.(\d+)/,(e,t,r)=>It(+t,+r,Math.min(t.length,r.length)).join("|")),nr=g(/([a-z]+)\.\.([a-z]+)/,(e,t,r)=>We(t,r).join("|")),or=g(/([A-Z]+)\.\.([A-Z]+)/,(e,t,r)=>We(t.toLowerCase(),r.toLowerCase()).join("|").toUpperCase()),ar=V([rr,nr,or]),Ve=ae([er,ar,tr],e=>T(e.join(""))),ir=g("{"),sr=g("}"),cr=g(","),lr=g(/\\./,T),ur=g(/[$.*+?^(){[\]\|]/,e=>T(`\\${e}`)),pr=g(/[\\\/]/,Y),dr=g(/[^$.*+?^(){}[\]\|\\\/,]+/,T),mr=ke(()=>He),fr=g("",()=>T("(?:)")),hr=gt(V([De,Ue,Ge,Fe,Ve,mr,lr,ur,pr,dr]),ie),Qe=V([hr,fr]),He=ae([ir,qe(ae([Qe,he(ae([cr,Qe]))])),sr],ue),xr=he(V([kt,De,Ue,Ge,Fe,Ve,He,jt,Pt,_t,Tt]),ie),gr=xr,br=d(e=>M(e,gr,{memoization:!1})[0],"kr"),vr=br,Ce=d((e,t,r)=>Ce.compile(e,r).test(t),"N");Ce.compile=(()=>{const e=Bt((r,a)=>R(vr(Et(r)),a)),t=vt((r,a)=>O(r.map(o=>e(o,a))));return(r,a)=>bt(r)?e(r,a):t(r,a)})();var Ze=Ce;return v(y)})();return n.default||n},"_lazyMatch"),we;const _r=d((n,i)=>(we||(we=Ke(),Ke=null),we(n,i)),"default");var Tr=Object.defineProperty,qr=Te((n,i)=>Tr(n,"name",{value:i,configurable:!0}),"t$1");const Lr=/^[A-Z]:\//i,re=qr((n="")=>n&&n.replaceAll("\\","/").replace(Lr,i=>i.toUpperCase()),"normalizeWindowsPath");var kr=Object.defineProperty,W=Te((n,i)=>kr(n,"name",{value:i,configurable:!0}),"r");const Nr=/^[/\\]{2}/,zr=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,ft=/^[A-Z]:$/i,Xe=/^\/([A-Z]:)?$/i,Wr=/.(\.[^./]+)$/,Dr=/^[/\\]|^[a-z]:[/\\]/i,Ur=W(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),et="/",ht=W((n,i)=>{let l="",c=0,u=-1,m=0,h;for(let v=0;v<=n.length;++v){if(v<n.length)h=n[v];else{if(h==="/")break;h="/"}if(h==="/"){if(!(u===v-1||m===1))if(m===2){if(l.length<2||c!==2||!l.endsWith(".")||l.at(-2)!=="."){if(l.length>2){const y=l.lastIndexOf("/");y===-1?(l="",c=0):(l=l.slice(0,y),c=l.length-1-l.lastIndexOf("/")),u=v,m=0;continue}else if(l.length>0){l="",c=0,u=v,m=0;continue}}i&&(l+=l.length>0?"/..":"..",c=2)}else l.length>0?l+=`/${n.slice(u+1,v)}`:l=n.slice(u+1,v),c=v-u-1;u=v,m=0}else h==="."&&m!==-1?++m:m=-1}return l},"normalizeString"),te=W(n=>zr.test(n),"isAbsolute"),be=W(function(n){if(n.length===0)return".";n=re(n);const i=Nr.exec(n),l=te(n),c=n.at(-1)==="/";return n=ht(n,!l),n.length===0?l?"/":c?"./":".":(c&&(n+="/"),ft.test(n)&&(n+="/"),i?l?`//${n}`:`//./${n}`:l&&!te(n)?`/${n}`:n)},"normalize");W((...n)=>{let i="";for(const l of n)if(l)if(i.length>0){const c=i[i.length-1]==="/",u=l[0]==="/";c&&u?i+=l.slice(1):i+=c||u?l:`/${l}`}else i+=l;return be(i)},"join");const ve=W(function(...n){n=n.map(c=>re(c));let i="",l=!1;for(let c=n.length-1;c>=-1&&!l;c--){const u=c>=0?n[c]:Ur();!u||u.length===0||(i=`${u}/${i}`,l=te(u))}return i=ht(i,!l),l&&!te(i)?`/${i}`:i.length>0?i:"."},"resolve");W(function(n){return re(n)},"toNamespacedPath");const Gr=W(function(n){return Wr.exec(re(n))?.[1]??""},"extname"),Fr=W(function(n,i){const l=ve(n).replace(Xe,"$1").split("/"),c=ve(i).replace(Xe,"$1").split("/");if(c[0][1]===":"&&l[0][1]===":"&&l[0]!==c[0])return c.join("/");const u=[...l];for(const m of u){if(c[0]!==m)break;l.shift(),c.shift()}return[...l.map(()=>".."),...c].join("/")},"relative"),Vr=W(n=>{const i=re(n).replace(/\/$/,"").split("/").slice(0,-1);return i.length===1&&ft.test(i[0])&&(i[0]+="/"),i.join("/")||(te(n)?"/":".")},"dirname");W(function(n){const i=[n.root,n.dir,n.base??n.name+n.ext].filter(Boolean);return re(n.root?ve(...i):i.join("/"))},"format");const Qr=W((n,i)=>{const l=re(n).split("/").pop();return i&&l.endsWith(i)?l.slice(0,-i.length):l},"basename");W(function(n){const i=Dr.exec(n)?.[0]?.replaceAll("\\","/")??"",l=Qr(n),c=Gr(l);return{base:l,dir:Vr(n),ext:c,name:l.slice(0,l.length-c.length),root:i}},"parse");W((n,i)=>_r(i,be(n)),"matchesGlob");function Hr(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}B(Hr,"getDefaultExportFromCjs");var xe={exports:{}},tt;function Zr(){if(tt)return xe.exports;tt=1;var n=Object.defineProperty,i=B((x,s)=>n(x,"name",{value:s,configurable:!0}),"t");let l=process||{},c=l.argv||[],u=l.env||{},m=!(u.NO_COLOR||c.includes("--no-color"))&&(!!u.FORCE_COLOR||c.includes("--color")||l.platform==="win32"||(l.stdout||{}).isTTY&&u.TERM!=="dumb"||!!u.CI),h=i((x,s,b=x)=>$=>{let S=""+$,I=S.indexOf(s,x.length);return~I?x+v(S,s,b,I)+s:x+S+s},"formatter"),v=i((x,s,b,$)=>{let S="",I=0;do S+=x.substring(I,$)+b,I=$+s.length,$=x.indexOf(s,I);while(~$);return S+x.substring(I)},"replaceClose"),y=i((x=m)=>{let s=x?h:()=>String;return{isColorSupported:x,reset:s("\x1B[0m","\x1B[0m"),bold:s("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:s("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:s("\x1B[3m","\x1B[23m"),underline:s("\x1B[4m","\x1B[24m"),inverse:s("\x1B[7m","\x1B[27m"),hidden:s("\x1B[8m","\x1B[28m"),strikethrough:s("\x1B[9m","\x1B[29m"),black:s("\x1B[30m","\x1B[39m"),red:s("\x1B[31m","\x1B[39m"),green:s("\x1B[32m","\x1B[39m"),yellow:s("\x1B[33m","\x1B[39m"),blue:s("\x1B[34m","\x1B[39m"),magenta:s("\x1B[35m","\x1B[39m"),cyan:s("\x1B[36m","\x1B[39m"),white:s("\x1B[37m","\x1B[39m"),gray:s("\x1B[90m","\x1B[39m"),bgBlack:s("\x1B[40m","\x1B[49m"),bgRed:s("\x1B[41m","\x1B[49m"),bgGreen:s("\x1B[42m","\x1B[49m"),bgYellow:s("\x1B[43m","\x1B[49m"),bgBlue:s("\x1B[44m","\x1B[49m"),bgMagenta:s("\x1B[45m","\x1B[49m"),bgCyan:s("\x1B[46m","\x1B[49m"),bgWhite:s("\x1B[47m","\x1B[49m"),blackBright:s("\x1B[90m","\x1B[39m"),redBright:s("\x1B[91m","\x1B[39m"),greenBright:s("\x1B[92m","\x1B[39m"),yellowBright:s("\x1B[93m","\x1B[39m"),blueBright:s("\x1B[94m","\x1B[39m"),magentaBright:s("\x1B[95m","\x1B[39m"),cyanBright:s("\x1B[96m","\x1B[39m"),whiteBright:s("\x1B[97m","\x1B[39m"),bgBlackBright:s("\x1B[100m","\x1B[49m"),bgRedBright:s("\x1B[101m","\x1B[49m"),bgGreenBright:s("\x1B[102m","\x1B[49m"),bgYellowBright:s("\x1B[103m","\x1B[49m"),bgBlueBright:s("\x1B[104m","\x1B[49m"),bgMagentaBright:s("\x1B[105m","\x1B[49m"),bgCyanBright:s("\x1B[106m","\x1B[49m"),bgWhiteBright:s("\x1B[107m","\x1B[49m")}},"createColors");return xe.exports=y(),xe.exports.createColors=y,xe.exports}B(Zr,"requirePicocolors");var ge={},Ae,rt;function Jr(){if(rt)return Ae;rt=1;var n=Object.defineProperty,i=B((l,c)=>n(l,"name",{value:c,configurable:!0}),"n");return Ae=i(function(l){return l.map(function(c){return c===""?"''":c&&typeof c=="object"?c.op.replace(/(.)/g,"\\$1"):/["\s\\]/.test(c)&&!/'/.test(c)?"'"+c.replace(/(['])/g,"\\$1")+"'":/["'\s]/.test(c)?'"'+c.replace(/(["\\$`!])/g,"\\$1")+'"':String(c).replace(/([A-Za-z]:)?([#!"$&'()*,:;<=>?@[\\\]^`{|}])/g,"$1\\$2")}).join(" ")},"quote"),Ae}B(Jr,"requireQuote");var $e,nt;function Yr(){if(nt)return $e;nt=1;for(var n=Object.defineProperty,i=B((_,O)=>n(_,"name",{value:O,configurable:!0}),"c"),l="(?:"+["\\|\\|","\\&\\&",";;","\\|\\&","\\<\\(","\\<\\<\\<",">>",">\\&","<\\&","[&;()|<>]"].join("|")+")",c=new RegExp("^"+l+"$"),u="|&;()<> \\t",m='"((\\\\"|[^"])*?)"',h="'((\\\\'|[^'])*?)'",v=/^#$/,y="'",x='"',s="$",b="",$=4294967296,S=0;S<4;S++)b+=($*Math.random()).toString(16);var I=new RegExp("^"+b);function j(_,O){for(var N=O.lastIndex,A=[],L;L=O.exec(_);)A.push(L),O.lastIndex===L.index&&(O.lastIndex+=1);return O.lastIndex=N,A}B(j,"matchAll"),i(j,"matchAll");function q(_,O,N){var A=typeof _=="function"?_(N):_[N];return typeof A>"u"&&N!=""?A="":typeof A>"u"&&(A="$"),typeof A=="object"?O+b+JSON.stringify(A)+b:O+A}B(q,"getVar"),i(q,"getVar");function R(_,O,N){N||(N={});var A=N.escape||"\\",L="(\\"+A+`['"`+u+`]|[^\\s'"`+u+"])+",D=new RegExp(["("+l+")","("+L+"|"+m+"|"+h+")+"].join("|"),"g"),k=j(_,D);if(k.length===0)return[];O||(O={});var U=!1;return k.map(function(G){var C=G[0];if(!C||U)return;if(c.test(C))return{op:C};var Z=!1,ne=!1,P="",le=!1,M;function g(){M+=1;var F,K,oe=C.charAt(M);if(oe==="{"){if(M+=1,C.charAt(M)==="}")throw new Error("Bad substitution: "+C.slice(M-2,M+1));if(F=C.indexOf("}",M),F<0)throw new Error("Bad substitution: "+C.slice(M));K=C.slice(M,F),M=F}else if(/[*@#?$!_-]/.test(oe))K=oe,M+=1;else{var X=C.slice(M);F=X.match(/[^\w\d_]/),F?(K=X.slice(0,F.index),M+=F.index-1):(K=X,M=C.length)}return q(O,"",K)}for(B(g,"R"),i(g,"parseEnvVar"),M=0;M<C.length;M++){var E=C.charAt(M);if(le=le||!Z&&(E==="*"||E==="?"),ne)P+=E,ne=!1;else if(Z)E===Z?Z=!1:Z==y?P+=E:E===A?(M+=1,E=C.charAt(M),E===x||E===A||E===s?P+=E:P+=A+E):E===s?P+=g():P+=E;else if(E===x||E===y)Z=E;else{if(c.test(E))return{op:C};if(v.test(E)){U=!0;var fe={comment:_.slice(G.index+M+1)};return P.length?[P,fe]:[fe]}else E===A?ne=!0:E===s?P+=g():P+=E}}return le?{op:"glob",pattern:P}:P}).reduce(function(G,C){return typeof C>"u"?G:G.concat(C)},[])}return B(R,"parseInternal"),i(R,"parseInternal"),$e=i(function(_,O,N){var A=R(_,O,N);return typeof O!="function"?A:A.reduce(function(L,D){if(typeof D=="object")return L.concat(D);var k=D.split(RegExp("("+b+".*?"+b+")","g"));return k.length===1?L.concat(k[0]):L.concat(k.filter(Boolean).map(function(U){return I.test(U)?JSON.parse(U.split(b)[1]):U}))},[])},"parse"),$e}B(Yr,"requireParse");var ot;function Kr(){return ot||(ot=1,ge.quote=Jr(),ge.parse=Yr()),ge}B(Kr,"requireShellQuote");var Me,at;function Xr(){return at||(at=1,Me={"/Applications/Atom.app/Contents/MacOS/Atom":"atom","/Applications/Atom Beta.app/Contents/MacOS/Atom Beta":"/Applications/Atom Beta.app/Contents/MacOS/Atom Beta","/Applications/Brackets.app/Contents/MacOS/Brackets":"brackets","/Applications/Sublime Text.app/Contents/MacOS/Sublime Text":"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl","/Applications/Sublime Text.app/Contents/MacOS/sublime_text":"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl","/Applications/Sublime Text 2.app/Contents/MacOS/Sublime Text 2":"/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl","/Applications/Sublime Text Dev.app/Contents/MacOS/Sublime Text":"/Applications/Sublime Text Dev.app/Contents/SharedSupport/bin/subl","/Applications/Visual Studio Code.app/Contents/MacOS/Electron":"code","/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Electron":"code-insiders","/Applications/VSCodium.app/Contents/MacOS/Electron":"codium","/Applications/Cursor.app/Contents/MacOS/Cursor":"cursor","/Applications/Trae.app/Contents/MacOS/Electron":"trae","/Applications/AppCode.app/Contents/MacOS/appcode":"/Applications/AppCode.app/Contents/MacOS/appcode","/Applications/CLion.app/Contents/MacOS/clion":"/Applications/CLion.app/Contents/MacOS/clion","/Applications/IntelliJ IDEA.app/Contents/MacOS/idea":"/Applications/IntelliJ IDEA.app/Contents/MacOS/idea","/Applications/IntelliJ IDEA Ultimate.app/Contents/MacOS/idea":"/Applications/IntelliJ IDEA Ultimate.app/Contents/MacOS/idea","/Applications/IntelliJ IDEA Community Edition.app/Contents/MacOS/idea":"/Applications/IntelliJ IDEA Community Edition.app/Contents/MacOS/idea","/Applications/PhpStorm.app/Contents/MacOS/phpstorm":"/Applications/PhpStorm.app/Contents/MacOS/phpstorm","/Applications/PyCharm.app/Contents/MacOS/pycharm":"/Applications/PyCharm.app/Contents/MacOS/pycharm","/Applications/PyCharm CE.app/Contents/MacOS/pycharm":"/Applications/PyCharm CE.app/Contents/MacOS/pycharm","/Applications/RubyMine.app/Contents/MacOS/rubymine":"/Applications/RubyMine.app/Contents/MacOS/rubymine","/Applications/WebStorm.app/Contents/MacOS/webstorm":"/Applications/WebStorm.app/Contents/MacOS/webstorm","/Applications/MacVim.app/Contents/MacOS/MacVim":"mvim","/Applications/GoLand.app/Contents/MacOS/goland":"/Applications/GoLand.app/Contents/MacOS/goland","/Applications/Rider.app/Contents/MacOS/rider":"/Applications/Rider.app/Contents/MacOS/rider","/Applications/Zed.app/Contents/MacOS/zed":"zed"}),Me}B(Xr,"requireMacos");var Ee,it;function en(){return it||(it=1,Ee={atom:"atom",Brackets:"brackets","code-insiders":"code-insiders",code:"code",vscodium:"vscodium",codium:"codium",cursor:"cursor",trae:"trae",emacs:"emacs",gvim:"gvim",idea:"idea","idea.sh":"idea",phpstorm:"phpstorm","phpstorm.sh":"phpstorm",pycharm:"pycharm","pycharm.sh":"pycharm",rubymine:"rubymine","rubymine.sh":"rubymine",sublime_text:"subl",vim:"vim",webstorm:"webstorm","webstorm.sh":"webstorm",goland:"goland","goland.sh":"goland",rider:"rider","rider.sh":"rider",zed:"zed"}),Ee}B(en,"requireLinux");var Re,st;function tn(){return st||(st=1,Re=["Brackets.exe","Code.exe","Code - Insiders.exe","VSCodium.exe","Cursor.exe","atom.exe","sublime_text.exe","notepad++.exe","clion.exe","clion64.exe","idea.exe","idea64.exe","phpstorm.exe","phpstorm64.exe","pycharm.exe","pycharm64.exe","rubymine.exe","rubymine64.exe","webstorm.exe","webstorm64.exe","goland.exe","goland64.exe","rider.exe","rider64.exe","trae.exe"]),Re}B(tn,"requireWindows");var Ie,ct;function rn(){if(ct)return Ie;ct=1;var n=Object.defineProperty,i=B((y,x)=>n(y,"name",{value:x,configurable:!0}),"u");const l=Be,c=Kr(),u=mt,m=Xr(),h=en(),v=tn();return Ie=i(function(y){if(y)return c.parse(y);if(process.env.LAUNCH_EDITOR)return[process.env.LAUNCH_EDITOR];if(process.versions.webcontainer)return[process.env.EDITOR||"code"];try{if(process.platform==="darwin"){const x=u.execSync("ps x -o comm=",{stdio:["pipe","pipe","ignore"]}).toString(),s=Object.keys(m),b=x.split(`
2
- `);for(let $=0;$<s.length;$++){const S=s[$];if(b.includes(S))return[m[S]];const I=S.replace("/Applications","");if(x.indexOf(I)!==-1){if(S!==m[S])return[m[S]];const j=b.find(q=>q.endsWith(I));if(j!==void 0)return[j]}}}else if(process.platform==="win32"){const x=u.execSync('powershell -NoProfile -Command "[Console]::OutputEncoding=[Text.Encoding]::UTF8;Get-CimInstance -Query \\"select executablepath from win32_process where executablepath is not null\\" | % { $_.ExecutablePath }"',{stdio:["pipe","pipe","ignore"]}).toString().split(`\r
3
- `);for(let s=0;s<x.length;s++){const b=x[s].trim(),$=l.basename(b);if(v.indexOf($)!==-1)return[b]}}else if(process.platform==="linux"){const x=u.execSync("ps x --no-heading -o comm --sort=comm",{stdio:["pipe","pipe","ignore"]}).toString(),s=Object.keys(h);for(let b=0;b<s.length;b++){const $=s[b];if(x.indexOf($)!==-1)return[h[$]]}}}catch{}return process.env.VISUAL?[process.env.VISUAL]:process.env.EDITOR?[process.env.EDITOR]:[null]},"guessEditor"),Ie}B(rn,"requireGuess");var je,lt;function nn(){if(lt)return je;lt=1;var n=Object.defineProperty,i=B((c,u)=>n(c,"name",{value:u,configurable:!0}),"r");const l=Be;return je=i(function(c,u,m,h=1){switch(l.basename(c).replace(/\.(exe|cmd|bat)$/i,"")){case"atom":case"Atom":case"Atom Beta":case"subl":case"sublime":case"sublime_text":case"wstorm":case"charm":case"zed":return[`${u}:${m}:${h}`];case"notepad++":return["-n"+m,"-c"+h,u];case"vim":case"mvim":return[`+call cursor(${m}, ${h})`,u];case"joe":case"gvim":return[`+${m}`,u];case"emacs":case"emacsclient":return[`+${m}:${h}`,u];case"rmate":case"mate":case"mine":return["--line",m,u];case"code":case"Code":case"code-insiders":case"Code - Insiders":case"codium":case"trae":case"cursor":case"vscodium":case"VSCodium":return["-r","-g",`${u}:${m}:${h}`];case"appcode":case"clion":case"clion64":case"idea":case"idea64":case"phpstorm":case"phpstorm64":case"pycharm":case"pycharm64":case"rubymine":case"rubymine64":case"webstorm":case"webstorm64":case"goland":case"goland64":case"rider":case"rider64":return["--line",m,"--column",h,u]}return process.env.LAUNCH_EDITOR?[u,m,h]:[u]},"getArgumentsForPosition"),je}B(nn,"requireGetArgs");var Pe,ut;function on(){if(ut)return Pe;ut=1;var n=Object.defineProperty,i=B((j,q)=>n(j,"name",{value:q,configurable:!0}),"c");const l=$r,c=Mr,u=Be,m=Zr(),h=mt,v=rn(),y=nn();function x(j){return(q,R)=>{console.log(),console.log(m.red("Could not open "+u.basename(q)+" in the editor.")),R&&(R[R.length-1]!=="."&&(R+="."),console.log(m.red("The editor process exited with an error: "+R))),console.log(),j&&j(q,R)}}B(x,"wrapErrorCallback"),i(x,"wrapErrorCallback");function s(j){switch(j){case"vim":case"emacs":case"nano":return!0}return!1}B(s,"isTerminalEditor"),i(s,"isTerminalEditor");const b=/:(\d+)(:(\d+))?$/;function $(j){j.startsWith("file://")&&(j=Er.fileURLToPath(j));const q=j.replace(b,""),R=j.match(b),_=R&&R[1],O=R&&R[3];return{fileName:q,lineNumber:_,columnNumber:O}}B($,"parseFile"),i($,"parseFile");let S=null;function I(j,q,R){const _=$(j);let{fileName:O}=_;const{lineNumber:N,columnNumber:A}=_;if(!l.existsSync(O))return;typeof q=="function"&&(R=q,q=void 0),R=x(R);const[L,...D]=v(q);if(!L){R(O,null);return}if(process.platform==="linux"&&O.startsWith("/mnt/")&&/Microsoft/i.test(c.release())&&(O=u.relative("",O)),N){const k=y(L,O,N,A);D.push.apply(D,k)}else D.push(O);if(S&&s(L)&&S.kill("SIGKILL"),process.platform==="win32"){let k=B(function(C){return C.replace(/([&|<>,;=^])/g,"^$1")},"i"),U=B(function(C){return C.includes("^")?`^"${C}^"`:C.includes(" ")?`"${C}"`:C},"a");i(k,"escapeCmdArgs"),i(U,"doubleQuoteIfNeeded");const G=[L,...D.map(k)].map(U).join(" ");S=h.exec(G,{stdio:"inherit",shell:!0})}else S=h.spawn(L,D,{stdio:"inherit"});S.on("exit",function(k){S=null,k&&R(O,"(code "+k+")")}),S.on("error",function(k){let{code:U,message:G}=k;U==="ENOENT"&&(G=`${G} ('${L}' command does not exist in 'PATH')`),R(O,G)})}return B(I,"launchEditor"),i(I,"launchEditor"),Pe=I,Pe}B(on,"requireLaunchEditor");var _e,pt;function an(){if(pt)return _e;pt=1;var n=Object.defineProperty,i=B((u,m)=>n(u,"name",{value:m,configurable:!0}),"r");const l=Be,c=on();return _e=B((u,m,h)=>(typeof u=="function"&&(h=u,u=void 0),typeof m=="function"&&(h=m,m=void 0),m=m||process.cwd(),i(function(v,y){let x;try{const b=v.url.startsWith("http")?v.url:`http://localhost${v.url}`;x=new URL(b)}catch{y.statusCode=500,y.end("launch-editor-middleware: invalid URL.");return}const s=x.searchParams.get("file");if(!s)y.statusCode=500,y.end('launch-editor-middleware: required query param "file" is missing.');else{const b=s.startsWith("file://")?s:l.resolve(m,s);c(b,u,h),y.end()}},"launchEditorMiddleware")),"launchEditorMiddleware"),_e}B(an,"requireLaunchEditorMiddleware");var sn=an();const cn=Hr(sn);var ln=Object.defineProperty,H=B((n,i)=>ln(n,"name",{value:i,configurable:!0}),"a");const dt=H(n=>{if(typeof n.status=="function"){n.status(400).send("Failed to open editor");return}n.statusCode=400,n.end("Failed to open editor")},"respond400"),xt=H((n={})=>{const i=H(async c=>{if(String(c.method||"GET").toUpperCase()==="POST")return c.body&&typeof c.body=="object"?c.body:new Promise(m=>{try{let h="";const v=H(x=>{h+=String(x)},"onData"),y=H(()=>{try{m(h?JSON.parse(h):{})}catch{m({})}},"onEnd");c.on("data",v),c.on("end",y),c.on("error",()=>m({}))}catch{m({})}});const u=new URL(c.url||"","http://localhost");return{column:Number(u.searchParams.get("column")||1),editor:u.searchParams.get("editor")||void 0,file:u.searchParams.get("file")||void 0,line:Number(u.searchParams.get("line")||1)}},"parseRequestBody"),l=H((c,u,m)=>{if(!c)return;const h=te(c)?c:ve(u,c);if(!m)try{const v=Je(u),y=Je(h),x=be(v),s=be(y),b=Ye()==="win32"||Ye()==="darwin",$=b?x.toLowerCase():x,S=b?s.toLowerCase():s,I=Fr(x,s);if(I.startsWith("..")||te(I)||b&&!S.startsWith($))return}catch{const v=u.endsWith(et)?u:u+et;if(!h.startsWith(v))return}return h},"validateFilePath");return H(async function(c,u,m){try{const h=await i(c),v=n.projectRoot??process.cwd(),y=l(h.file,v,n.allowOutsideProject??!1);if(!y){dt(u);return}const x=cn(h.editor,v),s=new URLSearchParams({column:String(h.column??1),file:y,line:String(h.line??1)});if(h.editor&&s.set("editor",String(h.editor)),c.url=`/?${s.toString()}`,typeof m=="function"){x(c,u,m);return}await new Promise(b=>{x(c,u,()=>{b()})})}catch{dt(u)}},"universalHandler")},"createOpenInEditorMiddleware"),mn=H((n={})=>{const i=xt(n);return async(l,c)=>i(l,c)},"createNodeHttpHandler"),fn=H((n={})=>xt(n),"createExpressHandler");export{fn as createExpressHandler,mn as createNodeHttpHandler,xt as createOpenInEditorMiddleware};
1
+ var Yt=Object.defineProperty;var T=(s,a)=>Yt(s,"name",{value:a,configurable:!0});import{createRequire as en}from"node:module";import rn from"launch-editor-middleware";import{a as be}from"../packem_shared/process-BO_aZsiL.js";const tn=en(import.meta.url),H=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,nn=T(s=>{if(typeof H<"u"&&H.versions&&H.versions.node){const[a,i]=H.versions.node.split(".").map(Number);if(a>22||a===22&&i>=3||a===20&&i>=16)return H.getBuiltinModule(s)}return tn(s)},"__cjs_getBuiltinModule"),{realpathSync:we}=nn("node:fs");var on=Object.defineProperty,sn=T((s,a)=>on(s,"name",{value:a,configurable:!0}),"$e"),an=Object.defineProperty,te=sn((s,a)=>an(s,"name",{value:a,configurable:!0}),"W"),ln=Object.defineProperty,c=te((s,a)=>ln(s,"name",{value:a,configurable:!0}),"u$1");let ve=c(()=>{var s=(()=>{var a=Object.defineProperty,i=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,g=c((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})},"ne"),x=c((e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of u(t))!d.call(e,r)&&r!==n&&a(e,r,{get:c(()=>t[r],"get"),enumerable:!(o=i(t,r))||o.enumerable});return e},"ae"),m=c(e=>x(a({},"__esModule",{value:!0}),e),"oe"),b={};g(b,{zeptomatch:c(()=>ye,"zeptomatch")});var v=c(e=>{const t=new Set,n=[e];for(let o=0;o<n.length;o++){const r=n[o];if(t.has(r))continue;t.add(r);const{children:l}=r;if(l?.length)for(let f=0,h=l.length;f<h;f++)n.push(l[f])}return Array.from(t)},"M"),O=c(e=>{let t="";const n=v(e);for(let o=0,r=n.length;o<r;o++){const l=n[o];if(!l.regex)continue;const f=l.regex.flags;if(t||(t=f),t!==f)throw new Error(`Inconsistent RegExp flags used: "${t}" and "${f}"`)}return t},"se"),_=c((e,t,n)=>{const o=n.get(e);if(o!==void 0)return o;const r=e.partial??t;let l="";if(e.regex&&(l+=r?"(?:$|":"",l+=e.regex.source),e.children?.length){const f=J(e.children.map(h=>_(h,t,n)).filter(Boolean));if(f?.length){const h=e.children.some(L=>!L.regex||!(L.partial??t)),y=f.length>1||r&&(!l.length||h);l+=y?r?"(?:$|":"(?:":"",l+=f.join("|"),l+=y?")":""}}return e.regex&&(l+=r?")":""),n.set(e,l),l},"O"),D=c((e,t)=>{const n=new Map,o=v(e);for(let r=o.length-1;r>=0;r--){const l=_(o[r],t,n);if(!(r>0))return l}return""},"ie"),J=c(e=>Array.from(new Set(e)),"ue"),I=c((e,t,n)=>I.compile(e,n).test(t),"R");I.compile=(e,t)=>{const n=t?.partial??!1,o=D(e,n),r=O(e);return new RegExp(`^(?:${o})$`,r)};var Ae=I,Ee=c((e,t)=>{const n=Ae.compile(e,t),o=`${n.source.slice(0,-1)}[\\\\/]?$`,r=n.flags;return new RegExp(o,r)},"le"),Re=Ee,ke=c(e=>{const t=e.map(o=>o.source).join("|")||"$^",n=e[0]?.flags;return new RegExp(t,n)},"ve"),Se=ke,ne=c(e=>Array.isArray(e),"j"),q=c(e=>typeof e=="function","_"),Ie=c(e=>e.length===0,"he"),Be=(()=>{const{toString:e}=Function.prototype,t=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return n=>(n.length===0||n.length===1)&&t.test(e.call(n))})(),We=c(e=>typeof e=="number","de"),Ce=c(e=>typeof e=="object"&&e!==null,"xe"),qe=c(e=>e instanceof RegExp,"me"),Ne=(()=>{const e=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return t=>e.test(t.source)})(),Le=(()=>{const e=/^[a-zA-Z0-9_-]+$/;return t=>e.test(t.source)&&!t.flags.includes("i")})(),re=c(e=>typeof e=="string","A"),z=c(e=>e===void 0,"f"),Ze=c(e=>{const t=new Map;return n=>{const o=t.get(n);if(o!==void 0)return o;const r=e(n);return t.set(n,r),r}},"ye"),oe=c((e,t,n={})=>{const o={cache:{},input:e,index:0,indexBacktrackMax:0,options:n,output:[]},r=A(t)(o),l=Math.max(o.index,o.indexBacktrackMax);if(r&&o.index===e.length)return o.output;throw new Error(`Failed to parse at index ${l}`)},"I"),p=c((e,t)=>ne(e)?He(e,t):re(e)?se(e,t):Fe(e,t),"i"),He=c((e,t)=>{const n={};for(const o of e){if(o.length!==1)throw new Error(`Invalid character: "${o}"`);const r=o.charCodeAt(0);n[r]=!0}return o=>{const r=o.input;let l=o.index,f=l;for(;f<r.length&&r.charCodeAt(f)in n;)f+=1;if(f>l){if(!z(t)&&!o.options.silent){const h=r.slice(l,f),y=q(t)?t(h,r,`${l}`):t;z(y)||o.output.push(y)}o.index=f}return!0}},"we"),Fe=c((e,t)=>{if(Le(e))return se(e.source,t);{const n=e.source,o=e.flags.replace(/y|$/,"y"),r=new RegExp(n,o);return Ne(e)&&q(t)&&!Be(t)?Te(r,t):Ue(r,t)}},"$e"),Te=c((e,t)=>n=>{const o=n.index,r=n.input;e.lastIndex=o;const l=e.exec(r);if(l){const f=e.lastIndex;if(!n.options.silent){const h=t(...l,r,`${o}`);z(h)||n.output.push(h)}return n.index=f,!0}else return!1},"Ee"),Ue=c((e,t)=>n=>{const o=n.index,r=n.input;if(e.lastIndex=o,e.test(r)){const l=e.lastIndex;if(!z(t)&&!n.options.silent){const f=q(t)?t(r.slice(o,l),r,`${o}`):t;z(f)||n.output.push(f)}return n.index=l,!0}else return!1},"Ce"),se=c((e,t)=>n=>{const o=n.index,r=n.input;if(r.startsWith(e,o)){if(!z(t)&&!n.options.silent){const l=q(t)?t(e,r,`${o}`):t;z(l)||n.output.push(l)}return n.index+=e.length,!0}else return!1},"F"),V=c((e,t,n,o)=>{const r=A(e),l=t>1;return Q(K(ie(f=>{let h=0;for(;h<n;){const y=f.index;if(!r(f)||(h+=1,f.index===y))break}return h>=t},l),o))},"k"),ae=c((e,t)=>V(e,0,1,t),"L"),F=c((e,t)=>V(e,0,1/0,t),"$"),Ge=c((e,t)=>V(e,1,1/0,t),"Re"),B=c((e,t)=>{const n=e.map(A);return Q(K(ie(o=>{for(let r=0,l=n.length;r<l;r++)if(!n[r](o))return!1;return!0}),t))},"x"),j=c((e,t)=>{const n=e.map(A);return Q(K(o=>{for(let r=0,l=n.length;r<l;r++)if(n[r](o))return!0;return!1},t))},"p"),ie=c((e,t=!0,n=!1)=>{const o=A(e);return t?r=>{const l=r.index,f=r.output.length,h=o(r);return!h&&!n&&(r.indexBacktrackMax=Math.max(r.indexBacktrackMax,r.index)),(!h||n)&&(r.index=l,r.output.length!==f&&(r.output.length=f)),h}:o},"q"),K=c((e,t)=>{const n=A(e);return t?o=>{if(o.options.silent)return n(o);const r=o.output.length;if(n(o)){const l=o.output.splice(r,1/0),f=t(l);return z(f)||o.output.push(f),!0}else return!1}:n},"B"),Q=(()=>{let e=0;return t=>{const n=A(t),o=e+=1;return r=>{var l;if(r.options.memoization===!1)return n(r);const f=r.index,h=(l=r.cache)[o]||(l[o]={indexMax:-1,queue:[]}),y=h.queue;if(f<=h.indexMax){const Z=h.store||(h.store=new Map);if(y.length){for(let C=0,Kt=y.length;C<Kt;C+=2){const Qt=y[C*2],Xt=y[C*2+1];Z.set(Qt,Xt)}y.length=0}const P=Z.get(f);if(P===!1)return!1;if(We(P))return r.index=P,!0;if(P)return r.index=P.index,P.output?.length&&r.output.push(...P.output),!0}const L=r.output.length,Vt=n(r);if(h.indexMax=Math.max(h.indexMax,f),Vt){const Z=r.index,P=r.output.length;if(P>L){const C=r.output.slice(L,P);y.push(f,{index:Z,output:C})}else y.push(f,Z);return!0}else return y.push(f,!1),!1}}})(),le=c(e=>{let t;return n=>(t||(t=A(e())),t(n))},"G"),A=Ze(e=>{if(q(e))return Ie(e)?le(e):e;if(re(e)||qe(e))return p(e);if(ne(e))return B(e);if(Ce(e))return j(Object.values(e));throw new Error("Invalid rule")}),R=c(e=>e,"d"),De=c(e=>typeof e=="string","ke"),Je=c(e=>{const t=new WeakMap,n=new WeakMap;return(o,r)=>{const l=r?.partial?n:t,f=l.get(o);if(f!==void 0)return f;const h=e(o,r);return l.set(o,h),h}},"Be"),Ve=c(e=>{const t={},n={};return(o,r)=>{const l=r?.partial?n:t;return l[o]??(l[o]=e(o,r))}},"Pe"),Ke=p(/\\./,R),Qe=p(/./,R),Xe=p(/\*\*\*+/,"*"),Ye=p(/([^/{[(!])\*\*/,(e,t)=>`${t}*`),et=p(/(^|.)\*\*(?=[^*/)\]}])/,(e,t)=>`${t}*`),tt=F(j([Ke,Xe,Ye,et,Qe])),nt=tt,rt=c(e=>oe(e,nt,{memoization:!1}).join(""),"Ie"),ot=rt,ce="abcdefghijklmnopqrstuvwxyz",st=c(e=>{let t="";for(;e>0;){const n=(e-1)%26;t=ce[n]+t,e=Math.floor((e-1)/26)}return t},"Le"),ue=c(e=>{let t=0;for(let n=0,o=e.length;n<o;n++)t=t*26+ce.indexOf(e[n])+1;return t},"V"),X=c((e,t)=>{if(t<e)return X(t,e);const n=[];for(;e<=t;)n.push(e++);return n},"b"),at=c((e,t,n)=>X(e,t).map(o=>String(o).padStart(n,"0")),"qe"),fe=c((e,t)=>X(ue(e),ue(t)).map(st),"W"),$=c(e=>({partial:!1,regex:new RegExp(e,"s"),children:[]}),"c"),N=c(e=>({children:e}),"y"),W=(()=>{const e=c((t,n,o)=>{if(o.has(t))return;o.add(t);const{children:r}=t;if(!r.length)r.push(n);else for(let l=0,f=r.length;l<f;l++)e(r[l],n,o)},"e");return t=>{if(!t.length)return N([]);for(let n=t.length-1;n>=1;n--){const o=new Set,r=t[n-1],l=t[n];e(r,l,o)}return t[0]}})(),E=c(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),it=p(/\\./,$),lt=p(/[$.*+?^(){}[\]\|]/,e=>$(`\\${e}`)),ct=p(/[\\\/]/,E),ut=p(/[^$.*+?^(){}[\]\|\\\/]+/,$),ft=p(/^(?:!!)*!(.*)$/,(e,t)=>$(`(?!^${ye.compile(t).source}$).*?`)),pt=p(/^(!!)+/),dt=j([ft,pt]),ht=p(/\/(\*\*\/)+/,()=>N([W([E(),$(".+?"),E()]),E()])),gt=p(/^(\*\*\/)+/,()=>N([$("^"),W([$(".*?"),E()])])),xt=p(/\/(\*\*)$/,()=>N([W([E(),$(".*?")]),$("$")])),mt=p(/\*\*/,()=>$(".*?")),pe=j([ht,gt,xt,mt]),$t=p(/\*\/(?!\*\*\/|\*$)/,()=>W([$("[^\\\\/]*?"),E()])),yt=p(/\*/,()=>$("[^\\\\/]*")),de=j([$t,yt]),he=p("?",()=>$("[^\\\\/]")),wt=p("[",R),bt=p("]",R),vt=p(/[!^]/,"^\\\\/"),jt=p(/[a-z]-[a-z]|[0-9]-[0-9]/i,R),Pt=p(/\\./,R),Mt=p(/[$.*+?^(){}[\|]/,e=>`\\${e}`),Ot=p(/[\\\/]/,"\\\\/"),_t=p(/[^$.*+?^(){}[\]\|\\\/]+/,R),zt=j([Pt,Mt,Ot,jt,_t]),ge=B([wt,ae(vt),F(zt),bt],e=>$(e.join(""))),At=p("{","(?:"),Et=p("}",")"),Rt=p(/(\d+)\.\.(\d+)/,(e,t,n)=>at(+t,+n,Math.min(t.length,n.length)).join("|")),kt=p(/([a-z]+)\.\.([a-z]+)/,(e,t,n)=>fe(t,n).join("|")),St=p(/([A-Z]+)\.\.([A-Z]+)/,(e,t,n)=>fe(t.toLowerCase(),n.toLowerCase()).join("|").toUpperCase()),It=j([Rt,kt,St]),xe=B([At,It,Et],e=>$(e.join(""))),Bt=p("{"),Wt=p("}"),Ct=p(","),qt=p(/\\./,$),Nt=p(/[$.*+?^(){[\]\|]/,e=>$(`\\${e}`)),Lt=p(/[\\\/]/,E),Zt=p(/[^$.*+?^(){}[\]\|\\\/,]+/,$),Ht=le(()=>$e),Ft=p("",()=>$("(?:)")),Tt=Ge(j([pe,de,he,ge,xe,Ht,qt,Nt,Lt,Zt]),W),me=j([Tt,Ft]),$e=B([Bt,ae(B([me,F(B([Ct,me]))])),Wt],N),Ut=F(j([dt,pe,de,he,ge,xe,$e,it,lt,ct,ut]),W),Gt=Ut,Dt=c(e=>oe(e,Gt,{memoization:!1})[0],"kr"),Jt=Dt,Y=c((e,t,n)=>Y.compile(e,n).test(t),"N");Y.compile=(()=>{const e=Ve((n,o)=>Re(Jt(ot(n)),o)),t=Je((n,o)=>Se(n.map(r=>e(r,o))));return(n,o)=>De(n)?e(n,o):t(n,o)})();var ye=Y;return m(b)})();return s.default||s},"_lazyMatch"),ee;const cn=c((s,a)=>(ee||(ee=ve(),ve=null),ee(s,a)),"default");var un=Object.defineProperty,fn=te((s,a)=>un(s,"name",{value:a,configurable:!0}),"t$1");const pn=/^[A-Z]:\//i,S=fn((s="")=>s&&s.replaceAll("\\","/").replace(pn,a=>a.toUpperCase()),"normalizeWindowsPath");var dn=Object.defineProperty,w=te((s,a)=>dn(s,"name",{value:a,configurable:!0}),"r");const hn=/^[/\\]{2}/,gn=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Oe=/^[A-Z]:$/i,je=/^\/([A-Z]:)?$/i,xn=/.(\.[^./]+)$/,mn=/^[/\\]|^[a-z]:[/\\]/i,$n=/\/$/,yn=w(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),Pe="/",_e=w((s,a)=>{let i="",u=0,d=-1,g=0,x;for(let m=0;m<=s.length;++m){if(m<s.length)x=s[m];else{if(x==="/")break;x="/"}if(x==="/"){if(!(d===m-1||g===1))if(g===2){if(i.length<2||u!==2||!i.endsWith(".")||i.at(-2)!=="."){if(i.length>2){const b=i.lastIndexOf("/");b===-1?(i="",u=0):(i=i.slice(0,b),u=i.length-1-i.lastIndexOf("/")),d=m,g=0;continue}else if(i.length>0){i="",u=0,d=m,g=0;continue}}a&&(i+=i.length>0?"/..":"..",u=2)}else i.length>0?i+=`/${s.slice(d+1,m)}`:i=s.slice(d+1,m),u=m-d-1;d=m,g=0}else x==="."&&g!==-1?++g:g=-1}return i},"normalizeString"),k=w(s=>gn.test(s),"isAbsolute"),U=w(function(s){if(s.length===0)return".";s=S(s);const a=hn.exec(s),i=k(s),u=s.at(-1)==="/";return s=_e(s,!i),s.length===0?i?"/":u?"./":".":(u&&(s+="/"),Oe.test(s)&&(s+="/"),a?i?`//${s}`:`//./${s}`:i&&!k(s)?`/${s}`:s)},"normalize");w((...s)=>{let a="";for(const i of s)if(i)if(a.length>0){const u=a.at(-1)==="/",d=i[0]==="/";u&&d?a+=i.slice(1):a+=u||d?i:`/${i}`}else a+=i;return U(a)},"join");const G=w(function(...s){s=s.map(u=>S(u));let a="",i=!1;for(let u=s.length-1;u>=-1&&!i;u--){const d=u>=0?s[u]:yn();!d||d.length===0||(a=`${d}/${a}`,i=k(d))}return a=_e(a,!i),i&&!k(a)?`/${a}`:a.length>0?a:"."},"resolve");w(function(s){return S(s)},"toNamespacedPath");const wn=w(function(s){return xn.exec(S(s))?.[1]??""},"extname"),bn=w(function(s,a){const i=G(s).replace(je,"$1").split("/"),u=G(a).replace(je,"$1").split("/");if(u[0][1]===":"&&i[0][1]===":"&&i[0]!==u[0])return u.join("/");const d=[...i];for(const g of d){if(u[0]!==g)break;i.shift(),u.shift()}return[...i.map(()=>".."),...u].join("/")},"relative"),vn=w(s=>{const a=S(s).replace($n,"").split("/").slice(0,-1);return a.length===1&&Oe.test(a[0])&&(a[0]=`${a[0]}/`),a.join("/")||(k(s)?"/":".")},"dirname");w(function(s){const a=[s.root,s.dir,s.base??s.name+s.ext].filter(Boolean);return S(s.root?G(...a):a.join("/"))},"format");const jn=w((s,a)=>{const i=S(s).split("/").pop();return a&&i.endsWith(a)?i.slice(0,-a.length):i},"basename");w(function(s){const a=mn.exec(s)?.[0]?.replaceAll("\\","/")??"",i=jn(s),u=wn(i);return{base:i,dir:vn(s),ext:u,name:i.slice(0,i.length-u.length),root:a}},"parse");w((s,a)=>cn(a,U(s)),"matchesGlob");var Pn=Object.defineProperty,M=T((s,a)=>Pn(s,"name",{value:a,configurable:!0}),"a");const Me=M(s=>{if(typeof s.status=="function"){s.status(400).send("Failed to open editor");return}s.statusCode=400,s.end("Failed to open editor")},"respond400"),ze=M((s={})=>{const a=M(async u=>{if((u.method??"GET").toUpperCase()==="POST")return u.body&&typeof u.body=="object"?u.body:new Promise(g=>{try{let x="";const m=M(v=>{x+=String(v)},"onData"),b=M(()=>{try{g(x?JSON.parse(x):{})}catch{g({})}},"onEnd");u.on("data",m),u.on("end",b),u.on("error",()=>{g({})})}catch{g({})}});const d=new URL(u.url??"","http://localhost");return{column:Number(d.searchParams.get("column")??1),editor:d.searchParams.get("editor")??void 0,file:d.searchParams.get("file")??void 0,line:Number(d.searchParams.get("line")??1)}},"parseRequestBody"),i=M((u,d,g)=>{if(!u)return;const x=k(u)?u:G(d,u);if(!g)try{const m=we(d),b=we(x),v=U(m),O=U(b),_=be()==="win32"||be()==="darwin",D=_?v.toLowerCase():v,J=_?O.toLowerCase():O,I=bn(v,O);if(I.startsWith("..")||k(I)||_&&!J.startsWith(D))return}catch{const m=d.endsWith(Pe)?d:d+Pe;if(!x.startsWith(m))return}return x},"validateFilePath");return M(async function(u,d,g){try{const x=await a(u),m=s.projectRoot??process.cwd(),b=i(x.file,m,s.allowOutsideProject??!1);if(!b){Me(d);return}const v=rn(x.editor,m),O=new URLSearchParams({column:String(x.column??1),file:b,line:String(x.line??1)});if(x.editor&&O.set("editor",x.editor),u.url=`/?${O.toString()}`,typeof g=="function"){v(u,d,g);return}await new Promise(_=>{v(u,d,()=>{_()})})}catch{Me(d)}},"universalHandler")},"createOpenInEditorMiddleware"),An=M((s={})=>{const a=ze(s);return async(i,u)=>a(i,u)},"createNodeHttpHandler"),En=M((s={})=>ze(s),"createExpressHandler");export{En as createExpressHandler,An as createNodeHttpHandler,ze as createOpenInEditorMiddleware};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visulima/ono",
3
- "version": "1.0.12",
3
+ "version": "2.0.0-alpha.10",
4
4
  "description": "Ono is an error-parsing library that pretty prints JavaScript errors on a web page or the terminal.",
5
5
  "keywords": [
6
6
  "visulima",
@@ -30,11 +30,11 @@
30
30
  "anolilab",
31
31
  "webpack"
32
32
  ],
33
- "homepage": "https://www.visulima.com/docs/package/ono",
33
+ "homepage": "https://visulima.com/packages/ono/",
34
34
  "repository": {
35
35
  "type": "git",
36
36
  "url": "https://github.com/visulima/visulima.git",
37
- "directory": "packages/ono"
37
+ "directory": "packages/error-debugging/ono"
38
38
  },
39
39
  "funding": [
40
40
  {
@@ -84,8 +84,8 @@
84
84
  "lint:eslint": "eslint . --cache --concurrency auto",
85
85
  "lint:eslint:fix": "eslint . --cache --concurrency auto --fix",
86
86
  "lint:package-json": "publint --strict",
87
- "lint:prettier": "prettier --config=.prettierrc.cjs --check .",
88
- "lint:prettier:fix": "prettier --config=.prettierrc.cjs --write .",
87
+ "lint:prettier": "prettier --config=prettier.config.js --check .",
88
+ "lint:prettier:fix": "prettier --config=prettier.config.js --write .",
89
89
  "lint:types": "tsc --noEmit",
90
90
  "test": "vitest run",
91
91
  "test:coverage": "vitest run --coverage",
@@ -93,54 +93,54 @@
93
93
  "test:watch": "vitest"
94
94
  },
95
95
  "dependencies": {
96
- "@shikijs/langs": "^3.15.0",
97
- "@shikijs/themes": "^3.15.0",
98
- "@visulima/error": "5.0.6",
99
- "isomorphic-dompurify": "^2.31.0",
100
- "shiki": "^3.15.0"
96
+ "@shikijs/langs": "catalog:prod",
97
+ "@visulima/error": "6.0.0-alpha.8",
98
+ "isomorphic-dompurify": "catalog:prod",
99
+ "launch-editor-middleware": "catalog:prod",
100
+ "shiki": "catalog:syntax"
101
101
  },
102
102
  "devDependencies": {
103
- "@anolilab/eslint-config": "^16.4.2",
104
- "@anolilab/prettier-config": "^6.0.7",
105
- "@anolilab/semantic-release-preset": "^11.0.5",
106
- "@arethetypeswrong/cli": "^0.18.2",
107
- "@eslint/css": "0.14.1",
108
- "@tailwindcss/forms": "^0.5.10",
109
- "@tailwindcss/node": "^4.1.17",
110
- "@tailwindcss/oxide": "^4.1.17",
111
- "@tailwindcss/typography": "^0.5.19",
112
- "@total-typescript/ts-reset": "^0.6.1",
113
- "@types/http-errors": "^2.0.5",
114
- "@types/node": "24.10.0",
115
- "@visulima/packem": "2.0.0-alpha.37",
116
- "@visulima/path": "2.0.5",
117
- "@vitest/coverage-v8": "^4.0.8",
118
- "cssnano": "7.1.2",
119
- "esbuild": "0.27.0",
120
- "eslint": "^9.39.1",
121
- "http-errors": "^2.0.0",
122
- "launch-editor-middleware": "2.12.0",
123
- "lucide-static": "^0.553.0",
124
- "marked": "^17.0.0",
125
- "node-mocks-http": "^1.17.2",
126
- "openai": "6.8.1",
127
- "prettier": "^3.6.2",
128
- "prettier-plugin-tailwindcss": "0.7.1",
129
- "publint": "^0.3.15",
130
- "rimraf": "^6.1.0",
131
- "semantic-release": "^25.0.2",
132
- "sort-package-json": "^3.4.0",
133
- "tailwind-csstree": "0.1.4",
134
- "tailwindcss": "^4.1.17",
135
- "typescript": "^5.9.3",
136
- "vitest": "^4.0.8"
103
+ "@anolilab/eslint-config": "catalog:lint",
104
+ "@anolilab/prettier-config": "catalog:lint",
105
+ "@anolilab/semantic-release-preset": "catalog:dev",
106
+ "@arethetypeswrong/cli": "catalog:dev",
107
+ "@eslint/css": "catalog:lint",
108
+ "@shikijs/themes": "catalog:dev",
109
+ "@tailwindcss/forms": "catalog:frontend",
110
+ "@tailwindcss/node": "catalog:frontend",
111
+ "@tailwindcss/oxide": "catalog:frontend",
112
+ "@tailwindcss/typography": "catalog:style",
113
+ "@total-typescript/ts-reset": "catalog:dev",
114
+ "@types/http-errors": "catalog:types",
115
+ "@types/node": "catalog:types",
116
+ "@visulima/packem": "catalog:dev",
117
+ "@visulima/path": "3.0.0-alpha.8",
118
+ "@vitest/coverage-v8": "catalog:test",
119
+ "cssnano": "catalog:dev",
120
+ "esbuild": "catalog:build",
121
+ "eslint": "catalog:lint",
122
+ "http-errors": "catalog:dev",
123
+ "lucide-static": "catalog:icons",
124
+ "marked": "catalog:dev",
125
+ "node-mocks-http": "catalog:dev",
126
+ "openai": "catalog:dev",
127
+ "prettier": "catalog:lint",
128
+ "prettier-plugin-tailwindcss": "catalog:lint",
129
+ "publint": "catalog:dev",
130
+ "rimraf": "catalog:node",
131
+ "semantic-release": "catalog:cli",
132
+ "sort-package-json": "catalog:dev",
133
+ "tailwind-csstree": "catalog:dev",
134
+ "tailwindcss": "catalog:style",
135
+ "typescript": "catalog:tsc",
136
+ "vitest": "catalog:test"
137
137
  },
138
138
  "peerDependencies": {
139
- "@ai-sdk/anthropic": "^1.0.9",
140
- "@ai-sdk/azure": "^1.0.22",
141
- "@ai-sdk/google": "^1.0.17",
142
- "@ai-sdk/mistral": "^1.0.9",
143
- "@ai-sdk/openai": "^1.0.20",
139
+ "@ai-sdk/anthropic": "catalog:peer",
140
+ "@ai-sdk/azure": "catalog:peer",
141
+ "@ai-sdk/google": "catalog:peer",
142
+ "@ai-sdk/mistral": "catalog:peer",
143
+ "@ai-sdk/openai": "catalog:peer",
144
144
  "ai": "^4.0.0 || ^5.0.0"
145
145
  },
146
146
  "peerDependenciesMeta": {
@@ -167,7 +167,7 @@
167
167
  }
168
168
  },
169
169
  "engines": {
170
- "node": ">=20.19 <=25.x"
170
+ "node": ">=22.13 <=25.x"
171
171
  },
172
172
  "publishConfig": {
173
173
  "access": "public",
@@ -1 +0,0 @@
1
- var D=Object.defineProperty;var m=(t,e)=>D(t,"name",{value:e,configurable:!0});import p from"isomorphic-dompurify";var v=Object.defineProperty,i=m((t,e)=>v(t,"name",{value:e,configurable:!0}),"e");const w=["http://","https://","/","./","../"],h="#",f={'"':"&quot;","&":"&amp;","'":"&#39;","<":"&lt;",">":"&gt;"},y=/^[\w+/-]+={0,2}$/,n=i(t=>String(t??"").trim(),"toString"),u=i(t=>t.replaceAll(/[&<>"']/g,e=>f[e]),"escapeHtml"),C=i(t=>{try{return p.sanitize(n(t))}catch{return u(n(t))}},"sanitizeHtml"),H=i(t=>{const e=n(t);if(!e)return"";try{return p.sanitize(e).replaceAll('"',"&quot;").replaceAll("'","&#39;")}catch{return u(e)}},"sanitizeAttribute"),z=i(t=>{const e=n(t);if(!e)return h;try{const r=p.sanitize(e),s=r.toLowerCase();return w.some(a=>s.startsWith(a))?r:h}catch{return h}},"sanitizeUrlAttribute"),A=i(t=>{const e=n(t);if(!e)return"";try{return p.sanitize(e,{ADD_ATTR:["class","style"]})}catch{return C(e)}},"sanitizeCodeHtml"),F=i(t=>{const e=n(t);if(e)return y.test(e)?e:void 0},"sanitizeCspNonce"),j=i((t={})=>{if(!t||typeof t!="object")return{};try{return{...t,cspNonce:F(t.cspNonce),openInEditorUrl:t.openInEditorUrl?z(t.openInEditorUrl):void 0}}catch{return{...t,cspNonce:void 0,openInEditorUrl:void 0}}},"sanitizeOptions");var b=Object.defineProperty,o=m((t,e)=>b(t,"name",{value:e,configurable:!0}),"r");let c,l;const x=o(async(t=[])=>{try{const[e,r]=await Promise.all([import("shiki/core"),import("shiki/engine/javascript")]),{createHighlighterCore:s}=e,{createJavaScriptRegexEngine:a}=r,d=await s({themes:[import("@shikijs/themes/github-dark-default"),import("@shikijs/themes/github-light")],langs:[import("@shikijs/langs/javascript"),import("@shikijs/langs/typescript"),import("@shikijs/langs/jsx"),import("@shikijs/langs/tsx"),import("@shikijs/langs/json"),import("@shikijs/langs/jsonc"),import("@shikijs/langs/xml"),import("@shikijs/langs/sql"),import("@shikijs/langs/bash"),import("@shikijs/langs/shell"),import("@shikijs/langs/markdown"),import("@shikijs/langs/mdx"),import("@shikijs/langs/html"),import("@shikijs/langs/css"),import("@shikijs/langs/scss"),import("@shikijs/langs/less"),import("@shikijs/langs/sass"),import("@shikijs/langs/stylus"),import("@shikijs/langs/styl"),...t],engine:a()}),g=d;return l=o(()=>{try{d?.dispose?.()}catch{}c=void 0},"disposeFn"),g}catch{const{createHighlighter:e}=await import("shiki"),r=await e({langs:["javascript","typescript","jsx","tsx","json","jsonc","xml","sql","bash","shell","markdown","mdx"],themes:["github-dark-default","github-light"]});return l=o(()=>{try{r?.dispose?.()}catch{}c=void 0},"disposeFn"),r}},"createSingletonHighlighter"),U=o(async(t=[])=>(c||(c=x(t)),c),"getHighlighter");o(async()=>{try{l&&(l(),l=void 0)}catch{}},"disposeHighlighter");o((t=[])=>({name:"@shikijs/transformers:compact-line-options",line(e,r){const s=t.find(a=>a.line===r);return s?.classes&&this.addClassToHast(e,s.classes),e}}),"transformerCompactLineOptions");const $="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-check%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22M20%206%209%2017l-5-5%22%20%2F%3E%20%3C%2Fsvg%3E",N="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-clipboard%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Crect%20width%3D%228%22%20height%3D%224%22%20x%3D%228%22%20y%3D%222%22%20rx%3D%221%22%20ry%3D%221%22%20%2F%3E%20%3Cpath%20d%3D%22M16%204h2a2%202%200%200%201%202%202v14a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2V6a2%202%200%200%201%202-2h2%22%20%2F%3E%20%3C%2Fsvg%3E";export{H as a,F as b,U as c,z as d,$ as e,j as f,A as g,N as n,C as s};
@@ -1 +0,0 @@
1
- var c=Object.defineProperty;var s=(r,e)=>c(r,"name",{value:e,configurable:!0});var l=Object.defineProperty,i=s((r,e)=>l(r,"name",{value:e,configurable:!0}),"n");const f=globalThis.process||Object.create(null),n={versions:{}},a=new Proxy(f,{get(r,e){if(e in r)return r[e];if(e in n)return n[e]}});let o,t;const P=i(()=>(o===void 0&&(o=a.version||""),o),"getProcessVersion"),v=i(()=>(t===void 0&&(t=a.platform||""),t),"getProcessPlatform");export{v as a,P as g,a as t};