11 lines
318 KiB
JavaScript
11 lines
318 KiB
JavaScript
|
var hs=Object.defineProperty;var qg=Object.getOwnPropertyDescriptor;var Dg=Object.getOwnPropertyNames;var jg=Object.prototype.hasOwnProperty;var be=(t,e)=>()=>(t&&(e=t(t=0)),e);var M=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Qt=(t,e)=>{for(var r in e)hs(t,r,{get:e[r],enumerable:!0})},Fg=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Dg(e))!jg.call(t,n)&&n!==r&&hs(t,n,{get:()=>e[n],enumerable:!(i=qg(e,n))||i.enumerable});return t};var Z=t=>Fg(hs({},"__esModule",{value:!0}),t);var _=be(()=>{});var B={};Qt(B,{_debugEnd:()=>pu,_debugProcess:()=>du,_events:()=>Pu,_eventsCount:()=>Ou,_exiting:()=>Gl,_fatalExceptions:()=>uu,_getActiveHandles:()=>Xl,_getActiveRequests:()=>Jl,_kill:()=>eu,_linkedBinding:()=>zl,_maxListeners:()=>Bu,_preload_modules:()=>Tu,_rawDebug:()=>Hl,_startProfilerIdleNotifier:()=>gu,_stopProfilerIdleNotifier:()=>yu,_tickCallback:()=>hu,abort:()=>mu,addListener:()=>xu,allowedNodeEnvironmentFlags:()=>ou,arch:()=>Ol,argv:()=>Ml,argv0:()=>Iu,assert:()=>au,binding:()=>Dl,chdir:()=>Wl,config:()=>Ql,cpuUsage:()=>qi,cwd:()=>Fl,debugPort:()=>Au,default:()=>Fu,dlopen:()=>Yl,domain:()=>Kl,emit:()=>Nu,emitWarning:()=>ql,env:()=>kl,execArgv:()=>Ll,execPath:()=>Su,exit:()=>nu,features:()=>lu,hasUncaughtExceptionCaptureCallback:()=>cu,hrtime:()=>Ni,kill:()=>iu,listeners:()=>ju,memoryUsage:()=>ru,moduleLoadList:()=>Vl,nextTick:()=>Cl,off:()=>Mu,on:()=>bt,once:()=>ku,openStdin:()=>su,pid:()=>vu,platform:()=>xl,ppid:()=>Eu,prependListener:()=>qu,prependOnceListener:()=>Du,reallyExit:()=>Zl,release:()=>$l,removeAllListeners:()=>Uu,removeListener:()=>Lu,resourceUsage:()=>tu,setSourceMapsEnabled:()=>Ru,setUncaughtExceptionCaptureCallback:()=>fu,stderr:()=>wu,stdin:()=>_u,stdout:()=>bu,title:()=>Pl,umask:()=>jl,uptime:()=>Cu,version:()=>Ul,versions:()=>Nl});function gs(t){throw new Error("Node.js process "+t+" is not supported by JSPM core outside of Node.js")}function Wg(){!xr||!Yt||(xr=!1,Yt.length?yt=Yt.concat(yt):Ui=-1,yt.length&&Rl())}function Rl(){if(!xr){var t=setTimeout(Wg,0);xr=!0;for(var e=yt.length;e;){for(Yt=yt,yt=[];++Ui<e;)Yt&&Yt[Ui].run();Ui=-1,e=yt.length}Yt=null,xr=!1,clearTimeout(t)}}function Cl(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];yt.push(new Bl(t,e)),yt.length===1&&!xr&&setTimeout(Rl,0)}function Bl(t,e){this.fun=t,this.array=e}function me(){}function zl(t){gs("_linkedBinding")}function Yl(t){gs("dlopen")}function Jl(){return[]}function Xl(){return[]}function au(t,e){if(!t)throw new Error(e||"assertion error")}function cu(){return!1}function Cu(){return Mt.now()/1e3}function Ni(t){var e=Math.floor((Date.now()-Mt.now())*.001),r=Mt.now()*.001,i=Math.floor(r)+e,n=Math.floor(r%1*1e9);return t&&(i=i-t[0],n=n-t[1],n<0&&(i--,n+=ps)),[i,n]}function bt(){return Fu}function ju(t){return[]}var yt,xr,Yt,Ui,Pl,Ol,xl,kl,Ml,Ll,Ul,Nl,ql,Dl,jl,Fl,Wl,$l,Hl,Vl,Kl,Gl,Ql,Zl,eu,qi,tu,ru,iu,nu,su,ou,lu,uu,fu,hu,du,pu,gu,yu,bu,wu,_u,mu,vu,Eu,Su,Au,Iu,Tu,Ru,Mt,ds,ps,Bu,Pu,Ou,xu,ku,Mu,Lu,Uu,Nu,qu,Du,Fu,Wu=be(()=>{_();v();m();yt=[],xr=!1,Ui=-1;Bl.prototype.run=function(){this.fun.apply(null,this.array)};Pl="browser",Ol="x64",xl="browser",kl={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},Ml=["/usr/bin/node"],Ll=[],Ul="v16.8.0",Nl={},ql=function(t,e){console.warn((e?e+": ":"")+t)},Dl=function(t){gs("binding")},jl=function(t){return 0},Fl=function(){return"/"},Wl=function(t){},$l={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};Hl=me,Vl=[];Kl={},Gl=!1,Ql={};Zl=me,eu=me,qi=function(){return{}},tu=qi,ru=qi,iu=me,nu=me,su=me,ou={};lu={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},uu=me,fu=me;hu=me,du=me,pu=me,gu=me,yu=me,bu=void 0,wu=void 0,_u=void 0,mu=me,vu=2,Eu=1,Su="/bin/usr/node",Au=9229,Iu="node",Tu=[],Ru=me,Mt={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};Mt.now===void 0&&(ds=Date.now(),Mt.timing&&Mt.timing.navigationStart&&(ds=Mt.timing.navigationStart
|
||
|
`;super(r),this.name="AggregateError",this.errors=e}};_s.exports={AggregateError:ws,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise((i,n)=>{t=i,e=n}),resolve:t,reject:e}},promisify(t){return new Promise((e,r)=>{t((i,...n)=>i?r(i):e(...n))})},debuglog(){return function(){}},format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,i]){let n=e.shift();return i==="f"?n.toFixed(6):i==="j"?JSON.stringify(n):i==="s"&&typeof n=="object"?`${n.constructor!==Object?n.constructor.name:""} {}`.trim():n.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}},types:{isAsyncFunction(t){return t instanceof Qg},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:Yg};_s.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var Fi=M((jA,ji)=>{"use strict";_();v();m();var{AbortController:Qu,AbortSignal:Jg}=typeof self<"u"?self:typeof window<"u"?window:void 0;ji.exports=Qu;ji.exports.AbortSignal=Jg;ji.exports.default=Qu});var Se=M((YA,Xu)=>{"use strict";_();v();m();var{format:Xg,inspect:Wi,AggregateError:Zg}=Je(),ey=globalThis.AggregateError||Zg,ty=Symbol("kIsNodeError"),ry=["string","function","number","object","Function","Object","boolean","bigint","symbol"],iy=/^([A-Z][a-z0-9]*)+$/,ny="__node_internal_",$i={};function Xt(t,e){if(!t)throw new $i.ERR_INTERNAL_ASSERTION(e)}function Yu(t){let e="",r=t.length,i=t[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function sy(t,e,r){if(typeof e=="function")return Xt(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let i=(e.match(/%[dfijoOs]/g)||[]).length;return Xt(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:Xg(e,...r)}function _e(t,e,r){r||(r=Error);class i extends r{constructor(...o){super(sy(t,e,o))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=t,i.prototype[ty]=!0,$i[t]=i}function Ju(t){let e=ny+t.name;return Object.defineProperty(t,"name",{value:e}),t}function oy(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new ey([e,t],e.message);return r.code=e.code,r}return t||e}var ms=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new $i.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};_e("ERR_ASSERTION","%s",Error);_e("ERR_INVALID_ARG_TYPE",(t,e,r)=>{Xt(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let i="The ";t.endsWith(" argument")?i+=`${t} `:i+=`"${t}" ${t.includes(".")?"property":"argument"} `,i+="must be ";let n=[],o=[],s=[];for(let u of e)Xt(typeof u=="string","All expected entries have to be of type string"),ry.includes(u)?n.push(u.toLowerCase()):iy.test(u)?o.push(u):(Xt(u!=="object",'The value "object" should be written as "Object"'),s.push(u));if(o.length>0){let u=n.indexOf("object");u!==-1&&(n.splice(n,u,1),o.push("Object"))}if(n.length>0){switch(n.length){case 1:i+=`of type ${n[0]}`;break;case 2:i+=`one of type ${n[0]} or ${n[1]}`;break;default:{let u=n.pop();i+=`one of type ${n.join(", ")}, or ${u}`}}(o.length>0||s.length>0)&&(i+=" or ")}if(o.length>0){switch(o.length){case 1:i+=`an instance of ${o[0]}`;break;case 2:i+=`an instance of ${o[0]} or ${o[1]}`;break;default:{let u=o.pop();i+=`an instance of ${o.join(", ")}, or ${u}`}}s.length>0&&(i+=" o
|
||
|
`)&&(e=e.replace(bE,"%0A")),e.includes("\r")&&(e=e.replace(wE,"%0D")),e.includes(" ")&&(e=e.replace(_E,"%09")),i.pathname=e,i}function ng(t){if(typeof t=="string")t=new URL(t);else if(!(t instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(t.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return tl?FE(t):WE(t)}function FE(t){let e=t.hostname,r=t.pathname;for(let i=0;i<r.length;i++)if(r[i]==="%"){let n=r.codePointAt(i+2)||32;if(r[i+1]==="2"&&n===102||r[i+1]==="5"&&n===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(r=r.replace(LE,"\\"),r=decodeURIComponent(r),e!=="")return`\\\\${e}${r}`;{let i=r.codePointAt(1)|32,n=r[2];if(i<kE||i>ME||n!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return r.slice(1)}}function WE(t){if(t.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let e=t.pathname;for(let r=0;r<e.length;r++)if(e[r]==="%"){let i=e.codePointAt(r+2)||32;if(e[r+1]==="2"&&i===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(e)}function sg(t){let e=Qa.resolve(t),r=t.charCodeAt(t.length-1);(r===xE||tl&&r===OE)&&e[e.length-1]!==Qa.sep&&(e+="/");let i=new URL("file://");return e.includes("%")&&(e=e.replace(UE,"%25")),!tl&&e.includes("\\")&&(e=e.replace(NE,"%5C")),e.includes(`
|
||
|
`)&&(e=e.replace(qE,"%0A")),e.includes("\r")&&(e=e.replace(DE,"%0D")),e.includes(" ")&&(e=e.replace(jE,"%09")),i.pathname=e,i}var X,tE,pt,rE,iE,nE,sE,Za,Zp,eg,tg,oE,aE,Ya,ni,Ja,Xa,rg,ig,uE,fE,cE,hE,dE,el,pE,gE,yE,bE,wE,_E,AE,IE,TE,RE,CE,BE,PE,OE,xE,kE,ME,tl,LE,UE,NE,qE,DE,jE,ag=be(()=>{_();v();m();$p();Hp();Qp();Xp();Ka();X={},tE=zt,pt={isString:function(t){return typeof t=="string"},isObject:function(t){return typeof t=="object"&&t!==null},isNull:function(t){return t===null},isNullOrUndefined:function(t){return t==null}};X.parse=Oi,X.resolve=function(t,e){return Oi(t,!1,!0).resolve(e)},X.resolveObject=function(t,e){return t?Oi(t,!1,!0).resolveObject(e):e},X.format=function(t){return pt.isString(t)&&(t=Oi(t)),t instanceof Fe?t.format():Fe.prototype.format.call(t)},X.Url=Fe;rE=/^([a-z0-9.+-]+:)/i,iE=/:[0-9]*$/,nE=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,sE=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
|
||
|
`," "]),Za=["'"].concat(sE),Zp=["%","/","?",";","#"].concat(Za),eg=["/","?","#"],tg=/^[+a-z0-9A-Z_-]{0,63}$/,oE=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,aE={javascript:!0,"javascript:":!0},Ya={javascript:!0,"javascript:":!0},ni={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Ja=dt;Fe.prototype.parse=function(t,e,r){if(!pt.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var i=t.indexOf("?"),n=i!==-1&&i<t.indexOf("#")?"?":"#",o=t.split(n);o[0]=o[0].replace(/\\/g,"/");var s=t=o.join(n);if(s=s.trim(),!r&&t.split("#").length===1){var a=nE.exec(s);if(a)return this.path=s,this.href=s,this.pathname=a[1],a[2]?(this.search=a[2],this.query=e?Ja.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var u=rE.exec(s);if(u){var c=(u=u[0]).toLowerCase();this.protocol=c,s=s.substr(u.length)}if(r||u||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var h=s.substr(0,2)==="//";!h||u&&Ya[u]||(s=s.substr(2),this.slashes=!0)}if(!Ya[u]&&(h||u&&!ni[u])){for(var d,g,y=-1,w=0;w<eg.length;w++)(E=s.indexOf(eg[w]))!==-1&&(y===-1||E<y)&&(y=E);for((g=y===-1?s.lastIndexOf("@"):s.lastIndexOf("@",y))!==-1&&(d=s.slice(0,g),s=s.slice(g+1),this.auth=decodeURIComponent(d)),y=-1,w=0;w<Zp.length;w++){var E;(E=s.indexOf(Zp[w]))!==-1&&(y===-1||E<y)&&(y=E)}y===-1&&(y=s.length),this.host=s.slice(0,y),s=s.slice(y),this.parseHost(),this.hostname=this.hostname||"";var S=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!S)for(var I=this.hostname.split(/\./),C=(w=0,I.length);w<C;w++){var R=I[w];if(R&&!R.match(tg)){for(var U="",N=0,W=R.length;N<W;N++)R.charCodeAt(N)>127?U+="x":U+=R[N];if(!U.match(tg)){var K=I.slice(0,w),z=I.slice(w+1),G=R.match(oE);G&&(K.push(G[1]),z.unshift(G[2])),z.length&&(s="/"+z.join(".")+s),this.hostname=K.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),S||(this.hostname=tE.toASCII(this.hostname));var de=this.port?":"+this.port:"",Gt=this.hostname||"";this.host=Gt+de,this.href+=this.host,S&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),s[0]!=="/"&&(s="/"+s))}if(!aE[c])for(w=0,C=Za.length;w<C;w++){var pe=Za[w];if(s.indexOf(pe)!==-1){var Rr=encodeURIComponent(pe);Rr===pe&&(Rr=escape(pe)),s=s.split(pe).join(Rr)}}var Cr=s.indexOf("#");Cr!==-1&&(this.hash=s.substr(Cr),s=s.slice(0,Cr));var Br=s.indexOf("?");if(Br!==-1?(this.search=s.substr(Br),this.query=s.substr(Br+1),e&&(this.query=Ja.parse(this.query)),s=s.slice(0,Br)):e&&(this.search="",this.query={}),s&&(this.pathname=s),ni[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){de=this.pathname||"";var ls=this.search||"";this.path=de+ls}return this.href=this.format(),this},Fe.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",i=this.hash||"",n=!1,o="";this.host?n=t+this.host:this.hostname&&(n=t+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(n+=":"+this.port)),this.query&&pt.isObject(this.query)&&Object.keys(this.query).length&&(o=Ja.stringify(this.query));var s=this.search||o&&"?"+o||"";return e&&e.substr(-1)!==":"&&(e+=":"),this.slashes||(!e||ni[e])&&n!==!1?(n="//"+(n||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):n||(n=""),i&&i.charAt(0)!=="#"&&(i="#"+i),s&&s.charAt(0)!=="?"&&(s="?"+s),e+n+(r=r.replace(/[?#]/g,function(a){return encodeURIComponent(a)}))+(s=s.replace("#","%23"))+i},Fe.prototype.resolve=function(t){return this.resolveObject(Oi(t,!1,!0)).format()},Fe.prototype.resolveObject=function(t){if(pt.isString(t)){var e=new Fe;e.parse(t,!1,!0),t=e}for(var r=new Fe,i=Object.keys(this),n=0;n<i.length;n++){var o=i[n];r[o]=this[o]}if(r.hash=t.hash,t.href==="")return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var s=Object.keys(t),a=0;a<s.length;a++){var u=s[a];u!=="protocol"&&(r[u]=t[u])}return ni[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!ni[t.protocol]){for(var c=Obj
|
||
|
/*! Bundled license information:
|
||
|
|
||
|
@jspm/core/nodelibs/browser/buffer.js:
|
||
|
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
||
|
*/
|