UNPKG

@shopify/cli

Version:

A CLI tool to build for the Shopify platform

15 lines (14 loc) • 48.3 kB
import{a as Eu,c as p,d as ne,e as pu,g as n}from"./chunk-VPRTJUIN.js";var Lu=p((Nr,uu)=>{n();uu.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&uu.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&uu.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Wu=p((_r,$)=>{n();var a=global.process,S=function(u){return u&&typeof u=="object"&&typeof u.removeListener=="function"&&typeof u.emit=="function"&&typeof u.reallyExit=="function"&&typeof u.listeners=="function"&&typeof u.kill=="function"&&typeof u.pid=="number"&&typeof u.on=="function"};S(a)?(ju=Eu("assert"),I=Lu(),Mu=/^win/i.test(a.platform),Y=Eu("events"),typeof Y!="function"&&(Y=Y.EventEmitter),a.__signal_exit_emitter__?d=a.__signal_exit_emitter__:(d=a.__signal_exit_emitter__=new Y,d.count=0,d.emitted={}),d.infinite||(d.setMaxListeners(1/0),d.infinite=!0),$.exports=function(u,D){if(!S(global.process))return function(){};ju.equal(typeof u,"function","a callback must be provided for exit handler"),_===!1&&du();var e="exit";D&&D.alwaysLast&&(e="afterexit");var t=function(){d.removeListener(e,u),d.listeners("exit").length===0&&d.listeners("afterexit").length===0&&Du()};return d.on(e,u),t},Du=function(){!_||!S(global.process)||(_=!1,I.forEach(function(D){try{a.removeListener(D,eu[D])}catch{}}),a.emit=tu,a.reallyExit=Bu,d.count-=1)},$.exports.unload=Du,v=function(D,e,t){d.emitted[D]||(d.emitted[D]=!0,d.emit(D,e,t))},eu={},I.forEach(function(u){eu[u]=function(){if(S(global.process)){var e=a.listeners(u);e.length===d.count&&(Du(),v("exit",null,u),v("afterexit",null,u),Mu&&u==="SIGHUP"&&(u="SIGINT"),a.kill(a.pid,u))}}}),$.exports.signals=function(){return I},_=!1,du=function(){_||!S(global.process)||(_=!0,d.count+=1,I=I.filter(function(D){try{return a.on(D,eu[D]),!0}catch{return!1}}),a.emit=Gu,a.reallyExit=ku)},$.exports.load=du,Bu=a.reallyExit,ku=function(D){S(global.process)&&(a.exitCode=D||0,v("exit",a.exitCode,null),v("afterexit",a.exitCode,null),Bu.call(a,a.exitCode))},tu=a.emit,Gu=function(D,e){if(D==="exit"&&S(global.process)){e!==void 0&&(a.exitCode=e);var t=tu.apply(this,arguments);return v("exit",a.exitCode,null),v("afterexit",a.exitCode,null),t}else return tu.apply(this,arguments)}):$.exports=function(){return function(){}};var ju,I,Mu,Y,d,Du,v,eu,_,du,Bu,ku,tu,Gu});var qu=p((Zr,Yu)=>{n();Yu.exports=()=>/[#*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-\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-\uDED8\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\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\uDD3C-\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-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\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\uDE70]|\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\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});var He=p((Lo,cD)=>{n();function Ke(u){var D=typeof u;return u!=null&&(D=="object"||D=="function")}cD.exports=Ke});var TD=p((fn,xD)=>{n();var Rt=typeof global=="object"&&global&&global.Object===Object&&global;xD.exports=Rt});var wD=p((pn,yD)=>{n();var Nt=TD(),It=typeof self=="object"&&self&&self.Object===Object&&self,_t=Nt||It||Function("return this")();yD.exports=_t});var vu=p((Bn,SD)=>{n();var $t=wD(),Lt=$t.Symbol;SD.exports=Lt});var ND=p((gn,RD)=>{n();var vD=vu(),OD=Object.prototype,jt=OD.hasOwnProperty,Mt=OD.toString,Z=vD?vD.toStringTag:void 0;function kt(u){var D=jt.call(u,Z),e=u[Z];try{u[Z]=void 0;var t=!0}catch{}var r=Mt.call(u);return t&&(D?u[Z]=e:delete u[Z]),r}RD.exports=kt});var _D=p((bn,ID)=>{n();var Gt=Object.prototype,Wt=Gt.toString;function Pt(u){return Wt.call(u)}ID.exports=Pt});var MD=p((xn,jD)=>{n();var $D=vu(),Ut=ND(),Vt=_D(),Yt="[object Null]",qt="[object Undefined]",LD=$D?$D.toStringTag:void 0;function Kt(u){return u==null?u===void 0?qt:Yt:LD&&LD in Object(u)?Ut(u):Vt(u)}jD.exports=Kt});var GD=p((yn,kD)=>{n();function Ht(u){return u!=null&&typeof u=="object"}kD.exports=Ht});var Zt=p((Sn,WD)=>{n();var zt=MD(),Jt=GD(),Xt="[object Symbol]";function Qt(u){return typeof u=="symbol"||Jt(u)&&zt(u)==Xt}WD.exports=Qt});var UD=p((On,Ou)=>{"use strict";n();var PD=(u,D)=>{for(let e of Reflect.ownKeys(D))Object.defineProperty(u,e,Object.getOwnPropertyDescriptor(D,e));return u};Ou.exports=PD;Ou.exports.default=PD});var YD=p((Nn,Cu)=>{"use strict";n();var ur=UD(),cu=new WeakMap,VD=(u,D={})=>{if(typeof u!="function")throw new TypeError("Expected a function");let e,t=0,r=u.displayName||u.name||"<anonymous>",o=function(...F){if(cu.set(o,++t),t===1)e=u.apply(this,F),u=null;else if(D.throw===!0)throw new Error(`Function \`${r}\` can only be called once`);return e};return ur(o,u),cu.set(o,t),o};Cu.exports=VD;Cu.exports.default=VD;Cu.exports.callCount=u=>{if(!cu.has(u))throw new Error(`The given function \`${u.name}\` is not wrapped by the \`onetime\` package`);return cu.get(u)}});var XD=p((Xn,fr)=>{fr.exports={single:{topLeft:"\u250C",top:"\u2500",topRight:"\u2510",right:"\u2502",bottomRight:"\u2518",bottom:"\u2500",bottomLeft:"\u2514",left:"\u2502"},double:{topLeft:"\u2554",top:"\u2550",topRight:"\u2557",right:"\u2551",bottomRight:"\u255D",bottom:"\u2550",bottomLeft:"\u255A",left:"\u2551"},round:{topLeft:"\u256D",top:"\u2500",topRight:"\u256E",right:"\u2502",bottomRight:"\u256F",bottom:"\u2500",bottomLeft:"\u2570",left:"\u2502"},bold:{topLeft:"\u250F",top:"\u2501",topRight:"\u2513",right:"\u2503",bottomRight:"\u251B",bottom:"\u2501",bottomLeft:"\u2517",left:"\u2503"},singleDouble:{topLeft:"\u2553",top:"\u2500",topRight:"\u2556",right:"\u2551",bottomRight:"\u255C",bottom:"\u2500",bottomLeft:"\u2559",left:"\u2551"},doubleSingle:{topLeft:"\u2552",top:"\u2550",topRight:"\u2555",right:"\u2502",bottomRight:"\u255B",bottom:"\u2550",bottomLeft:"\u2558",left:"\u2502"},classic:{topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},arrow:{topLeft:"\u2198",top:"\u2193",topRight:"\u2199",right:"\u2190",bottomRight:"\u2196",bottom:"\u2191",bottomLeft:"\u2197",left:"\u2192"}}});var Er=p((Qn,_u)=>{"use strict";n();var QD=XD();_u.exports=QD;_u.exports.default=QD});var ue=p((uF,ZD)=>{"use strict";n();var pr=/[|\\{}()[\]^$+*?.-]/g;ZD.exports=u=>{if(typeof u!="string")throw new TypeError("Expected a string");return u.replace(pr,"\\$&")}});var br=p((eF,te)=>{"use strict";n();var dr=ue(),Br=typeof process=="object"&&process&&typeof process.cwd=="function"?process.cwd():".",ee=[].concat(Eu("module").builtinModules,"bootstrap_node","node").map(u=>new RegExp(`(?:\\((?:node:)?${u}(?:\\.js)?:\\d+:\\d+\\)$|^\\s*at (?:node:)?${u}(?:\\.js)?:\\d+:\\d+$)`));ee.push(/\((?:node:)?internal\/[^:]+:\d+:\d+\)$/,/\s*at (?:node:)?internal\/[^:]+:\d+:\d+$/,/\/\.node-spawn-wrap-\w+-\w+\/node:\d+:\d+\)?$/);var $u=class u{constructor(D){D={ignoredPackages:[],...D},"internals"in D||(D.internals=u.nodeInternals()),"cwd"in D||(D.cwd=Br),this._cwd=D.cwd.replace(/\\/g,"/"),this._internals=[].concat(D.internals,hr(D.ignoredPackages)),this._wrapCallSite=D.wrapCallSite||!1}static nodeInternals(){return[...ee]}clean(D,e=0){e=" ".repeat(e),Array.isArray(D)||(D=D.split(` `)),!/^\s*at /.test(D[0])&&/^\s*at /.test(D[1])&&(D=D.slice(1));let t=!1,r=null,o=[];return D.forEach(F=>{if(F=F.replace(/\\/g,"/"),this._internals.some(l=>l.test(F)))return;let i=/^\s*at /.test(F);t?F=F.trimEnd().replace(/^(\s+)at /,"$1"):(F=F.trim(),i&&(F=F.slice(3))),F=F.replace(`${this._cwd}/`,""),F&&(i?(r&&(o.push(r),r=null),o.push(F)):(t=!0,r=F))}),o.map(F=>`${e}${F} `).join("")}captureString(D,e=this.captureString){typeof D=="function"&&(e=D,D=1/0);let{stackTraceLimit:t}=Error;D&&(Error.stackTraceLimit=D);let r={};Error.captureStackTrace(r,e);let{stack:o}=r;return Error.stackTraceLimit=t,this.clean(o)}capture(D,e=this.capture){typeof D=="function"&&(e=D,D=1/0);let{prepareStackTrace:t,stackTraceLimit:r}=Error;Error.prepareStackTrace=(i,l)=>this._wrapCallSite?l.map(this._wrapCallSite):l,D&&(Error.stackTraceLimit=D);let o={};Error.captureStackTrace(o,e);let{stack:F}=o;return Object.assign(Error,{prepareStackTrace:t,stackTraceLimit:r}),F}at(D=this.at){let[e]=this.capture(1,D);if(!e)return{};let t={line:e.getLineNumber(),column:e.getColumnNumber()};De(t,e.getFileName(),this._cwd),e.isConstructor()&&Object.defineProperty(t,"constructor",{value:!0,configurable:!0}),e.isEval()&&(t.evalOrigin=e.getEvalOrigin()),e.isNative()&&(t.native=!0);let r;try{r=e.getTypeName()}catch{}r&&r!=="Object"&&r!=="[object Object]"&&(t.type=r);let o=e.getFunctionName();o&&(t.function=o);let F=e.getMethodName();return F&&o!==F&&(t.method=F),t}parseLine(D){let e=D&&D.match(gr);if(!e)return null;let t=e[1]==="new",r=e[2],o=e[3],F=e[4],i=Number(e[5]),l=Number(e[6]),E=e[7],N=e[8],g=e[9],A=e[10]==="native",h=e[11]===")",m,B={};if(N&&(B.line=Number(N)),g&&(B.column=Number(g)),h&&E){let y=0;for(let w=E.length-1;w>0;w--)if(E.charAt(w)===")")y++;else if(E.charAt(w)==="("&&E.charAt(w-1)===" "&&(y--,y===-1&&E.charAt(w-1)===" ")){let oe=E.slice(0,w-1);E=E.slice(w+1),r+=` (${oe}`;break}}if(r){let y=r.match(mr);y&&(r=y[1],m=y[2])}return De(B,E,this._cwd),t&&Object.defineProperty(B,"constructor",{value:!0,configurable:!0}),o&&(B.evalOrigin=o,B.evalLine=i,B.evalColumn=l,B.evalFile=F&&F.replace(/\\/g,"/")),A&&(B.native=!0),r&&(B.function=r),m&&r!==m&&(B.method=m),B}};function De(u,D,e){D&&(D=D.replace(/\\/g,"/"),D.startsWith(`${e}/`)&&(D=D.slice(e.length+1)),u.file=D)}function hr(u){if(u.length===0)return[];let D=u.map(e=>dr(e));return new RegExp(`[/\\\\]node_modules[/\\\\](?:${D.join("|")})[/\\\\][^:]+:\\d+:\\d+`)}var gr=new RegExp("^(?:\\s*at )?(?:(new) )?(?:(.*?) \\()?(?:eval at ([^ ]+) \\((.+?):(\\d+):(\\d+)\\), )?(?:(.+?):(\\d+):(\\d+)|(native))(\\)?)$"),mr=/^(.*?) \[as (.*?)\]$/;te.exports=$u});n();n();function U({onlyFirst:u=!1}={}){let r="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(r,u?void 0:"g")}var Fe=U();function V(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(Fe,"")}n();n();n();n();var ru=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],ou=[12288,12288,65281,65376,65504,65510],hu=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],gu=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],q=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141];n();var nu=(u,D)=>{let e=0,t=Math.floor(u.length/2)-1;for(;e<=t;){let r=Math.floor((e+t)/2),o=r*2;if(D<u[o])t=r-1;else if(D>u[o+1])e=r+1;else return!0}return!1};var ie=ru[0],se=ru.at(-1),le=ou[0],ae=ou.at(-1),Pr=hu[0],Ur=hu.at(-1),Vr=gu[0],Yr=gu.at(-1),ce=q[0],Ce=q.at(-1),Pu=19968,[fe,Ee]=pe(q);function pe(u){let D=u[0],e=u[1];for(let t=0;t<u.length;t+=2){let r=u[t],o=u[t+1];if(Pu>=r&&Pu<=o)return[r,o];o-r>e-D&&(D=r,e=o)}return[D,e]}var Uu=u=>u<ie||u>se?!1:nu(ru,u),K=u=>u<le||u>ae?!1:nu(ou,u);var H=u=>u>=fe&&u<=Ee?!0:u<ce||u>Ce?!1:nu(q,u);function de(u){if(!Number.isSafeInteger(u))throw new TypeError(`Expected a code point, got \`${typeof u}\`.`)}function Vu(u,{ambiguousAsWide:D=!1}={}){return de(u),K(u)||H(u)||D&&Uu(u)?2:1}var Ku=pu(qu(),1),Be=new Intl.Segmenter,he=/^\p{Default_Ignorable_Code_Point}$/u;function O(u,D={}){if(typeof u!="string"||u.length===0)return 0;let{ambiguousIsNarrow:e=!0,countAnsiEscapeCodes:t=!1}=D;if(t||(u=V(u)),u.length===0)return 0;let r=0,o={ambiguousAsWide:!e};for(let{segment:F}of Be.segment(u)){let i=F.codePointAt(0);if(!(i<=31||i>=127&&i<=159)&&!(i>=8203&&i<=8207||i===65279)&&!(i>=768&&i<=879||i>=6832&&i<=6911||i>=7616&&i<=7679||i>=8400&&i<=8447||i>=65056&&i<=65071)&&!(i>=55296&&i<=57343)&&!(i>=65024&&i<=65039)&&!he.test(F)){if((0,Ku.default)().test(F)){r+=2;continue}r+=Vu(i,o)}}return r}n();n();var Hu=(u=0)=>D=>`\x1B[${D+u}m`,zu=(u=0)=>D=>`\x1B[${38+u};5;${D}m`,Ju=(u=0)=>(D,e,t)=>`\x1B[${38+u};2;${D};${e};${t}m`,c={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},oo=Object.keys(c.modifier),ge=Object.keys(c.color),me=Object.keys(c.bgColor),no=[...ge,...me];function be(){let u=new Map;for(let[D,e]of Object.entries(c)){for(let[t,r]of Object.entries(e))c[t]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},e[t]=c[t],u.set(r[0],r[1]);Object.defineProperty(c,D,{value:e,enumerable:!1})}return Object.defineProperty(c,"codes",{value:u,enumerable:!1}),c.color.close="\x1B[39m",c.bgColor.close="\x1B[49m",c.color.ansi=Hu(),c.color.ansi256=zu(),c.color.ansi16m=Ju(),c.bgColor.ansi=Hu(10),c.bgColor.ansi256=zu(10),c.bgColor.ansi16m=Ju(10),Object.defineProperties(c,{rgbToAnsi256:{value(D,e,t){return D===e&&e===t?D<8?16:D>248?231:Math.round((D-8)/247*24)+232:16+36*Math.round(D/255*5)+6*Math.round(e/255*5)+Math.round(t/255*5)},enumerable:!1},hexToRgb:{value(D){let e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!e)return[0,0,0];let[t]=e;t.length===3&&(t=[...t].map(o=>o+o).join(""));let r=Number.parseInt(t,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:D=>c.rgbToAnsi256(...c.hexToRgb(D)),enumerable:!1},ansi256ToAnsi:{value(D){if(D<8)return 30+D;if(D<16)return 90+(D-8);let e,t,r;if(D>=232)e=((D-232)*10+8)/255,t=e,r=e;else{D-=16;let i=D%36;e=Math.floor(D/36)/5,t=Math.floor(i/6)/5,r=i%6/5}let o=Math.max(e,t,r)*2;if(o===0)return 30;let F=30+(Math.round(r)<<2|Math.round(t)<<1|Math.round(e));return o===2&&(F+=60),F},enumerable:!1},rgbToAnsi:{value:(D,e,t)=>c.ansi256ToAnsi(c.rgbToAnsi256(D,e,t)),enumerable:!1},hexToAnsi:{value:D=>c.ansi256ToAnsi(c.hexToAnsi256(D)),enumerable:!1}}),c}var Ae=be(),x=Ae;var iu=new Set(["\x1B","\x9B"]),xe=39,bu="\x07",Zu="[",Te="]",uD="m",Fu=`${Te}8;;`,Xu=u=>`${iu.values().next().value}${Zu}${u}${uD}`,Qu=u=>`${iu.values().next().value}${Fu}${u}${bu}`,ye=u=>u.split(" ").map(D=>O(D)),mu=(u,D,e)=>{let t=[...D],r=!1,o=!1,F=O(V(u.at(-1)));for(let[i,l]of t.entries()){let E=O(l);if(F+E<=e?u[u.length-1]+=l:(u.push(l),F=0),iu.has(l)&&(r=!0,o=t.slice(i+1,i+1+Fu.length).join("")===Fu),r){o?l===bu&&(r=!1,o=!1):l===uD&&(r=!1);continue}F+=E,F===e&&i<t.length-1&&(u.push(""),F=0)}!F&&u.at(-1).length>0&&u.length>1&&(u[u.length-2]+=u.pop())},we=u=>{let D=u.split(" "),e=D.length;for(;e>0&&!(O(D[e-1])>0);)e--;return e===D.length?u:D.slice(0,e).join(" ")+D.slice(e).join("")},Se=(u,D,e={})=>{if(e.trim!==!1&&u.trim()==="")return"";let t="",r,o,F=ye(u),i=[""];for(let[g,A]of u.split(" ").entries()){e.trim!==!1&&(i[i.length-1]=i.at(-1).trimStart());let h=O(i.at(-1));if(g!==0&&(h>=D&&(e.wordWrap===!1||e.trim===!1)&&(i.push(""),h=0),(h>0||e.trim===!1)&&(i[i.length-1]+=" ",h++)),e.hard&&F[g]>D){let m=D-h,B=1+Math.floor((F[g]-m-1)/D);Math.floor((F[g]-1)/D)<B&&i.push(""),mu(i,A,D);continue}if(h+F[g]>D&&h>0&&F[g]>0){if(e.wordWrap===!1&&h<D){mu(i,A,D);continue}i.push("")}if(h+F[g]>D&&e.wordWrap===!1){mu(i,A,D);continue}i[i.length-1]+=A}e.trim!==!1&&(i=i.map(g=>we(g)));let l=i.join(` `),E=[...l],N=0;for(let[g,A]of E.entries()){if(t+=A,iu.has(A)){let{groups:m}=new RegExp(`(?:\\${Zu}(?<code>\\d+)m|\\${Fu}(?<uri>.*)${bu})`).exec(l.slice(N))||{groups:{}};if(m.code!==void 0){let B=Number.parseFloat(m.code);r=B===xe?void 0:B}else m.uri!==void 0&&(o=m.uri.length===0?void 0:m.uri)}let h=x.codes.get(Number(r));E[g+1]===` `?(o&&(t+=Qu("")),r&&h&&(t+=Xu(h))):A===` `&&(r&&h&&(t+=Xu(r)),o&&(t+=Qu(o))),N+=A.length}return t};function ve(u,D,e){return String(u).normalize().replaceAll(`\r `,` `).split(` `).map(t=>Se(t,D,e)).join(` `)}n();var Oe=U();function Re(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return!u.includes("\x1B")&&!u.includes("\x9B")?u:u.replace(Oe,"")}n();n();var DD=(u=0)=>D=>`\x1B[${D+u}m`,eD=(u=0)=>D=>`\x1B[${38+u};5;${D}m`,tD=(u=0)=>(D,e,t)=>`\x1B[${38+u};2;${D};${e};${t}m`,C={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},Bo=Object.keys(C.modifier),Ne=Object.keys(C.color),Ie=Object.keys(C.bgColor),ho=[...Ne,...Ie];function _e(){let u=new Map;for(let[D,e]of Object.entries(C)){for(let[t,r]of Object.entries(e))C[t]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},e[t]=C[t],u.set(r[0],r[1]);Object.defineProperty(C,D,{value:e,enumerable:!1})}return Object.defineProperty(C,"codes",{value:u,enumerable:!1}),C.color.close="\x1B[39m",C.bgColor.close="\x1B[49m",C.color.ansi=DD(),C.color.ansi256=eD(),C.color.ansi16m=tD(),C.bgColor.ansi=DD(10),C.bgColor.ansi256=eD(10),C.bgColor.ansi16m=tD(10),Object.defineProperties(C,{rgbToAnsi256:{value(D,e,t){return D===e&&e===t?D<8?16:D>248?231:Math.round((D-8)/247*24)+232:16+36*Math.round(D/255*5)+6*Math.round(e/255*5)+Math.round(t/255*5)},enumerable:!1},hexToRgb:{value(D){let e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!e)return[0,0,0];let[t]=e;t.length===3&&(t=[...t].map(o=>o+o).join(""));let r=Number.parseInt(t,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:D=>C.rgbToAnsi256(...C.hexToRgb(D)),enumerable:!1},ansi256ToAnsi:{value(D){if(D<8)return 30+D;if(D<16)return 90+(D-8);let e,t,r;if(D>=232)e=((D-232)*10+8)/255,t=e,r=e;else{D-=16;let i=D%36;e=Math.floor(D/36)/5,t=Math.floor(i/6)/5,r=i%6/5}let o=Math.max(e,t,r)*2;if(o===0)return 30;let F=30+(Math.round(r)<<2|Math.round(t)<<1|Math.round(e));return o===2&&(F+=60),F},enumerable:!1},rgbToAnsi:{value:(D,e,t)=>C.ansi256ToAnsi(C.rgbToAnsi256(D,e,t)),enumerable:!1},hexToAnsi:{value:D=>C.ansi256ToAnsi(C.hexToAnsi256(D)),enumerable:!1}}),C}var $e=_e(),T=$e;n();import Au from"node:process";import Le from"node:os";import rD from"node:tty";function b(u,D=globalThis.Deno?globalThis.Deno.args:Au.argv){let e=u.startsWith("-")?"":u.length===1?"-":"--",t=D.indexOf(e+u),r=D.indexOf("--");return t!==-1&&(r===-1||t<r)}var{env:f}=Au,su;b("no-color")||b("no-colors")||b("color=false")||b("color=never")?su=0:(b("color")||b("colors")||b("color=true")||b("color=always"))&&(su=1);function je(){if("FORCE_COLOR"in f)return f.FORCE_COLOR==="true"?1:f.FORCE_COLOR==="false"?0:f.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(f.FORCE_COLOR,10),3)}function Me(u){return u===0?!1:{level:u,hasBasic:!0,has256:u>=2,has16m:u>=3}}function ke(u,{streamIsTTY:D,sniffFlags:e=!0}={}){let t=je();t!==void 0&&(su=t);let r=e?su:t;if(r===0)return 0;if(e){if(b("color=16m")||b("color=full")||b("color=truecolor"))return 3;if(b("color=256"))return 2}if("TF_BUILD"in f&&"AGENT_NAME"in f)return 1;if(u&&!D&&r===void 0)return 0;let o=r||0;if(f.TERM==="dumb")return o;if(Au.platform==="win32"){let F=Le.release().split(".");return Number(F[0])>=10&&Number(F[2])>=10586?Number(F[2])>=14931?3:2:1}if("CI"in f)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(F=>F in f)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(F=>F in f)||f.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in f)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(f.TEAMCITY_VERSION)?1:0;if(f.COLORTERM==="truecolor"||f.TERM==="xterm-kitty"||f.TERM==="xterm-ghostty"||f.TERM==="wezterm")return 3;if("TERM_PROGRAM"in f){let F=Number.parseInt((f.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(f.TERM_PROGRAM){case"iTerm.app":return F>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(f.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(f.TERM)||"COLORTERM"in f?1:o}function oD(u,D={}){let e=ke(u,{streamIsTTY:u&&u.isTTY,...D});return Me(e)}var Ge={stdout:oD({isTTY:rD.isatty(1)}),stderr:oD({isTTY:rD.isatty(2)})},nD=Ge;n();function FD(u,D,e){let t=u.indexOf(D);if(t===-1)return u;let r=D.length,o=0,F="";do F+=u.slice(o,t)+D+e,o=t+r,t=u.indexOf(D,o);while(t!==-1);return F+=u.slice(o),F}function iD(u,D,e,t){let r=0,o="";do{let F=u[t-1]==="\r";o+=u.slice(r,F?t-1:t)+D+(F?`\r `:` `)+e,r=t+1,t=u.indexOf(` `,r)}while(t!==-1);return o+=u.slice(r),o}var{stdout:sD,stderr:lD}=nD,xu=Symbol("GENERATOR"),L=Symbol("STYLER"),z=Symbol("IS_EMPTY"),aD=["ansi","ansi","ansi256","ansi16m"],j=Object.create(null),We=(u,D={})=>{if(D.level&&!(Number.isInteger(D.level)&&D.level>=0&&D.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let e=sD?sD.level:0;u.level=D.level===void 0?e:D.level};var Pe=u=>{let D=(...e)=>e.join(" ");return We(D,u),Object.setPrototypeOf(D,J.prototype),D};function J(u){return Pe(u)}Object.setPrototypeOf(J.prototype,Function.prototype);for(let[u,D]of Object.entries(T))j[u]={get(){let e=lu(this,yu(D.open,D.close,this[L]),this[z]);return Object.defineProperty(this,u,{value:e}),e}};j.visible={get(){let u=lu(this,this[L],!0);return Object.defineProperty(this,"visible",{value:u}),u}};var Tu=(u,D,e,...t)=>u==="rgb"?D==="ansi16m"?T[e].ansi16m(...t):D==="ansi256"?T[e].ansi256(T.rgbToAnsi256(...t)):T[e].ansi(T.rgbToAnsi(...t)):u==="hex"?Tu("rgb",D,e,...T.hexToRgb(...t)):T[e][u](...t),Ue=["rgb","hex","ansi256"];for(let u of Ue){j[u]={get(){let{level:e}=this;return function(...t){let r=yu(Tu(u,aD[e],"color",...t),T.color.close,this[L]);return lu(this,r,this[z])}}};let D="bg"+u[0].toUpperCase()+u.slice(1);j[D]={get(){let{level:e}=this;return function(...t){let r=yu(Tu(u,aD[e],"bgColor",...t),T.bgColor.close,this[L]);return lu(this,r,this[z])}}}}var Ve=Object.defineProperties(()=>{},{...j,level:{enumerable:!0,get(){return this[xu].level},set(u){this[xu].level=u}}}),yu=(u,D,e)=>{let t,r;return e===void 0?(t=u,r=D):(t=e.openAll+u,r=D+e.closeAll),{open:u,close:D,openAll:t,closeAll:r,parent:e}},lu=(u,D,e)=>{let t=(...r)=>Ye(t,r.length===1?""+r[0]:r.join(" "));return Object.setPrototypeOf(t,Ve),t[xu]=u,t[L]=D,t[z]=e,t},Ye=(u,D)=>{if(u.level<=0||!D)return u[z]?"":D;let e=u[L];if(e===void 0)return D;let{openAll:t,closeAll:r}=e;if(D.includes("\x1B"))for(;e!==void 0;)D=FD(D,e.close,e.open),e=e.parent;let o=D.indexOf(` `);return o!==-1&&(D=iD(D,r,t,o)),t+D+r};Object.defineProperties(J.prototype,j);var qe=J(),No=J({level:lD?lD.level:0});var Io=qe;var mD={};ne(mD,{ConEmu:()=>gD,beep:()=>xt,beginSynchronizedOutput:()=>dD,clearScreen:()=>dt,clearTerminal:()=>gt,clearViewport:()=>Bt,cursorBackward:()=>et,cursorDown:()=>ut,cursorForward:()=>Dt,cursorGetPosition:()=>ot,cursorHide:()=>it,cursorLeft:()=>ED,cursorMove:()=>Ze,cursorNextLine:()=>nt,cursorPrevLine:()=>Ft,cursorRestorePosition:()=>rt,cursorSavePosition:()=>tt,cursorShow:()=>st,cursorTo:()=>Qe,cursorUp:()=>fD,endSynchronizedOutput:()=>BD,enterAlternativeScreen:()=>mt,eraseDown:()=>Ct,eraseEndLine:()=>at,eraseLine:()=>pD,eraseLines:()=>lt,eraseScreen:()=>au,eraseStartLine:()=>ct,eraseUp:()=>ft,exitAlternativeScreen:()=>bt,iTerm:()=>hD,image:()=>yt,link:()=>Tt,scrollDown:()=>pt,scrollUp:()=>Et,setCwd:()=>wt,synchronizedOutput:()=>At});n();import k from"node:process";import ze from"node:os";n();var M=globalThis.window?.document!==void 0,Mo=globalThis.process?.versions?.node!==void 0,ko=globalThis.process?.versions?.bun!==void 0,Go=globalThis.Deno?.version?.deno!==void 0,Wo=globalThis.process?.versions?.electron!==void 0,Po=globalThis.navigator?.userAgent?.includes("jsdom")===!0,Uo=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,Vo=typeof DedicatedWorkerGlobalScope<"u"&&globalThis instanceof DedicatedWorkerGlobalScope,Yo=typeof SharedWorkerGlobalScope<"u"&&globalThis instanceof SharedWorkerGlobalScope,qo=typeof ServiceWorkerGlobalScope<"u"&&globalThis instanceof ServiceWorkerGlobalScope,X=globalThis.navigator?.userAgentData?.platform,Ko=X==="macOS"||globalThis.navigator?.platform==="MacIntel"||globalThis.navigator?.userAgent?.includes(" Mac ")===!0||globalThis.process?.platform==="darwin",Ho=X==="Windows"||globalThis.navigator?.platform==="Win32"||globalThis.process?.platform==="win32",zo=X==="Linux"||globalThis.navigator?.platform?.startsWith("Linux")===!0||globalThis.navigator?.userAgent?.includes(" Linux ")===!0||globalThis.process?.platform==="linux",Jo=X==="iOS"||globalThis.navigator?.platform==="MacIntel"&&globalThis.navigator?.maxTouchPoints>1||/iPad|iPhone|iPod/.test(globalThis.navigator?.platform),Xo=X==="Android"||globalThis.navigator?.platform==="Android"||globalThis.navigator?.userAgent?.includes(" Android ")===!0||globalThis.process?.platform==="android";var s="\x1B[",G="\x1B]",R="\x07",Q=";",CD=!M&&k.env.TERM_PROGRAM==="Apple_Terminal",Je=!M&&k.platform==="win32",Xe=!M&&(k.env.TERM?.startsWith("screen")||k.env.TERM?.startsWith("tmux")||k.env.TMUX!==void 0),wu=M?()=>{throw new Error("`process.cwd()` only works in Node.js, not the browser.")}:k.cwd,W=u=>Xe?"\x1BPtmux;"+u.replaceAll("\x1B","\x1B\x1B")+"\x1B\\":u,Qe=(u,D)=>{if(typeof u!="number")throw new TypeError("The `x` argument is required");return typeof D!="number"?s+(u+1)+"G":s+(D+1)+Q+(u+1)+"H"},Ze=(u,D)=>{if(typeof u!="number")throw new TypeError("The `x` argument is required");let e="";return u<0?e+=s+-u+"D":u>0&&(e+=s+u+"C"),D<0?e+=s+-D+"A":D>0&&(e+=s+D+"B"),e},fD=(u=1)=>s+u+"A",ut=(u=1)=>s+u+"B",Dt=(u=1)=>s+u+"C",et=(u=1)=>s+u+"D",ED=s+"G",tt=CD?"\x1B7":s+"s",rt=CD?"\x1B8":s+"u",ot=s+"6n",nt=s+"E",Ft=s+"F",it=s+"?25l",st=s+"?25h",lt=u=>{let D="";for(let e=0;e<u;e++)D+=pD+(e<u-1?fD():"");return u&&(D+=ED),D},at=s+"K",ct=s+"1K",pD=s+"2K",Ct=s+"J",ft=s+"1J",au=s+"2J",Et=s+"S",pt=s+"T",dt="\x1Bc",Bt=`${au}${s}H`,ht=()=>{if(M||!Je)return!1;let u=ze.release().split("."),D=Number(u[0]),e=Number(u[2]??0);return D<10||D===10&&e<10586},gt=ht()?`${au}${s}0f`:`${au}${s}3J${s}H`,mt=s+"?1049h",bt=s+"?1049l",dD=s+"?2026h",BD=s+"?2026l",At=u=>dD+u+BD,xt=R,Tt=(u,D)=>{let e=W(`${G}8${Q}${Q}${D}${R}`),t=W(`${G}8${Q}${Q}${R}`);return e+u+t},yt=(u,D={})=>{let e=`${G}1337;File=inline=1`;D.width&&(e+=`;width=${D.width}`),D.height&&(e+=`;height=${D.height}`),D.preserveAspectRatio===!1&&(e+=";preserveAspectRatio=0");let t=Buffer.from(u);return W(e+`;size=${t.byteLength}:`+t.toString("base64")+R)},hD={setCwd:(u=wu())=>W(`${G}50;CurrentDir=${u}${R}`),annotation(u,D={}){let e=`${G}1337;`,t=D.x!==void 0,r=D.y!==void 0;if((t||r)&&!(t&&r&&D.length!==void 0))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return u=u.replaceAll("|",""),e+=D.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",D.length>0?e+=(t?[u,D.length,D.x,D.y]:[D.length,u]).join("|"):e+=u,W(e+R)}},gD={setCwd:(u=wu())=>W(`${G}9;9;${u}${R}`)},wt=(u=wu())=>hD.setCwd(u)+gD.setCwd(u);n();n();var St=u=>{let D=new Set;do for(let e of Reflect.ownKeys(u))D.add([u,e]);while((u=Reflect.getPrototypeOf(u))&&u!==Object.prototype);return D};function vt(u,{include:D,exclude:e}={}){let t=r=>{let o=F=>typeof F=="string"?r===F:F.test(r);return D?D.some(o):e?!e.some(o):!0};for(let[r,o]of St(u.constructor.prototype)){if(o==="constructor"||!t(o))continue;let F=Reflect.getOwnPropertyDescriptor(r,o);F&&typeof F.value=="function"&&(u[o]=u[o].bind(u))}return u}n();import{PassThrough as bD}from"node:stream";var AD=["assert","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],Su={},Ot=u=>{let D=new bD,e=new bD;D.write=r=>{u("stdout",r)},e.write=r=>{u("stderr",r)};let t=new console.Console(D,e);for(let r of AD)Su[r]=console[r],console[r]=t[r];return()=>{for(let r of AD)console[r]=Su[r];Su={}}},an=Ot;n();import zD from"node:process";n();var qD=pu(YD(),1),KD=pu(Wu(),1);import Dr from"node:process";var er=(0,qD.default)(()=>{(0,KD.default)(()=>{Dr.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),HD=er;var fu=!1,P={};P.show=(u=zD.stderr)=>{u.isTTY&&(fu=!1,u.write("\x1B[?25h"))};P.hide=(u=zD.stderr)=>{u.isTTY&&(HD(),fu=!0,u.write("\x1B[?25l"))};P.toggle=(u,D)=>{u!==void 0&&(fu=u),fu?P.show(D):P.hide(D)};var kn=P;n();function tr(u,D=1,e={}){let{indent:t=" ",includeEmptyLines:r=!1}=e;if(typeof u!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof u}\``);if(typeof D!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof D}\``);if(D<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${D}\``);if(typeof t!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof t}\``);if(D===0)return u;let o=r?/^/gm:/^(?!\s*$)/gm;return u.replace(o,t.repeat(D))}n();function Ru(u){return Number.isInteger(u)?K(u)||H(u):!1}n();var rr=new Set([27,155]),or="0".codePointAt(0),nr="9".codePointAt(0),Fr=19,Iu=new Set,Nu=new Map;for(let[u,D]of x.codes)Iu.add(x.color.ansi(D)),Nu.set(x.color.ansi(u),x.color.ansi(D));function ir(u){if(Iu.has(u))return u;if(Nu.has(u))return Nu.get(u);u=u.slice(2),u.includes(";")&&(u=u[0]+"0");let D=x.codes.get(Number.parseInt(u,10));return D?x.color.ansi(D):x.reset.open}function sr(u){for(let D=0;D<u.length;D++){let e=u.codePointAt(D);if(e>=or&&e<=nr)return D}return-1}function lr(u,D){u=u.slice(D,D+Fr);let e=sr(u);if(e!==-1){let t=u.indexOf("m",e);return t===-1&&(t=u.length),u.slice(0,t+1)}}function ar(u,D=Number.POSITIVE_INFINITY){let e=[],t=0,r=0;for(;t<u.length;){let o=u.codePointAt(t);if(rr.has(o)){let l=lr(u,t);if(l){e.push({type:"ansi",code:l,endCode:ir(l)}),t+=l.length;continue}}let F=Ru(o),i=String.fromCodePoint(o);if(e.push({type:"character",value:i,isFullWidth:F}),t+=i.length,r+=F?2:i.length,r>=D)break}return e}function JD(u){let D=[];for(let e of u)e.code===x.reset.open?D=[]:Iu.has(e.code)?D=D.filter(t=>t.endCode!==e.code):(D=D.filter(t=>t.endCode!==e.endCode),D.push(e));return D}function cr(u){return JD(u).map(({endCode:t})=>t).reverse().join("")}function Cr(u,D,e){let t=ar(u,e),r=[],o=0,F="",i=!1;for(let l of t){if(e!==void 0&&o>=e)break;l.type==="ansi"?(r.push(l),i&&(F+=l.code)):(!i&&o>=D&&(i=!0,r=JD(r),F=r.map(({code:E})=>E).join("")),i&&(F+=l.value),o+=l.isFullWidth?2:l.value.length)}return F+=cr(r),F}n();n();var Ar=(u,D=2)=>u.replace(/^\t+/gm,e=>" ".repeat(e.length*D)),re=Ar;var xr=(u,D)=>{let e=[],t=u-D,r=u+D;for(let o=t;o<=r;o++)e.push(o);return e},Tr=(u,D,e={})=>{var t;if(typeof u!="string")throw new TypeError("Source code is missing.");if(!D||D<1)throw new TypeError("Line number must start from `1`.");let r=re(u).split(/\r?\n/);if(!(D>r.length))return xr(D,(t=e.around)!==null&&t!==void 0?t:3).filter(o=>r[o-1]!==void 0).map(o=>({line:o,value:r[o-1]}))},FF=Tr;export{TD as a,wD as b,vu as c,MD as d,He as e,GD as f,Zt as g,mD as h,vt as i,Wu as j,an as k,V as l,Vu as m,O as n,x as o,ve as p,Re as q,Ru as r,Cr as s,tr as t,Er as u,Io as v,kn as w,br as x,FF as y};