16 lines
5.0 MiB
JavaScript
16 lines
5.0 MiB
JavaScript
![]() |
"use strict";var Lq=Object.freeze,Mq=Object.defineProperty,XSe=Object.defineProperties;var JSe=Object.getOwnPropertyDescriptors;var RS=Object.getOwnPropertySymbols;var Rq=Object.prototype.hasOwnProperty,Bq=Object.prototype.propertyIsEnumerable;var QL=(e,t,r)=>t in e?Mq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$t=(e,t)=>{for(var r in t||(t={}))Rq.call(t,r)&&QL(e,r,t[r]);if(RS)for(var r of RS(t))Bq.call(t,r)&&QL(e,r,t[r]);return e},zr=(e,t)=>XSe(e,JSe(t));var ZL=(e,t)=>{var r={};for(var i in e)Rq.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&RS)for(var i of RS(e))t.indexOf(i)<0&&Bq.call(e,i)&&(r[i]=e[i]);return r};var ti=(e,t,r)=>(QL(e,typeof t!="symbol"?t+"":t,r),r);var at=(e,t)=>Lq(Mq(e,"raw",{value:Lq(t||e.slice())})),hr=(e,t,r)=>new Promise((i,n)=>{var s=l=>{try{o(r.next(l))}catch(u){n(u)}},a=l=>{try{o(r.throw(l))}catch(u){n(u)}},o=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,a);o((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Qn=require("path"),QSe=require("os"),$l=require("fs"),yo=require("chalk"),Fq=require("@vue/compiler-dom"),ZSe=require("http"),exe=require("portfinder"),txe=require("launch-ide"),rxe=require("child_process");function Es(e,t){const r=Object.create(null),i=e.split(",");for(let n=0;n<i.length;n++)r[i[n]]=!0;return t?n=>!!r[n.toLowerCase()]:n=>!!r[n]}const ixe=Object.freeze({}),jq=()=>{},eM=()=>!1,nxe=/^on[^a-z]/,Voe=e=>nxe.test(e),bf=Object.assign,sxe=Object.prototype.hasOwnProperty,axe=(e,t)=>sxe.call(e,t),Ul=Array.isArray,oxe=e=>a4(e)==="[object Map]",lxe=e=>a4(e)==="[object Set]",uxe=e=>typeof e=="function",Ii=e=>typeof e=="string",ST=e=>typeof e=="symbol",ug=e=>e!==null&&typeof e=="object",Woe=Object.prototype.toString,a4=e=>Woe.call(e),cxe=e=>a4(e)==="[object Object]",$q=Es(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Hoe=Es("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),FA=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},pxe=/-(\w)/g,Dc=FA(e=>e.replace(pxe,(t,r)=>r?r.toUpperCase():"")),fxe=/\B([A-Z])/g,Koe=FA(e=>e.replace(fxe,"-$1").toLowerCase()),Vd=FA(e=>e.charAt(0).toUpperCase()+e.slice(1)),hxe=FA(e=>e?"on".concat(Vd(e)):""),dxe=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function Uq(e){return dxe.test(e)?"__props.".concat(e):"__props[".concat(JSON.stringify(e),"]")}const pp={[1]:"TEXT",[2]:"CLASS",[4]:"STYLE",[8]:"PROPS",[16]:"FULL_PROPS",[32]:"HYDRATE_EVENTS",[64]:"STABLE_FRAGMENT",[128]:"KEYED_FRAGMENT",[256]:"UNKEYED_FRAGMENT",[512]:"NEED_PATCH",[1024]:"DYNAMIC_SLOTS",[2048]:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},mxe={[1]:"STABLE",[2]:"DYNAMIC",[3]:"FORWARDED"},yxe="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",zoe=Es(yxe),qq=2;function gxe(e,t=0,r=e.length){let i=e.split(/(\r?\n)/);const n=i.filter((o,l)=>l%2===1);i=i.filter((o,l)=>l%2===0);let s=0;const a=[];for(let o=0;o<i.length;o++)if(s+=i[o].length+(n[o]&&n[o].length||0),s>=t){for(let l=o-qq;l<=o+qq||r>s;l++){if(l<0||l>=i.length)continue;const u=l+1;a.push("".concat(u).concat(" ".repeat(Math.max(3-String(u).length,0)),"| ").concat(i[l]));const c=i[l].length,f=n[l]&&n[l].length||0;if(l===o){const h=t-(s-(c+f)),m=Math.max(1,r>s?c-h:r-t);a.push(" | "+" ".repeat(h)+"^".repeat(m))}else if(l>o){if(r>s){const h=Math.max(Math.min(r-s,c),1);a.push(" | "+"^".repeat(h))}s+=c+f}}break}return a.join("\n")}function Goe(e){if(Ul(e)){const t={};for(let r=0;r<e.length;r++){const i=e[r],n=Ii(i)?Yoe(i):Goe(i);if(n)for(const s in n)t[s]=n[s]}return t}else{if(Ii(e))return e;if(ug(e))return e}}const bxe=/;(?![^(]*\))/g,vxe=/:([^]+)/,Txe=/\/\*[^]*?\*\//g;function Yoe(e){const t={};return e.replace(Txe,"").split(bxe).forEach(r=>{if(r){const i=r.split(vxe);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function Sxe(e){let t="";if(!e||Ii(e))return t;for(const r in
|
||
|
* The buffer module from node.js, for the browser.
|
||
|
*
|
||
|
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
||
|
* @license MIT
|
||
|
*/var AAe=50;St.TYPED_ARRAY_SUPPORT=Fh.TYPED_ARRAY_SUPPORT!==void 0?Fh.TYPED_ARRAY_SUPPORT:!0;bw();function bw(){return St.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function cf(e,t){if(bw()<t)throw new RangeError("Invalid typed array length");return St.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=St.prototype):(e===null&&(e=new St(t)),e.length=t),e}function St(e,t,r){if(!St.TYPED_ARRAY_SUPPORT&&!(this instanceof St))return new St(e,t,r);if(typeof e=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return S$(this,e)}return Kue(this,e,t,r)}St.poolSize=8192;St._augment=function(e){return e.__proto__=St.prototype,e};function Kue(e,t,r,i){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&t instanceof ArrayBuffer?IAe(e,t,r,i):typeof t=="string"?_Ae(e,t,r):kAe(e,t)}St.from=function(e,t,r){return Kue(null,e,t,r)};St.TYPED_ARRAY_SUPPORT&&(St.prototype.__proto__=Uint8Array.prototype,St.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&St[Symbol.species]);function zue(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function CAe(e,t,r,i){return zue(t),t<=0?cf(e,t):r!==void 0?typeof i=="string"?cf(e,t).fill(r,i):cf(e,t).fill(r):cf(e,t)}St.alloc=function(e,t,r){return CAe(null,e,t,r)};function S$(e,t){if(zue(t),e=cf(e,t<0?0:x$(t)|0),!St.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}St.allocUnsafe=function(e){return S$(null,e)};St.allocUnsafeSlow=function(e){return S$(null,e)};function _Ae(e,t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!St.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var i=Gue(t,r)|0;e=cf(e,i);var n=e.write(t,r);return n!==i&&(e=e.slice(0,n)),e}function rF(e,t){var r=t.length<0?0:x$(t.length)|0;e=cf(e,r);for(var i=0;i<r;i+=1)e[i]=t[i]&255;return e}function IAe(e,t,r,i){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(i||0))throw new RangeError("'length' is out of bounds");return r===void 0&&i===void 0?t=new Uint8Array(t):i===void 0?t=new Uint8Array(t,r):t=new Uint8Array(t,r,i),St.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=St.prototype):e=rF(e,t),e}function kAe(e,t){if(dp(t)){var r=x$(t.length)|0;return e=cf(e,r),e.length===0||t.copy(e,0,0,r),e}if(t){if(typeof ArrayBuffer!="undefined"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||YAe(t.length)?cf(e,0):rF(e,t);if(t.type==="Buffer"&&Hue(t.data))return rF(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function x$(e){if(e>=bw())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+bw().toString(16)+" bytes");return e|0}St.isBuffer=XAe;function dp(e){return!!(e!=null&&e._isBuffer)}St.compare=function(t,r){if(!dp(t)||!dp(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var i=t.length,n=r.length,s=0,a=Math.min(i,n);s<a;++s)if(t[s]!==r[s]){i=t[s],n=r[s];break}return i<n?-1:n<i?1:0};St.isEncoding=function(t){switch(String(t).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}};St.concat=function(t,r){if(!Hue(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return St.alloc(0);var i;if(r===void 0)for(r=0,i=0;i<t.length;++i)r+=t[i].length;var n=St.allocUnsafe(r),s=0;for(i=0;i<t.length;++i){var a=t[i];if(!dp(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,s),s+=a.length}return n};function Gue(e,t){if(dp(e))return e.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var r=e.length;if(r===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"bin
|
||
|
* The buffer module from node.js, for the browser.
|
||
|
*
|
||
|
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
||
|
* @license MIT
|
||
|
*/function R(se,re){if(se===re)return 0;for(var Te=se.length,ze=re.length,Ze=0,pt=Math.min(Te,ze);Ze<pt;++Ze)if(se[Ze]!==re[Ze]){Te=se[Ze],ze=re[Ze];break}return Te<ze?-1:ze<Te?1:0}var $=!0,V=!1,K=0,z=1,W=2,Y=3;function G(se,re){return s?se.source===re.source&&se.flags===re.flags:RegExp.prototype.toString.call(se)===RegExp.prototype.toString.call(re)}function le(se,re){if(se.byteLength!==re.byteLength)return!1;for(var Te=0;Te<se.byteLength;Te++)if(se[Te]!==re[Te])return!1;return!0}function ne(se,re){return se.byteLength!==re.byteLength?!1:R(new Uint8Array(se.buffer,se.byteOffset,se.byteLength),new Uint8Array(re.buffer,re.byteOffset,re.byteLength))===0}function ae(se,re){return se.byteLength===re.byteLength&&R(new Uint8Array(se),new Uint8Array(re))===0}function be(se,re){return A(se)?A(re)&&l(Number.prototype.valueOf.call(se),Number.prototype.valueOf.call(re)):I(se)?I(re)&&String.prototype.valueOf.call(se)===String.prototype.valueOf.call(re):L(se)?L(re)&&Boolean.prototype.valueOf.call(se)===Boolean.prototype.valueOf.call(re):O(se)?O(re)&&BigInt.prototype.valueOf.call(se)===BigInt.prototype.valueOf.call(re):F(re)&&Symbol.prototype.valueOf.call(se)===Symbol.prototype.valueOf.call(re)}function ye(se,re,Te,ze){if(se===re)return se!==0?!0:Te?l(se,re):!0;if(Te){if(n(se)!=="object")return typeof se=="number"&&c(se)&&c(re);if(n(re)!=="object"||se===null||re===null||Object.getPrototypeOf(se)!==Object.getPrototypeOf(re))return!1}else{if(se===null||n(se)!=="object")return re===null||n(re)!=="object"?se==re:!1;if(re===null||n(re)!=="object")return!1}var Ze=g(se),pt=g(re);if(Ze!==pt)return!1;if(Array.isArray(se)){if(se.length!==re.length)return!1;var ut=M(se),bt=M(re);return ut.length!==bt.length?!1:Z(se,re,Te,ze,z,ut)}if(Ze==="[object Object]"&&(!P(se)&&P(re)||!C(se)&&C(re)))return!1;if(S(se)){if(!S(re)||Date.prototype.getTime.call(se)!==Date.prototype.getTime.call(re))return!1}else if(x(se)){if(!x(re)||!G(se,re))return!1}else if(D(se)||se instanceof Error){if(se.message!==re.message||se.name!==re.name)return!1}else if(T(se)){if(!Te&&(q(se)||j(se))){if(!le(se,re))return!1}else if(!ne(se,re))return!1;var vt=M(se),ge=M(re);return vt.length!==ge.length?!1:Z(se,re,Te,ze,K,vt)}else{if(C(se))return!C(re)||se.size!==re.size?!1:Z(se,re,Te,ze,W);if(P(se))return!P(re)||se.size!==re.size?!1:Z(se,re,Te,ze,Y);if(v(se)){if(!ae(se,re))return!1}else if(w(se)&&!be(se,re))return!1}return Z(se,re,Te,ze,K)}function fe(se,re){return re.filter(function(Te){return m(se,Te)})}function Z(se,re,Te,ze,Ze,pt){if(arguments.length===5){pt=Object.keys(se);var ut=Object.keys(re);if(pt.length!==ut.length)return!1}for(var bt=0;bt<pt.length;bt++)if(!h(re,pt[bt]))return!1;if(Te&&arguments.length===5){var vt=u(se);if(vt.length!==0){var ge=0;for(bt=0;bt<vt.length;bt++){var pe=vt[bt];if(m(se,pe)){if(!m(re,pe))return!1;pt.push(pe),ge++}else if(m(re,pe))return!1}var $e=u(re);if(vt.length!==$e.length&&fe(re,$e).length!==ge)return!1}else{var ie=u(re);if(ie.length!==0&&fe(re,ie).length!==0)return!1}}if(pt.length===0&&(Ze===K||Ze===z&&se.length===0||se.size===0))return!0;if(ze===void 0)ze={val1:new Map,val2:new Map,position:0};else{var Q=ze.val1.get(se);if(Q!==void 0){var X=ze.val2.get(re);if(X!==void 0)return Q===X}ze.position++}ze.val1.set(se,ze.position),ze.val2.set(re,ze.position);var ce=Se(se,re,Te,pt,ze,Ze);return ze.val1.delete(se),ze.val2.delete(re),ce}function ue(se,re,Te,ze){for(var Ze=a(se),pt=0;pt<Ze.length;pt++){var ut=Ze[pt];if(ye(re,ut,Te,ze))return se.delete(ut),!0}return!1}function me(se){switch(n(se)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":se=+se;case"number":if(c(se))return!1}return!0}function xe(se,re,Te){var ze=me(Te);return ze!=null?ze:re.has(ze)&&!se.has(ze)}function Pe(se,re,Te,ze,Ze){var pt=me(Te);if(pt!=null)return pt;var ut=re.get(pt);return ut===void 0&&!re.has(pt)||!ye(ze,ut,!1,Ze)?!1:!se.has(pt)&&ye(ze,ut,!1,Ze)}function ve(se,re,Te,ze){for(var Ze=null,pt=a(se),ut=0;ut<pt.length;ut++){var bt=pt[ut];if(n(bt)==="object"&&bt!==null)Ze===null&&(Ze=new Set),Ze.add(bt);else if(!re.has(bt)){if(Te||!xe(se,re,bt
|
||
|
object-assign
|
||
|
(c) Sindre Sorhus
|
||
|
@license MIT
|
||
|
*/var uie=Object.getOwnPropertySymbols,Qfr=Object.prototype.hasOwnProperty,Zfr=Object.prototype.propertyIsEnumerable;function ehr(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function thr(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var i=Object.getOwnPropertyNames(t).map(function(s){return t[s]});if(i.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(s){n[s]=s}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(s){return!1}}var rhr=thr()?Object.assign:function(e,t){for(var r,i=ehr(e),n,s=1;s<arguments.length;s++){r=Object(arguments[s]);for(var a in r)Qfr.call(r,a)&&(i[a]=r[a]);if(uie){n=uie(r);for(var o=0;o<n.length;o++)Zfr.call(r,n[o])&&(i[n[o]]=r[n[o]])}}return i},cie=Jfr,ihr=rhr,nhr=ahr,shr={throw:!1,strict:!1,lineComment:!1};function ahr(e,t){t=ihr({},shr,t);try{var r=new cie.Parser(t,e,0);t.strict&&(r.strict=!0),t.lineComment||(r.skipLineComment=function(i){this.raise(this.pos,"Line comments not allowed in an expression")}),r.nextToken(),r.parseExpression(),r.type!==cie.tokTypes.eof&&r.unexpected()}catch(i){if(!t.throw)return!1;throw i}return!0}var kj={exports:{}},pie=xhe,ohr=g_(),lhr=ahe,uhr=Eg,Oj;if(ohr){var chr=pie("RegExp.prototype.exec"),fie={},BB=function(){throw fie},hie={toString:BB,valueOf:BB};typeof Symbol.toPrimitive=="symbol"&&(hie[Symbol.toPrimitive]=BB),Oj=function(t){if(!t||typeof t!="object")return!1;var r=uhr(t,"lastIndex"),i=r&&lhr(r,"value");if(!i)return!1;try{chr(t,hie)}catch(n){return n===fie}}}else{var phr=pie("Object.prototype.toString"),fhr="[object RegExp]";Oj=function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:phr(t)===fhr}}var hhr=Oj;(function(e,t){var r=hhr;t=e.exports=a;var i=t.TOKEN_TYPES={LINE_COMMENT:"//",BLOCK_COMMENT:"/**/",SINGLE_QUOTE:"'",DOUBLE_QUOTE:'"',TEMPLATE_QUOTE:"`",REGEXP:"//g"},n=t.BRACKETS={"(":")","{":"}","[":"]"},s={")":"(","}":"{","]":"["};t.parse=a;function a(g,y,v){v=v||{},y=y||t.defaultState();for(var T=v.start||0,S=v.end||g.length,P=T;P<S;){try{l(g[P],y)}catch(x){throw x.index=P,x}P++}return y}t.parseUntil=o;function o(g,y,v){v=v||{};for(var T=v.start||0,S=T,P=t.defaultState();S<g.length;){if((v.ignoreNesting||!P.isNesting(v))&&c(g,y,S)){var x=S;return{start:T,end:x,src:g.substring(T,x)}}try{l(g[S],P)}catch(D){throw D.index=S,D}S++}var C=new Error("The end of the string was reached with no closing bracket found.");throw C.code="CHARACTER_PARSER:END_OF_STRING_REACHED",C.index=S,C}t.parseChar=l;function l(g,y){if(g.length!==1){var v=new Error("Character must be a string of length 1");throw v.name="InvalidArgumentError",v.code="CHARACTER_PARSER:CHAR_LENGTH_NOT_ONE",v}y=y||t.defaultState(),y.src+=g;var T=y.isComment(),S=y.history?y.history[0]:"";switch(y.regexpStart&&((g==="/"||g=="*")&&y.stack.pop(),y.regexpStart=!1),y.current()){case i.LINE_COMMENT:g==="\n"&&y.stack.pop();break;case i.BLOCK_COMMENT:y.lastChar==="*"&&g==="/"&&y.stack.pop();break;case i.SINGLE_QUOTE:g==="'"&&!y.escaped?y.stack.pop():g==="\\"&&!y.escaped?y.escaped=!0:y.escaped=!1;break;case i.DOUBLE_QUOTE:g==='"'&&!y.escaped?y.stack.pop():g==="\\"&&!y.escaped?y.escaped=!0:y.escaped=!1;break;case i.TEMPLATE_QUOTE:g==="`"&&!y.escaped?(y.stack.pop(),y.hasDollar=!1):g==="\\"&&!y.escaped?(y.escaped=!0,y.hasDollar=!1):g==="$"&&!y.escaped?y.hasDollar=!0:g==="{"&&y.hasDollar?y.stack.push(n[g]):(y.escaped=!1,y.hasDollar=!1);break;case i.REGEXP:g==="/"&&!y.escaped?y.stack.pop():g==="\\"&&!y.escaped?y.escaped=!0:y.escaped=!1;break;default:if(g in n)y.stack.push(n[g]);else if(g in s){if(y.current()!==g){var v=new SyntaxError("Mismatched Bracket: "+g);throw v.code="CHARACTER_PARSER:MISMATCHED_BRACKET",v}y.stack.pop()}else S==="/"&&g==="/"?(y.history=y.history.substr(1),y.stack.push(i.LINE_COMMENT)):S==="/"&&g==="*"?(y.history=y.history.substr(1),y.stack.push(i.BLOCK_COMMENT)):g==="/"&&m(y.history)?(y.stack.push(i.REGEXP),y.regexpStart=!0)
|