`+Module.extraStackTrace()),demangleAll(i)}Module.stackTrace=stackTrace;var HEAP,buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateGlobalBufferViews(){Module.HEAP8=HEAP8=new Int8Array(buffer),Module.HEAP16=HEAP16=new Int16Array(buffer),Module.HEAP32=HEAP32=new Int32Array(buffer),Module.HEAPU8=HEAPU8=new Uint8Array(buffer),Module.HEAPU16=HEAPU16=new Uint16Array(buffer),Module.HEAPU32=HEAPU32=new Uint32Array(buffer),Module.HEAPF32=HEAPF32=new Float32Array(buffer),Module.HEAPF64=HEAPF64=new Float64Array(buffer)}var STATIC_BASE,STATICTOP,staticSealed,STACK_BASE,STACKTOP,STACK_MAX,DYNAMIC_BASE,DYNAMICTOP_PTR;STATIC_BASE=STATICTOP=STACK_BASE=STACKTOP=STACK_MAX=DYNAMIC_BASE=DYNAMICTOP_PTR=0,staticSealed=!1;function abortOnCannotGrowMemory(){abort("Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value "+TOTAL_MEMORY+", (2) compile with -s ALLOW_MEMORY_GROWTH=1 which allows increasing the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or (4) if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 ")}function enlargeMemory(){abortOnCannotGrowMemory()}var TOTAL_STACK=Module.TOTAL_STACK||5242880,TOTAL_MEMORY=Module.TOTAL_MEMORY||134217728;TOTAL_MEMORY<TOTAL_STACK&&Module.printErr("TOTAL_MEMORY should be larger than TOTAL_STACK, was "+TOTAL_MEMORY+"! (TOTAL_STACK="+TOTAL_STACK+")"),Module.buffer?buffer=Module.buffer:buffer=new ArrayBuffer(TOTAL_MEMORY),updateGlobalBufferViews();function getTotalMemory(){return TOTAL_MEMORY}if(HEAP32[0]=1668509029,HEAP16[1]=25459,HEAPU8[2]!==115||HEAPU8[3]!==99)throw"Runtime error: expected the system to be little-endian!";Module.HEAP=HEAP,Module.buffer=buffer,Module.HEAP8=HEAP8,Module.HEAP16=HEAP16,Module.HEAP32=HEAP32,Module.HEAPU8=HEAPU8,Module.HEAPU16=HEAPU16,Module.HEAPU32=HEAPU32,Module.HEAPF32=HEAPF32,Module.HEAPF64=HEAPF64;function callRuntimeCallbacks(i){for(;i.length>0;){var u=i.shift();if(typeof u=="function"){u();continue}var f=u.func;typeof f=="number"?u.arg===void 0?Module.dynCall_v(f):Module.dynCall_vi(f,u.arg):f(u.arg===void 0?null:u.arg)}}var __ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATEXIT__=[],__ATPOSTRUN__=[],runtimeInitialized=!1,runtimeExited=!1;function preRun(){if(Module.preRun)for(typeof Module.preRun=="function"&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function ensureInitRuntime(){runtimeInitialized||(runtimeInitialized=!0,callRuntimeCallbacks(__ATINIT__))}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function exitRuntime(){callRuntimeCallbacks(__ATEXIT__),runtimeExited=!0}function postRun(){if(Module.postRun)for(typeof Module.postRun=="function"&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(i){__ATPRERUN__.unshift(i)}Module.addOnPreRun=addOnPreRun;function addOnInit(i){__ATINIT__.unshift(i)}Module.addOnInit=addOnInit;function addOnPreMain(i){__ATMAIN__.unshift(i)}Module.addOnPreMain=addOnPreMain;function addOnExit(i){__ATEXIT__.unshift(i)}Module.addOnExit=addOnExit;function addOnPostRun(i){__ATPOSTRUN__.unshift(i)}Module.addOnPostRun=addOnPostRun;function intArrayFromString(i,u,f){var a=f>0?f:lengthBytesUTF8(i)+1,g=new Array(a),t=stringToUTF8Array(i,g,0,g.length);return u&&(g.length=t),g}Module.intArrayFromString=intArrayFromString;function intArrayToString(i){for(var u=[],f=0;f<i.length;f++){var a=i[f];a>255&&(a&=255),u.push(String.fromCharCode(a))}return u.join("")}Module.intArrayToString=intArrayToString;function writeStringToMemory(i,u,f){Runtime.warnOnce("writeStringToMemory is deprecated and should not be called! Use stringToUTF8() instead!");var a,g;f&&(g=u+lengthBytesUTF8(i),a=HEAP8[g]),stringToUTF8(i,u,Infinity),f&&(HEAP8[g]=a)}Module.writeStringToMemory=writeStringToMemory;function writeArrayToMemory(i,u){HEAP8.set(i,u)}Module.writeArrayToMemory=writeArrayToMemory;func
Ifthisabort()isunexpected,buildwith-sASSERTIONS=1whichcangivemoreinformation.`,f="abort("+i+") at "+stackTrace()+u;throw abortDecorators&&abortDecorators.forEach(function(a){f=a(f,i)}),f}if(Module.abort=Module.abort=abort,Module.preInit)for(typeof Module.preInit=="function"&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();var shouldRunNow=!0;Module.noInitialRun&&(shouldRunNow=!1),run()})});var vc=Z((dne,x5)=>{"use strict";var P$=C5(),M$=T5(),ow=!1,uw=null;M$({},function(i,u){if(!ow){if(ow=!0,i)throw i;uw=u}});if(!ow)throw new Error("Failed to load the yoga module - it needed to be loaded synchronously, but didn't");x5.exports=P$(uw.bind,uw.lib)});var A5=Z((pne,k5)=>{"use strict";k5.exports=({onlyFirst:i=!1}={})=>{let u=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(u,i?void 0:"g")}});var sw=Z((hne,O5)=>{"use strict";var F$=A5();O5.exports=i=>typeof i=="string"?i.replace(F$(),""):i});var fw=Z((vne,lw)=>{"use strict";var I5=i=>Number.isNaN(i)?!1:i>=4352&&(i<=4447||i===9001||i===9002||11904<=i&&i<=12871&&i!==12351||12880<=i&&i<=19903||19968<=i&&i<=42182||43360<=i&&i<=43388||44032<=i&&i<=55203||63744<=i&&i<=64255||65040<=i&&i<=65049||65072<=i&&i<=65131||65281<=i&&i<=65376||65504<=i&&i<=65510||110592<=i&&i<=110593||127488<=i&&i<=127569||131072<=i&&i<=262141);lw.exports=I5;lw.exports.default=I5});var M5=Z((mne,P5)=>{"use strict";P5.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[
`)),g.removeListener("error",bw),D.setSocket(g,t,this.options.maxPayload),this.clients&&(this.clients.add(D),D.on("close",()=>this.clients.delete(D))),x(D,a)}};ox.exports=ux;function CX(i,u){for(let f of Object.keys(u))i.on(f,u[f]);return function(){for(let a of Object.keys(u))i.removeListener(a,u[a])}}function TX(i){i.emit("close")}function bw(){this.destroy()}function uv(i,u,f,a){i.writable&&(f=f||qw[u],a=t0({Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(f)},a),i.write(`HTTP/1.1${u}${qw[u]}\r
`},function(i,u,f){"use strict";function a(k){var D=this;if(D instanceof a||(D=new a),D.tail=null,D.head=null,D.length=0,k&&typeof k.forEach=="function")k.forEach(function(b){D.push(b)});else if(arguments.length>0)for(var L=0,B=arguments.length;L<B;L++)D.push(arguments[L]);return D}function g(k,D,L){var B=D===k.head?new A(L,null,D,k):new A(L,D,D.next,k);return B.next===null&&(k.tail=B),B.prev===null&&(k.head=B),k.length++,B}function t(k,D){k.tail=new A(D,k.tail,null,k),k.head||(k.head=k.tail),k.length++}function x(k,D){k.head=new A(D,null,k.head,k),k.tail||(k.tail=k.head),k.length++}function A(k,D,L,B){if(!(this instanceof A))return new A(k,D,L,B);this.list=B,this.value=k,D?(D.next=this,this.prev=D):this.prev=null,L?(L.prev=this,this.next=L):this.next=null}i.exports=a,a.Node=A,a.create=a,a.prototype.removeNode=function(k){if(k.list!==this)throw new Error("removing node which does not belong to this list");var D=k.next,L=k.prev;return D&&(D.prev=L),L&&(L.next=D),k===this.head&&(this.head=D),k===this.tail&&(this.tail=L),k.list.length--,k.next=null,k.prev=null,k.list=null,D},a.prototype.unshiftNode=function(k){if(k!==this.head){k.list&&k.list.removeNode(k);var D=this.head;k.list=this,k.next=D,D&&(D.prev=k),this.head=k,this.tail||(this.tail=k),this.length++}},a.prototype.pushNode=function(k){if(k!==this.tail){k.list&&k.list.removeNode(k);var D=this.tail;k.list=this,k.prev=D,D&&(D.next=k),this.tail=k,this.head||(this.head=k),this.length++}},a.prototype.push=function(){for(var k=0,D=arguments.length;k<D;k++)t(this,arguments[k]);return this.length},a.prototype.unshift=function(){for(var k=0,D=arguments.length;k<D;k++)x(this,arguments[k]);return this.length},a.prototype.pop=function(){if(this.tail){var k=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,k}},a.prototype.shift=function(){if(this.head){var k=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,k}},a.prototype.forEach=function(k,D){D=D||this;for(var L=this.head,B=0;L!==null;B++)k.call(D,L.value,B,this),L=L.next},a.prototype.forEachReverse=function(k,D){D=D||this;for(var L=this.tail,B=this.length-1;L!==null;B--)k.call(D,L.value,B,this),L=L.prev},a.prototype.get=function(k){for(var D=0,L=this.head;L!==null&&D<k;D++)L=L.next;if(D===k&&L!==null)return L.value},a.prototype.getReverse=function(k){for(var D=0,L=this.tail;L!==null&&D<k;D++)L=L.prev;if(D===k&&L!==null)return L.value},a.prototype.map=function(k,D){D=D||this;for(var L=new a,B=this.head;B!==null;)L.push(k.call(D,B.value,this)),B=B.next;return L},a.prototype.mapReverse=function(k,D){D=D||this;for(var L=new a,B=this.tail;B!==null;)L.push(k.call(D,B.value,this)),B=B.prev;return L},a.prototype.reduce=function(k,D){var L,B=this.head;if(arguments.length>1)L=D;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");B=this.head.next,L=this.head.value}for(var b=0;B!==null;b++)L=k(L,B.value,b),B=B.next;return L},a.prototype.reduceReverse=function(k,D){var L,B=this.tail;if(arguments.length>1)L=D;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");B=this.tail.prev,L=this.tail.value}for(var b=this.length-1;B!==null;b--)L=k(L,B.value,b),B=B.prev;return L},a.prototype.toArray=function(){for(var k=new Array(this.length),D=0,L=this.head;L!==null;D++)k[D]=L.value,L=L.next;return k},a.prototype.toArrayReverse=function(){for(var k=new Array(this.length),D=0,L=this.tail;L!==null;D++)k[D]=L.value,L=L.prev;return k},a.prototype.slice=function(k,D){(D=D||this.length)<0&&(D+=this.length),(k=k||0)<0&&(k+=this.length);var L=new a;if(D<k||D<0)return L;k<0&&(k=0),D>this.length&&(D=this.length);for(var B=0,b=this.head;b!==null&&B<k;B++)b=b.next;for(;b!==null&&B<D;B++,b=b.next)L.push(b.value);return L},a.prototype.sliceReverse=function(k,D){(D=D||this.length)<0&&(D+=this.length),(k=k||0)<0&&(k+=this.length);var L=new a;if(D<k||D<0)return L;k<0&&(k=0),D>this.length&&(D=this.length);for(var B=this.length,b=this.tail;b!==null&&B>D;B--)b=b.prev;for(;b!==null&&B>k;B--,b=b.pre
`).filter(function($){return!!$.match(L)},this).map(function($){$.indexOf("(eval ")>-1&&($=$.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var v=$.replace(/^\s+/,"").replace(/\(eval code/g,"("),ve=v.match(/ (\((.+):(\d+):(\d+)\)$)/),he=(v=ve?v.replace(ve[0],""):v).split(/\s+/).slice(1),ue=this.extractLocation(ve?ve[1]:he.pop()),Se=he.join(" ")||void 0,ze=["eval","<anonymous>"].indexOf(ue[0])>-1?void 0:ue[0];return new k({functionName:Se,fileName:ze,lineNumber:ue[1],columnNumber:ue[2],source:$})},this)},parseFFOrSafari:function(b){return b.stack.split(`
`).filter(function($){return!$.match(B)},this).map(function($){if($.indexOf(" > eval")>-1&&($=$.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),$.indexOf("@")===-1&&$.indexOf(":")===-1)return new k({functionName:$});var v=/((.*".+"[^@]*)?[^@]*)(?:@)/,ve=$.match(v),he=ve&&ve[1]?ve[1]:void 0,ue=this.extractLocation($.replace(v,""));return new k({functionName:he,fileName:ue[0],lineNumber:ue[1],columnNumber:ue[2],source:$})},this)},parseOpera:function(b){return!b.stacktrace||b.message.indexOf(`
`).filter(function($){return!!$.match(D)&&!$.match(/^Error created at/)},this).map(function($){var v,ve=$.split("@"),he=this.extractLocation(ve.pop()),ue=ve.shift()||"",Se=ue.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;ue.match(/\(([^)]*)\)/)&&(v=ue.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var ze=v===void 0||v==="[arguments not available]"?void 0:v.split(",");return new k({functionName:Se,args:ze,fileName:he[0],lineNumber:he[1],columnNumber:he[2],source:$})},this)}}})=="function"?a.apply(u,g):a)===void 0||(i.exports=t)})()},function(i,u,f){var a,g,t;(function(x,A){"use strict";g=[],(t=typeof(a=function(){function k(Se){return Se.charAt(0).toUpperCase()+Se.substring(1)}function D(Se){return function(){return this[Se]}}var L=["isConstructor","isEval","isNative","isToplevel"],B=["columnNumber","lineNumber"],b=["fileName","functionName","source"],$=L.concat(B,b,["args"]);function v(Se){if(Se)for(var ze=0;ze<$.length;ze++)Se[$[ze]]!==void 0&&this["set"+k($[ze])](Se[$[ze]])}v.prototype={getArgs:function(){return this.args},setArgs:function(Se){if(Object.prototype.toString.call(Se)!=="[object Array]")throw new TypeError("Args must be an Array");this.args=Se},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(Se){if(Se instanceof v)this.evalOrigin=Se;else{if(!(Se instanceof Object))throw new TypeError("Eval Origin must be an Object or StackFrame");this.evalOrigin=new v(Se)}},toString:function(){var Se=this.getFileName()||"",ze=this.getLineNumber()||"",Te=this.getColumnNumber()||"",Me=this.getFunctionName()||"";return this.getIsEval()?Se?"[eval] ("+Se+":"+ze+":"+Te+")":"[eval]:"+ze+":"+Te:Me?Me+" ("+Se+":"+ze+":"+Te+")":Se+":"+ze+":"+Te}},v.fromString=function(Se){var ze=Se.indexOf("("),Te=Se.lastIndexOf(")"),Me=Se.substring(0,ze),ne=Se.substring(ze+1,Te).split(","),Ie=Se.substring(Te+1);if(Ie.indexOf("@")===0)var Ne=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(Ie,""),et=Ne[1],dt=Ne[2],ct=Ne[3];return new v({functionName:Me,args:ne||void 0,fileName:et,lineNumber:dt||void 0,columnNumber:ct||void 0})};for(var ve=0;ve<L.length;ve++)v.prototype["get"+k(L[ve])]=D(L[ve]),v.prototype["set"+k(L[ve])]=function(Se){return function(ze){this[Se]=Boolean(ze)}}(L[ve]);for(var he=0;he<B.length;he++)v.prototype["get"+k(B[he])]=D(B[he]),v.prototype["set"+k(B[he])]=function(Se){return function(ze){if(Te=ze,isNaN(parseFloat(Te))||!isFinite(Te))throw new TypeError(Se+" must be a Number");var Te;this[Se]=Number(ze)}}(B[he]);for(var ue=0;ue<b.length;ue++)v.prototype["get"+k(b[ue])]=D(b[ue]),v.prototype["set"+k(b[ue])]=function(Se){return function(ze){this[Se]=String(ze)}}(b[ue]);return v})=="function"?a.apply(u,g):a)===void 0||(i.exports=t)})()},function(i,u,f){"use strict";i.exports=f(19)},function(i,u,f){"use strict";function a(J){return(a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(xe){return typeof xe}:function(xe){return xe&&typeof Symbol=="function"&&xe.constructor===Symbol&&xe!==Symbol.prototype?"symbol":typeof xe})(J)}var g=f(1),t=60103,x=60106;u.Fragment=60107,u.StrictMode=60108,u.Profiler=60114;var A=60109,k=60110,D=60112;u.Suspense=60113,u.unstable_SuspenseList=60120;var L=60115,B=60116,b=60121;if(u.unstable_DebugTracingMode=60129,u.unstable_LegacyHidden=60131,typeof Symbol=="function"&&Symbol.for){var $=Symbol.for;t=$("react.element"),x=$("react.portal"),u.Fragment=$("react.fragment"),u.StrictMode=$("react.strict_mode"),u.Profiler=$("react.profiler"),A=$("react.provider"),k=$("react.context"),D=$("react.forward_ref"),u.Suspense=$("react.suspense"),u.unstable_SuspenseList=$("react.suspense_list"),L=$("react.memo"),B=$("react.lazy"),b=$("react.block"),u.unstable_DebugTracingMode=$("react.debug_trace_mode"),u.unstable_LegacyHidden=$("react.legacy_hidden")}var v=typeof Symbol=="function"&&Symbol.iterator;function ve(J){for(var xe="https://reactjs.org/docs/error-decoder.html?invariant="+J,ft=1;ft<arguments.length;ft++)xe+="&args[]="+encodeURIComponent(arguments[ft]);return"Minified React error #"+J+"; visit "+xe+" for the full message or use the non-minified dev environment f
Inordertobeiterable,non-arrayobjectsmusthavea[Symbol.iterator]()method.`)}var ie,ce=!0,z=!1;return{s:function(){j=F[Symbol.iterator]()},n:function(){var pe=j.next();return ce=pe.done,pe},e:function(pe){z=!0,ie=pe},f:function(){try{ce||j.return==null||j.return()}finally{if(z)throw ie}}}}function Pu(F,R){(R==null||R>F.length)&&(R=F.length);for(var j=0,W=new Array(R);j<R;j++)W[j]=F[j];return W}var nf=["error","trace","warn"],Ji=/\s{4}(in|at)\s{1}/,xs=/:\d+:\d+(\n|$)/,cl=new Map,Mu=console,q0={};for(var ks in console)q0[ks]=console[ks];var Ze=null;function Li(F){var R=F.currentDispatcherRef,j=F.getCurrentFiber,W=F.findFiberByHostInstance,le=F.version;if(typeof W=="function"&&R!=null&&typeof j=="function"){var ie=Cs(le).ReactTypeOfWork;cl.set(F,{currentDispatcherRef:R,getCurrentFiber:j,workTagMap:ie})}}var tu={appendComponentStack:!1,breakOnConsoleErrors:!1};function No(F){var R=F.appendComponentStack,j=F.breakOnConsoleErrors;if(tu.appendComponentStack=R,tu.breakOnConsoleErrors=j,Ze===null){var W={};Ze=function(){for(var le in W)try{Mu[le]=W[le]}catch(ie){}},nf.forEach(function(le){try{var ie=W[le]=Mu[le],ce=function(){for(var z=tu.appendComponentStack,pe=(tu.breakOnConsoleErrors,arguments.length),Oe=new Array(pe),We=0;We<pe;We++)Oe[We]=arguments[We];if(z)try{var K=Oe.length>0?Oe[Oe.length-1]:null,Ee=K!==null&&(Ji.test(K)||xs.test(K));if(!Ee){var Le,Ke=Iu(cl.values());try{for(Ke.s();!(Le=Ke.n()).done;){var rt=Le.value,ut=rt.currentDispatcherRef,Ct=rt.getCurrentFiber,_t=rt.workTagMap,st=Ct();if(st!=null){var It=fl(_t,st,ut);It!==""&&Oe.push(It);break}}}catch(pn){Ke.e(pn)}finally{Ke.f()}}}catch(pn){}ie.apply(void 0,Oe)};ce.__REACT_DEVTOOLS_ORIGINAL_METHOD__=ie,Mu[le]=ce}catch(z){}})}}function x0(F){return(x0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(F)}function al(F,R){for(var j=0;j<R.length;j++){var W=R[j];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(F,W.key,W)}}function dl(F,R){return(dl=Object.setPrototypeOf||function(j,W){return j.__proto__=W,j})(F,R)}function nu(F){var R=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(j){return!1}}();return function(){var j,W=mt(F);if(R){var le=mt(this).constructor;j=Reflect.construct(W,arguments,le)}else j=W.apply(this,arguments);return pl(this,j)}}function pl(F,R){return!R||x0(R)!=="object"&&typeof R!="function"?gn(F):R}function gn(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}function mt(F){return(mt=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)})(F)}function Xt(F,R,j){return R in F?Object.defineProperty(F,R,{value:j,enumerable:!0,configurable:!0,writable:!0}):F[R]=j,F}var k0=function(F){(function(ce,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");ce.prototype=Object.create(z&&z.prototype,{constructor:{value:ce,writable:!0,configurable:!0}}),z&&dl(ce,z)})(ie,F);var R,j,W,le=nu(ie);function ie(ce){var z;(function(K,Ee){if(!(K instanceof Ee))throw new TypeError("Cannot call a class as a function")})(this,ie),Xt(gn(z=le.call(this)),"_isProfiling",!1),Xt(gn(z),"_recordChangeDescriptions",!1),Xt(gn(z),"_rendererInterfaces",{}),Xt(gn(z),"_persistedSelection",null),Xt(gn(z),"_persistedSelectionMatch",null),Xt(gn(z),"_traceUpdatesEnabled",!1),Xt(gn(z),"copyElementPath",function(K){var Ee=K.id,Le=K.path,Ke=K.rendererID,rt=z._rendererInterfaces[Ke];rt==null?console.warn('Invalid renderer id "'.concat(Ke,'" for element "').concat(Ee,'"')):rt.copyElementPath(Ee,Le)}),Xt(gn(z),"deletePath",function(K){var Ee=K.hookID,Le=K.id,Ke=K.path,rt=K.rendererID,ut=K.type,Ct=z._rendererInterfaces[rt];Ct==null?console.warn('Invalid render
Inordertobeiterable,non-arrayobjectsmusthavea[Symbol.iterator]()method.`)}()}function Ni(F,R){(R==null||R>F.length)&&(R=F.length);for(var j=0,W=new Array(R);j<R;j++)W[j]=F[j];return W}function Ru(F,R){for(var j=0;j<R.length;j++){var W=R[j];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(F,W.key,W)}}function Lu(F,R){return(Lu=Object.setPrototypeOf||function(j,W){return j.__proto__=W,j})(F,R)}function As(F){var R=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(j){return!1}}();return function(){var j,W=Qi(F);if(R){var le=Qi(this).constructor;j=Reflect.construct(W,arguments,le)}else j=W.apply(this,arguments);return ii(this,j)}}function ii(F,R){return!R||ri(R)!=="object"&&typeof R!="function"?Qr(F):R}function Qr(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}function Qi(F){return(Qi=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)})(F)}function _0(F,R,j){return R in F?Object.defineProperty(F,R,{value:j,enumerable:!0,configurable:!0,writable:!0}):F[R]=j,F}var vo=function(F){(function(ce,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");ce.prototype=Object.create(z&&z.prototype,{constructor:{value:ce,writable:!0,configurable:!0}}),z&&Lu(ce,z)})(ie,F);var R,j,W,le=As(ie);function ie(ce){var z;return function(pe,Oe){if(!(pe instanceof Oe))throw new TypeError("Cannot call a class as a function")}(this,ie),_0(Qr(z=le.call(this)),"_isShutdown",!1),_0(Qr(z),"_messageQueue",[]),_0(Qr(z),"_timeoutID",null),_0(Qr(z),"_wallUnlisten",null),_0(Qr(z),"_flush",function(){if(z._timeoutID!==null&&(clearTimeout(z._timeoutID),z._timeoutID=null),z._messageQueue.length){for(var pe=0;pe<z._messageQueue.length;pe+=2){var Oe;(Oe=z._wall).send.apply(Oe,[z._messageQueue[pe]].concat(Fu(z._messageQueue[pe+1])))}z._messageQueue.length=0,z._timeoutID=setTimeout(z._flush,100)}}),_0(Qr(z),"overrideValueAtPath",function(pe){var Oe=pe.id,We=pe.path,K=pe.rendererID,Ee=pe.type,Le=pe.value;switch(Ee){case"context":z.send("overrideContext",{id:Oe,path:We,rendererID:K,wasForwarded:!0,value:Le});break;case"hooks":z.send("overrideHookState",{id:Oe,path:We,rendererID:K,wasForwarded:!0,value:Le});break;case"props":z.send("overrideProps",{id:Oe,path:We,rendererID:K,wasForwarded:!0,value:Le});break;case"state":z.send("overrideState",{id:Oe,path:We,rendererID:K,wasForwarded:!0,value:Le})}}),z._wall=ce,z._wallUnlisten=ce.listen(function(pe){Qr(z).emit(pe.event,pe.payload)})||null,z.addListener("overrideValueAtPath",z.overrideValueAtPath),z}return R=ie,(j=[{key:"send",value:function(ce){if(this._isShutdown)console.warn('Cannot send message "'.concat(ce,'" through a Bridge that has been shutdown.'));else{for(var z=arguments.length,pe=new Array(z>1?z-1:0),Oe=1;Oe<z;Oe++)pe[Oe-1]=arguments[Oe];this._messageQueue.push(ce,pe),this._timeoutID||(this._timeoutID=setTimeout(this._flush,0))}}},{key:"shutdown",value:function(){if(this._isShutdown)console.warn("Bridge was already shutdown.");else{this.send("shutdown"),this._isShutdown=!0,this.addListener=function(){},this.emit=function(){},this.removeAllListeners();var ce=this._wallUnlisten;ce&&ce();do this._flush();while(this._messageQueue.length);this._timeoutID!==null&&(clearTimeout(this._timeoutID),this._timeoutID=null)}}},{key:"wall",get:function(){return this._wall}}])&&Ru(R.prototype,j),W&&Ru(R,W),ie}(g);function r0(F,R,j){var W=F[R];return F[R]=function(le){return j.call(this,W,arguments)},W}function Os(F,R){for(var j in R)F[j]=R[j]}function c0(F){typeof F.forceUpdate=="function"?F.forceUpdate():F.updater!=null&&typeof F.updater.enqueueForceUpdate=="function"&&F.updater.enqueueForceUpdate(this,function(){},"forceUpdate")}function Nu(F,R){var j=Object.keys(F);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySym
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a","\x07"]]);function Lx(i){let u=i[0]==="u",f=i[1]==="{";return u&&!f&&i.length===5||i[0]==="x"&&i.length===3?String.fromCharCode(parseInt(i.slice(1),16)):u&&f?String.fromCodePoint(parseInt(i.slice(2,-1),16)):UX.get(i)||i}function qX(i,u){let f=[],a=u.trim().split(/\s*,\s*/g),g;for(let t of a){let x=Number(t);if(!Number.isNaN(x))f.push(x);else if(g=t.match(BX))f.push(g[2].replace(jX,(A,k,D)=>k?Lx(k):D));else throw new Error(`InvalidChalktemplatestyleargument:${t}(instyle'${i}')`)}return f}function bX(i){Rx.lastIndex=0;let u=[],f;for(;(f=Rx.exec(i))!==null;){let a=f[1];if(f[2]){let g=qX(a,f[2]);u.push([a].concat(g))}else u.push([a])}return u}function Nx(i,u){let f={};for(let g of u)for(let t of g.styles)f[t[0]]=g.inverse?null:t.slice(1);let a=i;for(let[g,t]of Object.entries(f))if(!!Array.isArray(t)){if(!(g in a))throw new Error(`UnknownChalkstyle:${g}`);a=t.length>0?a[g](...t):a[g]}return a}Fx.exports=(i,u)=>{let f=[],a=[],g=[];if(u.replace(NX,(t,x,A,k,D,L)=>{if(x)g.push(Lx(x));else if(k){let B=g.join("");g=[],a.push(f.length===0?B:Nx(i,f)(B)),f.push({inverse:A,styles:bX(k)})}else if(D){if(f.length===0)throw new Error("Found extraneous } in Chalk template literal");a.push(Nx(i,f)(g.join(""))),g=[],f.pop()}else g.push(L)}),a.push(g.join("")),f.length>0){let t=`Chalktemplateliteralismissing${f.length}closingbracket${f.length===1?"":"s"}(\`}\`)`;thrownewError(t)}returna.join("")}});varXw=Z((rre,jx)=>{"use strict";varG2=Qh(),{stdout:Vw,stderr:Yw}=Ix(),{stringReplaceAll:zX,stringEncaseCRLFWithFirstIndex:WX}=Mx(),{isArray:cv}=Array,Ux=["ansi","ansi","ansi256","ansi16m"],Ba=Object.create(null),HX=(i,u={})=>{if(u.level&&!(Number.isInteger(u.level)&&u.level>=0&&u.level<=3))thrownewError("The `level` option should be an integer from 0 to 3");letf=Vw?Vw.level:0;i.level=u.level===void0?f:u.level},qx=class{constructor(u){returnbx(u)}},bx=i=>{letu={};returnHX(u,i),u.template=(...f)=>zx(u.template,...f),Object.setPrototypeOf(u,av.prototype),Object.setPrototypeOf(u.template,u),u.template.constructor=()=>{thrownewError("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},u.template.Instance=qx,u.template};functionav(i){returnbx(i)}for(let[i,u]ofObject.entries(G2))Ba[i]={get(){letf=dv(this,$w(u.open,u.close,this._styler),this._isEmpty);returnObject.defineProperty(this,i,{value:f}),f}};Ba.visible={get(){leti=dv(this,this._styler,!0);returnObject.defineProperty(this,"visible",{value:i}),i}};varWx=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(letiofWx)Ba[i]={get(){let{level:u}=this;returnfunction(...f){leta=$w(G2.color[Ux[u]][i](...f),G2.color.close,this._styler);returndv(this,a,this._isEmpty)}}};for(letiofWx){letu="bg"+i[0].toUpperCase()+i.slice(1);Ba[u]={get(){let{level:f}=this;returnfunction(...a){letg=$w(G2.bgColor[Ux[f]][i](...a),G2.bgColor.close,this._styler);returndv(this,g,this._isEmpty)}}}}varGX=Object.defineProperties(()=>{},is(t0({},Ba),{level:{enumerable:!0,get(){returnthis._generator.level},set(i){this._generator.level=i}}})),$w=(i,u,f)=>{leta,g;returnf===void0?(a=i,g=u):(a=f.openAll+i,g=u+f.closeAll),{open:i,close:u,openAll:a,closeAll:g,parent:f}},dv=(i,u,f)=>{leta=(...g)=>cv(g[0])&&cv(g[0].raw)?Hx(a,zx(a,...g)):Hx(a,g.length===1?""+g[0]:g.join(" "));returnObject.setPrototypeOf(a,GX),a._generator=i,a._styler=u,a._isEmpty=f,a},Hx=(i,u)=>{if(i.level<=0||!u)returni._isEmpty?"":u;letf=i._styler;if(f===void0)returnu;let{openAll:a,closeAll:g}=f;if(u.indexOf("")!==-1)for(;f!==void0;)u=zX(u,f.close,f.open),f=f.parent;lett=u.indexOf(`
`.repeat(t)+QX.default(u,g)}return u},Yx=(i,u,f)=>{var a;let{offsetX:g=0,offsetY:t=0,transformers:x=[],skipStaticElements:A}=f;if(A&&i.internal_static)return;let{yogaNode:k}=i;if(k){if(k.getDisplay()===XX.default.DISPLAY_NONE)return;let D=g+k.getComputedLeft(),L=t+k.getComputedTop(),B=x;if(typeof i.internal_transform=="function"&&(B=[i.internal_transform,...x]),i.nodeName==="ink-text"){let b=tJ.default(i);if(b.length>0){let $=JX.default(b),v=eJ.default(k);if($>v){let ve=(a=i.style.textWrap)!==null&&a!==void 0?a:"wrap";b=ZX.default(b,v,ve)}b=rJ(i,b),u.write(D,L,b,{transformers:B})}return}if(i.nodeName==="ink-box"&&nJ.default(D,L,i,u),i.nodeName==="ink-root"||i.nodeName==="ink-box")for(let b of i.childNodes)Yx(b,u,{offsetX:D,offsetY:L,transformers:B,skipStaticElements:A})}};K2.default=Yx});var Xx=Z((sre,Kx)=>{"use strict";Kx.exports=i=>{i=Object.assign({onlyFirst:!1},i);let u=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(u,i.onlyFirst?void 0:"g")}});var Qx=Z((lre,Zw)=>{"use strict";var iJ=Xx(),Jx=i=>typeof i=="string"?i.replace(iJ(),""):i;Zw.exports=Jx;Zw.exports.default=Jx});var t7=Z((fre,Zx)=>{"use strict";var e7="[\uD800-\uDBFF][\uDC00-\uDFFF]";Zx.exports=i=>i&&i.exact?new RegExp(`^${e7}$`):new RegExp(e7,"g")});var r7=Z((cre,e3)=>{"use strict";var oJ=Qx(),uJ=t7(),n7=i=>oJ(i).replace(uJ()," ").length;e3.exports=n7;e3.exports.default=n7});var s7=Z(X2=>{"use strict";var i7=X2&&X2.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(X2,"__esModule",{value:!0});var o7=i7(yw()),sJ=i7(r7()),u7=class{constructor(u){this.writes=[];let{width:f,height:a}=u;this.width=f,this.height=a}write(u,f,a,g){let{transformers:t}=g;!a||this.writes.push({x:u,y:f,text:a,transformers:t})}get(){let u=[];for(let a=0;a<this.height;a++)u.push(" ".repeat(this.width));for(let a of this.writes){let{x:g,y:t,text:x,transformers:A}=a,k=x.split(`
`),D=0;for(let L of k){let B=u[t+D];if(!B)continue;let b=sJ.default(L);for(let $ of A)L=$(L);u[t+D]=o7.default(B,0,g)+L+o7.default(B,g+b),D++}}return{output:u.map(a=>a.trimRight()).join(`
Readabouthowtopreventthiserroronhttps://github.com/vadimdemedes/ink/#israwmodesupported`):new Error(`Raw mode is not supported on the stdin provided to Ink.
-`)}`);letk=newSet(Wn.miscUtils.mapAndFilter(t,$=>{letv=i.tryWorkspaceByFilePath($);returnv===null?Wn.miscUtils.mapAndFilter.skip:v}));if(A.length===0&&k.size===0&&!u)returnnull;letD=A.length===1?A[0]:vr.ppath.join(x,`${Wn.hashUtils.makeHash(Math.random().toString()).slice(0,8)}.yml`),L=vr.xfs.existsSync(D)?awaitvr.xfs.readFilePromise(D,"utf8"):"{}",B=(0,Hl.parseSyml)(L),b=newMap;for(let$ofB.declined||[]){letv=Wn.structUtils.parseIdent($),ve=i.getWorkspaceByIdent(v);b.set(ve,zr.DECLINE)}for(let[$,v]ofObject.entries(B.releases||{})){letve=Wn.structUtils.parseIdent($),he=i.getWorkspaceByIdent(ve);b.set(he,a2(v))}return{project:i,root:a,baseHash:g!==null?g.hash:null,baseTitle:g!==null?g.title:null,changedFiles:newSet(t),changedWorkspaces:k,releaseRoots:newSet([...k].filter($=>$.manifest.version!==null)),releases:b,asyncsaveAll(){let$={},v=[],ve=[];for(letheofi.workspaces){if(he.manifest.version===null)continue;letue=Wn.structUtils.stringifyIdent(he.locator),Se=b.get(he);Se===zr.DECLINE?v.push(ue):typeofSe!="undefined"?$[ue]=Se:k.has(he)&&ve.push(ue)}awaitvr.xfs.mkdirPromise(vr.ppath.dirname(D),{recursive:!0}),awaitvr.xfs.changeFilePromise(D,(0,Hl.stringifySyml)(newHl.stringifySyml.PreserveOrdering({releases:Object.keys($).length>0?$:void0,declined:v.length>0?v:void0,undecided:ve.length>0?ve:void0})))}}}functionKY(i){returnOh(i).size>0||p2(i).length>0}functionOh(i){letu=newSet;for(letfofi.changedWorkspaces)f.manifest.version!==null&&(i.releases.has(f)||u.add(f));returnu}functionp2(i,{include:u=newSet}={}){letf=[],a=newMap(Wn.miscUtils.mapAndFilter([...i.releases],([t,x])=>x===zr.DECLINE?Wn.miscUtils.mapAndFilter.skip:[t.anchoredLocator.locatorHash,t])),g=newMap(Wn.miscUtils.mapAndFilter([...i.releases],([t,x])=>x!==zr.DECLINE?Wn.miscUtils.mapAndFilter.skip:[t.anchoredLocator.locatorHash,t]));for(lettofi.project.workspaces)if(!(!u.has(t)&&(g.has(t.anchoredLocator.locatorHash)||a.has(t.anchoredLocator.locatorHash)))&&t.manifest.version!==null)for(letxofWn.Manifest.hardDependencies)for(letAoft.manifest.getForScope(x).values()){letk=i.project.tryWorkspaceByDescriptor(A);k!==null&&a.has(k.anchoredLocator.locatorHash)&&f.push([t,k])}returnf}functionxy(i,u){letf=Gl.default.clean(u);for(letaofObject.values(zr))if(a!==zr.UNDECIDED&&a!==zr.DECLINE&&Gl.default.inc(i,a)===f)returna;returnnull}functionAh(i,u){if(Gl.default.valid(u))returnu;if(i===null)thrownewLf.UsageError(`Cannot apply the release strategy "${u}" unless the workspace already has a valid version`);if(!Gl.default.valid(i))thrownewLf.UsageError(`Cannot apply the release strategy "${u}" on a non-semver version (${i})`);letf=Gl.default.inc(i,u);if(f===null)thrownewLf.UsageError(`Cannot apply the release strategy "${u}" on the specified version (${i})`);returnf}functionky(i,u,{report:f}){leta=newMap;for(letgofi.workspaces)for(lettofWn.Manifest.allDependencies)for(letxofg.manifest[t].values()){letA=i.tryWorkspaceByDescriptor(x);if(A===null||!u.has(A))continue;Wn.miscUtils.getArrayWithDefault(a,A).push([g,t,x.identHash])}for(let[g,t]ofu){letx=g.manifest.version;g.manifest.version=t,Gl.default.prerelease(t)===null?deleteg.manifest.raw.stableVersion:g.manifest.raw.stableVersion||(g.manifest.raw.stableVersion=x);letA=g.manifest.name!==null?Wn.structUtils.stringifyIdent(g.manifest.name):null;f.reportInfo(Wn.MessageName.UNNAMED,`${Wn.structUtils.prettyLocator(i.configuration,g.anchoredLocator)}: Bumped to ${t}`),f.reportJson({cwd:g.cwd,ident:A,oldVersion:x,newVersion:t});letk=a.get(g);if(typeofk!="undefined")for(let[D,L,B]ofk){letb=D.manifest[L].get(B);if(typeofb=="undefined")thrownewError("Assertion failed: The dependency should have existed");let$=b.range,v=!1;if($.startsWith(Wn.WorkspaceResolver.protocol)&&($=$.slice(Wn.WorkspaceResolver.protocol.length),v=!0,$===g.relativeCwd))continue;letve=$.match($Y);if(!ve){f.reportWarning(Wn.MessageName.UNNAMED,`Couldn't auto-upgrade range ${$} (in ${Wn.structUtils.prettyLocator(i.configuration,D.anchoredLocator)})`);continue}lethe=`${ve[1]}$
Notethatif\`--prerelease\` is set, the given prerelease identifier (by default \`rc.%d\`) will be used on all new versions and the version definitions will be kept as-is.
-\`--recursive\` to also apply the version bump on its dependencies
-\`--all\` to apply the version bump on all packages in the repository
Notethatthiscommandwillalsoupdatethe\`workspace:\` references across all your local workspaces, thus ensuring that they keep referring to the same workspaces even after the version bump.
`,examples:[["Apply the version change to the local workspace","yarn version apply"],["Apply the version change to all the workspaces in the local workspace","yarn version apply --all"]]});var ET=h2;var E3=ur(require("@yarnpkg/cli")),Jr=ur(require("@yarnpkg/core")),hs=ur(require("@yarnpkg/fslib"));var lk=ur(Ec()),Sc=ur(Cr()),fk=(0,Sc.memo)(({active:i})=>{let u=(0,Sc.useMemo)(()=>i?"\u25C9":"\u25EF",[i]),f=(0,Sc.useMemo)(()=>i?"green":"yellow",[i]);return Sc.default.createElement(lk.Text,{color:f},u)});var zf=ur(Ec()),Po=ur(Cr());var ck=ur(Ec()),Dv=ur(Cr());function qa({active:i},u,f){let{stdin:a}=(0,ck.useStdin)(),g=(0,Dv.useCallback)((t,x)=>u(t,x),f);(0,Dv.useEffect)(()=>{if(!(!i||!a))return a.on("keypress",g),()=>{a.off("keypress",g)}},[i,g,a])}var Cc;(function(f){f.BEFORE="before",f.AFTER="after"})(Cc||(Cc={}));var ak=function({active:i},u,f){qa({active:i},(a,g)=>{g.name==="tab"&&(g.shift?u(Cc.BEFORE):u(Cc.AFTER))},f)};var Ev=function(i,u,{active:f,minus:a,plus:g,set:t,loop:x=!0}){qa({active:f},(A,k)=>{let D=u.indexOf(i);switch(k.name){case a:{let L=D-1;if(x){t(u[(u.length+L)%u.length]);return}if(L<0)return;t(u[L])}break;case g:{let L=D+1;if(x){t(u[L%u.length]);return}if(L>=u.length)return;t(u[L])}break}},[u,i,g,t,x])};var w3=({active:i=!0,children:u=[],radius:f=10,size:a=1,loop:g=!0,onFocusRequest:t,willReachEnd:x})=>{let A=he=>{if(he.key===null)throw new Error("Expected all children to have a key");return he.key},k=Po.default.Children.map(u,he=>A(he)),D=k[0],[L,B]=(0,Po.useState)(D),b=k.indexOf(L);(0,Po.useEffect)(()=>{k.includes(L)||B(D)},[u]),(0,Po.useEffect)(()=>{x&&b>=k.length-2&&x()},[b]),ak({active:i&&!!t},he=>{t==null||t(he)},[t]),Ev(L,k,{active:i,minus:"up",plus:"down",set:B,loop:g});let $=b-f,v=b+f;v>k.length&&($-=v-k.length,v=k.length),$<0&&(v+=-$,$=0),v>=k.length&&(v=k.length-1);let ve=[];for(let he=$;he<=v;++he){let ue=k[he],Se=i&&ue===L;ve.push(Po.default.createElement(zf.Box,{key:ue,height:a},Po.default.createElement(zf.Box,{marginLeft:1,marginRight:1},Po.default.createElement(zf.Text,null,Se?Po.default.createElement(zf.Text,{color:"cyan",bold:!0},">"):" ")),Po.default.createElement(zf.Box,null,Po.default.cloneElement(u[he],{active:Se}))))}return Po.default.createElement(zf.Box,{flexDirection:"column",width:"100%"},ve)};var Sv=ur(Ec()),D3=ur(Cr());var dk=ur(Ec()),Zl=ur(Cr()),pk=ur(require("readline")),oZ=Zl.default.createContext(null),hk=({children:i})=>{let{stdin:u,setRawMode:f}=(0,dk.useStdin)();(0,Zl.useEffect)(()=>{f&&f(!0),u&&(0,pk.emitKeypressEvents)(u)},[u,f]);let[a,g]=(0,Zl.useState)(new Map),t=(0,Zl.useMemo)(()=>({getAll:()=>a,get:x=>a.get(x),set:(x,A)=>g(new Map([...a,[x,A]]))}),[a,g]);return Zl.default.createElement(oZ.Provider,{value:t,children:i})};async function vk(i,u){let f,a=t=>{let{exit:x}=(0,Sv.useApp)();qa({active:!0},(A,k)=>{k.name==="return"&&(f=t,x())},[x,t])},{waitUntilExit:g}=(0,Sv.render)(D3.default.createElement(hk,null,D3.default.createElement(i,is(t0({},u),{useSubmit:a}))));return await g(),f}var Wf=ur(require("clipanion")),yn=ur(Ec()),Ft=ur(Cr()),S3=ur(require("semver"));var pd=class extends Wf.Command{constructor(){super(...arguments);this.interactive=Wf.Option.Boolean("-i,--interactive",{description:"Open an interactive interface used to set version bumps"})}async execute(){return this.interactive?await this.executeInteractive():await this.executeStandard()}async executeInteractive(){let u=await Jr.Configuration.find(this.context.cwd,this.context.plugins),{project:f,workspace:a}=await Jr.Project.find(u,this.context.cwd);if(!a)throw new E3.WorkspaceRequiredError(f.cwd,this.context.cwd);await f.restoreInstallState();let g=await Ta(f);if(g===null||g.releaseRoots.size===0)return 0;if(g.root===null)throw new Wf.UsageError("This command can only be run on Git repositories");let t=()=>Ft.default.createElement(yn.Box,{flexDirection:"row",paddingBottom:1},Ft.default.createElement(yn.Box,{flexDirection:"column",width:60},Ft.default.createElement(yn.Box,null,Ft.default.createElement(yn.Text,null,"Press ",Ft.default.createElement(yn.Text,{bold:!0,color:"cyanBright"},"<up>"),"/"