@rsbuild/core 2.2.3 → 2.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{__webpack_require__ as e}from"./rslib-runtime.js";import"./626.js";e.add({"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor-middleware/2.14.1/6d555a60526ad6844dc2673e73b564ffd44ca896ac31b809c7cc243f8e135c00/node_modules/launch-editor-middleware/index.js"(e,t,n){let o=n("path?37f5"),i=n("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/index.js");e.exports=(e,t,n)=>("function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),t=t||process.cwd(),function(s,a){let r;try{let e=s.url.startsWith("http")?s.url:`http://localhost${s.url}`;r=new URL(e)}catch(e){a.statusCode=500,a.end("launch-editor-middleware: invalid URL.");return}let c=r.searchParams.get("file");c?(i(c.startsWith("file://")?c:o.resolve(t,c),e,n),a.end()):(a.statusCode=500,a.end('launch-editor-middleware: required query param "file" is missing.'))})},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/editor-info/linux.js"(e){e.exports={atom:"atom",Brackets:"brackets","code-insiders":"code-insiders",code:"code",vscodium:"vscodium",codium:"codium",cursor:"cursor",trae:"trae",antigravity:"antigravity",emacs:"emacs",gvim:"gvim",idea:"idea","idea.sh":"idea",phpstorm:"phpstorm","phpstorm.sh":"phpstorm",pycharm:"pycharm","pycharm.sh":"pycharm",rubymine:"rubymine","rubymine.sh":"rubymine",sublime_text:"subl",vim:"vim",webstorm:"webstorm","webstorm.sh":"webstorm",goland:"goland","goland.sh":"goland",rider:"rider","rider.sh":"rider",zed:"zed"}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/editor-info/macos.js"(e){e.exports={"/Applications/Atom.app/Contents/MacOS/Atom":"atom","/Applications/Atom Beta.app/Contents/MacOS/Atom Beta":"/Applications/Atom Beta.app/Contents/MacOS/Atom Beta","/Applications/Brackets.app/Contents/MacOS/Brackets":"brackets","/Applications/Sublime Text.app/Contents/MacOS/Sublime Text":"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl","/Applications/Sublime Text.app/Contents/MacOS/sublime_text":"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl","/Applications/Sublime Text 2.app/Contents/MacOS/Sublime Text 2":"/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl","/Applications/Sublime Text Dev.app/Contents/MacOS/Sublime Text":"/Applications/Sublime Text Dev.app/Contents/SharedSupport/bin/subl","/Applications/Visual Studio Code.app/Contents/MacOS/Code":"code","/Applications/Visual Studio Code.app/Contents/MacOS/Electron":"code","/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Code - Insiders":"code-insiders","/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Electron":"code-insiders","/Applications/VSCodium.app/Contents/MacOS/Electron":"codium","/Applications/Cursor.app/Contents/MacOS/Cursor":"cursor","/Applications/Trae.app/Contents/MacOS/Electron":"trae","/Applications/Antigravity.app/Contents/MacOS/Electron":"antigravity","/Applications/AppCode.app/Contents/MacOS/appcode":"/Applications/AppCode.app/Contents/MacOS/appcode","/Applications/CLion.app/Contents/MacOS/clion":"/Applications/CLion.app/Contents/MacOS/clion","/Applications/IntelliJ IDEA.app/Contents/MacOS/idea":"/Applications/IntelliJ IDEA.app/Contents/MacOS/idea","/Applications/IntelliJ IDEA Ultimate.app/Contents/MacOS/idea":"/Applications/IntelliJ IDEA Ultimate.app/Contents/MacOS/idea","/Applications/IntelliJ IDEA Community Edition.app/Contents/MacOS/idea":"/Applications/IntelliJ IDEA Community Edition.app/Contents/MacOS/idea","/Applications/PhpStorm.app/Contents/MacOS/phpstorm":"/Applications/PhpStorm.app/Contents/MacOS/phpstorm","/Applications/PyCharm.app/Contents/MacOS/pycharm":"/Applications/PyCharm.app/Contents/MacOS/pycharm","/Applications/PyCharm CE.app/Contents/MacOS/pycharm":"/Applications/PyCharm CE.app/Contents/MacOS/pycharm","/Applications/RubyMine.app/Contents/MacOS/rubymine":"/Applications/RubyMine.app/Contents/MacOS/rubymine","/Applications/WebStorm.app/Contents/MacOS/webstorm":"/Applications/WebStorm.app/Contents/MacOS/webstorm","/Applications/MacVim.app/Contents/MacOS/MacVim":"mvim","/Applications/GoLand.app/Contents/MacOS/goland":"/Applications/GoLand.app/Contents/MacOS/goland","/Applications/Rider.app/Contents/MacOS/rider":"/Applications/Rider.app/Contents/MacOS/rider","/Applications/Zed.app/Contents/MacOS/zed":"zed"}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/editor-info/windows.js"(e){e.exports=["Brackets.exe","Code.exe","Code - Insiders.exe","VSCodium.exe","Cursor.exe","atom.exe","sublime_text.exe","notepad++.exe","clion.exe","clion64.exe","idea.exe","idea64.exe","phpstorm.exe","phpstorm64.exe","pycharm.exe","pycharm64.exe","rubymine.exe","rubymine64.exe","webstorm.exe","webstorm64.exe","goland.exe","goland64.exe","rider.exe","rider64.exe","Trae.exe","zed.exe","Antigravity.exe"]},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/get-args.js"(e,t,n){let o=n("path?37f5");e.exports=function(e,t,n,i=1){switch(o.basename(e).replace(/\.(exe|cmd|bat)$/i,"")){case"atom":case"Atom":case"Atom Beta":case"subl":case"sublime":case"sublime_text":case"wstorm":case"charm":case"zed":return[`${t}:${n}:${i}`];case"notepad++":return["-n"+n,"-c"+i,t];case"vim":case"mvim":return[`+call cursor(${n}, ${i})`,t];case"joe":case"gvim":return[`+${n}`,t];case"emacs":case"emacsclient":return[`+${n}:${i}`,t];case"rmate":case"mate":case"mine":return["--line",n,t];case"code":case"Code":case"code-insiders":case"Code - Insiders":case"codium":case"trae":case"antigravity":case"cursor":case"vscodium":case"VSCodium":return["-r","-g",`${t}:${n}:${i}`];case"appcode":case"clion":case"clion64":case"idea":case"idea64":case"phpstorm":case"phpstorm64":case"pycharm":case"pycharm64":case"rubymine":case"rubymine64":case"webstorm":case"webstorm64":case"goland":case"goland64":case"rider":case"rider64":return["--line",n,"--column",i,t]}return process.env.LAUNCH_EDITOR?[t,n,i]:[t]}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/guess.js"(e,t,n){let o=n("path?37f5"),i=n("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/shell-quote/1.10.0/cb94c86a55bacd5a83a2402c1207419c1936bf178e159a0b8804af88f1935bba/node_modules/shell-quote/index.js"),s=n("child_process"),a=n("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/editor-info/macos.js"),r=n("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/editor-info/linux.js"),c=n("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/editor-info/windows.js");function p(e){let t=Object.keys(a),n=e.split("\n");for(let o=0;o<t.length;o++){let i=t[o];if(n.includes(i))return a[i];let s=i.replace("/Applications","");if(-1!==e.indexOf(s)){if(i!==a[i])return a[i];let e=n.find(e=>e.endsWith(s));if(void 0!==e)return e}}}function l(e){let t=e.split("\r\n");for(let e=0;e<t.length;e++){let n=t[e].trim(),i=o.win32.basename(n);if(-1!==c.indexOf(i))return n}}function d(e){let t=Object.keys(r);for(let n=0;n<t.length;n++){let o=t[n];if(-1!==e.indexOf(o))return r[o]}}e.exports=function(e){if(e)return i.parse(e);if(process.env.LAUNCH_EDITOR)return[process.env.LAUNCH_EDITOR];if(process.versions.webcontainer)return[process.env.EDITOR||"code"];try{if("darwin"===process.platform){let e=s.execSync("ps x -o comm=",{stdio:["pipe","pipe","ignore"]}).toString(),t=p(e);if(void 0!==t)return[t]}else if("win32"===process.platform){let e=s.execSync('powershell -NoProfile -Command "[Console]::OutputEncoding=[Text.Encoding]::UTF8;Get-CimInstance -Query \\"select executablepath from win32_process where executablepath is not null\\" | % { $_.ExecutablePath }"',{stdio:["pipe","pipe","ignore"]}).toString(),t=l(e);if(void 0!==t)return[t]}else if("linux"===process.platform){let e=s.execSync("ps x --no-heading -o comm --sort=comm",{stdio:["pipe","pipe","ignore"]}).toString(),t=d(e);if(void 0!==t)return[t]}}catch(e){}return process.env.VISUAL?[process.env.VISUAL]:process.env.EDITOR?[process.env.EDITOR]:[null]},e.exports.getEditorFromMacProcesses=p,e.exports.getEditorFromWindowsProcesses=l,e.exports.getEditorFromLinuxProcesses=d},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/index.js"(e,t,n){let o=n("fs?cdbd"),i=n("os"),s=n("path?37f5"),a=n("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picocolors/1.1.1/a2cca8821324d9b53ce284317d33c07b8ca7ab5b808164538a24d91cf6e92abb/node_modules/picocolors/picocolors.js"),r=n("child_process"),c=n("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/guess.js"),p=n("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/get-args.js"),l=/:(\d+)(:(\d+))?$/,d=null;e.exports=function(e,t,m){var u,b;let f,h,x=((u=e).startsWith("file://")&&(u=n("url?5f07").fileURLToPath(u)),f=u.replace(l,""),{fileName:f,lineNumber:(h=u.match(l))&&h[1],columnNumber:h&&h[3]}),{fileName:g}=x,{lineNumber:C,columnNumber:S}=x;if("win32"===process.platform&&s.resolve(g).startsWith("\\\\"))return m(g,"UNC paths are not supported on Windows to avoid security issues. See https://github.com/vitejs/launch-editor/tree/main/packages/launch-editor#unc-paths-on-windows for details.");if(!o.existsSync(g))return;"function"==typeof t&&(m=t,t=void 0),b=m,m=(e,t)=>{console.log(),console.log(a.red("Could not open "+s.basename(e)+" in the editor.")),t&&("."!==t[t.length-1]&&(t+="."),console.log(a.red("The editor process exited with an error: "+t))),console.log(),b&&b(e,t)};let[v,...A]=c(t);if(!v)return void m(g,null);if("linux"===process.platform&&g.startsWith("/mnt/")&&/Microsoft/i.test(i.release())&&(g=s.relative("",g)),C){let e=p(v,g,C,S);A.push.apply(A,e)}else A.push(g);if(d&&function(e){switch(e){case"vim":case"emacs":case"nano":return!0}return!1}(v)&&d.kill("SIGKILL"),"win32"===process.platform){let e=[v,...A.map(function(e){return e.replace(/([&|<>,;=^])/g,"^$1")})].map(function(e){return e.includes("^")?`^"${e}^"`:e.includes(" ")?`"${e}"`:e}).join(" ");d=r.exec(e,{stdio:"inherit",shell:!0})}else d=r.spawn(v,A,{stdio:"inherit"});d.on("exit",function(e){d=null,e&&m(g,"(code "+e+")")}),d.on("error",function(e){let{code:t,message:n}=e;"ENOENT"===t&&(n=`${n} ('${v}' command does not exist in 'PATH')`),m(g,n)})}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picocolors/1.1.1/a2cca8821324d9b53ce284317d33c07b8ca7ab5b808164538a24d91cf6e92abb/node_modules/picocolors/picocolors.js"(e){let t=process||{},n=t.argv||[],o=t.env||{},i=!(o.NO_COLOR||n.includes("--no-color"))&&(!!o.FORCE_COLOR||n.includes("--color")||"win32"===t.platform||(t.stdout||{}).isTTY&&"dumb"!==o.TERM||!!o.CI),s=(e,t,n=e)=>o=>{let i=""+o,s=i.indexOf(t,e.length);return~s?e+a(i,t,n,s)+t:e+i+t},a=(e,t,n,o)=>{let i="",s=0;do i+=e.substring(s,o)+n,s=o+t.length,o=e.indexOf(t,s);while(~o);return i+e.substring(s)},r=(e=i)=>{let t=e?s:()=>String;return{isColorSupported:e,reset:t("\x1b[0m","\x1b[0m"),bold:t("\x1b[1m","\x1b[22m","\x1b[22m\x1b[1m"),dim:t("\x1b[2m","\x1b[22m","\x1b[22m\x1b[2m"),italic:t("\x1b[3m","\x1b[23m"),underline:t("\x1b[4m","\x1b[24m"),inverse:t("\x1b[7m","\x1b[27m"),hidden:t("\x1b[8m","\x1b[28m"),strikethrough:t("\x1b[9m","\x1b[29m"),black:t("\x1b[30m","\x1b[39m"),red:t("\x1b[31m","\x1b[39m"),green:t("\x1b[32m","\x1b[39m"),yellow:t("\x1b[33m","\x1b[39m"),blue:t("\x1b[34m","\x1b[39m"),magenta:t("\x1b[35m","\x1b[39m"),cyan:t("\x1b[36m","\x1b[39m"),white:t("\x1b[37m","\x1b[39m"),gray:t("\x1b[90m","\x1b[39m"),bgBlack:t("\x1b[40m","\x1b[49m"),bgRed:t("\x1b[41m","\x1b[49m"),bgGreen:t("\x1b[42m","\x1b[49m"),bgYellow:t("\x1b[43m","\x1b[49m"),bgBlue:t("\x1b[44m","\x1b[49m"),bgMagenta:t("\x1b[45m","\x1b[49m"),bgCyan:t("\x1b[46m","\x1b[49m"),bgWhite:t("\x1b[47m","\x1b[49m"),blackBright:t("\x1b[90m","\x1b[39m"),redBright:t("\x1b[91m","\x1b[39m"),greenBright:t("\x1b[92m","\x1b[39m"),yellowBright:t("\x1b[93m","\x1b[39m"),blueBright:t("\x1b[94m","\x1b[39m"),magentaBright:t("\x1b[95m","\x1b[39m"),cyanBright:t("\x1b[96m","\x1b[39m"),whiteBright:t("\x1b[97m","\x1b[39m"),bgBlackBright:t("\x1b[100m","\x1b[49m"),bgRedBright:t("\x1b[101m","\x1b[49m"),bgGreenBright:t("\x1b[102m","\x1b[49m"),bgYellowBright:t("\x1b[103m","\x1b[49m"),bgBlueBright:t("\x1b[104m","\x1b[49m"),bgMagentaBright:t("\x1b[105m","\x1b[49m"),bgCyanBright:t("\x1b[106m","\x1b[49m"),bgWhiteBright:t("\x1b[107m","\x1b[49m")}};e.exports=r(),e.exports.createColors=r},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/shell-quote/1.10.0/cb94c86a55bacd5a83a2402c1207419c1936bf178e159a0b8804af88f1935bba/node_modules/shell-quote/index.js"(e,t,n){n("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/shell-quote/1.10.0/cb94c86a55bacd5a83a2402c1207419c1936bf178e159a0b8804af88f1935bba/node_modules/shell-quote/quote.js"),t.parse=n("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/shell-quote/1.10.0/cb94c86a55bacd5a83a2402c1207419c1936bf178e159a0b8804af88f1935bba/node_modules/shell-quote/parse.js")},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/shell-quote/1.10.0/cb94c86a55bacd5a83a2402c1207419c1936bf178e159a0b8804af88f1935bba/node_modules/shell-quote/parse.js"(e){for(var t="(?:\\|\\||\\&\\&|;;|\\|\\&|\\<\\(|\\<\\<\\<|>>|>\\&|<\\&|[&;()|<>])",n=RegExp("^"+t+"$"),o="|&;()<> \\t",i=/^#$/,s="",a=0;a<4;a++)s+=(0x100000000*Math.random()).toString(16);var r=RegExp("^"+s);e.exports=function(e,a,c){var p=function(e,a,r){r||(r={});var c=r.escape||"\\",p=!0===r.splitUnquoted?" \n":"string"==typeof r.splitUnquoted?r.splitUnquoted:"",l=function(e,t){for(var n,o=t.lastIndex,i=[];n=t.exec(e);)i[i.length]=n,t.lastIndex===n.index&&(t.lastIndex+=1);return t.lastIndex=o,i}(e,RegExp(["("+t+")","("+("(\\"+c+"['\""+o+"]|[^\\s'\""+o)+'])+|"((\\\\"|[^"])*?)"|\'([^\']*?)\')+'].join("|"),"g"));if(0===l.length)return[];a||(a={});var d=!1;return l.map(function(t){var o,r=t[0];if(r&&!d){if(n.test(r))return{op:r};var l=!1,m=!1,u="",b=[],f=!1,h=null,x=!1;for(o=0;o<r.length;o++){var g=r.charAt(o);if(p&&"$"!==g&&O(),x=x||!l&&("*"===g||"?"===g),m)u+=g,m=!1;else if(l)g===l?l=!1:"'"==l?u+=g:g===c?(o+=1,'"'===(g=r.charAt(o))||g===c||"$"===g?u+=g:u+=c+g):"$"===g?u+=_():u+=g;else if('"'===g||"'"===g)l=g,f=!0;else if(n.test(g))return{op:r};else if(i.test(g)){d=!0;var C={comment:e.slice(t.index+o+1)};if(u.length)return[u,C];return[C]}else if(g===c)m=!0;else if("$"===g){var S=_();if(p)for(var v=0;v<S.length;v+=1){var A=S.charAt(v);0>p.indexOf(A)?(O(),u+=A):null===h?h=+(" "!==A&&" "!==A&&"\n"!==A):" "!==A&&" "!==A&&"\n"!==A&&(h+=1)}else u+=S}else u+=g}if(x)return{op:"glob",pattern:u};if(p){if(null!==h&&h>0){b[b.length]=u,u="";for(var y=1;y<h;y+=1)b[b.length]=""}return(""!==u||f&&0===b.length)&&(b[b.length]=u),b}return u}function _(){o+=1;var e,t,n,i,c,p=r.charAt(o);if("{"===p){if(o+=1,"}"===r.charAt(o))throw Error("Bad substitution: "+r.slice(o-2,o+1));var l=1;for(i=o;l>0&&i<r.length;)"{"===r.charAt(i)&&"$"===r.charAt(i-1)?l+=1:"}"===r.charAt(i)&&(l-=1),i+=1;if(0!==l)throw Error("Bad substitution: "+r.slice(o));i-=1,c=r.slice(o,i),o=i}else if(/[*@#?$!_-]/.test(p))c=p,o+=1;else{var d=r.slice(o);(i=d.match(/[^\w\d_]/))?(c=d.slice(0,i.index),o+=i.index-1):(c=d,o=r.length)}return e=a,t=c,(void 0===(n="function"==typeof e?e(t):e[t])&&""!=t?n="":void 0===n&&(n="$"),"object"==typeof n)?""+s+JSON.stringify(n)+s:""+n}function O(){if(null!==h){if(0===h)""!==u&&(b[b.length]=u,u="");else{b[b.length]=u,u="";for(var e=1;e<h;e+=1)b[b.length]=""}h=null}}}).reduce(function(e,t){return void 0===t||[].concat(t).forEach(function(t){e[e.length]=t}),e},[])}(e,a,c);return"function"!=typeof a?p:p.reduce(function(e,t){if("object"==typeof t)return e[e.length]=t,e;var n=t.split(RegExp("("+s+".*?"+s+")","g"));return 1===n.length?e[e.length]=n[0]:n.filter(Boolean).forEach(function(t){e[e.length]=r.test(t)?JSON.parse(t.split(s)[1]):t}),e},[])}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/shell-quote/1.10.0/cb94c86a55bacd5a83a2402c1207419c1936bf178e159a0b8804af88f1935bba/node_modules/shell-quote/quote.js"(e){var t=["||","&&",";;","|&","<(","<<<",">>",">&","<&","&",";","(",")","|","<",">"],n=/[\n\r\u2028\u2029]/,o=/[\s#!"$&'():;<=>@\\^`|]/g;e.exports=function(e){return e.map(function(e){if(""===e)return"''";if(e&&"object"==typeof e){if("op"in e&&"glob"===e.op){if("string"!=typeof e.pattern)throw TypeError("glob token requires a string `pattern`");if(n.test(e.pattern))throw TypeError("glob `pattern` must not contain line terminators");return e.pattern.replace(o,"\\$&")}if("op"in e&&"string"==typeof e.op){if(0>t.indexOf(e.op))throw TypeError("invalid `op` value: "+JSON.stringify(e.op));return e.op.replace(/[\s\S]/g,"\\$&")}if("comment"in e&&"string"==typeof e.comment){if(n.test(e.comment))throw TypeError("`comment` must not contain line terminators");return"#"+e.comment}throw TypeError("unrecognized object token shape")}return/["\s\\]/.test(e)&&!/'/.test(e)?"'"+e.replace(/(['])/g,"\\$1")+"'":/["'\s]/.test(e)?'"'+e.replace(/(["\\$`!])/g,"\\$1")+'"':String(e).replace(/([A-Za-z]:)?([#!"$&'()*,:;<=>?@[\\\]^`{|}~])/g,"$1\\$2")}).join(" ")}}}),e("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor-middleware/2.14.1/6d555a60526ad6844dc2673e73b564ffd44ca896ac31b809c7cc243f8e135c00/node_modules/launch-editor-middleware/index.js");
1
+ import{rspackRequire as e,moduleFactories as t}from"./rslib-runtime.js";import"./626.js";t.add({"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor-middleware/2.14.1/6d555a60526ad6844dc2673e73b564ffd44ca896ac31b809c7cc243f8e135c00/node_modules/launch-editor-middleware/index.js"(t){let n=e("path?37f5"),o=e("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/index.js");t.exports=(e,t,i)=>("function"==typeof e&&(i=e,e=void 0),"function"==typeof t&&(i=t,t=void 0),t=t||process.cwd(),function(s,a){let r;try{let e=s.url.startsWith("http")?s.url:`http://localhost${s.url}`;r=new URL(e)}catch(e){a.statusCode=500,a.end("launch-editor-middleware: invalid URL.");return}let c=r.searchParams.get("file");c?(o(c.startsWith("file://")?c:n.resolve(t,c),e,i),a.end()):(a.statusCode=500,a.end('launch-editor-middleware: required query param "file" is missing.'))})},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/editor-info/linux.js"(e){e.exports={atom:"atom",Brackets:"brackets","code-insiders":"code-insiders",code:"code",vscodium:"vscodium",codium:"codium",cursor:"cursor",trae:"trae",antigravity:"antigravity",emacs:"emacs",gvim:"gvim",idea:"idea","idea.sh":"idea",phpstorm:"phpstorm","phpstorm.sh":"phpstorm",pycharm:"pycharm","pycharm.sh":"pycharm",rubymine:"rubymine","rubymine.sh":"rubymine",sublime_text:"subl",vim:"vim",webstorm:"webstorm","webstorm.sh":"webstorm",goland:"goland","goland.sh":"goland",rider:"rider","rider.sh":"rider",zed:"zed"}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/editor-info/macos.js"(e){e.exports={"/Applications/Atom.app/Contents/MacOS/Atom":"atom","/Applications/Atom Beta.app/Contents/MacOS/Atom Beta":"/Applications/Atom Beta.app/Contents/MacOS/Atom Beta","/Applications/Brackets.app/Contents/MacOS/Brackets":"brackets","/Applications/Sublime Text.app/Contents/MacOS/Sublime Text":"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl","/Applications/Sublime Text.app/Contents/MacOS/sublime_text":"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl","/Applications/Sublime Text 2.app/Contents/MacOS/Sublime Text 2":"/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl","/Applications/Sublime Text Dev.app/Contents/MacOS/Sublime Text":"/Applications/Sublime Text Dev.app/Contents/SharedSupport/bin/subl","/Applications/Visual Studio Code.app/Contents/MacOS/Code":"code","/Applications/Visual Studio Code.app/Contents/MacOS/Electron":"code","/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Code - Insiders":"code-insiders","/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Electron":"code-insiders","/Applications/VSCodium.app/Contents/MacOS/Electron":"codium","/Applications/Cursor.app/Contents/MacOS/Cursor":"cursor","/Applications/Trae.app/Contents/MacOS/Electron":"trae","/Applications/Antigravity.app/Contents/MacOS/Electron":"antigravity","/Applications/AppCode.app/Contents/MacOS/appcode":"/Applications/AppCode.app/Contents/MacOS/appcode","/Applications/CLion.app/Contents/MacOS/clion":"/Applications/CLion.app/Contents/MacOS/clion","/Applications/IntelliJ IDEA.app/Contents/MacOS/idea":"/Applications/IntelliJ IDEA.app/Contents/MacOS/idea","/Applications/IntelliJ IDEA Ultimate.app/Contents/MacOS/idea":"/Applications/IntelliJ IDEA Ultimate.app/Contents/MacOS/idea","/Applications/IntelliJ IDEA Community Edition.app/Contents/MacOS/idea":"/Applications/IntelliJ IDEA Community Edition.app/Contents/MacOS/idea","/Applications/PhpStorm.app/Contents/MacOS/phpstorm":"/Applications/PhpStorm.app/Contents/MacOS/phpstorm","/Applications/PyCharm.app/Contents/MacOS/pycharm":"/Applications/PyCharm.app/Contents/MacOS/pycharm","/Applications/PyCharm CE.app/Contents/MacOS/pycharm":"/Applications/PyCharm CE.app/Contents/MacOS/pycharm","/Applications/RubyMine.app/Contents/MacOS/rubymine":"/Applications/RubyMine.app/Contents/MacOS/rubymine","/Applications/WebStorm.app/Contents/MacOS/webstorm":"/Applications/WebStorm.app/Contents/MacOS/webstorm","/Applications/MacVim.app/Contents/MacOS/MacVim":"mvim","/Applications/GoLand.app/Contents/MacOS/goland":"/Applications/GoLand.app/Contents/MacOS/goland","/Applications/Rider.app/Contents/MacOS/rider":"/Applications/Rider.app/Contents/MacOS/rider","/Applications/Zed.app/Contents/MacOS/zed":"zed"}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/editor-info/windows.js"(e){e.exports=["Brackets.exe","Code.exe","Code - Insiders.exe","VSCodium.exe","Cursor.exe","atom.exe","sublime_text.exe","notepad++.exe","clion.exe","clion64.exe","idea.exe","idea64.exe","phpstorm.exe","phpstorm64.exe","pycharm.exe","pycharm64.exe","rubymine.exe","rubymine64.exe","webstorm.exe","webstorm64.exe","goland.exe","goland64.exe","rider.exe","rider64.exe","Trae.exe","zed.exe","Antigravity.exe"]},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/get-args.js"(t){let n=e("path?37f5");t.exports=function(e,t,o,i=1){switch(n.basename(e).replace(/\.(exe|cmd|bat)$/i,"")){case"atom":case"Atom":case"Atom Beta":case"subl":case"sublime":case"sublime_text":case"wstorm":case"charm":case"zed":return[`${t}:${o}:${i}`];case"notepad++":return["-n"+o,"-c"+i,t];case"vim":case"mvim":return[`+call cursor(${o}, ${i})`,t];case"joe":case"gvim":return[`+${o}`,t];case"emacs":case"emacsclient":return[`+${o}:${i}`,t];case"rmate":case"mate":case"mine":return["--line",o,t];case"code":case"Code":case"code-insiders":case"Code - Insiders":case"codium":case"trae":case"antigravity":case"cursor":case"vscodium":case"VSCodium":return["-r","-g",`${t}:${o}:${i}`];case"appcode":case"clion":case"clion64":case"idea":case"idea64":case"phpstorm":case"phpstorm64":case"pycharm":case"pycharm64":case"rubymine":case"rubymine64":case"webstorm":case"webstorm64":case"goland":case"goland64":case"rider":case"rider64":return["--line",o,"--column",i,t]}return process.env.LAUNCH_EDITOR?[t,o,i]:[t]}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/guess.js"(t){let n=e("path?37f5"),o=e("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/shell-quote/1.10.0/cb94c86a55bacd5a83a2402c1207419c1936bf178e159a0b8804af88f1935bba/node_modules/shell-quote/index.js"),i=e("child_process"),s=e("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/editor-info/macos.js"),a=e("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/editor-info/linux.js"),r=e("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/editor-info/windows.js");function c(e){let t=Object.keys(s),n=e.split("\n");for(let o=0;o<t.length;o++){let i=t[o];if(n.includes(i))return s[i];let a=i.replace("/Applications","");if(-1!==e.indexOf(a)){if(i!==s[i])return s[i];let e=n.find(e=>e.endsWith(a));if(void 0!==e)return e}}}function p(e){let t=e.split("\r\n");for(let e=0;e<t.length;e++){let o=t[e].trim(),i=n.win32.basename(o);if(-1!==r.indexOf(i))return o}}function l(e){let t=Object.keys(a);for(let n=0;n<t.length;n++){let o=t[n];if(-1!==e.indexOf(o))return a[o]}}t.exports=function(e){if(e)return o.parse(e);if(process.env.LAUNCH_EDITOR)return[process.env.LAUNCH_EDITOR];if(process.versions.webcontainer)return[process.env.EDITOR||"code"];try{if("darwin"===process.platform){let e=i.execSync("ps x -o comm=",{stdio:["pipe","pipe","ignore"]}).toString(),t=c(e);if(void 0!==t)return[t]}else if("win32"===process.platform){let e=i.execSync('powershell -NoProfile -Command "[Console]::OutputEncoding=[Text.Encoding]::UTF8;Get-CimInstance -Query \\"select executablepath from win32_process where executablepath is not null\\" | % { $_.ExecutablePath }"',{stdio:["pipe","pipe","ignore"]}).toString(),t=p(e);if(void 0!==t)return[t]}else if("linux"===process.platform){let e=i.execSync("ps x --no-heading -o comm --sort=comm",{stdio:["pipe","pipe","ignore"]}).toString(),t=l(e);if(void 0!==t)return[t]}}catch(e){}return process.env.VISUAL?[process.env.VISUAL]:process.env.EDITOR?[process.env.EDITOR]:[null]},t.exports.getEditorFromMacProcesses=c,t.exports.getEditorFromWindowsProcesses=p,t.exports.getEditorFromLinuxProcesses=l},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/index.js"(t){let n=e("fs?cdbd"),o=e("os"),i=e("path?37f5"),s=e("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picocolors/1.1.1/a2cca8821324d9b53ce284317d33c07b8ca7ab5b808164538a24d91cf6e92abb/node_modules/picocolors/picocolors.js"),a=e("child_process"),r=e("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/guess.js"),c=e("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor/2.14.1/c96a0c360b9d924c696715e2b6fb6410e2c6cd17c1dfa54e287a007414e10225/node_modules/launch-editor/get-args.js"),p=/:(\d+)(:(\d+))?$/,l=null;t.exports=function(t,d,m){var u,b;let f,h,x=((u=t).startsWith("file://")&&(u=e("url?5f07").fileURLToPath(u)),f=u.replace(p,""),{fileName:f,lineNumber:(h=u.match(p))&&h[1],columnNumber:h&&h[3]}),{fileName:g}=x,{lineNumber:C,columnNumber:S}=x;if("win32"===process.platform&&i.resolve(g).startsWith("\\\\"))return m(g,"UNC paths are not supported on Windows to avoid security issues. See https://github.com/vitejs/launch-editor/tree/main/packages/launch-editor#unc-paths-on-windows for details.");if(!n.existsSync(g))return;"function"==typeof d&&(m=d,d=void 0),b=m,m=(e,t)=>{console.log(),console.log(s.red("Could not open "+i.basename(e)+" in the editor.")),t&&("."!==t[t.length-1]&&(t+="."),console.log(s.red("The editor process exited with an error: "+t))),console.log(),b&&b(e,t)};let[v,...A]=r(d);if(!v)return void m(g,null);if("linux"===process.platform&&g.startsWith("/mnt/")&&/Microsoft/i.test(o.release())&&(g=i.relative("",g)),C){let e=c(v,g,C,S);A.push.apply(A,e)}else A.push(g);if(l&&function(e){switch(e){case"vim":case"emacs":case"nano":return!0}return!1}(v)&&l.kill("SIGKILL"),"win32"===process.platform){let e=[v,...A.map(function(e){return e.replace(/([&|<>,;=^])/g,"^$1")})].map(function(e){return e.includes("^")?`^"${e}^"`:e.includes(" ")?`"${e}"`:e}).join(" ");l=a.exec(e,{stdio:"inherit",shell:!0})}else l=a.spawn(v,A,{stdio:"inherit"});l.on("exit",function(e){l=null,e&&m(g,"(code "+e+")")}),l.on("error",function(e){let{code:t,message:n}=e;"ENOENT"===t&&(n=`${n} ('${v}' command does not exist in 'PATH')`),m(g,n)})}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/picocolors/1.1.1/a2cca8821324d9b53ce284317d33c07b8ca7ab5b808164538a24d91cf6e92abb/node_modules/picocolors/picocolors.js"(e){let t=process||{},n=t.argv||[],o=t.env||{},i=!(o.NO_COLOR||n.includes("--no-color"))&&(!!o.FORCE_COLOR||n.includes("--color")||"win32"===t.platform||(t.stdout||{}).isTTY&&"dumb"!==o.TERM||!!o.CI),s=(e,t,n=e)=>o=>{let i=""+o,s=i.indexOf(t,e.length);return~s?e+a(i,t,n,s)+t:e+i+t},a=(e,t,n,o)=>{let i="",s=0;do i+=e.substring(s,o)+n,s=o+t.length,o=e.indexOf(t,s);while(~o);return i+e.substring(s)},r=(e=i)=>{let t=e?s:()=>String;return{isColorSupported:e,reset:t("\x1b[0m","\x1b[0m"),bold:t("\x1b[1m","\x1b[22m","\x1b[22m\x1b[1m"),dim:t("\x1b[2m","\x1b[22m","\x1b[22m\x1b[2m"),italic:t("\x1b[3m","\x1b[23m"),underline:t("\x1b[4m","\x1b[24m"),inverse:t("\x1b[7m","\x1b[27m"),hidden:t("\x1b[8m","\x1b[28m"),strikethrough:t("\x1b[9m","\x1b[29m"),black:t("\x1b[30m","\x1b[39m"),red:t("\x1b[31m","\x1b[39m"),green:t("\x1b[32m","\x1b[39m"),yellow:t("\x1b[33m","\x1b[39m"),blue:t("\x1b[34m","\x1b[39m"),magenta:t("\x1b[35m","\x1b[39m"),cyan:t("\x1b[36m","\x1b[39m"),white:t("\x1b[37m","\x1b[39m"),gray:t("\x1b[90m","\x1b[39m"),bgBlack:t("\x1b[40m","\x1b[49m"),bgRed:t("\x1b[41m","\x1b[49m"),bgGreen:t("\x1b[42m","\x1b[49m"),bgYellow:t("\x1b[43m","\x1b[49m"),bgBlue:t("\x1b[44m","\x1b[49m"),bgMagenta:t("\x1b[45m","\x1b[49m"),bgCyan:t("\x1b[46m","\x1b[49m"),bgWhite:t("\x1b[47m","\x1b[49m"),blackBright:t("\x1b[90m","\x1b[39m"),redBright:t("\x1b[91m","\x1b[39m"),greenBright:t("\x1b[92m","\x1b[39m"),yellowBright:t("\x1b[93m","\x1b[39m"),blueBright:t("\x1b[94m","\x1b[39m"),magentaBright:t("\x1b[95m","\x1b[39m"),cyanBright:t("\x1b[96m","\x1b[39m"),whiteBright:t("\x1b[97m","\x1b[39m"),bgBlackBright:t("\x1b[100m","\x1b[49m"),bgRedBright:t("\x1b[101m","\x1b[49m"),bgGreenBright:t("\x1b[102m","\x1b[49m"),bgYellowBright:t("\x1b[103m","\x1b[49m"),bgBlueBright:t("\x1b[104m","\x1b[49m"),bgMagentaBright:t("\x1b[105m","\x1b[49m"),bgCyanBright:t("\x1b[106m","\x1b[49m"),bgWhiteBright:t("\x1b[107m","\x1b[49m")}};e.exports=r(),e.exports.createColors=r},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/shell-quote/1.10.0/cb94c86a55bacd5a83a2402c1207419c1936bf178e159a0b8804af88f1935bba/node_modules/shell-quote/index.js"(t,n){e("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/shell-quote/1.10.0/cb94c86a55bacd5a83a2402c1207419c1936bf178e159a0b8804af88f1935bba/node_modules/shell-quote/quote.js"),n.parse=e("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/shell-quote/1.10.0/cb94c86a55bacd5a83a2402c1207419c1936bf178e159a0b8804af88f1935bba/node_modules/shell-quote/parse.js")},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/shell-quote/1.10.0/cb94c86a55bacd5a83a2402c1207419c1936bf178e159a0b8804af88f1935bba/node_modules/shell-quote/parse.js"(e){for(var t="(?:\\|\\||\\&\\&|;;|\\|\\&|\\<\\(|\\<\\<\\<|>>|>\\&|<\\&|[&;()|<>])",n=RegExp("^"+t+"$"),o="|&;()<> \\t",i=/^#$/,s="",a=0;a<4;a++)s+=(0x100000000*Math.random()).toString(16);var r=RegExp("^"+s);e.exports=function(e,a,c){var p=function(e,a,r){r||(r={});var c=r.escape||"\\",p=!0===r.splitUnquoted?" \n":"string"==typeof r.splitUnquoted?r.splitUnquoted:"",l=function(e,t){for(var n,o=t.lastIndex,i=[];n=t.exec(e);)i[i.length]=n,t.lastIndex===n.index&&(t.lastIndex+=1);return t.lastIndex=o,i}(e,RegExp(["("+t+")","("+("(\\"+c+"['\""+o+"]|[^\\s'\""+o)+'])+|"((\\\\"|[^"])*?)"|\'([^\']*?)\')+'].join("|"),"g"));if(0===l.length)return[];a||(a={});var d=!1;return l.map(function(t){var o,r=t[0];if(r&&!d){if(n.test(r))return{op:r};var l=!1,m=!1,u="",b=[],f=!1,h=null,x=!1;for(o=0;o<r.length;o++){var g=r.charAt(o);if(p&&"$"!==g&&O(),x=x||!l&&("*"===g||"?"===g),m)u+=g,m=!1;else if(l)g===l?l=!1:"'"==l?u+=g:g===c?(o+=1,'"'===(g=r.charAt(o))||g===c||"$"===g?u+=g:u+=c+g):"$"===g?u+=_():u+=g;else if('"'===g||"'"===g)l=g,f=!0;else if(n.test(g))return{op:r};else if(i.test(g)){d=!0;var C={comment:e.slice(t.index+o+1)};if(u.length)return[u,C];return[C]}else if(g===c)m=!0;else if("$"===g){var S=_();if(p)for(var v=0;v<S.length;v+=1){var A=S.charAt(v);0>p.indexOf(A)?(O(),u+=A):null===h?h=+(" "!==A&&" "!==A&&"\n"!==A):" "!==A&&" "!==A&&"\n"!==A&&(h+=1)}else u+=S}else u+=g}if(x)return{op:"glob",pattern:u};if(p){if(null!==h&&h>0){b[b.length]=u,u="";for(var y=1;y<h;y+=1)b[b.length]=""}return(""!==u||f&&0===b.length)&&(b[b.length]=u),b}return u}function _(){o+=1;var e,t,n,i,c,p=r.charAt(o);if("{"===p){if(o+=1,"}"===r.charAt(o))throw Error("Bad substitution: "+r.slice(o-2,o+1));var l=1;for(i=o;l>0&&i<r.length;)"{"===r.charAt(i)&&"$"===r.charAt(i-1)?l+=1:"}"===r.charAt(i)&&(l-=1),i+=1;if(0!==l)throw Error("Bad substitution: "+r.slice(o));i-=1,c=r.slice(o,i),o=i}else if(/[*@#?$!_-]/.test(p))c=p,o+=1;else{var d=r.slice(o);(i=d.match(/[^\w\d_]/))?(c=d.slice(0,i.index),o+=i.index-1):(c=d,o=r.length)}return e=a,t=c,(void 0===(n="function"==typeof e?e(t):e[t])&&""!=t?n="":void 0===n&&(n="$"),"object"==typeof n)?""+s+JSON.stringify(n)+s:""+n}function O(){if(null!==h){if(0===h)""!==u&&(b[b.length]=u,u="");else{b[b.length]=u,u="";for(var e=1;e<h;e+=1)b[b.length]=""}h=null}}}).reduce(function(e,t){return void 0===t||[].concat(t).forEach(function(t){e[e.length]=t}),e},[])}(e,a,c);return"function"!=typeof a?p:p.reduce(function(e,t){if("object"==typeof t)return e[e.length]=t,e;var n=t.split(RegExp("("+s+".*?"+s+")","g"));return 1===n.length?e[e.length]=n[0]:n.filter(Boolean).forEach(function(t){e[e.length]=r.test(t)?JSON.parse(t.split(s)[1]):t}),e},[])}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/shell-quote/1.10.0/cb94c86a55bacd5a83a2402c1207419c1936bf178e159a0b8804af88f1935bba/node_modules/shell-quote/quote.js"(e){var t=["||","&&",";;","|&","<(","<<<",">>",">&","<&","&",";","(",")","|","<",">"],n=/[\n\r\u2028\u2029]/,o=/[\s#!"$&'():;<=>@\\^`|]/g;e.exports=function(e){return e.map(function(e){if(""===e)return"''";if(e&&"object"==typeof e){if("op"in e&&"glob"===e.op){if("string"!=typeof e.pattern)throw TypeError("glob token requires a string `pattern`");if(n.test(e.pattern))throw TypeError("glob `pattern` must not contain line terminators");return e.pattern.replace(o,"\\$&")}if("op"in e&&"string"==typeof e.op){if(0>t.indexOf(e.op))throw TypeError("invalid `op` value: "+JSON.stringify(e.op));return e.op.replace(/[\s\S]/g,"\\$&")}if("comment"in e&&"string"==typeof e.comment){if(n.test(e.comment))throw TypeError("`comment` must not contain line terminators");return"#"+e.comment}throw TypeError("unrecognized object token shape")}return/["\s\\]/.test(e)&&!/'/.test(e)?"'"+e.replace(/(['])/g,"\\$1")+"'":/["'\s]/.test(e)?'"'+e.replace(/(["\\$`!])/g,"\\$1")+'"':String(e).replace(/([A-Za-z]:)?([#!"$&'()*,:;<=>?@[\\\]^`{|}~])/g,"$1\\$2")}).join(" ")}}}),e("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/launch-editor-middleware/2.14.1/6d555a60526ad6844dc2673e73b564ffd44ca896ac31b809c7cc243f8e135c00/node_modules/launch-editor-middleware/index.js");
@@ -1 +1 @@
1
- import{__webpack_require__ as e}from"./rslib-runtime.js";import"./626.js";e.add({"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/rspack-manifest-plugin/5.2.2/e1ec5d4691c84b8859f27aa9fc2f39b9334ca010b826474dc51dc2d479e68b43/node_modules/rspack-manifest-plugin/dist/helpers.js"(e,t,s){t.transformFiles=t.reduceChunk=t.reduceAssets=t.generateManifest=void 0;let n=s("node:path?815c");t.generateManifest=(e,t,{generate:s,seed:n={}})=>s?s(n,t,Array.from(e.entrypoints.entries()).reduce((e,[t,s])=>Object.assign(e,{[t]:s.getFiles()}),{}),{compilation:e}):t.reduce((e,t)=>Object.assign(e,{[t.name]:t.path}),n),t.reduceAssets=(e,t,s)=>{let r;return(s[t.name]?r=s[t.name]:t.info.sourceFilename&&(r=(0,n.join)((0,n.dirname)(t.name),(0,n.basename)(t.info.sourceFilename))),r)?e.concat({isAsset:!0,isChunk:!1,isInitial:!1,isModuleAsset:!0,name:r,path:t.name}):t.chunks&&t.chunks.length>0?e:e.concat({isAsset:!0,isChunk:!1,isInitial:!1,isModuleAsset:!1,name:t.name,path:t.name})},t.reduceChunk=(e,t,s,r)=>(Array.from(t.auxiliaryFiles||[]).forEach(e=>{r[e]={isAsset:!0,isChunk:!1,isInitial:!1,isModuleAsset:!0,name:(0,n.basename)(e),path:e}}),Array.from(t.files).reduce((e,n)=>{let r=t.name?t.name:null;return r=r?s.useEntryKeys&&!n.endsWith(".map")?r:`${r}.${((e,{transformExtensions:t})=>{let s=e.replace(/\?.*/,"").split("."),n=s.pop();return t.test(n)?`${s.pop()}.${n}`:n})(n,s)}`:n,e.concat({chunk:t,isAsset:!1,isChunk:!0,isInitial:t.isOnlyInitial(),isModuleAsset:!1,name:r,path:n})},e));let r=e=>{let t=Object.assign({},e);return t.name=e.name.replace(/\\/g,"/"),t.path=e.path.replace(/\\/g,"/"),t};t.transformFiles=(e,t)=>["filter","map","sort"].filter(e=>!!t[e]).reduce((e,s)=>e[s](t[s]),e).map(r)},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/rspack-manifest-plugin/5.2.2/e1ec5d4691c84b8859f27aa9fc2f39b9334ca010b826474dc51dc2d479e68b43/node_modules/rspack-manifest-plugin/dist/hooks.js"(e,t,s){t.getCompilerHooks=t.emitHook=t.beforeRunHook=void 0;let n=s("node:fs?31c0"),r=s("node:path?815c"),o=s("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@rspack/lite-tapable/1.1.2/036f06c5b55ea7af7e140dea0a8408dcf1d42b66956fce0edb61b138095cac00/node_modules/@rspack/lite-tapable/dist/index.cjs"),a=s("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/rspack-manifest-plugin/5.2.2/e1ec5d4691c84b8859f27aa9fc2f39b9334ca010b826474dc51dc2d479e68b43/node_modules/rspack-manifest-plugin/dist/helpers.js"),i=new WeakMap,l=e=>{let t=i.get(e);return void 0===t&&(t={afterEmit:new o.SyncWaterfallHook(["manifest"]),beforeEmit:new o.SyncWaterfallHook(["manifest"])},i.set(e,t)),t};t.getCompilerHooks=l,t.beforeRunHook=({emitCountMap:e,manifestFileName:t},s,n)=>{let r=e.get(t)||0;e.set(t,r+1),n&&n()},t.emitHook=function({compiler:e,emitCountMap:t,manifestAssetId:s,manifestFileName:o,moduleAssets:i,options:c},p){let h=t.get(o)-1,u=p.getStats().toJson({all:!1,assets:!0,cachedAssets:!0,ids:!0,publicPath:!0}),g=null!==c.publicPath?c.publicPath:u.publicPath,f="auto"===g?"":g,{basePath:d,removeKeyHash:m}=c;t.set(o,h);let y={},k=Array.from(p.chunks).reduce((e,t)=>(0,a.reduceChunk)(e,t,c,y),[]);(k=(k=u.assets.reduce((e,t)=>(0,a.reduceAssets)(e,t,i),k)).filter(({name:s,path:n})=>!n.includes("hot-update")&&void 0===t.get((0,r.join)(e.options.output?.path||"<unknown>",s)))).forEach(e=>{delete y[e.path]}),Object.keys(y).forEach(e=>{k=k.concat(y[e])});let S={};u.assets?.forEach(e=>{e.integrity&&(S[e.name]=e.integrity)}),k=k.map(e=>{let t=e=>e.endsWith("/")?e:`${e}/`,s={name:d?t(d)+e.name:e.name,path:f?t(f)+e.path:e.path};return S[e.path]&&(s.integrity=S[e.path]),s.name=m?s.name.replace(m,""):s.name,Object.assign(e,s)}),k=(0,a.transformFiles)(k,c);let _=(0,a.generateManifest)(p,k,c),b=0===h;if(_=l(e).beforeEmit.call(_),b){let t=c.serialize(_);p.emitAsset(s,new e.webpack.sources.RawSource(t)),c.writeToFileEmit&&((0,n.mkdirSync)((0,r.dirname)(o),{recursive:!0}),(0,n.writeFileSync)(o,t))}l(e).afterEmit.call(_)}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/rspack-manifest-plugin/5.2.2/e1ec5d4691c84b8859f27aa9fc2f39b9334ca010b826474dc51dc2d479e68b43/node_modules/rspack-manifest-plugin/dist/index.js"(e,t,s){t.RspackManifestPlugin=void 0;let n=s("node:path?815c"),r=s("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/rspack-manifest-plugin/5.2.2/e1ec5d4691c84b8859f27aa9fc2f39b9334ca010b826474dc51dc2d479e68b43/node_modules/rspack-manifest-plugin/dist/hooks.js"),o=new Map,a={assetHookStage:1/0,basePath:"",fileName:"manifest.json",filter:null,generate:void 0,map:null,publicPath:null,removeKeyHash:/([a-f0-9]{16,32}\.?)/gi,seed:void 0,serialize:e=>JSON.stringify(e,null,2),sort:null,transformExtensions:/^(gz|map)$/i,useEntryKeys:!1,useLegacyEmit:!1,writeToFileEmit:!1};t.RspackManifestPlugin=class{options;constructor(e){this.options=Object.assign({},a,e)}apply(e){let t=(0,n.resolve)(e.options.output?.path||"./",this.options.fileName),s=(0,n.relative)(e.options.output?.path||"./",t),a=r.beforeRunHook.bind(this,{emitCountMap:o,manifestFileName:t}),i=r.emitHook.bind(this,{compiler:e,emitCountMap:o,manifestAssetId:s,manifestFileName:t,moduleAssets:{},options:this.options}),l={name:"WebpackManifestPlugin",stage:this.options.assetHookStage};!0===this.options.useLegacyEmit?e.hooks.emit.tap(l,i):e.hooks.thisCompilation.tap(l,e=>{e.hooks.processAssets.tap(l,()=>i(e))}),e.hooks.run.tapAsync(l,a),e.hooks.watchRun.tapAsync(l,a)}}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@rspack/lite-tapable/1.1.2/036f06c5b55ea7af7e140dea0a8408dcf1d42b66956fce0edb61b138095cac00/node_modules/@rspack/lite-tapable/dist/index.cjs"(e,t){var s={};s.d=(e,t,n)=>{var r=(t,n)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,[n]:t[r]})};r(t,"get"),r(n,"value")},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};function r(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}s.r(n);class o{intercept(e){if(this.interceptors.push(Object.assign({},e)),e.register)for(let t=0;t<this.taps.length;t++)this.taps[t]=e.register(this.taps[t])}_runRegisterInterceptors(e){return this.interceptors.reduce((e,t)=>t.register?.(e)??e,e)}_runCallInterceptors(...e){for(let t of this.interceptors)t.call&&t.call(...e)}_runErrorInterceptors(e){for(let t of this.interceptors)t.error&&t.error(e)}_runTapInterceptors(e){for(let t of this.interceptors)t.tap&&t.tap(e)}_runDoneInterceptors(){for(let e of this.interceptors)e.done&&e.done()}_runResultInterceptors(e){for(let t of this.interceptors)t.result&&t.result(e)}withOptions(e){let t=t=>Object.assign({},e,"string"==typeof t?{name:t}:t);return{name:this.name,tap:(e,s)=>this.tap(t(e),s),tapAsync:(e,s)=>this.tapAsync(t(e),s),tapPromise:(e,s)=>this.tapPromise(t(e),s),intercept:e=>this.intercept(e),isUsed:()=>this.isUsed(),withOptions:e=>this.withOptions(t(e)),queryStageRange:e=>this.queryStageRange(e)}}isUsed(){return this.taps.length>0||this.interceptors.length>0}queryStageRange(e){return new i(e,this)}callAsyncStageRange(e){throw Error("Hook should implement there own _callAsyncStageRange")}callAsync(...e){return this.callAsyncStageRange(this.queryStageRange(a),...e)}promiseStageRange(e,...t){return new Promise((s,n)=>{this.callAsyncStageRange(e,...t,(e,t)=>e?n(e):s(t))})}promise(...e){return this.promiseStageRange(this.queryStageRange(a),...e)}tap(e,t){this._tap("sync",e,t)}tapAsync(e,t){this._tap("async",e,t)}tapPromise(e,t){this._tap("promise",e,t)}_tap(e,t,s){let n=t;if("string"==typeof t)n={name:t.trim()};else if("object"!=typeof t||null===t)throw Error("Invalid tap options");if("string"!=typeof n.name||""===n.name)throw Error("Missing name for tap");this._insert(this._runRegisterInterceptors(Object.assign({type:e,fn:s},n)))}_insert(e){let t;"string"==typeof e.before?t=new Set([e.before]):Array.isArray(e.before)&&(t=new Set(e.before));let s=0;"number"==typeof e.stage&&(s=e.stage);let n=this.taps.length;for(;n>0;){n--;let e=this.taps[n];this.taps[n+1]=e;let r=e.stage||0;if(t){if(t.has(e.name)){t.delete(e.name);continue}if(t.size>0)continue}if(!(r>s)){n++;break}}this.taps[n]=e}_prepareArgs(e){let t=this.args.length;return e.length<t?(e.length=t,e.fill(void 0,e.length,t)):(e.length>t&&(e.length=t),e)}constructor(e=[],t){r(this,"args",void 0),r(this,"name",void 0),r(this,"taps",void 0),r(this,"interceptors",void 0),this.args=e,this.name=t,this.taps=[],this.interceptors=[]}}let a=[-1/0,1/0];class i{isUsed(){return!!(this.tapsInRange.length>0||-1/0===this.stageRange[0]&&this.hook.interceptors.some(e=>e.call)||1/0===this.stageRange[1]&&this.hook.interceptors.some(e=>e.done))}call(...e){if("function"!=typeof this.hook.callStageRange)throw Error("hook is not a SyncHook, call methods only exists on SyncHook");return this.hook.callStageRange(this,...e)}callAsync(...e){return this.hook.callAsyncStageRange(this,...e)}promise(...e){return this.hook.promiseStageRange(this,...e)}constructor(e,t){r(this,"stageRange",void 0),r(this,"hook",void 0),r(this,"tapsInRange",void 0);let s=[],[n,o]=e;for(let e of t.taps){let t=e.stage??0;n<=t&&t<o?s.push(e):1/0===o&&1/0===t&&s.push(e)}this.stageRange=e,this.hook=t,this.tapsInRange=s}}class l extends o{callAsyncStageRange(e,...t){let{stageRange:[s,n],tapsInRange:r}=e,o=t.slice(0,t.length-1),a=t[t.length-1],i=this._prepareArgs(o);for(let e of(-1/0===s&&this._runCallInterceptors(...i),r)){this._runTapInterceptors(e);try{e.fn(...i)}catch(e){return this._runErrorInterceptors(e),a(e)}}1/0===n&&(this._runDoneInterceptors(),a(null))}call(...e){return this.callStageRange(this.queryStageRange(a),...e)}callStageRange(e,...t){let s,n;if(this.callAsyncStageRange(e,...t,(e,t)=>{n=e,s=t}),n)throw n;return s}tapAsync(){throw Error("tapAsync is not supported on a SyncHook")}tapPromise(){throw Error("tapPromise is not supported on a SyncHook")}}class c extends o{callAsyncStageRange(e,...t){let{stageRange:[s,n],tapsInRange:r}=e,o=t.slice(0,t.length-1),a=t[t.length-1],i=this._prepareArgs(o);for(let e of(-1/0===s&&this._runCallInterceptors(...i),r)){let t;this._runTapInterceptors(e);try{t=e.fn(...i)}catch(e){return this._runErrorInterceptors(e),a(e)}if(void 0!==t)return this._runResultInterceptors(t),a(null,t)}1/0===n&&(this._runDoneInterceptors(),a(null))}call(...e){return this.callStageRange(this.queryStageRange(a),...e)}callStageRange(e,...t){let s,n;if(this.callAsyncStageRange(e,...t,(e,t)=>{n=e,s=t}),n)throw n;return s}tapAsync(){throw Error("tapAsync is not supported on a SyncBailHook")}tapPromise(){throw Error("tapPromise is not supported on a SyncBailHook")}}class p extends o{callAsyncStageRange(e,...t){let{stageRange:[s,n],tapsInRange:r}=e,o=t.slice(0,t.length-1),a=t[t.length-1],i=this._prepareArgs(o);for(let e of(-1/0===s&&this._runCallInterceptors(...i),r)){this._runTapInterceptors(e);try{let t=e.fn(...i);void 0!==t&&(i[0]=t)}catch(e){return this._runErrorInterceptors(e),a(e)}}1/0===n&&(this._runDoneInterceptors(),a(null,i[0]))}call(...e){return this.callStageRange(this.queryStageRange(a),...e)}callStageRange(e,...t){let s,n;if(this.callAsyncStageRange(e,...t,(e,t)=>{n=e,s=t}),n)throw n;return s}tapAsync(){throw Error("tapAsync is not supported on a SyncWaterfallHook")}tapPromise(){throw Error("tapPromise is not supported on a SyncWaterfallHook")}constructor(e=[],t){if(e.length<1)throw Error("Waterfall hooks must have at least one argument");super(e,t)}}class h extends o{callAsyncStageRange(e,...t){let{stageRange:[s],tapsInRange:n}=e,r=t.slice(0,t.length-1),o=t[t.length-1],a=this._prepareArgs(r);-1/0===s&&this._runCallInterceptors(...a);let i=()=>{this._runDoneInterceptors(),o(null)},l=e=>{this._runErrorInterceptors(e),o(e)};if(0===n.length)return i();let c=n.length;for(let e of n){if(this._runTapInterceptors(e),"promise"===e.type){let t=e.fn(...a);if(!t||!t.then)throw Error(`Tap function (tapPromise) did not return promise (returned ${t})`);t.then(()=>{0==(c-=1)&&i()},e=>{c=0,l(e)})}else if("async"===e.type)e.fn(...a,e=>{e?(c=0,l(e)):0==(c-=1)&&i()});else{let t=!1;try{e.fn(...a)}catch(e){t=!0,c=0,l(e)}t||0!=--c||i()}if(c<=0)return}}}class u extends o{callAsyncStageRange(e,...t){let{stageRange:[s],tapsInRange:n}=e,r=t.slice(0,t.length-1),o=t[t.length-1],a=this._prepareArgs(r);-1/0===s&&this._runCallInterceptors(...a);let i=()=>{this._runDoneInterceptors(),o(null)},l=e=>{this._runErrorInterceptors(e),o(e)};if(0===n.length)return i();let c=0,p=()=>{let e=n[c];if(this._runTapInterceptors(e),"promise"===e.type){let t=e.fn(...a);if(!t||!t.then)throw Error(`Tap function (tapPromise) did not return promise (returned ${t})`);t.then(()=>{(c+=1)===n.length?i():p()},e=>{c=n.length,l(e)})}else if("async"===e.type)e.fn(...a,e=>{e?(c=n.length,l(e)):(c+=1)===n.length?i():p()});else{let t=!1;try{e.fn(...a)}catch(e){t=!0,c=n.length,l(e)}t||((c+=1)===n.length?i():p())}if(c===n.length)return};p()}}class g extends o{callAsyncStageRange(e,...t){let{stageRange:[s],tapsInRange:n}=e,r=t.slice(0,t.length-1),o=t[t.length-1],a=this._prepareArgs(r);-1/0===s&&this._runCallInterceptors(...a);let i=()=>{this._runDoneInterceptors(),o(null)},l=e=>{this._runErrorInterceptors(e),o(e)},c=e=>{this._runResultInterceptors(e),o(null,e)};if(0===n.length)return i();let p=0,h=()=>{let e=n[p];if(this._runTapInterceptors(e),"promise"===e.type){let t=e.fn(...a);if(!t||!t.then)throw Error(`Tap function (tapPromise) did not return promise (returned ${t})`);t.then(e=>{p+=1,void 0!==e?c(e):p===n.length?i():h()},e=>{p=n.length,l(e)})}else if("async"===e.type)e.fn(...a,(e,t)=>{e?(p=n.length,l(e)):(p+=1,void 0!==t?c(t):p===n.length?i():h())});else{let t,s=!1;try{t=e.fn(...a)}catch(e){s=!0,p=n.length,l(e)}s||(p+=1,void 0!==t?c(t):p===n.length?i():h())}if(p===n.length)return};h()}}class f extends o{callAsyncStageRange(e,...t){let{stageRange:[s],tapsInRange:n}=e,r=t.slice(0,t.length-1),o=t[t.length-1],a=this._prepareArgs(r);-1/0===s&&this._runCallInterceptors(...a);let i=e=>{this._runResultInterceptors(e),o(null,e)},l=e=>{this._runErrorInterceptors(e),o(e)};if(0===n.length)return i(a[0]);let c=0,p=()=>{let e=n[c];if(this._runTapInterceptors(e),"promise"===e.type){let t=e.fn(...a);if(!t||!t.then)throw Error(`Tap function (tapPromise) did not return promise (returned ${t})`);t.then(e=>{c+=1,void 0!==e&&(a[0]=e),c===n.length?i(a[0]):p()},e=>{c=n.length,l(e)})}else if("async"===e.type)e.fn(...a,(e,t)=>{e?(c=n.length,l(e)):(c+=1,void 0!==t&&(a[0]=t),c===n.length?i(a[0]):p())});else{let t=!1;try{let t=e.fn(...a);void 0!==t&&(a[0]=t)}catch(e){t=!0,c=n.length,l(e)}t||((c+=1)===n.length?i(a[0]):p())}if(c===n.length)return};p()}constructor(e=[],t){if(e.length<1)throw Error("Waterfall hooks must have at least one argument");super(e,t)}}let d=(e,t)=>t;class m{get(e){return this._map.get(e)}for(e){let t=this.get(e);if(void 0!==t)return t;let s=this._factory(e),n=this._interceptors;for(let t=0;t<n.length;t++){let r=n[t].factory;r&&(s=r(e,s))}return this._map.set(e,s),s}intercept(e){this._interceptors.push(Object.assign({factory:d},e))}isUsed(){for(let e of this._map.keys()){let t=this.get(e);if(t?.isUsed())return!0}return!1}queryStageRange(e){return new y(e,this)}constructor(e,t){r(this,"_map",new Map),r(this,"_factory",void 0),r(this,"name",void 0),r(this,"_interceptors",void 0),this.name=t,this._factory=e,this._interceptors=[]}}class y{get(e){return this.hookMap.get(e)?.queryStageRange(this.stageRange)}for(e){return this.hookMap.for(e).queryStageRange(this.stageRange)}isUsed(){for(let e of this.hookMap._map.keys())if(this.get(e)?.isUsed())return!0;return!1}constructor(e,t){r(this,"stageRange",void 0),r(this,"hookMap",void 0),this.stageRange=e,this.hookMap=t}}class k{tap(e,t){for(let s of this.hooks)s.tap(e,t)}tapAsync(e,t){for(let s of this.hooks)s.tapAsync(e,t)}tapPromise(e,t){for(let s of this.hooks)s.tapPromise(e,t)}isUsed(){for(let e of this.hooks)if(e.isUsed())return!0;return!1}intercept(e){for(let t of this.hooks)t.intercept(e)}withOptions(e){return new k(this.hooks.map(t=>t.withOptions(e)),this.name)}constructor(e,t){r(this,"hooks",void 0),r(this,"name",void 0),this.hooks=e,this.name=t}}for(var S in s.d(n,{AsyncParallelHook:()=>h,AsyncSeriesBailHook:()=>g,AsyncSeriesHook:()=>u,AsyncSeriesWaterfallHook:()=>f,HookBase:()=>o,HookMap:()=>m,MultiHook:()=>k,QueriedHook:()=>i,QueriedHookMap:()=>y,SyncBailHook:()=>c,SyncHook:()=>l,SyncWaterfallHook:()=>p},{maxStage:1/0,minStage:-1/0,safeStage:e=>e<-0x80000000?-0x80000000:e>0x7fffffff?0x7fffffff:e}),t.AsyncParallelHook=n.AsyncParallelHook,t.AsyncSeriesBailHook=n.AsyncSeriesBailHook,t.AsyncSeriesHook=n.AsyncSeriesHook,t.AsyncSeriesWaterfallHook=n.AsyncSeriesWaterfallHook,t.HookBase=n.HookBase,t.HookMap=n.HookMap,t.MultiHook=n.MultiHook,t.QueriedHook=n.QueriedHook,t.QueriedHookMap=n.QueriedHookMap,t.SyncBailHook=n.SyncBailHook,t.SyncHook=n.SyncHook,t.SyncWaterfallHook=n.SyncWaterfallHook,t.maxStage=n.maxStage,t.minStage=n.minStage,t.safeStage=n.safeStage,n)-1===["AsyncParallelHook","AsyncSeriesBailHook","AsyncSeriesHook","AsyncSeriesWaterfallHook","HookBase","HookMap","MultiHook","QueriedHook","QueriedHookMap","SyncBailHook","SyncHook","SyncWaterfallHook","maxStage","minStage","safeStage"].indexOf(S)&&(t[S]=n[S]);Object.defineProperty(t,"__esModule",{value:!0})}});var t=e("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/rspack-manifest-plugin/5.2.2/e1ec5d4691c84b8859f27aa9fc2f39b9334ca010b826474dc51dc2d479e68b43/node_modules/rspack-manifest-plugin/dist/index.js").RspackManifestPlugin;export{t as RspackManifestPlugin};
1
+ import{rspackRequire as e,moduleFactories as t}from"./rslib-runtime.js";import"./626.js";t.add({"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/rspack-manifest-plugin/5.2.2/0e24beaf1b234a114f5305075e91a7e73b51041985d9a6da39afa17869758a5c/node_modules/rspack-manifest-plugin/dist/helpers.js"(t,s){s.transformFiles=s.reduceChunk=s.reduceAssets=s.generateManifest=void 0;let n=e("node:path?815c");s.generateManifest=(e,t,{generate:s,seed:n={}})=>s?s(n,t,Array.from(e.entrypoints.entries()).reduce((e,[t,s])=>Object.assign(e,{[t]:s.getFiles()}),{}),{compilation:e}):t.reduce((e,t)=>Object.assign(e,{[t.name]:t.path}),n),s.reduceAssets=(e,t,s)=>{let r;return(s[t.name]?r=s[t.name]:t.info.sourceFilename&&(r=(0,n.join)((0,n.dirname)(t.name),(0,n.basename)(t.info.sourceFilename))),r)?e.concat({isAsset:!0,isChunk:!1,isInitial:!1,isModuleAsset:!0,name:r,path:t.name}):t.chunks&&t.chunks.length>0?e:e.concat({isAsset:!0,isChunk:!1,isInitial:!1,isModuleAsset:!1,name:t.name,path:t.name})},s.reduceChunk=(e,t,s,r)=>(Array.from(t.auxiliaryFiles||[]).forEach(e=>{r[e]={isAsset:!0,isChunk:!1,isInitial:!1,isModuleAsset:!0,name:(0,n.basename)(e),path:e}}),Array.from(t.files).reduce((e,n)=>{let r=t.name?t.name:null;return r=r?s.useEntryKeys&&!n.endsWith(".map")?r:`${r}.${((e,{transformExtensions:t})=>{let s=e.replace(/\?.*/,"").split("."),n=s.pop();return t.test(n)?`${s.pop()}.${n}`:n})(n,s)}`:n,e.concat({chunk:t,isAsset:!1,isChunk:!0,isInitial:t.isOnlyInitial(),isModuleAsset:!1,name:r,path:n})},e));let r=e=>{let t=Object.assign({},e);return t.name=e.name.replace(/\\/g,"/"),t.path=e.path.replace(/\\/g,"/"),t};s.transformFiles=(e,t)=>["filter","map","sort"].filter(e=>!!t[e]).reduce((e,s)=>e[s](t[s]),e).map(r)},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/rspack-manifest-plugin/5.2.2/0e24beaf1b234a114f5305075e91a7e73b51041985d9a6da39afa17869758a5c/node_modules/rspack-manifest-plugin/dist/hooks.js"(t,s){s.getCompilerHooks=s.emitHook=s.beforeRunHook=void 0;let n=e("node:fs?31c0"),r=e("node:path?815c"),a=e("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@rspack/lite-tapable/1.1.2/036f06c5b55ea7af7e140dea0a8408dcf1d42b66956fce0edb61b138095cac00/node_modules/@rspack/lite-tapable/dist/index.cjs"),o=e("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/rspack-manifest-plugin/5.2.2/0e24beaf1b234a114f5305075e91a7e73b51041985d9a6da39afa17869758a5c/node_modules/rspack-manifest-plugin/dist/helpers.js"),i=new WeakMap,l=e=>{let t=i.get(e);return void 0===t&&(t={afterEmit:new a.SyncWaterfallHook(["manifest"]),beforeEmit:new a.SyncWaterfallHook(["manifest"])},i.set(e,t)),t};s.getCompilerHooks=l,s.beforeRunHook=({emitCountMap:e,manifestFileName:t},s,n)=>{let r=e.get(t)||0;e.set(t,r+1),n&&n()},s.emitHook=function({compiler:e,emitCountMap:t,manifestAssetId:s,manifestFileName:a,moduleAssets:i,options:p},c){let h=t.get(a)-1,u=c.getStats().toJson({all:!1,assets:!0,cachedAssets:!0,ids:!0,publicPath:!0}),g=null!==p.publicPath?p.publicPath:u.publicPath,f="auto"===g?"":g,{basePath:d,removeKeyHash:m}=p;t.set(a,h);let y={},k=Array.from(c.chunks).reduce((e,t)=>(0,o.reduceChunk)(e,t,p,y),[]);(k=(k=u.assets.reduce((e,t)=>(0,o.reduceAssets)(e,t,i),k)).filter(({name:s,path:n})=>!n.includes("hot-update")&&void 0===t.get((0,r.join)(e.options.output?.path||"<unknown>",s)))).forEach(e=>{delete y[e.path]}),Object.keys(y).forEach(e=>{k=k.concat(y[e])});let S={};u.assets?.forEach(e=>{e.integrity&&(S[e.name]=e.integrity)}),k=k.map(e=>{let t=e=>e.endsWith("/")?e:`${e}/`,s={name:d?t(d)+e.name:e.name,path:f?t(f)+e.path:e.path};return S[e.path]&&(s.integrity=S[e.path]),s.name=m?s.name.replace(m,""):s.name,Object.assign(e,s)}),k=(0,o.transformFiles)(k,p);let _=(0,o.generateManifest)(c,k,p),b=0===h;if(_=l(e).beforeEmit.call(_),b){let t=p.serialize(_);c.emitAsset(s,new e.webpack.sources.RawSource(t)),p.writeToFileEmit&&((0,n.mkdirSync)((0,r.dirname)(a),{recursive:!0}),(0,n.writeFileSync)(a,t))}l(e).afterEmit.call(_)}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/rspack-manifest-plugin/5.2.2/0e24beaf1b234a114f5305075e91a7e73b51041985d9a6da39afa17869758a5c/node_modules/rspack-manifest-plugin/dist/index.js"(t,s){s.RspackManifestPlugin=void 0;let n=e("node:path?815c"),r=e("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/rspack-manifest-plugin/5.2.2/0e24beaf1b234a114f5305075e91a7e73b51041985d9a6da39afa17869758a5c/node_modules/rspack-manifest-plugin/dist/hooks.js"),a=new Map,o={assetHookStage:1/0,basePath:"",fileName:"manifest.json",filter:null,generate:void 0,map:null,publicPath:null,removeKeyHash:/([a-f0-9]{16,32}\.?)/gi,seed:void 0,serialize:e=>JSON.stringify(e,null,2),sort:null,transformExtensions:/^(gz|map)$/i,useEntryKeys:!1,useLegacyEmit:!1,writeToFileEmit:!1};s.RspackManifestPlugin=class{options;constructor(e){this.options=Object.assign({},o,e)}apply(e){let t=(0,n.resolve)(e.options.output?.path||"./",this.options.fileName),s=(0,n.relative)(e.options.output?.path||"./",t),o=r.beforeRunHook.bind(this,{emitCountMap:a,manifestFileName:t}),i=r.emitHook.bind(this,{compiler:e,emitCountMap:a,manifestAssetId:s,manifestFileName:t,moduleAssets:{},options:this.options}),l={name:"WebpackManifestPlugin",stage:this.options.assetHookStage};!0===this.options.useLegacyEmit?e.hooks.emit.tap(l,i):e.hooks.thisCompilation.tap(l,e=>{e.hooks.processAssets.tap(l,()=>i(e))}),e.hooks.run.tapAsync(l,o),e.hooks.watchRun.tapAsync(l,o)}}},"../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@rspack/lite-tapable/1.1.2/036f06c5b55ea7af7e140dea0a8408dcf1d42b66956fce0edb61b138095cac00/node_modules/@rspack/lite-tapable/dist/index.cjs"(e,t){var s={};s.d=(e,t,n)=>{var r=(t,n)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,[n]:t[r]})};r(t,"get"),r(n,"value")},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};function r(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}s.r(n);class a{intercept(e){if(this.interceptors.push(Object.assign({},e)),e.register)for(let t=0;t<this.taps.length;t++)this.taps[t]=e.register(this.taps[t])}_runRegisterInterceptors(e){return this.interceptors.reduce((e,t)=>t.register?.(e)??e,e)}_runCallInterceptors(...e){for(let t of this.interceptors)t.call&&t.call(...e)}_runErrorInterceptors(e){for(let t of this.interceptors)t.error&&t.error(e)}_runTapInterceptors(e){for(let t of this.interceptors)t.tap&&t.tap(e)}_runDoneInterceptors(){for(let e of this.interceptors)e.done&&e.done()}_runResultInterceptors(e){for(let t of this.interceptors)t.result&&t.result(e)}withOptions(e){let t=t=>Object.assign({},e,"string"==typeof t?{name:t}:t);return{name:this.name,tap:(e,s)=>this.tap(t(e),s),tapAsync:(e,s)=>this.tapAsync(t(e),s),tapPromise:(e,s)=>this.tapPromise(t(e),s),intercept:e=>this.intercept(e),isUsed:()=>this.isUsed(),withOptions:e=>this.withOptions(t(e)),queryStageRange:e=>this.queryStageRange(e)}}isUsed(){return this.taps.length>0||this.interceptors.length>0}queryStageRange(e){return new i(e,this)}callAsyncStageRange(e){throw Error("Hook should implement there own _callAsyncStageRange")}callAsync(...e){return this.callAsyncStageRange(this.queryStageRange(o),...e)}promiseStageRange(e,...t){return new Promise((s,n)=>{this.callAsyncStageRange(e,...t,(e,t)=>e?n(e):s(t))})}promise(...e){return this.promiseStageRange(this.queryStageRange(o),...e)}tap(e,t){this._tap("sync",e,t)}tapAsync(e,t){this._tap("async",e,t)}tapPromise(e,t){this._tap("promise",e,t)}_tap(e,t,s){let n=t;if("string"==typeof t)n={name:t.trim()};else if("object"!=typeof t||null===t)throw Error("Invalid tap options");if("string"!=typeof n.name||""===n.name)throw Error("Missing name for tap");this._insert(this._runRegisterInterceptors(Object.assign({type:e,fn:s},n)))}_insert(e){let t;"string"==typeof e.before?t=new Set([e.before]):Array.isArray(e.before)&&(t=new Set(e.before));let s=0;"number"==typeof e.stage&&(s=e.stage);let n=this.taps.length;for(;n>0;){n--;let e=this.taps[n];this.taps[n+1]=e;let r=e.stage||0;if(t){if(t.has(e.name)){t.delete(e.name);continue}if(t.size>0)continue}if(!(r>s)){n++;break}}this.taps[n]=e}_prepareArgs(e){let t=this.args.length;return e.length<t?(e.length=t,e.fill(void 0,e.length,t)):(e.length>t&&(e.length=t),e)}constructor(e=[],t){r(this,"args",void 0),r(this,"name",void 0),r(this,"taps",void 0),r(this,"interceptors",void 0),this.args=e,this.name=t,this.taps=[],this.interceptors=[]}}let o=[-1/0,1/0];class i{isUsed(){return!!(this.tapsInRange.length>0||-1/0===this.stageRange[0]&&this.hook.interceptors.some(e=>e.call)||1/0===this.stageRange[1]&&this.hook.interceptors.some(e=>e.done))}call(...e){if("function"!=typeof this.hook.callStageRange)throw Error("hook is not a SyncHook, call methods only exists on SyncHook");return this.hook.callStageRange(this,...e)}callAsync(...e){return this.hook.callAsyncStageRange(this,...e)}promise(...e){return this.hook.promiseStageRange(this,...e)}constructor(e,t){r(this,"stageRange",void 0),r(this,"hook",void 0),r(this,"tapsInRange",void 0);let s=[],[n,a]=e;for(let e of t.taps){let t=e.stage??0;n<=t&&t<a?s.push(e):1/0===a&&1/0===t&&s.push(e)}this.stageRange=e,this.hook=t,this.tapsInRange=s}}class l extends a{callAsyncStageRange(e,...t){let{stageRange:[s,n],tapsInRange:r}=e,a=t.slice(0,t.length-1),o=t[t.length-1],i=this._prepareArgs(a);for(let e of(-1/0===s&&this._runCallInterceptors(...i),r)){this._runTapInterceptors(e);try{e.fn(...i)}catch(e){return this._runErrorInterceptors(e),o(e)}}1/0===n&&(this._runDoneInterceptors(),o(null))}call(...e){return this.callStageRange(this.queryStageRange(o),...e)}callStageRange(e,...t){let s,n;if(this.callAsyncStageRange(e,...t,(e,t)=>{n=e,s=t}),n)throw n;return s}tapAsync(){throw Error("tapAsync is not supported on a SyncHook")}tapPromise(){throw Error("tapPromise is not supported on a SyncHook")}}class p extends a{callAsyncStageRange(e,...t){let{stageRange:[s,n],tapsInRange:r}=e,a=t.slice(0,t.length-1),o=t[t.length-1],i=this._prepareArgs(a);for(let e of(-1/0===s&&this._runCallInterceptors(...i),r)){let t;this._runTapInterceptors(e);try{t=e.fn(...i)}catch(e){return this._runErrorInterceptors(e),o(e)}if(void 0!==t)return this._runResultInterceptors(t),o(null,t)}1/0===n&&(this._runDoneInterceptors(),o(null))}call(...e){return this.callStageRange(this.queryStageRange(o),...e)}callStageRange(e,...t){let s,n;if(this.callAsyncStageRange(e,...t,(e,t)=>{n=e,s=t}),n)throw n;return s}tapAsync(){throw Error("tapAsync is not supported on a SyncBailHook")}tapPromise(){throw Error("tapPromise is not supported on a SyncBailHook")}}class c extends a{callAsyncStageRange(e,...t){let{stageRange:[s,n],tapsInRange:r}=e,a=t.slice(0,t.length-1),o=t[t.length-1],i=this._prepareArgs(a);for(let e of(-1/0===s&&this._runCallInterceptors(...i),r)){this._runTapInterceptors(e);try{let t=e.fn(...i);void 0!==t&&(i[0]=t)}catch(e){return this._runErrorInterceptors(e),o(e)}}1/0===n&&(this._runDoneInterceptors(),o(null,i[0]))}call(...e){return this.callStageRange(this.queryStageRange(o),...e)}callStageRange(e,...t){let s,n;if(this.callAsyncStageRange(e,...t,(e,t)=>{n=e,s=t}),n)throw n;return s}tapAsync(){throw Error("tapAsync is not supported on a SyncWaterfallHook")}tapPromise(){throw Error("tapPromise is not supported on a SyncWaterfallHook")}constructor(e=[],t){if(e.length<1)throw Error("Waterfall hooks must have at least one argument");super(e,t)}}class h extends a{callAsyncStageRange(e,...t){let{stageRange:[s],tapsInRange:n}=e,r=t.slice(0,t.length-1),a=t[t.length-1],o=this._prepareArgs(r);-1/0===s&&this._runCallInterceptors(...o);let i=()=>{this._runDoneInterceptors(),a(null)},l=e=>{this._runErrorInterceptors(e),a(e)};if(0===n.length)return i();let p=n.length;for(let e of n){if(this._runTapInterceptors(e),"promise"===e.type){let t=e.fn(...o);if(!t||!t.then)throw Error(`Tap function (tapPromise) did not return promise (returned ${t})`);t.then(()=>{0==(p-=1)&&i()},e=>{p=0,l(e)})}else if("async"===e.type)e.fn(...o,e=>{e?(p=0,l(e)):0==(p-=1)&&i()});else{let t=!1;try{e.fn(...o)}catch(e){t=!0,p=0,l(e)}t||0!=--p||i()}if(p<=0)return}}}class u extends a{callAsyncStageRange(e,...t){let{stageRange:[s],tapsInRange:n}=e,r=t.slice(0,t.length-1),a=t[t.length-1],o=this._prepareArgs(r);-1/0===s&&this._runCallInterceptors(...o);let i=()=>{this._runDoneInterceptors(),a(null)},l=e=>{this._runErrorInterceptors(e),a(e)};if(0===n.length)return i();let p=0,c=()=>{let e=n[p];if(this._runTapInterceptors(e),"promise"===e.type){let t=e.fn(...o);if(!t||!t.then)throw Error(`Tap function (tapPromise) did not return promise (returned ${t})`);t.then(()=>{(p+=1)===n.length?i():c()},e=>{p=n.length,l(e)})}else if("async"===e.type)e.fn(...o,e=>{e?(p=n.length,l(e)):(p+=1)===n.length?i():c()});else{let t=!1;try{e.fn(...o)}catch(e){t=!0,p=n.length,l(e)}t||((p+=1)===n.length?i():c())}if(p===n.length)return};c()}}class g extends a{callAsyncStageRange(e,...t){let{stageRange:[s],tapsInRange:n}=e,r=t.slice(0,t.length-1),a=t[t.length-1],o=this._prepareArgs(r);-1/0===s&&this._runCallInterceptors(...o);let i=()=>{this._runDoneInterceptors(),a(null)},l=e=>{this._runErrorInterceptors(e),a(e)},p=e=>{this._runResultInterceptors(e),a(null,e)};if(0===n.length)return i();let c=0,h=()=>{let e=n[c];if(this._runTapInterceptors(e),"promise"===e.type){let t=e.fn(...o);if(!t||!t.then)throw Error(`Tap function (tapPromise) did not return promise (returned ${t})`);t.then(e=>{c+=1,void 0!==e?p(e):c===n.length?i():h()},e=>{c=n.length,l(e)})}else if("async"===e.type)e.fn(...o,(e,t)=>{e?(c=n.length,l(e)):(c+=1,void 0!==t?p(t):c===n.length?i():h())});else{let t,s=!1;try{t=e.fn(...o)}catch(e){s=!0,c=n.length,l(e)}s||(c+=1,void 0!==t?p(t):c===n.length?i():h())}if(c===n.length)return};h()}}class f extends a{callAsyncStageRange(e,...t){let{stageRange:[s],tapsInRange:n}=e,r=t.slice(0,t.length-1),a=t[t.length-1],o=this._prepareArgs(r);-1/0===s&&this._runCallInterceptors(...o);let i=e=>{this._runResultInterceptors(e),a(null,e)},l=e=>{this._runErrorInterceptors(e),a(e)};if(0===n.length)return i(o[0]);let p=0,c=()=>{let e=n[p];if(this._runTapInterceptors(e),"promise"===e.type){let t=e.fn(...o);if(!t||!t.then)throw Error(`Tap function (tapPromise) did not return promise (returned ${t})`);t.then(e=>{p+=1,void 0!==e&&(o[0]=e),p===n.length?i(o[0]):c()},e=>{p=n.length,l(e)})}else if("async"===e.type)e.fn(...o,(e,t)=>{e?(p=n.length,l(e)):(p+=1,void 0!==t&&(o[0]=t),p===n.length?i(o[0]):c())});else{let t=!1;try{let t=e.fn(...o);void 0!==t&&(o[0]=t)}catch(e){t=!0,p=n.length,l(e)}t||((p+=1)===n.length?i(o[0]):c())}if(p===n.length)return};c()}constructor(e=[],t){if(e.length<1)throw Error("Waterfall hooks must have at least one argument");super(e,t)}}let d=(e,t)=>t;class m{get(e){return this._map.get(e)}for(e){let t=this.get(e);if(void 0!==t)return t;let s=this._factory(e),n=this._interceptors;for(let t=0;t<n.length;t++){let r=n[t].factory;r&&(s=r(e,s))}return this._map.set(e,s),s}intercept(e){this._interceptors.push(Object.assign({factory:d},e))}isUsed(){for(let e of this._map.keys()){let t=this.get(e);if(t?.isUsed())return!0}return!1}queryStageRange(e){return new y(e,this)}constructor(e,t){r(this,"_map",new Map),r(this,"_factory",void 0),r(this,"name",void 0),r(this,"_interceptors",void 0),this.name=t,this._factory=e,this._interceptors=[]}}class y{get(e){return this.hookMap.get(e)?.queryStageRange(this.stageRange)}for(e){return this.hookMap.for(e).queryStageRange(this.stageRange)}isUsed(){for(let e of this.hookMap._map.keys())if(this.get(e)?.isUsed())return!0;return!1}constructor(e,t){r(this,"stageRange",void 0),r(this,"hookMap",void 0),this.stageRange=e,this.hookMap=t}}class k{tap(e,t){for(let s of this.hooks)s.tap(e,t)}tapAsync(e,t){for(let s of this.hooks)s.tapAsync(e,t)}tapPromise(e,t){for(let s of this.hooks)s.tapPromise(e,t)}isUsed(){for(let e of this.hooks)if(e.isUsed())return!0;return!1}intercept(e){for(let t of this.hooks)t.intercept(e)}withOptions(e){return new k(this.hooks.map(t=>t.withOptions(e)),this.name)}constructor(e,t){r(this,"hooks",void 0),r(this,"name",void 0),this.hooks=e,this.name=t}}for(var S in s.d(n,{AsyncParallelHook:()=>h,AsyncSeriesBailHook:()=>g,AsyncSeriesHook:()=>u,AsyncSeriesWaterfallHook:()=>f,HookBase:()=>a,HookMap:()=>m,MultiHook:()=>k,QueriedHook:()=>i,QueriedHookMap:()=>y,SyncBailHook:()=>p,SyncHook:()=>l,SyncWaterfallHook:()=>c},{maxStage:1/0,minStage:-1/0,safeStage:e=>e<-0x80000000?-0x80000000:e>0x7fffffff?0x7fffffff:e}),t.AsyncParallelHook=n.AsyncParallelHook,t.AsyncSeriesBailHook=n.AsyncSeriesBailHook,t.AsyncSeriesHook=n.AsyncSeriesHook,t.AsyncSeriesWaterfallHook=n.AsyncSeriesWaterfallHook,t.HookBase=n.HookBase,t.HookMap=n.HookMap,t.MultiHook=n.MultiHook,t.QueriedHook=n.QueriedHook,t.QueriedHookMap=n.QueriedHookMap,t.SyncBailHook=n.SyncBailHook,t.SyncHook=n.SyncHook,t.SyncWaterfallHook=n.SyncWaterfallHook,t.maxStage=n.maxStage,t.minStage=n.minStage,t.safeStage=n.safeStage,n)-1===["AsyncParallelHook","AsyncSeriesBailHook","AsyncSeriesHook","AsyncSeriesWaterfallHook","HookBase","HookMap","MultiHook","QueriedHook","QueriedHookMap","SyncBailHook","SyncHook","SyncWaterfallHook","maxStage","minStage","safeStage"].indexOf(S)&&(t[S]=n[S]);Object.defineProperty(t,"__esModule",{value:!0})}});var s=e("../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/rspack-manifest-plugin/5.2.2/0e24beaf1b234a114f5305075e91a7e73b51041985d9a6da39afa17869758a5c/node_modules/rspack-manifest-plugin/dist/index.js").RspackManifestPlugin;export{s as RspackManifestPlugin};