mirror of
https://github.com/JasonYANG170/IOTConnect-Web.git
synced 2024-11-23 20:26:28 +00:00
10 lines
322 KiB
JavaScript
10 lines
322 KiB
JavaScript
|
var wa=Object.defineProperty;var va=(e,n,t)=>n in e?wa(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var je=(e,n,t)=>(va(e,typeof n!="symbol"?n+"":n,t),t),qr=(e,n,t)=>{if(!n.has(e))throw TypeError("Cannot "+t)};var B=(e,n,t)=>(qr(e,n,"read from private field"),t?t.call(e):n.get(e)),Ce=(e,n,t)=>{if(n.has(e))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(e):n.set(e,t)},Te=(e,n,t,l)=>(qr(e,n,"write to private field"),l?l.call(e,t):n.set(e,t),t);var wr=(e,n,t,l)=>({set _(h){Te(e,n,h,t)},get _(){return B(e,n,l)}}),Ie=(e,n,t)=>(qr(e,n,"access private method"),t);var Tn=Object.defineProperty,_a=Object.getOwnPropertyDescriptor,Ea=Object.getOwnPropertyNames,Sa=Object.prototype.hasOwnProperty,Ge=(e,n)=>()=>(e&&(n=e(e=0)),n),me=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),Zt=(e,n)=>{for(var t in n)Tn(e,t,{get:n[t],enumerable:!0})},Aa=(e,n,t,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(let h of Ea(n))!Sa.call(e,h)&&h!==t&&Tn(e,h,{get:()=>n[h],enumerable:!(l=_a(n,h))||l.enumerable});return e},Me=e=>Aa(Tn({},"__esModule",{value:!0}),e),at,oe=Ge(()=>{at={deviceMemory:8,hardwareConcurrency:8,language:"en-US"}}),ze={};Zt(ze,{_debugEnd:()=>Li,_debugProcess:()=>Ui,_events:()=>Ji,_eventsCount:()=>Xi,_exiting:()=>_i,_fatalExceptions:()=>Bi,_getActiveHandles:()=>Uo,_getActiveRequests:()=>Mo,_kill:()=>Ai,_linkedBinding:()=>Bo,_maxListeners:()=>Gi,_preload_modules:()=>Yi,_rawDebug:()=>yi,_startProfilerIdleNotifier:()=>Ni,_stopProfilerIdleNotifier:()=>ji,_tickCallback:()=>Mi,abort:()=>$i,addListener:()=>Zi,allowedNodeEnvironmentFlags:()=>Ri,arch:()=>oi,argv:()=>li,argv0:()=>Ki,assert:()=>Lo,binding:()=>di,chdir:()=>bi,config:()=>Ei,cpuUsage:()=>dr,cwd:()=>gi,debugPort:()=>zi,default:()=>On,dlopen:()=>xo,domain:()=>vi,emit:()=>on,emitWarning:()=>fi,env:()=>ai,execArgv:()=>ui,execPath:()=>Hi,exit:()=>Oi,features:()=>Pi,hasUncaughtExceptionCaptureCallback:()=>No,hrtime:()=>Ir,kill:()=>ki,listeners:()=>Do,memoryUsage:()=>Ti,moduleLoadList:()=>wi,nextTick:()=>Ro,off:()=>tn,on:()=>vt,once:()=>en,openStdin:()=>Ci,pid:()=>qi,platform:()=>si,ppid:()=>Vi,prependListener:()=>sn,prependOnceListener:()=>an,reallyExit:()=>Si,release:()=>mi,removeAllListeners:()=>nn,removeListener:()=>rn,resourceUsage:()=>Ii,setSourceMapsEnabled:()=>Qi,setUncaughtExceptionCaptureCallback:()=>xi,stderr:()=>Fi,stdin:()=>Wi,stdout:()=>Di,title:()=>ni,umask:()=>pi,uptime:()=>jo,version:()=>hi,versions:()=>ci});function kn(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function Ia(){!Gt||!Yt||(Gt=!1,Yt.length?mt=Yt.concat(mt):br=-1,mt.length&&Co())}function Co(){if(!Gt){var e=setTimeout(Ia,0);Gt=!0;for(var n=mt.length;n;){for(Yt=mt,mt=[];++br<n;)Yt&&Yt[br].run();br=-1,n=mt.length}Yt=null,Gt=!1,clearTimeout(e)}}function Ro(e){var n=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)n[t-1]=arguments[t];mt.push(new Po(e,n)),mt.length===1&&!Gt&&setTimeout(Co,0)}function Po(e,n){this.fun=e,this.array=n}function Xe(){}function Bo(e){kn("_linkedBinding")}function xo(e){kn("dlopen")}function Mo(){return[]}function Uo(){return[]}function Lo(e,n){if(!e)throw new Error(n||"assertion error")}function No(){return!1}function jo(){return At.now()/1e3}function Ir(e){var n=Math.floor((Date.now()-At.now())*.001),t=At.now()*.001,l=Math.floor(t)+n,h=Math.floor(t%1*1e9);return e&&(l=l-e[0],h=h-e[1],h<0&&(l--,h+=Tr)),[l,h]}function vt(){return On}function Do(e){return[]}var mt,Gt,Yt,br,ni,oi,si,ai,li,ui,hi,ci,fi,di,pi,gi,bi,mi,yi,wi,vi,_i,Ei,Si,Ai,dr,Ii,Ti,ki,Oi,Ci,Ri,Pi,Bi,xi,Mi,Ui,Li,Ni,ji,Di,Fi,Wi,$i,qi,Vi,Hi,zi,Ki,Yi,Qi,At,Vr,Tr,Gi,Ji,Xi,Zi,en,tn,rn,nn,on,sn,an,On,Ta=Ge(()=>{ae(),se(),oe(),mt=[],Gt=!1,br=-1,Po.prototype.run=function(){this.fun.apply(null,this.array)},ni="browser",oi="x64",si="browser",ai={PATH:"/usr/bin",LANG:at.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},li=["/usr/bin/node"],ui=[],hi="v16.8.0",ci={},fi=function(e,n){console.warn((n?n+": ":"")+e)},di=function(e){kn("binding")},pi=function(e){return 0},gi=fu
|
||
|
`;super(i),this.name="AggregateError",this.errors=o}};n.exports={AggregateError:r,kEmptyObject:Object.freeze({}),once(o){let i=!1;return function(...a){i||(i=!0,o.apply(this,a))}},createDeferredPromise:function(){let o,i;return{promise:new Promise((a,c)=>{o=a,i=c}),resolve:o,reject:i}},promisify(o){return new Promise((i,a)=>{o((c,...p)=>c?a(c):i(...p))})},debuglog(){return function(){}},format(o,...i){return o.replace(/%([sdifj])/g,function(...[a,c]){let p=i.shift();return c==="f"?p.toFixed(6):c==="j"?JSON.stringify(p):c==="s"&&typeof p=="object"?`${p.constructor!==Object?p.constructor.name:""} {}`.trim():p.toString()})},inspect(o){switch(typeof o){case"string":if(o.includes("'"))if(o.includes('"')){if(!o.includes("`")&&!o.includes("${"))return`\`${o}\``}else return`"${o}"`;return`'${o}'`;case"number":return isNaN(o)?"NaN":Object.is(o,-0)?String(o):o;case"bigint":return`${String(o)}n`;case"boolean":case"undefined":return String(o);case"object":return"{}"}},types:{isAsyncFunction(o){return o instanceof l},isArrayBufferView(o){return ArrayBuffer.isView(o)}},isBlob:s},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),Cn=me((e,n)=>{ae(),se(),oe();var{AbortController:t,AbortSignal:l}=typeof self<"u"?self:typeof window<"u"?window:void 0;n.exports=t,n.exports.AbortSignal=l,n.exports.default=t}),ot=me((e,n)=>{ae(),se(),oe();var{format:t,inspect:l,AggregateError:h}=kt(),s=globalThis.AggregateError||h,r=Symbol("kIsNodeError"),o=["string","function","number","object","Function","Object","boolean","bigint","symbol"],i=/^([A-Z][a-z0-9]*)+$/,a="__node_internal_",c={};function p(k,T){if(!k)throw new c.ERR_INTERNAL_ASSERTION(T)}function g(k){let T="",D=k.length,F=k[0]==="-"?1:0;for(;D>=F+4;D-=3)T=`_${k.slice(D-3,D)}${T}`;return`${k.slice(0,D)}${T}`}function b(k,T,D){if(typeof T=="function")return p(T.length<=D.length,`Code: ${k}; The provided arguments length (${D.length}) does not match the required ones (${T.length}).`),T(...D);let F=(T.match(/%[dfijoOs]/g)||[]).length;return p(F===D.length,`Code: ${k}; The provided arguments length (${D.length}) does not match the required ones (${F}).`),D.length===0?T:t(T,...D)}function m(k,T,D){D||(D=Error);class F extends D{constructor(...O){super(b(k,T,O))}toString(){return`${this.name} [${k}]: ${this.message}`}}Object.defineProperties(F.prototype,{name:{value:D.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${k}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),F.prototype.code=k,F.prototype[r]=!0,c[k]=F}function y(k){let T=a+k.name;return Object.defineProperty(k,"name",{value:T}),k}function I(k,T){if(k&&T&&k!==T){if(Array.isArray(T.errors))return T.errors.push(k),T;let D=new s([T,k],T.message);return D.code=T.code,D}return k||T}var U=class extends Error{constructor(k="The operation was aborted",T=void 0){if(T!==void 0&&typeof T!="object")throw new c.ERR_INVALID_ARG_TYPE("options","Object",T);super(k,T),this.code="ABORT_ERR",this.name="AbortError"}};m("ERR_ASSERTION","%s",Error),m("ERR_INVALID_ARG_TYPE",(k,T,D)=>{p(typeof k=="string","'name' must be a string"),Array.isArray(T)||(T=[T]);let F="The ";k.endsWith(" argument")?F+=`${k} `:F+=`"${k}" ${k.includes(".")?"property":"argument"} `,F+="must be ";let R=[],O=[],M=[];for(let G of T)p(typeof G=="string","All expected entries have to be of type string"),o.includes(G)?R.push(G.toLowerCase()):i.test(G)?O.push(G):(p(G!=="object",'The value "object" should be written as "Object"'),M.push(G));if(O.length>0){let G=R.indexOf("object");G!==-1&&(R.splice(R,G,1),O.push("Object"))}if(R.length>0){switch(R.length){case 1:F+=`of type ${R[0]}`;break;case 2:F+=`one of type ${R[0]} or ${R[1]}`;break;default:{let G=R.pop();F+=`one of type ${R.join(", ")}, or ${G}`}}(O.length>0||M.length>0)&&(F+=" or ")}if(O.length>0){switch(O.length){case 1:F+=`an instance of ${O[0]}`;break;case 2:F+=`an instance of ${O[0]} or ${O[1]}`;break;default:{let G=O.pop();F+=`an instance of ${O.join(", ")}, or ${G}`}}M.length>0&&(F+=" or ")}switch(M.length){case 0:break;case 1:M[0].toLowerCase()!==M[0]&&(F+="an
|
||
|
`)&&(n=n.replace(Gs,"%0A")),n.includes("\r")&&(n=n.replace(Js,"%0D")),n.includes(" ")&&(n=n.replace(Xs,"%09")),l.pathname=n,l}function Ws(e){if(typeof e=="string")e=new URL(e);else if(!(e instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(e.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return Lr?tu(e):ru(e)}function tu(e){let n=e.hostname,t=e.pathname;for(let l=0;l<t.length;l++)if(t[l]==="%"){let h=t.codePointAt(l+2)||32;if(t[l+1]==="2"&&h===102||t[l+1]==="5"&&h===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(t=t.replace(ua,"\\"),t=decodeURIComponent(t),n!=="")return`\\\\${n}${t}`;{let l=t.codePointAt(1)|32,h=t[2];if(l<aa||l>la||h!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return t.slice(1)}}function ru(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let n=e.pathname;for(let t=0;t<n.length;t++)if(n[t]==="%"){let l=n.codePointAt(t+2)||32;if(n[t+1]==="2"&&l===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(n)}function $s(e){let n=Sn.resolve(e),t=e.charCodeAt(e.length-1);(t===sa||Lr&&t===oa)&&n[n.length-1]!==Sn.sep&&(n+="/");let l=new URL("file://");return n.includes("%")&&(n=n.replace(ha,"%25")),!Lr&&n.includes("\\")&&(n=n.replace(ca,"%5C")),n.includes(`
|
||
|
`)&&(n=n.replace(fa,"%0A")),n.includes("\r")&&(n=n.replace(da,"%0D")),n.includes(" ")&&(n=n.replace(pa,"%09")),l.pathname=n,l}var Pe,po,dt,go,bo,mo,yo,Er,ti,ri,ii,wo,vo,Sr,Ht,Ar,Br,An,In,_o,qs,Vs,Hs,zs,Ur,Ks,Ys,Qs,Gs,Js,Xs,Eo,Zs,ea,ta,ra,ia,na,oa,sa,aa,la,Lr,ua,ha,ca,fa,da,pa,iu=Ge(()=>{ae(),se(),oe(),$l(),Vl(),zl(),Ql(),Ds(),Pe={},po=Nt,dt={isString:function(e){return typeof e=="string"},isObject:function(e){return typeof e=="object"&&e!==null},isNull:function(e){return e===null},isNullOrUndefined:function(e){return e==null}},Pe.parse=fr,Pe.resolve=function(e,n){return fr(e,!1,!0).resolve(n)},Pe.resolveObject=function(e,n){return e?fr(e,!1,!0).resolveObject(n):n},Pe.format=function(e){return dt.isString(e)&&(e=fr(e)),e instanceof ut?e.format():ut.prototype.format.call(e)},Pe.Url=ut,go=/^([a-z0-9.+-]+:)/i,bo=/:[0-9]*$/,mo=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,yo=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
|
||
|
`," "]),Er=["'"].concat(yo),ti=["%","/","?",";","#"].concat(Er),ri=["/","?","#"],ii=/^[+a-z0-9A-Z_-]{0,63}$/,wo=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,vo={javascript:!0,"javascript:":!0},Sr={javascript:!0,"javascript:":!0},Ht={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Ar=bt,ut.prototype.parse=function(e,n,t){if(!dt.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var l=e.indexOf("?"),h=l!==-1&&l<e.indexOf("#")?"?":"#",s=e.split(h);s[0]=s[0].replace(/\\/g,"/");var r=e=s.join(h);if(r=r.trim(),!t&&e.split("#").length===1){var o=mo.exec(r);if(o)return this.path=r,this.href=r,this.pathname=o[1],o[2]?(this.search=o[2],this.query=n?Ar.parse(this.search.substr(1)):this.search.substr(1)):n&&(this.search="",this.query={}),this}var i=go.exec(r);if(i){var a=(i=i[0]).toLowerCase();this.protocol=a,r=r.substr(i.length)}if(t||i||r.match(/^\/\/[^@\/]+@[^@\/]+/)){var c=r.substr(0,2)==="//";!c||i&&Sr[i]||(r=r.substr(2),this.slashes=!0)}if(!Sr[i]&&(c||i&&!Ht[i])){for(var p,g,b=-1,m=0;m<ri.length;m++)(y=r.indexOf(ri[m]))!==-1&&(b===-1||y<b)&&(b=y);for((g=b===-1?r.lastIndexOf("@"):r.lastIndexOf("@",b))!==-1&&(p=r.slice(0,g),r=r.slice(g+1),this.auth=decodeURIComponent(p)),b=-1,m=0;m<ti.length;m++){var y;(y=r.indexOf(ti[m]))!==-1&&(b===-1||y<b)&&(b=y)}b===-1&&(b=r.length),this.host=r.slice(0,b),r=r.slice(b),this.parseHost(),this.hostname=this.hostname||"";var I=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!I)for(var U=this.hostname.split(/\./),k=(m=0,U.length);m<k;m++){var T=U[m];if(T&&!T.match(ii)){for(var D="",F=0,R=T.length;F<R;F++)T.charCodeAt(F)>127?D+="x":D+=T[F];if(!D.match(ii)){var O=U.slice(0,m),M=U.slice(m+1),W=T.match(wo);W&&(O.push(W[1]),M.unshift(W[2])),M.length&&(r="/"+M.join(".")+r),this.hostname=O.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),I||(this.hostname=po.toASCII(this.hostname));var G=this.port?":"+this.port:"",ee=this.hostname||"";this.host=ee+G,this.href+=this.host,I&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),r[0]!=="/"&&(r="/"+r))}if(!vo[a])for(m=0,k=Er.length;m<k;m++){var E=Er[m];if(r.indexOf(E)!==-1){var q=encodeURIComponent(E);q===E&&(q=escape(E)),r=r.split(E).join(q)}}var Z=r.indexOf("#");Z!==-1&&(this.hash=r.substr(Z),r=r.slice(0,Z));var K=r.indexOf("?");if(K!==-1?(this.search=r.substr(K),this.query=r.substr(K+1),n&&(this.query=Ar.parse(this.query)),r=r.slice(0,K)):n&&(this.search="",this.query={}),r&&(this.pathname=r),Ht[a]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){G=this.pathname||"";var ge=this.search||"";this.path=G+ge}return this.href=this.format(),this},ut.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var n=this.protocol||"",t=this.pathname||"",l=this.hash||"",h=!1,s="";this.host?h=e+this.host:this.hostname&&(h=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(h+=":"+this.port)),this.query&&dt.isObject(this.query)&&Object.keys(this.query).length&&(s=Ar.stringify(this.query));var r=this.search||s&&"?"+s||"";return n&&n.substr(-1)!==":"&&(n+=":"),this.slashes||(!n||Ht[n])&&h!==!1?(h="//"+(h||""),t&&t.charAt(0)!=="/"&&(t="/"+t)):h||(h=""),l&&l.charAt(0)!=="#"&&(l="#"+l),r&&r.charAt(0)!=="?"&&(r="?"+r),n+h+(t=t.replace(/[?#]/g,function(o){return encodeURIComponent(o)}))+(r=r.replace("#","%23"))+l},ut.prototype.resolve=function(e){return this.resolveObject(fr(e,!1,!0)).format()},ut.prototype.resolveObject=function(e){if(dt.isString(e)){var n=new ut;n.parse(e,!1,!0),e=n}for(var t=new ut,l=Object.keys(this),h=0;h<l.length;h++){var s=l[h];t[s]=this[s]}if(t.hash=e.hash,e.href==="")return t.href=t.format(),t;if(e.slashes&&!e.protocol){for(var r=Object.keys(e),o=0;o<r.length;o++){var i=r[o];i!=="protocol"&&(t[i]=e[i])}return Ht[t.protocol]&&t.hostname&&!t.pathname&&(t.path=t.pathname="/"),t.href=t.format(),t}if(e.protocol&&e.protocol!==t.protocol){if(!Ht[e.protocol]){for(var a=Object.keys(e),c=0;c<a.len
|
||
|
|
||
|
@jspm/core/nodelibs/browser/buffer.js:
|
||
|
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
||
|
*/export{uu as m};
|