knip
Version:
Find and fix unused dependencies, exports and files in your TypeScript and JavaScript projects
22 lines • 220 kB
JavaScript
var Mt=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var x=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Mr=x((Jl,$r)=>{$r.exports=function(t){return function(){return t.apply(null,arguments)}}});var Wr=x((Zl,Vr)=>{Vr.exports=function(t){return function(e){return t.apply(null,arguments)}}});var Gr=x((tp,Ur)=>{Ur.exports=function(t){return function(e,r){return t.apply(null,arguments)}}});var zr=x((ep,Kr)=>{Kr.exports=function(t){return function(e,r,s){return t.apply(null,arguments)}}});var Yr=x((rp,Xr)=>{Xr.exports=function(t){return function(e,r,s,i){return t.apply(null,arguments)}}});var Hr=x((sp,Qr)=>{Qr.exports=function(t){return function(e,r,s,i,n){return t.apply(null,arguments)}}});var Zr=x((ip,Jr)=>{var Ka=[Mr(),Wr(),Gr(),zr(),Yr(),Hr()];Jr.exports=function(t,e){return e&&e<=5?Ka[e](t):t}});var J=x((oe,ts)=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.default=Ha;function za(t){return t&&t.__esModule?t:{default:t}}var Xa=Zr(),Ya=za(Xa),Qa=function(e,r){return function(){return e(r.apply(void 0,arguments))}};function Ha(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];var s=e.filter(function(o){return typeof o=="function"}),i=s.length-1,n=0;if(s.length<=0)throw new Error("No funcs passed");return i>=0&&s[i]&&(n=s[i].length),(0,Ya.default)(s.reduce(Qa),n)}ts.exports=oe.default});var rs=x((np,es)=>{"use strict";var Ja=J(),Za=(t,e)=>({lex(){let s=this.tokenizer.next().value,i=s.originalType,n=s.value;return this.yytext={text:n},s.expansion&&(this.yytext.expansion=s.expansion),s.originalText&&(this.yytext.originalText=s.originalText),s.type&&(this.yytext.type=s.type),s.maybeSimpleCommandName&&(this.yytext.maybeSimpleCommandName=s.maybeSimpleCommandName),s.joined&&(this.yytext.joined=s.joined),s.fieldIdx!==void 0&&(this.yytext.fieldIdx=s.fieldIdx),e.insertLOC&&s.loc&&(this.yytext.loc=s.loc),s.loc&&(this.yylineno=s.loc.start.row-1),i},setInput(r){let s=t.tokenizer(e),i=[s],n=[s].concat(t.lexerPhases.map(u=>{let c=u(e,t,i);return i=i.concat(c),c})),o=Ja.apply(null,n.reverse());this.tokenizer=o(r)}});es.exports=Za});var is=x((ap,ss)=>{"use strict";var to=t=>()=>function*(e){for(let r of e)r||console.log(`In ${t} token null.`),console.log(t,"<<<",r,">>>"),yield r};ss.exports=to});var ue=x((op,ns)=>{var eo=Object.prototype.hasOwnProperty;ns.exports=function(e,r){return eo.call(e,r)}});var Be=x((up,as)=>{"use strict";as.exports=function(t,e){for(var r={},s=Object.keys(t),i=Array.isArray(e),n=0;n<s.length;n++){var o=s[n],u=t[o];(i?e.indexOf(o)!==-1:e(o,u,t))&&(r[o]=u)}return r}});var _e=x((cp,os)=>{"use strict";var ro={"&":"AND","|":"PIPE","(":"OPEN_PAREN",")":"CLOSE_PAREN",">":"GREAT","<":"LESS","&&":"AND_IF","||":"OR_IF",";;":"DSEMI","<<":"DLESS",">>":"DGREAT","<&":"LESSAND",">&":"GREATAND","<>":"LESSGREAT","<<-":"DLESSDASH",">|":"CLOBBER",";":"SEMICOLON"};os.exports=ro});var I=x(K=>{"use strict";var qe=ue(),so=Be(),je=_e(),Vt=class t{constructor(e){let r=so(e,(s,i)=>i!==void 0);Object.assign(this,r),this._===void 0&&(this._={})}is(e){return this.type===e}appendTo(e){return new t(Object.assign({},this,{value:this.value+e}))}changeTokenType(e,r){return new t({type:e,value:r,loc:this.loc,_:this._,expansion:this.expansion})}setValue(e){return new t(Object.assign({},this,{value:e}))}alterValue(e){return new t(Object.assign({},this,{value:e,originalText:this.originalText||this.value}))}addExpansions(){return new t(Object.assign({},this,{expansion:[]}))}setExpansions(e){return new t(Object.assign({},this,{expansion:e}))}};K.token=t=>new Vt(t);function Dt(t,e,r,s){let i=new Vt({type:t,value:e,loc:r});return s&&s.length&&(i.expansion=s),i}K.mkToken=Dt;K.mkFieldSplitToken=function(e,r,s){return new Vt({type:e.type,value:r,joined:e.value,fieldIdx:s,loc:e.loc,expansion:e.expansion,originalText:e.originalText})};K.appendTo=(t,e)=>t.appendTo(e);K.changeTokenType=(t,e,r)=>t.changeTokenType(e,r);K.setValue=(t,e)=>t.setValue(e);K.alterValue=(t,e)=>t.alterValue(e);K.addExpansions=t=>t.addExpansions();K.setExpansions=(t,e)=>t.setExpansions(e);K.tokenOrEmpty=function(e){if(e.current!==""&&e.current!==`
`){let r=(e.expansion||[]).map(i=>Object.assign({},i,{loc:{start:i.loc.start.char-e.loc.start.char,end:i.loc.end.char-e.loc.start.char}}));return[Dt("TOKEN",e.current,{start:Object.assign({},e.loc.start),end:Object.assign({},e.loc.previous)},r)]}return[]};K.operatorTokens=function(e){return[Dt(je[e.current],e.current,{start:Object.assign({},e.loc.start),end:Object.assign({},e.loc.previous)})]};K.newLine=function(){return Dt("NEWLINE",`
`)};K.continueToken=function(e){return Dt("CONTINUE",e)};K.eof=function(){return Dt("EOF","")};K.isPartOfOperator=function(e){return Object.keys(je).some(r=>r.slice(0,e.length)===e)};K.isOperator=function(e){return qe(je,e)};K.applyTokenizerVisitor=t=>(e,r,s)=>{if(qe(t,e.type)){let i=t[e.type];return i(e,s)}if(qe(t,"defaultMethod")){let i=t.defaultMethod;return i(e,s)}return e}});var Wt=x((lp,us)=>{"use strict";us.exports=function(e){return/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(e)}});var le=x((pp,Ts)=>{var io="Expected a function",cs="__lodash_placeholder__",Tt=1,he=2,no=4,St=8,Ut=16,Lt=32,Gt=64,xs=128,ao=256,ys=512,hs=1/0,oo=9007199254740991,uo=17976931348623157e292,ls=NaN,co=[["ary",xs],["bind",Tt],["bindKey",he],["curry",St],["curryRight",Ut],["flip",ys],["partial",Lt],["partialRight",Gt],["rearg",ao]],ho="[object Function]",lo="[object GeneratorFunction]",po="[object Symbol]",fo=/[\\^$.*+?()[\]{}|]/g,mo=/^\s+|\s+$/g,xo=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,yo=/\{\n\/\* \[wrapped with (.+)\] \*/,vo=/,? & /,Eo=/^[-+]0x[0-9a-f]+$/i,go=/^0b[01]+$/i,Ao=/^\[object .+?Constructor\]$/,Co=/^0o[0-7]+$/i,bo=/^(?:0|[1-9]\d*)$/,wo=parseInt,So=typeof global=="object"&&global&&global.Object===Object&&global,To=typeof self=="object"&&self&&self.Object===Object&&self,zt=So||To||Function("return this")();function vs(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function Po(t,e){for(var r=-1,s=t?t.length:0;++r<s&&e(t[r],r,t)!==!1;);return t}function No(t,e){var r=t?t.length:0;return!!r&&ko(t,e,0)>-1}function Fo(t,e,r,s){for(var i=t.length,n=r+(s?1:-1);s?n--:++n<i;)if(e(t[n],n,t))return n;return-1}function ko(t,e,r){if(e!==e)return Fo(t,Oo,r);for(var s=r-1,i=t.length;++s<i;)if(t[s]===e)return s;return-1}function Oo(t){return t!==t}function Do(t,e){for(var r=t.length,s=0;r--;)t[r]===e&&s++;return s}function Lo(t,e){return t?.[e]}function Ro(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}function Es(t,e){for(var r=-1,s=t.length,i=0,n=[];++r<s;){var o=t[r];(o===e||o===cs)&&(t[r]=cs,n[i++]=r)}return n}var Io=Function.prototype,gs=Object.prototype,$e=zt["__core-js_shared__"],ps=function(){var t=/[^.]+$/.exec($e&&$e.keys&&$e.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),As=Io.toString,Bo=gs.hasOwnProperty,Cs=gs.toString,_o=RegExp("^"+As.call(Bo).replace(fo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qo=Object.create,ce=Math.max,jo=Math.min,fs=function(){var t=ds(Object,"defineProperty"),e=ds.name;return e&&e.length>2?t:void 0}();function $o(t){return Rt(t)?qo(t):{}}function Mo(t){if(!Rt(t)||Jo(t))return!1;var e=ru(t)||Ro(t)?_o:Ao;return e.test(tu(t))}function Vo(t,e,r,s){for(var i=-1,n=t.length,o=r.length,u=-1,c=e.length,h=ce(n-o,0),p=Array(c+h),m=!s;++u<c;)p[u]=e[u];for(;++i<o;)(m||i<n)&&(p[r[i]]=t[i]);for(;h--;)p[u++]=t[i++];return p}function Wo(t,e,r,s){for(var i=-1,n=t.length,o=-1,u=r.length,c=-1,h=e.length,p=ce(n-u,0),m=Array(p+h),d=!s;++i<p;)m[i]=t[i];for(var y=i;++c<h;)m[y+c]=e[c];for(;++o<u;)(d||i<n)&&(m[y+r[o]]=t[i++]);return m}function Uo(t,e){var r=-1,s=t.length;for(e||(e=Array(s));++r<s;)e[r]=t[r];return e}function Go(t,e,r){var s=e&Tt,i=Kt(t);function n(){var o=this&&this!==zt&&this instanceof n?i:t;return o.apply(s?r:this,arguments)}return n}function Kt(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var r=$o(t.prototype),s=t.apply(r,e);return Rt(s)?s:r}}function Ko(t,e,r){var s=Kt(t);function i(){for(var n=arguments.length,o=Array(n),u=n,c=ws(i);u--;)o[u]=arguments[u];var h=n<3&&o[0]!==c&&o[n-1]!==c?[]:Es(o,c);if(n-=h.length,n<r)return bs(t,e,Me,i.placeholder,void 0,o,h,void 0,void 0,r-n);var p=this&&this!==zt&&this instanceof i?s:t;return vs(p,this,o)}return i}function Me(t,e,r,s,i,n,o,u,c,h){var p=e&xs,m=e&Tt,d=e&he,y=e&(St|Ut),E=e&ys,v=d?void 0:Kt(t);function N(){for(var T=arguments.length,A=Array(T),C=T;C--;)A[C]=arguments[C];if(y)var S=ws(N),g=Do(A,S);if(s&&(A=Vo(A,s,i,y)),n&&(A=Wo(A,n,o,y)),T-=g,y&&T<h){var k=Es(A,S);return bs(t,e,Me,N.placeholder,r,A,k,u,c,h-T)}var Z=m?r:this,Q=d?Z[t]:t;return T=A.length,u?A=Zo(A,u):E&&T>1&&A.reverse(),p&&c<T&&(A.length=c),this&&this!==zt&&this instanceof N&&(Q=v||Kt(Q)),Q.apply(Z,A)}return N}function zo(t,e,r,s){var i=e&Tt,n=Kt(t);function o(){for(var u=-1,c=arguments.length,h=-1,p=s.length,m=Array(p+c),d=this&&this!==zt&&this instanceof o?n:t;++h<p;)m[h]=s[h];for(;c--;)m[h++]=arguments[++u];return vs(d,i?r:this,m)}return o}function bs(t,e,r,s,i,n,o,u,c,h){var p=e&St,m=p?o:void 0,d=p?void 0:o,y=p?n:void 0,E=p?void 0:n;e|=p?Lt:Gt,e&=~(p?Gt:Lt),e&no||(e&=~(Tt|he));var v=r(t,e,i,y,m,E,d,u,c,h);return v.placeholder=s,Ss(v,t,e)}function Xo(t,e,r,s,i,n,o,u){var c=e&he;if(!c&&typeof t!="function")throw new TypeError(io);var h=s?s.length:0;if(h||(e&=~(Lt|Gt),s=i=void 0),o=o===void 0?o:ce(ms(o),0),u=u===void 0?u:ms(u),h-=i?i.length:0,e&Gt){var p=s,m=i;s=i=void 0}var d=[t,e,r,s,i,p,m,n,o,u];if(t=d[0],e=d[1],r=d[2],s=d[3],i=d[4],u=d[9]=d[9]==null?c?0:t.length:ce(d[9]-h,0),!u&&e&(St|Ut)&&(e&=~(St|Ut)),!e||e==Tt)var y=Go(t,e,r);else e==St||e==Ut?y=Ko(t,e,u):(e==Lt||e==(Tt|Lt))&&!i.length?y=zo(t,e,r,s):y=Me.apply(void 0,d);return Ss(y,t,e)}function ws(t){var e=t;return e.placeholder}function ds(t,e){var r=Lo(t,e);return Mo(r)?r:void 0}function Yo(t){var e=t.match(yo);return e?e[1].split(vo):[]}function Qo(t,e){var r=e.length,s=r-1;return e[s]=(r>1?"& ":"")+e[s],e=e.join(r>2?", ":" "),t.replace(xo,`{
/* [wrapped with `+e+`] */
`)}function Ho(t,e){return e=e??oo,!!e&&(typeof t=="number"||bo.test(t))&&t>-1&&t%1==0&&t<e}function Jo(t){return!!ps&&ps in t}function Zo(t,e){for(var r=t.length,s=jo(e.length,r),i=Uo(t);s--;){var n=e[s];t[s]=Ho(n,r)?i[n]:void 0}return t}var Ss=fs?function(t,e,r){var s=e+"";return fs(t,"toString",{configurable:!0,enumerable:!1,value:ou(Qo(s,eu(Yo(s),r)))})}:uu;function tu(t){if(t!=null){try{return As.call(t)}catch{}try{return t+""}catch{}}return""}function eu(t,e){return Po(co,function(r){var s="_."+r[0];e&r[1]&&!No(t,s)&&t.push(s)}),t.sort()}function Ve(t,e,r){e=r?void 0:e;var s=Xo(t,St,void 0,void 0,void 0,void 0,void 0,e);return s.placeholder=Ve.placeholder,s}function ru(t){var e=Rt(t)?Cs.call(t):"";return e==ho||e==lo}function Rt(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function su(t){return!!t&&typeof t=="object"}function iu(t){return typeof t=="symbol"||su(t)&&Cs.call(t)==po}function nu(t){if(!t)return t===0?t:0;if(t=au(t),t===hs||t===-hs){var e=t<0?-1:1;return e*uo}return t===t?t:0}function ms(t){var e=nu(t),r=e%1;return e===e?r?e-r:e:0}function au(t){if(typeof t=="number")return t;if(iu(t))return ls;if(Rt(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Rt(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(mo,"");var r=go.test(t);return r||Co.test(t)?wo(t.slice(2),r?2:8):Eo.test(t)?ls:+t}function ou(t){return function(){return t}}function uu(t){return t}Ve.placeholder={};Ts.exports=Ve});var Ns=x((fp,Ps)=>{"use strict";var cu=le();function hu(t,e,r){return r.map(s=>s===t?e:s)}Ps.exports=cu(hu)});var Fs=x(Xt=>{Xt.loggerPhase=is();Xt.tokens=I();Xt.isValidName=Wt();Xt.replaceRule=Ns()});var We=x((mp,ks)=>{ks.exports=function(t){return t}});var Ds=x((xp,Os)=>{"use strict";Os.exports=function(t){return typeof Symbol<"u"&&Symbol&&"iterator"in Symbol&&t!=null&&typeof t[Symbol.iterator]=="function"}});var q=x((yp,Ls)=>{"use strict";var lu=le(),pu=Ds();function fu(t){return t}function du(t,e){if(typeof t!="function"&&(typeof t!="object"||t===null))throw new TypeError("Callback argument must be a function or option object");if(!pu(e))throw new TypeError("Data argument must be an iterable");let r=0,s=t.init||fu,i=t.callback||t,n=s(e),o=e[Symbol.iterator]();return{[Symbol.iterator](){return this},next(){let u=o.next();return u.done||(u.value=i(u.value,r++,n)),u}}}Ls.exports=lu(du)});var pe=x((vp,Rs)=>{"use strict";Rs.exports=function(t){for(var e=Object.keys(t),r=[],s=0;s<e.length;s++)r.push(t[e[s]]);return r}});var fe=x((Ep,Is)=>{"use strict";function*mu(t){for(let e of t)typeof e[Symbol.iterator]=="function"?yield*e:yield e}Is.exports=mu});var qs=x((gp,_s)=>{"use strict";var Bs=J(),xu=We(),yu=q(),vu=pe(),Eu=fe(),gu=I(),Au=(t,e,r)=>{function*s(o,u){if(u.indexOf(o.value)!==-1){yield o;return}let c=e(o.value);if(c===void 0)yield o;else for(let h of t(c))h.is("WORD")||r.some(p=>h.is(p))?yield*s(h,u.concat(o.value)):h.is("EOF")||(yield h)}function i(o){return Array.from(s(o,[]))}let n={WORD:i};return r.forEach(o=>{n[o]=i}),n};_s.exports=(t,e,r)=>{if(typeof t.resolveAlias!="function")return xu;let s=Bs.apply(null,r.reverse()),i=Au(s,t.resolveAlias,vu(e.enums.reservedWords));return Bs(Eu,yu(gu.applyTokenizerVisitor(i)))}});var Ms=x((Ap,$s)=>{"use strict";var js=qs(),It="[a-zA-Z_][a-zA-Z0-9_]*",Cu={[`^(${It}):([^:]*):?([^:]*)$`]:{op:"substring",parameter:t=>t[1],offset:t=>parseInt(t[2],10),length:t=>parseInt(t[3],10)||void 0},[`^!(${It})(\\*|@)$`]:{op:"prefix",prefix:t=>t[1],expandWords:t=>t[2]==="@",parameter:()=>{}},[`^!(${It})(\\[\\*\\]|\\[@\\])$`]:{op:"arrayIndices",parameter:t=>t[1],expandWords:t=>t[2]==="[@]"},[`^(${It})\\/(\\/)?([^\\/])+\\/(.*)$`]:{op:"stringReplace",parameter:t=>t[1],substitute:t=>t[3],replace:t=>t[4],globally:t=>t[2]==="/"},[`^(${It})(\\^\\^|\\^|,,|,)(.*)$`]:{op:"caseChange",parameter:t=>t[1],pattern:t=>t[3]||"?",case:t=>t[2][0]===","?"lower":"upper",globally:t=>t[2].length===2},[`^(${It})@([Q|E|P|A|a])$`]:{op:"transformation",parameter:t=>t[1],kind:t=>{switch(t[2]){case"Q":return"quoted";case"E":return"escape";case"P":return"prompt";case"A":return"assignment";case"a":return"flags";default:return"unknown"}}},"^!(.+)$":{op:"indirection",word:t=>t[1],parameter:()=>{}}};$s.exports={inherits:"posix",init:(t,e)=>{let r=Object.assign({},t.phaseCatalog,{bashAliasSubstitution:js}),s=e.replaceRule(r.aliasSubstitution,js,t.lexerPhases),i=Object.assign(Cu,t.enums.parameterOperators),n=Object.assign({},t.enums,{parameterOperators:i});return Object.assign({},t,{phaseCatalog:r,lexerPhases:s,enums:n})}}});var Ws=x((Cp,Vs)=>{"use strict";Vs.exports=function(e){var r=typeof e;if(r==="string"||e instanceof String){if(!e.trim())return!1}else if(r!=="number"&&!(e instanceof Number))return!1;return e-e+1>=0}});var Et=x((bp,Us)=>{var bu=Ws();Us.exports=function(e,r){if(!Array.isArray(e))throw new Error("expected the first argument to be an array");var s=e.length;if(s===0)return null;if(r=bu(r)?+r:1,r===1)return e[s-1];for(var i=new Array(r);r--;)i[r]=e[--s];return i}});var Ks=x((wp,Gs)=>{"use strict";Gs.exports=t=>{let e={};de(e,"caseList"),de(e,"pattern"),de(e,"prefix"),de(e,"suffix"),e.caseItem=(i,n,o,u)=>{let h={type:"CaseItem",pattern:i,body:n};return t.insertLOC&&(h.loc=V(U({},o),u)),h},e.caseClause=(i,n,o,u)=>{let h={type:"Case",clause:i};return n&&Object.assign(h,{cases:n}),t.insertLOC&&(h.loc=V(U({},o),u)),h},e.doGroup=(i,n,o)=>(t.insertLOC&&V(U(i.loc,n),o),i),e.braceGroup=(i,n,o)=>(t.insertLOC&&V(U(i.loc,n),o),i),e.list=i=>{let n={type:"Script",commands:[i]};return t.insertLOC&&(n.loc=V(U({},i.loc),i.loc)),n};function r(i){return i.text.indexOf("&")!==-1}let s=Et();return e.checkAsync=(i,n)=>(r(n)&&(s(i.commands).async=!0),i),e.listAppend=(i,n,o)=>(r(o)&&(s(i.commands).async=!0),i.commands.push(n),t.insertLOC&&V(i.loc,n.loc),i),e.addRedirections=(i,n)=>{if(i.redirections=n,t.insertLOC){let o=n[n.length-1];V(i.loc,o.loc)}return i},e.term=i=>{let n={type:"CompoundList",commands:[i]};return t.insertLOC&&(n.loc=V(U({},i.loc),i.loc)),n},e.termAppend=(i,n,o)=>(r(o)&&(s(i.commands).async=!0),i.commands.push(n),V(i.loc,n.loc),i),e.subshell=(i,n,o)=>{let u={type:"Subshell",list:i};return t.insertLOC&&(u.loc=V(U({},n),o)),u},e.pipeSequence=i=>{let n={type:"Pipeline",commands:[i]};return t.insertLOC&&(n.loc=V(U({},i.loc),i.loc)),n},e.pipeSequenceAppend=(i,n)=>(i.commands.push(n),t.insertLOC&&V(i.loc,n.loc),i),e.bangPipeLine=i=>i.commands.length===1?Object.assign(i.commands[0],{bang:!0}):Object.assign(i,{bang:!0}),e.pipeLine=i=>i.commands.length===1?i.commands[0]:i,e.andAndOr=(i,n)=>{let o={type:"LogicalExpression",op:"and",left:i,right:n};return t.insertLOC&&(o.loc=V(U({},i.loc),n.loc)),o},e.orAndOr=(i,n)=>{let o={type:"LogicalExpression",op:"or",left:i,right:n};return t.insertLOC&&(o.loc=V(U({},i.loc),n.loc)),o},e.forClause=(i,n,o,u)=>{let c={type:"For",name:i,wordlist:n,do:o};return t.insertLOC&&(c.loc=V(U({},u),o.loc)),c},e.forClauseDefault=(i,n,o)=>{let u={type:"For",name:i,do:n};return t.insertLOC&&(u.loc=V(U({},o),n.loc)),u},e.functionDefinition=(i,n)=>{let o={type:"Function",name:i};o.body=n[0],n[1]&&(o.redirections=n[1]);let u=n[1]||n[0];return t.insertLOC&&(o.loc=V(U({},i.loc),u.loc)),o},e.elseClause=(i,n)=>(t.insertLOC&&U(i.loc,n.loc),i),e.ifClause=(i,n,o,u,c)=>{let h={type:"If",clause:i,then:n};return o&&(h.else=o),t.insertLOC&&(h.loc=V(U({},u),c)),h},e.while=(i,n,o)=>{let u={type:"While",clause:i,do:n};return t.insertLOC&&(u.loc=V(U({},o.loc),n.loc)),u},e.until=(i,n,o)=>{let u={type:"Until",clause:i,do:n};return t.insertLOC&&(u.loc=V(U({},o.loc),n.loc)),u},e.commandName=i=>i,e.commandAssignment=function(n){return e.command(n)},e.command=function(i,n,o){let u={type:"Command"};if(n&&(u.name=n),t.insertLOC){if(u.loc={},i){let c=i[0];u.loc.start=c.loc.start}else u.loc.start=n.loc.start;if(o){let c=o[o.length-1];u.loc.end=c.loc.end}else if(n)u.loc.end=n.loc.end;else{let c=i[i.length-1];u.loc.end=c.loc.end}}return i&&(u.prefix=i),o&&(u.suffix=o),u},e.ioRedirect=(i,n)=>{let o={type:"Redirect",op:i,file:n};return t.insertLOC&&(o.loc=V(U({},i.loc),n.loc)),o},e.numberIoRedirect=(i,n)=>{let o=Object.assign({},i,{numberIo:n});return t.insertLOC&&U(o.loc,n.loc),o},e};function U(t,e){return e&&(t.start=e.start),t}function V(t,e){return e&&(t.end=e.end),t}function de(t,e){t[e]=r=>[r],t[`${e}Append`]=(r,s)=>(r.push(s),r)}});var Xs=x((Sp,zs)=>{"use strict";var wu=I().eof;zs.exports=function(){return{nextReduction:null,tokensToEmit:[wu()]}}});var Js=x((Tp,Hs)=>{"use strict";var Ue=I(),Su=Ue.isPartOfOperator,Ys=Ue.operatorTokens,Qs=Ue.isOperator;Hs.exports=function(e,r,s){let i=r&&r.shift();if(i===void 0)return Qs(e.current)?{nextReduction:s.end,tokensToEmit:Ys(e),nextState:e.resetCurrent().saveCurrentLocAsStart()}:s.start(e,i);if(Su(e.current+i))return{nextReduction:s.operator,nextState:e.appendChar(i)};let n=[];Qs(e.current)&&(n=Ys(e),e=e.resetCurrent().saveCurrentLocAsStart());let o=s.start(e,[i].concat(r),s),u=o.nextReduction,c=o.tokensToEmit,h=o.nextState;return c&&(n=n.concat(c)),{nextReduction:u,tokensToEmit:n,nextState:h}}});var ti=x((Pp,Zs)=>{"use strict";var Tu=I().newLine;Zs.exports=function t(e,r,s){let i=r&&r.shift();return i===void 0?{nextReduction:s.end,nextState:e}:i===`
`?{tokensToEmit:[Tu()],nextReduction:s.start,nextState:e}:{nextReduction:t,nextState:e}}});var si=x((Np,ri)=>{"use strict";var ei=I(),Pu=ei.tokenOrEmpty,Nu=ei.continueToken;ri.exports=function(e,r,s){let i=r&&r.shift();return i===void 0?{nextState:e,nextReduction:null,tokensToEmit:Pu(e).concat(Nu("'"))}:i==="'"?{nextReduction:s.start,nextState:e.appendChar(i)}:{nextReduction:s.singleQuoting,nextState:e.appendChar(i)}}});var ai=x((Fp,ni)=>{"use strict";var ii=I(),Fu=ii.tokenOrEmpty,ku=ii.continueToken;ni.exports=function t(e,r,s){let i=r&&r.shift();return e=e.setPreviousReducer(t),i===void 0?{nextReduction:null,tokensToEmit:Fu(e).concat(ku('"')),nextState:e}:!e.escaping&&i==="\\"?{nextReduction:t,nextState:e.setEscaping(!0).appendChar(i)}:!e.escaping&&i==='"'?{nextReduction:s.start,nextState:e.setPreviousReducer(s.start).appendChar(i)}:!e.escaping&&i==="$"?{nextReduction:s.expansionStart,nextState:e.appendEmptyExpansion().appendChar(i)}:!e.escaping&&i==="`"?{nextReduction:s.expansionCommandTick,nextState:e.appendEmptyExpansion().appendChar(i)}:{nextReduction:s.doubleQuoting,nextState:e.setEscaping(!1).appendChar(i)}}});var ui=x((kp,oi)=>{"use strict";function Ou(t){return t.match(/^[0-9\-!@#\?\*\$]$/)}oi.exports=function(e,r,s){let i=r&&r.shift();return i==="{"?{nextReduction:s.expansionParameterExtended,nextState:e.appendChar(i)}:i==="("?{nextReduction:s.expansionCommandOrArithmetic,nextState:e.appendChar(i)}:i.match(/[a-zA-Z_]/)?{nextReduction:s.expansionParameter,nextState:e.appendChar(i).replaceLastExpansion({parameter:i,type:"parameter_expansion"})}:Ou(i)?s.expansionSpecialParameter(e,[i].concat(r)):e.previousReducer(e,[i].concat(r))}});var hi=x((Op,ci)=>{"use strict";var Du=Et(),Lu=I(),Ru=Lu.continueToken;ci.exports=function(e,r,s){let i=r&&r.shift(),n=Du(e.expansion);return!e.escaping&&i==="`"?{nextReduction:e.previousReducer,nextState:e.appendChar(i).replaceLastExpansion({type:"command_expansion",loc:Object.assign({},n.loc,{end:e.loc.current})})}:i===void 0?{nextReduction:e.previousReducer,tokensToEmit:[Ru("`")],nextState:e.replaceLastExpansion({loc:Object.assign({},n.loc,{end:e.loc.previous})})}:!e.escaping&&i==="\\"?{nextReduction:s.expansionCommandTick,nextState:e.appendChar(i).setEscaping(!0)}:{nextReduction:s.expansionCommandTick,nextState:e.setEscaping(!1).appendChar(i).replaceLastExpansion({command:(n.command||"")+i})}}});var pi=x((Dp,li)=>{"use strict";var Ge=I(),me=Ge.tokenOrEmpty,Iu=Ge.newLine,Bu=Ge.isPartOfOperator;li.exports=function(e,r,s){let i=r&&r.shift();return i===void 0?{nextReduction:s.end,tokensToEmit:me(e),nextState:e.resetCurrent().saveCurrentLocAsStart()}:e.escaping&&i===`
`?{nextReduction:s.start,nextState:e.setEscaping(!1).removeLastChar()}:!e.escaping&&i==="#"&&e.current===""?{nextReduction:s.comment}:!e.escaping&&i===`
`?{nextReduction:s.start,tokensToEmit:me(e).concat(Iu()),nextState:e.resetCurrent().saveCurrentLocAsStart()}:!e.escaping&&i==="\\"?{nextReduction:s.start,nextState:e.setEscaping(!0).appendChar(i)}:!e.escaping&&Bu(i)?{nextReduction:s.operator,tokensToEmit:me(e),nextState:e.setCurrent(i).saveCurrentLocAsStart()}:!e.escaping&&i==="'"?{nextReduction:s.singleQuoting,nextState:e.appendChar(i)}:!e.escaping&&i==='"'?{nextReduction:s.doubleQuoting,nextState:e.appendChar(i)}:!e.escaping&&i.match(/\s/)?{nextReduction:s.start,tokensToEmit:me(e),nextState:e.resetCurrent().saveCurrentLocAsStart().setExpansion([])}:!e.escaping&&i==="$"?{nextReduction:s.expansionStart,nextState:e.appendChar(i).appendEmptyExpansion()}:!e.escaping&&i==="`"?{nextReduction:s.expansionCommandTick,nextState:e.appendChar(i).appendEmptyExpansion()}:{nextReduction:s.start,nextState:e.appendChar(i).setEscaping(!1)}}});var di=x((Lp,fi)=>{"use strict";var _u=Et(),qu=I(),ju=qu.continueToken;fi.exports=function t(e,r){let s=r&&r.shift(),i=_u(e.expansion);return s===")"&&e.current.slice(-1)[0]===")"?{nextReduction:e.previousReducer,nextState:e.appendChar(s).replaceLastExpansion({type:"arithmetic_expansion",expression:i.value.slice(0,-1),loc:Object.assign({},i.loc,{end:e.loc.current})}).deleteLastExpansionValue()}:s===void 0?{nextReduction:e.previousReducer,tokensToEmit:[ju("$((")],nextState:e.replaceLastExpansion({loc:Object.assign({},i.loc,{end:e.loc.previous})})}:{nextReduction:t,nextState:e.appendChar(s).replaceLastExpansion({value:(i.value||"")+s})}}});var xi=x((Rp,mi)=>{"use strict";var $u=Et();mi.exports=function(e,r){let s=r&&r.shift(),i=$u(e.expansion);return{nextReduction:e.previousReducer,nextState:e.appendChar(s).replaceLastExpansion({parameter:s,type:"parameter_expansion",loc:Object.assign({},i.loc,{end:e.loc.current})})}}});var vi=x((Ip,yi)=>{"use strict";var Mu=Et();yi.exports=function(e,r,s){let i=r&&r.shift(),n=Mu(e.expansion);return i===void 0?{nextReduction:s.start,nextState:e.replaceLastExpansion({loc:Object.assign({},n.loc,{end:e.loc.previous})})}:i.match(/[0-9a-zA-Z_]/)?{nextReduction:s.expansionParameter,nextState:e.appendChar(i).replaceLastExpansion({parameter:n.parameter+(i||"")})}:e.previousReducer(e.replaceLastExpansion({loc:Object.assign({},n.loc,{end:e.loc.previous})}),[i].concat(r),s)}});var gi=x((Bp,Ei)=>{"use strict";var Vu=Et(),Wu=I(),Uu=Wu.continueToken;Ei.exports=function(e,r,s){let i=r&&r.shift(),n=Vu(e.expansion);return i==="("&&e.current.slice(-2)==="$("?{nextReduction:s.expansionArithmetic,nextState:e.appendChar(i)}:i===void 0?{nextReduction:e.previousReducer,tokensToEmit:[Uu("$(")],nextState:e.replaceLastExpansion({loc:Object.assign({},n.loc,{end:e.loc.previous})})}:i===")"?{nextReduction:e.previousReducer,nextState:e.appendChar(i).replaceLastExpansion({type:"command_expansion",loc:Object.assign({},n.loc,{end:e.loc.current})})}:{nextReduction:s.expansionCommandOrArithmetic,nextState:e.appendChar(i).replaceLastExpansion({command:(n.command||"")+i})}}});var Ci=x((_p,Ai)=>{"use strict";var Gu=Et(),Ku=I(),zu=Ku.continueToken;Ai.exports=function(e,r,s){let i=r&&r.shift(),n=Gu(e.expansion);return i==="}"?{nextReduction:e.previousReducer,nextState:e.appendChar(i).replaceLastExpansion({type:"parameter_expansion",loc:Object.assign({},n.loc,{end:e.loc.current})})}:i===void 0?{nextReduction:e.previousReducer,tokensToEmit:[zu("${")],nextState:e.replaceLastExpansion({loc:Object.assign({},n.loc,{end:e.loc.previous})})}:{nextReduction:s.expansionParameterExtended,nextState:e.appendChar(i).replaceLastExpansion({parameter:(n.parameter||"")+i})}}});var Ke=x((qp,bi)=>{"use strict";var Xu=Xs(),Yu=Js(),Qu=ti(),Hu=si(),Ju=ai(),Zu=ui(),tc=hi(),ec=pi(),rc=di(),sc=xi(),ic=vi(),nc=gi(),ac=Ci();bi.exports={end:Xu,operator:Yu,comment:Qu,singleQuoting:Hu,doubleQuoting:Ju,expansionStart:Zu,expansionCommandTick:tc,start:ec,expansionArithmetic:rc,expansionSpecialParameter:sc,expansionParameter:ic,expansionCommandOrArithmetic:nc,expansionParameterExtended:ac}});var Ti=x((jp,ze)=>{"use strict";var wi=Et(),Si=t=>({current:"",escaping:!1,previousReducer:t.start,loc:{start:{col:1,row:1,char:0},previous:null,current:{col:1,row:1,char:0}}}),oc=t=>class dt{constructor(r){Object.assign(this,r||Si(t))}setLoc(r){return new dt(Object.assign({},this,{loc:r}))}setEscaping(r){return new dt(Object.assign({},this,{escaping:r}))}setExpansion(r){return new dt(Object.assign({},this,{expansion:r}))}setPreviousReducer(r){return new dt(Object.assign({},this,{previousReducer:r}))}setCurrent(r){return new dt(Object.assign({},this,{current:r}))}appendEmptyExpansion(){let r=(this.expansion||[]).concat({loc:{start:Object.assign({},this.loc.current)}});return this.setExpansion(r)}appendChar(r){return new dt(Object.assign({},this,{current:this.current+r}))}removeLastChar(){return new dt(Object.assign({},this,{current:this.current.slice(0,-1)}))}saveCurrentLocAsStart(){return new dt(Object.assign({},this,{loc:Object.assign({},this.loc,{start:this.loc.current})}))}resetCurrent(){return new dt(Object.assign({},this,{current:""}))}advanceLoc(r){let s=Object.assign({},this.loc,{current:Object.assign({},this.loc.current),previous:Object.assign({},this.loc.current)});return r===`
`?(s.current.row++,s.current.col=1):s.current.col++,s.current.char++,r&&r.match(/\s/)&&this.current===""&&(s.start=Object.assign({},s.current)),this.setLoc(s)}},uc=t=>class{constructor(e){Object.assign(this,e||Si(t))}setLoc(e){return this.loc=e,this}setEscaping(e){return this.escaping=e,this}setExpansion(e){return this.expansion=e,this}setPreviousReducer(e){return this.previousReducer=e,this}setCurrent(e){return this.current=e,this}appendEmptyExpansion(){return this.expansion=this.expansion||[],this.expansion.push({loc:{start:Object.assign({},this.loc.current)}}),this}appendChar(e){return this.current=this.current+e,this}removeLastChar(){return this.current=this.current.slice(0,-1),this}saveCurrentLocAsStart(){return this.loc.start=Object.assign({},this.loc.current),this}resetCurrent(){return this.current="",this}replaceLastExpansion(e){let r=wi(this.expansion);return Object.assign(r,e),this}deleteLastExpansionValue(){let e=wi(this.expansion);return delete e.value,this}advanceLoc(e){let r=JSON.parse(JSON.stringify(this.loc));return r.previous=Object.assign({},this.loc.current),e===`
`?(r.current.row++,r.current.col=1):r.current.col++,r.current.char++,e&&e.match(/\s/)&&this.current===""&&(r.start=Object.assign({},r.current)),this.setLoc(r)}};ze.exports=(t,e)=>function*(s){e=e||Ke();let i=process.env.NODE_NEV==="development"?oc(e):uc(e),n=new i,o=e.start,u=Array.from(s);for(;typeof o=="function";){let c=u[0],h=o(n,u,e),p=h.nextReduction,m=h.tokensToEmit,d=h.nextState;m&&(yield*m),d?n=d.advanceLoc(c):n=n.advanceLoc(c),o=p}};ze.exports.reducers=Ke()});var Fi=x((Mp,Ni)=>{"use strict";var Pi=t=>typeof t=="object"&&t!==null&&!(t instanceof RegExp)&&!(t instanceof Error)&&!(t instanceof Date);Ni.exports=function t(e,r,s,i){if(s=Object.assign({deep:!1,target:{}},s),i=i||new WeakMap,i.has(e))return i.get(e);i.set(e,s.target);let n=s.target;delete s.target;for(let o of Object.keys(e)){let u=e[o],c=r(o,u,e),h=c[1];s.deep&&Pi(h)&&(Array.isArray(h)?h=h.map(p=>Pi(p)?t(p,r,s,i):p):h=t(h,r,s,i)),n[c[0]]=h}return n}});var Oi=x((Vp,ki)=>{"use strict";ki.exports=function(t){return Object.keys(t).map(function(e){return[e,t[e]]})}});var Li=x((xe,Di)=>{(function(t,e){typeof xe=="object"&&typeof Di<"u"?e(xe):typeof define=="function"&&define.amd?define(["exports"],e):e(t.vlq=t.vlq||{})})(xe,function(t){"use strict";var e={},r={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(o,u){e[o]=u,r[u]=o});function s(o){for(var u=[],c=0,h=0,p=0;p<o.length;p+=1){var m=e[o[p]];if(m===void 0)throw new Error("Invalid character ("+o[p]+")");var d=m&32;if(m&=31,h+=m<<c,d)c+=5;else{var y=h&1;h>>=1,u.push(y?-h:h),h=c=0}}return u}function i(o){var u;if(typeof o=="number")u=n(o);else{u="";for(var c=0;c<o.length;c+=1)u+=n(o[c])}return u}function n(o){var u="";o<0?o=-o<<1|1:o<<=1;do{var c=o&31;o>>=5,o>0&&(c|=32),u+=r[c]}while(o>0);return u}t.decode=s,t.encode=i,Object.defineProperty(t,"__esModule",{value:!0})})});var Ee=x((Wp,qi)=>{"use strict";var cc=Li();function Yt(t,e,r){this.start=t,this.end=e,this.original=r,this.intro="",this.outro="",this.content=r,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})}Yt.prototype={append:function(e){this.outro+=e},clone:function(){var e=new Yt(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e},contains:function(e){return this.start<e&&e<this.end},eachNext:function(e){for(var r=this;r;)e(r),r=r.next},eachPrevious:function(e){for(var r=this;r;)e(r),r=r.previous},edit:function(e,r){return this.content=e,this.intro="",this.outro="",this.storeName=r,this.edited=!0,this},prepend:function(e){this.intro=e+this.intro},split:function(e){var r=e-this.start,s=this.original.slice(0,r),i=this.original.slice(r);this.original=s;var n=new Yt(e,this.end,i);return n.outro=this.outro,this.outro="",this.end=e,this.edited?(n.edit("",!1),this.content=""):this.content=s,n.next=this.next,n.next&&(n.next.previous=n),n.previous=this,this.next=n,n},toString:function(){return this.intro+this.content+this.outro},trimEnd:function(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;var r=this.content.replace(e,"");if(r.length)return r!==this.content&&this.split(this.start+r.length).edit("",!1),!0;if(this.edit("",!1),this.intro=this.intro.replace(e,""),this.intro.length)return!0},trimStart:function(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;var r=this.content.replace(e,"");if(r.length)return r!==this.content&&(this.split(this.end-r.length),this.edit("",!1)),!0;if(this.edit("",!1),this.outro=this.outro.replace(e,""),this.outro.length)return!0}};var ye;typeof window<"u"&&typeof window.btoa=="function"?ye=window.btoa:typeof Buffer=="function"?ye=function(t){return new Buffer(t).toString("base64")}:ye=function(){throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};var hc=ye;function Ye(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=t.mappings}Ye.prototype={toString:function(){return JSON.stringify(this)},toUrl:function(){return"data:application/json;charset=utf-8;base64,"+hc(this.toString())}};function lc(t){var e=t.split(`
`),r=e.filter(function(n){return/^\t+/.test(n)}),s=e.filter(function(n){return/^ {2,}/.test(n)});if(r.length===0&&s.length===0)return null;if(r.length>=s.length)return" ";var i=s.reduce(function(n,o){var u=/^ +/.exec(o)[0].length;return Math.min(u,n)},1/0);return new Array(i+1).join(" ")}function ve(t){return new Array(t.split(`
`).length).join(";")}function Ii(t){var e=t.split(`
`),r=0,s=e.map(function(u,c){var h=r+u.length+1,p={start:r,end:h,line:c};return r=h,p}),i=0;function n(u,c){return u.start<=c&&c<u.end}function o(u,c){return{line:u.line,column:c-u.start}}return function(c){for(var h=s[i],p=c>=h.end?1:-1;h;){if(n(h,c))return o(h,c);i+=p,h=s[i]}}}var pc=/\S/;function fc(t,e,r,s,i,n,o,u,c){var h=[],p=e.split(`
`).length-1,m=h[p]=[],d=0,y=Ii(t);function E(C,S,g,k,Z){(Z||C.length&&pc.test(C))&&m.push({generatedCodeLine:p,generatedCodeColumn:d,sourceCodeLine:g.line,sourceCodeColumn:g.column,sourceCodeName:k,sourceIndex:o});var Q=C.split(`
`),ht=Q.pop();Q.length?(p+=Q.length,h[p]=m=[],d=ht.length):d+=ht.length,Q=S.split(`
`),ht=Q.pop(),Q.length?(g.line+=Q.length,g.column=ht.length):g.column+=ht.length}function v(C,S){for(var g=C.start,k=!0;g<C.end;)(i||k||n[g])&&m.push({generatedCodeLine:p,generatedCodeColumn:d,sourceCodeLine:S.line,sourceCodeColumn:S.column,sourceCodeName:-1,sourceIndex:o}),t[g]===`
`?(S.line+=1,S.column=0,p+=1,h[p]=m=[],d=0):(S.column+=1,d+=1),g+=1,k=!1}for(var N=!1;s;){var T=y(s.start);s.intro.length&&E(s.intro,"",T,-1,N),s.edited?E(s.content,s.original,T,s.storeName?c.indexOf(s.original):-1,N):v(s,T),s.outro.length&&E(s.outro,"",T,-1,N),(s.content||s.intro||s.outro)&&(N=!0);var A=s.next;s=A}return u.sourceIndex=u.sourceIndex||0,u.sourceCodeLine=u.sourceCodeLine||0,u.sourceCodeColumn=u.sourceCodeColumn||0,u.sourceCodeName=u.sourceCodeName||0,h.map(function(C){var S=0;return C.map(function(g){var k=[g.generatedCodeColumn-S,g.sourceIndex-u.sourceIndex,g.sourceCodeLine-u.sourceCodeLine,g.sourceCodeColumn-u.sourceCodeColumn];return S=g.generatedCodeColumn,u.sourceIndex=g.sourceIndex,u.sourceCodeLine=g.sourceCodeLine,u.sourceCodeColumn=g.sourceCodeColumn,~g.sourceCodeName&&(k.push(g.sourceCodeName-u.sourceCodeName),u.sourceCodeName=g.sourceCodeName),cc.encode(k)}).join(",")}).join(";")+ve(r)}function Bi(t,e){var r=t.split(/[\/\\]/),s=e.split(/[\/\\]/);for(r.pop();r[0]===s[0];)r.shift(),s.shift();if(r.length)for(var i=r.length;i--;)r[i]="..";return r.concat(s).join("/")}var dc=Object.prototype.toString;function _i(t){return dc.call(t)==="[object Object]"}function Bt(t,e){e===void 0&&(e={});var r=new Yt(0,t.length,t);Object.defineProperties(this,{original:{writable:!0,value:t},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:r},lastChunk:{writable:!0,value:r},lastSearchedChunk:{writable:!0,value:r},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:e.filename},indentExclusionRanges:{writable:!0,value:e.indentExclusionRanges},sourcemapLocations:{writable:!0,value:{}},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:lc(t)}}),this.byStart[0]=r,this.byEnd[t.length]=r}Bt.prototype={addSourcemapLocation:function(e){this.sourcemapLocations[e]=!0},append:function(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.outro+=e,this},clone:function(){for(var e=new Bt(this.original,{filename:this.filename}),r=this.firstChunk,s=e.firstChunk=e.lastSearchedChunk=r.clone();r;){e.byStart[s.start]=s,e.byEnd[s.end]=s;var i=r.next,n=i&&i.clone();n&&(s.next=n,n.previous=s,s=n),r=i}return e.lastChunk=s,this.indentExclusionRanges&&(e.indentExclusionRanges=typeof this.indentExclusionRanges[0]=="number"?[this.indentExclusionRanges[0],this.indentExclusionRanges[1]]:this.indentExclusionRanges.map(function(o){return[o.start,o.end]})),Object.keys(this.sourcemapLocations).forEach(function(o){e.sourcemapLocations[o]=!0}),e},generateMap:function(e){e=e||{};var r=Object.keys(this.storedNames),s=new Ye({file:e.file?e.file.split(/[\/\\]/).pop():null,sources:[e.source?Bi(e.file||"",e.source):null],sourcesContent:e.includeContent?[this.original]:[null],names:r,mappings:this.getMappings(e.hires,0,{},r)});return s},getIndentString:function(){return this.indentStr===null?" ":this.indentStr},getMappings:function(e,r,s,i){return fc(this.original,this.intro,this.outro,this.firstChunk,e,this.sourcemapLocations,r,s,i)},indent:function(e,r){var s=this,i=/^[^\r\n]/gm;if(_i(e)&&(r=e,e=void 0),e=e!==void 0?e:this.indentStr||" ",e==="")return this;r=r||{};var n={};if(r.exclude){var o=typeof r.exclude[0]=="number"?[r.exclude]:r.exclude;o.forEach(function(E){for(var v=E[0];v<E[1];v+=1)n[v]=!0})}var u=r.indentStart!==!1,c=function(E){return u?""+e+E:(u=!0,E)};this.intro=this.intro.replace(i,c);for(var h=0,p=this.firstChunk;p;){var m=p.end;if(p.edited)n[h]||(p.content=p.content.replace(i,c),p.content.length&&(u=p.content[p.content.length-1]===`
`));else for(h=p.start;h<m;){if(!n[h]){var d=s.original[h];if(d===`
`)u=!0;else if(d!=="\r"&&u)if(u=!1,h===p.start)p.prepend(e);else{var y=p.split(h);y.prepend(e),s.byStart[h]=y,s.byEnd[h]=p,p=y}}h+=1}h=p.end,p=p.next}return this.outro=this.outro.replace(i,c),this},insert:function(){throw new Error("magicString.insert(...) is deprecated. Use insertRight(...) or insertLeft(...)")},insertLeft:function(e,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);var s=this.byEnd[e];return s?s.append(r):this.intro+=r,this},insertRight:function(e,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);var s=this.byStart[e];return s?s.prepend(r):this.outro+=r,this},move:function(e,r,s){if(s>=e&&s<=r)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(r),this._split(s);var i=this.byStart[e],n=this.byEnd[r],o=i.previous,u=n.next,c=this.byStart[s];if(!c&&n===this.lastChunk)return this;var h=c?c.previous:this.lastChunk;return o&&(o.next=u),u&&(u.previous=o),h&&(h.next=i),c&&(c.previous=n),i.previous||(this.firstChunk=n.next),n.next||(this.lastChunk=i.previous,this.lastChunk.next=null),i.previous=h,n.next=c,h||(this.firstChunk=i),c||(this.lastChunk=n),this},overwrite:function(e,r,s,i){var n=this;if(typeof s!="string")throw new TypeError("replacement content must be a string");for(;e<0;)e+=n.original.length;for(;r<0;)r+=n.original.length;if(r>this.original.length)throw new Error("end is out of bounds");if(e===r)throw new Error("Cannot overwrite a zero-length range \u2013 use insertLeft or insertRight instead");if(this._split(e),this._split(r),i){var o=this.original.slice(e,r);this.storedNames[o]=!0}var u=this.byStart[e],c=this.byEnd[r];if(u){if(u.edit(s,i),u!==c){for(var h=u.next;h!==c;)h.edit("",!1),h=h.next;h.edit("",!1)}}else{var p=new Yt(e,r,"").edit(s,i);c.next=p,p.previous=c}return this},prepend:function(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this},remove:function(e,r){for(var s=this;e<0;)e+=s.original.length;for(;r<0;)r+=s.original.length;if(e===r)return this;if(e<0||r>this.original.length)throw new Error("Character is out of bounds");if(e>r)throw new Error("end must be greater than start");return this.overwrite(e,r,"",!1)},slice:function(e,r){var s=this;for(e===void 0&&(e=0),r===void 0&&(r=this.original.length);e<0;)e+=s.original.length;for(;r<0;)r+=s.original.length;for(var i="",n=this.firstChunk;n&&(n.start>e||n.end<=e);){if(n.start<r&&n.end>=r)return i;n=n.next}if(n&&n.edited&&n.start!==e)throw new Error("Cannot use replaced character "+e+" as slice start anchor.");for(var o=n;n;){n.intro&&(o!==n||n.start===e)&&(i+=n.intro);var u=n.start<r&&n.end>=r;if(u&&n.edited&&n.end!==r)throw new Error("Cannot use replaced character "+r+" as slice end anchor.");var c=o===n?e-n.start:0,h=u?n.content.length+r-n.end:n.content.length;if(i+=n.content.slice(c,h),n.outro&&(!u||n.end===r)&&(i+=n.outro),u)break;n=n.next}return i},snip:function(e,r){var s=this.clone();return s.remove(0,e),s.remove(r,s.original.length),s},_split:function(e){var r=this;if(!(this.byStart[e]||this.byEnd[e]))for(var s=this.lastSearchedChunk,i=e>s.end;;){if(s.contains(e))return r._splitChunk(s,e);s=i?r.byStart[s.end]:r.byEnd[s.start]}},_splitChunk:function(e,r){if(e.edited&&e.content.length){var s=Ii(this.original)(r);throw new Error("Cannot split a chunk that has already been edited ("+s.line+":"+s.column+' \u2013 "'+e.original+'")')}var i=e.split(r);return this.byEnd[r]=e,this.byStart[r]=i,this.byEnd[i.end]=i,e===this.lastChunk&&(this.lastChunk=i),this.lastSearchedChunk=e,!0},toString:function(){for(var e=this.intro,r=this.firstChunk;r;)e+=r.toString(),r=r.next;return e+this.outro},trimLines:function(){return this.trim("[\\r\\n]")},trim:function(e){return this.trimStart(e).trimEnd(e)},trimEnd:function(e){var r=this,s=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(s,""),this.outro.length)return this;var i=this.lastChunk;do{var n=i.end,o=i.trimEnd(s);if(i.end!==n&&(r.lastChunk=i.next,r.byEnd[i.end]=i,r.byStart[i.next.start]=i.next),o)return r;i=i.previous}while(i);return this},trimStart:function(e){var r=this,s=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(s,""),this.intro.length)return this;var i=this.firstChunk;do{var n=i.end,o=i.trimStart(s);if(i.end!==n&&(i===r.lastChunk&&(r.lastChunk=i.next),r.byEnd[i.end]=i,r.byStart[i.next.start]=i.next),o)return r;i=i.next}while(i);return this}};var Ri=Object.prototype.hasOwnProperty;function Xe(t){t===void 0&&(t={}),this.intro=t.intro||"",this.separator=t.separator!==void 0?t.separator:`
`,this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}}Xe.prototype={addSource:function(e){if(e instanceof Bt)return this.addSource({content:e,filename:e.filename,separator:this.separator});if(!_i(e)||!e.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","indentExclusionRanges","separator"].forEach(function(s){Ri.call(e,s)||(e[s]=e.content[s])}),e.separator===void 0&&(e.separator=this.separator),e.filename)if(!Ri.call(this.uniqueSourceIndexByFilename,e.filename))this.uniqueSourceIndexByFilename[e.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:e.filename,content:e.content.original});else{var r=this.uniqueSources[this.uniqueSourceIndexByFilename[e.filename]];if(e.content.original!==r.content)throw new Error("Illegal source: same filename ("+e.filename+"), different contents")}return this.sources.push(e),this},append:function(e,r){return this.addSource({content:new Bt(e),separator:r&&r.separator||""}),this},clone:function(){var e=new Xe({intro:this.intro,separator:this.separator});return this.sources.forEach(function(r){e.addSource({filename:r.filename,content:r.content.clone(),separator:r.separator})}),e},generateMap:function(e){var r=this;e=e||{};var s={},i=[];this.sources.forEach(function(o){Object.keys(o.content.storedNames).forEach(function(u){~i.indexOf(u)||i.push(u)})});var n=ve(this.intro)+this.sources.map(function(o,u){var c=u>0?ve(o.separator)||",":"",h;if(!o.filename)h=ve(o.content.toString());else{var p=r.uniqueSourceIndexByFilename[o.filename];h=o.content.getMappings(e.hires,p,s,i)}return c+h}).join("");return new Ye({file:e.file?e.file.split(/[\/\\]/).pop():null,sources:this.uniqueSources.map(function(o){return e.file?Bi(e.file,o.filename):o.filename}),sourcesContent:this.uniqueSources.map(function(o){return e.includeContent?o.content:null}),names:i,mappings:n})},getIndentString:function(){var e={};return this.sources.forEach(function(r){var s=r.content.indentStr;s!==null&&(e[s]||(e[s]=0),e[s]+=1)}),Object.keys(e).sort(function(r,s){return e[r]-e[s]})[0]||" "},indent:function(e){var r=this;if(arguments.length||(e=this.getIndentString()),e==="")return this;var s=!this.intro||this.intro.slice(-1)===`
`;return this.sources.forEach(function(i,n){var o=i.separator!==void 0?i.separator:r.separator,u=s||n>0&&/\r?\n$/.test(o);i.content.indent(e,{exclude:i.indentExclusionRanges,indentStart:u}),s=i.content.toString().slice(0,-1)===`
`}),this.intro&&(this.intro=e+this.intro.replace(/^[^\n]/gm,function(i,n){return n>0?e+i:i})),this},prepend:function(e){return this.intro=e+this.intro,this},toString:function(){var e=this,r=this.sources.map(function(s,i){var n=s.separator!==void 0?s.separator:e.separator,o=(i>0?n:"")+s.content.toString();return o}).join("");return this.intro+r},trimLines:function(){return this.trim("[\\r\\n]")},trim:function(e){return this.trimStart(e).trimEnd(e)},trimStart:function(e){var r=this,s=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(s,""),!this.intro){var i,n=0;do{if(i=r.sources[n],!i)break;i.content.trimStart(e),n+=1}while(i.content.toString()==="")}return this},trimEnd:function(e){var r=this,s=new RegExp((e||"\\s")+"+$"),i,n=this.sources.length-1;do{if(i=r.sources[n],!i){r.intro=r.intro.replace(s,"");break}i.content.trimEnd(e),n-=1}while(i.content.toString()==="");return this}};Bt.Bundle=Xe;qi.exports=Bt});var Qt=x(Qe=>{"use strict";var mc=q(),xc=fe(),yc=J(),vc=I().mkFieldSplitToken;Qe.mark=function(e,r,s){if(typeof s.resolveEnv=="function"&&r[0]!=="'"&&r[0]!=='"'){let i=s.resolveEnv("IFS");if(i!==null)return e.replace(new RegExp(`[${i}]+`,"g"),"\0")}return e};Qe.split=()=>yc(xc,mc(t=>{if(t.is("WORD")){let e=t.value.split("\0");if(e.length>1){let r=0;return e.map(s=>vc(t,s,r++))}}return t}))});var Ui=x((Gp,Wi)=>{"use strict";var Ec=Fi(),gc=Be(),ji=q(),Ac=Oi(),Cc=Ee(),$i=I(),bc=Qt(),Mi=(t,e)=>{let r=Ec(t,(s,i)=>{if(typeof i=="function"){let n=i(e);return[s,n]}return typeof i=="object"&&s!=="expand"?[s,Mi(i,e)]:[s,i]});if(r.expand){let s=He();for(let i of r.expand){let n=s(r[i],{mode:"word-expansion"});r[i]=n.commands[0].name}delete r.expand}return r};function wc(t,e){let r=t.parameter;for(let s of Ac(e.parameterOperators)){let i=new RegExp(s[0]),n=r.match(i);if(n){let o=Mi(s[1],n);return gc(Object.assign(t,o),(u,c)=>c!==void 0)}}return t}var Vi=(t,e)=>ji(r=>r.is("WORD")||r.is("ASSIGNMENT_WORD")?!r.expansion||r.expansion.length===0?r:$i.setExpansions(r,r.expansion.map(s=>s.type==="parameter_expansion"?wc(s,e.enums):s)):r);Vi.resolve=t=>ji(e=>{if(e.is("WORD")||e.is("ASSIGNMENT_WORD")){if(!t.resolveParameter||!e.expansion||e.expansion.length===0)return e;let r=e.value,s=new Cc(r);for(let i of e.expansion)if(i.type==="parameter_expansion"){let n=t.resolveParameter(i);i.resolved=!0,s.overwrite(i.loc.start,i.loc.end+1,bc.mark(n,r,t))}return $i.alterValue(e,s.toString())}return e});Wi.exports=Vi});var Xi=x((Kp,zi)=>{"use strict";var Gi=q(),Sc=Ee(),Tc=I(),Pc=Qt();function Nc(t,e){let r=t.command;e.value[t.loc.start-1]==="`"&&(r=r.replace(/\\`/g,"`"));let i=He()(r);return Object.assign({},t,{command:r,commandAST:i})}var Ki=()=>Gi(t=>t.is("WORD")||t.is("ASSIGNMENT_WORD")?!t.expansion||t.expansion.length===0?t:Tc.setExpansions(t,t.expansion.map(e=>e.type==="command_expansion"?Nc(e,t):e)):t);Ki.resolve=t=>Gi(e=>{if(t.execCommand&&e.expansion){let r=e.value,s=new Sc(r);for(let i of e.expansion)if(i.type==="command_expansion"){let n=t.execCommand(i);s.overwrite(i.loc.start,i.loc.end+1,Pc.mark(n.replace(/\n+$/,""),r,t)),i.resolved=!0}return e.alterValue(s.toString())}return e});zi.exports=Ki});var on=x(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});function ge(t){return t=t.split(" "),function(e){return t.indexOf(e)>=0}}var er={6:ge("enum await"),strict:ge("implements interface let package private protected public static yield"),strictBind:ge("eval arguments")},Fc=ge("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this let const class extends export import yield super"),ar="\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\u08B6-\u08BD\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\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\u