@live-codes/browser-compilers 0.22.3 → 0.22.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
var pt=Object.defineProperty;var rr=(l,u)=>()=>(l&&(u=l(l=0)),u);var dt=(l,u)=>()=>(u||l((u={exports:{}}).exports,u),u.exports),wt=(l,u)=>{for(var c in u)pt(l,c,{get:u[c],enumerable:!0})};var W=rr(()=>{});var er={};wt(er,{_debugEnd:()=>de,_debugProcess:()=>pe,_events:()=>Se,_eventsCount:()=>Re,_exiting:()=>jr,_fatalExceptions:()=>se,_getActiveHandles:()=>Kr,_getActiveRequests:()=>Qr,_kill:()=>re,_linkedBinding:()=>Xr,_maxListeners:()=>xe,_preload_modules:()=>Te,_rawDebug:()=>qr,_startProfilerIdleNotifier:()=>we,_stopProfilerIdleNotifier:()=>ge,_tickCallback:()=>he,abort:()=>Ee,addListener:()=>ke,allowedNodeEnvironmentFlags:()=>ue,arch:()=>Rr,argv:()=>Mr,argv0:()=>_e,assert:()=>ae,binding:()=>Fr,chdir:()=>Gr,config:()=>Jr,cpuUsage:()=>ur,cwd:()=>Yr,debugPort:()=>ve,default:()=>Ye,dlopen:()=>Vr,domain:()=>zr,emit:()=>$e,emitWarning:()=>Dr,env:()=>Lr,execArgv:()=>Nr,execPath:()=>Ue,exit:()=>ie,features:()=>ce,hasUncaughtExceptionCaptureCallback:()=>fe,hrtime:()=>or,kill:()=>ne,listeners:()=>Oe,memoryUsage:()=>te,moduleLoadList:()=>Hr,nextTick:()=>Cr,off:()=>Me,on:()=>O,once:()=>Le,openStdin:()=>oe,pid:()=>Ie,platform:()=>kr,ppid:()=>Ae,prependListener:()=>De,prependOnceListener:()=>Fe,reallyExit:()=>Zr,release:()=>Wr,removeAllListeners:()=>Pe,removeListener:()=>Ne,resourceUsage:()=>ee,setSourceMapsEnabled:()=>be,setUncaughtExceptionCaptureCallback:()=>le,stderr:()=>me,stdin:()=>Be,stdout:()=>ye,title:()=>Sr,umask:()=>Or,uptime:()=>Ce,version:()=>Pr,versions:()=>$r});function pr(l){throw new Error("Node.js process "+l+" is not supported by JSPM core outside of Node.js")}function gt(){!Q||!q||(Q=!1,q.length?F=q.concat(F):ir=-1,F.length&&br())}function br(){if(!Q){var l=setTimeout(gt,0);Q=!0;for(var u=F.length;u;){for(q=F,F=[];++ir<u;)q&&q[ir].run();ir=-1,u=F.length}q=null,Q=!1,clearTimeout(l)}}function Cr(l){var u=new Array(arguments.length-1);if(arguments.length>1)for(var c=1;c<arguments.length;c++)u[c-1]=arguments[c];F.push(new xr(l,u)),F.length===1&&!Q&&setTimeout(br,0)}function xr(l,u){this.fun=l,this.array=u}function S(){}function Xr(l){pr("_linkedBinding")}function Vr(l){pr("dlopen")}function Qr(){return[]}function Kr(){return[]}function ae(l,u){if(!l)throw new Error(u||"assertion error")}function fe(){return!1}function Ce(){return G.now()/1e3}function or(l){var u=Math.floor((Date.now()-G.now())*.001),c=G.now()*.001,h=Math.floor(c)+u,f=Math.floor(c%1*1e9);return l&&(h=h-l[0],f=f-l[1],f<0&&(h--,f+=hr)),[h,f]}function O(){return Ye}function Oe(l){return[]}var F,Q,q,ir,Sr,Rr,kr,Lr,Mr,Nr,Pr,$r,Dr,Fr,Or,Yr,Gr,Wr,qr,Hr,zr,jr,Jr,Zr,re,ur,ee,te,ne,ie,oe,ue,ce,se,le,he,pe,de,we,ge,ye,me,Be,Ee,Ie,Ae,Ue,ve,_e,Te,be,G,fr,hr,xe,Se,Re,ke,Le,Me,Ne,Pe,$e,De,Fe,Ye,Ge=rr(()=>{W();X();H();F=[],Q=!1,ir=-1;xr.prototype.run=function(){this.fun.apply(null,this.array)};Sr="browser",Rr="x64",kr="browser",Lr={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},Mr=["/usr/bin/node"],Nr=[],Pr="v16.8.0",$r={},Dr=function(l,u){console.warn((u?u+": ":"")+l)},Fr=function(l){pr("binding")},Or=function(l){return 0},Yr=function(){return"/"},Gr=function(l){},Wr={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};qr=S,Hr=[];zr={},jr=!1,Jr={};Zr=S,re=S,ur=function(){return{}},ee=ur,te=ur,ne=S,ie=S,oe=S,ue={};ce={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},se=S,le=S;he=S,pe=S,de=S,we=S,ge=S,ye=void 0,me=void 0,Be=void 0,Ee=S,Ie=2,Ae=1,Ue="/bin/usr/node",ve=9229,_e="node",Te=[],be=S,G={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};G.now===void 0&&(fr=Date.now(),G.timing&&G.timing.navigationStart&&(fr=G.timing.navigationStart),G.now=()=>Date.now()-fr);hr=1e9;or.bigint=function(l){var u=or(l);return typeof BigInt>"u"?u[0]*hr+u[1]:BigInt(u[0]*hr)+BigInt(u[1])};xe=10,Se={},Re=0;ke=O,Le=O,Me=O,Ne=O,Pe=O,$e=S,De=O,Fe=O;Ye={version:Pr,versions:$r,arch:Rr,platform:kr,release:Wr,_rawDebug:qr,moduleLoadList:Hr,binding:Fr,_linkedBinding:Xr,_events:Se,_eventsCount:Re,_maxListeners:xe,on:O,addListener:ke,once:Le,off:Me,removeListener:Ne,removeAllListeners:Pe,emit:$e,prependListener:De,prependOnceListener:Fe,listeners:Oe,domain:zr,_exiting:jr,config:Jr,dlopen:Vr,uptime:Ce,_getActiveRequests:Qr,_getActiveHandles:Kr,reallyExit:Zr,_kill:re,cpuUsage:ur,resourceUsage:ee,memoryUsage:te,kill:ne,exit:ie,openStdin:oe,allowedNodeEnvironmentFlags:ue,assert:ae,features:ce,_fatalExceptions:se,setUncaughtExceptionCaptureCallback:le,hasUncaughtExceptionCaptureCallback:fe,emitWarning:Dr,nextTick:Cr,_tickCallback:he,_debugProcess:pe,_debugEnd:de,_startProfilerIdleNotifier:we,_stopProfilerIdleNotifier:ge,stdout:ye,stdin:Be,stderr:me,abort:Ee,umask:Or,chdir:Gr,cwd:Yr,env:Lr,title:Sr,argv:Mr,execArgv:Nr,pid:Ie,ppid:Ae,execPath:Ue,debugPort:ve,hrtime:or,argv0:_e,_preload_modules:Te,setSourceMapsEnabled:be}});var H=rr(()=>{Ge()});function yt(){if(We)return tr;We=!0,tr.byteLength=d,tr.toByteArray=v,tr.fromByteArray=R;for(var l=[],u=[],c=typeof Uint8Array<"u"?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,p=h.length;f<p;++f)l[f]=h[f],u[h.charCodeAt(f)]=f;u[45]=62,u[95]=63;function i(w){var y=w.length;if(y%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var A=w.indexOf("=");A===-1&&(A=y);var C=A===y?0:4-A%4;return[A,C]}function d(w){var y=i(w),A=y[0],C=y[1];return(A+C)*3/4-C}function m(w,y,A){return(y+A)*3/4-A}function v(w){var y,A=i(w),C=A[0],L=A[1],b=new c(m(w,C,L)),M=0,P=L>0?C-4:C,k;for(k=0;k<P;k+=4)y=u[w.charCodeAt(k)]<<18|u[w.charCodeAt(k+1)]<<12|u[w.charCodeAt(k+2)]<<6|u[w.charCodeAt(k+3)],b[M++]=y>>16&255,b[M++]=y>>8&255,b[M++]=y&255;return L===2&&(y=u[w.charCodeAt(k)]<<2|u[w.charCodeAt(k+1)]>>4,b[M++]=y&255),L===1&&(y=u[w.charCodeAt(k)]<<10|u[w.charCodeAt(k+1)]<<4|u[w.charCodeAt(k+2)]>>2,b[M++]=y>>8&255,b[M++]=y&255),b}function E(w){return l[w>>18&63]+l[w>>12&63]+l[w>>6&63]+l[w&63]}function g(w,y,A){for(var C,L=[],b=y;b<A;b+=3)C=(w[b]<<16&16711680)+(w[b+1]<<8&65280)+(w[b+2]&255),L.push(E(C));return L.join("")}function R(w){for(var y,A=w.length,C=A%3,L=[],b=16383,M=0,P=A-C;M<P;M+=b)L.push(g(w,M,M+b>P?P:M+b));return C===1?(y=w[A-1],L.push(l[y>>2]+l[y<<4&63]+"==")):C===2&&(y=(w[A-2]<<8)+w[A-1],L.push(l[y>>10]+l[y>>4&63]+l[y<<2&63]+"=")),L.join("")}return tr}function mt(){if(qe)return ar;qe=!0;return ar.read=function(l,u,c,h,f){var p,i,d=f*8-h-1,m=(1<<d)-1,v=m>>1,E=-7,g=c?f-1:0,R=c?-1:1,w=l[u+g];for(g+=R,p=w&(1<<-E)-1,w>>=-E,E+=d;E>0;p=p*256+l[u+g],g+=R,E-=8);for(i=p&(1<<-E)-1,p>>=-E,E+=h;E>0;i=i*256+l[u+g],g+=R,E-=8);if(p===0)p=1-v;else{if(p===m)return i?NaN:(w?-1:1)*(1/0);i=i+Math.pow(2,h),p=p-v}return(w?-1:1)*i*Math.pow(2,p-h)},ar.write=function(l,u,c,h,f,p){var i,d,m,v=p*8-f-1,E=(1<<v)-1,g=E>>1,R=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=h?0:p-1,y=h?1:-1,A=u<0||u===0&&1/u<0?1:0;for(u=Math.abs(u),isNaN(u)||u===1/0?(d=isNaN(u)?1:0,i=E):(i=Math.floor(Math.log(u)/Math.LN2),u*(m=Math.pow(2,-i))<1&&(i--,m*=2),i+g>=1?u+=R/m:u+=R*Math.pow(2,1-g),u*m>=2&&(i++,m/=2),i+g>=E?(d=0,i=E):i+g>=1?(d=(u*m-1)*Math.pow(2,f),i=i+g):(d=u*Math.pow(2,g-1)*Math.pow(2,f),i=0));f>=8;l[c+w]=d&255,w+=y,d/=256,f-=8);for(i=i<<f|d,v+=f;v>0;l[c+w]=i&255,w+=y,i/=256,v-=8);l[c+w-y]|=A*128},ar}function Bt(){if(He)return z;He=!0;let l=yt(),u=mt(),c=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;z.Buffer=i,z.SlowBuffer=L,z.INSPECT_MAX_BYTES=50;let h=2147483647;z.kMaxLength=h,i.TYPED_ARRAY_SUPPORT=f(),!i.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function f(){try{let t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),t.foo()===42}catch{return!1}}Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}});function p(t){if(t>h)throw new RangeError('The value "'+t+'" is invalid for option "size"');let r=new Uint8Array(t);return Object.setPrototypeOf(r,i.prototype),r}function i(t,r,e){if(typeof t=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return E(t)}return d(t,r,e)}i.poolSize=8192;function d(t,r,e){if(typeof t=="string")return g(t,r);if(ArrayBuffer.isView(t))return w(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if($(t,ArrayBuffer)||t&&$(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&($(t,SharedArrayBuffer)||t&&$(t.buffer,SharedArrayBuffer)))return y(t,r,e);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return i.from(n,r,e);let o=A(t);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return i.from(t[Symbol.toPrimitive]("string"),r,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}i.from=function(t,r,e){return d(t,r,e)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array);function m(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function v(t,r,e){return m(t),t<=0?p(t):r!==void 0?typeof e=="string"?p(t).fill(r,e):p(t).fill(r):p(t)}i.alloc=function(t,r,e){return v(t,r,e)};function E(t){return m(t),p(t<0?0:C(t)|0)}i.allocUnsafe=function(t){return E(t)},i.allocUnsafeSlow=function(t){return E(t)};function g(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!i.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let e=b(t,r)|0,n=p(e),o=n.write(t,r);return o!==e&&(n=n.slice(0,o)),n}function R(t){let r=t.length<0?0:C(t.length)|0,e=p(r);for(let n=0;n<r;n+=1)e[n]=t[n]&255;return e}function w(t){if($(t,Uint8Array)){let r=new Uint8Array(t);return y(r.buffer,r.byteOffset,r.byteLength)}return R(t)}function y(t,r,e){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw new RangeError('"length" is outside of buffer bounds');let n;return r===void 0&&e===void 0?n=new Uint8Array(t):e===void 0?n=new Uint8Array(t,r):n=new Uint8Array(t,r,e),Object.setPrototypeOf(n,i.prototype),n}function A(t){if(i.isBuffer(t)){let r=C(t.length)|0,e=p(r);return e.length===0||t.copy(e,0,0,r),e}if(t.length!==void 0)return typeof t.length!="number"||lr(t.length)?p(0):R(t);if(t.type==="Buffer"&&Array.isArray(t.data))return R(t.data)}function C(t){if(t>=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return t|0}function L(t){return+t!=t&&(t=0),i.alloc(+t)}i.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==i.prototype},i.compare=function(r,e){if($(r,Uint8Array)&&(r=i.from(r,r.offset,r.byteLength)),$(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),!i.isBuffer(r)||!i.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===e)return 0;let n=r.length,o=e.length;for(let a=0,s=Math.min(n,o);a<s;++a)if(r[a]!==e[a]){n=r[a],o=e[a];break}return n<o?-1:o<n?1:0},i.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return i.alloc(0);let n;if(e===void 0)for(e=0,n=0;n<r.length;++n)e+=r[n].length;let o=i.allocUnsafe(e),a=0;for(n=0;n<r.length;++n){let s=r[n];if($(s,Uint8Array))a+s.length>o.length?(i.isBuffer(s)||(s=i.from(s)),s.copy(o,a)):Uint8Array.prototype.set.call(o,s,a);else if(i.isBuffer(s))s.copy(o,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=s.length}return o};function b(t,r){if(i.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||$(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let e=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&e===0)return 0;let o=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return sr(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return _r(t).length;default:if(o)return n?-1:sr(t).length;r=(""+r).toLowerCase(),o=!0}}i.byteLength=b;function M(t,r,e){let n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return it(this,r,e);case"utf8":case"utf-8":return gr(this,r,e);case"ascii":return tt(this,r,e);case"latin1":case"binary":return nt(this,r,e);case"base64":return rt(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ot(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}i.prototype._isBuffer=!0;function P(t,r,e){let n=t[r];t[r]=t[e],t[e]=n}i.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<r;e+=2)P(this,e,e+1);return this},i.prototype.swap32=function(){let r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<r;e+=4)P(this,e,e+3),P(this,e+1,e+2);return this},i.prototype.swap64=function(){let r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<r;e+=8)P(this,e,e+7),P(this,e+1,e+6),P(this,e+2,e+5),P(this,e+3,e+4);return this},i.prototype.toString=function(){let r=this.length;return r===0?"":arguments.length===0?gr(this,0,r):M.apply(this,arguments)},i.prototype.toLocaleString=i.prototype.toString,i.prototype.equals=function(r){if(!i.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:i.compare(this,r)===0},i.prototype.inspect=function(){let r="",e=z.INSPECT_MAX_BYTES;return r=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(r+=" ... "),"<Buffer "+r+">"},c&&(i.prototype[c]=i.prototype.inspect),i.prototype.compare=function(r,e,n,o,a){if($(r,Uint8Array)&&(r=i.from(r,r.offset,r.byteLength)),!i.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(e===void 0&&(e=0),n===void 0&&(n=r?r.length:0),o===void 0&&(o=0),a===void 0&&(a=this.length),e<0||n>r.length||o<0||a>this.length)throw new RangeError("out of range index");if(o>=a&&e>=n)return 0;if(o>=a)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,o>>>=0,a>>>=0,this===r)return 0;let s=a-o,B=n-e,_=Math.min(s,B),U=this.slice(o,a),T=r.slice(e,n);for(let I=0;I<_;++I)if(U[I]!==T[I]){s=U[I],B=T[I];break}return s<B?-1:B<s?1:0};function k(t,r,e,n,o){if(t.length===0)return-1;if(typeof e=="string"?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,lr(e)&&(e=o?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(o)return-1;e=t.length-1}else if(e<0)if(o)e=0;else return-1;if(typeof r=="string"&&(r=i.from(r,n)),i.isBuffer(r))return r.length===0?-1:wr(t,r,e,n,o);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):wr(t,[r],e,n,o);throw new TypeError("val must be string, number or Buffer")}function wr(t,r,e,n,o){let a=1,s=t.length,B=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||r.length<2)return-1;a=2,s/=2,B/=2,e/=2}function _(T,I){return a===1?T[I]:T.readUInt16BE(I*a)}let U;if(o){let T=-1;for(U=e;U<s;U++)if(_(t,U)===_(r,T===-1?0:U-T)){if(T===-1&&(T=U),U-T+1===B)return T*a}else T!==-1&&(U-=U-T),T=-1}else for(e+B>s&&(e=s-B),U=e;U>=0;U--){let T=!0;for(let I=0;I<B;I++)if(_(t,U+I)!==_(r,I)){T=!1;break}if(T)return U}return-1}i.prototype.includes=function(r,e,n){return this.indexOf(r,e,n)!==-1},i.prototype.indexOf=function(r,e,n){return k(this,r,e,n,!0)},i.prototype.lastIndexOf=function(r,e,n){return k(this,r,e,n,!1)};function Je(t,r,e,n){e=Number(e)||0;let o=t.length-e;n?(n=Number(n),n>o&&(n=o)):n=o;let a=r.length;n>a/2&&(n=a/2);let s;for(s=0;s<n;++s){let B=parseInt(r.substr(s*2,2),16);if(lr(B))return s;t[e+s]=B}return s}function Ve(t,r,e,n){return nr(sr(r,t.length-e),t,e,n)}function Qe(t,r,e,n){return nr(st(r),t,e,n)}function Ke(t,r,e,n){return nr(_r(r),t,e,n)}function Ze(t,r,e,n){return nr(lt(r,t.length-e),t,e,n)}i.prototype.write=function(r,e,n,o){if(e===void 0)o="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")o=e,n=this.length,e=0;else if(isFinite(e))e=e>>>0,isFinite(n)?(n=n>>>0,o===void 0&&(o="utf8")):(o=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-e;if((n===void 0||n>a)&&(n=a),r.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let s=!1;for(;;)switch(o){case"hex":return Je(this,r,e,n);case"utf8":case"utf-8":return Ve(this,r,e,n);case"ascii":case"latin1":case"binary":return Qe(this,r,e,n);case"base64":return Ke(this,r,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ze(this,r,e,n);default:if(s)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),s=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function rt(t,r,e){return r===0&&e===t.length?l.fromByteArray(t):l.fromByteArray(t.slice(r,e))}function gr(t,r,e){e=Math.min(t.length,e);let n=[],o=r;for(;o<e;){let a=t[o],s=null,B=a>239?4:a>223?3:a>191?2:1;if(o+B<=e){let _,U,T,I;switch(B){case 1:a<128&&(s=a);break;case 2:_=t[o+1],(_&192)===128&&(I=(a&31)<<6|_&63,I>127&&(s=I));break;case 3:_=t[o+1],U=t[o+2],(_&192)===128&&(U&192)===128&&(I=(a&15)<<12|(_&63)<<6|U&63,I>2047&&(I<55296||I>57343)&&(s=I));break;case 4:_=t[o+1],U=t[o+2],T=t[o+3],(_&192)===128&&(U&192)===128&&(T&192)===128&&(I=(a&15)<<18|(_&63)<<12|(U&63)<<6|T&63,I>65535&&I<1114112&&(s=I))}}s===null?(s=65533,B=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),o+=B}return et(n)}let yr=4096;function et(t){let r=t.length;if(r<=yr)return String.fromCharCode.apply(String,t);let e="",n=0;for(;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=yr));return e}function tt(t,r,e){let n="";e=Math.min(t.length,e);for(let o=r;o<e;++o)n+=String.fromCharCode(t[o]&127);return n}function nt(t,r,e){let n="";e=Math.min(t.length,e);for(let o=r;o<e;++o)n+=String.fromCharCode(t[o]);return n}function it(t,r,e){let n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);let o="";for(let a=r;a<e;++a)o+=ft[t[a]];return o}function ot(t,r,e){let n=t.slice(r,e),o="";for(let a=0;a<n.length-1;a+=2)o+=String.fromCharCode(n[a]+n[a+1]*256);return o}i.prototype.slice=function(r,e){let n=this.length;r=~~r,e=e===void 0?n:~~e,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<r&&(e=r);let o=this.subarray(r,e);return Object.setPrototypeOf(o,i.prototype),o};function x(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUintLE=i.prototype.readUIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||x(r,e,this.length);let o=this[r],a=1,s=0;for(;++s<e&&(a*=256);)o+=this[r+s]*a;return o},i.prototype.readUintBE=i.prototype.readUIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||x(r,e,this.length);let o=this[r+--e],a=1;for(;e>0&&(a*=256);)o+=this[r+--e]*a;return o},i.prototype.readUint8=i.prototype.readUInt8=function(r,e){return r=r>>>0,e||x(r,1,this.length),this[r]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||x(r,2,this.length),this[r]|this[r+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||x(r,2,this.length),this[r]<<8|this[r+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(r,e){return r=r>>>0,e||x(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(r,e){return r=r>>>0,e||x(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},i.prototype.readBigUInt64LE=Y(function(r){r=r>>>0,V(r,"offset");let e=this[r],n=this[r+7];(e===void 0||n===void 0)&&Z(r,this.length-8);let o=e+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,a=this[++r]+this[++r]*2**8+this[++r]*2**16+n*2**24;return BigInt(o)+(BigInt(a)<<BigInt(32))}),i.prototype.readBigUInt64BE=Y(function(r){r=r>>>0,V(r,"offset");let e=this[r],n=this[r+7];(e===void 0||n===void 0)&&Z(r,this.length-8);let o=e*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],a=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n;return(BigInt(o)<<BigInt(32))+BigInt(a)}),i.prototype.readIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||x(r,e,this.length);let o=this[r],a=1,s=0;for(;++s<e&&(a*=256);)o+=this[r+s]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*e)),o},i.prototype.readIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||x(r,e,this.length);let o=e,a=1,s=this[r+--o];for(;o>0&&(a*=256);)s+=this[r+--o]*a;return a*=128,s>=a&&(s-=Math.pow(2,8*e)),s},i.prototype.readInt8=function(r,e){return r=r>>>0,e||x(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},i.prototype.readInt16LE=function(r,e){r=r>>>0,e||x(r,2,this.length);let n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n},i.prototype.readInt16BE=function(r,e){r=r>>>0,e||x(r,2,this.length);let n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n},i.prototype.readInt32LE=function(r,e){return r=r>>>0,e||x(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},i.prototype.readInt32BE=function(r,e){return r=r>>>0,e||x(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},i.prototype.readBigInt64LE=Y(function(r){r=r>>>0,V(r,"offset");let e=this[r],n=this[r+7];(e===void 0||n===void 0)&&Z(r,this.length-8);let o=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(n<<24);return(BigInt(o)<<BigInt(32))+BigInt(e+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24)}),i.prototype.readBigInt64BE=Y(function(r){r=r>>>0,V(r,"offset");let e=this[r],n=this[r+7];(e===void 0||n===void 0)&&Z(r,this.length-8);let o=(e<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(o)<<BigInt(32))+BigInt(this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n)}),i.prototype.readFloatLE=function(r,e){return r=r>>>0,e||x(r,4,this.length),u.read(this,r,!0,23,4)},i.prototype.readFloatBE=function(r,e){return r=r>>>0,e||x(r,4,this.length),u.read(this,r,!1,23,4)},i.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||x(r,8,this.length),u.read(this,r,!0,52,8)},i.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||x(r,8,this.length),u.read(this,r,!1,52,8)};function N(t,r,e,n,o,a){if(!i.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>o||r<a)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}i.prototype.writeUintLE=i.prototype.writeUIntLE=function(r,e,n,o){if(r=+r,e=e>>>0,n=n>>>0,!o){let B=Math.pow(2,8*n)-1;N(this,r,e,n,B,0)}let a=1,s=0;for(this[e]=r&255;++s<n&&(a*=256);)this[e+s]=r/a&255;return e+n},i.prototype.writeUintBE=i.prototype.writeUIntBE=function(r,e,n,o){if(r=+r,e=e>>>0,n=n>>>0,!o){let B=Math.pow(2,8*n)-1;N(this,r,e,n,B,0)}let a=n-1,s=1;for(this[e+a]=r&255;--a>=0&&(s*=256);)this[e+a]=r/s&255;return e+n},i.prototype.writeUint8=i.prototype.writeUInt8=function(r,e,n){return r=+r,e=e>>>0,n||N(this,r,e,1,255,0),this[e]=r&255,e+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||N(this,r,e,2,65535,0),this[e]=r&255,this[e+1]=r>>>8,e+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||N(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=r&255,e+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||N(this,r,e,4,4294967295,0),this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255,e+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||N(this,r,e,4,4294967295,0),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};function mr(t,r,e,n,o){vr(r,n,o,t,e,7);let a=Number(r&BigInt(4294967295));t[e++]=a,a=a>>8,t[e++]=a,a=a>>8,t[e++]=a,a=a>>8,t[e++]=a;let s=Number(r>>BigInt(32)&BigInt(4294967295));return t[e++]=s,s=s>>8,t[e++]=s,s=s>>8,t[e++]=s,s=s>>8,t[e++]=s,e}function Br(t,r,e,n,o){vr(r,n,o,t,e,7);let a=Number(r&BigInt(4294967295));t[e+7]=a,a=a>>8,t[e+6]=a,a=a>>8,t[e+5]=a,a=a>>8,t[e+4]=a;let s=Number(r>>BigInt(32)&BigInt(4294967295));return t[e+3]=s,s=s>>8,t[e+2]=s,s=s>>8,t[e+1]=s,s=s>>8,t[e]=s,e+8}i.prototype.writeBigUInt64LE=Y(function(r,e=0){return mr(this,r,e,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeBigUInt64BE=Y(function(r,e=0){return Br(this,r,e,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeIntLE=function(r,e,n,o){if(r=+r,e=e>>>0,!o){let _=Math.pow(2,8*n-1);N(this,r,e,n,_-1,-_)}let a=0,s=1,B=0;for(this[e]=r&255;++a<n&&(s*=256);)r<0&&B===0&&this[e+a-1]!==0&&(B=1),this[e+a]=(r/s>>0)-B&255;return e+n},i.prototype.writeIntBE=function(r,e,n,o){if(r=+r,e=e>>>0,!o){let _=Math.pow(2,8*n-1);N(this,r,e,n,_-1,-_)}let a=n-1,s=1,B=0;for(this[e+a]=r&255;--a>=0&&(s*=256);)r<0&&B===0&&this[e+a+1]!==0&&(B=1),this[e+a]=(r/s>>0)-B&255;return e+n},i.prototype.writeInt8=function(r,e,n){return r=+r,e=e>>>0,n||N(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=r&255,e+1},i.prototype.writeInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||N(this,r,e,2,32767,-32768),this[e]=r&255,this[e+1]=r>>>8,e+2},i.prototype.writeInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||N(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=r&255,e+2},i.prototype.writeInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||N(this,r,e,4,2147483647,-2147483648),this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24,e+4},i.prototype.writeInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||N(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4},i.prototype.writeBigInt64LE=Y(function(r,e=0){return mr(this,r,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeBigInt64BE=Y(function(r,e=0){return Br(this,r,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Er(t,r,e,n,o,a){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function Ir(t,r,e,n,o){return r=+r,e=e>>>0,o||Er(t,r,e,4),u.write(t,r,e,n,23,4),e+4}i.prototype.writeFloatLE=function(r,e,n){return Ir(this,r,e,!0,n)},i.prototype.writeFloatBE=function(r,e,n){return Ir(this,r,e,!1,n)};function Ar(t,r,e,n,o){return r=+r,e=e>>>0,o||Er(t,r,e,8),u.write(t,r,e,n,52,8),e+8}i.prototype.writeDoubleLE=function(r,e,n){return Ar(this,r,e,!0,n)},i.prototype.writeDoubleBE=function(r,e,n){return Ar(this,r,e,!1,n)},i.prototype.copy=function(r,e,n,o){if(!i.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!o&&o!==0&&(o=this.length),e>=r.length&&(e=r.length),e||(e=0),o>0&&o<n&&(o=n),o===n||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),r.length-e<o-n&&(o=r.length-e+n);let a=o-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(e,n,o):Uint8Array.prototype.set.call(r,this.subarray(n,o),e),a},i.prototype.fill=function(r,e,n,o){if(typeof r=="string"){if(typeof e=="string"?(o=e,e=0,n=this.length):typeof n=="string"&&(o=n,n=this.length),o!==void 0&&typeof o!="string")throw new TypeError("encoding must be a string");if(typeof o=="string"&&!i.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(r.length===1){let s=r.charCodeAt(0);(o==="utf8"&&s<128||o==="latin1")&&(r=s)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);let a;if(typeof r=="number")for(a=e;a<n;++a)this[a]=r;else{let s=i.isBuffer(r)?r:i.from(r,o),B=s.length;if(B===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(a=0;a<n-e;++a)this[a+e]=s[a%B]}return this};let J={};function cr(t,r,e){J[t]=class extends e{constructor(){super(),Object.defineProperty(this,"message",{value:r.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(o){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:o,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}cr("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),cr("ERR_INVALID_ARG_TYPE",function(t,r){return`The "${t}" argument must be of type number. Received type ${typeof r}`},TypeError),cr("ERR_OUT_OF_RANGE",function(t,r,e){let n=`The value of "${t}" is out of range.`,o=e;return Number.isInteger(e)&&Math.abs(e)>2**32?o=Ur(String(e)):typeof e=="bigint"&&(o=String(e),(e>BigInt(2)**BigInt(32)||e<-(BigInt(2)**BigInt(32)))&&(o=Ur(o)),o+="n"),n+=` It must be ${r}. Received ${o}`,n},RangeError);function Ur(t){let r="",e=t.length,n=t[0]==="-"?1:0;for(;e>=n+4;e-=3)r=`_${t.slice(e-3,e)}${r}`;return`${t.slice(0,e)}${r}`}function ut(t,r,e){V(r,"offset"),(t[r]===void 0||t[r+e]===void 0)&&Z(r,t.length-(e+1))}function vr(t,r,e,n,o,a){if(t>e||t<r){let s=typeof r=="bigint"?"n":"",B;throw a>3?r===0||r===BigInt(0)?B=`>= 0${s} and < 2${s} ** ${(a+1)*8}${s}`:B=`>= -(2${s} ** ${(a+1)*8-1}${s}) and < 2 ** ${(a+1)*8-1}${s}`:B=`>= ${r}${s} and <= ${e}${s}`,new J.ERR_OUT_OF_RANGE("value",B,t)}ut(n,o,a)}function V(t,r){if(typeof t!="number")throw new J.ERR_INVALID_ARG_TYPE(r,"number",t)}function Z(t,r,e){throw Math.floor(t)!==t?(V(t,e),new J.ERR_OUT_OF_RANGE(e||"offset","an integer",t)):r<0?new J.ERR_BUFFER_OUT_OF_BOUNDS:new J.ERR_OUT_OF_RANGE(e||"offset",`>= ${e?1:0} and <= ${r}`,t)}let at=/[^+/0-9A-Za-z-_]/g;function ct(t){if(t=t.split("=")[0],t=t.trim().replace(at,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function sr(t,r){r=r||1/0;let e,n=t.length,o=null,a=[];for(let s=0;s<n;++s){if(e=t.charCodeAt(s),e>55295&&e<57344){if(!o){if(e>56319){(r-=3)>-1&&a.push(239,191,189);continue}else if(s+1===n){(r-=3)>-1&&a.push(239,191,189);continue}o=e;continue}if(e<56320){(r-=3)>-1&&a.push(239,191,189),o=e;continue}e=(o-55296<<10|e-56320)+65536}else o&&(r-=3)>-1&&a.push(239,191,189);if(o=null,e<128){if((r-=1)<0)break;a.push(e)}else if(e<2048){if((r-=2)<0)break;a.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;a.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;a.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return a}function st(t){let r=[];for(let e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function lt(t,r){let e,n,o,a=[];for(let s=0;s<t.length&&!((r-=2)<0);++s)e=t.charCodeAt(s),n=e>>8,o=e%256,a.push(o),a.push(n);return a}function _r(t){return l.toByteArray(ct(t))}function nr(t,r,e,n){let o;for(o=0;o<n&&!(o+e>=r.length||o>=t.length);++o)r[o+e]=t[o];return o}function $(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function lr(t){return t!==t}let ft=function(){let t="0123456789abcdef",r=new Array(256);for(let e=0;e<16;++e){let n=e*16;for(let o=0;o<16;++o)r[n+o]=t[e]+t[o]}return r}();function Y(t){return typeof BigInt>"u"?ht:t}function ht(){throw new Error("BigInt not supported")}return z}var tr,We,ar,qe,z,He,j,dr,xt,St,Xe=rr(()=>{W();X();H();tr={},We=!1;ar={},qe=!1;z={},He=!1;j=Bt();j.Buffer;j.SlowBuffer;j.INSPECT_MAX_BYTES;j.kMaxLength;dr=j.Buffer,xt=j.INSPECT_MAX_BYTES,St=j.kMaxLength});var X=rr(()=>{Xe()});var It=dt(($t,je)=>{W();X();H();function D(l){if(typeof l!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(l))}function ze(l,u){for(var c="",h=0,f=-1,p=0,i,d=0;d<=l.length;++d){if(d<l.length)i=l.charCodeAt(d);else{if(i===47)break;i=47}if(i===47){if(!(f===d-1||p===1))if(f!==d-1&&p===2){if(c.length<2||h!==2||c.charCodeAt(c.length-1)!==46||c.charCodeAt(c.length-2)!==46){if(c.length>2){var m=c.lastIndexOf("/");if(m!==c.length-1){m===-1?(c="",h=0):(c=c.slice(0,m),h=c.length-1-c.lastIndexOf("/")),f=d,p=0;continue}}else if(c.length===2||c.length===1){c="",h=0,f=d,p=0;continue}}u&&(c.length>0?c+="/..":c="..",h=2)}else c.length>0?c+="/"+l.slice(f+1,d):c=l.slice(f+1,d),h=d-f-1;f=d,p=0}else i===46&&p!==-1?++p:p=-1}return c}function Et(l,u){var c=u.dir||u.root,h=u.base||(u.name||"")+(u.ext||"");return c?c===u.root?c+h:c+l+h:h}var K={resolve:function(){for(var u="",c=!1,h,f=arguments.length-1;f>=-1&&!c;f--){var p;f>=0?p=arguments[f]:(h===void 0&&(h=er.cwd()),p=h),D(p),p.length!==0&&(u=p+"/"+u,c=p.charCodeAt(0)===47)}return u=ze(u,!c),c?u.length>0?"/"+u:"/":u.length>0?u:"."},normalize:function(u){if(D(u),u.length===0)return".";var c=u.charCodeAt(0)===47,h=u.charCodeAt(u.length-1)===47;return u=ze(u,!c),u.length===0&&!c&&(u="."),u.length>0&&h&&(u+="/"),c?"/"+u:u},isAbsolute:function(u){return D(u),u.length>0&&u.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var u,c=0;c<arguments.length;++c){var h=arguments[c];D(h),h.length>0&&(u===void 0?u=h:u+="/"+h)}return u===void 0?".":K.normalize(u)},relative:function(u,c){if(D(u),D(c),u===c||(u=K.resolve(u),c=K.resolve(c),u===c))return"";for(var h=1;h<u.length&&u.charCodeAt(h)===47;++h);for(var f=u.length,p=f-h,i=1;i<c.length&&c.charCodeAt(i)===47;++i);for(var d=c.length,m=d-i,v=p<m?p:m,E=-1,g=0;g<=v;++g){if(g===v){if(m>v){if(c.charCodeAt(i+g)===47)return c.slice(i+g+1);if(g===0)return c.slice(i+g)}else p>v&&(u.charCodeAt(h+g)===47?E=g:g===0&&(E=0));break}var R=u.charCodeAt(h+g),w=c.charCodeAt(i+g);if(R!==w)break;R===47&&(E=g)}var y="";for(g=h+E+1;g<=f;++g)(g===f||u.charCodeAt(g)===47)&&(y.length===0?y+="..":y+="/..");return y.length>0?y+c.slice(i+E):(i+=E,c.charCodeAt(i)===47&&++i,c.slice(i))},_makeLong:function(u){return u},dirname:function(u){if(D(u),u.length===0)return".";for(var c=u.charCodeAt(0),h=c===47,f=-1,p=!0,i=u.length-1;i>=1;--i)if(c=u.charCodeAt(i),c===47){if(!p){f=i;break}}else p=!1;return f===-1?h?"/":".":h&&f===1?"//":u.slice(0,f)},basename:function(u,c){if(c!==void 0&&typeof c!="string")throw new TypeError('"ext" argument must be a string');D(u);var h=0,f=-1,p=!0,i;if(c!==void 0&&c.length>0&&c.length<=u.length){if(c.length===u.length&&c===u)return"";var d=c.length-1,m=-1;for(i=u.length-1;i>=0;--i){var v=u.charCodeAt(i);if(v===47){if(!p){h=i+1;break}}else m===-1&&(p=!1,m=i+1),d>=0&&(v===c.charCodeAt(d)?--d===-1&&(f=i):(d=-1,f=m))}return h===f?f=m:f===-1&&(f=u.length),u.slice(h,f)}else{for(i=u.length-1;i>=0;--i)if(u.charCodeAt(i)===47){if(!p){h=i+1;break}}else f===-1&&(p=!1,f=i+1);return f===-1?"":u.slice(h,f)}},extname:function(u){D(u);for(var c=-1,h=0,f=-1,p=!0,i=0,d=u.length-1;d>=0;--d){var m=u.charCodeAt(d);if(m===47){if(!p){h=d+1;break}continue}f===-1&&(p=!1,f=d+1),m===46?c===-1?c=d:i!==1&&(i=1):c!==-1&&(i=-1)}return c===-1||f===-1||i===0||i===1&&c===f-1&&c===h+1?"":u.slice(c,f)},format:function(u){if(u===null||typeof u!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof u);return Et("/",u)},parse:function(u){D(u);var c={root:"",dir:"",base:"",ext:"",name:""};if(u.length===0)return c;var h=u.charCodeAt(0),f=h===47,p;f?(c.root="/",p=1):p=0;for(var i=-1,d=0,m=-1,v=!0,E=u.length-1,g=0;E>=p;--E){if(h=u.charCodeAt(E),h===47){if(!v){d=E+1;break}continue}m===-1&&(v=!1,m=E+1),h===46?i===-1?i=E:g!==1&&(g=1):i!==-1&&(g=-1)}return i===-1||m===-1||g===0||g===1&&i===m-1&&i===d+1?m!==-1&&(d===0&&f?c.base=c.name=u.slice(1,m):c.base=c.name=u.slice(d,m)):(d===0&&f?(c.name=u.slice(1,i),c.base=u.slice(1,m)):(c.name=u.slice(d,i),c.base=u.slice(d,m)),c.ext=u.slice(i,m)),d>0?c.dir=u.slice(0,d-1):f&&(c.dir="/"),c},sep:"/",delimiter:":",win32:null,posix:null};K.posix=K;je.exports=K});export default It();
|
|
2
|
+
/*! Bundled license information:
|
|
3
|
+
|
|
4
|
+
@jspm/core/nodelibs/browser/buffer.js:
|
|
5
|
+
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
6
|
+
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-codes/browser-compilers",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.4",
|
|
4
4
|
"description": "Compilers that run in the browser, for use in livecodes.io",
|
|
5
5
|
"author": "Hatem Hosny",
|
|
6
6
|
"license": "MIT",
|
|
@@ -68,10 +68,12 @@
|
|
|
68
68
|
"elkjs-svg": "0.2.1",
|
|
69
69
|
"eslint": "8.11.0",
|
|
70
70
|
"flow-remove-types": "2.266.1",
|
|
71
|
+
"highlight.js": "11.11.1",
|
|
71
72
|
"less": "4.3.0",
|
|
72
73
|
"lightningcss-wasm": "1.29.3",
|
|
73
74
|
"monaco-tailwindcss": "0.6.1",
|
|
74
75
|
"patch-package": "6.4.7",
|
|
76
|
+
"path-browserify": "1.0.1",
|
|
75
77
|
"php-wasm": "0.0.8",
|
|
76
78
|
"postcss": "8.5.3",
|
|
77
79
|
"postcss-modules": "6.0.1",
|
package/scripts/vendors.js
CHANGED
|
@@ -644,3 +644,19 @@ esbuild.build({
|
|
|
644
644
|
outfile: 'dist/jinja/jinja.js',
|
|
645
645
|
globalName: 'Jinja',
|
|
646
646
|
});
|
|
647
|
+
|
|
648
|
+
// highlight.js
|
|
649
|
+
esbuild.build({
|
|
650
|
+
...baseOptions,
|
|
651
|
+
entryPoints: ['node_modules/highlight.js/lib/index.js'],
|
|
652
|
+
outfile: 'dist/highlight.js/highlight.js',
|
|
653
|
+
format: 'esm',
|
|
654
|
+
});
|
|
655
|
+
|
|
656
|
+
// path-browserify
|
|
657
|
+
esbuild.build({
|
|
658
|
+
...baseOptions,
|
|
659
|
+
entryPoints: ['node_modules/path-browserify/index.js'],
|
|
660
|
+
outfile: 'dist/path-browserify/path-browserify.js',
|
|
661
|
+
format: 'esm',
|
|
662
|
+
});
|