codemod 0.13.9 → 0.13.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -3
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -860,7 +860,7 @@ See: https://github.com/isaacs/node-glob/issues/167`);return new hz(t,e).found}f
|
|
|
860
860
|
See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof hz))return new hz(t,e);if(Nbs(this,t,e),this.noprocess)return this;var n=this.minimatch.set.length;this.matches=new Array(n);for(var r=0;r<n;r++)this._process(this.minimatch.set[r],r,!1);this._finish()}hz.prototype._finish=function(){if(M3r.ok(this instanceof hz),this.realpath){var t=this;this.matches.forEach(function(e,n){var r=t.matches[n]=Object.create(null);for(var a in e)try{a=t._makeAbs(a);var c=kbs.realpathSync(a,t.realpathCache);r[c]=!0}catch(f){if(f.syscall==="stat")r[t._makeAbs(a)]=!0;else throw f}})}$ut.finish(this)};hz.prototype._process=function(t,e,n){M3r.ok(this instanceof hz);for(var r=0;typeof t[r]=="string";)r++;var a;switch(r){case t.length:this._processSimple(t.join("/"),e);return;case 0:a=null;break;default:a=t.slice(0,r).join("/");break}var c=t.slice(r),f;a===null?f=".":((MQt(a)||MQt(t.map(function(b){return typeof b=="string"?b:"[*]"}).join("/")))&&(!a||!MQt(a))&&(a="/"+a),f=a);var _=this._makeAbs(f);if(!Lbs(this,f)){var x=c[0]===O3r.GLOBSTAR;x?this._processGlobStar(a,f,_,c,e,n):this._processReaddir(a,f,_,c,e,n)}};hz.prototype._processReaddir=function(t,e,n,r,a,c){var f=this._readdir(n,c);if(f){for(var _=r[0],x=!!this.minimatch.negate,b=_._glob,T=this.dot||b.charAt(0)===".",k=[],R=0;R<f.length;R++){var O=f[R];if(O.charAt(0)!=="."||T){var j;x&&!t?j=!O.match(_):j=O.match(_),j&&k.push(O)}}var U=k.length;if(U!==0){if(r.length===1&&!this.mark&&!this.stat){this.matches[a]||(this.matches[a]=Object.create(null));for(var R=0;R<U;R++){var O=k[R];t&&(t.slice(-1)!=="/"?O=t+"/"+O:O=t+O),O.charAt(0)==="/"&&!this.nomount&&(O=u8n.join(this.root,O)),this._emitMatch(a,O)}return}r.shift();for(var R=0;R<U;R++){var O=k[R],K;t?K=[t,O]:K=[O],this._process(K.concat(r),a,c)}}}};hz.prototype._emitMatch=function(t,e){if(!Rbs(this,e)){var n=this._makeAbs(e);if(this.mark&&(e=this._mark(e)),this.absolute&&(e=n),!this.matches[t][e]){if(this.nodir){var r=this.cache[n];if(r==="DIR"||Array.isArray(r))return}this.matches[t][e]=!0,this.stat&&this._stat(e)}}};hz.prototype._readdirInGlobStar=function(t){if(this.follow)return this._readdir(t,!1);var e,n,r;try{n=this.fs.lstatSync(t)}catch(c){if(c.code==="ENOENT")return null}var a=n&&n.isSymbolicLink();return this.symlinks[t]=a,!a&&n&&!n.isDirectory()?this.cache[t]="FILE":e=this._readdir(t,!1),e};hz.prototype._readdir=function(t,e){var n;if(e&&!f8n(this.symlinks,t))return this._readdirInGlobStar(t);if(f8n(this.cache,t)){var r=this.cache[t];if(!r||r==="FILE")return null;if(Array.isArray(r))return r}try{return this._readdirEntries(t,this.fs.readdirSync(t))}catch(a){return this._readdirError(t,a),null}};hz.prototype._readdirEntries=function(t,e){if(!this.mark&&!this.stat)for(var n=0;n<e.length;n++){var r=e[n];t==="/"?r=t+r:r=t+"/"+r,this.cache[r]=!0}return this.cache[t]=e,e};hz.prototype._readdirError=function(t,e){switch(e.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(t);if(this.cache[n]="FILE",n===this.cwdAbs){var r=new Error(e.code+" invalid cwd "+this.cwd);throw r.path=this.cwd,r.code=e.code,r}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=!1;break;default:if(this.cache[this._makeAbs(t)]=!1,this.strict)throw e;this.silent||console.error("glob error",e);break}};hz.prototype._processGlobStar=function(t,e,n,r,a,c){var f=this._readdir(n,c);if(f){var _=r.slice(1),x=t?[t]:[],b=x.concat(_);this._process(b,a,!1);var T=f.length,k=this.symlinks[n];if(!(k&&c))for(var R=0;R<T;R++){var O=f[R];if(!(O.charAt(0)==="."&&!this.dot)){var j=x.concat(f[R],_);this._process(j,a,!0);var U=x.concat(f[R],r);this._process(U,a,!0)}}}};hz.prototype._processSimple=function(t,e){var n=this._stat(t);if(this.matches[e]||(this.matches[e]=Object.create(null)),!!n){if(t&&MQt(t)&&!this.nomount){var r=/[\/\\]$/.test(t);t.charAt(0)==="/"?t=u8n.join(this.root,t):(t=u8n.resolve(this.root,t),r&&(t+="/"))}process.platform==="win32"&&(t=t.replace(/\\/g,"/")),this._emitMatch(e,t)}};hz.prototype._stat=function(t){var e=this._makeAbs(t),n=t.slice(-1)==="/";if(t.length>this.maxLength)return!1;if(!this.stat&&f8n(this.cache,e)){var f=this.cache[e];if(Array.isArray(f)&&(f="DIR"),!n||f==="DIR")return f;if(n&&f==="FILE")return!1}var r,a=this.statCache[e];if(!a){var c;try{c=this.fs.lstatSync(e)}catch(_){if(_&&(_.code==="ENOENT"||_.code==="ENOTDIR"))return this.statCache[e]=!1,!1}if(c&&c.isSymbolicLink())try{a=this.fs.statSync(e)}catch{a=c}else a=c}this.statCache[e]=a;var f=!0;return a&&(f=a.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||f,n&&f==="FILE"?!1:f};hz.prototype._mark=function(t){return $ut.mark(this,t)};hz.prototype._makeAbs=function(t){return $ut.makeAbs(this,t)}});var p8n=Le((SVo,G3r)=>{G3r.exports=j3r;function j3r(t,e){if(t&&e)return j3r(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(r){n[r]=t[r]}),n;function n(){for(var r=new Array(arguments.length),a=0;a<r.length;a++)r[a]=arguments[a];var c=t.apply(this,r),f=r[r.length-1];return typeof c=="function"&&c!==f&&Object.keys(f).forEach(function(_){c[_]=f[_]}),c}}});var h8n=Le((TVo,m8n)=>{var U3r=p8n();m8n.exports=U3r(FQt);m8n.exports.strict=U3r(V3r);FQt.proto=FQt(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return FQt(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return V3r(this)},configurable:!0})});function FQt(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function V3r(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},n=t.name||"Function wrapped with `once`";return e.onceError=n+" shouldn't be called more than once",e.called=!1,e}});var q3r=Le((AVo,z3r)=>{var Obs=p8n(),bMt=Object.create(null),Mbs=h8n();z3r.exports=Obs(Fbs);function Fbs(t,e){return bMt[t]?(bMt[t].push(e),null):(bMt[t]=[e],Bbs(t))}function Bbs(t){return Mbs(function e(){var n=bMt[t],r=n.length,a=Wbs(arguments);try{for(var c=0;c<r;c++)n[c].apply(null,a)}finally{n.length>r?(n.splice(0,r),process.nextTick(function(){e.apply(null,a)})):delete bMt[t]}})}function Wbs(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r]=t[r];return n}});var d8n=Le((wVo,H3r)=>{H3r.exports=Xut;var jbs=n8n(),K3r=LQt(),CVo=K3r.Minimatch,Gbs=H7(),Ubs=require("events").EventEmitter,_8n=require("path"),g8n=require("assert"),EMt=OQt(),x8n=W3r(),Yut=c8n(),Vbs=Yut.setopts,y8n=Yut.ownProp,v8n=q3r(),DVo=require("util"),zbs=Yut.childrenIgnored,qbs=Yut.isIgnored,Kbs=h8n();function Xut(t,e,n){if(typeof e=="function"&&(n=e,e={}),e||(e={}),e.sync){if(n)throw new TypeError("callback provided to sync glob");return x8n(t,e)}return new ik(t,e,n)}Xut.sync=x8n;var Hbs=Xut.GlobSync=x8n.GlobSync;Xut.glob=Xut;function Jbs(t,e){if(e===null||typeof e!="object")return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t}Xut.hasMagic=function(t,e){var n=Jbs({},e);n.noprocess=!0;var r=new ik(t,n),a=r.minimatch.set;if(!t)return!1;if(a.length>1)return!0;for(var c=0;c<a[0].length;c++)if(typeof a[0][c]!="string")return!0;return!1};Xut.Glob=ik;Gbs(ik,Ubs);function ik(t,e,n){if(typeof e=="function"&&(n=e,e=null),e&&e.sync){if(n)throw new TypeError("callback provided to sync glob");return new Hbs(t,e)}if(!(this instanceof ik))return new ik(t,e,n);Vbs(this,t,e),this._didRealPath=!1;var r=this.minimatch.set.length;this.matches=new Array(r),typeof n=="function"&&(n=Kbs(n),this.on("error",n),this.on("end",function(x){n(null,x)}));var a=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(r===0)return _();for(var c=!0,f=0;f<r;f++)this._process(this.minimatch.set[f],f,!1,_);c=!1;function _(){--a._processing,a._processing<=0&&(c?process.nextTick(function(){a._finish()}):a._finish())}}ik.prototype._finish=function(){if(g8n(this instanceof ik),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();Yut.finish(this),this.emit("end",this.found)}};ik.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var t=this.matches.length;if(t===0)return this._finish();for(var e=this,n=0;n<this.matches.length;n++)this._realpathSet(n,r);function r(){--t===0&&e._finish()}};ik.prototype._realpathSet=function(t,e){var n=this.matches[t];if(!n)return e();var r=Object.keys(n),a=this,c=r.length;if(c===0)return e();var f=this.matches[t]=Object.create(null);r.forEach(function(_,x){_=a._makeAbs(_),jbs.realpath(_,a.realpathCache,function(b,T){b?b.syscall==="stat"?f[_]=!0:a.emit("error",b):f[T]=!0,--c===0&&(a.matches[t]=f,e())})})};ik.prototype._mark=function(t){return Yut.mark(this,t)};ik.prototype._makeAbs=function(t){return Yut.makeAbs(this,t)};ik.prototype.abort=function(){this.aborted=!0,this.emit("abort")};ik.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))};ik.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var t=this._emitQueue.slice(0);this._emitQueue.length=0;for(var e=0;e<t.length;e++){var n=t[e];this._emitMatch(n[0],n[1])}}if(this._processQueue.length){var r=this._processQueue.slice(0);this._processQueue.length=0;for(var e=0;e<r.length;e++){var a=r[e];this._processing--,this._process(a[0],a[1],a[2],a[3])}}}};ik.prototype._process=function(t,e,n,r){if(g8n(this instanceof ik),g8n(typeof r=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([t,e,n,r]);return}for(var a=0;typeof t[a]=="string";)a++;var c;switch(a){case t.length:this._processSimple(t.join("/"),e,r);return;case 0:c=null;break;default:c=t.slice(0,a).join("/");break}var f=t.slice(a),_;c===null?_=".":((EMt(c)||EMt(t.map(function(T){return typeof T=="string"?T:"[*]"}).join("/")))&&(!c||!EMt(c))&&(c="/"+c),_=c);var x=this._makeAbs(_);if(zbs(this,_))return r();var b=f[0]===K3r.GLOBSTAR;b?this._processGlobStar(c,_,x,f,e,n,r):this._processReaddir(c,_,x,f,e,n,r)}};ik.prototype._processReaddir=function(t,e,n,r,a,c,f){var _=this;this._readdir(n,c,function(x,b){return _._processReaddir2(t,e,n,r,a,c,b,f)})};ik.prototype._processReaddir2=function(t,e,n,r,a,c,f,_){if(!f)return _();for(var x=r[0],b=!!this.minimatch.negate,T=x._glob,k=this.dot||T.charAt(0)===".",R=[],O=0;O<f.length;O++){var j=f[O];if(j.charAt(0)!=="."||k){var U;b&&!t?U=!j.match(x):U=j.match(x),U&&R.push(j)}}var K=R.length;if(K===0)return _();if(r.length===1&&!this.mark&&!this.stat){this.matches[a]||(this.matches[a]=Object.create(null));for(var O=0;O<K;O++){var j=R[O];t&&(t!=="/"?j=t+"/"+j:j=t+j),j.charAt(0)==="/"&&!this.nomount&&(j=_8n.join(this.root,j)),this._emitMatch(a,j)}return _()}r.shift();for(var O=0;O<K;O++){var j=R[O],Z;t&&(t!=="/"?j=t+"/"+j:j=t+j),this._process([j].concat(r),a,c,_)}_()};ik.prototype._emitMatch=function(t,e){if(!this.aborted&&!qbs(this,e)){if(this.paused){this._emitQueue.push([t,e]);return}var n=EMt(e)?e:this._makeAbs(e);if(this.mark&&(e=this._mark(e)),this.absolute&&(e=n),!this.matches[t][e]){if(this.nodir){var r=this.cache[n];if(r==="DIR"||Array.isArray(r))return}this.matches[t][e]=!0;var a=this.statCache[n];a&&this.emit("stat",e,a),this.emit("match",e)}}};ik.prototype._readdirInGlobStar=function(t,e){if(this.aborted)return;if(this.follow)return this._readdir(t,!1,e);var n="lstat\0"+t,r=this,a=v8n(n,c);a&&r.fs.lstat(t,a);function c(f,_){if(f&&f.code==="ENOENT")return e();var x=_&&_.isSymbolicLink();r.symlinks[t]=x,!x&&_&&!_.isDirectory()?(r.cache[t]="FILE",e()):r._readdir(t,!1,e)}};ik.prototype._readdir=function(t,e,n){if(!this.aborted&&(n=v8n("readdir\0"+t+"\0"+e,n),!!n)){if(e&&!y8n(this.symlinks,t))return this._readdirInGlobStar(t,n);if(y8n(this.cache,t)){var r=this.cache[t];if(!r||r==="FILE")return n();if(Array.isArray(r))return n(null,r)}var a=this;a.fs.readdir(t,$bs(this,t,n))}};function $bs(t,e,n){return function(r,a){r?t._readdirError(e,r,n):t._readdirEntries(e,a,n)}}ik.prototype._readdirEntries=function(t,e,n){if(!this.aborted){if(!this.mark&&!this.stat)for(var r=0;r<e.length;r++){var a=e[r];t==="/"?a=t+a:a=t+"/"+a,this.cache[a]=!0}return this.cache[t]=e,n(null,e)}};ik.prototype._readdirError=function(t,e,n){if(!this.aborted){switch(e.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(t);if(this.cache[r]="FILE",r===this.cwdAbs){var a=new Error(e.code+" invalid cwd "+this.cwd);a.path=this.cwd,a.code=e.code,this.emit("error",a),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=!1;break;default:this.cache[this._makeAbs(t)]=!1,this.strict&&(this.emit("error",e),this.abort()),this.silent||console.error("glob error",e);break}return n()}};ik.prototype._processGlobStar=function(t,e,n,r,a,c,f){var _=this;this._readdir(n,c,function(x,b){_._processGlobStar2(t,e,n,r,a,c,b,f)})};ik.prototype._processGlobStar2=function(t,e,n,r,a,c,f,_){if(!f)return _();var x=r.slice(1),b=t?[t]:[],T=b.concat(x);this._process(T,a,!1,_);var k=this.symlinks[n],R=f.length;if(k&&c)return _();for(var O=0;O<R;O++){var j=f[O];if(!(j.charAt(0)==="."&&!this.dot)){var U=b.concat(f[O],x);this._process(U,a,!0,_);var K=b.concat(f[O],r);this._process(K,a,!0,_)}}_()};ik.prototype._processSimple=function(t,e,n){var r=this;this._stat(t,function(a,c){r._processSimple2(t,e,a,c,n)})};ik.prototype._processSimple2=function(t,e,n,r,a){if(this.matches[e]||(this.matches[e]=Object.create(null)),!r)return a();if(t&&EMt(t)&&!this.nomount){var c=/[\/\\]$/.test(t);t.charAt(0)==="/"?t=_8n.join(this.root,t):(t=_8n.resolve(this.root,t),c&&(t+="/"))}process.platform==="win32"&&(t=t.replace(/\\/g,"/")),this._emitMatch(e,t),a()};ik.prototype._stat=function(t,e){var n=this._makeAbs(t),r=t.slice(-1)==="/";if(t.length>this.maxLength)return e();if(!this.stat&&y8n(this.cache,n)){var a=this.cache[n];if(Array.isArray(a)&&(a="DIR"),!r||a==="DIR")return e(null,a);if(r&&a==="FILE")return e()}var c,f=this.statCache[n];if(f!==void 0){if(f===!1)return e(null,f);var _=f.isDirectory()?"DIR":"FILE";return r&&_==="FILE"?e():e(null,_,f)}var x=this,b=v8n("stat\0"+n,T);b&&x.fs.lstat(n,b);function T(k,R){if(R&&R.isSymbolicLink())return x.fs.stat(n,function(O,j){O?x._stat2(t,n,null,R,e):x._stat2(t,n,O,j,e)});x._stat2(t,n,k,R,e)}};ik.prototype._stat2=function(t,e,n,r,a){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR"))return this.statCache[e]=!1,a();var c=t.slice(-1)==="/";if(this.statCache[e]=r,e.slice(-1)==="/"&&r&&!r.isDirectory())return a(null,!1,r);var f=!0;return r&&(f=r.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||f,c&&f==="FILE"?a():a(null,f,r)}});var T8n=Le((IVo,tRr)=>{tRr.exports=S8n;S8n.sync=eRr;var pP=require("assert"),Y3r=require("path"),J3r=require("fs"),nTt=void 0;try{nTt=d8n()}catch{}var Q3r=parseInt("666",8),Xbs={nosort:!0,silent:!0},b8n=0,SMt=process.platform==="win32";function Z3r(t){var e=["unlink","chmod","stat","lstat","rmdir","readdir"];if(e.forEach(function(n){t[n]=t[n]||J3r[n],n=n+"Sync",t[n]=t[n]||J3r[n]}),t.maxBusyTries=t.maxBusyTries||3,t.emfileWait=t.emfileWait||1e3,t.glob===!1&&(t.disableGlob=!0),t.disableGlob!==!0&&nTt===void 0)throw Error("glob dependency not found, set `options.disableGlob = true` if intentional");t.disableGlob=t.disableGlob||!1,t.glob=t.glob||Xbs}function S8n(t,e,n){typeof e=="function"&&(n=e,e={}),pP(t,"rimraf: missing path"),pP.equal(typeof t,"string","rimraf: path should be a string"),pP.equal(typeof n,"function","rimraf: callback function required"),pP(e,"rimraf: invalid options argument provided"),pP.equal(typeof e,"object","rimraf: options should be object"),Z3r(e);var r=0,a=null,c=0;if(e.disableGlob||!nTt.hasMagic(t))return _(null,[t]);e.lstat(t,function(x,b){if(!x)return _(null,[t]);nTt(t,e.glob,_)});function f(x){a=a||x,--c===0&&n(a)}function _(x,b){if(x)return n(x);if(c=b.length,c===0)return n();b.forEach(function(T){E8n(T,e,function k(R){if(R){if((R.code==="EBUSY"||R.code==="ENOTEMPTY"||R.code==="EPERM")&&r<e.maxBusyTries){r++;var O=r*100;return setTimeout(function(){E8n(T,e,k)},O)}if(R.code==="EMFILE"&&b8n<e.emfileWait)return setTimeout(function(){E8n(T,e,k)},b8n++);R.code==="ENOENT"&&(R=null)}b8n=0,f(R)})})}}function E8n(t,e,n){pP(t),pP(e),pP(typeof n=="function"),e.lstat(t,function(r,a){if(r&&r.code==="ENOENT")return n(null);if(r&&r.code==="EPERM"&&SMt&&$3r(t,e,r,n),a&&a.isDirectory())return BQt(t,e,r,n);e.unlink(t,function(c){if(c){if(c.code==="ENOENT")return n(null);if(c.code==="EPERM")return SMt?$3r(t,e,c,n):BQt(t,e,c,n);if(c.code==="EISDIR")return BQt(t,e,c,n)}return n(c)})})}function $3r(t,e,n,r){pP(t),pP(e),pP(typeof r=="function"),n&&pP(n instanceof Error),e.chmod(t,Q3r,function(a){a?r(a.code==="ENOENT"?null:n):e.stat(t,function(c,f){c?r(c.code==="ENOENT"?null:n):f.isDirectory()?BQt(t,e,n,r):e.unlink(t,r)})})}function X3r(t,e,n){pP(t),pP(e),n&&pP(n instanceof Error);try{e.chmodSync(t,Q3r)}catch(a){if(a.code==="ENOENT")return;throw n}try{var r=e.statSync(t)}catch(a){if(a.code==="ENOENT")return;throw n}r.isDirectory()?WQt(t,e,n):e.unlinkSync(t)}function BQt(t,e,n,r){pP(t),pP(e),n&&pP(n instanceof Error),pP(typeof r=="function"),e.rmdir(t,function(a){a&&(a.code==="ENOTEMPTY"||a.code==="EEXIST"||a.code==="EPERM")?Ybs(t,e,r):a&&a.code==="ENOTDIR"?r(n):r(a)})}function Ybs(t,e,n){pP(t),pP(e),pP(typeof n=="function"),e.readdir(t,function(r,a){if(r)return n(r);var c=a.length;if(c===0)return e.rmdir(t,n);var f;a.forEach(function(_){S8n(Y3r.join(t,_),e,function(x){if(!f){if(x)return n(f=x);--c===0&&e.rmdir(t,n)}})})})}function eRr(t,e){e=e||{},Z3r(e),pP(t,"rimraf: missing path"),pP.equal(typeof t,"string","rimraf: path should be a string"),pP(e,"rimraf: missing options"),pP.equal(typeof e,"object","rimraf: options should be object");var n;if(e.disableGlob||!nTt.hasMagic(t))n=[t];else try{e.lstatSync(t),n=[t]}catch{n=nTt.sync(t,e.glob)}if(n.length)for(var r=0;r<n.length;r++){var t=n[r];try{var a=e.lstatSync(t)}catch(f){if(f.code==="ENOENT")return;f.code==="EPERM"&&SMt&&X3r(t,e,f)}try{a&&a.isDirectory()?WQt(t,e,null):e.unlinkSync(t)}catch(f){if(f.code==="ENOENT")return;if(f.code==="EPERM")return SMt?X3r(t,e,f):WQt(t,e,f);if(f.code!=="EISDIR")throw f;WQt(t,e,f)}}}function WQt(t,e,n){pP(t),pP(e),n&&pP(n instanceof Error);try{e.rmdirSync(t)}catch(r){if(r.code==="ENOENT")return;if(r.code==="ENOTDIR")throw n;(r.code==="ENOTEMPTY"||r.code==="EEXIST"||r.code==="EPERM")&&Qbs(t,e)}}function Qbs(t,e){pP(t),pP(e),e.readdirSync(t).forEach(function(f){eRr(Y3r.join(t,f),e)});var n=SMt?100:1,r=0;do{var a=!0;try{var c=e.rmdirSync(t,e);return a=!1,c}finally{if(++r<n&&a)continue}}while(!0)}});var A8n=Le((PVo,iRr)=>{var TMt=require("path"),nRr=require("fs"),rRr=parseInt("0777",8);iRr.exports=rTt.mkdirp=rTt.mkdirP=rTt;function rTt(t,e,n,r){typeof e=="function"?(n=e,e={}):(!e||typeof e!="object")&&(e={mode:e});var a=e.mode,c=e.fs||nRr;a===void 0&&(a=rRr),r||(r=null);var f=n||function(){};t=TMt.resolve(t),c.mkdir(t,a,function(_){if(!_)return r=r||t,f(null,r);switch(_.code){case"ENOENT":if(TMt.dirname(t)===t)return f(_);rTt(TMt.dirname(t),e,function(x,b){x?f(x,b):rTt(t,e,f,b)});break;default:c.stat(t,function(x,b){x||!b.isDirectory()?f(_,r):f(null,r)});break}})}rTt.sync=function t(e,n,r){(!n||typeof n!="object")&&(n={mode:n});var a=n.mode,c=n.fs||nRr;a===void 0&&(a=rRr),r||(r=null),e=TMt.resolve(e);try{c.mkdirSync(e,a),r=r||e}catch(_){switch(_.code){case"ENOENT":r=t(TMt.dirname(e),n,r),t(e,n,r);break;default:var f;try{f=c.statSync(e)}catch{throw _}if(!f.isDirectory())throw _;break}}return r}});var jQt=Le((kVo,sRr)=>{sRr.exports=C8n;function C8n(t){if(t._collected)return;if(t._paused)return t.on("resume",C8n.bind(null,t));t._collected=!0,t.pause(),t.on("data",n),t.on("end",n);var e=[];function n(f){typeof f=="string"&&(f=new Buffer(f)),!(Buffer.isBuffer(f)&&!f.length)&&e.push(f)}t.on("entry",a);var r=[];function a(f){C8n(f),r.push(f)}t.on("proxy",c);function c(f){f.pause()}t.pipe=function(f){return function(_){var x=0;(function T(){var k=r[x++];if(!k)return b();k.on("end",T),_?_.add(k):t.emit("entry",k)})();function b(){t.removeListener("entry",a),t.removeListener("data",n),t.removeListener("end",n),t.pipe=f,_&&t.pipe(_),e.forEach(function(T){T?t.emit("data",T):t.emit("end")}),t.resume()}return _}}(t.pipe)}});var D8n=Le((NVo,oRr)=>{oRr.exports=$Je;var GQt=iTt(),Zbs=H7(),e2s=A8n(),aRr=require("path"),t2s=jQt();Zbs($Je,GQt);function $Je(t){var e=this;e instanceof $Je||e.error("DirWriter must be called as constructor.",null,!0),(t.type!=="Directory"||!t.Directory)&&e.error("Non-directory type "+t.type+" "+JSON.stringify(t),null,!0),GQt.call(this,t)}$Je.prototype._create=function(){var t=this;e2s(t._path,GQt.dirmode,function(e){if(e)return t.error(e);t.ready=!0,t.emit("ready"),t._process()})};$Je.prototype.write=function(){return!0};$Je.prototype.end=function(){this._ended=!0,this._process()};$Je.prototype.add=function(t){var e=this;return t2s(t),!e.ready||e._currentEntry?(e._buffer.push(t),!1):e._ended?e.error("add after end"):(e._buffer.push(t),e._process(),this._buffer.length===0)};$Je.prototype._process=function(){var t=this;if(t._processing)return;var e=t._buffer.shift();if(!e){t.emit("drain"),t._ended&&t._finish();return}t._processing=!0,t.emit("entry",e);var n=e,r;do{if(r=n._path||n.path,r===t.root._path||r===t._path||r&&r.indexOf(t._path)===0)return t._processing=!1,e._collected&&e.pipe(),t._process();n=n.parent}while(n);var a={parent:t,root:t.root||t,type:e.type,depth:t.depth+1};r=e._path||e.path||e.props.path,e.parent&&(r=r.substr(e.parent._path.length+1)),a.path=aRr.join(t.path,aRr.join("/",r)),a.filter=t.filter,Object.keys(e.props).forEach(function(x){a.hasOwnProperty(x)||(a[x]=e.props[x])});var c=t._currentChild=new GQt(a);c.on("ready",function(){e.pipe(c),e.resume()}),c.on("error",function(x){c._swallowErrors?(t.warn(x),c.emit("end"),c.emit("close")):t.emit("error",x)}),c.on("close",_);var f=!1;function _(){f||(f=!0,t._currentChild=null,t._processing=!1,t._process())}}});var w8n=Le((LVo,dRr)=>{dRr.exports=AMt;var cRr=nNe(),uRr=iTt(),n2s=H7(),r2s=require("path"),i2s=T8n();n2s(AMt,uRr);function AMt(t){var e=this;if(!(e instanceof AMt))throw new Error("LinkWriter must be called as constructor.");if(!(t.type==="Link"&&t.Link||t.type==="SymbolicLink"&&t.SymbolicLink))throw new Error("Non-link type "+t.type);t.linkpath===""&&(t.linkpath="."),t.linkpath||e.error("Need linkpath property to create "+t.type),uRr.call(this,t)}AMt.prototype._create=function(){var t=this,e=t.type==="Link"||process.platform==="win32",n=e?"link":"symlink",r=e?r2s.resolve(t.dirname,t.linkpath):t.linkpath;if(e)return lRr(t,r,n);cRr.readlink(t._path,function(a,c){if(c&&c===r)return fRr(t);lRr(t,r,n)})};function lRr(t,e,n){i2s(t._path,function(r){if(r)return t.error(r);s2s(t,e,n)})}function s2s(t,e,n){cRr[n](e,t._path,function(r){if(r)if((r.code==="ENOENT"||r.code==="EACCES"||r.code==="EPERM")&&process.platform==="win32")t.ready=!0,t.emit("ready"),t.emit("end"),t.emit("close"),t.end=t._finish=function(){};else return t.error(r);fRr(t)})}function fRr(t){t.ready=!0,t.emit("ready"),t._ended&&!t._finished&&t._finish()}AMt.prototype.end=function(){this._ended=!0,this.ready&&(this._finished=!0,this._finish())}});var I8n=Le((RVo,mRr)=>{mRr.exports=Qut;var a2s=nNe(),UQt=iTt(),o2s=H7(),pRr={};o2s(Qut,UQt);function Qut(t){var e=this;if(!(e instanceof Qut))throw new Error("FileWriter must be called as constructor.");if(t.type!=="File"||!t.File)throw new Error("Non-file type "+t.type);e._buffer=[],e._bytesWritten=0,UQt.call(this,t)}Qut.prototype._create=function(){var t=this;if(!t._stream){var e={};t.props.flags&&(e.flags=t.props.flags),e.mode=UQt.filemode,t._old&&t._old.blksize&&(e.bufferSize=t._old.blksize),t._stream=a2s.createWriteStream(t._path,e),t._stream.on("open",function(){t.ready=!0,t._buffer.forEach(function(n){n===pRr?t._stream.end():t._stream.write(n)}),t.emit("ready"),t.emit("drain")}),t._stream.on("error",function(n){t.emit("error",n)}),t._stream.on("drain",function(){t.emit("drain")}),t._stream.on("close",function(){t._finish()})}};Qut.prototype.write=function(t){var e=this;if(e._bytesWritten+=t.length,!e.ready){if(!Buffer.isBuffer(t)&&typeof t!="string")throw new Error("invalid write data");return e._buffer.push(t),!1}var n=e._stream.write(t);return n===!1&&e._stream._queue?e._stream._queue.length<=2:n};Qut.prototype.end=function(t){var e=this;return t&&e.write(t),e.ready?e._stream.end():(e._buffer.push(pRr),!1)};Qut.prototype._finish=function(){var t=this;typeof t.size=="number"&&t._bytesWritten!==t.size&&t.error(`Did not get expected byte count.
|
|
861
861
|
expect: `+t.size+`
|
|
862
862
|
actual: `+t._bytesWritten),UQt.prototype._finish.call(t)}});var k8n=Le((OVo,hRr)=>{hRr.exports=XJe;var P8n=iTt(),l2s=hMt(),c2s=H7(),u2s=jQt(),f2s=require("fs");c2s(XJe,P8n);function XJe(t){var e=this;if(!(e instanceof XJe))throw new Error("ProxyWriter must be called as constructor.");e.props=t,e._needDrain=!1,P8n.call(e,t)}XJe.prototype._stat=function(){var t=this,e=t.props,n=e.follow?"stat":"lstat";f2s[n](e.path,function(r,a){var c;r||!a?c="File":c=l2s(a),e[c]=!0,e.type=t.type=c,t._old=a,t._addProxy(P8n(e,a))})};XJe.prototype._addProxy=function(t){var e=this;if(e._proxy)return e.error("proxy already set");e._proxy=t,["ready","error","close","pipe","drain","warn"].forEach(function(r){t.on(r,e.emit.bind(e,r))}),e.emit("proxy",t);var n=e._buffer;n.forEach(function(r){t[r[0]].apply(t,r[1])}),e._buffer.length=0,e._needsDrain&&e.emit("drain")};XJe.prototype.add=function(t){return u2s(t),this._proxy?this._proxy.add(t):(this._buffer.push(["add",[t]]),this._needDrain=!0,!1)};XJe.prototype.write=function(t){return this._proxy?this._proxy.write(t):(this._buffer.push(["write",[t]]),this._needDrain=!0,!1)};XJe.prototype.end=function(t){return this._proxy?this._proxy.end(t):(this._buffer.push(["end",[t]]),!1)}});var iTt=Le((MVo,TRr)=>{TRr.exports=lye;var oye=nNe(),d2s=H7(),p2s=T8n(),m2s=A8n(),CMt=require("path"),gRr=process.platform==="win32"?0:process.umask(),yRr=hMt(),xRr=TQt();d2s(lye,xRr);lye.dirmode=parseInt("0777",8)&~gRr;lye.filemode=parseInt("0666",8)&~gRr;var h2s=D8n(),_2s=w8n(),g2s=I8n(),y2s=k8n();function lye(t,e){var n=this;typeof t=="string"&&(t={path:t});var r=yRr(t),a=lye;switch(r){case"Directory":a=h2s;break;case"File":a=g2s;break;case"Link":case"SymbolicLink":a=_2s;break;case null:default:a=y2s;break}if(!(n instanceof a))return new a(t);xRr.call(n),t.path||n.error("Must provide a path",null,!0),n.type=t.type,n.props=t,n.depth=t.depth||0,n.clobber=t.clobber===!1?t.clobber:!0,n.parent=t.parent||null,n.root=t.root||t.parent&&t.parent.root||n,n._path=n.path=CMt.resolve(t.path),process.platform==="win32"&&(n.path=n._path=n.path.replace(/\?/g,"_"),n._path.length>=260&&(n._swallowErrors=!0,n._path="\\\\?\\"+n.path.replace(/\//g,"\\"))),n.basename=CMt.basename(t.path),n.dirname=CMt.dirname(t.path),n.linkpath=t.linkpath||null,t.parent=t.root=null,n.size=t.size,typeof t.mode=="string"&&(t.mode=parseInt(t.mode,8)),n.readable=!1,n.writable=!0,n._buffer=[],n.ready=!1,n.filter=typeof t.filter=="function"?t.filter:null,n._stat(e)}lye.prototype._create=function(){var t=this;oye[t.props.follow?"stat":"lstat"](t._path,function(e){if(e)return t.warn("Cannot create "+t._path+`
|
|
863
|
-
Unsupported type: `+t.type,"ENOTSUP");t._finish()})};lye.prototype._stat=function(t){var e=this,n=e.props,r=n.follow?"stat":"lstat",a=e._proxy||e;t?c(null,t):oye[r](e._path,c);function c(f,_){if(e.filter&&!e.filter.call(a,a,_)){e._aborted=!0,e.emit("end"),e.emit("close");return}if(f||!_)return N8n(e);e._old=_;var x=yRr(_);if(x!==e.type||e.type==="File"&&_.nlink>1)return p2s(e._path,function(b){if(b)return e.error(b);e._old=null,N8n(e)});N8n(e)}};function N8n(t){m2s(CMt.dirname(t._path),lye.dirmode,function(e,n){return e?t.error(e):(t._madeDir=n,t._create())})}function vRr(t,e,n,r,a){var c=e.mode,f=e.follow||t.type!=="SymbolicLink"?"chmod":"lchmod";if(!oye[f]||typeof c!="number")return a();var _=n.mode&parseInt("0777",8);if(c=c&parseInt("0777",8),c===_)return a();oye[f](r,c,a)}function bRr(t,e,n,r,a){if(process.platform==="win32"||!process.getuid||process.getuid()!==0||typeof e.uid!="number"&&typeof e.gid!="number"||n.uid===e.uid&&n.gid===e.gid)return a();var c=t.props.follow||t.type!=="SymbolicLink"?"chown":"lchown";if(!oye[c])return a();typeof e.uid!="number"&&(e.uid=n.uid),typeof e.gid!="number"&&(e.gid=n.gid),oye[c](r,e.uid,e.gid,a)}function ERr(t,e,n,r,a){if(!oye.utimes||process.platform==="win32")return a();var c=e.follow||t.type!=="SymbolicLink"?"utimes":"lutimes";if(c==="lutimes"&&!oye[c]&&(c="utimes"),!oye[c])return a();var f=n.atime,_=n.mtime,x=e.atime,b=e.mtime;if(x===void 0&&(x=f),b===void 0&&(b=_),_Rr(x)||(x=new Date(x)),_Rr(b)||(x=new Date(b)),x.getTime()===f.getTime()&&b.getTime()===_.getTime())return a();oye[c](r,x,b,a)}lye.prototype._finish=function(){var t=this;if(t._finishing)return;t._finishing=!0;var e=0,n=null,r=!1;if(t._old)t._old.atime=new Date(0),t._old.mtime=new Date(0),c(t._old);else{var a=t.props.follow?"stat":"lstat";oye[a](t._path,function(_,x){if(_)if(_.code==="ENOENT"&&(t.type==="Link"||t.type==="SymbolicLink")&&process.platform==="win32"){t.ready=!0,t.emit("ready"),t.emit("end"),t.emit("close"),t.end=t._finish=function(){};return}else return t.error(_);c(t._old=x)})}return;function c(_){e+=3,vRr(t,t.props,_,t._path,f("chmod")),bRr(t,t.props,_,t._path,f("chown")),ERr(t,t.props,_,t._path,f("utimes"))}function f(_){return function(x){if(n)return;if(x)return x.fstream_finish_call=_,t.error(n=x);if(--e>0||r)return;if(r=!0,t._madeDir)SRr(t,t._path,b);else return b();function b(T){if(T)return T.fstream_finish_call="setupMadeDir",t.error(T);t.emit("end"),t.emit("close")}}}};function SRr(t,e,n){var r=t._madeDir,a=CMt.dirname(e);x2s(t,a,function(c){if(c)return n(c);if(a===r)return n();SRr(t,a,n)})}function x2s(t,e,n){var r={};Object.keys(t.props).forEach(function(_){r[_]=t.props[_],_==="mode"&&t.type!=="Directory"&&(r[_]=r[_]|parseInt("0111",8))});var a=3,c=null;oye.stat(e,function(_,x){if(_)return n(c=_);vRr(t,r,x,e,f),bRr(t,r,x,e,f),ERr(t,r,x,e,f)});function f(_){if(!c){if(_)return n(c=_);if(--a===0)return n()}}}lye.prototype.pipe=function(){this.error("Can't pipe from writable stream")};lye.prototype.add=function(){this.error("Can't add to non-Directory type")};lye.prototype.write=function(){return!0};function v2s(t){return Object.prototype.toString.call(t)}function _Rr(t){return typeof t=="object"&&v2s(t)==="[object Date]"}});var L8n=Le(gw=>{gw.Abstract=TQt();gw.Reader=qut();gw.Writer=iTt();gw.File={Reader:HOn(),Writer:I8n()};gw.Dir={Reader:KOn(),Writer:D8n()};gw.Link={Reader:zOn(),Writer:w8n()};gw.Proxy={Reader:$On(),Writer:k8n()};gw.Reader.Dir=gw.DirReader=gw.Dir.Reader;gw.Reader.File=gw.FileReader=gw.File.Reader;gw.Reader.Link=gw.LinkReader=gw.Link.Reader;gw.Reader.Proxy=gw.ProxyReader=gw.Proxy.Reader;gw.Writer.Dir=gw.DirWriter=gw.Dir.Writer;gw.Writer.File=gw.FileWriter=gw.File.Writer;gw.Writer.Link=gw.LinkWriter=gw.Link.Writer;gw.Writer.Proxy=gw.ProxyWriter=gw.Proxy.Writer;gw.collect=jQt()});var CRr=Le((BVo,ARr)=>{ARr.exports=C2s;var b2s=dQt(),E2s=L8n().Writer,R8n=require("path"),S2s=require("stream"),T2s=MOn(),A2s=jJe();function C2s(t){t.path=R8n.resolve(R8n.normalize(t.path));var e=new b2s(t),n=new S2s.Writable({objectMode:!0});n._write=function(a,c,f){if(a.type=="Directory")return f();var _=R8n.join(t.path,a.path.replace(/\\/g,"/"));if(_.indexOf(t.path)!=0)return f();let x=t.getWriter?t.getWriter({path:_}):E2s({path:_});a.pipe(x).on("error",f).on("close",f)};var r=T2s(e,n);return e.once("crx-header",function(a){r.crxHeader=a}),e.pipe(n).on("finish",function(){r.emit("close")}),r.promise=function(){return new A2s(function(a,c){r.on("close",a),r.on("error",c)})},r}});var DRr=Le((WVo,VQt)=>{var _z=function(t){"use strict";var e=1e7,n=7,r=9007199254740992,a=R(r),c="0123456789abcdefghijklmnopqrstuvwxyz",f=typeof BigInt=="function";function _(Dn,Ir,Fr,qi){return typeof Dn>"u"?_[0]:typeof Ir<"u"?+Ir==10&&!Fr?Aa(Dn):Es(Dn,Ir,Fr,qi):Aa(Dn)}function x(Dn,Ir){this.value=Dn,this.sign=Ir,this.isSmall=!1}x.prototype=Object.create(_.prototype);function b(Dn){this.value=Dn,this.sign=Dn<0,this.isSmall=!0}b.prototype=Object.create(_.prototype);function T(Dn){this.value=Dn}T.prototype=Object.create(_.prototype);function k(Dn){return-r<Dn&&Dn<r}function R(Dn){return Dn<1e7?[Dn]:Dn<1e14?[Dn%1e7,Math.floor(Dn/1e7)]:[Dn%1e7,Math.floor(Dn/1e7)%1e7,Math.floor(Dn/1e14)]}function O(Dn){j(Dn);var Ir=Dn.length;if(Ir<4&&pr(Dn,a)<0)switch(Ir){case 0:return 0;case 1:return Dn[0];case 2:return Dn[0]+Dn[1]*e;default:return Dn[0]+(Dn[1]+Dn[2]*e)*e}return Dn}function j(Dn){for(var Ir=Dn.length;Dn[--Ir]===0;);Dn.length=Ir+1}function U(Dn){for(var Ir=new Array(Dn),Fr=-1;++Fr<Dn;)Ir[Fr]=0;return Ir}function K(Dn){return Dn>0?Math.floor(Dn):Math.ceil(Dn)}function Z(Dn,Ir){var Fr=Dn.length,qi=Ir.length,Jt=new Array(Fr),Ss=0,po=e,Ei,to;for(to=0;to<qi;to++)Ei=Dn[to]+Ir[to]+Ss,Ss=Ei>=po?1:0,Jt[to]=Ei-Ss*po;for(;to<Fr;)Ei=Dn[to]+Ss,Ss=Ei===po?1:0,Jt[to++]=Ei-Ss*po;return Ss>0&&Jt.push(Ss),Jt}function fe(Dn,Ir){return Dn.length>=Ir.length?Z(Dn,Ir):Z(Ir,Dn)}function Pe(Dn,Ir){var Fr=Dn.length,qi=new Array(Fr),Jt=e,Ss,po;for(po=0;po<Fr;po++)Ss=Dn[po]-Jt+Ir,Ir=Math.floor(Ss/Jt),qi[po]=Ss-Ir*Jt,Ir+=1;for(;Ir>0;)qi[po++]=Ir%Jt,Ir=Math.floor(Ir/Jt);return qi}x.prototype.add=function(Dn){var Ir=Aa(Dn);if(this.sign!==Ir.sign)return this.subtract(Ir.negate());var Fr=this.value,qi=Ir.value;return Ir.isSmall?new x(Pe(Fr,Math.abs(qi)),this.sign):new x(fe(Fr,qi),this.sign)},x.prototype.plus=x.prototype.add,b.prototype.add=function(Dn){var Ir=Aa(Dn),Fr=this.value;if(Fr<0!==Ir.sign)return this.subtract(Ir.negate());var qi=Ir.value;if(Ir.isSmall){if(k(Fr+qi))return new b(Fr+qi);qi=R(Math.abs(qi))}return new x(Pe(qi,Math.abs(Fr)),Fr<0)},b.prototype.plus=b.prototype.add,T.prototype.add=function(Dn){return new T(this.value+Aa(Dn).value)},T.prototype.plus=T.prototype.add;function ye(Dn,Ir){var Fr=Dn.length,qi=Ir.length,Jt=new Array(Fr),Ss=0,po=e,Ei,to;for(Ei=0;Ei<qi;Ei++)to=Dn[Ei]-Ss-Ir[Ei],to<0?(to+=po,Ss=1):Ss=0,Jt[Ei]=to;for(Ei=qi;Ei<Fr;Ei++){if(to=Dn[Ei]-Ss,to<0)to+=po;else{Jt[Ei++]=to;break}Jt[Ei]=to}for(;Ei<Fr;Ei++)Jt[Ei]=Dn[Ei];return j(Jt),Jt}function qe(Dn,Ir,Fr){var qi;return pr(Dn,Ir)>=0?qi=ye(Dn,Ir):(qi=ye(Ir,Dn),Fr=!Fr),qi=O(qi),typeof qi=="number"?(Fr&&(qi=-qi),new b(qi)):new x(qi,Fr)}function yt(Dn,Ir,Fr){var qi=Dn.length,Jt=new Array(qi),Ss=-Ir,po=e,Ei,to;for(Ei=0;Ei<qi;Ei++)to=Dn[Ei]+Ss,Ss=Math.floor(to/po),to%=po,Jt[Ei]=to<0?to+po:to;return Jt=O(Jt),typeof Jt=="number"?(Fr&&(Jt=-Jt),new b(Jt)):new x(Jt,Fr)}x.prototype.subtract=function(Dn){var Ir=Aa(Dn);if(this.sign!==Ir.sign)return this.add(Ir.negate());var Fr=this.value,qi=Ir.value;return Ir.isSmall?yt(Fr,Math.abs(qi),this.sign):qe(Fr,qi,this.sign)},x.prototype.minus=x.prototype.subtract,b.prototype.subtract=function(Dn){var Ir=Aa(Dn),Fr=this.value;if(Fr<0!==Ir.sign)return this.add(Ir.negate());var qi=Ir.value;return Ir.isSmall?new b(Fr-qi):yt(qi,Math.abs(Fr),Fr>=0)},b.prototype.minus=b.prototype.subtract,T.prototype.subtract=function(Dn){return new T(this.value-Aa(Dn).value)},T.prototype.minus=T.prototype.subtract,x.prototype.negate=function(){return new x(this.value,!this.sign)},b.prototype.negate=function(){var Dn=this.sign,Ir=new b(-this.value);return Ir.sign=!Dn,Ir},T.prototype.negate=function(){return new T(-this.value)},x.prototype.abs=function(){return new x(this.value,!1)},b.prototype.abs=function(){return new b(Math.abs(this.value))},T.prototype.abs=function(){return new T(this.value>=0?this.value:-this.value)};function Ke(Dn,Ir){var Fr=Dn.length,qi=Ir.length,Jt=Fr+qi,Ss=U(Jt),po=e,Ei,to,yc,Ep,Gd;for(yc=0;yc<Fr;++yc){Ep=Dn[yc];for(var Hm=0;Hm<qi;++Hm)Gd=Ir[Hm],Ei=Ep*Gd+Ss[yc+Hm],to=Math.floor(Ei/po),Ss[yc+Hm]=Ei-to*po,Ss[yc+Hm+1]+=to}return j(Ss),Ss}function Je(Dn,Ir){var Fr=Dn.length,qi=new Array(Fr),Jt=e,Ss=0,po,Ei;for(Ei=0;Ei<Fr;Ei++)po=Dn[Ei]*Ir+Ss,Ss=Math.floor(po/Jt),qi[Ei]=po-Ss*Jt;for(;Ss>0;)qi[Ei++]=Ss%Jt,Ss=Math.floor(Ss/Jt);return qi}function Pt(Dn,Ir){for(var Fr=[];Ir-- >0;)Fr.push(0);return Fr.concat(Dn)}function Ht(Dn,Ir){var Fr=Math.max(Dn.length,Ir.length);if(Fr<=30)return Ke(Dn,Ir);Fr=Math.ceil(Fr/2);var qi=Dn.slice(Fr),Jt=Dn.slice(0,Fr),Ss=Ir.slice(Fr),po=Ir.slice(0,Fr),Ei=Ht(Jt,po),to=Ht(qi,Ss),yc=Ht(fe(Jt,qi),fe(po,Ss)),Ep=fe(fe(Ei,Pt(ye(ye(yc,Ei),to),Fr)),Pt(to,2*Fr));return j(Ep),Ep}function it(Dn,Ir){return-.012*Dn-.012*Ir+15e-6*Dn*Ir>0}x.prototype.multiply=function(Dn){var Ir=Aa(Dn),Fr=this.value,qi=Ir.value,Jt=this.sign!==Ir.sign,Ss;if(Ir.isSmall){if(qi===0)return _[0];if(qi===1)return this;if(qi===-1)return this.negate();if(Ss=Math.abs(qi),Ss<e)return new x(Je(Fr,Ss),Jt);qi=R(Ss)}return it(Fr.length,qi.length)?new x(Ht(Fr,qi),Jt):new x(Ke(Fr,qi),Jt)},x.prototype.times=x.prototype.multiply;function dn(Dn,Ir,Fr){return Dn<e?new x(Je(Ir,Dn),Fr):new x(Ke(Ir,R(Dn)),Fr)}b.prototype._multiplyBySmall=function(Dn){return k(Dn.value*this.value)?new b(Dn.value*this.value):dn(Math.abs(Dn.value),R(Math.abs(this.value)),this.sign!==Dn.sign)},x.prototype._multiplyBySmall=function(Dn){return Dn.value===0?_[0]:Dn.value===1?this:Dn.value===-1?this.negate():dn(Math.abs(Dn.value),this.value,this.sign!==Dn.sign)},b.prototype.multiply=function(Dn){return Aa(Dn)._multiplyBySmall(this)},b.prototype.times=b.prototype.multiply,T.prototype.multiply=function(Dn){return new T(this.value*Aa(Dn).value)},T.prototype.times=T.prototype.multiply;function Yn(Dn){var Ir=Dn.length,Fr=U(Ir+Ir),qi=e,Jt,Ss,po,Ei,to;for(po=0;po<Ir;po++){Ei=Dn[po],Ss=0-Ei*Ei;for(var yc=po;yc<Ir;yc++)to=Dn[yc],Jt=2*(Ei*to)+Fr[po+yc]+Ss,Ss=Math.floor(Jt/qi),Fr[po+yc]=Jt-Ss*qi;Fr[po+Ir]=Ss}return j(Fr),Fr}x.prototype.square=function(){return new x(Yn(this.value),!1)},b.prototype.square=function(){var Dn=this.value*this.value;return k(Dn)?new b(Dn):new x(Yn(R(Math.abs(this.value))),!1)},T.prototype.square=function(Dn){return new T(this.value*this.value)};function Zt(Dn,Ir){var Fr=Dn.length,qi=Ir.length,Jt=e,Ss=U(Ir.length),po=Ir[qi-1],Ei=Math.ceil(Jt/(2*po)),to=Je(Dn,Ei),yc=Je(Ir,Ei),Ep,Gd,Hm,Hh,F_,Kp,Cl;for(to.length<=Fr&&to.push(0),yc.push(0),po=yc[qi-1],Gd=Fr-qi;Gd>=0;Gd--){for(Ep=Jt-1,to[Gd+qi]!==po&&(Ep=Math.floor((to[Gd+qi]*Jt+to[Gd+qi-1])/po)),Hm=0,Hh=0,Kp=yc.length,F_=0;F_<Kp;F_++)Hm+=Ep*yc[F_],Cl=Math.floor(Hm/Jt),Hh+=to[Gd+F_]-(Hm-Cl*Jt),Hm=Cl,Hh<0?(to[Gd+F_]=Hh+Jt,Hh=-1):(to[Gd+F_]=Hh,Hh=0);for(;Hh!==0;){for(Ep-=1,Hm=0,F_=0;F_<Kp;F_++)Hm+=to[Gd+F_]-Jt+yc[F_],Hm<0?(to[Gd+F_]=Hm+Jt,Hm=0):(to[Gd+F_]=Hm,Hm=1);Hh+=Hm}Ss[Gd]=Ep}return to=Cn(to,Ei)[0],[O(Ss),O(to)]}function Dr(Dn,Ir){for(var Fr=Dn.length,qi=Ir.length,Jt=[],Ss=[],po=e,Ei,to,yc,Ep,Gd;Fr;){if(Ss.unshift(Dn[--Fr]),j(Ss),pr(Ss,Ir)<0){Jt.push(0);continue}to=Ss.length,yc=Ss[to-1]*po+Ss[to-2],Ep=Ir[qi-1]*po+Ir[qi-2],to>qi&&(yc=(yc+1)*po),Ei=Math.ceil(yc/Ep);do{if(Gd=Je(Ir,Ei),pr(Gd,Ss)<=0)break;Ei--}while(Ei);Jt.push(Ei),Ss=ye(Ss,Gd)}return Jt.reverse(),[O(Jt),O(Ss)]}function Cn(Dn,Ir){var Fr=Dn.length,qi=U(Fr),Jt=e,Ss,po,Ei,to;for(Ei=0,Ss=Fr-1;Ss>=0;--Ss)to=Ei*Jt+Dn[Ss],po=K(to/Ir),Ei=to-po*Ir,qi[Ss]=po|0;return[qi,Ei|0]}function mr(Dn,Ir){var Fr,qi=Aa(Ir);if(f)return[new T(Dn.value/qi.value),new T(Dn.value%qi.value)];var Jt=Dn.value,Ss=qi.value,po;if(Ss===0)throw new Error("Cannot divide by zero");if(Dn.isSmall)return qi.isSmall?[new b(K(Jt/Ss)),new b(Jt%Ss)]:[_[0],Dn];if(qi.isSmall){if(Ss===1)return[Dn,_[0]];if(Ss==-1)return[Dn.negate(),_[0]];var Ei=Math.abs(Ss);if(Ei<e){Fr=Cn(Jt,Ei),po=O(Fr[0]);var to=Fr[1];return Dn.sign&&(to=-to),typeof po=="number"?(Dn.sign!==qi.sign&&(po=-po),[new b(po),new b(to)]):[new x(po,Dn.sign!==qi.sign),new b(to)]}Ss=R(Ei)}var yc=pr(Jt,Ss);if(yc===-1)return[_[0],Dn];if(yc===0)return[_[Dn.sign===qi.sign?1:-1],_[0]];Jt.length+Ss.length<=200?Fr=Zt(Jt,Ss):Fr=Dr(Jt,Ss),po=Fr[0];var Ep=Dn.sign!==qi.sign,Gd=Fr[1],Hm=Dn.sign;return typeof po=="number"?(Ep&&(po=-po),po=new b(po)):po=new x(po,Ep),typeof Gd=="number"?(Hm&&(Gd=-Gd),Gd=new b(Gd)):Gd=new x(Gd,Hm),[po,Gd]}x.prototype.divmod=function(Dn){var Ir=mr(this,Dn);return{quotient:Ir[0],remainder:Ir[1]}},T.prototype.divmod=b.prototype.divmod=x.prototype.divmod,x.prototype.divide=function(Dn){return mr(this,Dn)[0]},T.prototype.over=T.prototype.divide=function(Dn){return new T(this.value/Aa(Dn).value)},b.prototype.over=b.prototype.divide=x.prototype.over=x.prototype.divide,x.prototype.mod=function(Dn){return mr(this,Dn)[1]},T.prototype.mod=T.prototype.remainder=function(Dn){return new T(this.value%Aa(Dn).value)},b.prototype.remainder=b.prototype.mod=x.prototype.remainder=x.prototype.mod,x.prototype.pow=function(Dn){var Ir=Aa(Dn),Fr=this.value,qi=Ir.value,Jt,Ss,po;if(qi===0)return _[1];if(Fr===0)return _[0];if(Fr===1)return _[1];if(Fr===-1)return Ir.isEven()?_[1]:_[-1];if(Ir.sign)return _[0];if(!Ir.isSmall)throw new Error("The exponent "+Ir.toString()+" is too large.");if(this.isSmall&&k(Jt=Math.pow(Fr,qi)))return new b(K(Jt));for(Ss=this,po=_[1];qi&!0&&(po=po.times(Ss),--qi),qi!==0;)qi/=2,Ss=Ss.square();return po},b.prototype.pow=x.prototype.pow,T.prototype.pow=function(Dn){var Ir=Aa(Dn),Fr=this.value,qi=Ir.value,Jt=BigInt(0),Ss=BigInt(1),po=BigInt(2);if(qi===Jt)return _[1];if(Fr===Jt)return _[0];if(Fr===Ss)return _[1];if(Fr===BigInt(-1))return Ir.isEven()?_[1]:_[-1];if(Ir.isNegative())return new T(Jt);for(var Ei=this,to=_[1];(qi&Ss)===Ss&&(to=to.times(Ei),--qi),qi!==Jt;)qi/=po,Ei=Ei.square();return to},x.prototype.modPow=function(Dn,Ir){if(Dn=Aa(Dn),Ir=Aa(Ir),Ir.isZero())throw new Error("Cannot take modPow with modulus 0");var Fr=_[1],qi=this.mod(Ir);for(Dn.isNegative()&&(Dn=Dn.multiply(_[-1]),qi=qi.modInv(Ir));Dn.isPositive();){if(qi.isZero())return _[0];Dn.isOdd()&&(Fr=Fr.multiply(qi).mod(Ir)),Dn=Dn.divide(2),qi=qi.square().mod(Ir)}return Fr},T.prototype.modPow=b.prototype.modPow=x.prototype.modPow;function pr(Dn,Ir){if(Dn.length!==Ir.length)return Dn.length>Ir.length?1:-1;for(var Fr=Dn.length-1;Fr>=0;Fr--)if(Dn[Fr]!==Ir[Fr])return Dn[Fr]>Ir[Fr]?1:-1;return 0}x.prototype.compareAbs=function(Dn){var Ir=Aa(Dn),Fr=this.value,qi=Ir.value;return Ir.isSmall?1:pr(Fr,qi)},b.prototype.compareAbs=function(Dn){var Ir=Aa(Dn),Fr=Math.abs(this.value),qi=Ir.value;return Ir.isSmall?(qi=Math.abs(qi),Fr===qi?0:Fr>qi?1:-1):-1},T.prototype.compareAbs=function(Dn){var Ir=this.value,Fr=Aa(Dn).value;return Ir=Ir>=0?Ir:-Ir,Fr=Fr>=0?Fr:-Fr,Ir===Fr?0:Ir>Fr?1:-1},x.prototype.compare=function(Dn){if(Dn===1/0)return-1;if(Dn===-1/0)return 1;var Ir=Aa(Dn),Fr=this.value,qi=Ir.value;return this.sign!==Ir.sign?Ir.sign?1:-1:Ir.isSmall?this.sign?-1:1:pr(Fr,qi)*(this.sign?-1:1)},x.prototype.compareTo=x.prototype.compare,b.prototype.compare=function(Dn){if(Dn===1/0)return-1;if(Dn===-1/0)return 1;var Ir=Aa(Dn),Fr=this.value,qi=Ir.value;return Ir.isSmall?Fr==qi?0:Fr>qi?1:-1:Fr<0!==Ir.sign?Fr<0?-1:1:Fr<0?1:-1},b.prototype.compareTo=b.prototype.compare,T.prototype.compare=function(Dn){if(Dn===1/0)return-1;if(Dn===-1/0)return 1;var Ir=this.value,Fr=Aa(Dn).value;return Ir===Fr?0:Ir>Fr?1:-1},T.prototype.compareTo=T.prototype.compare,x.prototype.equals=function(Dn){return this.compare(Dn)===0},T.prototype.eq=T.prototype.equals=b.prototype.eq=b.prototype.equals=x.prototype.eq=x.prototype.equals,x.prototype.notEquals=function(Dn){return this.compare(Dn)!==0},T.prototype.neq=T.prototype.notEquals=b.prototype.neq=b.prototype.notEquals=x.prototype.neq=x.prototype.notEquals,x.prototype.greater=function(Dn){return this.compare(Dn)>0},T.prototype.gt=T.prototype.greater=b.prototype.gt=b.prototype.greater=x.prototype.gt=x.prototype.greater,x.prototype.lesser=function(Dn){return this.compare(Dn)<0},T.prototype.lt=T.prototype.lesser=b.prototype.lt=b.prototype.lesser=x.prototype.lt=x.prototype.lesser,x.prototype.greaterOrEquals=function(Dn){return this.compare(Dn)>=0},T.prototype.geq=T.prototype.greaterOrEquals=b.prototype.geq=b.prototype.greaterOrEquals=x.prototype.geq=x.prototype.greaterOrEquals,x.prototype.lesserOrEquals=function(Dn){return this.compare(Dn)<=0},T.prototype.leq=T.prototype.lesserOrEquals=b.prototype.leq=b.prototype.lesserOrEquals=x.prototype.leq=x.prototype.lesserOrEquals,x.prototype.isEven=function(){return(this.value[0]&1)===0},b.prototype.isEven=function(){return(this.value&1)===0},T.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},x.prototype.isOdd=function(){return(this.value[0]&1)===1},b.prototype.isOdd=function(){return(this.value&1)===1},T.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},x.prototype.isPositive=function(){return!this.sign},b.prototype.isPositive=function(){return this.value>0},T.prototype.isPositive=b.prototype.isPositive,x.prototype.isNegative=function(){return this.sign},b.prototype.isNegative=function(){return this.value<0},T.prototype.isNegative=b.prototype.isNegative,x.prototype.isUnit=function(){return!1},b.prototype.isUnit=function(){return Math.abs(this.value)===1},T.prototype.isUnit=function(){return this.abs().value===BigInt(1)},x.prototype.isZero=function(){return!1},b.prototype.isZero=function(){return this.value===0},T.prototype.isZero=function(){return this.value===BigInt(0)},x.prototype.isDivisibleBy=function(Dn){var Ir=Aa(Dn);return Ir.isZero()?!1:Ir.isUnit()?!0:Ir.compareAbs(2)===0?this.isEven():this.mod(Ir).isZero()},T.prototype.isDivisibleBy=b.prototype.isDivisibleBy=x.prototype.isDivisibleBy;function aa(Dn){var Ir=Dn.abs();if(Ir.isUnit())return!1;if(Ir.equals(2)||Ir.equals(3)||Ir.equals(5))return!0;if(Ir.isEven()||Ir.isDivisibleBy(3)||Ir.isDivisibleBy(5))return!1;if(Ir.lesser(49))return!0}function Pr(Dn,Ir){for(var Fr=Dn.prev(),qi=Fr,Jt=0,Ss,po,Ei,to;qi.isEven();)qi=qi.divide(2),Jt++;e:for(Ei=0;Ei<Ir.length;Ei++)if(!Dn.lesser(Ir[Ei])&&(to=_z(Ir[Ei]).modPow(qi,Dn),!(to.isUnit()||to.equals(Fr)))){for(Ss=Jt-1;Ss!=0;Ss--){if(to=to.square().mod(Dn),to.isUnit())return!1;if(to.equals(Fr))continue e}return!1}return!0}x.prototype.isPrime=function(Dn){var Ir=aa(this);if(Ir!==t)return Ir;var Fr=this.abs(),qi=Fr.bitLength();if(qi<=64)return Pr(Fr,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var Jt=Math.log(2)*qi.toJSNumber(),Ss=Math.ceil(Dn===!0?2*Math.pow(Jt,2):Jt),po=[],Ei=0;Ei<Ss;Ei++)po.push(_z(Ei+2));return Pr(Fr,po)},T.prototype.isPrime=b.prototype.isPrime=x.prototype.isPrime,x.prototype.isProbablePrime=function(Dn,Ir){var Fr=aa(this);if(Fr!==t)return Fr;for(var qi=this.abs(),Jt=Dn===t?5:Dn,Ss=[],po=0;po<Jt;po++)Ss.push(_z.randBetween(2,qi.minus(2),Ir));return Pr(qi,Ss)},T.prototype.isProbablePrime=b.prototype.isProbablePrime=x.prototype.isProbablePrime,x.prototype.modInv=function(Dn){for(var Ir=_z.zero,Fr=_z.one,qi=Aa(Dn),Jt=this.abs(),Ss,po,Ei;!Jt.isZero();)Ss=qi.divide(Jt),po=Ir,Ei=qi,Ir=Fr,qi=Jt,Fr=po.subtract(Ss.multiply(Fr)),Jt=Ei.subtract(Ss.multiply(Jt));if(!qi.isUnit())throw new Error(this.toString()+" and "+Dn.toString()+" are not co-prime");return Ir.compare(0)===-1&&(Ir=Ir.add(Dn)),this.isNegative()?Ir.negate():Ir},T.prototype.modInv=b.prototype.modInv=x.prototype.modInv,x.prototype.next=function(){var Dn=this.value;return this.sign?yt(Dn,1,this.sign):new x(Pe(Dn,1),this.sign)},b.prototype.next=function(){var Dn=this.value;return Dn+1<r?new b(Dn+1):new x(a,!1)},T.prototype.next=function(){return new T(this.value+BigInt(1))},x.prototype.prev=function(){var Dn=this.value;return this.sign?new x(Pe(Dn,1),!0):yt(Dn,1,this.sign)},b.prototype.prev=function(){var Dn=this.value;return Dn-1>-r?new b(Dn-1):new x(a,!0)},T.prototype.prev=function(){return new T(this.value-BigInt(1))};for(var ls=[1];2*ls[ls.length-1]<=e;)ls.push(2*ls[ls.length-1]);var Ai=ls.length,Rn=ls[Ai-1];function Qi(Dn){return Math.abs(Dn)<=e}x.prototype.shiftLeft=function(Dn){var Ir=Aa(Dn).toJSNumber();if(!Qi(Ir))throw new Error(String(Ir)+" is too large for shifting.");if(Ir<0)return this.shiftRight(-Ir);var Fr=this;if(Fr.isZero())return Fr;for(;Ir>=Ai;)Fr=Fr.multiply(Rn),Ir-=Ai-1;return Fr.multiply(ls[Ir])},T.prototype.shiftLeft=b.prototype.shiftLeft=x.prototype.shiftLeft,x.prototype.shiftRight=function(Dn){var Ir,Fr=Aa(Dn).toJSNumber();if(!Qi(Fr))throw new Error(String(Fr)+" is too large for shifting.");if(Fr<0)return this.shiftLeft(-Fr);for(var qi=this;Fr>=Ai;){if(qi.isZero()||qi.isNegative()&&qi.isUnit())return qi;Ir=mr(qi,Rn),qi=Ir[1].isNegative()?Ir[0].prev():Ir[0],Fr-=Ai-1}return Ir=mr(qi,ls[Fr]),Ir[1].isNegative()?Ir[0].prev():Ir[0]},T.prototype.shiftRight=b.prototype.shiftRight=x.prototype.shiftRight;function Ca(Dn,Ir,Fr){Ir=Aa(Ir);for(var qi=Dn.isNegative(),Jt=Ir.isNegative(),Ss=qi?Dn.not():Dn,po=Jt?Ir.not():Ir,Ei=0,to=0,yc=null,Ep=null,Gd=[];!Ss.isZero()||!po.isZero();)yc=mr(Ss,Rn),Ei=yc[1].toJSNumber(),qi&&(Ei=Rn-1-Ei),Ep=mr(po,Rn),to=Ep[1].toJSNumber(),Jt&&(to=Rn-1-to),Ss=yc[0],po=Ep[0],Gd.push(Fr(Ei,to));for(var Hm=Fr(qi?1:0,Jt?1:0)!==0?_z(-1):_z(0),Hh=Gd.length-1;Hh>=0;Hh-=1)Hm=Hm.multiply(Rn).add(_z(Gd[Hh]));return Hm}x.prototype.not=function(){return this.negate().prev()},T.prototype.not=b.prototype.not=x.prototype.not,x.prototype.and=function(Dn){return Ca(this,Dn,function(Ir,Fr){return Ir&Fr})},T.prototype.and=b.prototype.and=x.prototype.and,x.prototype.or=function(Dn){return Ca(this,Dn,function(Ir,Fr){return Ir|Fr})},T.prototype.or=b.prototype.or=x.prototype.or,x.prototype.xor=function(Dn){return Ca(this,Dn,function(Ir,Fr){return Ir^Fr})},T.prototype.xor=b.prototype.xor=x.prototype.xor;var La=1<<30,Ta=(e&-e)*(e&-e)|La;function jo(Dn){var Ir=Dn.value,Fr=typeof Ir=="number"?Ir|La:typeof Ir=="bigint"?Ir|BigInt(La):Ir[0]+Ir[1]*e|Ta;return Fr&-Fr}function rl(Dn,Ir){if(Ir.compareTo(Dn)<=0){var Fr=rl(Dn,Ir.square(Ir)),qi=Fr.p,Jt=Fr.e,Ss=qi.multiply(Ir);return Ss.compareTo(Dn)<=0?{p:Ss,e:Jt*2+1}:{p:qi,e:Jt*2}}return{p:_z(1),e:0}}x.prototype.bitLength=function(){var Dn=this;return Dn.compareTo(_z(0))<0&&(Dn=Dn.negate().subtract(_z(1))),Dn.compareTo(_z(0))===0?_z(0):_z(rl(Dn,_z(2)).e).add(_z(1))},T.prototype.bitLength=b.prototype.bitLength=x.prototype.bitLength;function _u(Dn,Ir){return Dn=Aa(Dn),Ir=Aa(Ir),Dn.greater(Ir)?Dn:Ir}function $t(Dn,Ir){return Dn=Aa(Dn),Ir=Aa(Ir),Dn.lesser(Ir)?Dn:Ir}function kl(Dn,Ir){if(Dn=Aa(Dn).abs(),Ir=Aa(Ir).abs(),Dn.equals(Ir))return Dn;if(Dn.isZero())return Ir;if(Ir.isZero())return Dn;for(var Fr=_[1],qi,Jt;Dn.isEven()&&Ir.isEven();)qi=$t(jo(Dn),jo(Ir)),Dn=Dn.divide(qi),Ir=Ir.divide(qi),Fr=Fr.multiply(qi);for(;Dn.isEven();)Dn=Dn.divide(jo(Dn));do{for(;Ir.isEven();)Ir=Ir.divide(jo(Ir));Dn.greater(Ir)&&(Jt=Ir,Ir=Dn,Dn=Jt),Ir=Ir.subtract(Dn)}while(!Ir.isZero());return Fr.isUnit()?Dn:Dn.multiply(Fr)}function Ra(Dn,Ir){return Dn=Aa(Dn).abs(),Ir=Aa(Ir).abs(),Dn.divide(kl(Dn,Ir)).multiply(Ir)}function fc(Dn,Ir,Fr){Dn=Aa(Dn),Ir=Aa(Ir);var qi=Fr||Math.random,Jt=$t(Dn,Ir),Ss=_u(Dn,Ir),po=Ss.subtract(Jt).add(1);if(po.isSmall)return Jt.add(Math.floor(qi()*po));for(var Ei=ul(po,e).value,to=[],yc=!0,Ep=0;Ep<Ei.length;Ep++){var Gd=yc?Ei[Ep]+(Ep+1<Ei.length?Ei[Ep+1]/e:0):e,Hm=K(qi()*Gd);to.push(Hm),Hm<Ei[Ep]&&(yc=!1)}return Jt.add(_.fromArray(to,e,!1))}var Es=function(Dn,Ir,Fr,qi){Fr=Fr||c,Dn=String(Dn),qi||(Dn=Dn.toLowerCase(),Fr=Fr.toLowerCase());var Jt=Dn.length,Ss,po=Math.abs(Ir),Ei={};for(Ss=0;Ss<Fr.length;Ss++)Ei[Fr[Ss]]=Ss;for(Ss=0;Ss<Jt;Ss++){var to=Dn[Ss];if(to!=="-"&&to in Ei&&Ei[to]>=po){if(to==="1"&&po===1)continue;throw new Error(to+" is not a valid digit in base "+Ir+".")}}Ir=Aa(Ir);var yc=[],Ep=Dn[0]==="-";for(Ss=Ep?1:0;Ss<Dn.length;Ss++){var to=Dn[Ss];if(to in Ei)yc.push(Aa(Ei[to]));else if(to==="<"){var Gd=Ss;do Ss++;while(Dn[Ss]!==">"&&Ss<Dn.length);yc.push(Aa(Dn.slice(Gd+1,Ss)))}else throw new Error(to+" is not a valid character")}return bo(yc,Ir,Ep)};function bo(Dn,Ir,Fr){var qi=_[0],Jt=_[1],Ss;for(Ss=Dn.length-1;Ss>=0;Ss--)qi=qi.add(Dn[Ss].times(Jt)),Jt=Jt.times(Ir);return Fr?qi.negate():qi}function Xu(Dn,Ir){return Ir=Ir||c,Dn<Ir.length?Ir[Dn]:"<"+Dn+">"}function ul(Dn,Ir){if(Ir=_z(Ir),Ir.isZero()){if(Dn.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(Ir.equals(-1)){if(Dn.isZero())return{value:[0],isNegative:!1};if(Dn.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-Dn.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var Fr=Array.apply(null,Array(Dn.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return Fr.unshift([1]),{value:[].concat.apply([],Fr),isNegative:!1}}var qi=!1;if(Dn.isNegative()&&Ir.isPositive()&&(qi=!0,Dn=Dn.abs()),Ir.isUnit())return Dn.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(Dn.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:qi};for(var Jt=[],Ss=Dn,po;Ss.isNegative()||Ss.compareAbs(Ir)>=0;){po=Ss.divmod(Ir),Ss=po.quotient;var Ei=po.remainder;Ei.isNegative()&&(Ei=Ir.minus(Ei).abs(),Ss=Ss.next()),Jt.push(Ei.toJSNumber())}return Jt.push(Ss.toJSNumber()),{value:Jt.reverse(),isNegative:qi}}function ma(Dn,Ir,Fr){var qi=ul(Dn,Ir);return(qi.isNegative?"-":"")+qi.value.map(function(Jt){return Xu(Jt,Fr)}).join("")}x.prototype.toArray=function(Dn){return ul(this,Dn)},b.prototype.toArray=function(Dn){return ul(this,Dn)},T.prototype.toArray=function(Dn){return ul(this,Dn)},x.prototype.toString=function(Dn,Ir){if(Dn===t&&(Dn=10),Dn!==10||Ir)return ma(this,Dn,Ir);for(var Fr=this.value,qi=Fr.length,Jt=String(Fr[--qi]),Ss="0000000",po;--qi>=0;)po=String(Fr[qi]),Jt+=Ss.slice(po.length)+po;var Ei=this.sign?"-":"";return Ei+Jt},b.prototype.toString=function(Dn,Ir){return Dn===t&&(Dn=10),Dn!=10||Ir?ma(this,Dn,Ir):String(this.value)},T.prototype.toString=b.prototype.toString,T.prototype.toJSON=x.prototype.toJSON=b.prototype.toJSON=function(){return this.toString()},x.prototype.valueOf=function(){return parseInt(this.toString(),10)},x.prototype.toJSNumber=x.prototype.valueOf,b.prototype.valueOf=function(){return this.value},b.prototype.toJSNumber=b.prototype.valueOf,T.prototype.valueOf=T.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function nl(Dn){if(k(+Dn)){var Ir=+Dn;if(Ir===K(Ir))return f?new T(BigInt(Ir)):new b(Ir);throw new Error("Invalid integer: "+Dn)}var Fr=Dn[0]==="-";Fr&&(Dn=Dn.slice(1));var qi=Dn.split(/e/i);if(qi.length>2)throw new Error("Invalid integer: "+qi.join("e"));if(qi.length===2){var Jt=qi[1];if(Jt[0]==="+"&&(Jt=Jt.slice(1)),Jt=+Jt,Jt!==K(Jt)||!k(Jt))throw new Error("Invalid integer: "+Jt+" is not a valid exponent.");var Ss=qi[0],po=Ss.indexOf(".");if(po>=0&&(Jt-=Ss.length-po-1,Ss=Ss.slice(0,po)+Ss.slice(po+1)),Jt<0)throw new Error("Cannot include negative exponent part for integers");Ss+=new Array(Jt+1).join("0"),Dn=Ss}var Ei=/^([0-9][0-9]*)$/.test(Dn);if(!Ei)throw new Error("Invalid integer: "+Dn);if(f)return new T(BigInt(Fr?"-"+Dn:Dn));for(var to=[],yc=Dn.length,Ep=n,Gd=yc-Ep;yc>0;)to.push(+Dn.slice(Gd,yc)),Gd-=Ep,Gd<0&&(Gd=0),yc-=Ep;return j(to),new x(to,Fr)}function ea(Dn){if(f)return new T(BigInt(Dn));if(k(Dn)){if(Dn!==K(Dn))throw new Error(Dn+" is not an integer.");return new b(Dn)}return nl(Dn.toString())}function Aa(Dn){return typeof Dn=="number"?ea(Dn):typeof Dn=="string"?nl(Dn):typeof Dn=="bigint"?new T(Dn):Dn}for(var Ws=0;Ws<1e3;Ws++)_[Ws]=Aa(Ws),Ws>0&&(_[-Ws]=Aa(-Ws));return _.one=_[1],_.zero=_[0],_.minusOne=_[-1],_.max=_u,_.min=$t,_.gcd=kl,_.lcm=Ra,_.isInstance=function(Dn){return Dn instanceof x||Dn instanceof b||Dn instanceof T},_.randBetween=fc,_.fromArray=function(Dn,Ir,Fr){return bo(Dn.map(Aa),Aa(Ir||10),Fr)},_}();typeof VQt<"u"&&VQt.hasOwnProperty("exports")&&(VQt.exports=_z);typeof define=="function"&&define.amd&&define(function(){return _z})});var PRr=Le((jVo,IRr)=>{var YJe=DRr(),D2s=require("stream"),zQt;function w2s(){var t=3988292384,e,n,r;for(zQt=[],n=0;n<256;n++){for(e=n,r=0;r<8;r++)e=e&1?t^e>>>1:e=e>>>1;zQt[n]=e>>>0}}function wRr(t,e){return zQt||w2s(),t.charCodeAt&&(t=t.charCodeAt(0)),YJe(e).shiftRight(8).and(16777215).xor(zQt[YJe(e).xor(t).and(255)]).value}function sTt(){if(!(this instanceof sTt))return new sTt;this.key0=305419896,this.key1=591751049,this.key2=878082192}sTt.prototype.update=function(t){this.key0=wRr(t,this.key0),this.key1=YJe(this.key0).and(255).and(4294967295).add(this.key1),this.key1=YJe(this.key1).multiply(134775813).add(1).and(4294967295).value,this.key2=wRr(YJe(this.key1).shiftRight(24).and(255),this.key2)};sTt.prototype.decryptByte=function(t){var e=YJe(this.key2).or(2);return t=t^YJe(e).multiply(YJe(e^1)).shiftRight(8).and(255),this.update(t),t};sTt.prototype.stream=function(){var t=D2s.Transform(),e=this;return t._transform=function(n,r,a){for(var c=0;c<n.length;c++)n[c]=e.decryptByte(n[c]);this.push(n),a()},t};IRr.exports=sTt});var LRr=Le((GVo,NRr)=>{var I2s=jJe(),P2s=PRr(),k2s=lQt(),kRr=require("stream"),N2s=require("zlib"),L2s=uQt(),R2s=fQt(),O2s=iMt();NRr.exports=function(e,n,r,a,c){var f=k2s(),_=kRr.PassThrough(),x=e.stream(n,c);return x.pipe(f).on("error",function(b){_.emit("error",b)}),_.vars=f.pull(30).then(function(b){var T=O2s.parse(b,[["signature",4],["versionsNeededToExtract",2],["flags",2],["compressionMethod",2],["lastModifiedTime",2],["lastModifiedDate",2],["crc32",4],["compressedSize",4],["uncompressedSize",4],["fileNameLength",2],["extraFieldLength",2]]);return T.lastModifiedDateTime=R2s(T.lastModifiedDate,T.lastModifiedTime),f.pull(T.fileNameLength).then(function(k){return T.fileName=k.toString("utf8"),f.pull(T.extraFieldLength)}).then(function(k){var R;return T.extra=L2s(k,T),a&&a.compressedSize&&(T=a),T.flags&1&&(R=f.pull(12).then(function(O){if(!r)throw new Error("MISSING_PASSWORD");var j=P2s();String(r).split("").forEach(function(Z){j.update(Z)});for(var U=0;U<O.length;U++)O[U]=j.decryptByte(O[U]);T.decrypt=j,T.compressedSize-=12;var K=T.flags&8?T.lastModifiedTime>>8&255:T.crc32>>24&255;if(O[11]!==K)throw new Error("BAD_PASSWORD");return T})),I2s.resolve(R).then(function(){return _.emit("vars",T),T})})}),_.vars.then(function(b){var T=!(b.flags&8)||b.compressedSize>0,k,R=b.compressionMethod?N2s.createInflateRaw():kRr.PassThrough();T?(_.size=b.uncompressedSize,k=b.compressedSize):(k=Buffer.alloc(4),k.writeUInt32LE(134695760,0));var O=f.stream(k);b.decrypt&&(O=O.pipe(b.decrypt.stream())),O.pipe(R).on("error",function(j){_.emit("error",j)}).pipe(_).on("finish",function(){x.destroy?x.destroy():x.abort?x.abort():x.close?x.close():x.push?x.push():console.log("warning - unable to close stream")})}).catch(function(b){_.emit("error",b)}),_}});var MRr=Le((UVo,ORr)=>{var wMt=lQt(),M2s=LRr(),DMt=jJe(),F2s=cQt(),B2s=uQt(),O8n=require("path"),W2s=L8n().Writer,j2s=fQt(),IMt=iMt(),RRr=Buffer.alloc(4);RRr.writeUInt32LE(101010256,0);function G2s(t){var e=t.stream(0).pipe(wMt());return e.pull(4).then(function(n){var r=n.readUInt32LE(0);if(r===875721283){var a;return e.pull(12).then(function(c){a=IMt.parse(c,[["version",4],["pubKeyLength",4],["signatureLength",4]])}).then(function(){return e.pull(a.pubKeyLength+a.signatureLength)}).then(function(c){return a.publicKey=c.slice(0,a.pubKeyLength),a.signature=c.slice(a.pubKeyLength),a.size=16+a.pubKeyLength+a.signatureLength,a})}})}function U2s(t,e){var n=IMt.parse(e,[["signature",4],["diskNumber",4],["offsetToStartOfCentralDirectory",8],["numberOfDisks",4]]);if(n.signature!=117853008)throw new Error("invalid zip64 end of central dir locator signature (0x07064b50): 0x"+n.signature.toString(16));var r=wMt();return t.stream(n.offsetToStartOfCentralDirectory).pipe(r),r.pull(56)}function V2s(t){var e=IMt.parse(t,[["signature",4],["sizeOfCentralDirectory",8],["version",2],["versionsNeededToExtract",2],["diskNumber",4],["diskStart",4],["numberOfRecordsOnDisk",8],["numberOfRecords",8],["sizeOfCentralDirectory",8],["offsetToStartOfCentralDirectory",8]]);if(e.signature!=101075792)throw new Error("invalid zip64 end of central dir locator signature (0x06064b50): 0x0"+e.signature.toString(16));return e}ORr.exports=function(e,n){var r=wMt(),a=wMt(),c=n&&n.tailSize||80,f,_,x,b;return n&&n.crx&&(_=G2s(e)),e.size().then(function(T){return f=T,e.stream(Math.max(0,T-c)).on("error",function(k){r.emit("error",k)}).pipe(r),r.pull(RRr)}).then(function(){return DMt.props({directory:r.pull(22),crxHeader:_})}).then(function(T){var k=T.directory;if(x=T.crxHeader&&T.crxHeader.size||0,b=IMt.parse(k,[["signature",4],["diskNumber",2],["diskStart",2],["numberOfRecordsOnDisk",2],["numberOfRecords",2],["sizeOfCentralDirectory",4],["offsetToStartOfCentralDirectory",4],["commentLength",2]]),b.numberOfRecords==65535||b.numberOfRecords==65535||b.offsetToStartOfCentralDirectory==4294967295){let O=f-(c-r.match+20),j=wMt();return e.stream(O).pipe(j),j.pull(20).then(function(U){return U2s(e,U)}).then(function(U){b=V2s(U)})}else b.offsetToStartOfCentralDirectory+=x}).then(function(){if(b.commentLength)return r.pull(b.commentLength).then(function(T){b.comment=T.toString("utf8")})}).then(function(){return e.stream(b.offsetToStartOfCentralDirectory).pipe(a),b.extract=function(T){if(!T||!T.path)throw new Error("PATH_MISSING");return T.path=O8n.resolve(O8n.normalize(T.path)),b.files.then(function(k){return DMt.map(k,function(R){if(R.type!="Directory"){var O=O8n.join(T.path,R.path);if(O.indexOf(T.path)==0){var j=T.getWriter?T.getWriter({path:O}):W2s({path:O});return new DMt(function(U,K){R.stream(T.password).on("error",K).pipe(j).on("close",U).on("error",K)})}}},{concurrency:T.concurrency>1?T.concurrency:1})})},b.files=DMt.mapSeries(Array(b.numberOfRecords),function(){return a.pull(46).then(function(T){var k=k=IMt.parse(T,[["signature",4],["versionMadeBy",2],["versionsNeededToExtract",2],["flags",2],["compressionMethod",2],["lastModifiedTime",2],["lastModifiedDate",2],["crc32",4],["compressedSize",4],["uncompressedSize",4],["fileNameLength",2],["extraFieldLength",2],["fileCommentLength",2],["diskNumber",2],["internalFileAttributes",2],["externalFileAttributes",4],["offsetToLocalFileHeader",4]]);return k.offsetToLocalFileHeader+=x,k.lastModifiedDateTime=j2s(k.lastModifiedDate,k.lastModifiedTime),a.pull(k.fileNameLength).then(function(R){return k.pathBuffer=R,k.path=R.toString("utf8"),k.isUnicode=(k.flags&2048)!=0,a.pull(k.extraFieldLength)}).then(function(R){return k.extra=B2s(R,k),a.pull(k.fileCommentLength)}).then(function(R){k.comment=R,k.type=k.uncompressedSize===0&&/[\/\\]$/.test(k.path)?"Directory":"File";var O=n&&n.padding||1e3;return k.stream=function(j){var U=30+O+(k.extraFieldLength||0)+(k.fileNameLength||0)+k.compressedSize;return M2s(e,k.offsetToLocalFileHeader,j,k,U)},k.buffer=function(j){return F2s(k.stream(j))},k})})}),DMt.props(b)})}});var WRr=Le((VVo,BRr)=>{var FRr=nNe(),qQt=jJe(),PMt=MRr(),z2s=require("stream");BRr.exports={buffer:function(t,e){var n={stream:function(r,a){var c=z2s.PassThrough(),f=a?r+a:void 0;return c.end(t.slice(r,f)),c},size:function(){return qQt.resolve(t.length)}};return PMt(n,e)},file:function(t,e){var n={stream:function(r,a){var c=a?r+a:void 0;return FRr.createReadStream(t,{start:r,end:c})},size:function(){return new qQt(function(r,a){FRr.stat(t,function(c,f){c?a(c):r(f.size)})})}};return PMt(n,e)},url:function(t,e,n){if(typeof e=="string"&&(e={url:e}),!e.url)throw"URL missing";e.headers=e.headers||{};var r={stream:function(a,c){var f=Object.create(e),_=c?a+c:"";return f.headers=Object.create(e.headers),f.headers.range="bytes="+a+"-"+_,t(f)},size:function(){return new qQt(function(a,c){var f=t(e);f.on("response",function(_){f.abort(),_.headers["content-length"]?a(_.headers["content-length"]):c(new Error("Missing content length header"))}).on("error",c)})}};return PMt(r,n)},s3:function(t,e,n){var r={size:function(){return new qQt(function(a,c){t.headObject(e,function(f,_){f?c(f):a(_.ContentLength)})})},stream:function(a,c){var f={};for(var _ in e)f[_]=e[_];var x=c?a+c:"";return f.Range="bytes="+a+"-"+x,t.getObject(f).createReadStream()}};return PMt(r,n)},custom:function(t,e){return PMt(t,e)}}});var jRr=Le(kMt=>{"use strict";kMt.Parse=dQt();kMt.ParseOne=OLr();kMt.Extract=CRr();kMt.Open=WRr()});var q2s,M8n,F8n,GRr,iNe,URr,VRr,zRr,qRr,KRr=On(()=>{"use strict";q2s=bu(NCr(),1);ZDr();M8n=bu(ekr(),1),F8n=bu(tNr(),1),GRr=bu(jRr(),1),iNe=require("node:fs/promises"),URr=async(t,e)=>{await(0,iNe.access)(t,iNe.constants.F_OK).catch(()=>{throw new Error(`[Archiver]: source ${t} does not exist`)}),await(0,iNe.access)(e,iNe.constants.F_OK).catch(()=>(0,iNe.mkdir)(e,{recursive:!0}))},VRr=async(t,e)=>(await URr(t,e),M8n.x({file:t,cwd:e})),zRr=async(t,e)=>(await URr(t,e),await GRr.default.Open.file(t).then(n=>n.extract({path:e,concurrency:5})),e),qRr=async t=>{let e=F8n.pack();for(let{name:a,data:c}of Object.values(t))e.entry({name:a},c);e.finalize();let n=[];return e.on("data",a=>n.push(a)),await new Promise((a,c)=>{e.on("end",a),e.on("error",c)}),Buffer.from(QDr.gzip(Buffer.concat(n)))}});async function sNe(t){let{source:e,throwOnNotFound:n=!1}=t,r=await(0,HRr.readFile)((0,JRr.join)(e,".codemodrc.json"),{encoding:"utf-8"}).catch(()=>null);if(r===null){let c=`Could not locate the .codemodrc.json file at ${e}`;if(n)throw new Error(c);return{config:null,error:c}}let a;try{a=rJe(JSON.parse(r))}catch{let f=`Failed to parse the .codemodrc.json file at ${e}`;if(n)throw new Error(f);return{config:null,error:f}}return{config:a,error:null}}async function W5e(t){let{source:e,throwOnNotFound:n}=t,{config:r,error:a}=await sNe({source:e,throwOnNotFound:!1});if(r===null){if(n)throw new Error(a);return{path:null,error:a}}let c;switch(r.engine){case"ast-grep":c="**/rule.yaml";break;default:c="src/index.{ts,js}";break}let f=r.entry?`Make sure the entry point path under ${OD("entry")} key is correct in .codemodrc.json`:`Could not find an entry point under ${OD(c)}. Either create it or provide a path at ${OD("entry")} key in .codemodrc.json`,x=(await dz(r.entry??c,{absolute:!0,cwd:e,nodir:!0})).at(0)??null;if(x===null){if(n)throw new Error(f);return{path:null,error:f}}return{path:x,error:null}}var HRr,JRr,$Rr=On(()=>{"use strict";HRr=require("node:fs/promises"),JRr=require("node:path");Jge();e8t();QJt()});var XRr=On(()=>{"use strict"});var YRr=On(()=>{"use strict"});var QRr=On(()=>{"use strict"});var ZRr,e7r,wM,t7r,B8n=On(()=>{"use strict";ZRr=require("node:child_process"),e7r=require("node:util"),wM=(0,e7r.promisify)(ZRr.exec),t7r=async t=>{let e=t(),{done:n}=await e.next();return n}});async function KQt(t,e=!1){let n=null,r=null;try{let{stdout:c}=await wM("git rev-parse --show-toplevel",{cwd:t}),f=c.trim();if(f.length&&(r=f,e))return{rootPath:r}}catch{}if(r===null){let c=t;for(;;){try{await(0,uSe.access)((0,Zut.join)(c,".git"),uSe.constants.R_OK|uSe.constants.W_OK);let _=(0,Zut.join)(c,"package.json");await(0,uSe.access)(_,uSe.constants.R_OK|uSe.constants.W_OK),r=c}catch{}if(r){if(e)return{rootPath:r};break}let f=(0,Zut.dirname)(c);if(f===c)break;c=f}}let a=t;for(;;){for(let f of Object.keys(n7r))try{await(0,uSe.access)((0,Zut.join)(a,f),uSe.constants.R_OK|uSe.constants.W_OK),n=n7r[f],r===null&&(r=a);break}catch{}if(r){if(e)return{rootPath:r};break}let c=(0,Zut.dirname)(a);if(c===a)break;a=c}return{rootPath:r,detectedPackageManager:n}}var uSe,Zut,n7r,r7r=On(()=>{"use strict";uSe=require("node:fs/promises"),Zut=require("node:path");B8n();n7r={"package-lock.json":"npm","yarn.lock":"yarn","pnpm-lock.yaml":"pnpm","bun.lockb":"bun"}});var K2s,NMt,i7r,W8n=On(()=>{"use strict";Goe();K2s=XC({engine:dx("jscodeshift"),parser:TL([dx("babel"),dx("babylon"),dx("flow"),dx("ts"),dx("tsx")])}),NMt=TL([K2s]),i7r=t=>{let e=Cde(NMt,t);return e.success?e.output:null}});var s7r,j8n,G8n,a7r,U8n,o7r,LMt,eft,l7r,c7r=On(()=>{"use strict";Goe();e$t();e8t();W8n();s7r=XC({$schema:Cx(Dx()),path:Dx(),source:TL([dx("local"),dx("remote")]),type:TL([dx("standalone"),dx("package")]),safeArgumentRecord:Cx(ZJt,{}),engineOptions:Cx(LOt(NMt),null)}),j8n=XC({...s7r.entries,...XC({config:Okn}).entries}),G8n=XC({...s7r.entries,...XC({config:Mkn,codemods:Cx(fz(j8n),[])}).entries}),a7r=TL([j8n,G8n]),U8n=t=>Cde(j8n,t),o7r=t=>Cde(G8n,t),LMt=t=>GPn(G8n,t),eft=t=>LZ(a7r,t),l7r=t=>Cde(a7r,t)});var u7r=On(()=>{"use strict"});var lzo,czo,f7r=On(()=>{"use strict";Goe();lzo=XC({codemodSource:Dx(),codemodEngine:TL([dx("jscodeshift"),dx("ts-morph"),dx("workflow")]),codemodArguments:Cx(Dx()),repoUrl:Cx(Dx()),branch:Cx(Dx()),persistent:Cx(O8())}),czo=XC({jobId:Dx()})});var gz=On(()=>{"use strict";a1r();bbr();nCr();KRr();$Rr();XRr();YRr();QJt();QRr();B8n();r7r();hkn();e$t();e8t();c7r();W8n();u7r();f7r()});var H2s,d7r,p7r=On(()=>{"use strict";Goe();gz();H2s=TL([XC({kind:dx("initialization"),path:Dx(),codemodSource:Dx(),engine:TL([dx("jscodeshift"),dx("ts-morph"),dx("ast-grep"),dx("workflow")]),format:O8(),safeArgumentRecord:ZJt,engineOptions:LOt(NMt)}),XC({kind:dx("exit")}),XC({kind:dx("runCodemod"),path:Dx(),data:Dx()})]),d7r=t=>LZ(H2s,t)});var m7r=On(()=>{"use strict"});var J2s,h7r,_7r=On(()=>{"use strict";Goe();qPn();J2s=TL([XC({kind:dx("commands"),commands:zPn(),path:Cx(Dx())}),XC({kind:dx("error"),message:Dx(),path:Cx(Dx())}),XC({kind:dx("console"),consoleKind:s1r,message:Dx()})]),h7r=t=>LZ(J2s,t)});var v5=On(()=>{"use strict";$$();Ugr();$yr();t1r();qPn();p7r();m7r();_7r()});var fSe,RMt=On(()=>{fSe="0.13.9"});var g7r,y7r,V8n,$oe,OMt,qzo,tft=On(()=>{"use strict";g7r=bu(require("node:os"),1),y7r=require("node:path");v5();V8n=process.stdout.write,$oe=(0,y7r.join)(g7r.homedir(),".codemod"),OMt=$o.green("\u2714"),qzo=$o.red("\u2716")});var z8n,aTt,q8n,HQt,JQt,K8n=On(()=>{"use strict";z8n=bu(require("node:fs"),1),aTt=bu(require("node:os"),1),q8n=require("node:path");v5();gz();RMt();tft();HQt=(0,q8n.join)($oe,"logs"),JQt=async t=>{let{prefix:e,content:n,fatal:r}=t,a=(0,q8n.join)(HQt,`${r?"FATAL-":""}${new Date().toISOString()}-error.log`),c=`- CLI version: ${fSe}
|
|
863
|
+
Unsupported type: `+t.type,"ENOTSUP");t._finish()})};lye.prototype._stat=function(t){var e=this,n=e.props,r=n.follow?"stat":"lstat",a=e._proxy||e;t?c(null,t):oye[r](e._path,c);function c(f,_){if(e.filter&&!e.filter.call(a,a,_)){e._aborted=!0,e.emit("end"),e.emit("close");return}if(f||!_)return N8n(e);e._old=_;var x=yRr(_);if(x!==e.type||e.type==="File"&&_.nlink>1)return p2s(e._path,function(b){if(b)return e.error(b);e._old=null,N8n(e)});N8n(e)}};function N8n(t){m2s(CMt.dirname(t._path),lye.dirmode,function(e,n){return e?t.error(e):(t._madeDir=n,t._create())})}function vRr(t,e,n,r,a){var c=e.mode,f=e.follow||t.type!=="SymbolicLink"?"chmod":"lchmod";if(!oye[f]||typeof c!="number")return a();var _=n.mode&parseInt("0777",8);if(c=c&parseInt("0777",8),c===_)return a();oye[f](r,c,a)}function bRr(t,e,n,r,a){if(process.platform==="win32"||!process.getuid||process.getuid()!==0||typeof e.uid!="number"&&typeof e.gid!="number"||n.uid===e.uid&&n.gid===e.gid)return a();var c=t.props.follow||t.type!=="SymbolicLink"?"chown":"lchown";if(!oye[c])return a();typeof e.uid!="number"&&(e.uid=n.uid),typeof e.gid!="number"&&(e.gid=n.gid),oye[c](r,e.uid,e.gid,a)}function ERr(t,e,n,r,a){if(!oye.utimes||process.platform==="win32")return a();var c=e.follow||t.type!=="SymbolicLink"?"utimes":"lutimes";if(c==="lutimes"&&!oye[c]&&(c="utimes"),!oye[c])return a();var f=n.atime,_=n.mtime,x=e.atime,b=e.mtime;if(x===void 0&&(x=f),b===void 0&&(b=_),_Rr(x)||(x=new Date(x)),_Rr(b)||(x=new Date(b)),x.getTime()===f.getTime()&&b.getTime()===_.getTime())return a();oye[c](r,x,b,a)}lye.prototype._finish=function(){var t=this;if(t._finishing)return;t._finishing=!0;var e=0,n=null,r=!1;if(t._old)t._old.atime=new Date(0),t._old.mtime=new Date(0),c(t._old);else{var a=t.props.follow?"stat":"lstat";oye[a](t._path,function(_,x){if(_)if(_.code==="ENOENT"&&(t.type==="Link"||t.type==="SymbolicLink")&&process.platform==="win32"){t.ready=!0,t.emit("ready"),t.emit("end"),t.emit("close"),t.end=t._finish=function(){};return}else return t.error(_);c(t._old=x)})}return;function c(_){e+=3,vRr(t,t.props,_,t._path,f("chmod")),bRr(t,t.props,_,t._path,f("chown")),ERr(t,t.props,_,t._path,f("utimes"))}function f(_){return function(x){if(n)return;if(x)return x.fstream_finish_call=_,t.error(n=x);if(--e>0||r)return;if(r=!0,t._madeDir)SRr(t,t._path,b);else return b();function b(T){if(T)return T.fstream_finish_call="setupMadeDir",t.error(T);t.emit("end"),t.emit("close")}}}};function SRr(t,e,n){var r=t._madeDir,a=CMt.dirname(e);x2s(t,a,function(c){if(c)return n(c);if(a===r)return n();SRr(t,a,n)})}function x2s(t,e,n){var r={};Object.keys(t.props).forEach(function(_){r[_]=t.props[_],_==="mode"&&t.type!=="Directory"&&(r[_]=r[_]|parseInt("0111",8))});var a=3,c=null;oye.stat(e,function(_,x){if(_)return n(c=_);vRr(t,r,x,e,f),bRr(t,r,x,e,f),ERr(t,r,x,e,f)});function f(_){if(!c){if(_)return n(c=_);if(--a===0)return n()}}}lye.prototype.pipe=function(){this.error("Can't pipe from writable stream")};lye.prototype.add=function(){this.error("Can't add to non-Directory type")};lye.prototype.write=function(){return!0};function v2s(t){return Object.prototype.toString.call(t)}function _Rr(t){return typeof t=="object"&&v2s(t)==="[object Date]"}});var L8n=Le(gw=>{gw.Abstract=TQt();gw.Reader=qut();gw.Writer=iTt();gw.File={Reader:HOn(),Writer:I8n()};gw.Dir={Reader:KOn(),Writer:D8n()};gw.Link={Reader:zOn(),Writer:w8n()};gw.Proxy={Reader:$On(),Writer:k8n()};gw.Reader.Dir=gw.DirReader=gw.Dir.Reader;gw.Reader.File=gw.FileReader=gw.File.Reader;gw.Reader.Link=gw.LinkReader=gw.Link.Reader;gw.Reader.Proxy=gw.ProxyReader=gw.Proxy.Reader;gw.Writer.Dir=gw.DirWriter=gw.Dir.Writer;gw.Writer.File=gw.FileWriter=gw.File.Writer;gw.Writer.Link=gw.LinkWriter=gw.Link.Writer;gw.Writer.Proxy=gw.ProxyWriter=gw.Proxy.Writer;gw.collect=jQt()});var CRr=Le((BVo,ARr)=>{ARr.exports=C2s;var b2s=dQt(),E2s=L8n().Writer,R8n=require("path"),S2s=require("stream"),T2s=MOn(),A2s=jJe();function C2s(t){t.path=R8n.resolve(R8n.normalize(t.path));var e=new b2s(t),n=new S2s.Writable({objectMode:!0});n._write=function(a,c,f){if(a.type=="Directory")return f();var _=R8n.join(t.path,a.path.replace(/\\/g,"/"));if(_.indexOf(t.path)!=0)return f();let x=t.getWriter?t.getWriter({path:_}):E2s({path:_});a.pipe(x).on("error",f).on("close",f)};var r=T2s(e,n);return e.once("crx-header",function(a){r.crxHeader=a}),e.pipe(n).on("finish",function(){r.emit("close")}),r.promise=function(){return new A2s(function(a,c){r.on("close",a),r.on("error",c)})},r}});var DRr=Le((WVo,VQt)=>{var _z=function(t){"use strict";var e=1e7,n=7,r=9007199254740992,a=R(r),c="0123456789abcdefghijklmnopqrstuvwxyz",f=typeof BigInt=="function";function _(Dn,Ir,Fr,qi){return typeof Dn>"u"?_[0]:typeof Ir<"u"?+Ir==10&&!Fr?Aa(Dn):Es(Dn,Ir,Fr,qi):Aa(Dn)}function x(Dn,Ir){this.value=Dn,this.sign=Ir,this.isSmall=!1}x.prototype=Object.create(_.prototype);function b(Dn){this.value=Dn,this.sign=Dn<0,this.isSmall=!0}b.prototype=Object.create(_.prototype);function T(Dn){this.value=Dn}T.prototype=Object.create(_.prototype);function k(Dn){return-r<Dn&&Dn<r}function R(Dn){return Dn<1e7?[Dn]:Dn<1e14?[Dn%1e7,Math.floor(Dn/1e7)]:[Dn%1e7,Math.floor(Dn/1e7)%1e7,Math.floor(Dn/1e14)]}function O(Dn){j(Dn);var Ir=Dn.length;if(Ir<4&&pr(Dn,a)<0)switch(Ir){case 0:return 0;case 1:return Dn[0];case 2:return Dn[0]+Dn[1]*e;default:return Dn[0]+(Dn[1]+Dn[2]*e)*e}return Dn}function j(Dn){for(var Ir=Dn.length;Dn[--Ir]===0;);Dn.length=Ir+1}function U(Dn){for(var Ir=new Array(Dn),Fr=-1;++Fr<Dn;)Ir[Fr]=0;return Ir}function K(Dn){return Dn>0?Math.floor(Dn):Math.ceil(Dn)}function Z(Dn,Ir){var Fr=Dn.length,qi=Ir.length,Jt=new Array(Fr),Ss=0,po=e,Ei,to;for(to=0;to<qi;to++)Ei=Dn[to]+Ir[to]+Ss,Ss=Ei>=po?1:0,Jt[to]=Ei-Ss*po;for(;to<Fr;)Ei=Dn[to]+Ss,Ss=Ei===po?1:0,Jt[to++]=Ei-Ss*po;return Ss>0&&Jt.push(Ss),Jt}function fe(Dn,Ir){return Dn.length>=Ir.length?Z(Dn,Ir):Z(Ir,Dn)}function Pe(Dn,Ir){var Fr=Dn.length,qi=new Array(Fr),Jt=e,Ss,po;for(po=0;po<Fr;po++)Ss=Dn[po]-Jt+Ir,Ir=Math.floor(Ss/Jt),qi[po]=Ss-Ir*Jt,Ir+=1;for(;Ir>0;)qi[po++]=Ir%Jt,Ir=Math.floor(Ir/Jt);return qi}x.prototype.add=function(Dn){var Ir=Aa(Dn);if(this.sign!==Ir.sign)return this.subtract(Ir.negate());var Fr=this.value,qi=Ir.value;return Ir.isSmall?new x(Pe(Fr,Math.abs(qi)),this.sign):new x(fe(Fr,qi),this.sign)},x.prototype.plus=x.prototype.add,b.prototype.add=function(Dn){var Ir=Aa(Dn),Fr=this.value;if(Fr<0!==Ir.sign)return this.subtract(Ir.negate());var qi=Ir.value;if(Ir.isSmall){if(k(Fr+qi))return new b(Fr+qi);qi=R(Math.abs(qi))}return new x(Pe(qi,Math.abs(Fr)),Fr<0)},b.prototype.plus=b.prototype.add,T.prototype.add=function(Dn){return new T(this.value+Aa(Dn).value)},T.prototype.plus=T.prototype.add;function ye(Dn,Ir){var Fr=Dn.length,qi=Ir.length,Jt=new Array(Fr),Ss=0,po=e,Ei,to;for(Ei=0;Ei<qi;Ei++)to=Dn[Ei]-Ss-Ir[Ei],to<0?(to+=po,Ss=1):Ss=0,Jt[Ei]=to;for(Ei=qi;Ei<Fr;Ei++){if(to=Dn[Ei]-Ss,to<0)to+=po;else{Jt[Ei++]=to;break}Jt[Ei]=to}for(;Ei<Fr;Ei++)Jt[Ei]=Dn[Ei];return j(Jt),Jt}function qe(Dn,Ir,Fr){var qi;return pr(Dn,Ir)>=0?qi=ye(Dn,Ir):(qi=ye(Ir,Dn),Fr=!Fr),qi=O(qi),typeof qi=="number"?(Fr&&(qi=-qi),new b(qi)):new x(qi,Fr)}function yt(Dn,Ir,Fr){var qi=Dn.length,Jt=new Array(qi),Ss=-Ir,po=e,Ei,to;for(Ei=0;Ei<qi;Ei++)to=Dn[Ei]+Ss,Ss=Math.floor(to/po),to%=po,Jt[Ei]=to<0?to+po:to;return Jt=O(Jt),typeof Jt=="number"?(Fr&&(Jt=-Jt),new b(Jt)):new x(Jt,Fr)}x.prototype.subtract=function(Dn){var Ir=Aa(Dn);if(this.sign!==Ir.sign)return this.add(Ir.negate());var Fr=this.value,qi=Ir.value;return Ir.isSmall?yt(Fr,Math.abs(qi),this.sign):qe(Fr,qi,this.sign)},x.prototype.minus=x.prototype.subtract,b.prototype.subtract=function(Dn){var Ir=Aa(Dn),Fr=this.value;if(Fr<0!==Ir.sign)return this.add(Ir.negate());var qi=Ir.value;return Ir.isSmall?new b(Fr-qi):yt(qi,Math.abs(Fr),Fr>=0)},b.prototype.minus=b.prototype.subtract,T.prototype.subtract=function(Dn){return new T(this.value-Aa(Dn).value)},T.prototype.minus=T.prototype.subtract,x.prototype.negate=function(){return new x(this.value,!this.sign)},b.prototype.negate=function(){var Dn=this.sign,Ir=new b(-this.value);return Ir.sign=!Dn,Ir},T.prototype.negate=function(){return new T(-this.value)},x.prototype.abs=function(){return new x(this.value,!1)},b.prototype.abs=function(){return new b(Math.abs(this.value))},T.prototype.abs=function(){return new T(this.value>=0?this.value:-this.value)};function Ke(Dn,Ir){var Fr=Dn.length,qi=Ir.length,Jt=Fr+qi,Ss=U(Jt),po=e,Ei,to,yc,Ep,Gd;for(yc=0;yc<Fr;++yc){Ep=Dn[yc];for(var Hm=0;Hm<qi;++Hm)Gd=Ir[Hm],Ei=Ep*Gd+Ss[yc+Hm],to=Math.floor(Ei/po),Ss[yc+Hm]=Ei-to*po,Ss[yc+Hm+1]+=to}return j(Ss),Ss}function Je(Dn,Ir){var Fr=Dn.length,qi=new Array(Fr),Jt=e,Ss=0,po,Ei;for(Ei=0;Ei<Fr;Ei++)po=Dn[Ei]*Ir+Ss,Ss=Math.floor(po/Jt),qi[Ei]=po-Ss*Jt;for(;Ss>0;)qi[Ei++]=Ss%Jt,Ss=Math.floor(Ss/Jt);return qi}function Pt(Dn,Ir){for(var Fr=[];Ir-- >0;)Fr.push(0);return Fr.concat(Dn)}function Ht(Dn,Ir){var Fr=Math.max(Dn.length,Ir.length);if(Fr<=30)return Ke(Dn,Ir);Fr=Math.ceil(Fr/2);var qi=Dn.slice(Fr),Jt=Dn.slice(0,Fr),Ss=Ir.slice(Fr),po=Ir.slice(0,Fr),Ei=Ht(Jt,po),to=Ht(qi,Ss),yc=Ht(fe(Jt,qi),fe(po,Ss)),Ep=fe(fe(Ei,Pt(ye(ye(yc,Ei),to),Fr)),Pt(to,2*Fr));return j(Ep),Ep}function it(Dn,Ir){return-.012*Dn-.012*Ir+15e-6*Dn*Ir>0}x.prototype.multiply=function(Dn){var Ir=Aa(Dn),Fr=this.value,qi=Ir.value,Jt=this.sign!==Ir.sign,Ss;if(Ir.isSmall){if(qi===0)return _[0];if(qi===1)return this;if(qi===-1)return this.negate();if(Ss=Math.abs(qi),Ss<e)return new x(Je(Fr,Ss),Jt);qi=R(Ss)}return it(Fr.length,qi.length)?new x(Ht(Fr,qi),Jt):new x(Ke(Fr,qi),Jt)},x.prototype.times=x.prototype.multiply;function dn(Dn,Ir,Fr){return Dn<e?new x(Je(Ir,Dn),Fr):new x(Ke(Ir,R(Dn)),Fr)}b.prototype._multiplyBySmall=function(Dn){return k(Dn.value*this.value)?new b(Dn.value*this.value):dn(Math.abs(Dn.value),R(Math.abs(this.value)),this.sign!==Dn.sign)},x.prototype._multiplyBySmall=function(Dn){return Dn.value===0?_[0]:Dn.value===1?this:Dn.value===-1?this.negate():dn(Math.abs(Dn.value),this.value,this.sign!==Dn.sign)},b.prototype.multiply=function(Dn){return Aa(Dn)._multiplyBySmall(this)},b.prototype.times=b.prototype.multiply,T.prototype.multiply=function(Dn){return new T(this.value*Aa(Dn).value)},T.prototype.times=T.prototype.multiply;function Yn(Dn){var Ir=Dn.length,Fr=U(Ir+Ir),qi=e,Jt,Ss,po,Ei,to;for(po=0;po<Ir;po++){Ei=Dn[po],Ss=0-Ei*Ei;for(var yc=po;yc<Ir;yc++)to=Dn[yc],Jt=2*(Ei*to)+Fr[po+yc]+Ss,Ss=Math.floor(Jt/qi),Fr[po+yc]=Jt-Ss*qi;Fr[po+Ir]=Ss}return j(Fr),Fr}x.prototype.square=function(){return new x(Yn(this.value),!1)},b.prototype.square=function(){var Dn=this.value*this.value;return k(Dn)?new b(Dn):new x(Yn(R(Math.abs(this.value))),!1)},T.prototype.square=function(Dn){return new T(this.value*this.value)};function Zt(Dn,Ir){var Fr=Dn.length,qi=Ir.length,Jt=e,Ss=U(Ir.length),po=Ir[qi-1],Ei=Math.ceil(Jt/(2*po)),to=Je(Dn,Ei),yc=Je(Ir,Ei),Ep,Gd,Hm,Hh,F_,Kp,Cl;for(to.length<=Fr&&to.push(0),yc.push(0),po=yc[qi-1],Gd=Fr-qi;Gd>=0;Gd--){for(Ep=Jt-1,to[Gd+qi]!==po&&(Ep=Math.floor((to[Gd+qi]*Jt+to[Gd+qi-1])/po)),Hm=0,Hh=0,Kp=yc.length,F_=0;F_<Kp;F_++)Hm+=Ep*yc[F_],Cl=Math.floor(Hm/Jt),Hh+=to[Gd+F_]-(Hm-Cl*Jt),Hm=Cl,Hh<0?(to[Gd+F_]=Hh+Jt,Hh=-1):(to[Gd+F_]=Hh,Hh=0);for(;Hh!==0;){for(Ep-=1,Hm=0,F_=0;F_<Kp;F_++)Hm+=to[Gd+F_]-Jt+yc[F_],Hm<0?(to[Gd+F_]=Hm+Jt,Hm=0):(to[Gd+F_]=Hm,Hm=1);Hh+=Hm}Ss[Gd]=Ep}return to=Cn(to,Ei)[0],[O(Ss),O(to)]}function Dr(Dn,Ir){for(var Fr=Dn.length,qi=Ir.length,Jt=[],Ss=[],po=e,Ei,to,yc,Ep,Gd;Fr;){if(Ss.unshift(Dn[--Fr]),j(Ss),pr(Ss,Ir)<0){Jt.push(0);continue}to=Ss.length,yc=Ss[to-1]*po+Ss[to-2],Ep=Ir[qi-1]*po+Ir[qi-2],to>qi&&(yc=(yc+1)*po),Ei=Math.ceil(yc/Ep);do{if(Gd=Je(Ir,Ei),pr(Gd,Ss)<=0)break;Ei--}while(Ei);Jt.push(Ei),Ss=ye(Ss,Gd)}return Jt.reverse(),[O(Jt),O(Ss)]}function Cn(Dn,Ir){var Fr=Dn.length,qi=U(Fr),Jt=e,Ss,po,Ei,to;for(Ei=0,Ss=Fr-1;Ss>=0;--Ss)to=Ei*Jt+Dn[Ss],po=K(to/Ir),Ei=to-po*Ir,qi[Ss]=po|0;return[qi,Ei|0]}function mr(Dn,Ir){var Fr,qi=Aa(Ir);if(f)return[new T(Dn.value/qi.value),new T(Dn.value%qi.value)];var Jt=Dn.value,Ss=qi.value,po;if(Ss===0)throw new Error("Cannot divide by zero");if(Dn.isSmall)return qi.isSmall?[new b(K(Jt/Ss)),new b(Jt%Ss)]:[_[0],Dn];if(qi.isSmall){if(Ss===1)return[Dn,_[0]];if(Ss==-1)return[Dn.negate(),_[0]];var Ei=Math.abs(Ss);if(Ei<e){Fr=Cn(Jt,Ei),po=O(Fr[0]);var to=Fr[1];return Dn.sign&&(to=-to),typeof po=="number"?(Dn.sign!==qi.sign&&(po=-po),[new b(po),new b(to)]):[new x(po,Dn.sign!==qi.sign),new b(to)]}Ss=R(Ei)}var yc=pr(Jt,Ss);if(yc===-1)return[_[0],Dn];if(yc===0)return[_[Dn.sign===qi.sign?1:-1],_[0]];Jt.length+Ss.length<=200?Fr=Zt(Jt,Ss):Fr=Dr(Jt,Ss),po=Fr[0];var Ep=Dn.sign!==qi.sign,Gd=Fr[1],Hm=Dn.sign;return typeof po=="number"?(Ep&&(po=-po),po=new b(po)):po=new x(po,Ep),typeof Gd=="number"?(Hm&&(Gd=-Gd),Gd=new b(Gd)):Gd=new x(Gd,Hm),[po,Gd]}x.prototype.divmod=function(Dn){var Ir=mr(this,Dn);return{quotient:Ir[0],remainder:Ir[1]}},T.prototype.divmod=b.prototype.divmod=x.prototype.divmod,x.prototype.divide=function(Dn){return mr(this,Dn)[0]},T.prototype.over=T.prototype.divide=function(Dn){return new T(this.value/Aa(Dn).value)},b.prototype.over=b.prototype.divide=x.prototype.over=x.prototype.divide,x.prototype.mod=function(Dn){return mr(this,Dn)[1]},T.prototype.mod=T.prototype.remainder=function(Dn){return new T(this.value%Aa(Dn).value)},b.prototype.remainder=b.prototype.mod=x.prototype.remainder=x.prototype.mod,x.prototype.pow=function(Dn){var Ir=Aa(Dn),Fr=this.value,qi=Ir.value,Jt,Ss,po;if(qi===0)return _[1];if(Fr===0)return _[0];if(Fr===1)return _[1];if(Fr===-1)return Ir.isEven()?_[1]:_[-1];if(Ir.sign)return _[0];if(!Ir.isSmall)throw new Error("The exponent "+Ir.toString()+" is too large.");if(this.isSmall&&k(Jt=Math.pow(Fr,qi)))return new b(K(Jt));for(Ss=this,po=_[1];qi&!0&&(po=po.times(Ss),--qi),qi!==0;)qi/=2,Ss=Ss.square();return po},b.prototype.pow=x.prototype.pow,T.prototype.pow=function(Dn){var Ir=Aa(Dn),Fr=this.value,qi=Ir.value,Jt=BigInt(0),Ss=BigInt(1),po=BigInt(2);if(qi===Jt)return _[1];if(Fr===Jt)return _[0];if(Fr===Ss)return _[1];if(Fr===BigInt(-1))return Ir.isEven()?_[1]:_[-1];if(Ir.isNegative())return new T(Jt);for(var Ei=this,to=_[1];(qi&Ss)===Ss&&(to=to.times(Ei),--qi),qi!==Jt;)qi/=po,Ei=Ei.square();return to},x.prototype.modPow=function(Dn,Ir){if(Dn=Aa(Dn),Ir=Aa(Ir),Ir.isZero())throw new Error("Cannot take modPow with modulus 0");var Fr=_[1],qi=this.mod(Ir);for(Dn.isNegative()&&(Dn=Dn.multiply(_[-1]),qi=qi.modInv(Ir));Dn.isPositive();){if(qi.isZero())return _[0];Dn.isOdd()&&(Fr=Fr.multiply(qi).mod(Ir)),Dn=Dn.divide(2),qi=qi.square().mod(Ir)}return Fr},T.prototype.modPow=b.prototype.modPow=x.prototype.modPow;function pr(Dn,Ir){if(Dn.length!==Ir.length)return Dn.length>Ir.length?1:-1;for(var Fr=Dn.length-1;Fr>=0;Fr--)if(Dn[Fr]!==Ir[Fr])return Dn[Fr]>Ir[Fr]?1:-1;return 0}x.prototype.compareAbs=function(Dn){var Ir=Aa(Dn),Fr=this.value,qi=Ir.value;return Ir.isSmall?1:pr(Fr,qi)},b.prototype.compareAbs=function(Dn){var Ir=Aa(Dn),Fr=Math.abs(this.value),qi=Ir.value;return Ir.isSmall?(qi=Math.abs(qi),Fr===qi?0:Fr>qi?1:-1):-1},T.prototype.compareAbs=function(Dn){var Ir=this.value,Fr=Aa(Dn).value;return Ir=Ir>=0?Ir:-Ir,Fr=Fr>=0?Fr:-Fr,Ir===Fr?0:Ir>Fr?1:-1},x.prototype.compare=function(Dn){if(Dn===1/0)return-1;if(Dn===-1/0)return 1;var Ir=Aa(Dn),Fr=this.value,qi=Ir.value;return this.sign!==Ir.sign?Ir.sign?1:-1:Ir.isSmall?this.sign?-1:1:pr(Fr,qi)*(this.sign?-1:1)},x.prototype.compareTo=x.prototype.compare,b.prototype.compare=function(Dn){if(Dn===1/0)return-1;if(Dn===-1/0)return 1;var Ir=Aa(Dn),Fr=this.value,qi=Ir.value;return Ir.isSmall?Fr==qi?0:Fr>qi?1:-1:Fr<0!==Ir.sign?Fr<0?-1:1:Fr<0?1:-1},b.prototype.compareTo=b.prototype.compare,T.prototype.compare=function(Dn){if(Dn===1/0)return-1;if(Dn===-1/0)return 1;var Ir=this.value,Fr=Aa(Dn).value;return Ir===Fr?0:Ir>Fr?1:-1},T.prototype.compareTo=T.prototype.compare,x.prototype.equals=function(Dn){return this.compare(Dn)===0},T.prototype.eq=T.prototype.equals=b.prototype.eq=b.prototype.equals=x.prototype.eq=x.prototype.equals,x.prototype.notEquals=function(Dn){return this.compare(Dn)!==0},T.prototype.neq=T.prototype.notEquals=b.prototype.neq=b.prototype.notEquals=x.prototype.neq=x.prototype.notEquals,x.prototype.greater=function(Dn){return this.compare(Dn)>0},T.prototype.gt=T.prototype.greater=b.prototype.gt=b.prototype.greater=x.prototype.gt=x.prototype.greater,x.prototype.lesser=function(Dn){return this.compare(Dn)<0},T.prototype.lt=T.prototype.lesser=b.prototype.lt=b.prototype.lesser=x.prototype.lt=x.prototype.lesser,x.prototype.greaterOrEquals=function(Dn){return this.compare(Dn)>=0},T.prototype.geq=T.prototype.greaterOrEquals=b.prototype.geq=b.prototype.greaterOrEquals=x.prototype.geq=x.prototype.greaterOrEquals,x.prototype.lesserOrEquals=function(Dn){return this.compare(Dn)<=0},T.prototype.leq=T.prototype.lesserOrEquals=b.prototype.leq=b.prototype.lesserOrEquals=x.prototype.leq=x.prototype.lesserOrEquals,x.prototype.isEven=function(){return(this.value[0]&1)===0},b.prototype.isEven=function(){return(this.value&1)===0},T.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},x.prototype.isOdd=function(){return(this.value[0]&1)===1},b.prototype.isOdd=function(){return(this.value&1)===1},T.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},x.prototype.isPositive=function(){return!this.sign},b.prototype.isPositive=function(){return this.value>0},T.prototype.isPositive=b.prototype.isPositive,x.prototype.isNegative=function(){return this.sign},b.prototype.isNegative=function(){return this.value<0},T.prototype.isNegative=b.prototype.isNegative,x.prototype.isUnit=function(){return!1},b.prototype.isUnit=function(){return Math.abs(this.value)===1},T.prototype.isUnit=function(){return this.abs().value===BigInt(1)},x.prototype.isZero=function(){return!1},b.prototype.isZero=function(){return this.value===0},T.prototype.isZero=function(){return this.value===BigInt(0)},x.prototype.isDivisibleBy=function(Dn){var Ir=Aa(Dn);return Ir.isZero()?!1:Ir.isUnit()?!0:Ir.compareAbs(2)===0?this.isEven():this.mod(Ir).isZero()},T.prototype.isDivisibleBy=b.prototype.isDivisibleBy=x.prototype.isDivisibleBy;function aa(Dn){var Ir=Dn.abs();if(Ir.isUnit())return!1;if(Ir.equals(2)||Ir.equals(3)||Ir.equals(5))return!0;if(Ir.isEven()||Ir.isDivisibleBy(3)||Ir.isDivisibleBy(5))return!1;if(Ir.lesser(49))return!0}function Pr(Dn,Ir){for(var Fr=Dn.prev(),qi=Fr,Jt=0,Ss,po,Ei,to;qi.isEven();)qi=qi.divide(2),Jt++;e:for(Ei=0;Ei<Ir.length;Ei++)if(!Dn.lesser(Ir[Ei])&&(to=_z(Ir[Ei]).modPow(qi,Dn),!(to.isUnit()||to.equals(Fr)))){for(Ss=Jt-1;Ss!=0;Ss--){if(to=to.square().mod(Dn),to.isUnit())return!1;if(to.equals(Fr))continue e}return!1}return!0}x.prototype.isPrime=function(Dn){var Ir=aa(this);if(Ir!==t)return Ir;var Fr=this.abs(),qi=Fr.bitLength();if(qi<=64)return Pr(Fr,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var Jt=Math.log(2)*qi.toJSNumber(),Ss=Math.ceil(Dn===!0?2*Math.pow(Jt,2):Jt),po=[],Ei=0;Ei<Ss;Ei++)po.push(_z(Ei+2));return Pr(Fr,po)},T.prototype.isPrime=b.prototype.isPrime=x.prototype.isPrime,x.prototype.isProbablePrime=function(Dn,Ir){var Fr=aa(this);if(Fr!==t)return Fr;for(var qi=this.abs(),Jt=Dn===t?5:Dn,Ss=[],po=0;po<Jt;po++)Ss.push(_z.randBetween(2,qi.minus(2),Ir));return Pr(qi,Ss)},T.prototype.isProbablePrime=b.prototype.isProbablePrime=x.prototype.isProbablePrime,x.prototype.modInv=function(Dn){for(var Ir=_z.zero,Fr=_z.one,qi=Aa(Dn),Jt=this.abs(),Ss,po,Ei;!Jt.isZero();)Ss=qi.divide(Jt),po=Ir,Ei=qi,Ir=Fr,qi=Jt,Fr=po.subtract(Ss.multiply(Fr)),Jt=Ei.subtract(Ss.multiply(Jt));if(!qi.isUnit())throw new Error(this.toString()+" and "+Dn.toString()+" are not co-prime");return Ir.compare(0)===-1&&(Ir=Ir.add(Dn)),this.isNegative()?Ir.negate():Ir},T.prototype.modInv=b.prototype.modInv=x.prototype.modInv,x.prototype.next=function(){var Dn=this.value;return this.sign?yt(Dn,1,this.sign):new x(Pe(Dn,1),this.sign)},b.prototype.next=function(){var Dn=this.value;return Dn+1<r?new b(Dn+1):new x(a,!1)},T.prototype.next=function(){return new T(this.value+BigInt(1))},x.prototype.prev=function(){var Dn=this.value;return this.sign?new x(Pe(Dn,1),!0):yt(Dn,1,this.sign)},b.prototype.prev=function(){var Dn=this.value;return Dn-1>-r?new b(Dn-1):new x(a,!0)},T.prototype.prev=function(){return new T(this.value-BigInt(1))};for(var ls=[1];2*ls[ls.length-1]<=e;)ls.push(2*ls[ls.length-1]);var Ai=ls.length,Rn=ls[Ai-1];function Qi(Dn){return Math.abs(Dn)<=e}x.prototype.shiftLeft=function(Dn){var Ir=Aa(Dn).toJSNumber();if(!Qi(Ir))throw new Error(String(Ir)+" is too large for shifting.");if(Ir<0)return this.shiftRight(-Ir);var Fr=this;if(Fr.isZero())return Fr;for(;Ir>=Ai;)Fr=Fr.multiply(Rn),Ir-=Ai-1;return Fr.multiply(ls[Ir])},T.prototype.shiftLeft=b.prototype.shiftLeft=x.prototype.shiftLeft,x.prototype.shiftRight=function(Dn){var Ir,Fr=Aa(Dn).toJSNumber();if(!Qi(Fr))throw new Error(String(Fr)+" is too large for shifting.");if(Fr<0)return this.shiftLeft(-Fr);for(var qi=this;Fr>=Ai;){if(qi.isZero()||qi.isNegative()&&qi.isUnit())return qi;Ir=mr(qi,Rn),qi=Ir[1].isNegative()?Ir[0].prev():Ir[0],Fr-=Ai-1}return Ir=mr(qi,ls[Fr]),Ir[1].isNegative()?Ir[0].prev():Ir[0]},T.prototype.shiftRight=b.prototype.shiftRight=x.prototype.shiftRight;function Ca(Dn,Ir,Fr){Ir=Aa(Ir);for(var qi=Dn.isNegative(),Jt=Ir.isNegative(),Ss=qi?Dn.not():Dn,po=Jt?Ir.not():Ir,Ei=0,to=0,yc=null,Ep=null,Gd=[];!Ss.isZero()||!po.isZero();)yc=mr(Ss,Rn),Ei=yc[1].toJSNumber(),qi&&(Ei=Rn-1-Ei),Ep=mr(po,Rn),to=Ep[1].toJSNumber(),Jt&&(to=Rn-1-to),Ss=yc[0],po=Ep[0],Gd.push(Fr(Ei,to));for(var Hm=Fr(qi?1:0,Jt?1:0)!==0?_z(-1):_z(0),Hh=Gd.length-1;Hh>=0;Hh-=1)Hm=Hm.multiply(Rn).add(_z(Gd[Hh]));return Hm}x.prototype.not=function(){return this.negate().prev()},T.prototype.not=b.prototype.not=x.prototype.not,x.prototype.and=function(Dn){return Ca(this,Dn,function(Ir,Fr){return Ir&Fr})},T.prototype.and=b.prototype.and=x.prototype.and,x.prototype.or=function(Dn){return Ca(this,Dn,function(Ir,Fr){return Ir|Fr})},T.prototype.or=b.prototype.or=x.prototype.or,x.prototype.xor=function(Dn){return Ca(this,Dn,function(Ir,Fr){return Ir^Fr})},T.prototype.xor=b.prototype.xor=x.prototype.xor;var La=1<<30,Ta=(e&-e)*(e&-e)|La;function jo(Dn){var Ir=Dn.value,Fr=typeof Ir=="number"?Ir|La:typeof Ir=="bigint"?Ir|BigInt(La):Ir[0]+Ir[1]*e|Ta;return Fr&-Fr}function rl(Dn,Ir){if(Ir.compareTo(Dn)<=0){var Fr=rl(Dn,Ir.square(Ir)),qi=Fr.p,Jt=Fr.e,Ss=qi.multiply(Ir);return Ss.compareTo(Dn)<=0?{p:Ss,e:Jt*2+1}:{p:qi,e:Jt*2}}return{p:_z(1),e:0}}x.prototype.bitLength=function(){var Dn=this;return Dn.compareTo(_z(0))<0&&(Dn=Dn.negate().subtract(_z(1))),Dn.compareTo(_z(0))===0?_z(0):_z(rl(Dn,_z(2)).e).add(_z(1))},T.prototype.bitLength=b.prototype.bitLength=x.prototype.bitLength;function _u(Dn,Ir){return Dn=Aa(Dn),Ir=Aa(Ir),Dn.greater(Ir)?Dn:Ir}function $t(Dn,Ir){return Dn=Aa(Dn),Ir=Aa(Ir),Dn.lesser(Ir)?Dn:Ir}function kl(Dn,Ir){if(Dn=Aa(Dn).abs(),Ir=Aa(Ir).abs(),Dn.equals(Ir))return Dn;if(Dn.isZero())return Ir;if(Ir.isZero())return Dn;for(var Fr=_[1],qi,Jt;Dn.isEven()&&Ir.isEven();)qi=$t(jo(Dn),jo(Ir)),Dn=Dn.divide(qi),Ir=Ir.divide(qi),Fr=Fr.multiply(qi);for(;Dn.isEven();)Dn=Dn.divide(jo(Dn));do{for(;Ir.isEven();)Ir=Ir.divide(jo(Ir));Dn.greater(Ir)&&(Jt=Ir,Ir=Dn,Dn=Jt),Ir=Ir.subtract(Dn)}while(!Ir.isZero());return Fr.isUnit()?Dn:Dn.multiply(Fr)}function Ra(Dn,Ir){return Dn=Aa(Dn).abs(),Ir=Aa(Ir).abs(),Dn.divide(kl(Dn,Ir)).multiply(Ir)}function fc(Dn,Ir,Fr){Dn=Aa(Dn),Ir=Aa(Ir);var qi=Fr||Math.random,Jt=$t(Dn,Ir),Ss=_u(Dn,Ir),po=Ss.subtract(Jt).add(1);if(po.isSmall)return Jt.add(Math.floor(qi()*po));for(var Ei=ul(po,e).value,to=[],yc=!0,Ep=0;Ep<Ei.length;Ep++){var Gd=yc?Ei[Ep]+(Ep+1<Ei.length?Ei[Ep+1]/e:0):e,Hm=K(qi()*Gd);to.push(Hm),Hm<Ei[Ep]&&(yc=!1)}return Jt.add(_.fromArray(to,e,!1))}var Es=function(Dn,Ir,Fr,qi){Fr=Fr||c,Dn=String(Dn),qi||(Dn=Dn.toLowerCase(),Fr=Fr.toLowerCase());var Jt=Dn.length,Ss,po=Math.abs(Ir),Ei={};for(Ss=0;Ss<Fr.length;Ss++)Ei[Fr[Ss]]=Ss;for(Ss=0;Ss<Jt;Ss++){var to=Dn[Ss];if(to!=="-"&&to in Ei&&Ei[to]>=po){if(to==="1"&&po===1)continue;throw new Error(to+" is not a valid digit in base "+Ir+".")}}Ir=Aa(Ir);var yc=[],Ep=Dn[0]==="-";for(Ss=Ep?1:0;Ss<Dn.length;Ss++){var to=Dn[Ss];if(to in Ei)yc.push(Aa(Ei[to]));else if(to==="<"){var Gd=Ss;do Ss++;while(Dn[Ss]!==">"&&Ss<Dn.length);yc.push(Aa(Dn.slice(Gd+1,Ss)))}else throw new Error(to+" is not a valid character")}return bo(yc,Ir,Ep)};function bo(Dn,Ir,Fr){var qi=_[0],Jt=_[1],Ss;for(Ss=Dn.length-1;Ss>=0;Ss--)qi=qi.add(Dn[Ss].times(Jt)),Jt=Jt.times(Ir);return Fr?qi.negate():qi}function Xu(Dn,Ir){return Ir=Ir||c,Dn<Ir.length?Ir[Dn]:"<"+Dn+">"}function ul(Dn,Ir){if(Ir=_z(Ir),Ir.isZero()){if(Dn.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(Ir.equals(-1)){if(Dn.isZero())return{value:[0],isNegative:!1};if(Dn.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-Dn.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var Fr=Array.apply(null,Array(Dn.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return Fr.unshift([1]),{value:[].concat.apply([],Fr),isNegative:!1}}var qi=!1;if(Dn.isNegative()&&Ir.isPositive()&&(qi=!0,Dn=Dn.abs()),Ir.isUnit())return Dn.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(Dn.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:qi};for(var Jt=[],Ss=Dn,po;Ss.isNegative()||Ss.compareAbs(Ir)>=0;){po=Ss.divmod(Ir),Ss=po.quotient;var Ei=po.remainder;Ei.isNegative()&&(Ei=Ir.minus(Ei).abs(),Ss=Ss.next()),Jt.push(Ei.toJSNumber())}return Jt.push(Ss.toJSNumber()),{value:Jt.reverse(),isNegative:qi}}function ma(Dn,Ir,Fr){var qi=ul(Dn,Ir);return(qi.isNegative?"-":"")+qi.value.map(function(Jt){return Xu(Jt,Fr)}).join("")}x.prototype.toArray=function(Dn){return ul(this,Dn)},b.prototype.toArray=function(Dn){return ul(this,Dn)},T.prototype.toArray=function(Dn){return ul(this,Dn)},x.prototype.toString=function(Dn,Ir){if(Dn===t&&(Dn=10),Dn!==10||Ir)return ma(this,Dn,Ir);for(var Fr=this.value,qi=Fr.length,Jt=String(Fr[--qi]),Ss="0000000",po;--qi>=0;)po=String(Fr[qi]),Jt+=Ss.slice(po.length)+po;var Ei=this.sign?"-":"";return Ei+Jt},b.prototype.toString=function(Dn,Ir){return Dn===t&&(Dn=10),Dn!=10||Ir?ma(this,Dn,Ir):String(this.value)},T.prototype.toString=b.prototype.toString,T.prototype.toJSON=x.prototype.toJSON=b.prototype.toJSON=function(){return this.toString()},x.prototype.valueOf=function(){return parseInt(this.toString(),10)},x.prototype.toJSNumber=x.prototype.valueOf,b.prototype.valueOf=function(){return this.value},b.prototype.toJSNumber=b.prototype.valueOf,T.prototype.valueOf=T.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function nl(Dn){if(k(+Dn)){var Ir=+Dn;if(Ir===K(Ir))return f?new T(BigInt(Ir)):new b(Ir);throw new Error("Invalid integer: "+Dn)}var Fr=Dn[0]==="-";Fr&&(Dn=Dn.slice(1));var qi=Dn.split(/e/i);if(qi.length>2)throw new Error("Invalid integer: "+qi.join("e"));if(qi.length===2){var Jt=qi[1];if(Jt[0]==="+"&&(Jt=Jt.slice(1)),Jt=+Jt,Jt!==K(Jt)||!k(Jt))throw new Error("Invalid integer: "+Jt+" is not a valid exponent.");var Ss=qi[0],po=Ss.indexOf(".");if(po>=0&&(Jt-=Ss.length-po-1,Ss=Ss.slice(0,po)+Ss.slice(po+1)),Jt<0)throw new Error("Cannot include negative exponent part for integers");Ss+=new Array(Jt+1).join("0"),Dn=Ss}var Ei=/^([0-9][0-9]*)$/.test(Dn);if(!Ei)throw new Error("Invalid integer: "+Dn);if(f)return new T(BigInt(Fr?"-"+Dn:Dn));for(var to=[],yc=Dn.length,Ep=n,Gd=yc-Ep;yc>0;)to.push(+Dn.slice(Gd,yc)),Gd-=Ep,Gd<0&&(Gd=0),yc-=Ep;return j(to),new x(to,Fr)}function ea(Dn){if(f)return new T(BigInt(Dn));if(k(Dn)){if(Dn!==K(Dn))throw new Error(Dn+" is not an integer.");return new b(Dn)}return nl(Dn.toString())}function Aa(Dn){return typeof Dn=="number"?ea(Dn):typeof Dn=="string"?nl(Dn):typeof Dn=="bigint"?new T(Dn):Dn}for(var Ws=0;Ws<1e3;Ws++)_[Ws]=Aa(Ws),Ws>0&&(_[-Ws]=Aa(-Ws));return _.one=_[1],_.zero=_[0],_.minusOne=_[-1],_.max=_u,_.min=$t,_.gcd=kl,_.lcm=Ra,_.isInstance=function(Dn){return Dn instanceof x||Dn instanceof b||Dn instanceof T},_.randBetween=fc,_.fromArray=function(Dn,Ir,Fr){return bo(Dn.map(Aa),Aa(Ir||10),Fr)},_}();typeof VQt<"u"&&VQt.hasOwnProperty("exports")&&(VQt.exports=_z);typeof define=="function"&&define.amd&&define(function(){return _z})});var PRr=Le((jVo,IRr)=>{var YJe=DRr(),D2s=require("stream"),zQt;function w2s(){var t=3988292384,e,n,r;for(zQt=[],n=0;n<256;n++){for(e=n,r=0;r<8;r++)e=e&1?t^e>>>1:e=e>>>1;zQt[n]=e>>>0}}function wRr(t,e){return zQt||w2s(),t.charCodeAt&&(t=t.charCodeAt(0)),YJe(e).shiftRight(8).and(16777215).xor(zQt[YJe(e).xor(t).and(255)]).value}function sTt(){if(!(this instanceof sTt))return new sTt;this.key0=305419896,this.key1=591751049,this.key2=878082192}sTt.prototype.update=function(t){this.key0=wRr(t,this.key0),this.key1=YJe(this.key0).and(255).and(4294967295).add(this.key1),this.key1=YJe(this.key1).multiply(134775813).add(1).and(4294967295).value,this.key2=wRr(YJe(this.key1).shiftRight(24).and(255),this.key2)};sTt.prototype.decryptByte=function(t){var e=YJe(this.key2).or(2);return t=t^YJe(e).multiply(YJe(e^1)).shiftRight(8).and(255),this.update(t),t};sTt.prototype.stream=function(){var t=D2s.Transform(),e=this;return t._transform=function(n,r,a){for(var c=0;c<n.length;c++)n[c]=e.decryptByte(n[c]);this.push(n),a()},t};IRr.exports=sTt});var LRr=Le((GVo,NRr)=>{var I2s=jJe(),P2s=PRr(),k2s=lQt(),kRr=require("stream"),N2s=require("zlib"),L2s=uQt(),R2s=fQt(),O2s=iMt();NRr.exports=function(e,n,r,a,c){var f=k2s(),_=kRr.PassThrough(),x=e.stream(n,c);return x.pipe(f).on("error",function(b){_.emit("error",b)}),_.vars=f.pull(30).then(function(b){var T=O2s.parse(b,[["signature",4],["versionsNeededToExtract",2],["flags",2],["compressionMethod",2],["lastModifiedTime",2],["lastModifiedDate",2],["crc32",4],["compressedSize",4],["uncompressedSize",4],["fileNameLength",2],["extraFieldLength",2]]);return T.lastModifiedDateTime=R2s(T.lastModifiedDate,T.lastModifiedTime),f.pull(T.fileNameLength).then(function(k){return T.fileName=k.toString("utf8"),f.pull(T.extraFieldLength)}).then(function(k){var R;return T.extra=L2s(k,T),a&&a.compressedSize&&(T=a),T.flags&1&&(R=f.pull(12).then(function(O){if(!r)throw new Error("MISSING_PASSWORD");var j=P2s();String(r).split("").forEach(function(Z){j.update(Z)});for(var U=0;U<O.length;U++)O[U]=j.decryptByte(O[U]);T.decrypt=j,T.compressedSize-=12;var K=T.flags&8?T.lastModifiedTime>>8&255:T.crc32>>24&255;if(O[11]!==K)throw new Error("BAD_PASSWORD");return T})),I2s.resolve(R).then(function(){return _.emit("vars",T),T})})}),_.vars.then(function(b){var T=!(b.flags&8)||b.compressedSize>0,k,R=b.compressionMethod?N2s.createInflateRaw():kRr.PassThrough();T?(_.size=b.uncompressedSize,k=b.compressedSize):(k=Buffer.alloc(4),k.writeUInt32LE(134695760,0));var O=f.stream(k);b.decrypt&&(O=O.pipe(b.decrypt.stream())),O.pipe(R).on("error",function(j){_.emit("error",j)}).pipe(_).on("finish",function(){x.destroy?x.destroy():x.abort?x.abort():x.close?x.close():x.push?x.push():console.log("warning - unable to close stream")})}).catch(function(b){_.emit("error",b)}),_}});var MRr=Le((UVo,ORr)=>{var wMt=lQt(),M2s=LRr(),DMt=jJe(),F2s=cQt(),B2s=uQt(),O8n=require("path"),W2s=L8n().Writer,j2s=fQt(),IMt=iMt(),RRr=Buffer.alloc(4);RRr.writeUInt32LE(101010256,0);function G2s(t){var e=t.stream(0).pipe(wMt());return e.pull(4).then(function(n){var r=n.readUInt32LE(0);if(r===875721283){var a;return e.pull(12).then(function(c){a=IMt.parse(c,[["version",4],["pubKeyLength",4],["signatureLength",4]])}).then(function(){return e.pull(a.pubKeyLength+a.signatureLength)}).then(function(c){return a.publicKey=c.slice(0,a.pubKeyLength),a.signature=c.slice(a.pubKeyLength),a.size=16+a.pubKeyLength+a.signatureLength,a})}})}function U2s(t,e){var n=IMt.parse(e,[["signature",4],["diskNumber",4],["offsetToStartOfCentralDirectory",8],["numberOfDisks",4]]);if(n.signature!=117853008)throw new Error("invalid zip64 end of central dir locator signature (0x07064b50): 0x"+n.signature.toString(16));var r=wMt();return t.stream(n.offsetToStartOfCentralDirectory).pipe(r),r.pull(56)}function V2s(t){var e=IMt.parse(t,[["signature",4],["sizeOfCentralDirectory",8],["version",2],["versionsNeededToExtract",2],["diskNumber",4],["diskStart",4],["numberOfRecordsOnDisk",8],["numberOfRecords",8],["sizeOfCentralDirectory",8],["offsetToStartOfCentralDirectory",8]]);if(e.signature!=101075792)throw new Error("invalid zip64 end of central dir locator signature (0x06064b50): 0x0"+e.signature.toString(16));return e}ORr.exports=function(e,n){var r=wMt(),a=wMt(),c=n&&n.tailSize||80,f,_,x,b;return n&&n.crx&&(_=G2s(e)),e.size().then(function(T){return f=T,e.stream(Math.max(0,T-c)).on("error",function(k){r.emit("error",k)}).pipe(r),r.pull(RRr)}).then(function(){return DMt.props({directory:r.pull(22),crxHeader:_})}).then(function(T){var k=T.directory;if(x=T.crxHeader&&T.crxHeader.size||0,b=IMt.parse(k,[["signature",4],["diskNumber",2],["diskStart",2],["numberOfRecordsOnDisk",2],["numberOfRecords",2],["sizeOfCentralDirectory",4],["offsetToStartOfCentralDirectory",4],["commentLength",2]]),b.numberOfRecords==65535||b.numberOfRecords==65535||b.offsetToStartOfCentralDirectory==4294967295){let O=f-(c-r.match+20),j=wMt();return e.stream(O).pipe(j),j.pull(20).then(function(U){return U2s(e,U)}).then(function(U){b=V2s(U)})}else b.offsetToStartOfCentralDirectory+=x}).then(function(){if(b.commentLength)return r.pull(b.commentLength).then(function(T){b.comment=T.toString("utf8")})}).then(function(){return e.stream(b.offsetToStartOfCentralDirectory).pipe(a),b.extract=function(T){if(!T||!T.path)throw new Error("PATH_MISSING");return T.path=O8n.resolve(O8n.normalize(T.path)),b.files.then(function(k){return DMt.map(k,function(R){if(R.type!="Directory"){var O=O8n.join(T.path,R.path);if(O.indexOf(T.path)==0){var j=T.getWriter?T.getWriter({path:O}):W2s({path:O});return new DMt(function(U,K){R.stream(T.password).on("error",K).pipe(j).on("close",U).on("error",K)})}}},{concurrency:T.concurrency>1?T.concurrency:1})})},b.files=DMt.mapSeries(Array(b.numberOfRecords),function(){return a.pull(46).then(function(T){var k=k=IMt.parse(T,[["signature",4],["versionMadeBy",2],["versionsNeededToExtract",2],["flags",2],["compressionMethod",2],["lastModifiedTime",2],["lastModifiedDate",2],["crc32",4],["compressedSize",4],["uncompressedSize",4],["fileNameLength",2],["extraFieldLength",2],["fileCommentLength",2],["diskNumber",2],["internalFileAttributes",2],["externalFileAttributes",4],["offsetToLocalFileHeader",4]]);return k.offsetToLocalFileHeader+=x,k.lastModifiedDateTime=j2s(k.lastModifiedDate,k.lastModifiedTime),a.pull(k.fileNameLength).then(function(R){return k.pathBuffer=R,k.path=R.toString("utf8"),k.isUnicode=(k.flags&2048)!=0,a.pull(k.extraFieldLength)}).then(function(R){return k.extra=B2s(R,k),a.pull(k.fileCommentLength)}).then(function(R){k.comment=R,k.type=k.uncompressedSize===0&&/[\/\\]$/.test(k.path)?"Directory":"File";var O=n&&n.padding||1e3;return k.stream=function(j){var U=30+O+(k.extraFieldLength||0)+(k.fileNameLength||0)+k.compressedSize;return M2s(e,k.offsetToLocalFileHeader,j,k,U)},k.buffer=function(j){return F2s(k.stream(j))},k})})}),DMt.props(b)})}});var WRr=Le((VVo,BRr)=>{var FRr=nNe(),qQt=jJe(),PMt=MRr(),z2s=require("stream");BRr.exports={buffer:function(t,e){var n={stream:function(r,a){var c=z2s.PassThrough(),f=a?r+a:void 0;return c.end(t.slice(r,f)),c},size:function(){return qQt.resolve(t.length)}};return PMt(n,e)},file:function(t,e){var n={stream:function(r,a){var c=a?r+a:void 0;return FRr.createReadStream(t,{start:r,end:c})},size:function(){return new qQt(function(r,a){FRr.stat(t,function(c,f){c?a(c):r(f.size)})})}};return PMt(n,e)},url:function(t,e,n){if(typeof e=="string"&&(e={url:e}),!e.url)throw"URL missing";e.headers=e.headers||{};var r={stream:function(a,c){var f=Object.create(e),_=c?a+c:"";return f.headers=Object.create(e.headers),f.headers.range="bytes="+a+"-"+_,t(f)},size:function(){return new qQt(function(a,c){var f=t(e);f.on("response",function(_){f.abort(),_.headers["content-length"]?a(_.headers["content-length"]):c(new Error("Missing content length header"))}).on("error",c)})}};return PMt(r,n)},s3:function(t,e,n){var r={size:function(){return new qQt(function(a,c){t.headObject(e,function(f,_){f?c(f):a(_.ContentLength)})})},stream:function(a,c){var f={};for(var _ in e)f[_]=e[_];var x=c?a+c:"";return f.Range="bytes="+a+"-"+x,t.getObject(f).createReadStream()}};return PMt(r,n)},custom:function(t,e){return PMt(t,e)}}});var jRr=Le(kMt=>{"use strict";kMt.Parse=dQt();kMt.ParseOne=OLr();kMt.Extract=CRr();kMt.Open=WRr()});var q2s,M8n,F8n,GRr,iNe,URr,VRr,zRr,qRr,KRr=On(()=>{"use strict";q2s=bu(NCr(),1);ZDr();M8n=bu(ekr(),1),F8n=bu(tNr(),1),GRr=bu(jRr(),1),iNe=require("node:fs/promises"),URr=async(t,e)=>{await(0,iNe.access)(t,iNe.constants.F_OK).catch(()=>{throw new Error(`[Archiver]: source ${t} does not exist`)}),await(0,iNe.access)(e,iNe.constants.F_OK).catch(()=>(0,iNe.mkdir)(e,{recursive:!0}))},VRr=async(t,e)=>(await URr(t,e),M8n.x({file:t,cwd:e})),zRr=async(t,e)=>(await URr(t,e),await GRr.default.Open.file(t).then(n=>n.extract({path:e,concurrency:5})),e),qRr=async t=>{let e=F8n.pack();for(let{name:a,data:c}of Object.values(t))e.entry({name:a},c);e.finalize();let n=[];return e.on("data",a=>n.push(a)),await new Promise((a,c)=>{e.on("end",a),e.on("error",c)}),Buffer.from(QDr.gzip(Buffer.concat(n)))}});async function sNe(t){let{source:e,throwOnNotFound:n=!1}=t,r=await(0,HRr.readFile)((0,JRr.join)(e,".codemodrc.json"),{encoding:"utf-8"}).catch(()=>null);if(r===null){let c=`Could not locate the .codemodrc.json file at ${e}`;if(n)throw new Error(c);return{config:null,error:c}}let a;try{a=rJe(JSON.parse(r))}catch{let f=`Failed to parse the .codemodrc.json file at ${e}`;if(n)throw new Error(f);return{config:null,error:f}}return{config:a,error:null}}async function W5e(t){let{source:e,throwOnNotFound:n}=t,{config:r,error:a}=await sNe({source:e,throwOnNotFound:!1});if(r===null){if(n)throw new Error(a);return{path:null,error:a}}let c;switch(r.engine){case"ast-grep":c="**/rule.yaml";break;default:c="src/index.{ts,js}";break}let f=r.entry?`Make sure the entry point path under ${OD("entry")} key is correct in .codemodrc.json`:`Could not find an entry point under ${OD(c)}. Either create it or provide a path at ${OD("entry")} key in .codemodrc.json`,x=(await dz(r.entry??c,{absolute:!0,cwd:e,nodir:!0})).at(0)??null;if(x===null){if(n)throw new Error(f);return{path:null,error:f}}return{path:x,error:null}}var HRr,JRr,$Rr=On(()=>{"use strict";HRr=require("node:fs/promises"),JRr=require("node:path");Jge();e8t();QJt()});var XRr=On(()=>{"use strict"});var YRr=On(()=>{"use strict"});var QRr=On(()=>{"use strict"});var ZRr,e7r,wM,t7r,B8n=On(()=>{"use strict";ZRr=require("node:child_process"),e7r=require("node:util"),wM=(0,e7r.promisify)(ZRr.exec),t7r=async t=>{let e=t(),{done:n}=await e.next();return n}});async function KQt(t,e=!1){let n=null,r=null;try{let{stdout:c}=await wM("git rev-parse --show-toplevel",{cwd:t}),f=c.trim();if(f.length&&(r=f,e))return{rootPath:r}}catch{}if(r===null){let c=t;for(;;){try{await(0,uSe.access)((0,Zut.join)(c,".git"),uSe.constants.R_OK|uSe.constants.W_OK);let _=(0,Zut.join)(c,"package.json");await(0,uSe.access)(_,uSe.constants.R_OK|uSe.constants.W_OK),r=c}catch{}if(r){if(e)return{rootPath:r};break}let f=(0,Zut.dirname)(c);if(f===c)break;c=f}}let a=t;for(;;){for(let f of Object.keys(n7r))try{await(0,uSe.access)((0,Zut.join)(a,f),uSe.constants.R_OK|uSe.constants.W_OK),n=n7r[f],r===null&&(r=a);break}catch{}if(r){if(e)return{rootPath:r};break}let c=(0,Zut.dirname)(a);if(c===a)break;a=c}return{rootPath:r,detectedPackageManager:n}}var uSe,Zut,n7r,r7r=On(()=>{"use strict";uSe=require("node:fs/promises"),Zut=require("node:path");B8n();n7r={"package-lock.json":"npm","yarn.lock":"yarn","pnpm-lock.yaml":"pnpm","bun.lockb":"bun"}});var K2s,NMt,i7r,W8n=On(()=>{"use strict";Goe();K2s=XC({engine:dx("jscodeshift"),parser:TL([dx("babel"),dx("babylon"),dx("flow"),dx("ts"),dx("tsx")])}),NMt=TL([K2s]),i7r=t=>{let e=Cde(NMt,t);return e.success?e.output:null}});var s7r,j8n,G8n,a7r,U8n,o7r,LMt,eft,l7r,c7r=On(()=>{"use strict";Goe();e$t();e8t();W8n();s7r=XC({$schema:Cx(Dx()),path:Dx(),source:TL([dx("local"),dx("remote")]),type:TL([dx("standalone"),dx("package")]),safeArgumentRecord:Cx(ZJt,{}),engineOptions:Cx(LOt(NMt),null)}),j8n=XC({...s7r.entries,...XC({config:Okn}).entries}),G8n=XC({...s7r.entries,...XC({config:Mkn,codemods:Cx(fz(j8n),[])}).entries}),a7r=TL([j8n,G8n]),U8n=t=>Cde(j8n,t),o7r=t=>Cde(G8n,t),LMt=t=>GPn(G8n,t),eft=t=>LZ(a7r,t),l7r=t=>Cde(a7r,t)});var u7r=On(()=>{"use strict"});var lzo,czo,f7r=On(()=>{"use strict";Goe();lzo=XC({codemodSource:Dx(),codemodEngine:TL([dx("jscodeshift"),dx("ts-morph"),dx("workflow")]),codemodArguments:Cx(Dx()),repoUrl:Cx(Dx()),branch:Cx(Dx()),persistent:Cx(O8())}),czo=XC({jobId:Dx()})});var gz=On(()=>{"use strict";a1r();bbr();nCr();KRr();$Rr();XRr();YRr();QJt();QRr();B8n();r7r();hkn();e$t();e8t();c7r();W8n();u7r();f7r()});var H2s,d7r,p7r=On(()=>{"use strict";Goe();gz();H2s=TL([XC({kind:dx("initialization"),path:Dx(),codemodSource:Dx(),engine:TL([dx("jscodeshift"),dx("ts-morph"),dx("ast-grep"),dx("workflow")]),format:O8(),safeArgumentRecord:ZJt,engineOptions:LOt(NMt)}),XC({kind:dx("exit")}),XC({kind:dx("runCodemod"),path:Dx(),data:Dx()})]),d7r=t=>LZ(H2s,t)});var m7r=On(()=>{"use strict"});var J2s,h7r,_7r=On(()=>{"use strict";Goe();qPn();J2s=TL([XC({kind:dx("commands"),commands:zPn(),path:Cx(Dx())}),XC({kind:dx("error"),message:Dx(),path:Cx(Dx())}),XC({kind:dx("console"),consoleKind:s1r,message:Dx()})]),h7r=t=>LZ(J2s,t)});var v5=On(()=>{"use strict";$$();Ugr();$yr();t1r();qPn();p7r();m7r();_7r()});var fSe,RMt=On(()=>{fSe="0.13.10"});var g7r,y7r,V8n,$oe,OMt,qzo,tft=On(()=>{"use strict";g7r=bu(require("node:os"),1),y7r=require("node:path");v5();V8n=process.stdout.write,$oe=(0,y7r.join)(g7r.homedir(),".codemod"),OMt=$o.green("\u2714"),qzo=$o.red("\u2716")});var z8n,aTt,q8n,HQt,JQt,K8n=On(()=>{"use strict";z8n=bu(require("node:fs"),1),aTt=bu(require("node:os"),1),q8n=require("node:path");v5();gz();RMt();tft();HQt=(0,q8n.join)($oe,"logs"),JQt=async t=>{let{prefix:e,content:n,fatal:r}=t,a=(0,q8n.join)(HQt,`${r?"FATAL-":""}${new Date().toISOString()}-error.log`),c=`- CLI version: ${fSe}
|
|
864
864
|
- Node version: ${process.versions.node}
|
|
865
865
|
- OS: ${aTt.type()} ${aTt.release()} ${aTt.arch()}
|
|
866
866
|
|
|
@@ -21886,7 +21886,7 @@ Soon, we will support other engines and hence other extensions including .md, .m
|
|
|
21886
21886
|
`));e.printConsoleMessage("info",(0,d1i.default)(x,{headingTransform:b=>$o.bold(b.toLocaleUpperCase())})),e.printConsoleMessage("info",$o.cyan(ISe.isSupported?`
|
|
21887
21887
|
Click on the name of the codemod to visit its documentation page.`:$o(`
|
|
21888
21888
|
Visit`,$o.bold("https://codemod.com/registry"),"to see the full list of codemods and their documentation.")))}});var h1i,_1i=On(()=>{"use strict";ANe();Aye();R5t();h1i=async t=>{let{printer:e}=t,n=await $re();if(n===null){e.printConsoleMessage("info","You are already logged out.");return}try{await yQr(n.token)}catch{}await i9e.delete("user-account"),e.printConsoleMessage("info","You have been successfully logged out.")}});var g1i=On(()=>{"use strict"});var ZDt,ewt,y1i,x1i,v1i,EXn,b1i,SXn,TXn,E1i,AXn,CXn,DXn,S1i,HDa,T1i,wXn=On(()=>{"use strict";ZDt=require("node:path");Goe();ewt=require("node:fs/promises");v5();y1i=["*.d.ts","node_modules/",".next/","dist/","build/"],x1i=[".git/",".svn/",".hg/",".bzr/","_darcs/","_MTN/","_FOSSIL_",".fslckout",".view/"],v1i=process.cwd(),EXn=!1,b1i=!1,SXn=!0,TXn=!0,E1i=!0,AXn=!1,CXn=4,DXn=!1,S1i=!0,HDa=XC({_:fz(Dx()),include:Cx(fz(Dx())),exclude:Cx(fz(Dx()),[]),target:Cx(Dx(),v1i),files:Cx(fz(Dx())),dry:Cx(O8(),DXn),format:Cx(O8(),EXn),cache:Cx(O8(),SXn),install:Cx(O8(),TXn),json:Cx(O8(),AXn),threads:Cx(t5e(e5e(),MPn(0)),CXn),cloud:Cx(O8(),!1)}),T1i=async(t,e)=>{let n=LZ(HDa,t),r=n._.at(1),a=n.target,c=r??a??v1i;return r&&a&&(e.printConsoleMessage("info",$o.yellow("Both positional and argument target options are passed. Defaulting to the argument target option...")),c=a),await(0,ewt.access)(c,ewt.constants.F_OK).catch(()=>{throw new Error(`Execution target does not exist:
|
|
21889
|
-
${c}`)}),n.target=(0,ZDt.resolve)(c),(await(0,ewt.stat)(c)).isFile()&&(n.include=[(0,ZDt.basename)(c)].concat(n.include??[]),n.target=(0,ZDt.dirname)(c)),n}});var Apt,cYe,A1i,IXn,Lmn,PXn,C1i,D1i=On(()=>{"use strict";Apt=require("node:fs/promises"),cYe=require("node:path"),A1i=bu(require("esbuild"),1);gz();IXn=t=>{try{let e={exports:{}},n=["module","exports","require"],r=[e,e.exports,require];return new Function(...n,t).apply(null,r),typeof e.exports=="function"?e.exports:e.exports.__esModule?e.exports.default??e.exports.transform??e.exports.handleSourceFile??e.exports.repomod??e.exports.filemod??e.exports.workflow??null:null}catch{return null}},Lmn="cdmd_dist/index.cjs",PXn=async t=>{let{entry:e,output:n=(0,cYe.join)((0,cYe.dirname)(e),Lmn)}=t,a={entryPoints:[e],bundle:!0,external:["jscodeshift","ts-morph","@ast-grep/napi"],platform:"node",minify:!0,minifyWhitespace:!0,format:"cjs",legalComments:"inline",outfile:n,write:!1,logLevel:"error"},{outputFiles:c}=await A1i.default.build(a),f=c?.find(_=>_.path.endsWith(n))?.text??null;if(f===null)throw new Error(`Could not find ${n} in output files`);return f},C1i=async(t,e)=>{let n=(0,cYe.join)((0,cYe.resolve)(t),Lmn);try{return await(0,Apt.readFile)(n,{encoding:"utf8"})}catch{}let{path:r}=await W5e({source:t,throwOnNotFound:!0});if(!kke(r))return(0,Apt.readFile)(r,{encoding:"utf8"});let a=await PXn({entry:r,output:n});return e&&(await(0,Apt.mkdir)((0,cYe.dirname)(n),{recursive:!0}),await(0,Apt.writeFile)(n,a)),a}});function V1i(t){return typeof t>"u"||t===null}function JDa(t){return typeof t=="object"&&t!==null}function $Da(t){return Array.isArray(t)?t:V1i(t)?[]:[t]}function XDa(t,e){var n,r,a,c;if(e)for(c=Object.keys(e),n=0,r=c.length;n<r;n+=1)a=c[n],t[a]=e[a];return t}function YDa(t,e){var n="",r;for(r=0;r<e;r+=1)n+=t;return n}function QDa(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}function z1i(t,e){var n="",r=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(n+='in "'+t.mark.name+'" '),n+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(n+=`
|
|
21889
|
+
${c}`)}),n.target=(0,ZDt.resolve)(c),(await(0,ewt.stat)(c)).isFile()&&(n.include=[(0,ZDt.basename)(c)].concat(n.include??[]),n.target=(0,ZDt.dirname)(c)),n}});var Apt,cYe,A1i,IXn,Lmn,PXn,C1i,D1i=On(()=>{"use strict";Apt=require("node:fs/promises"),cYe=require("node:path"),A1i=bu(require("esbuild"),1);gz();IXn=t=>{try{let e={exports:{}},n=["module","exports","require"],r=[e,e.exports,require];return new Function(...n,t).apply(null,r),typeof e.exports=="function"?e.exports:e.exports.__esModule?e.exports.default??e.exports.transform??e.exports.handleSourceFile??e.exports.repomod??e.exports.filemod??e.exports.workflow??null:null}catch{return null}},Lmn="cdmd_dist/index.cjs",PXn=async t=>{let{entry:e,output:n=(0,cYe.join)((0,cYe.dirname)(e),Lmn)}=t,a={entryPoints:[e],bundle:!0,external:["jscodeshift","ts-morph","@ast-grep/napi"],platform:"node",minify:!0,minifyWhitespace:!0,format:"cjs",legalComments:"inline",outfile:n,write:!1,logLevel:"error"},{outputFiles:c}=await A1i.default.build(a),f=c?.find(_=>_.path.endsWith(n.replace(/\.\.\//g,"").replace(/\.\//g,"")))?.text??null;if(f===null)throw new Error(`Could not find ${n} in output files`);return f},C1i=async(t,e)=>{let n=(0,cYe.join)((0,cYe.resolve)(t),Lmn);try{return await(0,Apt.readFile)(n,{encoding:"utf8"})}catch{}let{path:r}=await W5e({source:t,throwOnNotFound:!0});if(!kke(r))return(0,Apt.readFile)(r,{encoding:"utf8"});let a=await PXn({entry:r,output:n});return e&&(await(0,Apt.mkdir)((0,cYe.dirname)(n),{recursive:!0}),await(0,Apt.writeFile)(n,a)),a}});function V1i(t){return typeof t>"u"||t===null}function JDa(t){return typeof t=="object"&&t!==null}function $Da(t){return Array.isArray(t)?t:V1i(t)?[]:[t]}function XDa(t,e){var n,r,a,c;if(e)for(c=Object.keys(e),n=0,r=c.length;n<r;n+=1)a=c[n],t[a]=e[a];return t}function YDa(t,e){var n="",r;for(r=0;r<e;r+=1)n+=t;return n}function QDa(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}function z1i(t,e){var n="",r=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(n+='in "'+t.mark.name+'" '),n+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(n+=`
|
|
21890
21890
|
|
|
21891
21891
|
`+t.mark.snippet),r+" "+n):r}function gWt(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=z1i(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}function kXn(t,e,n,r,a){var c="",f="",_=Math.floor(a/2)-1;return r-e>_&&(c=" ... ",e=r-_+c.length),n-r>_&&(f=" ...",n=r+_-f.length),{str:c+t.slice(e,n).replace(/\t/g,"\u2192")+f,pos:r-e+c.length}}function NXn(t,e){return Cz.repeat(" ",e-t.length)+t}function swa(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],a=[],c,f=-1;c=n.exec(t.buffer);)a.push(c.index),r.push(c.index+c[0].length),t.position<=c.index&&f<0&&(f=r.length-2);f<0&&(f=r.length-1);var _="",x,b,T=Math.min(t.line+e.linesAfter,a.length).toString().length,k=e.maxLength-(e.indent+T+3);for(x=1;x<=e.linesBefore&&!(f-x<0);x++)b=kXn(t.buffer,r[f-x],a[f-x],t.position-(r[f]-r[f-x]),k),_=Cz.repeat(" ",e.indent)+NXn((t.line-x+1).toString(),T)+" | "+b.str+`
|
|
21892
21892
|
`+_;for(b=kXn(t.buffer,r[f],a[f],t.position,k),_+=Cz.repeat(" ",e.indent)+NXn((t.line+1).toString(),T)+" | "+b.str+`
|
|
@@ -21917,7 +21917,7 @@ ${c}`)}),n.target=(0,ZDt.resolve)(c),(await(0,ewt.stat)(c)).isFile()&&(n.include
|
|
|
21917
21917
|
`,t.length-a>e&&f>a?x+=t.slice(a,f)+`
|
|
21918
21918
|
`+t.slice(f+1):x+=t.slice(a),x.slice(1)}function lPa(t){for(var e="",n=0,r,a=0;a<t.length;n>=65536?a+=2:a++)n=_Wt(t,a),r=ree[n],!r&&vWt(n)?(e+=t[a],n>=65536&&(e+=t[a+1])):e+=r||ZIa(n);return e}function cPa(t,e,n){var r="",a=t.tag,c,f,_;for(c=0,f=n.length;c<f;c+=1)_=n[c],t.replacer&&(_=t.replacer.call(n,String(c),_)),(j9e(t,e,_,!1,!1)||typeof _>"u"&&j9e(t,e,null,!1,!1))&&(r!==""&&(r+=","+(t.condenseFlow?"":" ")),r+=t.dump);t.tag=a,t.dump="["+r+"]"}function G1i(t,e,n,r){var a="",c=t.tag,f,_,x;for(f=0,_=n.length;f<_;f+=1)x=n[f],t.replacer&&(x=t.replacer.call(n,String(f),x)),(j9e(t,e+1,x,!0,!0,!1,!0)||typeof x>"u"&&j9e(t,e+1,null,!0,!0,!1,!0))&&((!r||a!=="")&&(a+=MXn(t,e)),t.dump&&yWt===t.dump.charCodeAt(0)?a+="-":a+="- ",a+=t.dump);t.tag=c,t.dump=a||"[]"}function uPa(t,e,n){var r="",a=t.tag,c=Object.keys(n),f,_,x,b,T;for(f=0,_=c.length;f<_;f+=1)T="",r!==""&&(T+=", "),t.condenseFlow&&(T+='"'),x=c[f],b=n[x],t.replacer&&(b=t.replacer.call(n,x,b)),j9e(t,e,x,!1,!1)&&(t.dump.length>1024&&(T+="? "),T+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),j9e(t,e,b,!1,!1)&&(T+=t.dump,r+=T));t.tag=a,t.dump="{"+r+"}"}function fPa(t,e,n,r){var a="",c=t.tag,f=Object.keys(n),_,x,b,T,k,R;if(t.sortKeys===!0)f.sort();else if(typeof t.sortKeys=="function")f.sort(t.sortKeys);else if(t.sortKeys)throw new Ele("sortKeys must be a boolean or a function");for(_=0,x=f.length;_<x;_+=1)R="",(!r||a!=="")&&(R+=MXn(t,e)),b=f[_],T=n[b],t.replacer&&(T=t.replacer.call(n,b,T)),j9e(t,e+1,b,!0,!0,!0)&&(k=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,k&&(t.dump&&yWt===t.dump.charCodeAt(0)?R+="?":R+="? "),R+=t.dump,k&&(R+=MXn(t,e)),j9e(t,e+1,T,!0,k)&&(t.dump&&yWt===t.dump.charCodeAt(0)?R+=":":R+=": ",R+=t.dump,a+=R));t.tag=c,t.dump=a||"{}"}function U1i(t,e,n){var r,a,c,f,_,x;for(a=n?t.explicitTypes:t.implicitTypes,c=0,f=a.length;c<f;c+=1)if(_=a[c],(_.instanceOf||_.predicate)&&(!_.instanceOf||typeof e=="object"&&e instanceof _.instanceOf)&&(!_.predicate||_.predicate(e))){if(n?_.multi&&_.representName?t.tag=_.representName(e):t.tag=_.tag:t.tag="?",_.represent){if(x=t.styleMap[_.tag]||_.defaultStyle,rxi.call(_.represent)==="[object Function]")r=_.represent(e,x);else if(ixi.call(_.represent,x))r=_.represent[x](e,x);else throw new Ele("!<"+_.tag+'> tag resolver accepts not "'+x+'" style');t.dump=r}return!0}return!1}function j9e(t,e,n,r,a,c,f){t.tag=null,t.dump=n,U1i(t,n,!1)||U1i(t,n,!0);var _=rxi.call(t.dump),x=r,b;r&&(r=t.flowLevel<0||t.flowLevel>e);var T=_==="[object Object]"||_==="[object Array]",k,R;if(T&&(k=t.duplicates.indexOf(n),R=k!==-1),(t.tag!==null&&t.tag!=="?"||R||t.indent!==2&&e>0)&&(a=!1),R&&t.usedDuplicates[k])t.dump="*ref_"+k;else{if(T&&R&&!t.usedDuplicates[k]&&(t.usedDuplicates[k]=!0),_==="[object Object]")r&&Object.keys(t.dump).length!==0?(fPa(t,e,t.dump,a),R&&(t.dump="&ref_"+k+t.dump)):(uPa(t,e,t.dump),R&&(t.dump="&ref_"+k+" "+t.dump));else if(_==="[object Array]")r&&t.dump.length!==0?(t.noArrayIndent&&!f&&e>0?G1i(t,e-1,t.dump,a):G1i(t,e,t.dump,a),R&&(t.dump="&ref_"+k+t.dump)):(cPa(t,e,t.dump),R&&(t.dump="&ref_"+k+" "+t.dump));else if(_==="[object String]")t.tag!=="?"&&aPa(t,t.dump,e,c,x);else{if(_==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new Ele("unacceptable kind of an object to dump "+_)}t.tag!==null&&t.tag!=="?"&&(b=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?b="!"+b:b.slice(0,18)==="tag:yaml.org,2002:"?b="!!"+b.slice(18):b="!<"+b+">",t.dump=b+" "+t.dump)}return!0}function dPa(t,e){var n=[],r=[],a,c;for(BXn(t,n,r),a=0,c=r.length;a<c;a+=1)e.duplicates.push(n[r[a]]);e.usedDuplicates=new Array(c)}function BXn(t,e,n){var r,a,c;if(t!==null&&typeof t=="object")if(a=e.indexOf(t),a!==-1)n.indexOf(a)===-1&&n.push(a);else if(e.push(t),Array.isArray(t))for(a=0,c=t.length;a<c;a+=1)BXn(t[a],e,n);else for(r=Object.keys(t),a=0,c=r.length;a<c;a+=1)BXn(t[r[a]],e,n)}function pPa(t,e){e=e||{};var n=new tPa(e);n.noRefs||dPa(t,n);var r=t;return n.replacer&&(r=n.replacer.call({"":r},"",r)),j9e(n,0,r,!0,!0)?n.dump+`
|
|
21919
21919
|
`:""}function VXn(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var ZDa,ewa,twa,nwa,rwa,iwa,Cz,Ele,awa,owa,lwa,nee,dwa,pwa,mwa,hwa,_wa,vwa,Twa,kwa,Nwa,Owa,Bwa,Wwa,jwa,q1i,K1i,zwa,Kwa,WXn,Ywa,Qwa,Zwa,nIa,rIa,aIa,oIa,uIa,H1i,fYe,Rmn,J1i,$1i,Omn,LXn,fIa,I1i,dIa,pIa,mIa,X1i,Y1i,Q1i,Z1i,Cpt,N1i,NIa,LIa,nxi,rxi,ixi,UXn,RIa,yWt,OIa,MIa,FIa,BIa,OXn,WIa,jIa,GIa,UIa,sxi,VIa,Fmn,zIa,qIa,KIa,HIa,axi,oxi,JIa,lxi,$Ia,cxi,ree,XIa,YIa,ePa,xWt,fxi,FXn,dxi,pxi,twt,mPa,hPa,syl,mxi,ayl,oyl,lyl,cyl,hxi=On(()=>{/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */ZDa=V1i,ewa=JDa,twa=$Da,nwa=YDa,rwa=QDa,iwa=XDa,Cz={isNothing:ZDa,isObject:ewa,toArray:twa,repeat:nwa,isNegativeZero:rwa,extend:iwa};gWt.prototype=Object.create(Error.prototype);gWt.prototype.constructor=gWt;gWt.prototype.toString=function(e){return this.name+": "+z1i(this,e)};Ele=gWt;awa=swa,owa=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],lwa=["scalar","sequence","mapping"];nee=uwa;RXn.prototype.extend=function(e){var n=[],r=[];if(e instanceof nee)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(n=n.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new Ele("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(c){if(!(c instanceof nee))throw new Ele("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(c.loadKind&&c.loadKind!=="scalar")throw new Ele("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(c.multi)throw new Ele("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(c){if(!(c instanceof nee))throw new Ele("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var a=Object.create(RXn.prototype);return a.implicit=(this.implicit||[]).concat(n),a.explicit=(this.explicit||[]).concat(r),a.compiledImplicit=w1i(a,"implicit"),a.compiledExplicit=w1i(a,"explicit"),a.compiledTypeMap=fwa(a.compiledImplicit,a.compiledExplicit),a};dwa=RXn,pwa=new nee("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),mwa=new nee("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),hwa=new nee("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),_wa=new dwa({explicit:[pwa,mwa,hwa]});vwa=new nee("tag:yaml.org,2002:null",{kind:"scalar",resolve:gwa,construct:ywa,predicate:xwa,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});Twa=new nee("tag:yaml.org,2002:bool",{kind:"scalar",resolve:bwa,construct:Ewa,predicate:Swa,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});kwa=new nee("tag:yaml.org,2002:int",{kind:"scalar",resolve:wwa,construct:Iwa,predicate:Pwa,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Nwa=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");Owa=/^[-+]?[0-9]+e/;Bwa=new nee("tag:yaml.org,2002:float",{kind:"scalar",resolve:Lwa,construct:Rwa,predicate:Fwa,represent:Mwa,defaultStyle:"lowercase"}),Wwa=_wa.extend({implicit:[vwa,Twa,kwa,Bwa]}),jwa=Wwa,q1i=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),K1i=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");zwa=new nee("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Gwa,construct:Uwa,instanceOf:Date,represent:Vwa});Kwa=new nee("tag:yaml.org,2002:merge",{kind:"scalar",resolve:qwa}),WXn=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
21920
|
-
\r`;Ywa=new nee("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Hwa,construct:Jwa,predicate:Xwa,represent:$wa}),Qwa=Object.prototype.hasOwnProperty,Zwa=Object.prototype.toString;nIa=new nee("tag:yaml.org,2002:omap",{kind:"sequence",resolve:eIa,construct:tIa}),rIa=Object.prototype.toString;aIa=new nee("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:iIa,construct:sIa}),oIa=Object.prototype.hasOwnProperty;uIa=new nee("tag:yaml.org,2002:set",{kind:"mapping",resolve:lIa,construct:cIa}),H1i=jwa.extend({implicit:[zwa,Kwa],explicit:[Ywa,nIa,aIa,uIa]}),fYe=Object.prototype.hasOwnProperty,Rmn=1,J1i=2,$1i=3,Omn=4,LXn=1,fIa=2,I1i=3,dIa=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,pIa=/[\x85\u2028\u2029]/,mIa=/[,\[\]\{\}]/,X1i=/^(?:!|!!|![a-z\-]+!)$/i,Y1i=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;Q1i=new Array(256),Z1i=new Array(256);for(Cpt=0;Cpt<256;Cpt++)Q1i[Cpt]=k1i(Cpt)?1:0,Z1i[Cpt]=k1i(Cpt);N1i={YAML:function(e,n,r){var a,c,f;e.version!==null&&wx(e,"duplication of %YAML directive"),r.length!==1&&wx(e,"YAML directive accepts exactly one argument"),a=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),a===null&&wx(e,"ill-formed argument of the YAML directive"),c=parseInt(a[1],10),f=parseInt(a[2],10),c!==1&&wx(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=f<2,f!==1&&f!==2&&Mmn(e,"unsupported YAML version of the document")},TAG:function(e,n,r){var a,c;r.length!==2&&wx(e,"TAG directive accepts exactly two arguments"),a=r[0],c=r[1],X1i.test(a)||wx(e,"ill-formed tag handle (first argument) of the TAG directive"),fYe.call(e.tagMap,a)&&wx(e,'there is a previously declared suffix for "'+a+'" tag handle'),Y1i.test(c)||wx(e,"ill-formed tag prefix (second argument) of the TAG directive");try{c=decodeURIComponent(c)}catch{wx(e,"tag prefix is malformed: "+c)}e.tagMap[a]=c}};NIa=PIa,LIa=kIa,nxi={loadAll:NIa,load:LIa},rxi=Object.prototype.toString,ixi=Object.prototype.hasOwnProperty,UXn=65279,RIa=9,yWt=10,OIa=13,MIa=32,FIa=33,BIa=34,OXn=35,WIa=37,jIa=38,GIa=39,UIa=42,sxi=44,VIa=45,Fmn=58,zIa=61,qIa=62,KIa=63,HIa=64,axi=91,oxi=93,JIa=96,lxi=123,$Ia=124,cxi=125,ree={};ree[0]="\\0";ree[7]="\\a";ree[8]="\\b";ree[9]="\\t";ree[10]="\\n";ree[11]="\\v";ree[12]="\\f";ree[13]="\\r";ree[27]="\\e";ree[34]='\\"';ree[92]="\\\\";ree[133]="\\N";ree[160]="\\_";ree[8232]="\\L";ree[8233]="\\P";XIa=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],YIa=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;ePa=1,xWt=2;fxi=1,FXn=2,dxi=3,pxi=4,twt=5;mPa=pPa,hPa={dump:mPa};syl=nxi.load,mxi=nxi.loadAll,ayl=hPa.dump,oyl=VXn("safeLoad","load"),lyl=VXn("safeLoadAll","loadAll"),cyl=VXn("safeDump","dump")});var wpt,dYe,_xi,gxi,yxi,gPa,zXn,xxi=On(()=>{"use strict";wpt=require("node:fs/promises"),dYe=require("node:path"),_xi=bu(require("esbuild"),1);gz();gxi=t=>{try{let e={exports:{}},n=["module","exports","require"],r=[e,e.exports,require];return new Function(...n,t).apply(null,r),typeof e.exports=="function"?e.exports:e.exports.__esModule?e.exports.default??e.exports.transform??e.exports.handleSourceFile??e.exports.repomod??e.exports.filemod??e.exports.workflow??null:null}catch{return null}},yxi="cdmd_dist/index.cjs",gPa=async t=>{let{entry:e,output:n=(0,dYe.join)((0,dYe.dirname)(e),yxi)}=t,a={entryPoints:[e],bundle:!0,external:["jscodeshift","ts-morph","@ast-grep/napi"],platform:"node",minify:!0,minifyWhitespace:!0,format:"cjs",legalComments:"inline",outfile:n,write:!1,logLevel:"error"},{outputFiles:c}=await _xi.default.build(a),f=c?.find(_=>_.path.endsWith(n))?.text??null;if(f===null)throw new Error(`Could not find ${n} in output files`);return f},zXn=async(t,e)=>{let n=(0,dYe.join)((0,dYe.resolve)(t),yxi);try{return await(0,wpt.readFile)(n,{encoding:"utf8"})}catch{}let{path:r}=await W5e({source:t,throwOnNotFound:!0});if(!kke(r))return(0,wpt.readFile)(r,{encoding:"utf8"});let a=await gPa({entry:r,output:n});return e&&(await(0,wpt.mkdir)((0,dYe.dirname)(n),{recursive:!0}),await(0,wpt.writeFile)(n,a)),a}});var swt,KXn,qXn,vxi,yPa,bxi,xPa,vPa,bPa,jmn,EPa,SPa,Exi,Sxi,HXn=On(()=>{"use strict";swt=require("node:fs/promises"),KXn=require("node:path");gz();qXn=["**/*.js","**/*.jsx","**/*.cjs","**/*.mjs"],vxi=["**/*.ts","**/*.cts","**/*.mts"],yPa=["**/*.tsx"],bxi=["**/*.py","**/*.py3","**/*.pyi","**/*.bzl"],xPa=["**/*.java"],vPa=["**/*.bash","**/*.bats","**/*.cgi","**/*.command","**/*.env","**/*.fcgi","**/*.ksh","**/*.sh","**/*.sh.in","**/*.tmux","**/*.tool","**/*.zsh"],bPa=["**/*.c","**/*.h"],jmn=["**/*.cc","**/*.hpp","**/*.cpp","**/*.c++","**/*.hh","**/*.cxx","**/*.cu","**/*.ino"],EPa=["**/*.json"],SPa=["**/*.html","**/*.htm","**/*.xhtml"],Exi={js:qXn,jsx:qXn,javascript:qXn,ts:vxi,typescript:vxi,tsx:yPa,py:bxi,python:bxi,java:xPa,"bash-exp":vPa,c:bPa,cc:jmn,"c++":jmn,cpp:jmn,cxx:jmn,json:EPa,html:SPa},Sxi=async(t,e,n)=>{let r=(0,KXn.join)(require.resolve("@ast-grep/cli/package.json"),"..","sg");await(0,swt.access)(r,swt.constants.F_OK).catch(async()=>{r=(0,KXn.join)(__dirname,"..","node_modules",".bin","sg"),await(0,swt.access)(r,swt.constants.X_OK).catch(async()=>{r="sg",await wM("which sg").catch(async()=>{let R="npm install -g @ast-grep/cli";await wM(process.platform==="win32"?`powershell -Command ${R}`:R).catch(()=>{throw new Error("Could not locate the ast-grep CLI. Please install it with 'npm install -g @ast-grep/cli'.")})})})});let a=[],c=t.replace(/(\s+)/g,"\\$1"),f=e.replace(/(\s+)/g,"\\$1"),_=`${r} scan --rule ${c} ${f} --json=compact`,x=process.platform==="win32"?`powershell -Command "${_}"`:_,{stdout:b}=await wM(x),T=JSON.parse(b.trim());T.sort((R,O)=>O.range.byteOffset.start-R.range.byteOffset.start);let k=n;for(let R of T){let{replacementOffsets:O,replacement:j}=R;O&&(k=k.slice(0,O.start)+j+k.slice(O.end))}return typeof k!="string"||n===k||a.push({kind:"updateFile",oldPath:e,oldData:n,newData:k}),a}});var Gmn=Le(JXn=>{"use strict";Object.defineProperty(JXn,"__esModule",{value:!0});JXn.default=TPa;function TPa(t,e){let n=Object.keys(e);for(let r of n)if(t[r]!==e[r])return!1;return!0}});var bWt=Le($Xn=>{"use strict";Object.defineProperty($Xn,"__esModule",{value:!0});$Xn.default=APa;var Txi=new Set;function APa(t,e,n=""){if(Txi.has(t))return;Txi.add(t);let{internal:r,trace:a}=CPa(1,2);r||console.warn(`${n}\`${t}\` has been deprecated, please migrate to \`${e}\`
|
|
21920
|
+
\r`;Ywa=new nee("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Hwa,construct:Jwa,predicate:Xwa,represent:$wa}),Qwa=Object.prototype.hasOwnProperty,Zwa=Object.prototype.toString;nIa=new nee("tag:yaml.org,2002:omap",{kind:"sequence",resolve:eIa,construct:tIa}),rIa=Object.prototype.toString;aIa=new nee("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:iIa,construct:sIa}),oIa=Object.prototype.hasOwnProperty;uIa=new nee("tag:yaml.org,2002:set",{kind:"mapping",resolve:lIa,construct:cIa}),H1i=jwa.extend({implicit:[zwa,Kwa],explicit:[Ywa,nIa,aIa,uIa]}),fYe=Object.prototype.hasOwnProperty,Rmn=1,J1i=2,$1i=3,Omn=4,LXn=1,fIa=2,I1i=3,dIa=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,pIa=/[\x85\u2028\u2029]/,mIa=/[,\[\]\{\}]/,X1i=/^(?:!|!!|![a-z\-]+!)$/i,Y1i=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;Q1i=new Array(256),Z1i=new Array(256);for(Cpt=0;Cpt<256;Cpt++)Q1i[Cpt]=k1i(Cpt)?1:0,Z1i[Cpt]=k1i(Cpt);N1i={YAML:function(e,n,r){var a,c,f;e.version!==null&&wx(e,"duplication of %YAML directive"),r.length!==1&&wx(e,"YAML directive accepts exactly one argument"),a=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),a===null&&wx(e,"ill-formed argument of the YAML directive"),c=parseInt(a[1],10),f=parseInt(a[2],10),c!==1&&wx(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=f<2,f!==1&&f!==2&&Mmn(e,"unsupported YAML version of the document")},TAG:function(e,n,r){var a,c;r.length!==2&&wx(e,"TAG directive accepts exactly two arguments"),a=r[0],c=r[1],X1i.test(a)||wx(e,"ill-formed tag handle (first argument) of the TAG directive"),fYe.call(e.tagMap,a)&&wx(e,'there is a previously declared suffix for "'+a+'" tag handle'),Y1i.test(c)||wx(e,"ill-formed tag prefix (second argument) of the TAG directive");try{c=decodeURIComponent(c)}catch{wx(e,"tag prefix is malformed: "+c)}e.tagMap[a]=c}};NIa=PIa,LIa=kIa,nxi={loadAll:NIa,load:LIa},rxi=Object.prototype.toString,ixi=Object.prototype.hasOwnProperty,UXn=65279,RIa=9,yWt=10,OIa=13,MIa=32,FIa=33,BIa=34,OXn=35,WIa=37,jIa=38,GIa=39,UIa=42,sxi=44,VIa=45,Fmn=58,zIa=61,qIa=62,KIa=63,HIa=64,axi=91,oxi=93,JIa=96,lxi=123,$Ia=124,cxi=125,ree={};ree[0]="\\0";ree[7]="\\a";ree[8]="\\b";ree[9]="\\t";ree[10]="\\n";ree[11]="\\v";ree[12]="\\f";ree[13]="\\r";ree[27]="\\e";ree[34]='\\"';ree[92]="\\\\";ree[133]="\\N";ree[160]="\\_";ree[8232]="\\L";ree[8233]="\\P";XIa=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],YIa=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;ePa=1,xWt=2;fxi=1,FXn=2,dxi=3,pxi=4,twt=5;mPa=pPa,hPa={dump:mPa};syl=nxi.load,mxi=nxi.loadAll,ayl=hPa.dump,oyl=VXn("safeLoad","load"),lyl=VXn("safeLoadAll","loadAll"),cyl=VXn("safeDump","dump")});var wpt,dYe,_xi,gxi,yxi,gPa,zXn,xxi=On(()=>{"use strict";wpt=require("node:fs/promises"),dYe=require("node:path"),_xi=bu(require("esbuild"),1);gz();gxi=t=>{try{let e={exports:{}},n=["module","exports","require"],r=[e,e.exports,require];return new Function(...n,t).apply(null,r),typeof e.exports=="function"?e.exports:e.exports.__esModule?e.exports.default??e.exports.transform??e.exports.handleSourceFile??e.exports.repomod??e.exports.filemod??e.exports.workflow??null:null}catch{return null}},yxi="cdmd_dist/index.cjs",gPa=async t=>{let{entry:e,output:n=(0,dYe.join)((0,dYe.dirname)(e),yxi)}=t,a={entryPoints:[e],bundle:!0,external:["jscodeshift","ts-morph","@ast-grep/napi"],platform:"node",minify:!0,minifyWhitespace:!0,format:"cjs",legalComments:"inline",outfile:n,write:!1,logLevel:"error"},{outputFiles:c}=await _xi.default.build(a),f=c?.find(_=>_.path.endsWith(n.replace(/\.\.\//g,"").replace(/\.\//g,"")))?.text??null;if(f===null)throw new Error(`Could not find ${n} in output files`);return f},zXn=async(t,e)=>{let n=(0,dYe.join)((0,dYe.resolve)(t),yxi);try{return await(0,wpt.readFile)(n,{encoding:"utf8"})}catch{}let{path:r}=await W5e({source:t,throwOnNotFound:!0});if(!kke(r))return(0,wpt.readFile)(r,{encoding:"utf8"});let a=await gPa({entry:r,output:n});return e&&(await(0,wpt.mkdir)((0,dYe.dirname)(n),{recursive:!0}),await(0,wpt.writeFile)(n,a)),a}});var swt,KXn,qXn,vxi,yPa,bxi,xPa,vPa,bPa,jmn,EPa,SPa,Exi,Sxi,HXn=On(()=>{"use strict";swt=require("node:fs/promises"),KXn=require("node:path");gz();qXn=["**/*.js","**/*.jsx","**/*.cjs","**/*.mjs"],vxi=["**/*.ts","**/*.cts","**/*.mts"],yPa=["**/*.tsx"],bxi=["**/*.py","**/*.py3","**/*.pyi","**/*.bzl"],xPa=["**/*.java"],vPa=["**/*.bash","**/*.bats","**/*.cgi","**/*.command","**/*.env","**/*.fcgi","**/*.ksh","**/*.sh","**/*.sh.in","**/*.tmux","**/*.tool","**/*.zsh"],bPa=["**/*.c","**/*.h"],jmn=["**/*.cc","**/*.hpp","**/*.cpp","**/*.c++","**/*.hh","**/*.cxx","**/*.cu","**/*.ino"],EPa=["**/*.json"],SPa=["**/*.html","**/*.htm","**/*.xhtml"],Exi={js:qXn,jsx:qXn,javascript:qXn,ts:vxi,typescript:vxi,tsx:yPa,py:bxi,python:bxi,java:xPa,"bash-exp":vPa,c:bPa,cc:jmn,"c++":jmn,cpp:jmn,cxx:jmn,json:EPa,html:SPa},Sxi=async(t,e,n)=>{let r=(0,KXn.join)(require.resolve("@ast-grep/cli/package.json"),"..","sg");await(0,swt.access)(r,swt.constants.F_OK).catch(async()=>{r=(0,KXn.join)(__dirname,"..","node_modules",".bin","sg"),await(0,swt.access)(r,swt.constants.X_OK).catch(async()=>{r="sg",await wM("which sg").catch(async()=>{let R="npm install -g @ast-grep/cli";await wM(process.platform==="win32"?`powershell -Command ${R}`:R).catch(()=>{throw new Error("Could not locate the ast-grep CLI. Please install it with 'npm install -g @ast-grep/cli'.")})})})});let a=[],c=t.replace(/(\s+)/g,"\\$1"),f=e.replace(/(\s+)/g,"\\$1"),_=`${r} scan --rule ${c} ${f} --json=compact`,x=process.platform==="win32"?`powershell -Command "${_}"`:_,{stdout:b}=await wM(x),T=JSON.parse(b.trim());T.sort((R,O)=>O.range.byteOffset.start-R.range.byteOffset.start);let k=n;for(let R of T){let{replacementOffsets:O,replacement:j}=R;O&&(k=k.slice(0,O.start)+j+k.slice(O.end))}return typeof k!="string"||n===k||a.push({kind:"updateFile",oldPath:e,oldData:n,newData:k}),a}});var Gmn=Le(JXn=>{"use strict";Object.defineProperty(JXn,"__esModule",{value:!0});JXn.default=TPa;function TPa(t,e){let n=Object.keys(e);for(let r of n)if(t[r]!==e[r])return!1;return!0}});var bWt=Le($Xn=>{"use strict";Object.defineProperty($Xn,"__esModule",{value:!0});$Xn.default=APa;var Txi=new Set;function APa(t,e,n=""){if(Txi.has(t))return;Txi.add(t);let{internal:r,trace:a}=CPa(1,2);r||console.warn(`${n}\`${t}\` has been deprecated, please migrate to \`${e}\`
|
|
21921
21921
|
${a}`)}function CPa(t,e){let{stackTraceLimit:n,prepareStackTrace:r}=Error,a;if(Error.stackTraceLimit=1+t+e,Error.prepareStackTrace=function(f,_){a=_},new Error().stack,Error.stackTraceLimit=n,Error.prepareStackTrace=r,!a)return{internal:!1,trace:""};let c=a.slice(1+t,1+t+e);return{internal:/[\\/]@babel[\\/]/.test(c[1].getFileName()),trace:c.map(f=>` at ${f}`).join(`
|
|
21922
21922
|
`)}}});var XB=Le(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});_a.isAccessor=j3a;_a.isAnyTypeAnnotation=oNa;_a.isArgumentPlaceholder=M6a;_a.isArrayExpression=DPa;_a.isArrayPattern=Aka;_a.isArrayTypeAnnotation=lNa;_a.isArrowFunctionExpression=Cka;_a.isAssignmentExpression=wPa;_a.isAssignmentPattern=Tka;_a.isAwaitExpression=$ka;_a.isBigIntLiteral=Yka;_a.isBinary=c3a;_a.isBinaryExpression=IPa;_a.isBindExpression=F6a;_a.isBlock=d3a;_a.isBlockParent=f3a;_a.isBlockStatement=LPa;_a.isBooleanLiteral=eka;_a.isBooleanLiteralTypeAnnotation=uNa;_a.isBooleanTypeAnnotation=cNa;_a.isBreakStatement=RPa;_a.isCallExpression=OPa;_a.isCatchClause=MPa;_a.isClass=F3a;_a.isClassAccessorProperty=nNa;_a.isClassBody=Dka;_a.isClassDeclaration=Ika;_a.isClassExpression=wka;_a.isClassImplements=dNa;_a.isClassMethod=Gka;_a.isClassPrivateMethod=iNa;_a.isClassPrivateProperty=rNa;_a.isClassProperty=tNa;_a.isCompletionStatement=h3a;_a.isConditional=_3a;_a.isConditionalExpression=FPa;_a.isContinueStatement=BPa;_a.isDebuggerStatement=WPa;_a.isDecimalLiteral=z6a;_a.isDeclaration=A3a;_a.isDeclareClass=pNa;_a.isDeclareExportAllDeclaration=ENa;_a.isDeclareExportDeclaration=bNa;_a.isDeclareFunction=mNa;_a.isDeclareInterface=hNa;_a.isDeclareModule=_Na;_a.isDeclareModuleExports=gNa;_a.isDeclareOpaqueType=xNa;_a.isDeclareTypeAlias=yNa;_a.isDeclareVariable=vNa;_a.isDeclaredPredicate=SNa;_a.isDecorator=W6a;_a.isDirective=kPa;_a.isDirectiveLiteral=NPa;_a.isDoExpression=j6a;_a.isDoWhileStatement=jPa;_a.isEmptyStatement=GPa;_a.isEmptyTypeAnnotation=RNa;_a.isEnumBody=H3a;_a.isEnumBooleanBody=l6a;_a.isEnumBooleanMember=d6a;_a.isEnumDeclaration=o6a;_a.isEnumDefaultedMember=h6a;_a.isEnumMember=J3a;_a.isEnumNumberBody=c6a;_a.isEnumNumberMember=p6a;_a.isEnumStringBody=u6a;_a.isEnumStringMember=m6a;_a.isEnumSymbolBody=f6a;_a.isExistsTypeAnnotation=TNa;_a.isExportAllDeclaration=Pka;_a.isExportDeclaration=B3a;_a.isExportDefaultDeclaration=kka;_a.isExportDefaultSpecifier=G6a;_a.isExportNamedDeclaration=Nka;_a.isExportNamespaceSpecifier=Qka;_a.isExportSpecifier=Lka;_a.isExpression=l3a;_a.isExpressionStatement=UPa;_a.isExpressionWrapper=x3a;_a.isFile=VPa;_a.isFlow=U3a;_a.isFlowBaseAnnotation=z3a;_a.isFlowDeclaration=q3a;_a.isFlowPredicate=K3a;_a.isFlowType=V3a;_a.isFor=v3a;_a.isForInStatement=zPa;_a.isForOfStatement=Rka;_a.isForStatement=qPa;_a.isForXStatement=b3a;_a.isFunction=E3a;_a.isFunctionDeclaration=KPa;_a.isFunctionExpression=HPa;_a.isFunctionParent=S3a;_a.isFunctionTypeAnnotation=ANa;_a.isFunctionTypeParam=CNa;_a.isGenericTypeAnnotation=DNa;_a.isIdentifier=JPa;_a.isIfStatement=$Pa;_a.isImmutable=P3a;_a.isImport=Xka;_a.isImportAttribute=B6a;_a.isImportDeclaration=Oka;_a.isImportDefaultSpecifier=Mka;_a.isImportExpression=Wka;_a.isImportNamespaceSpecifier=Fka;_a.isImportOrExportDeclaration=Axi;_a.isImportSpecifier=Bka;_a.isIndexedAccessType=_6a;_a.isInferredPredicate=wNa;_a.isInterfaceDeclaration=PNa;_a.isInterfaceExtends=INa;_a.isInterfaceTypeAnnotation=kNa;_a.isInterpreterDirective=PPa;_a.isIntersectionTypeAnnotation=NNa;_a.isJSX=$3a;_a.isJSXAttribute=y6a;_a.isJSXClosingElement=x6a;_a.isJSXClosingFragment=N6a;_a.isJSXElement=v6a;_a.isJSXEmptyExpression=b6a;_a.isJSXExpressionContainer=E6a;_a.isJSXFragment=P6a;_a.isJSXIdentifier=T6a;_a.isJSXMemberExpression=A6a;_a.isJSXNamespacedName=C6a;_a.isJSXOpeningElement=D6a;_a.isJSXOpeningFragment=k6a;_a.isJSXSpreadAttribute=w6a;_a.isJSXSpreadChild=S6a;_a.isJSXText=I6a;_a.isLVal=D3a;_a.isLabeledStatement=XPa;_a.isLiteral=I3a;_a.isLogicalExpression=nka;_a.isLoop=g3a;_a.isMemberExpression=rka;_a.isMetaProperty=jka;_a.isMethod=N3a;_a.isMiscellaneous=X3a;_a.isMixedTypeAnnotation=LNa;_a.isModuleDeclaration=sRa;_a.isModuleExpression=q6a;_a.isModuleSpecifier=W3a;_a.isNewExpression=ika;_a.isNoop=L6a;_a.isNullLiteral=ZPa;_a.isNullLiteralTypeAnnotation=fNa;_a.isNullableTypeAnnotation=ONa;_a.isNumberLiteral=tRa;_a.isNumberLiteralTypeAnnotation=MNa;_a.isNumberTypeAnnotation=FNa;_a.isNumericLiteral=QPa;_a.isObjectExpression=aka;_a.isObjectMember=L3a;_a.isObjectMethod=oka;_a.isObjectPattern=Uka;_a.isObjectProperty=lka;_a.isObjectTypeAnnotation=BNa;_a.isObjectTypeCallProperty=jNa;_a.isObjectTypeIndexer=GNa;_a.isObjectTypeInternalSlot=WNa;_a.isObjectTypeProperty=UNa;_a.isObjectTypeSpreadProperty=VNa;_a.isOpaqueType=zNa;_a.isOptionalCallExpression=eNa;_a.isOptionalIndexedAccessType=g6a;_a.isOptionalMemberExpression=Zka;_a.isParenthesizedExpression=dka;_a.isPattern=M3a;_a.isPatternLike=C3a;_a.isPipelineBareFunction=J6a;_a.isPipelinePrimaryTopicReference=$6a;_a.isPipelineTopicExpression=H6a;_a.isPlaceholder=R6a;_a.isPrivate=G3a;_a.isPrivateName=sNa;_a.isProgram=ska;_a.isProperty=R3a;_a.isPureish=T3a;_a.isQualifiedTypeIdentifier=qNa;_a.isRecordExpression=U6a;_a.isRegExpLiteral=tka;_a.isRegexLiteral=nRa;_a.isRestElement=cka;_a.isRestProperty=rRa;_a.isReturnStatement=uka;_a.isScopable=u3a;_a.isSequenceExpression=fka;_a.isSpreadElement=Vka;_a.isSpreadProperty=iRa;_a.isStandardized=o3a;_a.isStatement=p3a;_a.isStaticBlock=aNa;_a.isStringLiteral=YPa;_a.isStringLiteralTypeAnnotation=KNa;_a.isStringTypeAnnotation=HNa;_a.isSuper=zka;_a.isSwitchCase=pka;_a.isSwitchStatement=mka;_a.isSymbolTypeAnnotation=JNa;_a.isTSAnyKeyword=sLa;_a.isTSArrayType=ALa;_a.isTSAsExpression=zLa;_a.isTSBaseType=eRa;_a.isTSBigIntKeyword=oLa;_a.isTSBooleanKeyword=aLa;_a.isTSCallSignatureDeclaration=eLa;_a.isTSConditionalType=NLa;_a.isTSConstructSignatureDeclaration=tLa;_a.isTSConstructorType=vLa;_a.isTSDeclareFunction=Y6a;_a.isTSDeclareMethod=Q6a;_a.isTSEntityName=w3a;_a.isTSEnumDeclaration=HLa;_a.isTSEnumMember=JLa;_a.isTSExportAssignment=t3a;_a.isTSExpressionWithTypeArguments=WLa;_a.isTSExternalModuleReference=ZLa;_a.isTSFunctionType=xLa;_a.isTSImportEqualsDeclaration=QLa;_a.isTSImportType=YLa;_a.isTSIndexSignature=iLa;_a.isTSIndexedAccessType=MLa;_a.isTSInferType=LLa;_a.isTSInstantiationExpression=VLa;_a.isTSInterfaceBody=GLa;_a.isTSInterfaceDeclaration=jLa;_a.isTSIntersectionType=kLa;_a.isTSIntrinsicKeyword=lLa;_a.isTSLiteralType=BLa;_a.isTSMappedType=FLa;_a.isTSMethodSignature=rLa;_a.isTSModuleBlock=XLa;_a.isTSModuleDeclaration=$La;_a.isTSNamedTupleMember=ILa;_a.isTSNamespaceExportDeclaration=n3a;_a.isTSNeverKeyword=cLa;_a.isTSNonNullExpression=e3a;_a.isTSNullKeyword=uLa;_a.isTSNumberKeyword=fLa;_a.isTSObjectKeyword=dLa;_a.isTSOptionalType=DLa;_a.isTSParameterProperty=X6a;_a.isTSParenthesizedType=RLa;_a.isTSPropertySignature=nLa;_a.isTSQualifiedName=Z6a;_a.isTSRestType=wLa;_a.isTSSatisfiesExpression=qLa;_a.isTSStringKeyword=pLa;_a.isTSSymbolKeyword=mLa;_a.isTSThisType=yLa;_a.isTSTupleType=CLa;_a.isTSType=Z3a;_a.isTSTypeAliasDeclaration=ULa;_a.isTSTypeAnnotation=r3a;_a.isTSTypeAssertion=KLa;_a.isTSTypeElement=Q3a;_a.isTSTypeLiteral=TLa;_a.isTSTypeOperator=OLa;_a.isTSTypeParameter=a3a;_a.isTSTypeParameterDeclaration=s3a;_a.isTSTypeParameterInstantiation=i3a;_a.isTSTypePredicate=ELa;_a.isTSTypeQuery=SLa;_a.isTSTypeReference=bLa;_a.isTSUndefinedKeyword=hLa;_a.isTSUnionType=PLa;_a.isTSUnknownKeyword=_La;_a.isTSVoidKeyword=gLa;_a.isTaggedTemplateExpression=qka;_a.isTemplateElement=Kka;_a.isTemplateLiteral=Hka;_a.isTerminatorless=m3a;_a.isThisExpression=hka;_a.isThisTypeAnnotation=$Na;_a.isThrowStatement=_ka;_a.isTopicReference=K6a;_a.isTryStatement=gka;_a.isTupleExpression=V6a;_a.isTupleTypeAnnotation=XNa;_a.isTypeAlias=QNa;_a.isTypeAnnotation=ZNa;_a.isTypeCastExpression=e6a;_a.isTypeParameter=t6a;_a.isTypeParameterDeclaration=n6a;_a.isTypeParameterInstantiation=r6a;_a.isTypeScript=Y3a;_a.isTypeofTypeAnnotation=YNa;_a.isUnaryExpression=yka;_a.isUnaryLike=O3a;_a.isUnionTypeAnnotation=i6a;_a.isUpdateExpression=xka;_a.isUserWhitespacable=k3a;_a.isV8IntrinsicIdentifier=O6a;_a.isVariableDeclaration=vka;_a.isVariableDeclarator=bka;_a.isVariance=s6a;_a.isVoidTypeAnnotation=a6a;_a.isWhile=y3a;_a.isWhileStatement=Eka;_a.isWithStatement=Ska;_a.isYieldExpression=Jka;var Sa=Gmn(),EWt=bWt();function DPa(t,e){return!t||t.type!=="ArrayExpression"?!1:e==null||(0,Sa.default)(t,e)}function wPa(t,e){return!t||t.type!=="AssignmentExpression"?!1:e==null||(0,Sa.default)(t,e)}function IPa(t,e){return!t||t.type!=="BinaryExpression"?!1:e==null||(0,Sa.default)(t,e)}function PPa(t,e){return!t||t.type!=="InterpreterDirective"?!1:e==null||(0,Sa.default)(t,e)}function kPa(t,e){return!t||t.type!=="Directive"?!1:e==null||(0,Sa.default)(t,e)}function NPa(t,e){return!t||t.type!=="DirectiveLiteral"?!1:e==null||(0,Sa.default)(t,e)}function LPa(t,e){return!t||t.type!=="BlockStatement"?!1:e==null||(0,Sa.default)(t,e)}function RPa(t,e){return!t||t.type!=="BreakStatement"?!1:e==null||(0,Sa.default)(t,e)}function OPa(t,e){return!t||t.type!=="CallExpression"?!1:e==null||(0,Sa.default)(t,e)}function MPa(t,e){return!t||t.type!=="CatchClause"?!1:e==null||(0,Sa.default)(t,e)}function FPa(t,e){return!t||t.type!=="ConditionalExpression"?!1:e==null||(0,Sa.default)(t,e)}function BPa(t,e){return!t||t.type!=="ContinueStatement"?!1:e==null||(0,Sa.default)(t,e)}function WPa(t,e){return!t||t.type!=="DebuggerStatement"?!1:e==null||(0,Sa.default)(t,e)}function jPa(t,e){return!t||t.type!=="DoWhileStatement"?!1:e==null||(0,Sa.default)(t,e)}function GPa(t,e){return!t||t.type!=="EmptyStatement"?!1:e==null||(0,Sa.default)(t,e)}function UPa(t,e){return!t||t.type!=="ExpressionStatement"?!1:e==null||(0,Sa.default)(t,e)}function VPa(t,e){return!t||t.type!=="File"?!1:e==null||(0,Sa.default)(t,e)}function zPa(t,e){return!t||t.type!=="ForInStatement"?!1:e==null||(0,Sa.default)(t,e)}function qPa(t,e){return!t||t.type!=="ForStatement"?!1:e==null||(0,Sa.default)(t,e)}function KPa(t,e){return!t||t.type!=="FunctionDeclaration"?!1:e==null||(0,Sa.default)(t,e)}function HPa(t,e){return!t||t.type!=="FunctionExpression"?!1:e==null||(0,Sa.default)(t,e)}function JPa(t,e){return!t||t.type!=="Identifier"?!1:e==null||(0,Sa.default)(t,e)}function $Pa(t,e){return!t||t.type!=="IfStatement"?!1:e==null||(0,Sa.default)(t,e)}function XPa(t,e){return!t||t.type!=="LabeledStatement"?!1:e==null||(0,Sa.default)(t,e)}function YPa(t,e){return!t||t.type!=="StringLiteral"?!1:e==null||(0,Sa.default)(t,e)}function QPa(t,e){return!t||t.type!=="NumericLiteral"?!1:e==null||(0,Sa.default)(t,e)}function ZPa(t,e){return!t||t.type!=="NullLiteral"?!1:e==null||(0,Sa.default)(t,e)}function eka(t,e){return!t||t.type!=="BooleanLiteral"?!1:e==null||(0,Sa.default)(t,e)}function tka(t,e){return!t||t.type!=="RegExpLiteral"?!1:e==null||(0,Sa.default)(t,e)}function nka(t,e){return!t||t.type!=="LogicalExpression"?!1:e==null||(0,Sa.default)(t,e)}function rka(t,e){return!t||t.type!=="MemberExpression"?!1:e==null||(0,Sa.default)(t,e)}function ika(t,e){return!t||t.type!=="NewExpression"?!1:e==null||(0,Sa.default)(t,e)}function ska(t,e){return!t||t.type!=="Program"?!1:e==null||(0,Sa.default)(t,e)}function aka(t,e){return!t||t.type!=="ObjectExpression"?!1:e==null||(0,Sa.default)(t,e)}function oka(t,e){return!t||t.type!=="ObjectMethod"?!1:e==null||(0,Sa.default)(t,e)}function lka(t,e){return!t||t.type!=="ObjectProperty"?!1:e==null||(0,Sa.default)(t,e)}function cka(t,e){return!t||t.type!=="RestElement"?!1:e==null||(0,Sa.default)(t,e)}function uka(t,e){return!t||t.type!=="ReturnStatement"?!1:e==null||(0,Sa.default)(t,e)}function fka(t,e){return!t||t.type!=="SequenceExpression"?!1:e==null||(0,Sa.default)(t,e)}function dka(t,e){return!t||t.type!=="ParenthesizedExpression"?!1:e==null||(0,Sa.default)(t,e)}function pka(t,e){return!t||t.type!=="SwitchCase"?!1:e==null||(0,Sa.default)(t,e)}function mka(t,e){return!t||t.type!=="SwitchStatement"?!1:e==null||(0,Sa.default)(t,e)}function hka(t,e){return!t||t.type!=="ThisExpression"?!1:e==null||(0,Sa.default)(t,e)}function _ka(t,e){return!t||t.type!=="ThrowStatement"?!1:e==null||(0,Sa.default)(t,e)}function gka(t,e){return!t||t.type!=="TryStatement"?!1:e==null||(0,Sa.default)(t,e)}function yka(t,e){return!t||t.type!=="UnaryExpression"?!1:e==null||(0,Sa.default)(t,e)}function xka(t,e){return!t||t.type!=="UpdateExpression"?!1:e==null||(0,Sa.default)(t,e)}function vka(t,e){return!t||t.type!=="VariableDeclaration"?!1:e==null||(0,Sa.default)(t,e)}function bka(t,e){return!t||t.type!=="VariableDeclarator"?!1:e==null||(0,Sa.default)(t,e)}function Eka(t,e){return!t||t.type!=="WhileStatement"?!1:e==null||(0,Sa.default)(t,e)}function Ska(t,e){return!t||t.type!=="WithStatement"?!1:e==null||(0,Sa.default)(t,e)}function Tka(t,e){return!t||t.type!=="AssignmentPattern"?!1:e==null||(0,Sa.default)(t,e)}function Aka(t,e){return!t||t.type!=="ArrayPattern"?!1:e==null||(0,Sa.default)(t,e)}function Cka(t,e){return!t||t.type!=="ArrowFunctionExpression"?!1:e==null||(0,Sa.default)(t,e)}function Dka(t,e){return!t||t.type!=="ClassBody"?!1:e==null||(0,Sa.default)(t,e)}function wka(t,e){return!t||t.type!=="ClassExpression"?!1:e==null||(0,Sa.default)(t,e)}function Ika(t,e){return!t||t.type!=="ClassDeclaration"?!1:e==null||(0,Sa.default)(t,e)}function Pka(t,e){return!t||t.type!=="ExportAllDeclaration"?!1:e==null||(0,Sa.default)(t,e)}function kka(t,e){return!t||t.type!=="ExportDefaultDeclaration"?!1:e==null||(0,Sa.default)(t,e)}function Nka(t,e){return!t||t.type!=="ExportNamedDeclaration"?!1:e==null||(0,Sa.default)(t,e)}function Lka(t,e){return!t||t.type!=="ExportSpecifier"?!1:e==null||(0,Sa.default)(t,e)}function Rka(t,e){return!t||t.type!=="ForOfStatement"?!1:e==null||(0,Sa.default)(t,e)}function Oka(t,e){return!t||t.type!=="ImportDeclaration"?!1:e==null||(0,Sa.default)(t,e)}function Mka(t,e){return!t||t.type!=="ImportDefaultSpecifier"?!1:e==null||(0,Sa.default)(t,e)}function Fka(t,e){return!t||t.type!=="ImportNamespaceSpecifier"?!1:e==null||(0,Sa.default)(t,e)}function Bka(t,e){return!t||t.type!=="ImportSpecifier"?!1:e==null||(0,Sa.default)(t,e)}function Wka(t,e){return!t||t.type!=="ImportExpression"?!1:e==null||(0,Sa.default)(t,e)}function jka(t,e){return!t||t.type!=="MetaProperty"?!1:e==null||(0,Sa.default)(t,e)}function Gka(t,e){return!t||t.type!=="ClassMethod"?!1:e==null||(0,Sa.default)(t,e)}function Uka(t,e){return!t||t.type!=="ObjectPattern"?!1:e==null||(0,Sa.default)(t,e)}function Vka(t,e){return!t||t.type!=="SpreadElement"?!1:e==null||(0,Sa.default)(t,e)}function zka(t,e){return!t||t.type!=="Super"?!1:e==null||(0,Sa.default)(t,e)}function qka(t,e){return!t||t.type!=="TaggedTemplateExpression"?!1:e==null||(0,Sa.default)(t,e)}function Kka(t,e){return!t||t.type!=="TemplateElement"?!1:e==null||(0,Sa.default)(t,e)}function Hka(t,e){return!t||t.type!=="TemplateLiteral"?!1:e==null||(0,Sa.default)(t,e)}function Jka(t,e){return!t||t.type!=="YieldExpression"?!1:e==null||(0,Sa.default)(t,e)}function $ka(t,e){return!t||t.type!=="AwaitExpression"?!1:e==null||(0,Sa.default)(t,e)}function Xka(t,e){return!t||t.type!=="Import"?!1:e==null||(0,Sa.default)(t,e)}function Yka(t,e){return!t||t.type!=="BigIntLiteral"?!1:e==null||(0,Sa.default)(t,e)}function Qka(t,e){return!t||t.type!=="ExportNamespaceSpecifier"?!1:e==null||(0,Sa.default)(t,e)}function Zka(t,e){return!t||t.type!=="OptionalMemberExpression"?!1:e==null||(0,Sa.default)(t,e)}function eNa(t,e){return!t||t.type!=="OptionalCallExpression"?!1:e==null||(0,Sa.default)(t,e)}function tNa(t,e){return!t||t.type!=="ClassProperty"?!1:e==null||(0,Sa.default)(t,e)}function nNa(t,e){return!t||t.type!=="ClassAccessorProperty"?!1:e==null||(0,Sa.default)(t,e)}function rNa(t,e){return!t||t.type!=="ClassPrivateProperty"?!1:e==null||(0,Sa.default)(t,e)}function iNa(t,e){return!t||t.type!=="ClassPrivateMethod"?!1:e==null||(0,Sa.default)(t,e)}function sNa(t,e){return!t||t.type!=="PrivateName"?!1:e==null||(0,Sa.default)(t,e)}function aNa(t,e){return!t||t.type!=="StaticBlock"?!1:e==null||(0,Sa.default)(t,e)}function oNa(t,e){return!t||t.type!=="AnyTypeAnnotation"?!1:e==null||(0,Sa.default)(t,e)}function lNa(t,e){return!t||t.type!=="ArrayTypeAnnotation"?!1:e==null||(0,Sa.default)(t,e)}function cNa(t,e){return!t||t.type!=="BooleanTypeAnnotation"?!1:e==null||(0,Sa.default)(t,e)}function uNa(t,e){return!t||t.type!=="BooleanLiteralTypeAnnotation"?!1:e==null||(0,Sa.default)(t,e)}function fNa(t,e){return!t||t.type!=="NullLiteralTypeAnnotation"?!1:e==null||(0,Sa.default)(t,e)}function dNa(t,e){return!t||t.type!=="ClassImplements"?!1:e==null||(0,Sa.default)(t,e)}function pNa(t,e){return!t||t.type!=="DeclareClass"?!1:e==null||(0,Sa.default)(t,e)}function mNa(t,e){return!t||t.type!=="DeclareFunction"?!1:e==null||(0,Sa.default)(t,e)}function hNa(t,e){return!t||t.type!=="DeclareInterface"?!1:e==null||(0,Sa.default)(t,e)}function _Na(t,e){return!t||t.type!=="DeclareModule"?!1:e==null||(0,Sa.default)(t,e)}function gNa(t,e){return!t||t.type!=="DeclareModuleExports"?!1:e==null||(0,Sa.default)(t,e)}function yNa(t,e){return!t||t.type!=="DeclareTypeAlias"?!1:e==null||(0,Sa.default)(t,e)}function xNa(t,e){return!t||t.type!=="DeclareOpaqueType"?!1:e==null||(0,Sa.default)(t,e)}function vNa(t,e){return!t||t.type!=="DeclareVariable"?!1:e==null||(0,Sa.default)(t,e)}function bNa(t,e){return!t||t.type!=="DeclareExportDeclaration"?!1:e==null||(0,Sa.default)(t,e)}function ENa(t,e){return!t||t.type!=="DeclareExportAllDeclaration"?!1:e==null||(0,Sa.default)(t,e)}function SNa(t,e){return!t||t.type!=="DeclaredPredicate"?!1:e==null||(0,Sa.default)(t,e)}function TNa(t,e){return!t||t.type!=="ExistsTypeAnnotation"?!1:e==null||(0,Sa.default)(t,e)}function ANa(t,e){return!t||t.type!=="FunctionTypeAnnotation"?!1:e==null||(0,Sa.default)(t,e)}function CNa(t,e){return!t||t.type!=="FunctionTypeParam"?!1:e==null||(0,Sa.default)(t,e)}function DNa(t,e){return!t||t.type!=="GenericTypeAnnotation"?!1:e==null||(0,Sa.default)(t,e)}function wNa(t,e){return!t||t.type!=="InferredPredicate"?!1:e==null||(0,Sa.default)(t,e)}function INa(t,e){return!t||t.type!=="InterfaceExtends"?!1:e==null||(0,Sa.default)(t,e)}function PNa(t,e){return!t||t.type!=="InterfaceDeclaration"?!1:e==null||(0,Sa.default)(t,e)}function kNa(t,e){return!t||t.type!=="InterfaceTypeAnnotation"?!1:e==null||(0,Sa.default)(t,e)}function NNa(t,e){return!t||t.type!=="IntersectionTypeAnnotation"?!1:e==null||(0,Sa.default)(t,e)}function LNa(t,e){return!t||t.type!=="MixedTypeAnnotation"?!1:e==null||(0,Sa.default)(t,e)}function RNa(t,e){return!t||t.type!=="EmptyTypeAnnotation"?!1:e==null||(0,Sa.default)(t,e)}function ONa(t,e){return!t||t.type!=="NullableTypeAnnotation"?!1:e==null||(0,Sa.default)(t,e)}function MNa(t,e){return!t||t.type!=="NumberLiteralTypeAnnotation"?!1:e==null||(0,Sa.default)(t,e)}function FNa(t,e){return!t||t.type!=="NumberTypeAnnotation"?!1:e==null||(0,Sa.default)(t,e)}function BNa(t,e){return!t||t.type!=="ObjectTypeAnnotation"?!1:e==null||(0,Sa.default)(t,e)}function WNa(t,e){return!t||t.type!=="ObjectTypeInternalSlot"?!1:e==null||(0,Sa.default)(t,e)}function jNa(t,e){return!t||t.type!=="ObjectTypeCallProperty"?!1:e==null||(0,Sa.default)(t,e)}function GNa(t,e){return!t||t.type!=="ObjectTypeIndexer"?!1:e==null||(0,Sa.default)(t,e)}function UNa(t,e){return!t||t.type!=="ObjectTypeProperty"?!1:e==null||(0,Sa.default)(t,e)}function VNa(t,e){return!t||t.type!=="ObjectTypeSpreadProperty"?!1:e==null||(0,Sa.default)(t,e)}function zNa(t,e){return!t||t.type!=="OpaqueType"?!1:e==null||(0,Sa.default)(t,e)}function qNa(t,e){return!t||t.type!=="QualifiedTypeIdentifier"?!1:e==null||(0,Sa.default)(t,e)}function KNa(t,e){return!t||t.type!=="StringLiteralTypeAnnotation"?!1:e==null||(0,Sa.default)(t,e)}function HNa(t,e){return!t||t.type!=="StringTypeAnnotation"?!1:e==null||(0,Sa.default)(t,e)}function JNa(t,e){return!t||t.type!=="SymbolTypeAnnotation"?!1:e==null||(0,Sa.default)(t,e)}function $Na(t,e){return!t||t.type!=="ThisTypeAnnotation"?!1:e==null||(0,Sa.default)(t,e)}function XNa(t,e){return!t||t.type!=="TupleTypeAnnotation"?!1:e==null||(0,Sa.default)(t,e)}function YNa(t,e){return!t||t.type!=="TypeofTypeAnnotation"?!1:e==null||(0,Sa.default)(t,e)}function QNa(t,e){return!t||t.type!=="TypeAlias"?!1:e==null||(0,Sa.default)(t,e)}function ZNa(t,e){return!t||t.type!=="TypeAnnotation"?!1:e==null||(0,Sa.default)(t,e)}function e6a(t,e){return!t||t.type!=="TypeCastExpression"?!1:e==null||(0,Sa.default)(t,e)}function t6a(t,e){return!t||t.type!=="TypeParameter"?!1:e==null||(0,Sa.default)(t,e)}function n6a(t,e){return!t||t.type!=="TypeParameterDeclaration"?!1:e==null||(0,Sa.default)(t,e)}function r6a(t,e){return!t||t.type!=="TypeParameterInstantiation"?!1:e==null||(0,Sa.default)(t,e)}function i6a(t,e){return!t||t.type!=="UnionTypeAnnotation"?!1:e==null||(0,Sa.default)(t,e)}function s6a(t,e){return!t||t.type!=="Variance"?!1:e==null||(0,Sa.default)(t,e)}function a6a(t,e){return!t||t.type!=="VoidTypeAnnotation"?!1:e==null||(0,Sa.default)(t,e)}function o6a(t,e){return!t||t.type!=="EnumDeclaration"?!1:e==null||(0,Sa.default)(t,e)}function l6a(t,e){return!t||t.type!=="EnumBooleanBody"?!1:e==null||(0,Sa.default)(t,e)}function c6a(t,e){return!t||t.type!=="EnumNumberBody"?!1:e==null||(0,Sa.default)(t,e)}function u6a(t,e){return!t||t.type!=="EnumStringBody"?!1:e==null||(0,Sa.default)(t,e)}function f6a(t,e){return!t||t.type!=="EnumSymbolBody"?!1:e==null||(0,Sa.default)(t,e)}function d6a(t,e){return!t||t.type!=="EnumBooleanMember"?!1:e==null||(0,Sa.default)(t,e)}function p6a(t,e){return!t||t.type!=="EnumNumberMember"?!1:e==null||(0,Sa.default)(t,e)}function m6a(t,e){return!t||t.type!=="EnumStringMember"?!1:e==null||(0,Sa.default)(t,e)}function h6a(t,e){return!t||t.type!=="EnumDefaultedMember"?!1:e==null||(0,Sa.default)(t,e)}function _6a(t,e){return!t||t.type!=="IndexedAccessType"?!1:e==null||(0,Sa.default)(t,e)}function g6a(t,e){return!t||t.type!=="OptionalIndexedAccessType"?!1:e==null||(0,Sa.default)(t,e)}function y6a(t,e){return!t||t.type!=="JSXAttribute"?!1:e==null||(0,Sa.default)(t,e)}function x6a(t,e){return!t||t.type!=="JSXClosingElement"?!1:e==null||(0,Sa.default)(t,e)}function v6a(t,e){return!t||t.type!=="JSXElement"?!1:e==null||(0,Sa.default)(t,e)}function b6a(t,e){return!t||t.type!=="JSXEmptyExpression"?!1:e==null||(0,Sa.default)(t,e)}function E6a(t,e){return!t||t.type!=="JSXExpressionContainer"?!1:e==null||(0,Sa.default)(t,e)}function S6a(t,e){return!t||t.type!=="JSXSpreadChild"?!1:e==null||(0,Sa.default)(t,e)}function T6a(t,e){return!t||t.type!=="JSXIdentifier"?!1:e==null||(0,Sa.default)(t,e)}function A6a(t,e){return!t||t.type!=="JSXMemberExpression"?!1:e==null||(0,Sa.default)(t,e)}function C6a(t,e){return!t||t.type!=="JSXNamespacedName"?!1:e==null||(0,Sa.default)(t,e)}function D6a(t,e){return!t||t.type!=="JSXOpeningElement"?!1:e==null||(0,Sa.default)(t,e)}function w6a(t,e){return!t||t.type!=="JSXSpreadAttribute"?!1:e==null||(0,Sa.default)(t,e)}function I6a(t,e){return!t||t.type!=="JSXText"?!1:e==null||(0,Sa.default)(t,e)}function P6a(t,e){return!t||t.type!=="JSXFragment"?!1:e==null||(0,Sa.default)(t,e)}function k6a(t,e){return!t||t.type!=="JSXOpeningFragment"?!1:e==null||(0,Sa.default)(t,e)}function N6a(t,e){return!t||t.type!=="JSXClosingFragment"?!1:e==null||(0,Sa.default)(t,e)}function L6a(t,e){return!t||t.type!=="Noop"?!1:e==null||(0,Sa.default)(t,e)}function R6a(t,e){return!t||t.type!=="Placeholder"?!1:e==null||(0,Sa.default)(t,e)}function O6a(t,e){return!t||t.type!=="V8IntrinsicIdentifier"?!1:e==null||(0,Sa.default)(t,e)}function M6a(t,e){return!t||t.type!=="ArgumentPlaceholder"?!1:e==null||(0,Sa.default)(t,e)}function F6a(t,e){return!t||t.type!=="BindExpression"?!1:e==null||(0,Sa.default)(t,e)}function B6a(t,e){return!t||t.type!=="ImportAttribute"?!1:e==null||(0,Sa.default)(t,e)}function W6a(t,e){return!t||t.type!=="Decorator"?!1:e==null||(0,Sa.default)(t,e)}function j6a(t,e){return!t||t.type!=="DoExpression"?!1:e==null||(0,Sa.default)(t,e)}function G6a(t,e){return!t||t.type!=="ExportDefaultSpecifier"?!1:e==null||(0,Sa.default)(t,e)}function U6a(t,e){return!t||t.type!=="RecordExpression"?!1:e==null||(0,Sa.default)(t,e)}function V6a(t,e){return!t||t.type!=="TupleExpression"?!1:e==null||(0,Sa.default)(t,e)}function z6a(t,e){return!t||t.type!=="DecimalLiteral"?!1:e==null||(0,Sa.default)(t,e)}function q6a(t,e){return!t||t.type!=="ModuleExpression"?!1:e==null||(0,Sa.default)(t,e)}function K6a(t,e){return!t||t.type!=="TopicReference"?!1:e==null||(0,Sa.default)(t,e)}function H6a(t,e){return!t||t.type!=="PipelineTopicExpression"?!1:e==null||(0,Sa.default)(t,e)}function J6a(t,e){return!t||t.type!=="PipelineBareFunction"?!1:e==null||(0,Sa.default)(t,e)}function $6a(t,e){return!t||t.type!=="PipelinePrimaryTopicReference"?!1:e==null||(0,Sa.default)(t,e)}function X6a(t,e){return!t||t.type!=="TSParameterProperty"?!1:e==null||(0,Sa.default)(t,e)}function Y6a(t,e){return!t||t.type!=="TSDeclareFunction"?!1:e==null||(0,Sa.default)(t,e)}function Q6a(t,e){return!t||t.type!=="TSDeclareMethod"?!1:e==null||(0,Sa.default)(t,e)}function Z6a(t,e){return!t||t.type!=="TSQualifiedName"?!1:e==null||(0,Sa.default)(t,e)}function eLa(t,e){return!t||t.type!=="TSCallSignatureDeclaration"?!1:e==null||(0,Sa.default)(t,e)}function tLa(t,e){return!t||t.type!=="TSConstructSignatureDeclaration"?!1:e==null||(0,Sa.default)(t,e)}function nLa(t,e){return!t||t.type!=="TSPropertySignature"?!1:e==null||(0,Sa.default)(t,e)}function rLa(t,e){return!t||t.type!=="TSMethodSignature"?!1:e==null||(0,Sa.default)(t,e)}function iLa(t,e){return!t||t.type!=="TSIndexSignature"?!1:e==null||(0,Sa.default)(t,e)}function sLa(t,e){return!t||t.type!=="TSAnyKeyword"?!1:e==null||(0,Sa.default)(t,e)}function aLa(t,e){return!t||t.type!=="TSBooleanKeyword"?!1:e==null||(0,Sa.default)(t,e)}function oLa(t,e){return!t||t.type!=="TSBigIntKeyword"?!1:e==null||(0,Sa.default)(t,e)}function lLa(t,e){return!t||t.type!=="TSIntrinsicKeyword"?!1:e==null||(0,Sa.default)(t,e)}function cLa(t,e){return!t||t.type!=="TSNeverKeyword"?!1:e==null||(0,Sa.default)(t,e)}function uLa(t,e){return!t||t.type!=="TSNullKeyword"?!1:e==null||(0,Sa.default)(t,e)}function fLa(t,e){return!t||t.type!=="TSNumberKeyword"?!1:e==null||(0,Sa.default)(t,e)}function dLa(t,e){return!t||t.type!=="TSObjectKeyword"?!1:e==null||(0,Sa.default)(t,e)}function pLa(t,e){return!t||t.type!=="TSStringKeyword"?!1:e==null||(0,Sa.default)(t,e)}function mLa(t,e){return!t||t.type!=="TSSymbolKeyword"?!1:e==null||(0,Sa.default)(t,e)}function hLa(t,e){return!t||t.type!=="TSUndefinedKeyword"?!1:e==null||(0,Sa.default)(t,e)}function _La(t,e){return!t||t.type!=="TSUnknownKeyword"?!1:e==null||(0,Sa.default)(t,e)}function gLa(t,e){return!t||t.type!=="TSVoidKeyword"?!1:e==null||(0,Sa.default)(t,e)}function yLa(t,e){return!t||t.type!=="TSThisType"?!1:e==null||(0,Sa.default)(t,e)}function xLa(t,e){return!t||t.type!=="TSFunctionType"?!1:e==null||(0,Sa.default)(t,e)}function vLa(t,e){return!t||t.type!=="TSConstructorType"?!1:e==null||(0,Sa.default)(t,e)}function bLa(t,e){return!t||t.type!=="TSTypeReference"?!1:e==null||(0,Sa.default)(t,e)}function ELa(t,e){return!t||t.type!=="TSTypePredicate"?!1:e==null||(0,Sa.default)(t,e)}function SLa(t,e){return!t||t.type!=="TSTypeQuery"?!1:e==null||(0,Sa.default)(t,e)}function TLa(t,e){return!t||t.type!=="TSTypeLiteral"?!1:e==null||(0,Sa.default)(t,e)}function ALa(t,e){return!t||t.type!=="TSArrayType"?!1:e==null||(0,Sa.default)(t,e)}function CLa(t,e){return!t||t.type!=="TSTupleType"?!1:e==null||(0,Sa.default)(t,e)}function DLa(t,e){return!t||t.type!=="TSOptionalType"?!1:e==null||(0,Sa.default)(t,e)}function wLa(t,e){return!t||t.type!=="TSRestType"?!1:e==null||(0,Sa.default)(t,e)}function ILa(t,e){return!t||t.type!=="TSNamedTupleMember"?!1:e==null||(0,Sa.default)(t,e)}function PLa(t,e){return!t||t.type!=="TSUnionType"?!1:e==null||(0,Sa.default)(t,e)}function kLa(t,e){return!t||t.type!=="TSIntersectionType"?!1:e==null||(0,Sa.default)(t,e)}function NLa(t,e){return!t||t.type!=="TSConditionalType"?!1:e==null||(0,Sa.default)(t,e)}function LLa(t,e){return!t||t.type!=="TSInferType"?!1:e==null||(0,Sa.default)(t,e)}function RLa(t,e){return!t||t.type!=="TSParenthesizedType"?!1:e==null||(0,Sa.default)(t,e)}function OLa(t,e){return!t||t.type!=="TSTypeOperator"?!1:e==null||(0,Sa.default)(t,e)}function MLa(t,e){return!t||t.type!=="TSIndexedAccessType"?!1:e==null||(0,Sa.default)(t,e)}function FLa(t,e){return!t||t.type!=="TSMappedType"?!1:e==null||(0,Sa.default)(t,e)}function BLa(t,e){return!t||t.type!=="TSLiteralType"?!1:e==null||(0,Sa.default)(t,e)}function WLa(t,e){return!t||t.type!=="TSExpressionWithTypeArguments"?!1:e==null||(0,Sa.default)(t,e)}function jLa(t,e){return!t||t.type!=="TSInterfaceDeclaration"?!1:e==null||(0,Sa.default)(t,e)}function GLa(t,e){return!t||t.type!=="TSInterfaceBody"?!1:e==null||(0,Sa.default)(t,e)}function ULa(t,e){return!t||t.type!=="TSTypeAliasDeclaration"?!1:e==null||(0,Sa.default)(t,e)}function VLa(t,e){return!t||t.type!=="TSInstantiationExpression"?!1:e==null||(0,Sa.default)(t,e)}function zLa(t,e){return!t||t.type!=="TSAsExpression"?!1:e==null||(0,Sa.default)(t,e)}function qLa(t,e){return!t||t.type!=="TSSatisfiesExpression"?!1:e==null||(0,Sa.default)(t,e)}function KLa(t,e){return!t||t.type!=="TSTypeAssertion"?!1:e==null||(0,Sa.default)(t,e)}function HLa(t,e){return!t||t.type!=="TSEnumDeclaration"?!1:e==null||(0,Sa.default)(t,e)}function JLa(t,e){return!t||t.type!=="TSEnumMember"?!1:e==null||(0,Sa.default)(t,e)}function $La(t,e){return!t||t.type!=="TSModuleDeclaration"?!1:e==null||(0,Sa.default)(t,e)}function XLa(t,e){return!t||t.type!=="TSModuleBlock"?!1:e==null||(0,Sa.default)(t,e)}function YLa(t,e){return!t||t.type!=="TSImportType"?!1:e==null||(0,Sa.default)(t,e)}function QLa(t,e){return!t||t.type!=="TSImportEqualsDeclaration"?!1:e==null||(0,Sa.default)(t,e)}function ZLa(t,e){return!t||t.type!=="TSExternalModuleReference"?!1:e==null||(0,Sa.default)(t,e)}function e3a(t,e){return!t||t.type!=="TSNonNullExpression"?!1:e==null||(0,Sa.default)(t,e)}function t3a(t,e){return!t||t.type!=="TSExportAssignment"?!1:e==null||(0,Sa.default)(t,e)}function n3a(t,e){return!t||t.type!=="TSNamespaceExportDeclaration"?!1:e==null||(0,Sa.default)(t,e)}function r3a(t,e){return!t||t.type!=="TSTypeAnnotation"?!1:e==null||(0,Sa.default)(t,e)}function i3a(t,e){return!t||t.type!=="TSTypeParameterInstantiation"?!1:e==null||(0,Sa.default)(t,e)}function s3a(t,e){return!t||t.type!=="TSTypeParameterDeclaration"?!1:e==null||(0,Sa.default)(t,e)}function a3a(t,e){return!t||t.type!=="TSTypeParameter"?!1:e==null||(0,Sa.default)(t,e)}function o3a(t,e){if(!t)return!1;switch(t.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":break;case"Placeholder":switch(t.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return e==null||(0,Sa.default)(t,e)}function l3a(t,e){if(!t)return!1;switch(t.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(t.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return e==null||(0,Sa.default)(t,e)}function c3a(t,e){if(!t)return!1;switch(t.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function u3a(t,e){if(!t)return!1;switch(t.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(t.expectedNode==="BlockStatement")break;default:return!1}return e==null||(0,Sa.default)(t,e)}function f3a(t,e){if(!t)return!1;switch(t.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(t.expectedNode==="BlockStatement")break;default:return!1}return e==null||(0,Sa.default)(t,e)}function d3a(t,e){if(!t)return!1;switch(t.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(t.expectedNode==="BlockStatement")break;default:return!1}return e==null||(0,Sa.default)(t,e)}function p3a(t,e){if(!t)return!1;switch(t.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(t.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return e==null||(0,Sa.default)(t,e)}function m3a(t,e){if(!t)return!1;switch(t.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function h3a(t,e){if(!t)return!1;switch(t.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function _3a(t,e){if(!t)return!1;switch(t.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function g3a(t,e){if(!t)return!1;switch(t.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function y3a(t,e){if(!t)return!1;switch(t.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function x3a(t,e){if(!t)return!1;switch(t.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function v3a(t,e){if(!t)return!1;switch(t.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function b3a(t,e){if(!t)return!1;switch(t.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function E3a(t,e){if(!t)return!1;switch(t.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function S3a(t,e){if(!t)return!1;switch(t.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function T3a(t,e){if(!t)return!1;switch(t.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(t.expectedNode==="StringLiteral")break;default:return!1}return e==null||(0,Sa.default)(t,e)}function A3a(t,e){if(!t)return!1;switch(t.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":break;case"Placeholder":if(t.expectedNode==="Declaration")break;default:return!1}return e==null||(0,Sa.default)(t,e)}function C3a(t,e){if(!t)return!1;switch(t.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(t.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return e==null||(0,Sa.default)(t,e)}function D3a(t,e){if(!t)return!1;switch(t.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(t.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return e==null||(0,Sa.default)(t,e)}function w3a(t,e){if(!t)return!1;switch(t.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(t.expectedNode==="Identifier")break;default:return!1}return e==null||(0,Sa.default)(t,e)}function I3a(t,e){if(!t)return!1;switch(t.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(t.expectedNode==="StringLiteral")break;default:return!1}return e==null||(0,Sa.default)(t,e)}function P3a(t,e){if(!t)return!1;switch(t.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if(t.expectedNode==="StringLiteral")break;default:return!1}return e==null||(0,Sa.default)(t,e)}function k3a(t,e){if(!t)return!1;switch(t.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function N3a(t,e){if(!t)return!1;switch(t.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function L3a(t,e){if(!t)return!1;switch(t.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function R3a(t,e){if(!t)return!1;switch(t.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function O3a(t,e){if(!t)return!1;switch(t.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function M3a(t,e){if(!t)return!1;switch(t.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":break;case"Placeholder":if(t.expectedNode==="Pattern")break;default:return!1}return e==null||(0,Sa.default)(t,e)}function F3a(t,e){if(!t)return!1;switch(t.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function Axi(t,e){if(!t)return!1;switch(t.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function B3a(t,e){if(!t)return!1;switch(t.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function W3a(t,e){if(!t)return!1;switch(t.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function j3a(t,e){if(!t)return!1;switch(t.type){case"ClassAccessorProperty":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function G3a(t,e){if(!t)return!1;switch(t.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function U3a(t,e){if(!t)return!1;switch(t.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function V3a(t,e){if(!t)return!1;switch(t.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function z3a(t,e){if(!t)return!1;switch(t.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function q3a(t,e){if(!t)return!1;switch(t.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function K3a(t,e){if(!t)return!1;switch(t.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function H3a(t,e){if(!t)return!1;switch(t.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function J3a(t,e){if(!t)return!1;switch(t.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function $3a(t,e){if(!t)return!1;switch(t.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function X3a(t,e){if(!t)return!1;switch(t.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function Y3a(t,e){if(!t)return!1;switch(t.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function Q3a(t,e){if(!t)return!1;switch(t.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function Z3a(t,e){if(!t)return!1;switch(t.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function eRa(t,e){if(!t)return!1;switch(t.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSLiteralType":break;default:return!1}return e==null||(0,Sa.default)(t,e)}function tRa(t,e){return(0,EWt.default)("isNumberLiteral","isNumericLiteral"),!t||t.type!=="NumberLiteral"?!1:e==null||(0,Sa.default)(t,e)}function nRa(t,e){return(0,EWt.default)("isRegexLiteral","isRegExpLiteral"),!t||t.type!=="RegexLiteral"?!1:e==null||(0,Sa.default)(t,e)}function rRa(t,e){return(0,EWt.default)("isRestProperty","isRestElement"),!t||t.type!=="RestProperty"?!1:e==null||(0,Sa.default)(t,e)}function iRa(t,e){return(0,EWt.default)("isSpreadProperty","isSpreadElement"),!t||t.type!=="SpreadProperty"?!1:e==null||(0,Sa.default)(t,e)}function sRa(t,e){return(0,EWt.default)("isModuleDeclaration","isImportOrExportDeclaration"),Axi(t,e)}});var YXn=Le(XXn=>{"use strict";Object.defineProperty(XXn,"__esModule",{value:!0});XXn.default=aRa;var SWt=XB();function aRa(t,e,n){if(!(0,SWt.isMemberExpression)(t))return!1;let r=Array.isArray(e)?e:e.split("."),a=[],c;for(c=t;(0,SWt.isMemberExpression)(c);c=c.object)a.push(c.property);if(a.push(c),a.length<r.length||!n&&a.length>r.length)return!1;for(let f=0,_=a.length-1;f<r.length;f++,_--){let x=a[_],b;if((0,SWt.isIdentifier)(x))b=x.name;else if((0,SWt.isStringLiteral)(x))b=x.value;else if((0,SWt.isThisExpression)(x))b="this";else return!1;if(r[f]!==b)return!1}return!0}});var ZXn=Le(QXn=>{"use strict";Object.defineProperty(QXn,"__esModule",{value:!0});QXn.default=lRa;var oRa=YXn();function lRa(t,e){let n=t.split(".");return r=>(0,oRa.default)(r,n,e)}});var Cxi=Le(Umn=>{"use strict";Object.defineProperty(Umn,"__esModule",{value:!0});Umn.default=void 0;var cRa=ZXn(),uRa=(0,cRa.default)("React.Component"),xyl=Umn.default=uRa});var Dxi=Le(eYn=>{"use strict";Object.defineProperty(eYn,"__esModule",{value:!0});eYn.default=fRa;function fRa(t){return!!t&&/^[a-z]/.test(t)}});var Ixi=Le((Eyl,wxi)=>{"use strict";var TWt=null;function AWt(t){if(TWt!==null&&typeof TWt.property){let e=TWt;return TWt=AWt.prototype=null,e}return TWt=AWt.prototype=t??Object.create(null),new AWt}AWt();wxi.exports=function(e){return AWt(e)}});var Vmn=Le(tYn=>{"use strict";Object.defineProperty(tYn,"__esModule",{value:!0});tYn.default=dRa;var Pxi=zye();function dRa(t,e){if(t===e)return!0;if(t==null||Pxi.ALIAS_KEYS[e])return!1;let n=Pxi.FLIPPED_ALIAS_KEYS[e];if(n){if(n[0]===t)return!0;for(let r of n)if(t===r)return!0}return!1}});var rYn=Le(nYn=>{"use strict";Object.defineProperty(nYn,"__esModule",{value:!0});nYn.default=mRa;var pRa=zye();function mRa(t,e){if(t===e)return!0;let n=pRa.PLACEHOLDERS_ALIAS[t];if(n){for(let r of n)if(e===r)return!0}return!1}});var awt=Le(iYn=>{"use strict";Object.defineProperty(iYn,"__esModule",{value:!0});iYn.default=xRa;var hRa=Gmn(),_Ra=Vmn(),gRa=rYn(),yRa=zye();function xRa(t,e,n){return e?(0,_Ra.default)(e.type,t)?typeof n>"u"?!0:(0,hRa.default)(e,n):!n&&e.type==="Placeholder"&&t in yRa.FLIPPED_ALIAS_KEYS?(0,gRa.default)(e.expectedNode,t):!1:!1}});var Oxi=Le(CWt=>{"use strict";Object.defineProperty(CWt,"__esModule",{value:!0});CWt.isIdentifierChar=Rxi;CWt.isIdentifierName=SRa;CWt.isIdentifierStart=Lxi;var aYn="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",kxi="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",vRa=new RegExp("["+aYn+"]"),bRa=new RegExp("["+aYn+kxi+"]");aYn=kxi=null;var Nxi=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],ERa=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function sYn(t,e){let n=65536;for(let r=0,a=e.length;r<a;r+=2){if(n+=e[r],n>t)return!1;if(n+=e[r+1],n>=t)return!0}return!1}function Lxi(t){return t<65?t===36:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&vRa.test(String.fromCharCode(t)):sYn(t,Nxi)}function Rxi(t){return t<48?t===36:t<58?!0:t<65?!1:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&bRa.test(String.fromCharCode(t)):sYn(t,Nxi)||sYn(t,ERa)}function SRa(t){let e=!0;for(let n=0;n<t.length;n++){let r=t.charCodeAt(n);if((r&64512)===55296&&n+1<t.length){let a=t.charCodeAt(++n);(a&64512)===56320&&(r=65536+((r&1023)<<10)+(a&1023))}if(e){if(e=!1,!Lxi(r))return!1}else if(!Rxi(r))return!1}return!e}});var Wxi=Le(Ipt=>{"use strict";Object.defineProperty(Ipt,"__esModule",{value:!0});Ipt.isKeyword=wRa;Ipt.isReservedWord=Mxi;Ipt.isStrictBindOnlyReservedWord=Bxi;Ipt.isStrictBindReservedWord=DRa;Ipt.isStrictReservedWord=Fxi;var oYn={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},TRa=new Set(oYn.keyword),ARa=new Set(oYn.strict),CRa=new Set(oYn.strictBind);function Mxi(t,e){return e&&t==="await"||t==="enum"}function Fxi(t,e){return Mxi(t,e)||ARa.has(t)}function Bxi(t){return CRa.has(t)}function DRa(t,e){return Fxi(t,e)||Bxi(t)}function wRa(t){return TRa.has(t)}});var owt=Le(p6e=>{"use strict";Object.defineProperty(p6e,"__esModule",{value:!0});Object.defineProperty(p6e,"isIdentifierChar",{enumerable:!0,get:function(){return lYn.isIdentifierChar}});Object.defineProperty(p6e,"isIdentifierName",{enumerable:!0,get:function(){return lYn.isIdentifierName}});Object.defineProperty(p6e,"isIdentifierStart",{enumerable:!0,get:function(){return lYn.isIdentifierStart}});Object.defineProperty(p6e,"isKeyword",{enumerable:!0,get:function(){return DWt.isKeyword}});Object.defineProperty(p6e,"isReservedWord",{enumerable:!0,get:function(){return DWt.isReservedWord}});Object.defineProperty(p6e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return DWt.isStrictBindOnlyReservedWord}});Object.defineProperty(p6e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return DWt.isStrictBindReservedWord}});Object.defineProperty(p6e,"isStrictReservedWord",{enumerable:!0,get:function(){return DWt.isStrictReservedWord}});var lYn=Oxi(),DWt=Wxi()});var lwt=Le(uYn=>{"use strict";Object.defineProperty(uYn,"__esModule",{value:!0});uYn.default=IRa;var cYn=owt();function IRa(t,e=!0){return typeof t!="string"||e&&((0,cYn.isKeyword)(t)||(0,cYn.isStrictReservedWord)(t,!0))?!1:(0,cYn.isIdentifierName)(t)}});var Vxi=Le(wWt=>{"use strict";Object.defineProperty(wWt,"__esModule",{value:!0});wWt.readCodePoint=Uxi;wWt.readInt=Gxi;wWt.readStringContents=kRa;var PRa=function(e){return e>=48&&e<=57},jxi={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},zmn={bin:t=>t===48||t===49,oct:t=>t>=48&&t<=55,dec:t=>t>=48&&t<=57,hex:t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102};function kRa(t,e,n,r,a,c){let f=n,_=r,x=a,b="",T=null,k=n,{length:R}=e;for(;;){if(n>=R){c.unterminated(f,_,x),b+=e.slice(k,n);break}let O=e.charCodeAt(n);if(NRa(t,O,e,n)){b+=e.slice(k,n);break}if(O===92){b+=e.slice(k,n);let j=LRa(e,n,r,a,t==="template",c);j.ch===null&&!T?T={pos:n,lineStart:r,curLine:a}:b+=j.ch,{pos:n,lineStart:r,curLine:a}=j,k=n}else O===8232||O===8233?(++n,++a,r=n):O===10||O===13?t==="template"?(b+=e.slice(k,n)+`
|
|
21923
21923
|
`,++n,O===13&&e.charCodeAt(n)===10&&++n,++a,k=r=n):c.unterminated(f,_,x):++n}return{pos:n,str:b,firstInvalidLoc:T,lineStart:r,curLine:a,containsInvalid:!!T}}function NRa(t,e,n,r){return t==="template"?e===96||e===36&&n.charCodeAt(r+1)===123:e===(t==="double"?34:39)}function LRa(t,e,n,r,a,c){let f=!a;e++;let _=b=>({pos:e,ch:b,lineStart:n,curLine:r}),x=t.charCodeAt(e++);switch(x){case 110:return _(`
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"imports": {
|
|
5
5
|
"#*": "./src/*"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.13.
|
|
7
|
+
"version": "0.13.10",
|
|
8
8
|
"description": "A codemod engine for Node.js libraries (jscodeshift, ts-morph, etc.)",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"exports": null,
|
|
@@ -60,13 +60,13 @@
|
|
|
60
60
|
"valibot": "^0.34.0",
|
|
61
61
|
"vitest": "^1.0.1",
|
|
62
62
|
"yargs": "^17.6.2",
|
|
63
|
+
"@codemod-com/api-types": "1.0.0",
|
|
63
64
|
"@codemod-com/filemod": "2.1.0",
|
|
64
65
|
"@codemod-com/printer": "1.0.1",
|
|
65
|
-
"@codemod-com/api-types": "1.0.0",
|
|
66
|
-
"@codemod-com/utilities": "1.1.7",
|
|
67
|
-
"@codemod.com/workflow": "0.0.29",
|
|
68
66
|
"@codemod-com/telemetry": "1.1.0",
|
|
69
|
-
"@codemod-com/runner": "1.1.1"
|
|
67
|
+
"@codemod-com/runner": "1.1.1",
|
|
68
|
+
"@codemod-com/utilities": "1.1.7",
|
|
69
|
+
"@codemod.com/workflow": "0.0.29"
|
|
70
70
|
},
|
|
71
71
|
"engines": {
|
|
72
72
|
"node": ">=18.5.0"
|