@xaendar/cli 0.9.16 → 0.9.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-BQOKPGRV.js +90 -0
- package/dist/build-GBGQNBHY.js +25 -0
- package/dist/chunk-4TR6Q4JL.js +628 -0
- package/dist/chunk-JDYMX3OY.js +3 -0
- package/dist/chunk-KNI7SFGP.js +3 -0
- package/dist/chunk-MMVDHF5O.js +47 -0
- package/dist/chunk-OL5QH2XE.js +3 -0
- package/dist/cli.js +2908 -83
- package/dist/dist-H2NBAJAI.js +3 -0
- package/dist/dist-JMGYIFWH.js +3 -0
- package/dist/false-QKAHAALV.js +3 -0
- package/dist/lexer-DQCqS3nf-43JHI7TC.js +5 -0
- package/dist/main-BEZFE5MG.js +68 -0
- package/dist/node-RONF2ICS.js +3 -0
- package/dist/postcss-INPVFW34.js +35 -0
- package/dist/postcss-import-KX43CMCJ.js +6 -0
- package/dist/prompt-CH6TK0bC-7PB4PZOW.js +47 -0
- package/package.json +1 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';
|
|
2
|
+
const require = createRequire(import.meta.url);
|
|
3
|
+
import{a as m}from"./chunk-4TR6Q4JL.js";var J=m(((b,y)=>{var v=40,h=41,c=39,d=34,i=92,u=47,a=44,o=58,f=42,l=117,C=85,k=43,R=/^[a-f0-9?-]+$/i;y.exports=function(S){for(var A=[],s=S,e,O,q,r,I,w,x,N,t=0,n=s.charCodeAt(t),Q=s.length,g=[{nodes:A}],E=0,p,P="",_="",U="";t<Q;)if(n<=32){e=t;do e+=1,n=s.charCodeAt(e);while(n<=32);r=s.slice(t,e),q=A[A.length-1],n===h&&E?U=r:q&&q.type==="div"?(q.after=r,q.sourceEndIndex+=r.length):n===a||n===o||n===u&&s.charCodeAt(e+1)!==f&&(!p||p&&p.type==="function"&&p.value!=="calc")?_=r:A.push({type:"space",sourceIndex:t,sourceEndIndex:e,value:r}),t=e}else if(n===c||n===d){e=t,O=n===c?"'":'"',r={type:"string",sourceIndex:t,quote:O};do if(I=!1,e=s.indexOf(O,e+1),~e)for(w=e;s.charCodeAt(w-1)===i;)w-=1,I=!I;else s+=O,e=s.length-1,r.unclosed=!0;while(I);r.value=s.slice(t+1,e),r.sourceEndIndex=r.unclosed?e:e+1,A.push(r),t=e+1,n=s.charCodeAt(t)}else if(n===u&&s.charCodeAt(t+1)===f)e=s.indexOf("*/",t),r={type:"comment",sourceIndex:t,sourceEndIndex:e+2},e===-1&&(r.unclosed=!0,e=s.length,r.sourceEndIndex=e),r.value=s.slice(t+2,e),A.push(r),t=e+2,n=s.charCodeAt(t);else if((n===u||n===f)&&p&&p.type==="function"&&p.value==="calc")r=s[t],A.push({type:"word",sourceIndex:t-_.length,sourceEndIndex:t+r.length,value:r}),t+=1,n=s.charCodeAt(t);else if(n===u||n===a||n===o)r=s[t],A.push({type:"div",sourceIndex:t-_.length,sourceEndIndex:t+r.length,value:r,before:_,after:""}),_="",t+=1,n=s.charCodeAt(t);else if(v===n){e=t;do e+=1,n=s.charCodeAt(e);while(n<=32);if(N=t,r={type:"function",sourceIndex:t-P.length,value:P,before:s.slice(N+1,e)},t=e,P==="url"&&n!==c&&n!==d){e-=1;do if(I=!1,e=s.indexOf(")",e+1),~e)for(w=e;s.charCodeAt(w-1)===i;)w-=1,I=!I;else s+=")",e=s.length-1,r.unclosed=!0;while(I);x=e;do x-=1,n=s.charCodeAt(x);while(n<=32);N<x?(t!==x+1?r.nodes=[{type:"word",sourceIndex:t,sourceEndIndex:x+1,value:s.slice(t,x+1)}]:r.nodes=[],r.unclosed&&x+1!==e?(r.after="",r.nodes.push({type:"space",sourceIndex:x+1,sourceEndIndex:e,value:s.slice(x+1,e)})):(r.after=s.slice(x+1,e),r.sourceEndIndex=e)):(r.after="",r.nodes=[]),t=e+1,r.sourceEndIndex=r.unclosed?e:t,n=s.charCodeAt(t),A.push(r)}else E+=1,r.after="",r.sourceEndIndex=t+1,A.push(r),g.push(r),A=r.nodes=[],p=r;P=""}else if(h===n&&E)t+=1,n=s.charCodeAt(t),p.after=U,p.sourceEndIndex+=U.length,U="",E-=1,g[g.length-1].sourceEndIndex=t,g.pop(),p=g[E],A=p.nodes;else{e=t;do n===i&&(e+=1),e+=1,n=s.charCodeAt(e);while(e<Q&&!(n<=32||n===c||n===d||n===a||n===o||n===u||n===v||n===f&&p&&p.type==="function"&&p.value==="calc"||n===u&&p.type==="function"&&p.value==="calc"||n===h&&E));r=s.slice(t,e),v===n?P=r:(l===r.charCodeAt(0)||C===r.charCodeAt(0))&&k===r.charCodeAt(1)&&R.test(r.slice(2))?A.push({type:"unicode-range",sourceIndex:t,sourceEndIndex:e,value:r}):A.push({type:"word",sourceIndex:t,sourceEndIndex:e,value:r}),t=e}for(t=g.length-1;t;t-=1)g[t].unclosed=!0,g[t].sourceEndIndex=s.length;return g[0].nodes}})),L=m(((b,y)=>{y.exports=function v(h,c,d){var i,u,a,o;for(i=0,u=h.length;i<u;i+=1)a=h[i],d||(o=c(a,i,h)),o!==!1&&a.type==="function"&&Array.isArray(a.nodes)&&v(a.nodes,c,d),d&&c(a,i,h)}})),M=m(((b,y)=>{function v(c,d){var i=c.type,u=c.value,a,o;return d&&(o=d(c))!==void 0?o:i==="word"||i==="space"?u:i==="string"?(a=c.quote||"",a+u+(c.unclosed?"":a)):i==="comment"?"/*"+u+(c.unclosed?"":"*/"):i==="div"?(c.before||"")+u+(c.after||""):Array.isArray(c.nodes)?(a=h(c.nodes,d),i!=="function"?a:u+"("+(c.before||"")+a+(c.after||"")+(c.unclosed?"":")")):u}function h(c,d){var i,u;if(Array.isArray(c)){for(i="",u=c.length-1;~u;u-=1)i=v(c[u],d)+i;return i}return v(c,d)}y.exports=h})),V=m(((b,y)=>{var v=45,h=43,c=46,d=101,i=69;function u(a){var o=a.charCodeAt(0),f;if(o===h||o===v){if(f=a.charCodeAt(1),f>=48&&f<=57)return!0;var l=a.charCodeAt(2);return f===c&&l>=48&&l<=57}return o===c?(f=a.charCodeAt(1),f>=48&&f<=57):o>=48&&o<=57}y.exports=function(a){var o=0,f=a.length,l,C,k;if(f===0||!u(a))return!1;for(l=a.charCodeAt(o),(l===h||l===v)&&o++;o<f&&(l=a.charCodeAt(o),!(l<48||l>57));)o+=1;if(l=a.charCodeAt(o),C=a.charCodeAt(o+1),l===c&&C>=48&&C<=57)for(o+=2;o<f&&(l=a.charCodeAt(o),!(l<48||l>57));)o+=1;if(l=a.charCodeAt(o),C=a.charCodeAt(o+1),k=a.charCodeAt(o+2),(l===d||l===i)&&(C>=48&&C<=57||(C===h||C===v)&&k>=48&&k<=57))for(o+=C===h||C===v?3:2;o<f&&(l=a.charCodeAt(o),!(l<48||l>57));)o+=1;return{number:a.slice(0,o),unit:a.slice(o)}}})),$=m(((b,y)=>{var v=J(),h=L(),c=M();function d(i){return this instanceof d?(this.nodes=v(i),this):new d(i)}d.prototype.toString=function(){return Array.isArray(this.nodes)?c(this.nodes):""},d.prototype.walk=function(i,u){return h(this.nodes,i,u),this},d.unit=V(),d.walk=h,d.stringify=c,y.exports=d}));export{$ as a};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';
|
|
2
|
+
const require = createRequire(import.meta.url);
|
|
3
|
+
var g=Object.create;var e=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var m=(a=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(a,{get:(b,c)=>(typeof require<"u"?require:b)[c]}):a)(function(a){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+a+'" is not supported')}),n=a=>b=>{var c=a[b];if(c)return c();throw new Error("Module not found in bundle: "+b)};var o=(a,b)=>()=>(a&&(b=a(a=0)),b);var p=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports),q=(a,b)=>{for(var c in b)e(a,c,{get:b[c],enumerable:!0})},l=(a,b,c,f)=>{if(b&&typeof b=="object"||typeof b=="function")for(let d of i(b))!k.call(a,d)&&d!==c&&e(a,d,{get:()=>b[d],enumerable:!(f=h(b,d))||f.enumerable});return a};var r=(a,b,c)=>(c=a!=null?g(j(a)):{},l(b||!a||!a.__esModule?e(c,"default",{value:a,enumerable:!0}):c,a));export{m as a,n as b,o as c,p as d,q as e,r as f};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';
|
|
2
|
+
const require = createRequire(import.meta.url);
|
|
3
|
+
import{createRequire as gi}from"module";var mi=Object.create,yn=Object.defineProperty,hi=Object.getOwnPropertyDescriptor,Ei=Object.getOwnPropertyNames,Fi=Object.getPrototypeOf,Cn=Object.prototype.hasOwnProperty,bn=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),yi=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=Ei(t),o=0,u=i.length,l;o<u;o++)l=i[o],!Cn.call(e,l)&&l!==n&&yn(e,l,{get:(c=>t[c]).bind(null,l),enumerable:!(r=hi(t,l))||r.enumerable});return e},q=(e,t,n)=>(n=e!=null?mi(Fi(e)):{},yi(t||!e||!e.__esModule||!Cn.call(e,"default")?yn(n,"default",{value:e,enumerable:!0}):n,e)),h=gi(import.meta.url),Ci=bn(((e,t)=>{let n=h("node:fs"),r=h("node:child_process"),i=JSON.parse(n.readFileSync(h.resolve("rolldown/package.json"),"utf-8")).version,o=`/tmp/rolldown-${i}`,u=`${o}/node_modules/@rolldown/binding-wasm32-wasi/rolldown-binding.wasi.cjs`;if(!n.existsSync(u)){let l=`@rolldown/binding-wasm32-wasi@${i}`;n.rmSync(o,{recursive:!0,force:!0}),n.mkdirSync(o,{recursive:!0}),console.log(`[rolldown] Downloading ${l} on WebContainer...`),r.execFileSync("pnpm",["i",l],{cwd:o,stdio:"inherit"})}t.exports=h(u)})),U=bn(((e,t)=>{let{readFileSync:n}=h("fs"),r=null,i=[],o=()=>{let a=!1;return process.platform==="linux"&&(a=l(),a===null&&(a=c()),a===null&&(a=p())),a},u=a=>a.includes("libc.musl-")||a.includes("ld-musl-"),l=()=>{try{return n("/usr/bin/ldd","utf-8").includes("musl")}catch{return null}},c=()=>{let a=null;return process.report&&typeof process.report.getReport=="function"&&(process.report.excludeNetwork=!0,a=process.report.getReport()),a?a.header&&a.header.glibcVersionRuntime?!1:!!(Array.isArray(a.sharedObjects)&&a.sharedObjects.some(u)):null},p=()=>{try{return h("child_process").execSync("ldd --version",{encoding:"utf8"}).includes("musl")}catch{return!1}};function f(){if(process.env.NAPI_RS_NATIVE_LIBRARY_PATH)try{return h(process.env.NAPI_RS_NATIVE_LIBRARY_PATH)}catch(a){i.push(a)}else if(process.platform==="android")if(process.arch==="arm64"){try{return h("./rolldown-binding.android-arm64.node")}catch(a){i.push(a)}try{let a=h("@rolldown/binding-android-arm64"),E=h("@rolldown/binding-android-arm64/package.json").version;if(E!=="1.2.6"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 1.2.6 but got ${E}. You can reinstall dependencies to fix this issue.`);return a}catch(a){i.push(a)}}else if(process.arch==="arm"){try{return h("./rolldown-binding.android-arm-eabi.node")}catch(a){i.push(a)}try{let a=h("@rolldown/binding-android-arm-eabi"),E=h("@rolldown/binding-android-arm-eabi/package.json").version;if(E!=="1.2.6"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 1.2.6 but got ${E}. You can reinstall dependencies to fix this issue.`);return a}catch(a){i.push(a)}}else i.push(new Error(`Unsupported architecture on Android ${process.arch}`));else if(process.platform==="win32")if(process.arch==="x64")if(process.config&&process.config.variables&&process.config.variables.shlib_suffix==="dll.a"||process.config&&process.config.variables&&process.config.variables.node_target_type==="shared_library"){try{return h("./rolldown-binding.win32-x64-gnu.node")}catch(a){i.push(a)}try{let a=h("@rolldown/binding-win32-x64-gnu"),E=h("@rolldown/binding-win32-x64-gnu/package.json").version;if(E!=="1.2.6"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 1.2.6 but got ${E}. You can reinstall dependencies to fix this issue.`);return a}catch(a){i.push(a)}}else{try{return h("./rolldown-binding.win32-x64-msvc.node")}catch(a){i.push(a)}try{let a=h("@rolldown/binding-win32-x64-msvc"),E=h("@rolldown/binding-win32-x64-msvc/package.json").version;if(E!=="1.2.6"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 1.2.6 but got ${E}. You can reinstall dependencies to fix this issue.`);return a}catch(a){i.push(a)}}else if(process.arch==="ia32"){try{return h("./rolldown-binding.win32-ia32-msvc.node")}catch(a){i.push(a)}try{let a=h("@rolldown/binding-win32-ia32-msvc"),E=h("@rolldown/binding-win32-ia32-msvc/package.json").version;if(E!=="1.2.6"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 1.2.6 but got ${E}. You can reinstall dependencies to fix this issue.`);return a}catch(a){i.push(a)}}else if(process.arch==="arm64"){try{return h("./rolldown-binding.win32-arm64-msvc.node")}catch(a){i.push(a)}try{let a=h("@rolldown/binding-win32-arm64-msvc"),E=h("@rolldown/binding-win32-arm64-msvc/package.json").version;if(E!=="1.2.6"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 1.2.6 but got ${E}. You can reinstall dependencies to fix this issue.`);return a}catch(a){i.push(a)}}else i.push(new Error(`Unsupported architecture on Windows: ${process.arch}`));else if(process.platform==="darwin"){try{return h("./rolldown-binding.darwin-universal.node")}catch(a){i.push(a)}try{let a=h("@rolldown/binding-darwin-universal"),E=h("@rolldown/binding-darwin-universal/package.json").version;if(E!=="1.2.6"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 1.2.6 but got ${E}. You can reinstall dependencies to fix this issue.`);return a}catch(a){i.push(a)}if(process.arch==="x64"){try{return h("./rolldown-binding.darwin-x64.node")}catch(a){i.push(a)}try{let a=h("@rolldown/binding-darwin-x64"),E=h("@rolldown/binding-darwin-x64/package.json").version;if(E!=="1.2.6"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 1.2.6 but got ${E}. You can reinstall dependencies to fix this issue.`);return a}catch(a){i.push(a)}}else if(process.arch==="arm64"){try{return h("./rolldown-binding.darwin-arm64.node")}catch(a){i.push(a)}try{let a=h("@rolldown/binding-darwin-arm64"),E=h("@rolldown/binding-darwin-arm64/package.json").version;if(E!=="1.2.6"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 1.2.6 but got ${E}. You can reinstall dependencies to fix this issue.`);return a}catch(a){i.push(a)}}else i.push(new Error(`Unsupported architecture on macOS: ${process.arch}`))}else if(process.platform==="freebsd")if(process.arch==="x64"){try{return h("./rolldown-binding.freebsd-x64.node")}catch(a){i.push(a)}try{let a=h("@rolldown/binding-freebsd-x64"),E=h("@rolldown/binding-freebsd-x64/package.json").version;if(E!=="1.2.6"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 1.2.6 but got ${E}. You can reinstall dependencies to fix this issue.`);return a}catch(a){i.push(a)}}else if(process.arch==="arm64"){try{return h("./rolldown-binding.freebsd-arm64.node")}catch(a){i.push(a)}try{let a=h("@rolldown/binding-freebsd-arm64"),E=h("@rolldown/binding-freebsd-arm64/package.json").version;if(E!=="1.2.6"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 1.2.6 but got ${E}. You can reinstall dependencies to fix this issue.`);return a}catch(a){i.push(a)}}else i.push(new Error(`Unsupported architecture on FreeBSD: ${process.arch}`));else if(process.platform==="linux")if(process.arch==="x64")if(o()){try{return h("./rolldown-binding.linux-x64-musl.node")}catch(a){i.push(a)}try{let a=h("@rolldown/binding-linux-x64-musl"),E=h("@rolldown/binding-linux-x64-musl/package.json").version;if(E!=="1.2.6"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 1.2.6 but got ${E}. You can reinstall dependencies to fix this issue.`);return a}catch(a){i.push(a)}}else{try{return h("../rolldown-binding.linux-x64-gnu.node")}catch(a){i.push(a)}try{let a=h("@rolldown/binding-linux-x64-gnu"),E=h("@rolldown/binding-linux-x64-gnu/package.json").version;if(E!=="1.2.6"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 1.2.6 but got ${E}. You can reinstall dependencies to fix this issue.`);return a}catch(a){i.push(a)}}else if(process.arch==="arm64")if(o()){try{return h("./rolldown-binding.linux-arm64-musl.node")}catch(a){i.push(a)}try{let a=h("@rolldown/binding-linux-arm64-musl"),E=h("@rolldown/binding-linux-arm64-musl/package.json").version;if(E!=="1.2.6"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 1.2.6 but got ${E}. You can reinstall dependencies to fix this issue.`);return a}catch(a){i.push(a)}}else{try{return h("./rolldown-binding.linux-arm64-gnu.node")}catch(a){i.push(a)}try{let a=h("@rolldown/binding-linux-arm64-gnu"),E=h("@rolldown/binding-linux-arm64-gnu/package.json").version;if(E!=="1.2.6"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 1.2.6 but got ${E}. You can reinstall dependencies to fix this issue.`);return a}catch(a){i.push(a)}}else if(process.arch==="arm")if(o()){try{return h("./rolldown-binding.linux-arm-musleabihf.node")}catch(a){i.push(a)}try{let a=h("@rolldown/binding-linux-arm-musleabihf"),E=h("@rolldown/binding-linux-arm-musleabihf/package.json").version;if(E!=="1.2.6"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 1.2.6 but got ${E}. You can reinstall dependencies to fix this issue.`);return a}catch(a){i.push(a)}}else{try{return h("./rolldown-binding.linux-arm-gnueabihf.node")}catch(a){i.push(a)}try{let a=h("@rolldown/binding-linux-arm-gnueabihf"),E=h("@rolldown/binding-linux-arm-gnueabihf/package.json").version;if(E!=="1.2.6"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 1.2.6 but got ${E}. You can reinstall dependencies to fix this issue.`);return a}catch(a){i.push(a)}}else if(process.arch==="loong64")if(o()){try{return h("./rolldown-binding.linux-loong64-musl.node")}catch(a){i.push(a)}try{let a=h("@rolldown/binding-linux-loong64-musl"),E=h("@rolldown/binding-linux-loong64-musl/package.json").version;if(E!=="1.2.6"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 1.2.6 but got ${E}. You can reinstall dependencies to fix this issue.`);return a}catch(a){i.push(a)}}else{try{return h("./rolldown-binding.linux-loong64-gnu.node")}catch(a){i.push(a)}try{let a=h("@rolldown/binding-linux-loong64-gnu"),E=h("@rolldown/binding-linux-loong64-gnu/package.json").version;if(E!=="1.2.6"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 1.2.6 but got ${E}. You can reinstall dependencies to fix this issue.`);return a}catch(a){i.push(a)}}else if(process.arch==="riscv64")if(o()){try{return h("./rolldown-binding.linux-riscv64-musl.node")}catch(a){i.push(a)}try{let a=h("@rolldown/binding-linux-riscv64-musl"),E=h("@rolldown/binding-linux-riscv64-musl/package.json").version;if(E!=="1.2.6"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 1.2.6 but got ${E}. You can reinstall dependencies to fix this issue.`);return a}catch(a){i.push(a)}}else{try{return h("./rolldown-binding.linux-riscv64-gnu.node")}catch(a){i.push(a)}try{let a=h("@rolldown/binding-linux-riscv64-gnu"),E=h("@rolldown/binding-linux-riscv64-gnu/package.json").version;if(E!=="1.2.6"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 1.2.6 but got ${E}. You can reinstall dependencies to fix this issue.`);return a}catch(a){i.push(a)}}else if(process.arch==="ppc64"){try{return h("./rolldown-binding.linux-ppc64-gnu.node")}catch(a){i.push(a)}try{let a=h("@rolldown/binding-linux-ppc64-gnu"),E=h("@rolldown/binding-linux-ppc64-gnu/package.json").version;if(E!=="1.2.6"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 1.2.6 but got ${E}. You can reinstall dependencies to fix this issue.`);return a}catch(a){i.push(a)}}else if(process.arch==="s390x"){try{return h("./rolldown-binding.linux-s390x-gnu.node")}catch(a){i.push(a)}try{let a=h("@rolldown/binding-linux-s390x-gnu"),E=h("@rolldown/binding-linux-s390x-gnu/package.json").version;if(E!=="1.2.6"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 1.2.6 but got ${E}. You can reinstall dependencies to fix this issue.`);return a}catch(a){i.push(a)}}else i.push(new Error(`Unsupported architecture on Linux: ${process.arch}`));else if(process.platform==="openharmony")if(process.arch==="arm64"){try{return h("./rolldown-binding.openharmony-arm64.node")}catch(a){i.push(a)}try{let a=h("@rolldown/binding-openharmony-arm64"),E=h("@rolldown/binding-openharmony-arm64/package.json").version;if(E!=="1.2.6"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 1.2.6 but got ${E}. You can reinstall dependencies to fix this issue.`);return a}catch(a){i.push(a)}}else if(process.arch==="x64"){try{return h("./rolldown-binding.openharmony-x64.node")}catch(a){i.push(a)}try{let a=h("@rolldown/binding-openharmony-x64"),E=h("@rolldown/binding-openharmony-x64/package.json").version;if(E!=="1.2.6"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 1.2.6 but got ${E}. You can reinstall dependencies to fix this issue.`);return a}catch(a){i.push(a)}}else if(process.arch==="arm"){try{return h("./rolldown-binding.openharmony-arm.node")}catch(a){i.push(a)}try{let a=h("@rolldown/binding-openharmony-arm"),E=h("@rolldown/binding-openharmony-arm/package.json").version;if(E!=="1.2.6"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 1.2.6 but got ${E}. You can reinstall dependencies to fix this issue.`);return a}catch(a){i.push(a)}}else i.push(new Error(`Unsupported architecture on OpenHarmony: ${process.arch}`));else i.push(new Error(`Unsupported OS: ${process.platform}, architecture: ${process.arch}`))}function C(a){return a.reduce((E,ne)=>{let ae;try{ae=ne&&typeof ne.message=="string"?ne.message:String(ne)}catch{ae="Unknown error"}let P=new Error(ae);return P.cause=E,P},null)}let w=["wasm32-wasi"],S=process.env.NAPI_RS_WASI_FLAVOR,O=typeof S=="string"&&S.length>0;if(O&&w.indexOf(S)===-1)throw new Error('Unsupported WASI flavor "'+S+'". Available flavors: '+w.join(", "));let j=process.env.NAPI_RS_FORCE_WASI==="error",te=process.env.NAPI_RS_FORCE_WASI==="true"||j||O;if(te||(r=f()),!r||te){let a=null,E=!1,ne=[],ae=(P,H,Y)=>{try{h.resolve(P)}catch(J){if(!J||J.code!=="MODULE_NOT_FOUND")throw J;if(H){try{h.resolve(P+"/package.json")}catch(le){if(le&&le.code==="MODULE_NOT_FOUND")return J;throw J}throw J}return J}if(Y){let J=null;for(let le=0;le<Y.length;le++)try{return h.resolve(Y[le]),null}catch(ge){if(!ge||ge.code!=="MODULE_NOT_FOUND")throw ge;J=ge}return J}return null};if(!E&&(!O||S==="wasm32-wasi")){let P=null,H=!1;try{P=ae("./rolldown-binding.wasi.cjs",!1,["./rolldown-binding.wasm32-wasi.debug.wasm","./rolldown-binding.wasm32-wasi.wasm"]),H=P!==null,H||(a=h("../rolldown-binding.wasi.cjs"),r=a,E=!0)}catch(Y){P=Y,H=!0}H&&(ne.push(P),i.push(P))}if(!E&&(!O||S==="wasm32-wasi")){let P=null,H=!1;try{if(P=ae("@rolldown/binding-wasm32-wasi",!0,void 0),H=P!==null,!H){if(process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0"){let Y=h("@rolldown/binding-wasm32-wasi/package.json").version;if(Y!=="1.2.6")throw new Error(`WASI binding package version mismatch, expected 1.2.6 but got ${Y}. You can reinstall dependencies to fix this issue.`)}a=h("@rolldown/binding-wasm32-wasi"),r=a,E=!0}}catch(Y){P=Y,H=!0}H&&(ne.push(P),i.push(P))}if(!E&&te&&!j&&!O&&(r=f()),(j||O)&&!E){let P=new Error(O?'WASI binding for flavor "'+S+'" not found':"WASI binding not found and NAPI_RS_FORCE_WASI is set to error");throw P.cause=C(ne),P}}if(!r&&globalThis.process?.versions?.webcontainer)try{r=Ci()}catch(a){i.push(a)}if(!r){if(i.length>0){let a=new Error("Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.");throw a.cause=C(i),a}throw new Error("Failed to load native binding")}t.exports=r,t.exports.LegalCommentsMode=r.LegalCommentsMode,t.exports.minify=r.minify,t.exports.minifySync=r.minifySync,t.exports.Severity=r.Severity,t.exports.ParseResult=r.ParseResult,t.exports.ExportExportNameKind=r.ExportExportNameKind,t.exports.ExportImportNameKind=r.ExportImportNameKind,t.exports.ExportLocalNameKind=r.ExportLocalNameKind,t.exports.ImportNameKind=r.ImportNameKind,t.exports.parse=r.parse,t.exports.parseSync=r.parseSync,t.exports.rawTransferSupported=r.rawTransferSupported,t.exports.ResolverFactory=r.ResolverFactory,t.exports.EnforceExtension=r.EnforceExtension,t.exports.ModuleType=r.ModuleType,t.exports.sync=r.sync,t.exports.HelperMode=r.HelperMode,t.exports.isolatedDeclaration=r.isolatedDeclaration,t.exports.isolatedDeclarationSync=r.isolatedDeclarationSync,t.exports.moduleRunnerTransform=r.moduleRunnerTransform,t.exports.moduleRunnerTransformSync=r.moduleRunnerTransformSync,t.exports.transform=r.transform,t.exports.transformSync=r.transformSync,t.exports.BindingBundleEndEventData=r.BindingBundleEndEventData,t.exports.BindingBundleErrorEventData=r.BindingBundleErrorEventData,t.exports.BindingBundler=r.BindingBundler,t.exports.BindingCallableBuiltinPlugin=r.BindingCallableBuiltinPlugin,t.exports.BindingChunkingContext=r.BindingChunkingContext,t.exports.BindingDecodedMap=r.BindingDecodedMap,t.exports.BindingDevEngine=r.BindingDevEngine,t.exports.BindingLoadPluginContext=r.BindingLoadPluginContext,t.exports.BindingMagicString=r.BindingMagicString,t.exports.BindingModuleInfo=r.BindingModuleInfo,t.exports.BindingNormalizedOptions=r.BindingNormalizedOptions,t.exports.BindingOutputAsset=r.BindingOutputAsset,t.exports.BindingOutputChunk=r.BindingOutputChunk,t.exports.BindingPluginContext=r.BindingPluginContext,t.exports.BindingRenderedChunk=r.BindingRenderedChunk,t.exports.BindingRenderedChunkMeta=r.BindingRenderedChunkMeta,t.exports.BindingRenderedModule=r.BindingRenderedModule,t.exports.BindingSourceMap=r.BindingSourceMap,t.exports.BindingTransformPluginContext=r.BindingTransformPluginContext,t.exports.BindingWatcher=r.BindingWatcher,t.exports.BindingWatcherBundler=r.BindingWatcherBundler,t.exports.BindingWatcherChangeData=r.BindingWatcherChangeData,t.exports.BindingWatcherEvent=r.BindingWatcherEvent,t.exports.ParallelJsPluginRegistry=r.ParallelJsPluginRegistry,t.exports.TraceSubscriberGuard=r.TraceSubscriberGuard,t.exports.TsconfigCache=r.TsconfigCache,t.exports.BindingAttachDebugInfo=r.BindingAttachDebugInfo,t.exports.BindingBuiltinPluginName=r.BindingBuiltinPluginName,t.exports.BindingChunkModuleOrderBy=r.BindingChunkModuleOrderBy,t.exports.BindingErrorStage=r.BindingErrorStage,t.exports.BindingLogLevel=r.BindingLogLevel,t.exports.BindingPluginOrder=r.BindingPluginOrder,t.exports.BindingPropertyReadSideEffects=r.BindingPropertyReadSideEffects,t.exports.BindingPropertyWriteSideEffects=r.BindingPropertyWriteSideEffects,t.exports.BindingRebuildStrategy=r.BindingRebuildStrategy,t.exports.collapseSourcemaps=r.collapseSourcemaps,t.exports.enhancedTransform=r.enhancedTransform,t.exports.enhancedTransformSync=r.enhancedTransformSync,t.exports.FilterTokenKind=r.FilterTokenKind,t.exports.getNativeMemoryStats=r.getNativeMemoryStats,t.exports.initTraceSubscriber=r.initTraceSubscriber,t.exports.registerPlugins=r.registerPlugins,t.exports.resetNativeMemoryStats=r.resetNativeMemoryStats,t.exports.resolveTsconfig=r.resolveTsconfig,t.exports.shutdownAsyncRuntime=r.shutdownAsyncRuntime,t.exports.startAsyncRuntime=r.startAsyncRuntime}));function bi(e){let t="";for(;e--;)t+=" ";return t}function Rt(e){return e.replace(/^\t+/,t=>t.split(" ").join(" "))}var vi=120,wi=10,Si="...";function At(e,t,n){let r=e.split(`
|
|
4
|
+
`);if(t>r.length)return"";let i=Math.max(Rt(r[t-1].slice(0,n)).length+wi+3,vi),o=Math.max(0,t-3),u=Math.min(t+2,r.length);for(r=r.slice(o,u);!/\S/.test(r[r.length-1]);)r.pop(),u-=1;let l=String(u).length;return r.map((c,p)=>{let f=o+p+1===t,C=String(p+o+1);for(;C.length<l;)C=` ${C}`;let w=Rt(c);if(w.length>i&&(w=`${w.slice(0,i-3)}${Si}`),f){let S=bi(l+2+Rt(c.slice(0,n)).length)+"^";return`${C}: ${w}
|
|
5
|
+
${S}`}return`${C}: ${w}`}).join(`
|
|
6
|
+
`)}function _i(e,t){return e.start<=t&&t<e.end}function Ii(e,t={}){let{offsetLine:n=0,offsetColumn:r=0}=t,i=0,o=e.split(`
|
|
7
|
+
`).map((c,p)=>{let f=i+c.length+1,C={start:i,end:f,line:p};return i=f,C}),u=0;function l(c,p){if(typeof c=="string"&&(c=e.indexOf(c,p??0)),c===-1)return;let f=o[u],C=c>=f.end?1:-1;for(;f;){if(_i(f,c))return{line:n+f.line,column:r+c-f.start,character:c};u+=C,f=o[u]}}return l}function Pt(e,t,n){return Ii(e,n)(t,n&&n.startIndex)}var Bi="INVALID_LOG_POSITION",ki="PLUGIN_ERROR",Ni="INPUT_HOOK_IN_OUTPUT_PLUGIN",Oi="CYCLE_LOADING",Ri="MULTIPLE_WATCHER_OPTION",Ai="PARSE_ERROR",Pi="VALIDATION_ERROR";function vn(e,t,n){return{code:Ai,id:t,message:e,pos:n}}function qe(e){return{code:Pi,message:e}}function wn(e){return{code:Bi,message:`Plugin "${e}" tried to add a file position to a log or warning. This is only supported in the "transform" hook at the moment and will be ignored.`}}function Sn(e,t){return{code:Ni,message:`The "${t}" hook used by the output plugin ${e} is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.`}}function _n(e,t){return{code:Oi,message:`Found the module "${t}" cycle loading at ${e} plugin, it maybe blocking fetching modules.`}}function In(){return{code:Ri,message:"Found multiple watcher options at watch options, using first one to start watcher."}}function Ie(e,t,{hook:n,id:r}={}){try{let i=e.code;!e.pluginCode&&i!=null&&(typeof i!="string"||!i.startsWith("PLUGIN_"))&&(e.pluginCode=i),e.code=ki,e.plugin=t,n&&(e.hook=n),r&&(e.id=r)}catch{}finally{return e}}function Z(e){throw e instanceof Error||(e=Object.assign(new Error(e.message),e),Object.defineProperty(e,"name",{value:"RolldownError",writable:!0})),e}function Ue(e,t,n,r){if(typeof t=="object"){let{line:i,column:o}=t;e.loc={column:o,file:r,line:i}}else{e.pos=t;let i=Pt(n,t,{offsetLine:1});if(!i)return;let{line:o,column:u}=i;e.loc={column:u,file:r,line:o}}if(e.frame===void 0){let{line:i,column:o}=e.loc;e.frame=At(n,i,o)}}var Mi=q(U(),1),We=class{name;_options;enforce;constructor(e,t){this.name=e,this._options=t}};function il(e){let t=new Mi.BindingCallableBuiltinPlugin(Mt(e)),n=e;for(let r in t){let i=async function(...u){try{return await t[r](...u)}catch(l){return l instanceof Error&&!l.stack?.includes("at ")&&Error.captureStackTrace(l,n[r]),Z(Ie(l,e.name,{hook:r,id:r==="transform"?u[2]:void 0}))}},o=t.getOrder(r);o==null?n[r]=i:n[r]={handler:i,order:o}}return n}function Mt(e){return{__name:e.name,options:e._options}}function Bn(e,t){let{isOutputOptionsForLegacyChunks:n,...r}=e._options;return{__name:e.name,options:{...r,isLegacy:n?i=>n(t.getOutputOptions(i)):void 0}}}function Lt(e){if(e)return Li(e)?e:[e]}function Li(e){return Array.isArray(e)}function me(e){return Array.isArray(e)?e:[e]}function kn(e){throw e?new Error(`unimplemented: ${e}`):new Error("unimplemented")}function Tt(e){throw e?new Error(`unreachable: ${e}`):new Error("unreachable")}function Nn(e){throw new Error(`UNSUPPORTED: ${e}`)}function On(...e){}var Ti=/^(?:\/|(?:[A-Za-z]:)?[/\\|])/;function jt(e){return e[0]==="/"||e[0]==="."&&(e[1]==="/"||e[1]===".")||Ti.test(e)}function De(e){if(e!=null)return{inner:typeof e=="string"?e:{file:e.file??void 0,mappings:e.mappings,sourceRoot:"sourceRoot"in e?e.sourceRoot??void 0:void 0,sources:e.sources?.map(t=>t??void 0),sourcesContent:e.sourcesContent?.map(t=>t??void 0),names:e.names,x_google_ignoreList:e.x_google_ignoreList,debugId:"debugId"in e?e.debugId:void 0}}}U();function Qe(e){if(typeof e=="object"&&e!==null&&"isBindingErrors"in e&&e.isBindingErrors)throw he(e.errors);return e}function ll(e){return typeof e=="object"&&e!==null&&"isBindingErrors"in e&&e.isBindingErrors?he(e.errors):e}function ji(e){return e.type==="JsError"?e.field0:Object.assign(new Error,{code:e.field0.kind,kind:e.field0.kind,message:e.field0.message,id:e.field0.id,exporter:e.field0.exporter,loc:e.field0.loc,pos:e.field0.pos,stack:void 0})}function he(e){let t=e.map(ji),n=`Build failed with ${t.length} error${t.length<2?"":"s"}:
|
|
8
|
+
`;for(let i=0;i<t.length;i++){if(n+=`
|
|
9
|
+
`,i>=5){n+="...";break}n+=Rn(t[i])}let r=new Error(n);return Object.defineProperty(r,"errors",{configurable:!0,enumerable:!0,get:()=>t,set:i=>Object.defineProperty(r,"errors",{configurable:!0,enumerable:!0,value:i})}),r}function Rn(e){if(Object.hasOwn(e,"kind"))return e.message;let t="";e.plugin&&(t+=`[plugin ${e.plugin}]`);let n=e.id??e.loc?.file;n&&(t+=" "+n,e.loc&&(t+=`:${e.loc.line}:${e.loc.column}`)),t&&(t+=`
|
|
10
|
+
`);let r=`${e.name??"Error"}: ${e.message}`;return t+=r,e.frame&&(t=Ze(t,e.frame)),e.stack&&(t=Ze(t,e.stack.replace(r,""))),e.cause&&(t=Ze(t,"Caused by:"),t=Ze(t,Rn(e.cause).split(`
|
|
11
|
+
`).map(i=>" "+i).join(`
|
|
12
|
+
`))),t}function Ze(e,t){return e.replace(/\n+$/,"")+`
|
|
13
|
+
`+t.replace(/^\n+/,"")}var An=q(U(),1);function Pn(e){let t,n,r,i;return{get program(){return t||(t=Ui(e.program)),t},get module(){return n||(n=e.module),n},get comments(){return r||(r=e.comments),r},get errors(){return i||(i=e.errors),i}}}function Ui(e){let{node:t,fixes:n}=JSON.parse(e);for(let r of n)Wi(t,r);return t}function Wi(e,t){let n=e;for(let r of t)n=n[r];if(n.bigint)n.value=BigInt(n.bigint);else try{n.value=RegExp(n.regex.pattern,n.regex.flags)}catch{}}async function Mn(e,t,n){return Pn(await(0,An.parse)(e,t,n))}function Ln(e,t,n){return Pn((0,An.parseSync)(e,t,n))}function Tn(e,t,n){return e.errors.length>0?$i(t,n,e.errors):e.program}function $i(e,t,n){let r=`Parse failed with ${n.length} error${n.length<2?"":"s"}:
|
|
14
|
+
`,i=n[0]?.labels?.[0]?.start;for(let u=0;u<n.length;u++){if(u>=5){r+=`
|
|
15
|
+
...`;break}let l=n[u];r+=l.message+`
|
|
16
|
+
`+l.labels.map(c=>{let p=Pt(t,c.start,{offsetLine:1});if(p)return At(t,p.line,p.column)}).filter(Boolean).join(`
|
|
17
|
+
`)}let o=vn(r,e,i);return i!==void 0&&e&&Ue(o,i,t,e),Z(o)}var jn={lang:"js",preserveParens:!1};function Ut(e,t,n){return Tn(Ln(n??"file.js",e,{...jn,...t}),n,e)}async function gl(e,t,n){return Tn(await Mn(n??"file.js",e,{...jn,...t}),n,e)}import Un from"fs";import Wn from"path";var xi=class{kind;args;constructor(...e){if(e.length===0)throw new Error("`And` expects at least one operand");this.args=e,this.kind="and"}},Vi=class{kind;args;constructor(...e){if(e.length===0)throw new Error("`Or` expects at least one operand");this.args=e,this.kind="or"}};var Hi=class{kind;pattern;params;constructor(e,t){this.pattern=e,this.kind="id",this.params=t??{cleanUrl:!1}}};var zi=class{kind;pattern;constructor(e){this.pattern=e,this.kind="moduleType"}},Gi=class{kind;pattern;constructor(e){this.pattern=e,this.kind="code"}};var Ki=class{kind;expr;constructor(e){this.expr=e,this.kind="include"}},Yi=class{kind;expr;constructor(e){this.expr=e,this.kind="exclude"}};function Wt(...e){return new xi(...e)}function $e(...e){return new Vi(...e)}function $t(e,t){return new Hi(e,t)}function xt(e){return new zi(e)}function Vt(e){return new Gi(e)}function Be(e){return new Ki(e)}function Ht(e){return new Yi(e)}import X from"fs/promises";import{fileURLToPath as $n}from"url";var qi="1.2.6";var rt=qi,Zi="silent";var ce="warn",Hn="info",it="debug",Ee={[it]:0,[Hn]:1,[ce]:2,[Zi]:3},ie=e=>typeof e=="string"?{message:e}:typeof e=="function"?ie(e()):e;function zt(e,t,n,r,i){return Ee[e]<Ee[i]?On:(o,u)=>{u!=null&&n(ce,wn(r)),o=ie(o),o.code&&!o.pluginCode&&(o.pluginCode=o.code),o.code=t,o.plugin=r,n(e,o)}}function ot(e){if(typeof e=="function"||typeof e=="string")return{handler:e,options:{},meta:{}};if(typeof e=="object"&&e!==null){let{handler:t,order:n,...r}=e;return{handler:t,options:r,meta:{order:n}}}Tt("Invalid hook type")}function Ve(e){if(e===null||typeof e!="object")return;let t=Object.getOwnPropertyDescriptor(e,"_parallel");if(!t||!("value"in t))return;let n=t.value;if(!(n===null||typeof n!="object"||typeof n.fileUrl!="string"))return n}var st=class{pluginName;hookName;info;warn;debug;meta;constructor(e,t,n,r,i){this.pluginName=n,this.hookName=i,this.debug=zt(it,"PLUGIN_LOG",e,n,t),this.info=zt(Hn,"PLUGIN_LOG",e,n,t),this.warn=zt(ce,"PLUGIN_WARNING",e,n,t),this.meta={rollupVersion:"4.23.0",rolldownVersion:rt,watchMode:r}}error(e){return Z(Ie(ie(e),this.pluginName,{hook:this.hookName}))}},k=q(U(),1),xe=Symbol("__lazy_fields__"),Ae=class{constructor(){Qi(this)}};function Qi(e){let t=e.constructor[xe];if(t)for(let[n,r]of t.entries()){let i,o=!1;Object.defineProperty(e,n,{get(){return o||(i=r.call(this),o=!0),i},enumerable:!0,configurable:!0})}}function zn(e){let t=e.constructor[xe];return t?new Set(t.keys()):new Set}function b(e,t,n){e.constructor[xe]||(e.constructor[xe]=new Map);let r=n.get;return e.constructor[xe].set(t,r),{enumerable:!1,configurable:!0}}function ut(e){return e.inner}function Gn(e){return{inner:e}}function v(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(u=e[l])&&(o=(i<3?u(o):i>3?u(t,n,o):u(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}var we=class extends Ae{bindingAsset;type="asset";constructor(e){super(),this.bindingAsset=e}get fileName(){return this.bindingAsset.getFileName()}get originalFileName(){return this.bindingAsset.getOriginalFileName()||null}get originalFileNames(){return this.bindingAsset.getOriginalFileNames()}get name(){return this.bindingAsset.getName()??void 0}get names(){return this.bindingAsset.getNames()}get source(){return ut(this.bindingAsset.getSource())}__rolldown_external_memory_handle__(e){return e&&this.#n(),this.bindingAsset.dropInner()}#n(){for(let e of zn(this))this[e]}};v([b],we.prototype,"fileName",null);v([b],we.prototype,"originalFileName",null);v([b],we.prototype,"originalFileNames",null);v([b],we.prototype,"name",null);v([b],we.prototype,"names",null);v([b],we.prototype,"source",null);function Xi(e){return{get code(){return e.code},get renderedLength(){return e.code?.length||0},get renderedExports(){return e.renderedExports}}}function Re(e){let t=null;return{type:"chunk",get name(){return e.name},get isEntry(){return e.isEntry},get isDynamicEntry(){return e.isDynamicEntry},get facadeModuleId(){return e.facadeModuleId},get moduleIds(){return e.moduleIds},get exports(){return e.exports},get fileName(){return e.fileName},get imports(){return e.imports},get dynamicImports(){return e.dynamicImports},get modules(){return t||(t=qt(e.modules)),t}}}function qt(e){let t={};for(let n=0;n<e.values.length;n++){let r=e.keys[n],i=e.values[n];t[r]=Xi(i)}return t}var z=class extends Ae{bindingChunk;type="chunk";constructor(e){super(),this.bindingChunk=e}get fileName(){return this.bindingChunk.getFileName()}get name(){return this.bindingChunk.getName()}get exports(){return this.bindingChunk.getExports()}get isEntry(){return this.bindingChunk.getIsEntry()}get facadeModuleId(){return this.bindingChunk.getFacadeModuleId()||null}get isDynamicEntry(){return this.bindingChunk.getIsDynamicEntry()}get sourcemapFileName(){return this.bindingChunk.getSourcemapFileName()||null}get preliminaryFileName(){return this.bindingChunk.getPreliminaryFileName()}get code(){return this.bindingChunk.getCode()}get modules(){return qt(this.bindingChunk.getModules())}get imports(){return this.bindingChunk.getImports()}get dynamicImports(){return this.bindingChunk.getDynamicImports()}get moduleIds(){return this.bindingChunk.getModuleIds()}get map(){let e=this.bindingChunk.getMap();return e?Kn(e):null}__rolldown_external_memory_handle__(e){return e&&this.#n(),this.bindingChunk.dropInner()}#n(){for(let e of zn(this))this[e]}};v([b],z.prototype,"fileName",null);v([b],z.prototype,"name",null);v([b],z.prototype,"exports",null);v([b],z.prototype,"isEntry",null);v([b],z.prototype,"facadeModuleId",null);v([b],z.prototype,"isDynamicEntry",null);v([b],z.prototype,"sourcemapFileName",null);v([b],z.prototype,"preliminaryFileName",null);v([b],z.prototype,"code",null);v([b],z.prototype,"modules",null);v([b],z.prototype,"imports",null);v([b],z.prototype,"dynamicImports",null);v([b],z.prototype,"moduleIds",null);v([b],z.prototype,"map",null);function Kn(e){let t={...JSON.parse(e),toString(){return JSON.stringify(t)},toUrl(){return`data:application/json;charset=utf-8;base64,${Buffer.from(t.toString(),"utf-8").toString("base64")}`}};return t}function eo(e){return new z(e)}function to(e,t){let n={type:"chunk",get code(){return e.getCode()},fileName:e.getFileName(),name:e.getName(),get modules(){return qt(e.getModules())},get imports(){return e.getImports()},get dynamicImports(){return e.getDynamicImports()},exports:e.getExports(),isEntry:e.getIsEntry(),facadeModuleId:e.getFacadeModuleId()||null,isDynamicEntry:e.getIsDynamicEntry(),get moduleIds(){return e.getModuleIds()},get map(){let i=e.getMap();return i?Kn(i):null},sourcemapFileName:e.getSourcemapFileName()||null,preliminaryFileName:e.getPreliminaryFileName()},r={};return new Proxy(n,{get(i,o){if(o in r)return r[o];let u=i[o];return r[o]=u,u},set(i,o,u){return r[o]=u,t.updated.add(e.getFileName()),!0},has(i,o){return o in r?!0:o in i}})}function no(e){return new we(e)}function ro(e,t){let n={type:"asset",fileName:e.getFileName(),originalFileName:e.getOriginalFileName()||null,originalFileNames:e.getOriginalFileNames(),get source(){return ut(e.getSource())},name:e.getName()??void 0,names:e.getNames()},r={};return new Proxy(n,{get(i,o){if(o in r)return r[o];let u=i[o];return r[o]=u,u},set(i,o,u){return r[o]=u,t.updated.add(e.getFileName()),!0}})}function Yn(e){let{chunks:t,assets:n}=e,r={output:[...t.map(i=>eo(i)),...n.map(i=>no(i))]};return e.mangleCache!==void 0&&(r.mangleCache=e.mangleCache),r}function io(e,t){let{chunks:n,assets:r}=e;return{output:[...n.map(i=>to(i,t)),...r.map(i=>ro(i,t))]}}function oo(e,t,n){let r=Object.fromEntries(io(t,n).output.map(i=>[i.fileName,i]));return new Proxy(r,{set(i,o,u,l){let c=Error.stackTraceLimit;Error.stackTraceLimit=2;let p="This plugin assigns to bundle variable. This is discouraged by Rollup and is not supported by Rolldown. This will be ignored. https://rollupjs.org/plugin-development/#generatebundle:~:text=DANGER,this.emitFile.",f=new Error(p).stack??p;return Error.stackTraceLimit=c,e.warn({message:f,code:"UNSUPPORTED_BUNDLE_ASSIGNMENT"}),!0},deleteProperty(i,o){return typeof o=="string"&&n.deleted.add(o),!0}})}function Jn(e,t){let n={};for(let r in t){if(e.deleted.has(r)||!e.updated.has(r))continue;let i=t[r];i.type==="asset"?n[r]={filename:i.fileName,originalFileNames:i.originalFileNames,source:Gn(i.source),names:i.names}:n[r]={code:i.code,filename:i.fileName,name:i.name,isEntry:i.isEntry,exports:i.exports,modules:{},imports:i.imports,dynamicImports:i.dynamicImports,facadeModuleId:i.facadeModuleId||void 0,isDynamicEntry:i.isDynamicEntry,moduleIds:i.moduleIds,map:De(i.map),sourcemapFilename:i.sourcemapFileName||void 0,preliminaryFilename:i.preliminaryFileName}}return{changes:n,deleted:e.deleted}}var Pe=class extends Ae{onLog;inputPlugins;inner;constructor(e,t,n){super(),this.onLog=t,this.inputPlugins=n,this.inner=e}get shimMissingExports(){return this.inner.shimMissingExports}get input(){return this.inner.input}get cwd(){return this.inner.cwd}get platform(){return this.inner.platform}get context(){return this.inner.context}get plugins(){return this.inputPlugins}};v([b],Pe.prototype,"shimMissingExports",null);v([b],Pe.prototype,"input",null);v([b],Pe.prototype,"cwd",null);v([b],Pe.prototype,"platform",null);v([b],Pe.prototype,"context",null);var I=class extends Ae{inner;outputOptions;normalizedOutputPlugins;constructor(e,t,n){super(),this.inner=e,this.outputOptions=t,this.normalizedOutputPlugins=n}get dir(){return this.inner.dir??void 0}get entryFileNames(){return this.inner.entryFilenames||this.outputOptions.entryFileNames}get chunkFileNames(){return this.inner.chunkFilenames||this.outputOptions.chunkFileNames}get assetFileNames(){return this.inner.assetFilenames||this.outputOptions.assetFileNames}get format(){return this.inner.format}get exports(){return this.inner.exports}get sourcemap(){return this.inner.sourcemap}get sourcemapFileNames(){return this.inner.sourcemapFilenames||this.outputOptions.sourcemapFileNames}get sourcemapBaseUrl(){return this.inner.sourcemapBaseUrl??void 0}get shimMissingExports(){return this.inner.shimMissingExports}get name(){return this.inner.name??void 0}get file(){return this.inner.file??void 0}get codeSplitting(){return this.inner.codeSplitting}get inlineDynamicImports(){return!this.inner.codeSplitting}get dynamicImportInCjs(){return this.inner.dynamicImportInCjs}get externalLiveBindings(){return this.inner.externalLiveBindings}get banner(){return ke(this.outputOptions.banner)}get footer(){return ke(this.outputOptions.footer)}get postBanner(){return ke(this.outputOptions.postBanner)}get postFooter(){return ke(this.outputOptions.postFooter)}get intro(){return ke(this.outputOptions.intro)}get outro(){return ke(this.outputOptions.outro)}get esModule(){return this.inner.esModule}get extend(){return this.inner.extend}get globals(){return this.inner.globals||this.outputOptions.globals}get paths(){return this.outputOptions.paths}get hashCharacters(){return this.inner.hashCharacters}get sourcemapDebugIds(){return this.inner.sourcemapDebugIds}get sourcemapExcludeSources(){return this.inner.sourcemapExcludeSources}get sourcemapIgnoreList(){return this.outputOptions.sourcemapIgnoreList}get sourcemapPathTransform(){return this.outputOptions.sourcemapPathTransform}get minify(){let e=this.inner.minify;return typeof e=="object"&&e!==null&&(delete e.codegen,delete e.module,delete e.sourcemap),e}get legalComments(){return this.inner.legalComments}get comments(){let e=this.inner.comments;return{legal:e.legal??!0,annotation:e.annotation??!0,jsdoc:e.jsdoc??!0}}get polyfillRequire(){return this.inner.polyfillRequire}get plugins(){return this.normalizedOutputPlugins}get preserveModules(){return this.inner.preserveModules}get preserveModulesRoot(){return this.inner.preserveModulesRoot}get virtualDirname(){return this.inner.virtualDirname}get topLevelVar(){return this.inner.topLevelVar??!1}get minifyInternalExports(){return this.inner.minifyInternalExports??!1}};v([b],I.prototype,"dir",null);v([b],I.prototype,"entryFileNames",null);v([b],I.prototype,"chunkFileNames",null);v([b],I.prototype,"assetFileNames",null);v([b],I.prototype,"format",null);v([b],I.prototype,"exports",null);v([b],I.prototype,"sourcemap",null);v([b],I.prototype,"sourcemapFileNames",null);v([b],I.prototype,"sourcemapBaseUrl",null);v([b],I.prototype,"shimMissingExports",null);v([b],I.prototype,"name",null);v([b],I.prototype,"file",null);v([b],I.prototype,"codeSplitting",null);v([b],I.prototype,"inlineDynamicImports",null);v([b],I.prototype,"dynamicImportInCjs",null);v([b],I.prototype,"externalLiveBindings",null);v([b],I.prototype,"banner",null);v([b],I.prototype,"footer",null);v([b],I.prototype,"postBanner",null);v([b],I.prototype,"postFooter",null);v([b],I.prototype,"intro",null);v([b],I.prototype,"outro",null);v([b],I.prototype,"esModule",null);v([b],I.prototype,"extend",null);v([b],I.prototype,"globals",null);v([b],I.prototype,"paths",null);v([b],I.prototype,"hashCharacters",null);v([b],I.prototype,"sourcemapDebugIds",null);v([b],I.prototype,"sourcemapExcludeSources",null);v([b],I.prototype,"sourcemapIgnoreList",null);v([b],I.prototype,"sourcemapPathTransform",null);v([b],I.prototype,"minify",null);v([b],I.prototype,"legalComments",null);v([b],I.prototype,"comments",null);v([b],I.prototype,"polyfillRequire",null);v([b],I.prototype,"plugins",null);v([b],I.prototype,"preserveModules",null);v([b],I.prototype,"preserveModulesRoot",null);v([b],I.prototype,"virtualDirname",null);v([b],I.prototype,"topLevelVar",null);v([b],I.prototype,"minifyInternalExports",null);function ke(e){return typeof e=="function"?e:()=>e||""}function at(e,t){return{get ast(){return Nn("ModuleInfo#ast")},get code(){return e.code},id:e.id,importers:e.importers,dynamicImporters:e.dynamicImporters,importedIds:e.importedIds,dynamicallyImportedIds:e.dynamicallyImportedIds,exports:e.exports,isEntry:e.isEntry,inputFormat:e.inputFormat,...t}}var qn=class{onLog;outputOptions;normalizedInputPlugins;normalizedOutputPlugins;moduleOptionMap=new Map;resolveOptionsMap=new Map;loadModulePromiseMap=new Map;renderedChunkMeta=null;normalizedInputOptions=null;normalizedOutputOptions=null;constructor(e,t,n,r){this.onLog=e,this.outputOptions=t,this.normalizedInputPlugins=n,this.normalizedOutputPlugins=r}updateModuleOption(e,t){let n=this.moduleOptionMap.get(e);if(n)t.moduleSideEffects!=null&&(n.moduleSideEffects=t.moduleSideEffects),t.meta!=null&&Object.assign(n.meta,t.meta),t.invalidate!=null&&(n.invalidate=t.invalidate);else return this.moduleOptionMap.set(e,t),t;return n}getModuleOption(e){let t=this.moduleOptionMap.get(e);if(!t){let n={moduleSideEffects:null,meta:{}};return this.moduleOptionMap.set(e,n),n}return t}getModuleInfo(e,t){let n=t.getModuleInfo(e);if(n){let r=at(n,this.getModuleOption(e));return this.proxyModuleInfo(e,r)}return null}proxyModuleInfo(e,t){let n=t.moduleSideEffects;return Object.defineProperty(t,"moduleSideEffects",{get(){return n},set:r=>{this.updateModuleOption(e,{moduleSideEffects:r,meta:t.meta,invalidate:!0}),n=r}}),t}getModuleIds(e){return e.getModuleIds().values()}saveResolveOptions(e){let t=this.resolveOptionsMap.size;return this.resolveOptionsMap.set(t,e),t}getSavedResolveOptions(e){return this.resolveOptionsMap.get(e)}removeSavedResolveOptions(e){this.resolveOptionsMap.delete(e)}setRenderChunkMeta(e){this.renderedChunkMeta=e}getRenderChunkMeta(){return this.renderedChunkMeta}getInputOptions(e){return this.normalizedInputOptions??=new Pe(e,this.onLog,this.normalizedInputPlugins),this.normalizedInputOptions}getOutputOptions(e){return this.normalizedOutputOptions??=new I(e,this.outputOptions,this.normalizedOutputPlugins),this.normalizedOutputOptions}clear(){this.renderedChunkMeta=null,this.loadModulePromiseMap.clear()}};Object.defineProperty(k.BindingMagicString.prototype,"isRolldownMagicString",{value:!0,writable:!1,configurable:!1});function Fe(e,t){if(typeof e!="string")throw new TypeError(t)}var so=k.BindingMagicString.prototype.append,uo=k.BindingMagicString.prototype.prepend,ao=k.BindingMagicString.prototype.appendLeft,lo=k.BindingMagicString.prototype.appendRight,co=k.BindingMagicString.prototype.prependLeft,po=k.BindingMagicString.prototype.prependRight,Do=k.BindingMagicString.prototype.overwrite,fo=k.BindingMagicString.prototype.update;k.BindingMagicString.prototype.append=function(e){return Fe(e,"outro content must be a string"),so.call(this,e)};k.BindingMagicString.prototype.prepend=function(e){return Fe(e,"outro content must be a string"),uo.call(this,e)};k.BindingMagicString.prototype.appendLeft=function(e,t){return Fe(t,"inserted content must be a string"),ao.call(this,e,t)};k.BindingMagicString.prototype.appendRight=function(e,t){return Fe(t,"inserted content must be a string"),lo.call(this,e,t)};k.BindingMagicString.prototype.prependLeft=function(e,t){return Fe(t,"inserted content must be a string"),co.call(this,e,t)};k.BindingMagicString.prototype.prependRight=function(e,t){return Fe(t,"inserted content must be a string"),po.call(this,e,t)};k.BindingMagicString.prototype.overwrite=function(e,t,n,r){return Fe(n,"replacement content must be a string"),Do.call(this,e,t,n,r)};k.BindingMagicString.prototype.update=function(e,t,n,r){return Fe(n,"replacement content must be a string"),fo.call(this,e,t,n,r)};var go=k.BindingMagicString.prototype.replace,mo=k.BindingMagicString.prototype.replaceAll;k.BindingMagicString.prototype.replace=function(e,t){if(typeof e=="string")return go.call(this,e,t);e.global&&(e.lastIndex=0);let n=this.replaceRegex(e,t);return e.global?e.lastIndex=0:e.sticky&&(e.lastIndex=n===-1?0:n),this};k.BindingMagicString.prototype.replaceAll=function(e,t){if(typeof e=="string")return mo.call(this,e,t);if(!e.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return e.lastIndex=0,this.replaceRegex(e,t),e.lastIndex=0,this};var Oe=k.BindingMagicString;function Gt(e){return!e||e.length===0||!e[0]}function ho(e,t,n){if(!n)return;let r=typeof n=="object"?n:JSON.parse(n);return Gt(r.sourcesContent)&&(r.sourcesContent=[t]),(Gt(r.sources)||r.sources&&r.sources.length===1&&r.sources[0]!==e)&&(r.sources=[e]),r}function Eo(e,t,n){let r=i=>e(i,...t);return n===void 0?r:Object.assign(r,{lazy:n,lazyArgs:t})}function Fo(e,t,n){let r=e.length-t.length;if(r===0)return e(...t);if(r===1)return Eo(e,t,n);throw Error("Wrong number of arguments")}function xn(...e){return Fo(yo,e)}var yo=(e,t)=>{let n=[[],[]];for(let[r,i]of e.entries())t(i,r,e)?n[0].push(i):n[1].push(i);return n};function nt(e,t){if(typeof e=="string"||e instanceof RegExp)return[Be(Xe(t,e))];if(Array.isArray(e))return e.map(r=>Be(Xe(t,r)));let n=[];return e.exclude&&n.push(...me(e.exclude).map(r=>Ht(Xe(t,r)))),e.include&&n.push(...me(e.include).map(r=>Be(Xe(t,r)))),n}function Xe(e,t){return e==="code"?Vt(t):$t(t)}function Co(e){if(!e)return;if(Array.isArray(e))return e;let{id:t,code:n,moduleType:r}=e,i=[],o=[],u=[],l=[],c=[];t&&([o,u]=xn(nt(t,"id")??[],f=>f.kind==="include")),n&&([l,c]=xn(nt(n,"code")??[],f=>f.kind==="include")),i.push(...u),i.push(...c);let p=[];if(r){let f=Array.isArray(r)?r:r.include??[];p.push($e(...f.map(C=>xt(C))))}return o.length&&p.push($e(...o.map(f=>f.expr))),l.length&&p.push($e(...l.map(f=>f.expr))),p.length&&i.push(Be(Wt(...p))),i}function Zn(e,t){let n=nt(t,e),r=[];return n&&(r=n.map(He)),r.length>0?{value:r}:void 0}function He(e){let t=[];return Ne(e,t),t}function Kt(e){switch(e.kind){case"and":case"or":return e.args.some(Kt);case"not":case"include":case"exclude":return Kt(e.expr);case"importerId":return!0;default:return!1}}function Zt(e,t){if(e?.some(Kt))throw new Error(`The \`importerId\` filter can only be used with the \`resolveId\` hook, but it was used with the \`${t}\` hook.`)}function Yt(e){switch(e.kind){case"and":case"or":return e.args.some(Yt);case"not":case"include":case"exclude":return Yt(e.expr);case"id":return typeof e.pattern=="string";default:return!1}}function bo(e,t){if(e?.some(Yt))throw new Error(`A string \`id\` filter is not supported for the \`${t}\` hook, because its \`id\` is the import specifier rather than a resolved path. Use a RegExp instead.`)}function Ne(e,t){switch(e.kind){case"and":{let n=e.args;for(let r=n.length-1;r>=0;r--)Ne(n[r],t);t.push({kind:"And",payload:n.length});break}case"or":{let n=e.args;for(let r=n.length-1;r>=0;r--)Ne(n[r],t);t.push({kind:"Or",payload:n.length});break}case"not":Ne(e.expr,t),t.push({kind:"Not"});break;case"id":t.push({kind:"Id",payload:e.pattern}),e.params.cleanUrl&&t.push({kind:"CleanUrl"});break;case"importerId":t.push({kind:"ImporterId",payload:e.pattern}),e.params.cleanUrl&&t.push({kind:"CleanUrl"});break;case"moduleType":t.push({kind:"ModuleType",payload:e.pattern});break;case"code":t.push({kind:"Code",payload:e.pattern});break;case"include":Ne(e.expr,t),t.push({kind:"Include"});break;case"exclude":Ne(e.expr,t),t.push({kind:"Exclude"});break;case"query":t.push({kind:"QueryKey",payload:e.key}),t.push({kind:"QueryValue",payload:e.pattern});break;default:throw new Error(`Unknown filter expression: ${e}`)}}function vo(e){if(!e)return;let t=Array.isArray(e)?e:e.id?nt(e.id,"id"):void 0;if(bo(t,"resolveId"),!t)return;let n=t.map(He);return n.length>0?{value:n}:void 0}function wo(e){if(e)return Array.isArray(e)?(Zt(e,"load"),{value:e.map(He)}):e.id?Zn("id",e.id):void 0}function So(e){if(!e)return;let t=Co(e);Zt(t,"transform");let n=[];return t&&(n=t.map(He)),{value:n.length>0?n:void 0}}function _o(e){if(e)return Array.isArray(e)?(Zt(e,"renderChunk"),{value:e.map(He)}):e.code?Zn("code",e.code):void 0}function Io(e){return{order:Bo(e.order)}}function Bo(e){switch(e){case"post":return k.BindingPluginOrder.Post;case"pre":return k.BindingPluginOrder.Pre;case null:case void 0:return;default:throw new Error(`Unknown plugin order: ${e}`)}}function T(e,t){if(!e)return{};let n=ot(e);return{...t(n),meta:Io(n.meta)}}var ko={appendFile:X.appendFile,copyFile:X.copyFile,mkdir:X.mkdir,mkdtemp:X.mkdtemp,readdir:X.readdir,readFile:X.readFile,realpath:X.realpath,rename:X.rename,rmdir:X.rmdir,stat:X.stat,lstat:X.lstat,unlink:X.unlink,writeFile:X.writeFile},Qt=class extends st{outputOptions;context;data;onLog;currentLoadingModule;fs=ko;getModuleInfo;constructor(e,t,n,r,i,o,u,l){super(i,o,n.name,u),this.outputOptions=e,this.context=t,this.data=r,this.onLog=i,this.currentLoadingModule=l,this.getModuleInfo=c=>this.data.getModuleInfo(c,t)}async load(e){let t=e.id;t===this.currentLoadingModule&&this.onLog(ce,_n(this.pluginName,this.currentLoadingModule));let n=this.data.getModuleInfo(t,this.context);if(n&&n.code!==null)return n;let r={meta:e.meta||{},moduleSideEffects:e.moduleSideEffects||null,invalidate:!1};this.data.updateModuleOption(t,r);let i=this.data.loadModulePromiseMap.get(t);return i||(i=this.context.load(t,e.moduleSideEffects??void 0,e.packageJsonPath??void 0).catch(()=>{this.data.loadModulePromiseMap.delete(t)}),this.data.loadModulePromiseMap.set(t,i)),await i,this.data.getModuleInfo(t,this.context)}async resolve(e,t,n){let r;n!=null&&(r=this.data.saveResolveOptions(n));let i=Object.entries(n?.custom??{}).reduce((l,[c,p])=>(c.startsWith("vite:")&&((l??={})[c]=p),l),void 0),o=await this.context.resolve(e,t,{importKind:n?.kind,custom:r,isEntry:n?.isEntry,skipSelf:n?.skipSelf,vitePluginCustom:i});if(r!=null&&this.data.removeSavedResolveOptions(r),o==null)return null;let u=this.data.getModuleOption(o.id)||{};return{...o,external:o.external==="relative"?Tt("The PluginContext resolve result external couldn't be 'relative'"):o.external,...u,moduleSideEffects:u.moduleSideEffects??o.moduleSideEffects??null,packageJsonPath:o.packageJsonPath}}emitFile=e=>{if(e.type==="prebuilt-chunk")return typeof e.code!="string"?Z(qe(`Emitted prebuilt chunks need to have a valid string code, received "${e.code}".`)):typeof e.fileName!="string"||jt(e.fileName)?Z(qe(`The "fileName" property of emitted prebuilt chunks must be strings that are neither absolute nor relative paths, received "${e.fileName}".`)):this.context.emitPrebuiltChunk({fileName:e.fileName,name:e.name,code:e.code,exports:e.exports,map:De(e.map),sourcemapFileName:e.sourcemapFileName,facadeModuleId:e.facadeModuleId,isEntry:e.isEntry,isDynamicEntry:e.isDynamicEntry});let t=e.fileName||e.name;if(typeof t=="string"&&jt(t))return Z(qe(`The "fileName" or "name" properties of emitted chunks and assets must be strings that are neither absolute nor relative paths, received "${t}".`));if(e.type==="chunk")return this.context.emitChunk({preserveEntrySignatures:rr(e.preserveSignature),...e});let n=e.fileName||typeof this.outputOptions.sanitizeFileName!="function"?void 0:this.outputOptions.sanitizeFileName(e.name||"asset"),r=e.fileName?void 0:this.getAssetFileNames(e);return this.context.emitFile({...e,originalFileName:e.originalFileName||void 0,source:Gn(e.source)},r,n)};getAssetFileNames(e){if(typeof this.outputOptions.assetFileNames=="function")return this.outputOptions.assetFileNames({type:"asset",name:e.name,names:e.name?[e.name]:[],originalFileName:e.originalFileName,originalFileNames:e.originalFileName?[e.originalFileName]:[],source:e.source})}getFileName(e){return this.context.getFileName(e)}getModuleIds(){return this.data.getModuleIds(this.context)}addWatchFile(e){this.context.addWatchFile(e)}parse(e,t){return Ut(e,t)}};function W(e,t){return new Qt(e.outputOptions,t,e.plugin,e.pluginContextData,e.onLog,e.logLevel,e.watchMode)}var No=class extends Qt{inner;constructor(e,t,n,r,i,o,u,l,c){super(e,t,n,r,u,l,c,o),this.inner=i}addWatchFile(e){this.inner.addWatchFile(e)}},Oo=class extends Qt{inner;moduleId;moduleSource;constructor(e,t,n,r,i,o,u,l,c,p){super(e,t,n,r,l,c,p,o),this.inner=i,this.moduleId=o,this.moduleSource=u;let f=C=>(w,S)=>{w=ie(w),S&&Ue(w,S,u,o),w.id=o,w.hook="transform",C(w)};this.debug=f(this.debug),this.warn=f(this.warn),this.info=f(this.info)}error(e,t){return typeof e=="string"&&(e={message:e}),t&&Ue(e,t,this.moduleSource,this.moduleId),e.id=this.moduleId,e.hook="transform",Z(Ie(ie(e),this.pluginName))}getCombinedSourcemap(){return JSON.parse(this.inner.getCombinedSourcemap())}addWatchFile(e){this.inner.addWatchFile(e)}sendMagicString(e){this.inner.sendMagicString(e)}};function Ro(e){return T(e.plugin.buildStart,({handler:t})=>({plugin:async(n,r)=>{await t.call(W(e,n),e.pluginContextData.getInputOptions(r))}}))}function Ao(e){return T(e.plugin.buildEnd,({handler:t})=>({plugin:async(n,r)=>{await t.call(W(e,n),r?he(r):void 0)}}))}function Po(e){let t=e.plugin.resolveId;return T(t,({handler:n,options:r})=>({plugin:async(i,o,u,l)=>{let c=l.custom!=null?e.pluginContextData.getSavedResolveOptions(l.custom):void 0,p=await n.call(W(e,i),o,u??void 0,{...l,custom:c?.custom});if(p==null)return;if(p===!1)return{id:o,external:!0,normalizeExternalId:!0};if(typeof p=="string")return{id:p,normalizeExternalId:!1};let f=e.pluginContextData.updateModuleOption(p.id,{meta:p.meta||{},moduleSideEffects:p.moduleSideEffects??null,invalidate:!1});return{id:p.id,external:p.external,normalizeExternalId:!1,moduleSideEffects:f.moduleSideEffects??void 0,packageJsonPath:p.packageJsonPath}},filter:vo(r.filter)}))}function Mo(e){return T(e.plugin.resolveDynamicImport,({handler:t})=>({plugin:async(n,r,i)=>{let o=await t.call(W(e,n),r,i??void 0);if(o==null)return;if(o===!1)return{id:r,external:!0};if(typeof o=="string")return{id:o};let u={id:o.id,external:o.external,packageJsonPath:o.packageJsonPath};return o.moduleSideEffects!==null&&(u.moduleSideEffects=o.moduleSideEffects),e.pluginContextData.updateModuleOption(o.id,{meta:o.meta||{},moduleSideEffects:o.moduleSideEffects||null,invalidate:!1}),u}}))}function Lo(e){return T(e.plugin.transform,({handler:t,options:n})=>({plugin:async(r,i,o,u)=>{let l,c;Object.defineProperties(u,{magicString:{get(){return l||(l=new Oe(i),l)}},ast:{get(){if(c)return c;let j="js";switch(u.moduleType){case"js":case"jsx":case"ts":case"tsx":j=u.moduleType}return c=Ut(i,{astType:u.moduleType.includes("ts")?"ts":"js",lang:j}),c}}});let p=new Oo(e.outputOptions,r.inner(),e.plugin,e.pluginContextData,r,o,i,e.onLog,e.logLevel,e.watchMode),f=await t.call(p,i,o,u);if(f==null)return;if(typeof f=="string")return{code:f};let C=e.pluginContextData.updateModuleOption(o,{meta:f.meta??{},moduleSideEffects:f.moduleSideEffects??null,invalidate:!1}),w,S=f.map,O=!1;if(typeof f.code=="string")w=f.code;else if(f.code instanceof Oe){let j=f.code;w=j.toString();let te=r.sendMagicString(j);te!=null?S=te:O=!0}return{code:w,map:De(ho(o,i,S))??(O||f.map===null?null:void 0),moduleSideEffects:C.moduleSideEffects??void 0,moduleType:f.moduleType}},filter:So(n.filter)}))}function To(e){return T(e.plugin.load,({handler:t,options:n})=>({plugin:async(r,i)=>{let o=await t.call(new No(e.outputOptions,r.inner(),e.plugin,e.pluginContextData,r,i,e.onLog,e.logLevel,e.watchMode),i);if(o==null)return;if(typeof o=="string")return{code:o};let u=e.pluginContextData.updateModuleOption(i,{meta:o.meta||{},moduleSideEffects:o.moduleSideEffects??null,invalidate:!1}),l=jo(o,i);return{code:o.code,map:De(l),moduleType:o.moduleType,moduleSideEffects:u.moduleSideEffects??void 0}},filter:wo(n.filter)}))}function jo(e,t){if(!e.map)return;let n=typeof e.map=="object"?e.map:JSON.parse(e.map);if(!Gt(n.sources)){let r=Wn.dirname(t)||".",i=n.sourceRoot||".";n.sources=n.sources.map(o=>Wn.resolve(r,i,o))}return n}function Uo(e){return T(e.plugin.moduleParsed,({handler:t})=>({plugin:async(n,r)=>{await t.call(W(e,n),at(r,e.pluginContextData.getModuleOption(r.id)))}}))}function Wo(e){return T(e.plugin.renderStart,({handler:t})=>({plugin:async(n,r)=>{await t.call(W(e,n),e.pluginContextData.getOutputOptions(r),e.pluginContextData.getInputOptions(r))}}))}function $o(e){return T(e.plugin.renderChunk,({handler:t,options:n})=>({plugin:async(r,i,o,u,l)=>{e.pluginContextData.getRenderChunkMeta()==null&&e.pluginContextData.setRenderChunkMeta({chunks:Object.fromEntries(Object.entries(l.chunks).map(([C,w])=>[C,Re(w)]))});let c=e.pluginContextData.getRenderChunkMeta(),p;e.options.experimental?.nativeMagicString&&Object.defineProperty(c,"magicString",{get(){return p||(p=new Oe(i),p)},configurable:!0});let f=await t.call(W(e,r),i,Re(o),e.pluginContextData.getOutputOptions(u),c);if(f!=null){if(f instanceof Oe){let C=f.toString(),w=f.generateMap();return{code:C,map:De({file:w.file,mappings:w.mappings,names:w.names,sources:w.sources,sourcesContent:w.sourcesContent.map(S=>S??null)})}}if(typeof f=="string")return{code:f};if(f.code instanceof Oe){let C=f.code,w=C.toString();if(f.map===null)return{code:w,map:null};if(f.map===void 0){let S=C.generateMap();return{code:w,map:De({file:S.file,mappings:S.mappings,names:S.names,sources:S.sources,sourcesContent:S.sourcesContent.map(O=>O??null)})}}return{code:w,map:De(f.map)}}return f.map===null?{code:f.code,map:null}:{code:f.code,map:De(f.map)}}},filter:_o(n.filter)}))}function xo(e){return T(e.plugin.augmentChunkHash,({handler:t})=>({plugin:async(n,r)=>t.call(W(e,n),Re(r))}))}function Vo(e){return T(e.plugin.resolveFileUrl,({handler:t})=>({plugin:async(n,r)=>t.call(W(e,n),r)}))}function Ho(e){return T(e.plugin.renderError,({handler:t})=>({plugin:async(n,r)=>{await t.call(W(e,n),he(r))}}))}function Qn(e,t,n){let r={updated:new Set,deleted:new Set},i=W(e,t);return{changed:r,context:i,output:oo(i,Qe(n),r)}}function zo(e){return T(e.plugin.generateBundle,({handler:t})=>({plugin:async(n,r,i,o)=>{let{changed:u,context:l,output:c}=Qn(e,n,r);return await t.call(l,e.pluginContextData.getOutputOptions(o),c,i),Jn(u,c)}}))}function Go(e){return T(e.plugin.writeBundle,({handler:t})=>({plugin:async(n,r,i)=>{let{changed:o,context:u,output:l}=Qn(e,n,r);return await t.call(u,e.pluginContextData.getOutputOptions(i),l),Jn(o,l)}}))}function Ko(e){return T(e.plugin.closeBundle,({handler:t})=>({plugin:async(n,r)=>{await t.call(W(e,n),r?he(r):void 0)}}))}function et(e,t){return T(e.plugin[t],({handler:n})=>({plugin:async(r,i)=>typeof n=="string"?n:n.call(W(e,r),Re(i))}))}function Yo(e){return T(e.plugin.hotUpdate,({handler:t})=>({plugin:async(n,r)=>await t.call(W(e,n),{type:r.kind,file:r.file,modules:r.modules})??void 0}))}function Jo(e){return T(e.plugin.watchChange,({handler:t})=>({plugin:async(n,r,i)=>{await t.call(W(e,n),r,{event:i})}}))}function qo(e){return T(e.plugin.closeWatcher,({handler:t})=>({plugin:async n=>{await t.call(W(e,n))}}))}var Zo=class{bitflag=BigInt(0);constructor(){}union(e){this.bitflag|=BigInt(e)}inner(){return Number(this.bitflag)}};function Qo(e){let t=new Zo;return e.buildStart&&t.union(1),e.resolveId&&t.union(2),e.resolveDynamicImport&&t.union(4),e.load&&t.union(8),e.transform&&t.union(16),e.moduleParsed&&t.union(32),e.buildEnd&&t.union(64),e.renderStart&&t.union(128),e.renderError&&t.union(256),e.renderChunk&&t.union(512),e.augmentChunkHash&&t.union(1024),e.generateBundle&&t.union(2048),e.writeBundle&&t.union(4096),e.closeBundle&&t.union(8192),e.watchChange&&t.union(16384),e.closeWatcher&&t.union(32768),e.banner&&t.union(131072),e.footer&&t.union(262144),e.intro&&t.union(524288),e.outro&&t.union(1048576),e.resolveFileUrl&&t.union(2097152),e.hotUpdate&&t.union(4194304),t}var Xo=.01,Jt=new WeakMap;function Xn(e){let t=Jt.get(e);return t===void 0&&(t={costs:new Map,busyMs:0,inFlight:0,busyStart:0},Jt.set(e,t)),t}function es(e,t,n){let r=e.costs.get(t.key);r===void 0&&(r=new Map,e.costs.set(t.key,r));let i=r.get(n);return i===void 0&&(i={owner:t.name,kind:t.kind,hookName:n,calls:0,ms:0,inFlight:0,maxInFlight:0,overlapMs:0,lastChange:0},r.set(n,i)),i}function er(e,t){e.inFlight>1&&(e.overlapMs+=(e.inFlight-1)*(t-e.lastChange)),e.lastChange=t}function tt(e,t,n){let r=performance.now();er(t,r),t.inFlight-=1,t.ms+=r-n,e.inFlight-=1,e.inFlight===0&&(e.busyMs+=r-e.busyStart)}function Se(e,t,n,r){if(e===void 0)return r;let i=es(e,t,n);return function(...o){let u=performance.now();er(i,u),i.calls+=1,i.inFlight+=1,i.inFlight>i.maxInFlight&&(i.maxInFlight=i.inFlight),e.inFlight===0&&(e.busyStart=u),e.inFlight+=1;let l;try{l=r.apply(this,o)}catch(c){throw tt(e,i,u),c}return typeof l?.then=="function"?l.then(c=>(tt(e,i,u),c),c=>{throw tt(e,i,u),c}):(tt(e,i,u),l)}}var ee={key:Symbol("output options"),name:"output options",kind:"outputOption"},tr={key:Symbol("input options"),name:"input options",kind:"inputOption"};function oe(e,t,n,r){return typeof r!="function"?r:Se(e,t,n,r)}function ts(e){let t=Jt.get(e);if(t===void 0)return{busyMs:0,rows:[]};let n=[];for(let r of t.costs.values())for(let i of r.values())i.calls!==0&&n.push({owner:i.owner,kind:i.kind,hook:i.hookName,calls:i.calls,ms:i.ms,maxInFlight:i.maxInFlight,overlapMs:i.overlapMs,rankable:i.overlapMs<=i.ms*Xo});return{busyMs:t.busyMs,rows:n}}function ns(e,t,n,r,i,o,u,l,c){let p={plugin:e,options:t,outputOptions:n,pluginContextData:r,onLog:o,logLevel:u,watchMode:l,normalizedOutputPlugins:i},{plugin:f,meta:C}=Ro(p),{plugin:w,meta:S,filter:O}=Po(p),{plugin:j,meta:te}=Mo(p),{plugin:a,meta:E}=Ao(p),{plugin:ne,meta:ae,filter:P}=Lo(p),{plugin:H,meta:Y}=Uo(p),{plugin:J,meta:le,filter:ge}=To(p),{plugin:yt,meta:Ye,filter:Ct}=$o(p),{plugin:bt,meta:vt}=xo(p),{plugin:Je,meta:wt}=Vo(p),{plugin:St,meta:_t}=Wo(p),{plugin:It,meta:Bt}=Ho(p),{plugin:kt,meta:Nt}=zo(p),{plugin:Ot,meta:Zr}=Go(p),{plugin:Qr,meta:Xr}=Ko(p),{plugin:ei,meta:ti}=et(p,"banner"),{plugin:ni,meta:ri}=et(p,"footer"),{plugin:ii,meta:oi}=et(p,"intro"),{plugin:si,meta:ui}=et(p,"outro"),{plugin:ai,meta:li}=Jo(p),{plugin:ci,meta:pi}=Yo(p),{plugin:di,meta:Di}=qo(p),fi=Qo(e).inner(),Fn={name:e.name,buildStart:f,buildStartMeta:C,resolveId:w,resolveIdMeta:S,resolveIdFilter:O,resolveDynamicImport:j,resolveDynamicImportMeta:te,buildEnd:a,buildEndMeta:E,transform:ne,transformMeta:ae,transformFilter:P,moduleParsed:H,moduleParsedMeta:Y,load:J,loadMeta:le,loadFilter:ge,renderChunk:yt,renderChunkMeta:Ye,renderChunkFilter:Ct,augmentChunkHash:bt,augmentChunkHashMeta:vt,resolveFileUrl:Je,resolveFileUrlMeta:wt,renderStart:St,renderStartMeta:_t,renderError:It,renderErrorMeta:Bt,generateBundle:kt,generateBundleMeta:Nt,writeBundle:Ot,writeBundleMeta:Zr,closeBundle:Qr,closeBundleMeta:Xr,banner:ei,bannerMeta:ti,footer:ni,footerMeta:ri,intro:ii,introMeta:oi,outro:si,outroMeta:ui,watchChange:ai,watchChangeMeta:li,hotUpdate:ci,hotUpdateMeta:pi,closeWatcher:di,closeWatcherMeta:Di,hookUsage:fi};return rs(Fn,{key:e,name:Fn.name,kind:"plugin"},c)}function rs(e,t,n){for(let r of["buildStart","resolveId","resolveDynamicImport","buildEnd","transform","moduleParsed","load","renderChunk","augmentChunkHash","resolveFileUrl","renderStart","renderError","generateBundle","writeBundle","closeBundle","banner","footer","intro","outro","watchChange","hotUpdate","closeWatcher"]){let i=e[r],o=i&&Se(n,t,r,i);o&&(e[r]=async(...u)=>{try{return await o(...u)}catch(l){return Z(Ie(l,e.name,{hook:r,id:r==="transform"?u[2]:void 0}))}})}return e}function is(e){let t=e.transform,n=t?.define?Object.entries(t.define):void 0,r=t?.inject,i=t?.dropLabels,o;if(t){let{define:u,inject:l,dropLabels:c,...p}=t;Object.keys(p).length>0&&(p.jsx===!1&&(p.jsx="disable"),o=p)}return{define:n,inject:r,dropLabels:i,oxcTransformOptions:o}}function Vn(e="localhost",t=3e3){let n=Un.readFileSync($n(import.meta.resolve("#runtime")),"utf8"),r=n.indexOf(`
|
|
18
|
+
`);if(!n.startsWith("import ")||r===-1)throw new Error("Expected the standalone runtime to start with a helper import");return`${n.slice(r+1)}
|
|
19
|
+
${Un.readFileSync($n(import.meta.resolve("#default-runtime")),"utf8").replaceAll("$ADDR",`${e}:${t}`)}`}function nr(e,t,n,r,i,o,u,l,c){let p=e.map(C=>{if(!Ve(C))return C instanceof We?C.name==="builtin:vite-manifest"?Bn(C,r):Mt(C):ns(C,t,n,r,i,o,u,l,c)}),f=is(t);return{input:ds(t.input),plugins:p,cwd:t.cwd??process.cwd(),external:us(t.external,c),resolve:ls(t.resolve),platform:t.platform,shimMissingExports:t.shimMissingExports,logLevel:ps(u),onLog:o,treeshake:fs(t.treeshake,c),moduleTypes:t.moduleTypes,define:f.define,inject:cs(f.inject),experimental:as(t.experimental),profilerNames:n.generatedCode?.profilerNames,transform:f.oxcTransformOptions,watch:Ds(t.watch),dropLabels:f.dropLabels,keepNames:n.keepNames,checks:t.checks,pluginTimings:c?()=>ts(t):void 0,deferSyncScanData:()=>{let C=[];return r.moduleOptionMap.forEach((w,S)=>{w.invalidate&&C.push({id:S,sideEffects:w.moduleSideEffects??void 0})}),C},makeAbsoluteExternalsRelative:gs(t.makeAbsoluteExternalsRelative),devtools:t.devtools,invalidateJsSideCache:r.clear.bind(r),preserveEntrySignatures:rr(t.preserveEntrySignatures),optimization:t.optimization,context:t.context,tsconfig:t.resolve?.tsconfigFilename??t.tsconfig}}function os(e){if(e){if(typeof e=="boolean")return e?{implement:Vn(),skipCommonRuntimeInjection:!0}:void 0;let t=e.implement==null;return{...e,implement:e.implement??Vn(e.host,e.port),skipCommonRuntimeInjection:t?!0:e.skipCommonRuntimeInjection}}}function ss(e){switch(e){case void 0:return;case"full":return k.BindingAttachDebugInfo.Full;case"simple":return k.BindingAttachDebugInfo.Simple;case"none":return k.BindingAttachDebugInfo.None}}function us(e,t){if(e){if(typeof e=="function"){let n=Se(t,tr,"external",e);return(r,i,o)=>r.startsWith("\0")?!1:n(r,i,o)??!1}return me(e)}}function as(e){let t=k.BindingChunkModuleOrderBy.ExecOrder;if(e?.chunkModulesOrder)switch(e.chunkModulesOrder){case"exec-order":t=k.BindingChunkModuleOrderBy.ExecOrder;break;case"module-id":t=k.BindingChunkModuleOrderBy.ModuleId;break;default:throw new Error(`Unexpected chunkModulesOrder: ${e.chunkModulesOrder}`)}return{viteMode:e?.viteMode,resolveNewUrlToAsset:e?.resolveNewUrlToAsset,devMode:os(e?.devMode),attachDebugInfo:ss(e?.attachDebugInfo),chunkModulesOrder:t,chunkImportMap:e?.chunkImportMap,onDemandWrapping:e?.onDemandWrapping,incrementalBuild:e?.incrementalBuild,nativeMagicString:e?.nativeMagicString,chunkOptimization:e?.chunkOptimization,lazyBarrel:e?.lazyBarrel}}function ls(e){let t=typeof process=="object"&&!!process.versions?.pnp;if(e){let{alias:n,extensionAlias:r,...i}=e;return{alias:n?Object.entries(n).map(([o,u])=>({find:o,replacements:u===!1?[void 0]:me(u)})):void 0,extensionAlias:r?Object.entries(r).map(([o,u])=>({target:o,replacements:u})):void 0,yarnPnp:t,...i}}else return{yarnPnp:t}}function cs(e){if(e)return Object.entries(e).map(([t,n])=>Array.isArray(n)?n[1]==="*"?{tagNamespace:!0,alias:t,from:n[0]}:{tagNamed:!0,alias:t,from:n[0],imported:n[1]}:{tagNamed:!0,imported:"default",alias:t,from:n})}function ps(e){switch(e){case"silent":return k.BindingLogLevel.Silent;case"debug":return k.BindingLogLevel.Debug;case"warn":return k.BindingLogLevel.Warn;case"info":return k.BindingLogLevel.Info;default:throw new Error(`Unexpected log level: ${e}`)}}function ds(e){return e===void 0?[]:typeof e=="string"?[{import:e}]:Array.isArray(e)?e.map(t=>({import:t})):Object.entries(e).map(([t,n])=>({name:t,import:n}))}function Ds(e){if(e){let t=e.watcher??{};return{buildDelay:e.buildDelay,skipWrite:e.skipWrite,usePolling:t.usePolling,pollInterval:t.pollInterval,compareContentsForPolling:t.compareContentsForPolling,useDebounce:t.useDebounce,debounceDelay:t.debounceDelay,debounceTickRate:t.debounceTickRate,include:Lt(e.include),exclude:Lt(e.exclude),onInvalidate:(...n)=>e.onInvalidate?.(...n)}}}function fs(e,t){if(e===!1)return;if(e===!0||e===void 0)return{moduleSideEffects:!0};let n={moduleSideEffects:!0,annotations:e.annotations,manualPureFunctions:e.manualPureFunctions,unknownGlobalSideEffects:e.unknownGlobalSideEffects,invalidImportSideEffects:e.invalidImportSideEffects,commonjs:e.commonjs};switch(e.propertyReadSideEffects){case"always":n.propertyReadSideEffects=k.BindingPropertyReadSideEffects.Always;break;case!1:n.propertyReadSideEffects=k.BindingPropertyReadSideEffects.False}switch(e.propertyWriteSideEffects){case"always":n.propertyWriteSideEffects=k.BindingPropertyWriteSideEffects.Always;break;case!1:n.propertyWriteSideEffects=k.BindingPropertyWriteSideEffects.False}return e.moduleSideEffects===void 0?n.moduleSideEffects=!0:e.moduleSideEffects==="no-external"?n.moduleSideEffects=[{external:!0,sideEffects:!1},{external:!1,sideEffects:!0}]:n.moduleSideEffects=oe(t,tr,"treeshake.moduleSideEffects",e.moduleSideEffects),n}function gs(e){if(e==="ifRelativeSource")return{type:"IfRelativeSource"};if(typeof e=="boolean")return{type:"Bool",field0:e}}function rr(e){if(e!=null)return typeof e=="string"?{type:"String",field0:e}:{type:"Bool",field0:e}}import{Worker as ms}from"worker_threads";import Xt,{sep as hs}from"path";import{formatWithOptions as ir,styleText as Es}from"util";import or from"process";import*as Dt from"tty";import sr from"os";function Er(e,t,n,r){let i=Ee[n],o=(u,l,c=new Set)=>{if(!(Ee[u]<i)){for(let p of un("onLog",e)){if(c.has(p))continue;let{onLog:f}=p;if(f){let C=w=>Ee[w]<i?()=>{}:S=>o(w,ie(S),new Set(c).add(p));if(("handler"in f?f.handler:f).call({debug:C("debug"),error:w=>Z(ie(w)),info:C("info"),meta:{rollupVersion:"4.23.0",rolldownVersion:rt,watchMode:r},warn:C("warn"),pluginName:p.name||"unknown"},u,l)===!1)return}}t(u,l)}};return o}var Fr=(e,t,n=ys)=>{let{onwarn:r,onLog:i}=e,o=Fs(n,r);if(i){let u=Ee[t];return(l,c)=>i(l,yr(c),(p,f)=>{if(p==="error")return Z(ie(f));Ee[p]>=u&&o(p,ie(f))})}return o},Fs=(e,t)=>t?(n,r)=>{n==="warn"?t(yr(r),i=>e(ce,ie(i))):e(n,r)}:e,yr=e=>(Object.defineProperty(e,"toString",{value:()=>Cr(e),writable:!0}),e),ys=(e,t)=>{let n=Cr(t);switch(e){case ce:return console.warn(n);case it:return console.debug(n);default:return console.info(n)}},Cr=e=>{let t="";return e.plugin&&(t+=`(${e.plugin} plugin) `),e.loc&&(t+=`${Cs(e.loc.file)} (${e.loc.line}:${e.loc.column}) `),t+e.message};function Cs(e){return Xt.isAbsolute(e)?Xt.relative(Xt.resolve(),e):e}var br=["options","buildStart","resolveId","load","transform","moduleParsed","buildEnd","onLog","resolveDynamicImport","closeBundle","closeWatcher","watchChange"],bs=["augmentChunkHash","outputOptions","renderChunk","renderStart","renderError","writeBundle","generateBundle","resolveFileUrl"],_=[...br,...bs,"footer","banner","intro","outro"];_[0],_[0],_[1],_[1],_[2],_[2],_[3],_[3],_[4],_[4],_[5],_[5],_[6],_[6],_[7],_[7],_[8],_[8],_[9],_[9],_[10],_[10],_[11],_[11],_[12],_[12],_[13],_[13],_[14],_[14],_[15],_[15],_[16],_[16],_[17],_[17],_[18],_[18],_[19],_[19],_[20],_[20],_[21],_[21],_[22],_[22],_[23],_[23];var vs=["hotUpdate"];async function ws(e){do e=(await Promise.all(e)).flat(1/0);while(e.some(t=>t?.then));return e}var pt=async e=>(await ws([e])).filter(Boolean);function Ss(e,t){for(let n of e)for(let r of[...br,...vs])r in n&&(delete n[r],t(ce,Sn(n.name,r)));return e}function ur(e,t){for(let[n,r]of e.entries()){if(Ve(r)||r instanceof We)continue;let i=r;i.name||(i.name=`${t}${n+1}`)}return e}var _s="at position ",Is="at output position ",Ke=class{static async callOptionsHook(e,t=!1){let n=e.logLevel||"info",r=un("options",sn(await pt(e.plugins))),i=Er(r,Fr(e,n),n,t);for(let o of r){let u=o.name||"unknown",l=o.options;if(l){let{handler:c}=ot(l),p=await c.call(new st(i,n,u,t,"onLog"),e);p&&(e=p)}}return e}static callOutputOptionsHook(e,t,n,r,i){let o=un("outputOptions",sn(e));for(let u of o){let l=u.name||"unknown",c=u.outputOptions;if(c){let{handler:p}=ot(c),f=p.call(new st(n,r,l,i),t);f&&(t=f)}}return t}};function sn(e){return e.filter(t=>{if(t&&!Ve(t)&&!(t instanceof We))return t})}function un(e,t){let n=[],r=[],i=[];for(let o of t){let u=o[e];if(u){if(typeof u=="object"){if(u.order==="pre"){n.push(o);continue}if(u.order==="post"){i.push(o);continue}}r.push(o)}}return[...n,...r,...i]}var Bs={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0};function vr(e){return e?{lang:e?.lang??void 0,message:e?.message,abortEarly:e?.abortEarly??void 0,abortPipeEarly:e?.abortPipeEarly??void 0}:Bs}function wr(e){let t=typeof e;return t==="string"?`"${e}"`:t==="number"||t==="bigint"||t==="boolean"?`${e}`:t==="object"||t==="function"?(e&&Object.getPrototypeOf(e)?.constructor?.name)??"null":t}function L(e,t,n,r,i){let o=i&&"input"in i?i.input:n.value,u=i?.expected??e.expects??null,l=i?.received??wr(o),c={kind:e.kind,type:e.type,input:o,expected:u,received:l,message:`Invalid ${t}: ${u?`Expected ${u} but r`:"R"}eceived ${l}`,requirement:e.requirement,path:i?.path,issues:i?.issues,lang:r.lang,abortEarly:r.abortEarly,abortPipeEarly:r.abortPipeEarly},p=e.kind==="schema",f=i?.message??e.message??(e.reference,c.lang,void 0)??(p?(c.lang,void 0):null)??r.message??(c.lang,void 0);f!==void 0&&(c.message=typeof f=="function"?f(c):f),p&&(n.typed=!1),n.issues?n.issues.push(c):n.issues=[c]}var ar=new WeakMap;function A(e){let t=ar.get(e);return t||(t={version:1,vendor:"valibot",validate(n){return e["~run"]({value:n},vr())}},ar.set(e,t)),t}function ks(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&t!=="__proto__"&&t!=="prototype"&&t!=="constructor"}function Sr(e,t){let n=[...new Set(e)];return n.length>1?`(${n.join(` ${t} `)})`:n[0]??"never"}var cn=class extends Error{constructor(e){super(e[0].message),this.name="ValiError",this.issues=e}};function G(e){return{kind:"transformation",type:"args",reference:G,async:!1,schema:e,"~run"(t,n){let r=t.value;return t.value=(...i)=>{let o=this.schema["~run"]({value:i},n);if(o.issues)throw new cn(o.issues);return r(...o.value)},t}}}function _r(){return{kind:"transformation",type:"await",reference:_r,async:!0,async"~run"(e){return e.value=await e.value,e}}}function g(e){return{kind:"metadata",type:"description",reference:g,description:e}}function ue(e){return{kind:"transformation",type:"returns",reference:ue,async:!1,schema:e,"~run"(t,n){let r=t.value;return t.value=(...i)=>{let o=this.schema["~run"]({value:r(...i)},n);if(o.issues)throw new cn(o.issues);return o.value},t}}}function Ir(e){return{kind:"transformation",type:"returns",reference:Ir,async:!1,schema:e,"~run"(t,n){let r=t.value;return t.value=async(...i)=>{let o=await this.schema["~run"]({value:await r(...i)},n);if(o.issues)throw new cn(o.issues);return o.value},t}}}var Ns={abortEarly:!0};function Br(e,t,n){return typeof e.fallback=="function"?e.fallback(t,n):e.fallback}function mt(e,t,n){return typeof e.default=="function"?e.default(t,n):e.default}function Os(e,t){return!e["~run"]({value:t},Ns).issues}function Ge(){return{kind:"schema",type:"any",reference:Ge,expects:"any",async:!1,get"~standard"(){return A(this)},"~run"(e){return e.typed=!0,e}}}function R(e,t){return{kind:"schema",type:"array",reference:R,expects:"Array",async:!1,item:e,message:t,get"~standard"(){return A(this)},"~run"(n,r){let i=n.value;if(Array.isArray(i)){n.typed=!0,n.value=[];for(let o=0;o<i.length;o++){let u=i[o],l=this.item["~run"]({value:u},r);if(l.issues){let c={type:"array",origin:"value",input:i,key:o,value:u};for(let p of l.issues)p.path?p.path.unshift(c):p.path=[c],n.issues?.push(p);if(n.issues||(n.issues=l.issues),r.abortEarly){n.typed=!1;break}}l.typed||(n.typed=!1),n.value.push(l.value)}}else L(this,"type",n,r);return n}}}function d(e){return{kind:"schema",type:"boolean",reference:d,expects:"boolean",async:!1,message:e,get"~standard"(){return A(this)},"~run"(t,n){return typeof t.value=="boolean"?t.typed=!0:L(this,"type",t,n),t}}}function fe(e,t){return{kind:"schema",type:"custom",reference:fe,expects:"unknown",async:!1,check:e,message:t,get"~standard"(){return A(this)},"~run"(n,r){return this.check(n.value)?n.typed=!0:L(this,"type",n,r),n}}}function kr(e){return{kind:"schema",type:"function",reference:kr,expects:"Function",async:!1,message:e,get"~standard"(){return A(this)},"~run"(t,n){return typeof t.value=="function"?t.typed=!0:L(this,"type",t,n),t}}}function ft(e,t){return{kind:"schema",type:"instance",reference:ft,expects:e.name,async:!1,class:e,message:t,get"~standard"(){return A(this)},"~run"(n,r){return n.value instanceof this.class?n.typed=!0:L(this,"type",n,r),n}}}function F(e,t){return{kind:"schema",type:"literal",reference:F,expects:wr(e),async:!1,literal:e,message:t,get"~standard"(){return A(this)},"~run"(n,r){return n.value===this.literal?n.typed=!0:L(this,"type",n,r),n}}}function Nr(e){return{kind:"schema",type:"never",reference:Nr,expects:"never",async:!1,message:e,get"~standard"(){return A(this)},"~run"(t,n){return L(this,"type",t,n),t}}}function ht(e,t){return{kind:"schema",type:"nullish",reference:ht,expects:`(${e.expects} | null | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return A(this)},"~run"(n,r){return(n.value===null||n.value===void 0)&&(this.default!==void 0&&(n.value=mt(this,n,r)),n.value===null||n.value===void 0)?(n.typed=!0,n):this.wrapped["~run"](n,r)}}}function M(e){return{kind:"schema",type:"number",reference:M,expects:"number",async:!1,message:e,get"~standard"(){return A(this)},"~run"(t,n){return typeof t.value=="number"&&!isNaN(t.value)?t.typed=!0:L(this,"type",t,n),t}}}function re(e,t){return{kind:"schema",type:"object",reference:re,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return A(this)},"~run"(n,r){let i=n.value;if(i&&typeof i=="object"){n.typed=!0,n.value={};for(let o in this.entries){let u=this.entries[o];if(o in i||(u.type==="exact_optional"||u.type==="optional"||u.type==="nullish")&&u.default!==void 0){let l=o in i?i[o]:mt(u),c=u["~run"]({value:l},r);if(c.issues){let p={type:"object",origin:"value",input:i,key:o,value:l};for(let f of c.issues)f.path?f.path.unshift(p):f.path=[p],n.issues?.push(f);if(n.issues||(n.issues=c.issues),r.abortEarly){n.typed=!1;break}}c.typed||(n.typed=!1),n.value[o]=c.value}else if(u.fallback!==void 0)n.value[o]=Br(u);else if(u.type!=="exact_optional"&&u.type!=="optional"&&u.type!=="nullish"&&(L(this,"key",n,r,{input:void 0,expected:`"${o}"`,path:[{type:"object",origin:"key",input:i,key:o,value:i[o]}]}),r.abortEarly))break}}else L(this,"type",n,r);return n}}}function s(e,t){return{kind:"schema",type:"optional",reference:s,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return A(this)},"~run"(n,r){return n.value===void 0&&(this.default!==void 0&&(n.value=mt(this,n,r)),n.value===void 0)?(n.typed=!0,n):this.wrapped["~run"](n,r)}}}function Or(e){return{kind:"schema",type:"promise",reference:Or,expects:"Promise",async:!1,message:e,get"~standard"(){return A(this)},"~run"(t,n){return t.value instanceof Promise?t.typed=!0:L(this,"type",t,n),t}}}function se(e,t,n){return{kind:"schema",type:"record",reference:se,expects:"Object",async:!1,key:e,value:t,message:n,get"~standard"(){return A(this)},"~run"(r,i){let o=r.value;if(o&&typeof o=="object"){r.typed=!0,r.value={};for(let u in o)if(ks(o,u)){let l=o[u],c=this.key["~run"]({value:u},i);if(c.issues){let f={type:"object",origin:"key",input:o,key:u,value:l};for(let C of c.issues)C.path=[f],r.issues?.push(C);if(r.issues||(r.issues=c.issues),i.abortEarly){r.typed=!1;break}}let p=this.value["~run"]({value:l},i);if(p.issues){let f={type:"object",origin:"value",input:o,key:u,value:l};for(let C of p.issues)C.path?C.path.unshift(f):C.path=[f],r.issues?.push(C);if(r.issues||(r.issues=p.issues),i.abortEarly){r.typed=!1;break}}(!c.typed||!p.typed)&&(r.typed=!1),c.typed&&(r.value[c.value]=p.value)}}else L(this,"type",r,i);return r}}}function N(e,t){return{kind:"schema",type:"strict_object",reference:N,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return A(this)},"~run"(n,r){let i=n.value;if(i&&typeof i=="object"){n.typed=!0,n.value={};for(let o in this.entries){let u=this.entries[o];if(o in i||(u.type==="exact_optional"||u.type==="optional"||u.type==="nullish")&&u.default!==void 0){let l=o in i?i[o]:mt(u),c=u["~run"]({value:l},r);if(c.issues){let p={type:"object",origin:"value",input:i,key:o,value:l};for(let f of c.issues)f.path?f.path.unshift(p):f.path=[p],n.issues?.push(f);if(n.issues||(n.issues=c.issues),r.abortEarly){n.typed=!1;break}}c.typed||(n.typed=!1),n.value[o]=c.value}else if(u.fallback!==void 0)n.value[o]=Br(u);else if(u.type!=="exact_optional"&&u.type!=="optional"&&u.type!=="nullish"&&(L(this,"key",n,r,{input:void 0,expected:`"${o}"`,path:[{type:"object",origin:"key",input:i,key:o,value:i[o]}]}),r.abortEarly))break}if(!n.issues||!r.abortEarly){for(let o in i)if(!(o in this.entries)){L(this,"key",n,r,{input:o,expected:"never",path:[{type:"object",origin:"key",input:i,key:o,value:i[o]}]});break}}}else L(this,"type",n,r);return n}}}function m(e){return{kind:"schema",type:"string",reference:m,expects:"string",async:!1,message:e,get"~standard"(){return A(this)},"~run"(t,n){return typeof t.value=="string"?t.typed=!0:L(this,"type",t,n),t}}}function V(e,t){return{kind:"schema",type:"tuple",reference:V,expects:"Array",async:!1,items:e,message:t,get"~standard"(){return A(this)},"~run"(n,r){let i=n.value;if(Array.isArray(i)){n.typed=!0,n.value=[];for(let o=0;o<this.items.length;o++){let u=i[o],l=this.items[o]["~run"]({value:u},r);if(l.issues){let c={type:"array",origin:"value",input:i,key:o,value:u};for(let p of l.issues)p.path?p.path.unshift(c):p.path=[c],n.issues?.push(p);if(n.issues||(n.issues=l.issues),r.abortEarly){n.typed=!1;break}}l.typed||(n.typed=!1),n.value.push(l.value)}}else L(this,"type",n,r);return n}}}function Rr(e){return{kind:"schema",type:"undefined",reference:Rr,expects:"undefined",async:!1,message:e,get"~standard"(){return A(this)},"~run"(t,n){return t.value===void 0?t.typed=!0:L(this,"type",t,n),t}}}function gt(e){let t;if(e)for(let n of e)if(t)for(let r of n.issues)t.push(r);else t=n.issues;return t}function y(e,t){return{kind:"schema",type:"union",reference:y,expects:Sr(e.map(n=>n.expects),"|"),async:!1,options:e,message:t,get"~standard"(){return A(this)},"~run"(n,r){let i,o,u;for(let l of this.options){let c=l["~run"]({value:n.value},r);if(c.typed)if(c.issues)o?o.push(c):o=[c];else{i=c;break}else u?u.push(c):u=[c]}if(i)return i;if(o){if(o.length===1)return o[0];L(this,"type",n,r,{issues:gt(o)}),n.typed=!0}else{if(u?.length===1)return u[0];L(this,"type",n,r,{issues:gt(u)})}return n}}}function Ar(e,t){return{kind:"schema",type:"union",reference:Ar,expects:Sr(e.map(n=>n.expects),"|"),async:!0,options:e,message:t,get"~standard"(){return A(this)},async"~run"(n,r){let i,o,u;for(let l of this.options){let c=await l["~run"]({value:n.value},r);if(c.typed)if(c.issues)o?o.push(c):o=[c];else{i=c;break}else u?u.push(c):u=[c]}if(i)return i;if(o){if(o.length===1)return o[0];L(this,"type",n,r,{issues:gt(o)}),n.typed=!0}else{if(u?.length===1)return u[0];L(this,"type",n,r,{issues:gt(u)})}return n}}}function Pr(e){return{kind:"schema",type:"void",reference:Pr,expects:"void",async:!1,message:e,get"~standard"(){return A(this)},"~run"(t,n){return t.value===void 0?t.typed=!0:L(this,"type",t,n),t}}}function Mr(e,t){let n={...e.entries};for(let r of t)delete n[r];return{...e,entries:n,get"~standard"(){return A(this)}}}function Rs(e,t){let n={};for(let r in e.entries)n[r]=!t||t.includes(r)?s(e.entries[r]):e.entries[r];return{...e,entries:n,get"~standard"(){return A(this)}}}function D(...e){return{...e[0],pipe:e,get"~standard"(){return A(this)},"~run"(t,n){for(let r of e)if(r.kind!=="metadata"){if(t.issues&&(r.kind==="schema"||r.kind==="transformation")){t.typed=!1;break}(!t.issues||!n.abortEarly&&!n.abortPipeEarly)&&(t=r["~run"](t,n))}return t}}}function As(...e){return{...e[0],pipe:e,async:!0,get"~standard"(){return A(this)},async"~run"(t,n){for(let r of e)if(r.kind!=="metadata"){if(t.issues&&(r.kind==="schema"||r.kind==="transformation")){t.typed=!1;break}(!t.issues||!n.abortEarly&&!n.abortPipeEarly)&&(t=await r["~run"](t,n))}return t}}}function Ps(e,t,n){let r=e["~run"]({value:t},vr(n));return{typed:r.typed,success:!r.issues,output:r.value,issues:r.issues}}function ye(...e){return Es(...e)}var Ce=y([m(),ft(RegExp)]);function x(){return kr()}var pn=y([F("debug"),F("info"),F("warn")]),Ms=y([pn,F("silent")]),Ls=y([pn,F("error")]),dn=Ge(),an=y([dn,m()]),Ts=y([m(),R(m()),se(m(),m())]),js=D(x(),G(V([m(),s(m()),d()])),ue(ht(d()))),Us=y([Ce,R(Ce),js]),Ws=se(m(),y([F("asset"),F("base64"),F("binary"),F("copy"),F("css"),F("dataurl"),F("empty"),F("js"),F("json"),F("jsx"),F("text"),F("ts"),F("tsx")])),$s=re({assumptions:s(re({ignoreFunctionLength:s(d()),noDocumentAll:s(d()),objectRestNoSymbols:s(d()),pureGetters:s(d()),setPublicClassFields:s(d())})),typescript:s(re({jsxPragma:s(m()),jsxPragmaFrag:s(m()),onlyRemoveTypeImports:s(d()),allowNamespaces:s(d()),allowDeclareFields:s(d()),removeClassFieldsWithoutInitializer:s(d()),optimizeConstEnums:s(d()),optimizeEnums:s(d()),declaration:s(re({stripInternal:s(d()),sourcemap:s(d())})),rewriteImportExtensions:s(y([F("rewrite"),F("remove"),d()]))})),helpers:s(re({mode:s(y([F("Runtime"),F("External")]))})),decorator:s(re({legacy:s(d()),emitDecoratorMetadata:s(d()),strictNullChecks:s(d())})),jsx:s(y([F(!1),F("preserve"),F("react"),F("react-jsx"),N({runtime:D(s(y([F("classic"),F("automatic")])),g("Which runtime to use")),development:D(s(d()),g("Development specific information")),throwIfNamespace:D(s(d()),g("Toggles whether to throw an error when a tag name uses an XML namespace")),pure:D(s(d()),g("Mark JSX elements and top-level React method calls as pure for tree shaking.")),importSource:D(s(m()),g("Import the factory of element and fragment if mode is classic")),pragma:D(s(m()),g("Jsx element transformation")),pragmaFrag:D(s(m()),g("Jsx fragment transformation")),refresh:D(s(y([d(),Ge()])),g("Enable react fast refresh"))})])),target:D(s(y([m(),R(m())])),g("The JavaScript target environment")),define:D(s(se(m(),m())),g("Define global variables (syntax: key:value,key2:value2)")),inject:D(s(se(m(),y([m(),V([m(),m()])]))),g("Inject import statements on demand")),dropLabels:D(s(R(m())),g("Remove labeled statements with these label names")),plugins:D(s(re({styledComponents:s(Ge()),taggedTemplateEscape:s(d())})),g("Third-party plugins to use"))}),lr=N({usePolling:D(s(d()),g("Use polling-based file watching instead of native OS events")),pollInterval:D(s(M()),g("Poll interval in milliseconds (only used when usePolling is true)")),compareContentsForPolling:D(s(d()),g("Compare file contents for poll-based watchers (only used when usePolling is true)")),useDebounce:D(s(d()),g("Use debounced event delivery at the filesystem level")),debounceDelay:D(s(M()),g("Debounce delay in milliseconds (only used when useDebounce is true)")),debounceTickRate:D(s(M()),g("Tick rate in milliseconds for debouncer (only used when useDebounce is true)"))}),xs=N({chokidar:s(Nr('The "watch.chokidar" option is deprecated, please use "watch.watcher" instead of it')),exclude:s(y([Ce,R(Ce)])),include:s(y([Ce,R(Ce)])),watcher:s(lr),notify:s(lr),skipWrite:D(s(d()),g("Skip the bundle.write() step")),buildDelay:D(s(M()),g("Throttle watch rebuilds")),clearScreen:D(s(d()),g("Whether to clear the screen when a rebuild is triggered")),onInvalidate:D(s(x()),g("An optional function that will be called immediately every time a module changes that is part of the build."))}),Vs=N({circularDependency:D(s(d()),g("Whether to emit warnings when detecting circular dependency")),eval:D(s(d()),g("Whether to emit warnings when detecting uses of direct `eval`s")),missingGlobalName:D(s(d()),g("Whether to emit warnings when the `output.globals` option is missing when needed")),missingNameOptionForIifeExport:D(s(d()),g("Whether to emit warnings when the `output.name` option is missing when needed")),invalidAnnotation:D(s(d()),g("Whether to emit warnings when a `#__PURE__` / `@__PURE__` annotation has no effect due to its position")),mixedExports:D(s(d()),g("Whether to emit warnings when the way to export values is ambiguous")),unresolvedEntry:D(s(d()),g("Whether to emit warnings when an entrypoint cannot be resolved")),unresolvedImport:D(s(d()),g("Whether to emit warnings when an import cannot be resolved")),filenameConflict:D(s(d()),g("Whether to emit warnings when files generated have the same name with different contents")),commonJsVariableInEsm:D(s(d()),g("Whether to emit warnings when a CommonJS variable is used in an ES module")),importIsUndefined:D(s(d()),g("Whether to emit warnings when an imported variable is not exported")),emptyImportMeta:D(s(d()),g("Whether to emit warnings when `import.meta` is not supported with the output format and is replaced with an empty object (`{}`)")),toleratedTransform:D(s(d()),g("Whether to emit warnings when detecting tolerated transform")),cannotCallNamespace:D(s(d()),g("Whether to emit warnings when a namespace is called as a function")),configurationFieldConflict:D(s(d()),g("Whether to emit warnings when a config value is overridden by another config value with a higher priority")),preferBuiltinFeature:D(s(d()),g("Whether to emit warnings when a plugin that is covered by a built-in feature is used")),couldNotCleanDirectory:D(s(d()),g("Whether to emit warnings when Rolldown could not clean the output directory")),pluginTimings:D(s(d()),g("Whether to emit warnings when plugins take significant time during the build process")),duplicateShebang:D(s(d()),g("Whether to emit warnings when both the code and postBanner contain shebang")),unsupportedTsconfigOption:D(s(d()),g("Whether to emit warnings when a tsconfig option or combination of options is not supported")),ineffectiveDynamicImport:D(s(d()),g("Whether to emit warnings when a module is dynamically imported but also statically imported, making the dynamic import ineffective for code splitting")),largeBarrelModules:D(s(d()),g("Whether to emit info logs when a barrel module has a very large number of re-exports (more than 5000)")),sourcemapBroken:D(s(d()),g("Whether to emit warnings when a plugin transforms code without generating a sourcemap")),namespaceConflict:D(s(d()),g("Whether to emit warnings when multiple star re-exports provide the same name from different modules"))}),Hs=N({compress:s(y([d(),N({target:s(y([m(),R(m())])),dropConsole:s(d()),dropDebugger:s(d()),keepNames:s(N({function:d(),class:d()})),unused:s(y([d(),F("keep_assign")])),joinVars:s(d()),sequences:s(d()),dropLabels:s(R(m())),maxIterations:s(M()),treeshake:s(N({annotations:s(d()),manualPureFunctions:s(R(m())),propertyReadSideEffects:s(y([d(),F("always")])),propertyWriteSideEffects:s(d()),unknownGlobalSideEffects:s(d()),invalidImportSideEffects:s(d())}))})])),mangle:s(y([d(),N({toplevel:s(d()),keepNames:s(y([d(),N({function:d(),class:d()})])),reserved:s(R(m())),debug:s(d())})])),mangleProps:s(N({include:ft(RegExp),exclude:s(ft(RegExp)),reserved:s(R(m())),quoted:s(d()),debug:s(d()),cache:s(se(m(),y([m(),F(!1)])))})),codegen:s(y([d(),N({removeWhitespace:s(d()),legalComments:s(y([F("none"),F("inline"),F("eof"),F("external"),N({linked:m()})]))})]))}),zs=N({alias:s(se(m(),y([F(!1),m(),R(m())]))),aliasFields:s(R(R(m()))),conditionNames:s(R(m())),extensionAlias:s(se(m(),R(m()))),exportsFields:s(R(R(m()))),extensions:s(R(m())),mainFields:s(R(m())),mainFiles:s(R(m())),modules:s(R(m())),symlinks:s(d()),tsconfigFilename:s(m())}),Gs=N({moduleSideEffects:s(Ge()),annotations:s(d()),manualPureFunctions:s(fe(e=>Os(R(m()),e),"string array")),unknownGlobalSideEffects:s(d()),invalidImportSideEffects:s(d()),commonjs:s(d()),propertyReadSideEffects:s(y([F(!1),F("always")])),propertyWriteSideEffects:s(y([F(!1),F("always")]))}),Ks=N({inlineConst:D(s(y([d(),N({mode:s(y([F("all"),F("smart")])),pass:s(M())})])),g("Enable crossmodule constant inlining")),pifeForModuleWrappers:D(s(d()),g("Use PIFE pattern for module wrappers"))}),Ys=D(x(),G(V([Ls,an]))),Js=D(x(),G(V([pn,dn,Ys]))),qs=D(x(),G(V([dn,D(x(),G(V([y([an,D(x(),ue(an))])])))]))),Zs=y([d(),N({port:s(M()),host:s(m()),implement:s(m()),skipCommonRuntimeInjection:s(d()),lazy:s(d())})]),Lr=N({input:s(Ts),plugins:s(fe(()=>!0)),external:s(Us),makeAbsoluteExternalsRelative:s(y([d(),F("ifRelativeSource")])),resolve:s(zs),cwd:D(s(m()),g("Current working directory")),platform:D(s(y([F("browser"),F("neutral"),F("node")])),g(`Platform for which the code should be generated (node, ${ye("underline","browser")}, neutral)`)),shimMissingExports:D(s(d()),g("Create shim variables for missing exports")),treeshake:s(y([d(),Gs])),optimization:s(Ks),logLevel:D(s(Ms),g(`Log level (${ye("dim","silent")}, ${ye(["underline","gray"],"info")}, debug, ${ye("yellow","warn")})`)),onLog:s(Js),onwarn:s(qs),moduleTypes:D(s(Ws),g("Module types for customized extensions")),experimental:s(N({viteMode:s(d()),resolveNewUrlToAsset:s(d()),devMode:s(Zs),chunkModulesOrder:s(y([F("module-id"),F("exec-order")])),attachDebugInfo:s(y([F("none"),F("simple"),F("full")])),chunkImportMap:s(y([d(),re({baseUrl:s(m()),fileName:s(m())})])),onDemandWrapping:s(d()),incrementalBuild:s(d()),nativeMagicString:s(d()),chunkOptimization:s(y([d(),N({mergeCommonChunks:s(d()),avoidRedundantChunkLoads:s(d())})])),lazyBarrel:s(d())})),transform:s($s),watch:s(y([xs,F(!1)])),checks:s(Vs),devtools:D(s(re({sessionId:D(s(m()),g("Used to name the build."))})),g("Enable debug mode. Emit debug information to disk. This might slow down the build process significantly.")),preserveEntrySignatures:D(s(y([F("strict"),F("allow-extension"),F("exports-only"),F(!1)]))),context:D(s(m()),g("The value of `this` at the top level of each module.")),tsconfig:D(s(y([d(),m()])),g("Path to the tsconfig.json file."))}),Qs=N({input:D(s(R(m())),g("Entry file")),external:D(s(R(m())),g("Comma-separated list of module ids to exclude from the bundle `<module-id>,...`")),treeshake:D(s(d()),g("enable treeshaking")),makeAbsoluteExternalsRelative:D(s(d()),g("Prevent normalization of external imports")),preserveEntrySignatures:D(s(F(!1)),g("Avoid facade chunks for entry points")),context:D(s(m()),g("The entity top-level `this` represents."))}),Xs=Mr(N({...Lr.entries,...Qs.entries}),["plugins","onwarn","onLog","resolve","experimental","watch"]),eu=y([F("es"),F("cjs"),F("esm"),F("module"),F("commonjs"),F("iife"),F("umd")]),Me=D(x(),G(V([fe(()=>!0)])),Ir(Ar([m(),As(Or(),_r(),m())]))),tu=D(x(),G(V([fe(()=>!0)])),ue(m())),en=y([m(),tu]),nu=D(x(),G(V([fe(()=>!0)])),ue(m())),ru=y([m(),nu]),iu=D(x(),G(V([m()])),ue(m())),ou=y([d(),iu]),su=D(x(),G(V([m()])),ue(m())),uu=D(x(),G(V([m()])),ue(m())),au=D(x(),G(V([m(),re({})])),ue(ht(m()))),lu=D(x(),G(V([m(),re({})])),ue(ht(m()))),cu=D(x(),G(V([m()])),ue(y([d(),Pr(),Rr()]))),cr=N({includeDependenciesRecursively:s(d()),minSize:s(M()),maxSize:s(M()),minModuleSize:s(M()),maxModuleSize:s(M()),minShareCount:s(M()),groups:s(R(N({name:y([m(),lu]),test:s(y([Ce,cu])),priority:s(M()),minSize:s(M()),minShareCount:s(M()),maxSize:s(M()),minModuleSize:s(M()),maxModuleSize:s(M()),entriesAware:s(d()),entriesAwareMergeThreshold:s(M()),includeDependenciesRecursively:s(d()),tags:s(R(m()))})))}),pu=N({symbols:D(s(d()),g("Whether to use Symbol.toStringTag for namespace objects")),preset:s(y([F("es5"),F("es2015")])),profilerNames:D(s(d()),g("Whether to add readable names to internal variables for profiling purposes"))}),Tr=N({dir:D(s(m()),g("Output directory, defaults to `dist` if `file` is not set")),file:D(s(m()),g("Single output file")),exports:D(s(y([F("auto"),F("named"),F("default"),F("none")])),g(`Specify a export mode (${ye("underline","auto")}, named, default, none)`)),hashCharacters:D(s(y([F("base64"),F("base36"),F("hex")])),g("Use the specified character set for file hashes")),format:D(s(eu),g(`Output format of the generated bundle (supports ${ye("underline","esm")}, cjs, and iife)`)),sourcemap:D(s(y([d(),F("inline"),F("hidden")])),g("Generate sourcemap (`-s inline` for inline, or `-s` for `.map` file)")),sourcemapBaseUrl:D(s(m()),g("Base URL used to prefix sourcemap paths")),sourcemapFileNames:D(s(en),g("Name pattern for emitted sourcemaps")),sourcemapDebugIds:D(s(d()),g("Inject sourcemap debug IDs")),sourcemapExcludeSources:D(s(d()),g("Exclude source content from sourcemaps")),sourcemapIgnoreList:s(y([d(),fe(()=>!0),Ce])),sourcemapPathTransform:s(fe(()=>!0)),banner:s(y([m(),Me])),footer:s(y([m(),Me])),postBanner:s(y([m(),Me])),postFooter:s(y([m(),Me])),intro:s(y([m(),Me])),outro:s(y([m(),Me])),extend:D(s(d()),g("Extend global variable defined by name in IIFE / UMD formats")),esModule:s(y([d(),F("if-default-prop")])),assetFileNames:s(ru),entryFileNames:s(en),chunkFileNames:s(en),sanitizeFileName:s(ou),minify:D(s(y([d(),F("dce-only"),Hs])),g("Minify the bundled file")),name:D(s(m()),g("Name for UMD / IIFE format outputs")),globals:D(s(y([se(m(),m()),su])),g("Global variable of UMD / IIFE dependencies (syntax: `key:value`)")),paths:D(s(y([se(m(),m()),uu])),g("Maps external module IDs to paths")),generatedCode:D(s(Rs(pu)),g("Generated code options")),externalLiveBindings:D(s(d()),g("external live bindings")),inlineDynamicImports:D(s(d()),g("Inline dynamic imports")),dynamicImportInCjs:D(s(d()),g("Dynamic import in CJS output")),manualChunks:s(au),codeSplitting:s(y([d(),cr])),advancedChunks:s(cr),legalComments:D(s(y([F("none"),F("inline")])),g("Control legal comments in the output")),comments:D(s(y([d(),N({legal:s(d()),annotation:s(d()),jsdoc:s(d())})])),g("Control comments in the output")),plugins:s(fe(()=>!0)),polyfillRequire:D(s(d()),g("Disable require polyfill injection")),hoistTransitiveImports:s(F(!1)),preserveModules:D(s(d()),g("Preserve module structure")),preserveModulesRoot:D(s(m()),g("Put preserved modules under this path at root level")),virtualDirname:s(m()),minifyInternalExports:D(s(d()),g("Minify internal exports")),topLevelVar:D(s(d()),g("Rewrite top-level declarations to use `var`.")),cleanDir:D(s(d()),g("Clean output directory before emitting output")),keepNames:D(s(d()),g("Keep function and class names after bundling")),strictExecutionOrder:D(s(d()),g("Preserve source module execution order across generated chunks.")),strict:D(s(y([d(),F("auto")])),g('Whether to always output `"use strict"` directive in non-ES module outputs.'))}),lt=(e,t)=>`Code to insert the ${ye("bold",e)} of the bundled file (${ye("bold",t)} the wrapper function)`,du=N({assetFileNames:D(s(m()),g("Name pattern for asset files")),entryFileNames:D(s(m()),g("Name pattern for emitted entry chunks")),chunkFileNames:D(s(m()),g("Name pattern for emitted secondary chunks")),sanitizeFileName:D(s(d()),g("Sanitize file name")),banner:D(s(m()),g(lt("top","outside"))),footer:D(s(m()),g(lt("bottom","outside"))),postBanner:D(s(m()),g("A string to prepend to the top of each chunk. Applied after the `renderChunk` hook and minification")),postFooter:D(s(m()),g("A string to append to the bottom of each chunk. Applied after the `renderChunk` hook and minification")),intro:D(s(m()),g(lt("top","inside"))),outro:D(s(m()),g(lt("bottom","inside"))),esModule:D(s(d()),g("Always generate `__esModule` marks in non-ESM formats, defaults to `if-default-prop` (use `--no-esModule` to always disable)")),globals:D(s(se(m(),m())),g("Global variable of UMD / IIFE dependencies (syntax: `key:value`)")),codeSplitting:D(s(y([d(),N({minSize:D(s(M()),g("Minimum size of the chunk")),minShareCount:D(s(M()),g("Minimum share count of the chunk"))})])),g("Code splitting options. Enabled by default; use `--no-codeSplitting` to disable, or `--codeSplitting.minSize` / `--codeSplitting.minShareCount` to configure")),advancedChunks:D(s(N({minSize:D(s(M()),g("Minimum size of the chunk")),minShareCount:D(s(M()),g("Minimum share count of the chunk"))})),g("Deprecated: use codeSplitting instead")),minify:D(s(d()),g("Minify the bundled file"))}),Du=Mr(N({...Tr.entries,...du.entries}),["sourcemapIgnoreList","sourcemapPathTransform","plugins","hoistTransitiveImports"]),gc=N({config:D(s(y([m(),d()])),g("Path to the config file (default: `rolldown.config.js`)")),help:D(s(d()),g("Show help")),environment:D(s(y([m(),R(m())])),g("Pass additional settings to the config file via process.ENV.")),version:D(s(d()),g("Show version number")),watch:D(s(d()),g("Watch files in bundle and rebuild on changes")),configLoader:D(s(y([F("bundle"),F("native")])),g("How to load the config file (bundle, native)")),...Xs.entries,...Du.entries});var fu={output:{ignored:!0},"resolve.tsconfigFilename":{issueMsg:"It is deprecated. Please use the top-level `tsconfig` option instead."}},gu={};function Dn(e,t){if(typeof t!="object")throw new Error(`Invalid ${e} options. Expected an Object but received ${JSON.stringify(t)}.`);if(globalThis.process?.env?.ROLLUP_TEST)return;let n=Ps(e==="input"?Lr:Tr,t);if(!n.success){let r=n.issues.map(i=>{let o=i.message,u=i.path.map(p=>p.key);if(i.type==="union"){let p=i.issues?.find(f=>!(f.type!==i.received&&f.input===i.input));p&&(p.path&&u.push(p.path.map(f=>f.key)),o=p.message)}let l=u.join("."),c=e==="input"?fu[l]:gu[l];return c&&c.ignored?"":`- For the "${l}". ${c?.issueMsg||o+"."} ${c?.help?`
|
|
20
|
+
Help: ${c.help}`:""}`}).filter(Boolean);r.length&&console.warn(`\x1B[33mWarning: Invalid ${e} options (${r.length} issue${r.length===1?"":"s"} found)
|
|
21
|
+
${r.join(`
|
|
22
|
+
`)}\x1B[0m`)}}var mu=class{context;pluginContextData;constructor(e,t){this.context=e,this.pluginContextData=t}getModuleInfo(e){let t=this.context.getModuleInfo(e);return t?at(t,this.pluginContextData.getModuleOption(e)):null}},$={silent:Number.NEGATIVE_INFINITY,fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,ready:3,start:3,box:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},pr={silent:{level:-1},fatal:{level:$.fatal},error:{level:$.error},warn:{level:$.warn},log:{level:$.log},info:{level:$.info},success:{level:$.success},fail:{level:$.fail},ready:{level:$.info},start:{level:$.info},box:{level:$.info},debug:{level:$.debug},trace:{level:$.trace},verbose:{level:$.verbose}};function tn(e){if(e===null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function ln(e,t,n=".",r){if(!tn(t))return ln(e,{},n,r);let i=Object.assign({},t);for(let o in e){if(o==="__proto__"||o==="constructor")continue;let u=e[o];u!=null&&(r&&r(i,o,u,n)||(Array.isArray(u)&&Array.isArray(i[o])?i[o]=[...u,...i[o]]:tn(u)&&tn(i[o])?i[o]=ln(u,i[o],(n?`${n}.`:"")+o.toString(),r):i[o]=u))}return i}function hu(e){return(...t)=>t.reduce((n,r)=>ln(n,r,"",e),{})}var Eu=hu();function Fu(e){return Object.prototype.toString.call(e)==="[object Object]"}function yu(e){return!(!Fu(e)||!e.message&&!e.args||e.stack)}var nn=!1,dr=[],K=class jr{options;_lastLog;_mockFn;constructor(t={}){let n=t.types||pr;this.options=Eu({...t,defaults:{...t.defaults},level:rn(t.level,n),reporters:[...t.reporters||[]]},{types:pr,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(let r in n){let i={type:r,...this.options.defaults,...n[r]};this[r]=this._wrapLogFn(i),this[r].raw=this._wrapLogFn(i,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(t){this.options.level=rn(t,this.options.types,this.options.level)}prompt(t,n){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(t,n)}create(t){let n=new jr({...this.options,...t});return this._mockFn&&n.mockTypes(this._mockFn),n}withDefaults(t){return this.create({...this.options,defaults:{...this.options.defaults,...t}})}withTag(t){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+t:t})}addReporter(t){return this.options.reporters.push(t),this}removeReporter(t){if(t){let n=this.options.reporters.indexOf(t);if(n!==-1)return this.options.reporters.splice(n,1)}else this.options.reporters.splice(0);return this}setReporters(t){return this.options.reporters=Array.isArray(t)?t:[t],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(let t in this.options.types)console["__"+t]||(console["__"+t]=console[t]),console[t]=this[t].raw}restoreConsole(){for(let t in this.options.types)console["__"+t]&&(console[t]=console["__"+t],delete console["__"+t])}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(t,n){t&&(t.__write||(t.__write=t.write),t.write=r=>{this[n].raw(String(r).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}pauseLogs(){nn=!0}resumeLogs(){nn=!1;let t=dr.splice(0);for(let n of t)n[0]._logFn(n[1],n[2])}mockTypes(t){let n=t||this.options.mockFn;if(this._mockFn=n,typeof n=="function")for(let r in this.options.types)this[r]=n(r,this.options.types[r])||this[r],this[r].raw=this[r]}_wrapLogFn(t,n){return(...r)=>{if(nn){dr.push([this,t,r,n]);return}return this._logFn(t,r,n)}}_logFn(t,n,r){if((t.level||0)>this.level)return!1;let i={date:new Date,args:[],...t,level:rn(t.level,this.options.types)};!r&&n.length===1&&yu(n[0])?Object.assign(i,n[0]):i.args=[...n],i.message&&(i.args.unshift(i.message),delete i.message),i.additional&&(Array.isArray(i.additional)||(i.additional=i.additional.split(`
|
|
23
|
+
`)),i.args.push(`
|
|
24
|
+
`+i.additional.join(`
|
|
25
|
+
`)),delete i.additional),i.type=typeof i.type=="string"?i.type.toLowerCase():"log",i.tag=typeof i.tag=="string"?i.tag:"";let o=(l=!1)=>{let c=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&c>0){let p=[...this._lastLog.object.args];c>1&&p.push(`(repeated ${c} times)`),this._log({...this._lastLog.object,args:p}),this._lastLog.count=1}l&&(this._lastLog.object=i,this._log(i))};clearTimeout(this._lastLog.timeout);let u=this._lastLog.time&&i.date?i.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=i.date,u<this.options.throttle)try{let l=JSON.stringify([i.type,i.tag,i.args]),c=this._lastLog.serialized===l;if(this._lastLog.serialized=l,c&&(this._lastLog.count=(this._lastLog.count||0)+1,this._lastLog.count>this.options.throttleMin)){this._lastLog.timeout=setTimeout(o,this.options.throttle);return}}catch{}o(!0)}_log(t){for(let n of this.options.reporters)n.log(t,{options:this.options})}};function rn(e,t={},n=3){return e===void 0?n:typeof e=="number"?e:t[e]&&t[e].level!==void 0?t[e].level:n}K.prototype.add=K.prototype.addReporter;K.prototype.remove=K.prototype.removeReporter;K.prototype.clear=K.prototype.removeReporter;K.prototype.withScope=K.prototype.withTag;K.prototype.mock=K.prototype.mockTypes;K.prototype.pause=K.prototype.pauseLogs;K.prototype.resume=K.prototype.resumeLogs;function Cu(e={}){return new K(e)}function Ur(e,t){let n=process.cwd()+hs;return e.split(`
|
|
26
|
+
`).splice(t.split(`
|
|
27
|
+
`).length).map(r=>r.trim().replace("file://","").replace(n,""))}function bu(e,t){return(t.__write||t.write).call(t,e)}var on=e=>e?`[${e}]`:"",Wr=class{formatStack(e,t,n){let r=" ".repeat((n?.errorLevel||0)+1);return r+Ur(e,t).join(`
|
|
28
|
+
${r}`)}formatError(e,t){let n=e.message??ir(t,e),r=e.stack?this.formatStack(e.stack,n,t):"",i=t?.errorLevel||0,o=i>0?`${" ".repeat(i)}[cause]: `:"",u=e.cause?`
|
|
29
|
+
|
|
30
|
+
`+this.formatError(e.cause,{...t,errorLevel:i+1}):"";return o+n+`
|
|
31
|
+
`+r+u}formatArgs(e,t){let n=e.map(r=>r&&typeof r.stack=="string"?this.formatError(r,t):r);return ir(t,...n)}formatDate(e,t){return t.date?e.toLocaleTimeString():""}filterAndJoin(e){return e.filter(Boolean).join(" ")}formatLogObj(e,t){let n=this.formatArgs(e.args,t);return e.type==="box"?`
|
|
32
|
+
`+[on(e.tag),e.title&&e.title,...n.split(`
|
|
33
|
+
`)].filter(Boolean).map(r=>" > "+r).join(`
|
|
34
|
+
`)+`
|
|
35
|
+
`:this.filterAndJoin([on(e.type),on(e.tag),n])}log(e,t){return bu(this.formatLogObj(e,{columns:t.options.stdout.columns||0,...t.options.formatOptions})+`
|
|
36
|
+
`,e.level<2?t.options.stderr||process.stderr:t.options.stdout||process.stdout)}},{env:be={},argv:$r=[],platform:vu=""}=typeof process>"u"?{}:process,wu="NO_COLOR"in be||$r.includes("--no-color"),Su="FORCE_COLOR"in be||$r.includes("--color"),_u=vu==="win32",xr=be.TERM==="dumb",Iu=Dt&&Dt.isatty&&Dt.isatty(1)&&be.TERM&&!xr,Bu="CI"in be&&("GITHUB_ACTIONS"in be||"GITLAB_CI"in be||"CIRCLECI"in be),ku=!wu&&(Su||_u&&!xr||Iu||Bu);function Vr(e,t,n,r,i=t.slice(0,Math.max(0,e))+r,o=t.slice(Math.max(0,e+n.length)),u=o.indexOf(n)){return i+(u<0?o:Vr(u,o,n,r))}function Nu(e,t,n,r,i){return e<0?n+t+r:n+Vr(e,t,r,i)+r}function Ou(e,t,n=e,r=e.length+1){return i=>i||!(i===""||i===void 0)?Nu((""+i).indexOf(t,r),i,e,t,n):""}function B(e,t,n){return Ou(`\x1B[${e}m`,`\x1B[${t}m`,n)}var Dr={reset:B(0,0),bold:B(1,22,"\x1B[22m\x1B[1m"),dim:B(2,22,"\x1B[22m\x1B[2m"),italic:B(3,23),underline:B(4,24),inverse:B(7,27),hidden:B(8,28),strikethrough:B(9,29),black:B(30,39),red:B(31,39),green:B(32,39),yellow:B(33,39),blue:B(34,39),magenta:B(35,39),cyan:B(36,39),white:B(37,39),gray:B(90,39),bgBlack:B(40,49),bgRed:B(41,49),bgGreen:B(42,49),bgYellow:B(43,49),bgBlue:B(44,49),bgMagenta:B(45,49),bgCyan:B(46,49),bgWhite:B(47,49),blackBright:B(90,39),redBright:B(91,39),greenBright:B(92,39),yellowBright:B(93,39),blueBright:B(94,39),magentaBright:B(95,39),cyanBright:B(96,39),whiteBright:B(97,39),bgBlackBright:B(100,49),bgRedBright:B(101,49),bgGreenBright:B(102,49),bgYellowBright:B(103,49),bgBlueBright:B(104,49),bgMagentaBright:B(105,49),bgCyanBright:B(106,49),bgWhiteBright:B(107,49)};function Ru(e=ku){return e?Dr:Object.fromEntries(Object.keys(Dr).map(t=>[t,String]))}var Q=Ru();function Au(e,t="reset"){return Q[e]||Q[t]}var Pu=[String.raw`[\u001B\u009B][[\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\d\/#&.:=?%@~_]+)*|[a-zA-Z\d]+(?:;[-a-zA-Z\d\/#&.:=?%@~_]*)*)?\u0007)`,String.raw`(?:(?:\d{1,4}(?:;\d{0,4})*)?[\dA-PR-TZcf-nq-uy=><~]))`].join("|");function _e(e){return e.replace(new RegExp(Pu,"g"),"")}var fr={solid:{tl:"\u250C",tr:"\u2510",bl:"\u2514",br:"\u2518",h:"\u2500",v:"\u2502"},double:{tl:"\u2554",tr:"\u2557",bl:"\u255A",br:"\u255D",h:"\u2550",v:"\u2551"},doubleSingle:{tl:"\u2553",tr:"\u2556",bl:"\u2559",br:"\u255C",h:"\u2500",v:"\u2551"},doubleSingleRounded:{tl:"\u256D",tr:"\u256E",bl:"\u2570",br:"\u256F",h:"\u2500",v:"\u2551"},singleThick:{tl:"\u250F",tr:"\u2513",bl:"\u2517",br:"\u251B",h:"\u2501",v:"\u2503"},singleDouble:{tl:"\u2552",tr:"\u2555",bl:"\u2558",br:"\u255B",h:"\u2550",v:"\u2502"},singleDoubleRounded:{tl:"\u256D",tr:"\u256E",bl:"\u2570",br:"\u256F",h:"\u2550",v:"\u2502"},rounded:{tl:"\u256D",tr:"\u256E",bl:"\u2570",br:"\u256F",h:"\u2500",v:"\u2502"}},Mu={borderColor:"white",borderStyle:"rounded",valign:"center",padding:2,marginLeft:1,marginTop:1,marginBottom:1};function Lu(e,t={}){let n={...t,style:{...Mu,...t.style}},r=e.split(`
|
|
37
|
+
`),i=[],o=Au(n.style.borderColor),u={...typeof n.style.borderStyle=="string"?fr[n.style.borderStyle]||fr.solid:n.style.borderStyle};if(o)for(let S in u)u[S]=o(u[S]);let l=n.style.padding%2===0?n.style.padding:n.style.padding+1,c=r.length+l,p=Math.max(...r.map(S=>_e(S).length),n.title?_e(n.title).length:0)+l,f=p+l,C=n.style.marginLeft>0?" ".repeat(n.style.marginLeft):"";if(n.style.marginTop>0&&i.push("".repeat(n.style.marginTop)),n.title){let S=o?o(n.title):n.title,O=u.h.repeat(Math.floor((p-_e(n.title).length)/2)),j=u.h.repeat(p-_e(n.title).length-_e(O).length+l);i.push(`${C}${u.tl}${O}${S}${j}${u.tr}`)}else i.push(`${C}${u.tl}${u.h.repeat(f)}${u.tr}`);let w=n.style.valign==="center"?Math.floor((c-r.length)/2):n.style.valign==="top"?c-r.length-l:c-r.length;for(let S=0;S<c;S++)if(S<w||S>=w+r.length)i.push(`${C}${u.v}${" ".repeat(f)}${u.v}`);else{let O=r[S-w],j=" ".repeat(l),te=" ".repeat(p-_e(O).length);i.push(`${C}${u.v}${j}${O}${te}${u.v}`)}return i.push(`${C}${u.bl}${u.h.repeat(f)}${u.br}`),n.style.marginBottom>0&&i.push("".repeat(n.style.marginBottom)),i.join(`
|
|
38
|
+
`)}var dt=Object.create(null),ze=e=>globalThis.process?.env||import.meta.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?dt:globalThis),ve=new Proxy(dt,{get(e,t){return ze()[t]??dt[t]},has(e,t){return t in ze()||t in dt},set(e,t,n){let r=ze(!0);return r[t]=n,!0},deleteProperty(e,t){if(!t)return!1;let n=ze(!0);return delete n[t],!0},ownKeys(){let e=ze(!0);return Object.keys(e)}}),Tu=typeof process<"u"&&process.env&&process.env.NODE_ENV||"",ju=[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:!0}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:!0}],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["HUDSON","HUDSON_URL"],["JENKINS","JENKINS_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:!1}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:!1}],["VERCEL","VERCEL_ENV",{ci:!1}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:!1}],["CODESANDBOX","CODESANDBOX_HOST",{ci:!1}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:!0}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:!0}]];function Uu(){if(globalThis.process?.env)for(let e of ju){let t=e[1]||e[0];if(globalThis.process?.env[t])return{name:e[0].toLowerCase(),...e[2]}}return globalThis.process?.env?.SHELL==="/bin/jsh"&&globalThis.process?.versions?.webcontainer?{name:"stackblitz",ci:!1}:{name:"",ci:!1}}var Hr=Uu();Hr.name;function Te(e){return e?e!=="false":!1}var Wu=globalThis.process?.platform||"",$u=Te(ve.CI)||Hr.ci!==!1,xu=Te(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY),Vu=Te(ve.DEBUG),zr=Tu==="test"||Te(ve.TEST);ve.MINIMAL;var Hu=/^win/i.test(Wu);!Te(ve.NO_COLOR)&&(Te(ve.FORCE_COLOR)||(xu||Hu)&&ve.TERM);var zu=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null;Number(zu?.split(".")[0]);var Gu=globalThis.process||Object.create(null),gr={versions:{}};new Proxy(Gu,{get(e,t){if(t==="env")return ve;if(t in e)return e[t];if(t in gr)return gr[t]}});var Ku=globalThis.process?.release?.name==="node",Yu=!!globalThis.Bun||!!globalThis.process?.versions?.bun,Ju=!!globalThis.Deno,qu=!!globalThis.fastly,Zu=!!globalThis.Netlify,Qu=!!globalThis.EdgeRuntime,Xu=globalThis.navigator?.userAgent==="Cloudflare-Workers",ea=[[Zu,"netlify"],[Qu,"edge-light"],[Xu,"workerd"],[qu,"fastly"],[Ju,"deno"],[Yu,"bun"],[Ku,"node"]];function ta(){let e=ea.find(t=>t[0]);if(e)return{name:e[1]}}ta()?.name;function na({onlyFirst:e=!1}={}){let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}var ra=na();function ia(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(ra,"")}function oa(e){return e===161||e===164||e===167||e===168||e===170||e===173||e===174||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===198||e===208||e===215||e===216||e>=222&&e<=225||e===230||e>=232&&e<=234||e===236||e===237||e===240||e===242||e===243||e>=247&&e<=250||e===252||e===254||e===257||e===273||e===275||e===283||e===294||e===295||e===299||e>=305&&e<=307||e===312||e>=319&&e<=322||e===324||e>=328&&e<=331||e===333||e===338||e===339||e===358||e===359||e===363||e===462||e===464||e===466||e===468||e===470||e===472||e===474||e===476||e===593||e===609||e===708||e===711||e>=713&&e<=715||e===717||e===720||e>=728&&e<=731||e===733||e===735||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||e===1025||e>=1040&&e<=1103||e===1105||e===8208||e>=8211&&e<=8214||e===8216||e===8217||e===8220||e===8221||e>=8224&&e<=8226||e>=8228&&e<=8231||e===8240||e===8242||e===8243||e===8245||e===8251||e===8254||e===8308||e===8319||e>=8321&&e<=8324||e===8364||e===8451||e===8453||e===8457||e===8467||e===8470||e===8481||e===8482||e===8486||e===8491||e===8531||e===8532||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||e===8585||e>=8592&&e<=8601||e===8632||e===8633||e===8658||e===8660||e===8679||e===8704||e===8706||e===8707||e===8711||e===8712||e===8715||e===8719||e===8721||e===8725||e===8730||e>=8733&&e<=8736||e===8739||e===8741||e>=8743&&e<=8748||e===8750||e>=8756&&e<=8759||e===8764||e===8765||e===8776||e===8780||e===8786||e===8800||e===8801||e>=8804&&e<=8807||e===8810||e===8811||e===8814||e===8815||e===8834||e===8835||e===8838||e===8839||e===8853||e===8857||e===8869||e===8895||e===8978||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||e===9632||e===9633||e>=9635&&e<=9641||e===9650||e===9651||e===9654||e===9655||e===9660||e===9661||e===9664||e===9665||e>=9670&&e<=9672||e===9675||e>=9678&&e<=9681||e>=9698&&e<=9701||e===9711||e===9733||e===9734||e===9737||e===9742||e===9743||e===9756||e===9758||e===9792||e===9794||e===9824||e===9825||e>=9827&&e<=9829||e>=9831&&e<=9834||e===9836||e===9837||e===9839||e===9886||e===9887||e===9919||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||e===9955||e===9960||e===9961||e>=9963&&e<=9969||e===9972||e>=9974&&e<=9977||e===9979||e===9980||e===9982||e===9983||e===10045||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||e===65533||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||e===127375||e===127376||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}function sa(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function ua(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function aa(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function la(e,{ambiguousAsWide:t=!1}={}){return aa(e),sa(e)||ua(e)||t&&oa(e)?2:1}var ca=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,pa=globalThis.Intl?.Segmenter?new Intl.Segmenter:{segment:e=>e.split("")},da=/^\p{Default_Ignorable_Code_Point}$/u;function Da(e,t={}){if(typeof e!="string"||e.length===0)return 0;let{ambiguousIsNarrow:n=!0,countAnsiEscapeCodes:r=!1}=t;if(r||(e=ia(e)),e.length===0)return 0;let i=0,o={ambiguousAsWide:!n};for(let{segment:u}of pa.segment(e)){let l=u.codePointAt(0);if(!(l<=31||l>=127&&l<=159)&&!(l>=8203&&l<=8207||l===65279)&&!(l>=768&&l<=879||l>=6832&&l<=6911||l>=7616&&l<=7679||l>=8400&&l<=8447||l>=65056&&l<=65071)&&!(l>=55296&&l<=57343)&&!(l>=65024&&l<=65039)&&!da.test(u)){if(ca().test(u)){i+=2;continue}i+=la(l,o)}}return i}function fa(){let{env:e}=or,{TERM:t,TERM_PROGRAM:n}=e;return or.platform!=="win32"?t!=="linux":!!e.WT_SESSION||!!e.TERMINUS_SUBLIME||e.ConEmuTask==="{cmd::Cmder}"||n==="Terminus-Sublime"||n==="vscode"||t==="xterm-256color"||t==="alacritty"||t==="rxvt-unicode"||t==="rxvt-unicode-256color"||e.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var ga={info:"cyan",fail:"red",success:"green",ready:"green",start:"magenta"},ma={0:"red",1:"yellow"},ha=fa(),pe=(e,t)=>ha?e:t,mr={error:pe("\u2716","\xD7"),fatal:pe("\u2716","\xD7"),ready:pe("\u2714","\u221A"),warn:pe("\u26A0","\u203C"),info:pe("\u2139","i"),success:pe("\u2714","\u221A"),debug:pe("\u2699","D"),trace:pe("\u2192","\u2192"),fail:pe("\u2716","\xD7"),start:pe("\u25D0","o"),log:""};function hr(e){return typeof Intl!="object"||!Intl.Segmenter?_e(e).length:Da(e)}var Ea=class extends Wr{formatStack(e,t,n){let r=" ".repeat((n?.errorLevel||0)+1);return`
|
|
39
|
+
${r}`+Ur(e,t).map(i=>" "+i.replace(/^at +/,o=>Q.gray(o)).replace(/\((.+)\)/,(o,u)=>`(${Q.cyan(u)})`)).join(`
|
|
40
|
+
${r}`)}formatType(e,t,n){let r=ga[e.type]||ma[e.level]||"gray";if(t)return ya(r)(Q.black(` ${e.type.toUpperCase()} `));let i=typeof mr[e.type]=="string"?mr[e.type]:e.icon||e.type;return i?Fa(r)(i):""}formatLogObj(e,t){let[n,...r]=this.formatArgs(e.args,t).split(`
|
|
41
|
+
`);if(e.type==="box")return Lu(ct(n+(r.length>0?`
|
|
42
|
+
`+r.join(`
|
|
43
|
+
`):"")),{title:e.title?ct(e.title):void 0,style:e.style});let i=this.formatDate(e.date,t),o=i&&Q.gray(i),u=e.badge??e.level<2,l=this.formatType(e,u,t),c=e.tag?Q.gray(e.tag):"",p,f=this.filterAndJoin([l,ct(n)]),C=this.filterAndJoin(t.columns?[c,o]:[c]),w=(t.columns||0)-hr(f)-hr(C)-2;if(p=w>0&&(t.columns||0)>=80?f+" ".repeat(w)+C:(C?`${Q.gray(`[${C}]`)} `:"")+f,p+=ct(r.length>0?`
|
|
44
|
+
`+r.join(`
|
|
45
|
+
`):""),e.type==="trace"){let S=new Error("Trace: "+e.message);p+=this.formatStack(S.stack||"",S.message)}return u?`
|
|
46
|
+
`+p+`
|
|
47
|
+
`:p}};function ct(e){return e.replace(/`([^`]+)`/gm,(t,n)=>Q.cyan(n)).replace(/\s+_([^_]+)_\s+/gm,(t,n)=>` ${Q.underline(n)} `)}function Fa(e="white"){return Q[e]||Q.white}function ya(e="bgWhite"){return Q[`bg${e[0].toUpperCase()}${e.slice(1)}`]||Q.bgWhite}function Gr(e={}){let t=Ca();return process.env.CONSOLA_LEVEL&&(t=Number.parseInt(process.env.CONSOLA_LEVEL)??t),Cu({level:t,defaults:{level:t},stdout:process.stdout,stderr:process.stderr,prompt:(...n)=>import("./prompt-CH6TK0bC-7PB4PZOW.js").then(r=>r.prompt(...n)),reporters:e.reporters||[e.fancy??!($u||zr)?new Ea:new Wr],...e})}function Ca(){return Vu?$.debug:zr?$.warn:$.info}Gr();var de=process.env.ROLLDOWN_TEST?ba():Gr({formatOptions:{date:!1}});function ba(){let e=["silent","fatal","error","warn","log","info","success","fail","ready","start","box","debug","trace","verbose"],t=Object.create(null);for(let n of e)t[n]=(...r)=>console.log(...r);return t}function va(e,t,n){let{dir:r,format:i,exports:o,hashCharacters:u,sourcemap:l,sourcemapBaseUrl:c,sourcemapDebugIds:p,sourcemapFileNames:f,sourcemapExcludeSources:C,sourcemapIgnoreList:w,sourcemapPathTransform:S,name:O,assetFileNames:j,entryFileNames:te,chunkFileNames:a,banner:E,footer:ne,postBanner:ae,postFooter:P,intro:H,outro:Y,esModule:J,globals:le,paths:ge,generatedCode:yt,file:Ye,sanitizeFileName:Ct,preserveModules:bt,virtualDirname:vt,legalComments:Je,comments:wt,preserveModulesRoot:St,manualChunks:_t,topLevelVar:It,cleanDir:Bt,strictExecutionOrder:kt}=e;Je!=null&&de.warn("`legalComments` option is deprecated, please use `comments.legal` instead.");let{inlineDynamicImports:Nt,advancedChunks:Ot}=Ba(e.codeSplitting,e.inlineDynamicImports,e.advancedChunks,_t,t,n);return{dir:r,file:Ye??void 0,format:wa(i),exports:o,hashCharacters:u,sourcemap:Sa(l),sourcemapBaseUrl:c,sourcemapDebugIds:p,sourcemapFileNames:oe(n,ee,"sourcemapFileNames",f),sourcemapExcludeSources:C,sourcemapIgnoreList:oe(n,ee,"sourcemapIgnoreList",w??/node_modules/),sourcemapPathTransform:oe(n,ee,"sourcemapPathTransform",S),banner:Le(E,"banner",n),footer:Le(ne,"footer",n),postBanner:Le(ae,"postBanner",n),postFooter:Le(P,"postFooter",n),intro:Le(H,"intro",n),outro:Le(Y,"outro",n),extend:e.extend,globals:oe(n,ee,"globals",le),paths:oe(n,ee,"paths",ge),generatedCode:yt,esModule:J,name:O,assetFileNames:_a(j),entryFileNames:oe(n,ee,"entryFileNames",te),chunkFileNames:oe(n,ee,"chunkFileNames",a),plugins:[],minify:e.minify,externalLiveBindings:e.externalLiveBindings,inlineDynamicImports:Nt,dynamicImportInCjs:e.dynamicImportInCjs,manualCodeSplitting:Ot,polyfillRequire:e.polyfillRequire,sanitizeFileName:Ct,preserveModules:bt,virtualDirname:vt,legalComments:Je,comments:Ia(wt),preserveModulesRoot:St,topLevelVar:It,minifyInternalExports:e.minifyInternalExports,cleanDir:Bt,strictExecutionOrder:kt,strict:e.strict}}function Le(e,t,n){if(!(e==null||e==="")){if(typeof e=="function"){let r=Se(n,ee,t,e);return async i=>r(Re(i))}return e}}function wa(e){switch(e){case void 0:case"es":case"esm":case"module":return"es";case"cjs":case"commonjs":return"cjs";case"iife":return"iife";case"umd":return"umd";default:kn(`output.format: ${e}`)}}function Sa(e){switch(e){case!0:return"file";case"inline":return"inline";case!1:case void 0:return;case"hidden":return"hidden";default:throw new Error(`unknown sourcemap: ${e}`)}}function _a(e){return typeof e=="function"?t=>e({name:t.name,names:t.names,originalFileName:t.originalFileName,originalFileNames:t.originalFileNames,source:ut(t.source),type:"asset"}):e}function Ia(e){if(e!=null)return e}function Ba(e,t,n,r,i,o){let u,l;if(e===!1){if(t!=null&&de.warn("`inlineDynamicImports` option is ignored because `codeSplitting: false` is set."),r!=null)throw new Error('Invalid configuration: "output.manualChunks" cannot be used when "output.codeSplitting" is set to false.');return n!=null&&de.warn("`advancedChunks` option is ignored because `codeSplitting` is set to `false`."),{inlineDynamicImports:!0,advancedChunks:void 0}}else e===!0?t!=null&&de.warn("`inlineDynamicImports` option is ignored because `codeSplitting: true` is set."):e==null?t!=null&&(de.warn("`inlineDynamicImports` option is deprecated, please use `codeSplitting: false` instead."),u=t):(l=e,t!=null&&de.warn("`inlineDynamicImports` option is ignored because the `codeSplitting` option is specified."));if(u===!0&&r!=null)throw new Error('Invalid value "true" for option "output.inlineDynamicImports" - this option is not supported for "output.manualChunks".');l==null?n!=null&&(de.warn("`advancedChunks` option is deprecated, please use `codeSplitting` instead."),l=n):n!=null&&de.warn("`advancedChunks` option is ignored because the `codeSplitting` option is specified."),r!=null&&l!=null?de.warn("`manualChunks` option is ignored because the `codeSplitting` option is specified."):r!=null&&(l={groups:[{name(p,f){return r(p,{getModuleInfo:C=>f.getModuleInfo(C)})}}]}),u===!0&&l!=null&&(de.warn("`advancedChunks` option is ignored because `inlineDynamicImports: true` disables code splitting."),l=void 0);let c;if(l!=null){let{groups:p,...f}=l;c={...f,groups:p?.map(C=>{let{name:w,test:S,...O}=C;return{...O,test:typeof S=="function"?ka(Se(o,ee,"codeSplitting groups[].test",S)):S,name:typeof w=="function"?Na(Se(o,ee,"codeSplitting groups[].name",w),i):w}})}}return{inlineDynamicImports:u,advancedChunks:c}}function ka(e){return t=>{let n=new Uint8Array(t.length);for(let r=0;r<t.length;r++){let i=e(t[r]);if(i!=null&&typeof i!="boolean")throw new TypeError(`\`output.codeSplitting.groups[].test\` returned ${typeof i} for module "${t[r]}", but expected a boolean, null or undefined.`);n[r]=i===!0?1:0}return n}}function Na(e,t){return(n,r)=>{let i=new mu(r,t),o=[];for(let u=0;u<n.length;u++){let l=e(n[u],i);if(l!=null&&typeof l!="string")throw new TypeError(`\`output.codeSplitting.groups[].name\` returned ${typeof l} for module "${n[u]}", but expected a string, null or undefined.`);o.push(l)}return o}}var Oa=q(U(),1);async function Ra(e){let t=[];for(let[l,c]of e.entries()){let p=Ve(c);if(p){let{fileUrl:f,options:C}=p;t.push({index:l,fileUrl:f,options:C})}}if(t.length<=0)return;let n=Ma(),r=new Oa.ParallelJsPluginRegistry(n),i=r.id,o=await Aa(i,n,t);return{registry:r,stopWorkers:async()=>{await Promise.all(o.map(l=>l.terminate()))}}}function Aa(e,t,n){return Promise.all(Array.from({length:t},(r,i)=>Pa(e,n,i)))}async function Pa(e,t,n){let r=import.meta.resolve("#parallel-plugin-worker"),i={registryId:e,pluginInfos:t,threadNumber:n},o;try{return o=new ms(new URL(r),{workerData:i}),o.unref(),await new Promise((u,l)=>{o.once("message",async c=>{c.type==="error"?l(c.error):u()})}),o}catch(u){throw o?.terminate(),u}}var Ma=()=>{let e=1;try{e=sr.availableParallelism()}catch{let t=sr.cpus();Array.isArray(t)&&t.length>0&&(e=t.length)}return Math.min(e,8)};async function Et(e,t,n,r=!1){let i=await pt(e.plugins),o=await pt(t.plugins),u=e.logLevel||"info",l=Er(sn(i),Fr(e,u),u,n);t=Ke.callOutputOptionsHook([...i,...o],t,l,u,n);let c=await pt(t.plugins),p=ur(i,_s),f=ur(c,Is),C=[...p,...Ss(f,l)],w=r&&e.checks?.pluginTimings!==!1?Xn(e):void 0;w&&(t={...t,assetFileNames:oe(w,ee,"assetFileNames",t.assetFileNames),sanitizeFileName:oe(w,ee,"sanitizeFileName",t.sanitizeFileName)});let S=await Ra(C);e.experimental?.strictExecutionOrder!==void 0&&console.warn("`experimental.strictExecutionOrder` has been stabilized and moved to `output.strictExecutionOrder`. Please update your configuration.");try{let O=new qn(l,t,p,f);return{bundlerOptions:{inputOptions:nr(C,e,t,O,f,l,u,n,w),outputOptions:va(t,O,w),parallelPluginsRegistry:S?.registry},inputOptions:e,onLog:l,stopWorkers:S?.stopWorkers}}catch(O){throw await S?.stopWorkers(),O}}var je=[];je.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&je.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&je.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var Ft=e=>!!e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function",fn=Symbol.for("signal-exit emitter"),gn=globalThis,La=Object.defineProperty.bind(Object),Ta=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(gn[fn])return gn[fn];La(gn,fn,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){let n=this.listeners[e],r=n.indexOf(t);r!==-1&&(r===0&&n.length===1?n.length=0:n.splice(r,1))}emit(e,t,n){if(this.emitted[e])return!1;this.emitted[e]=!0;let r=!1;for(let i of this.listeners[e])r=i(t,n)===!0||r;return e==="exit"&&(r=this.emit("afterExit",t,n)||r),r}},Kr=class{},ja=e=>({onExit(t,n){return e.onExit(t,n)},load(){return e.load()},unload(){return e.unload()}}),Ua=class extends Kr{onExit(){return()=>{}}load(){}unload(){}},Wa=class extends Kr{#n=mn.platform==="win32"?"SIGINT":"SIGHUP";#t=new Ta;#e;#r;#i;#s={};#o=!1;constructor(e){super(),this.#e=e,this.#s={};for(let t of je)this.#s[t]=()=>{let n=this.#e.listeners(t),{count:r}=this.#t,i=e;if(typeof i.__signal_exit_emitter__=="object"&&typeof i.__signal_exit_emitter__.count=="number"&&(r+=i.__signal_exit_emitter__.count),n.length===r){this.unload();let o=this.#t.emit("exit",null,t),u=t==="SIGHUP"?this.#n:t;o||e.kill(e.pid,u)}};this.#i=e.reallyExit,this.#r=e.emit}onExit(e,t){if(!Ft(this.#e))return()=>{};this.#o===!1&&this.load();let n=t?.alwaysLast?"afterExit":"exit";return this.#t.on(n,e),()=>{this.#t.removeListener(n,e),this.#t.listeners.exit.length===0&&this.#t.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#o){this.#o=!0,this.#t.count+=1;for(let e of je)try{let t=this.#s[e];t&&this.#e.on(e,t)}catch{}this.#e.emit=(e,...t)=>this.#a(e,...t),this.#e.reallyExit=e=>this.#u(e)}}unload(){this.#o&&(this.#o=!1,je.forEach(e=>{let t=this.#s[e];if(!t)throw new Error("Listener not defined for signal: "+e);try{this.#e.removeListener(e,t)}catch{}}),this.#e.emit=this.#r,this.#e.reallyExit=this.#i,this.#t.count-=1)}#u(e){return Ft(this.#e)?(this.#e.exitCode=e||0,this.#t.emit("exit",this.#e.exitCode,null),this.#i.call(this.#e,this.#e.exitCode)):0}#a(e,...t){let n=this.#r;if(e==="exit"&&Ft(this.#e)){typeof t[0]=="number"&&(this.#e.exitCode=t[0]);let r=n.call(this.#e,e,...t);return this.#t.emit("exit",this.#e.exitCode,null),r}else return n.call(this.#e,e,...t)}},mn=globalThis.process,{onExit:$a,load:Bc,unload:kc}=ja(Ft(mn)?new Wa(mn):new Ua);function Yr(...e){if(typeof process=="object"&&process.versions.webcontainer){process.on("exit",t=>{e[0](t,null)});return}$a(...e)}var xa=class{listeners=new Map;on(e,t){let n=this.listeners.get(e);return n?n.push(t):this.listeners.set(e,[t]),this}off(e,t){let n=this.listeners.get(e);if(n){let r=n.indexOf(t);r!==-1&&n.splice(r,1)}return this}clear(e){this.listeners.delete(e)}async emit(e,...t){let n=this.listeners.get(e);if(n?.length)for(let r of n)await r(...t)}async close(){}},hn=q(U(),1);function Va(e){return async t=>{switch(t.eventKind()){case"event":{let n=t.bundleEventKind();if(n==="BUNDLE_END"){let{duration:r,output:i,result:o}=t.bundleEndData();await e.emit("event",{code:"BUNDLE_END",duration:r,output:[i],result:o})}else if(n==="ERROR"){let r=t.bundleErrorData();await e.emit("event",{code:"ERROR",error:he(r.error),result:r.result})}else await e.emit("event",{code:n});break}case"change":{let{path:n,kind:r}=t.watchChangeData();await e.emit("change",n,{event:r});break}case"restart":await e.emit("restart");break;case"close":await e.emit("close")}}}var Ha=class{closed;inner;emitter;stopWorkers;constructor(e,t,n){this.closed=!1,this.inner=t,this.emitter=e,(0,hn.startAsyncRuntime)();let r=e.close.bind(e);e.close=async()=>{await this.close(),r()},this.stopWorkers=n,process.nextTick(()=>this.run())}async close(){if(!this.closed){this.closed=!0;try{for(let e of this.stopWorkers)await e?.();await this.inner.close()}finally{(0,hn.shutdownAsyncRuntime)()}}}async run(){await this.inner.run(),this.inner.waitForClose()}};async function za(e,t){let n=me(t),r=await Promise.all(n.map(o=>me(o.output||{}).map(async u=>{let l=await Ke.callOptionsHook(o,!0);return Et(l,u,!0)})).flat());Ga(r);let i=Va(e);new Ha(e,new hn.BindingWatcher(r.map(o=>o.bundlerOptions),i),r.map(o=>o.stopWorkers))}function Ga(e){let t=!1;for(let n of e){let r=n.inputOptions.watch,i=r&&typeof r=="object"?r.watcher:void 0;if(i&&(i.usePolling!=null||i.pollInterval!=null)){if(t){n.onLog(ce,In());return}t=!0}}}function Ka(e){let t=new xa;return za(t,e),t}var En=q(U(),1),Jr=class extends Ae{bindingOutputs;constructor(e){super(),this.bindingOutputs=e,e.mangleCache!==void 0&&(this.mangleCache=e.mangleCache)}get output(){return Yn(this.bindingOutputs).output}__rolldown_external_memory_handle__(e){let t=this.output.map(n=>n.__rolldown_external_memory_handle__(e));if(!t.every(n=>n.freed)){let n=t.filter(r=>!r.freed).map(r=>r.reason).filter(Boolean);return{freed:!1,reason:`Failed to free ${n.length} item(s): ${n.join("; ")}`}}return{freed:!0}}};v([b],Jr.prototype,"output",null);Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");var Ya=class{#n;#t;#e;#r=!1;constructor(e){this.#n=e,this.#t=new En.BindingBundler,(0,En.startAsyncRuntime)()}get closed(){return this.#t.closed}async generate(e={}){return this.#i(!1,e)}async write(e={}){return this.#i(!0,e)}async close(){let e=!this.#r;this.#r=!0;try{await this.#e?.(),await this.#t.close(),this.#e=void 0}finally{e&&(0,En.shutdownAsyncRuntime)()}}async[Symbol.asyncDispose](){await this.close()}get watchFiles(){return Promise.resolve(this.#t.getWatchFiles())}async#i(e,t){Dn("output",t),await this.#e?.();let n=await Et(this.#n,t,!1,!0);try{this.#e=n.stopWorkers;let r;return e?r=await this.#t.write(n.bundlerOptions):r=await this.#t.generate(n.bundlerOptions),new Jr(Qe(r))}catch(r){throw await n.stopWorkers?.(),r}}},qr=async e=>(Dn("input",e),new Ya(await Ke.callOptionsHook(e)));function Ja(e){return e}import{isMainThread as qa}from"worker_threads";var Za=q(U(),1);if(qa){let e=(0,Za.initTraceSubscriber)();Yr(()=>{e?.close()})}var Zc="\0rolldown/runtime.js";async function Qa(e){if(Array.isArray(e))return Promise.all(e.map(t=>Qa(t)));{let{output:t,write:n=!0,...r}=e,i=await qr(r);try{return n?await i.write(t):await i.generate(t)}finally{await i.close()}}}export{q as a,U as b,Ln as c,Ut as d,gl as e,We as f,il as g,Lt as h,Qe as i,ll as j,ji as k,rt as l,Yn as m,Oe as n,Ke as o,Dn as p,Et as q,Ka as r,qr as s,Ja as t,Zc as u,Qa as v};
|