UNPKG

miijs

Version:

The most complete and easy to use Mii library available.

10 lines 106 kB
import{a as Vr,b as tf,d as Wr,e as Xn,f as Z,g as _}from"./chunk-VMLSR5BU.js";var ir=tf((e1,Zr)=>{"use strict";_();Zr.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),a=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var t=42;r[n]=t;for(var f in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var l=Object.getOwnPropertySymbols(r);if(l.length!==1||l[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(r,n);if(p.value!==t||p.enumerable!==!0)return!1}return!0}});var x0=tf((n1,Jr)=>{"use strict";_();var Qn=ir();Jr.exports=function(){return Qn()&&!!Symbol.toStringTag}});var or=tf((o1,Kr)=>{"use strict";_();Kr.exports=Object});var Xr=tf((s1,Yr)=>{"use strict";_();Yr.exports=Error});var fe=tf((c1,Qr)=>{"use strict";_();Qr.exports=EvalError});var ee=tf((y1,re)=>{"use strict";_();re.exports=RangeError});var ne=tf((x1,te)=>{"use strict";_();te.exports=ReferenceError});var ar=tf((g1,ie)=>{"use strict";_();ie.exports=SyntaxError});var e0=tf((v1,oe)=>{"use strict";_();oe.exports=TypeError});var se=tf((m1,ae)=>{"use strict";_();ae.exports=URIError});var ce=tf((A1,ue)=>{"use strict";_();ue.exports=Math.abs});var ye=tf((S1,le)=>{"use strict";_();le.exports=Math.floor});var xe=tf((O1,pe)=>{"use strict";_();pe.exports=Math.max});var ge=tf((U1,he)=>{"use strict";_();he.exports=Math.min});var ve=tf((T1,be)=>{"use strict";_();be.exports=Math.pow});var me=tf((M1,de)=>{"use strict";_();de.exports=Math.round});var Ae=tf((j1,we)=>{"use strict";_();we.exports=Number.isNaN||function(r){return r!==r}});var Se=tf((D1,_e)=>{"use strict";_();var fi=Ae();_e.exports=function(r){return fi(r)||r===0?r:r<0?-1:1}});var Oe=tf((L1,Ee)=>{"use strict";_();Ee.exports=Object.getOwnPropertyDescriptor});var Xf=tf(($1,Pe)=>{"use strict";_();var O0=Oe();if(O0)try{O0([],"length")}catch{O0=null}Pe.exports=O0});var h0=tf((N1,Ue)=>{"use strict";_();var P0=Object.defineProperty||!1;if(P0)try{P0({},"a",{value:1})}catch{P0=!1}Ue.exports=P0});var Fe=tf((k1,Te)=>{"use strict";_();var Ce=typeof Symbol<"u"&&Symbol,ri=ir();Te.exports=function(){return typeof Ce!="function"||typeof Symbol!="function"||typeof Ce("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ri()}});var sr=tf((V1,Me)=>{"use strict";_();Me.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var ur=tf((Z1,qe)=>{"use strict";_();var ei=or();qe.exports=ei.getPrototypeOf||null});var De=tf((K1,Ie)=>{"use strict";_();var ti="Function.prototype.bind called on incompatible ",ni=Object.prototype.toString,ii=Math.max,oi="[object Function]",je=function(r,n){for(var a=[],t=0;t<r.length;t+=1)a[t]=r[t];for(var f=0;f<n.length;f+=1)a[f+r.length]=n[f];return a},ai=function(r,n){for(var a=[],t=n||0,f=0;t<r.length;t+=1,f+=1)a[f]=r[t];return a},si=function(e,r){for(var n="",a=0;a<e.length;a+=1)n+=e[a],a+1<e.length&&(n+=r);return n};Ie.exports=function(r){var n=this;if(typeof n!="function"||ni.apply(n)!==oi)throw new TypeError(ti+n);for(var a=ai(arguments,1),t,f=function(){if(this instanceof t){var P=n.apply(this,je(a,arguments));return Object(P)===P?P:this}return n.apply(r,je(a,arguments))},l=ii(0,n.length-a.length),p=[],h=0;h<l;h++)p[h]="$"+h;if(t=Function("binder","return function ("+si(p,",")+"){ return binder.apply(this,arguments); }")(f),n.prototype){var w=function(){};w.prototype=n.prototype,t.prototype=new w,w.prototype=null}return t}});var t0=tf((X1,Be)=>{"use strict";_();var ui=De();Be.exports=Function.prototype.bind||ui});var U0=tf((fs,Le)=>{"use strict";_();Le.exports=Function.prototype.call});var C0=tf((es,Re)=>{"use strict";_();Re.exports=Function.prototype.apply});var He=tf((ns,$e)=>{"use strict";_();$e.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var cr=tf((os,Ne)=>{"use strict";_();var ci=t0(),li=C0(),yi=U0(),pi=He();Ne.exports=pi||ci.call(yi,li)});var T0=tf((ss,Ge)=>{"use strict";_();var xi=t0(),hi=e0(),gi=U0(),bi=cr();Ge.exports=function(r){if(r.length<1||typeof r[0]!="function")throw new hi("a function is required");return bi(xi,gi,r)}});var Je=tf((cs,Ze)=>{"use strict";_();var vi=T0(),ke=Xf(),Ve;try{Ve=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var lr=!!Ve&&ke&&ke(Object.prototype,"__proto__"),We=Object,ze=We.getPrototypeOf;Ze.exports=lr&&typeof lr.get=="function"?vi([lr.get]):typeof ze=="function"?function(r){return ze(r==null?r:We(r))}:!1});var F0=tf((ys,Qe)=>{"use strict";_();var Ke=sr(),Ye=ur(),Xe=Je();Qe.exports=Ke?function(r){return Ke(r)}:Ye?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return Ye(r)}:Xe?function(r){return Xe(r)}:null});var yr=tf((xs,ft)=>{"use strict";_();var di=Function.prototype.call,mi=Object.prototype.hasOwnProperty,wi=t0();ft.exports=wi.call(di,mi)});var hr=tf((gs,ot)=>{"use strict";_();var Cf,Ai=or(),_i=Xr(),Si=fe(),Ei=ee(),Oi=ne(),a0=ar(),o0=e0(),Pi=se(),Ui=ce(),Ci=ye(),Ti=xe(),Fi=ge(),Mi=ve(),qi=me(),ji=Se(),nt=Function,pr=function(e){try{return nt('"use strict"; return ('+e+").constructor;")()}catch{}},g0=Xf(),Ii=h0(),xr=function(){throw new o0},Di=g0?(function(){try{return arguments.callee,xr}catch{try{return g0(arguments,"callee").get}catch{return xr}}})():xr,n0=Fe()(),Hf=F0(),Bi=ur(),Li=sr(),it=C0(),b0=U0(),i0={},Ri=typeof Uint8Array>"u"||!Hf?Cf:Hf(Uint8Array),Qf={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Cf:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Cf:ArrayBuffer,"%ArrayIteratorPrototype%":n0&&Hf?Hf([][Symbol.iterator]()):Cf,"%AsyncFromSyncIteratorPrototype%":Cf,"%AsyncFunction%":i0,"%AsyncGenerator%":i0,"%AsyncGeneratorFunction%":i0,"%AsyncIteratorPrototype%":i0,"%Atomics%":typeof Atomics>"u"?Cf:Atomics,"%BigInt%":typeof BigInt>"u"?Cf:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Cf:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Cf:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Cf:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":_i,"%eval%":eval,"%EvalError%":Si,"%Float16Array%":typeof Float16Array>"u"?Cf:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Cf:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Cf:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Cf:FinalizationRegistry,"%Function%":nt,"%GeneratorFunction%":i0,"%Int8Array%":typeof Int8Array>"u"?Cf:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Cf:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Cf:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":n0&&Hf?Hf(Hf([][Symbol.iterator]())):Cf,"%JSON%":typeof JSON=="object"?JSON:Cf,"%Map%":typeof Map>"u"?Cf:Map,"%MapIteratorPrototype%":typeof Map>"u"||!n0||!Hf?Cf:Hf(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Ai,"%Object.getOwnPropertyDescriptor%":g0,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Cf:Promise,"%Proxy%":typeof Proxy>"u"?Cf:Proxy,"%RangeError%":Ei,"%ReferenceError%":Oi,"%Reflect%":typeof Reflect>"u"?Cf:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Cf:Set,"%SetIteratorPrototype%":typeof Set>"u"||!n0||!Hf?Cf:Hf(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Cf:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":n0&&Hf?Hf(""[Symbol.iterator]()):Cf,"%Symbol%":n0?Symbol:Cf,"%SyntaxError%":a0,"%ThrowTypeError%":Di,"%TypedArray%":Ri,"%TypeError%":o0,"%Uint8Array%":typeof Uint8Array>"u"?Cf:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Cf:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Cf:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Cf:Uint32Array,"%URIError%":Pi,"%WeakMap%":typeof WeakMap>"u"?Cf:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Cf:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Cf:WeakSet,"%Function.prototype.call%":b0,"%Function.prototype.apply%":it,"%Object.defineProperty%":Ii,"%Object.getPrototypeOf%":Bi,"%Math.abs%":Ui,"%Math.floor%":Ci,"%Math.max%":Ti,"%Math.min%":Fi,"%Math.pow%":Mi,"%Math.round%":qi,"%Math.sign%":ji,"%Reflect.getPrototypeOf%":Li};if(Hf)try{null.error}catch(e){rt=Hf(Hf(e)),Qf["%Error.prototype%"]=rt}var rt,$i=function e(r){var n;if(r==="%AsyncFunction%")n=pr("async function () {}");else if(r==="%GeneratorFunction%")n=pr("function* () {}");else if(r==="%AsyncGeneratorFunction%")n=pr("async function* () {}");else if(r==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(n=a.prototype)}else if(r==="%AsyncIteratorPrototype%"){var t=e("%AsyncGenerator%");t&&Hf&&(n=Hf(t.prototype))}return Qf[r]=n,n},et={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v0=t0(),M0=yr(),Hi=v0.call(b0,Array.prototype.concat),Ni=v0.call(it,Array.prototype.splice),tt=v0.call(b0,String.prototype.replace),q0=v0.call(b0,String.prototype.slice),Gi=v0.call(b0,RegExp.prototype.exec),ki=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,zi=/\\(\\)?/g,Vi=function(r){var n=q0(r,0,1),a=q0(r,-1);if(n==="%"&&a!=="%")throw new a0("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&n!=="%")throw new a0("invalid intrinsic syntax, expected opening `%`");var t=[];return tt(r,ki,function(f,l,p,h){t[t.length]=p?tt(h,zi,"$1"):l||f}),t},Wi=function(r,n){var a=r,t;if(M0(et,a)&&(t=et[a],a="%"+t[0]+"%"),M0(Qf,a)){var f=Qf[a];if(f===i0&&(f=$i(a)),typeof f>"u"&&!n)throw new o0("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:t,name:a,value:f}}throw new a0("intrinsic "+r+" does not exist!")};ot.exports=function(r,n){if(typeof r!="string"||r.length===0)throw new o0("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new o0('"allowMissing" argument must be a boolean');if(Gi(/^%?[^%]*%?$/,r)===null)throw new a0("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=Vi(r),t=a.length>0?a[0]:"",f=Wi("%"+t+"%",n),l=f.name,p=f.value,h=!1,w=f.alias;w&&(t=w[0],Ni(a,Hi([0,1],w)));for(var P=1,T=!0;P<a.length;P+=1){var L=a[P],B=q0(L,0,1),X=q0(L,-1);if((B==='"'||B==="'"||B==="`"||X==='"'||X==="'"||X==="`")&&B!==X)throw new a0("property names with quotes must have matching quotes");if((L==="constructor"||!T)&&(h=!0),t+="."+L,l="%"+t+"%",M0(Qf,l))p=Qf[l];else if(p!=null){if(!(L in p)){if(!n)throw new o0("base intrinsic for "+r+" exists, but the property is not available.");return}if(g0&&P+1>=a.length){var ef=g0(p,L);T=!!ef,T&&"get"in ef&&!("originalValue"in ef.get)?p=ef.get:p=p[L]}else T=M0(p,L),p=p[L];T&&!h&&(Qf[l]=p)}}return p}});var s0=tf((vs,ut)=>{"use strict";_();var at=hr(),st=T0(),Zi=st([at("%String.prototype.indexOf%")]);ut.exports=function(r,n){var a=at(r,!!n);return typeof a=="function"&&Zi(r,".prototype.")>-1?st([a]):a}});var yt=tf((ms,lt)=>{"use strict";_();var Ji=x0()(),Ki=s0(),gr=Ki("Object.prototype.toString"),j0=function(r){return Ji&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:gr(r)==="[object Arguments]"},ct=function(r){return j0(r)?!0:r!==null&&typeof r=="object"&&"length"in r&&typeof r.length=="number"&&r.length>=0&&gr(r)!=="[object Array]"&&"callee"in r&&gr(r.callee)==="[object Function]"},Yi=(function(){return j0(arguments)})();j0.isLegacyArguments=ct;lt.exports=Yi?j0:ct});var vt=tf((As,bt)=>{"use strict";_();var pt=s0(),Xi=x0()(),Qi=yr(),fo=Xf(),dr;Xi?(xt=pt("RegExp.prototype.exec"),br={},I0=function(){throw br},vr={toString:I0,valueOf:I0},typeof Symbol.toPrimitive=="symbol"&&(vr[Symbol.toPrimitive]=I0),dr=function(r){if(!r||typeof r!="object")return!1;var n=fo(r,"lastIndex"),a=n&&Qi(n,"value");if(!a)return!1;try{xt(r,vr)}catch(t){return t===br}}):(ht=pt("Object.prototype.toString"),gt="[object RegExp]",dr=function(r){return!r||typeof r!="object"&&typeof r!="function"?!1:ht(r)===gt});var xt,br,I0,vr,ht,gt;bt.exports=dr});var mt=tf((Ss,dt)=>{"use strict";_();var ro=s0(),eo=vt(),to=ro("RegExp.prototype.exec"),no=e0();dt.exports=function(r){if(!eo(r))throw new no("`regex` must be a RegExp");return function(a){return to(r,a)!==null}}});var At=tf((Os,wt)=>{"use strict";_();var io=function*(){}.constructor;wt.exports=()=>io});var Ot=tf((Us,Et)=>{"use strict";_();var St=s0(),oo=mt(),ao=oo(/^\s*(?:function)?\*/),so=x0()(),_t=F0(),uo=St("Object.prototype.toString"),co=St("Function.prototype.toString"),lo=At();Et.exports=function(r){if(typeof r!="function")return!1;if(ao(co(r)))return!0;if(!so){var n=uo(r);return n==="[object GeneratorFunction]"}if(!_t)return!1;var a=lo();return a&&_t(r)===a.prototype}});var Tt=tf((Ts,Ct)=>{"use strict";_();var Ut=Function.prototype.toString,u0=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,wr,D0;if(typeof u0=="function"&&typeof Object.defineProperty=="function")try{wr=Object.defineProperty({},"length",{get:function(){throw D0}}),D0={},u0(function(){throw 42},null,wr)}catch(e){e!==D0&&(u0=null)}else u0=null;var yo=/^\s*class\b/,Ar=function(r){try{var n=Ut.call(r);return yo.test(n)}catch{return!1}},mr=function(r){try{return Ar(r)?!1:(Ut.call(r),!0)}catch{return!1}},B0=Object.prototype.toString,po="[object Object]",xo="[object Function]",ho="[object GeneratorFunction]",go="[object HTMLAllCollection]",bo="[object HTML document.all class]",vo="[object HTMLCollection]",mo=typeof Symbol=="function"&&!!Symbol.toStringTag,wo=!(0 in[,]),_r=function(){return!1};typeof document=="object"&&(Pt=document.all,B0.call(Pt)===B0.call(document.all)&&(_r=function(r){if((wo||!r)&&(typeof r>"u"||typeof r=="object"))try{var n=B0.call(r);return(n===go||n===bo||n===vo||n===po)&&r("")==null}catch{}return!1}));var Pt;Ct.exports=u0?function(r){if(_r(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{u0(r,null,wr)}catch(n){if(n!==D0)return!1}return!Ar(r)&&mr(r)}:function(r){if(_r(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(mo)return mr(r);if(Ar(r))return!1;var n=B0.call(r);return n!==xo&&n!==ho&&!/^\[object HTML/.test(n)?!1:mr(r)}});var qt=tf((Ms,Mt)=>{"use strict";_();var Ao=Tt(),_o=Object.prototype.toString,Ft=Object.prototype.hasOwnProperty,So=function(r,n,a){for(var t=0,f=r.length;t<f;t++)Ft.call(r,t)&&(a==null?n(r[t],t,r):n.call(a,r[t],t,r))},Eo=function(r,n,a){for(var t=0,f=r.length;t<f;t++)a==null?n(r.charAt(t),t,r):n.call(a,r.charAt(t),t,r)},Oo=function(r,n,a){for(var t in r)Ft.call(r,t)&&(a==null?n(r[t],t,r):n.call(a,r[t],t,r))};function Po(e){return _o.call(e)==="[object Array]"}Mt.exports=function(r,n,a){if(!Ao(n))throw new TypeError("iterator must be a function");var t;arguments.length>=3&&(t=a),Po(r)?So(r,n,t):typeof r=="string"?Eo(r,n,t):Oo(r,n,t)}});var It=tf((js,jt)=>{"use strict";_();jt.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]});var Bt=tf((Ds,Dt)=>{"use strict";_();var Sr=It(),Uo=typeof globalThis>"u"?global:globalThis;Dt.exports=function(){for(var r=[],n=0;n<Sr.length;n++)typeof Uo[Sr[n]]=="function"&&(r[r.length]=Sr[n]);return r}});var Ht=tf((Ls,$t)=>{"use strict";_();var Lt=h0(),Co=ar(),c0=e0(),Rt=Xf();$t.exports=function(r,n,a){if(!r||typeof r!="object"&&typeof r!="function")throw new c0("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new c0("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new c0("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new c0("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new c0("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new c0("`loose`, if provided, must be a boolean");var t=arguments.length>3?arguments[3]:null,f=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,h=!!Rt&&Rt(r,n);if(Lt)Lt(r,n,{configurable:l===null&&h?h.configurable:!l,enumerable:t===null&&h?h.enumerable:!t,value:a,writable:f===null&&h?h.writable:!f});else if(p||!t&&!f&&!l)r[n]=a;else throw new Co("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var kt=tf(($s,Gt)=>{"use strict";_();var Er=h0(),Nt=function(){return!!Er};Nt.hasArrayLengthDefineBug=function(){if(!Er)return null;try{return Er([],"length",{value:1}).length!==1}catch{return!0}};Gt.exports=Nt});var Jt=tf((Ns,Zt)=>{"use strict";_();var To=hr(),zt=Ht(),Fo=kt()(),Vt=Xf(),Wt=e0(),Mo=To("%Math.floor%");Zt.exports=function(r,n){if(typeof r!="function")throw new Wt("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||Mo(n)!==n)throw new Wt("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],t=!0,f=!0;if("length"in r&&Vt){var l=Vt(r,"length");l&&!l.configurable&&(t=!1),l&&!l.writable&&(f=!1)}return(t||f||!a)&&(Fo?zt(r,"length",n,!0,!0):zt(r,"length",n)),r}});var Yt=tf((ks,Kt)=>{"use strict";_();var qo=t0(),jo=C0(),Io=cr();Kt.exports=function(){return Io(qo,jo,arguments)}});var fn=tf((Vs,L0)=>{"use strict";_();var Do=Jt(),Xt=h0(),Bo=T0(),Qt=Yt();L0.exports=function(r){var n=Bo(arguments),a=r.length-(arguments.length-1);return Do(n,1+(a>0?a:0),!0)};Xt?Xt(L0.exports,"apply",{value:Qt}):L0.exports.apply=Qt});var Cr=tf((Zs,nn)=>{"use strict";_();var H0=qt(),Lo=Bt(),rn=fn(),Pr=s0(),$0=Xf(),R0=F0(),Ro=Pr("Object.prototype.toString"),tn=x0()(),en=typeof globalThis>"u"?global:globalThis,Or=Lo(),Ur=Pr("String.prototype.slice"),$o=Pr("Array.prototype.indexOf",!0)||function(r,n){for(var a=0;a<r.length;a+=1)if(r[a]===n)return a;return-1},N0={__proto__:null};tn&&$0&&R0?H0(Or,function(e){var r=new en[e];if(Symbol.toStringTag in r&&R0){var n=R0(r),a=$0(n,Symbol.toStringTag);if(!a&&n){var t=R0(n);a=$0(t,Symbol.toStringTag)}if(a&&a.get){var f=rn(a.get);N0["$"+e]=f}}}):H0(Or,function(e){var r=new en[e],n=r.slice||r.set;if(n){var a=rn(n);N0["$"+e]=a}});var Ho=function(r){var n=!1;return H0(N0,function(a,t){if(!n)try{"$"+a(r)===t&&(n=Ur(t,1))}catch{}}),n},No=function(r){var n=!1;return H0(N0,function(a,t){if(!n)try{a(r),n=Ur(t,1)}catch{}}),n};nn.exports=function(r){if(!r||typeof r!="object")return!1;if(!tn){var n=Ur(Ro(r),8,-1);return $o(Or,n)>-1?n:n!=="Object"?!1:No(r)}return $0?Ho(r):null}});var an=tf((Ks,on)=>{"use strict";_();var Go=Cr();on.exports=function(r){return!!Go(r)}});var wn=tf(Tf=>{"use strict";_();var ko=yt(),zo=Ot(),Vf=Cr(),sn=an();function l0(e){return e.call.bind(e)}var un=typeof BigInt<"u",cn=typeof Symbol<"u",Nf=l0(Object.prototype.toString),Vo=l0(Number.prototype.valueOf),Wo=l0(String.prototype.valueOf),Zo=l0(Boolean.prototype.valueOf);un&&(ln=l0(BigInt.prototype.valueOf));var ln;cn&&(yn=l0(Symbol.prototype.valueOf));var yn;function m0(e,r){if(typeof e!="object")return!1;try{return r(e),!0}catch{return!1}}Tf.isArgumentsObject=ko;Tf.isGeneratorFunction=zo;Tf.isTypedArray=sn;function Jo(e){return typeof Promise<"u"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}Tf.isPromise=Jo;function Ko(e){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(e):sn(e)||xn(e)}Tf.isArrayBufferView=Ko;function Yo(e){return Vf(e)==="Uint8Array"}Tf.isUint8Array=Yo;function Xo(e){return Vf(e)==="Uint8ClampedArray"}Tf.isUint8ClampedArray=Xo;function Qo(e){return Vf(e)==="Uint16Array"}Tf.isUint16Array=Qo;function fa(e){return Vf(e)==="Uint32Array"}Tf.isUint32Array=fa;function ra(e){return Vf(e)==="Int8Array"}Tf.isInt8Array=ra;function ea(e){return Vf(e)==="Int16Array"}Tf.isInt16Array=ea;function ta(e){return Vf(e)==="Int32Array"}Tf.isInt32Array=ta;function na(e){return Vf(e)==="Float32Array"}Tf.isFloat32Array=na;function ia(e){return Vf(e)==="Float64Array"}Tf.isFloat64Array=ia;function oa(e){return Vf(e)==="BigInt64Array"}Tf.isBigInt64Array=oa;function aa(e){return Vf(e)==="BigUint64Array"}Tf.isBigUint64Array=aa;function G0(e){return Nf(e)==="[object Map]"}G0.working=typeof Map<"u"&&G0(new Map);function sa(e){return typeof Map>"u"?!1:G0.working?G0(e):e instanceof Map}Tf.isMap=sa;function k0(e){return Nf(e)==="[object Set]"}k0.working=typeof Set<"u"&&k0(new Set);function ua(e){return typeof Set>"u"?!1:k0.working?k0(e):e instanceof Set}Tf.isSet=ua;function z0(e){return Nf(e)==="[object WeakMap]"}z0.working=typeof WeakMap<"u"&&z0(new WeakMap);function ca(e){return typeof WeakMap>"u"?!1:z0.working?z0(e):e instanceof WeakMap}Tf.isWeakMap=ca;function Fr(e){return Nf(e)==="[object WeakSet]"}Fr.working=typeof WeakSet<"u"&&Fr(new WeakSet);function la(e){return Fr(e)}Tf.isWeakSet=la;function V0(e){return Nf(e)==="[object ArrayBuffer]"}V0.working=typeof ArrayBuffer<"u"&&V0(new ArrayBuffer);function pn(e){return typeof ArrayBuffer>"u"?!1:V0.working?V0(e):e instanceof ArrayBuffer}Tf.isArrayBuffer=pn;function W0(e){return Nf(e)==="[object DataView]"}W0.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&W0(new DataView(new ArrayBuffer(1),0,1));function xn(e){return typeof DataView>"u"?!1:W0.working?W0(e):e instanceof DataView}Tf.isDataView=xn;var Tr=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function d0(e){return Nf(e)==="[object SharedArrayBuffer]"}function hn(e){return typeof Tr>"u"?!1:(typeof d0.working>"u"&&(d0.working=d0(new Tr)),d0.working?d0(e):e instanceof Tr)}Tf.isSharedArrayBuffer=hn;function ya(e){return Nf(e)==="[object AsyncFunction]"}Tf.isAsyncFunction=ya;function pa(e){return Nf(e)==="[object Map Iterator]"}Tf.isMapIterator=pa;function xa(e){return Nf(e)==="[object Set Iterator]"}Tf.isSetIterator=xa;function ha(e){return Nf(e)==="[object Generator]"}Tf.isGeneratorObject=ha;function ga(e){return Nf(e)==="[object WebAssembly.Module]"}Tf.isWebAssemblyCompiledModule=ga;function gn(e){return m0(e,Vo)}Tf.isNumberObject=gn;function bn(e){return m0(e,Wo)}Tf.isStringObject=bn;function vn(e){return m0(e,Zo)}Tf.isBooleanObject=vn;function dn(e){return un&&m0(e,ln)}Tf.isBigIntObject=dn;function mn(e){return cn&&m0(e,yn)}Tf.isSymbolObject=mn;function ba(e){return gn(e)||bn(e)||vn(e)||dn(e)||mn(e)}Tf.isBoxedPrimitive=ba;function va(e){return typeof Uint8Array<"u"&&(pn(e)||hn(e))}Tf.isAnyArrayBuffer=va;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(Tf,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var _n=tf((fu,An)=>{_();An.exports=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}});var Sn=tf((eu,Mr)=>{_();typeof Object.create=="function"?Mr.exports=function(r,n){n&&(r.super_=n,r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:Mr.exports=function(r,n){if(n){r.super_=n;var a=function(){};a.prototype=n.prototype,r.prototype=new a,r.prototype.constructor=r}}});var Tn=tf(Ff=>{_();var En=Object.getOwnPropertyDescriptors||function(r){for(var n=Object.keys(r),a={},t=0;t<n.length;t++)a[n[t]]=Object.getOwnPropertyDescriptor(r,n[t]);return a},da=/%[sdj%]/g;Ff.format=function(e){if(!fr(e)){for(var r=[],n=0;n<arguments.length;n++)r.push(Yf(arguments[n]));return r.join(" ")}for(var n=1,a=arguments,t=a.length,f=String(e).replace(da,function(p){if(p==="%%")return"%";if(n>=t)return p;switch(p){case"%s":return String(a[n++]);case"%d":return Number(a[n++]);case"%j":try{return JSON.stringify(a[n++])}catch{return"[Circular]"}default:return p}}),l=a[n];n<t;l=a[++n])Q0(l)||!y0(l)?f+=" "+l:f+=" "+Yf(l);return f};Ff.deprecate=function(e,r){if(typeof process<"u"&&process.noDeprecation===!0)return e;if(typeof process>"u")return function(){return Ff.deprecate(e,r).apply(this,arguments)};var n=!1;function a(){if(!n){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),n=!0}return e.apply(this,arguments)}return a};var Z0={},On=/^$/;process.env.NODE_DEBUG&&(J0=process.env.NODE_DEBUG,J0=J0.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),On=new RegExp("^"+J0+"$","i"));var J0;Ff.debuglog=function(e){if(e=e.toUpperCase(),!Z0[e])if(On.test(e)){var r=process.pid;Z0[e]=function(){var n=Ff.format.apply(Ff,arguments);console.error("%s %d: %s",e,r,n)}}else Z0[e]=function(){};return Z0[e]};function Yf(e,r){var n={seen:[],stylize:wa};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Dr(r)?n.showHidden=r:r&&Ff._extend(n,r),r0(n.showHidden)&&(n.showHidden=!1),r0(n.depth)&&(n.depth=2),r0(n.colors)&&(n.colors=!1),r0(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=ma),Y0(n,e,n.depth)}Ff.inspect=Yf;Yf.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};Yf.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function ma(e,r){var n=Yf.styles[r];return n?"\x1B["+Yf.colors[n][0]+"m"+e+"\x1B["+Yf.colors[n][1]+"m":e}function wa(e,r){return e}function Aa(e){var r={};return e.forEach(function(n,a){r[n]=!0}),r}function Y0(e,r,n){if(e.customInspect&&r&&K0(r.inspect)&&r.inspect!==Ff.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(n,e);return fr(a)||(a=Y0(e,a,n)),a}var t=_a(e,r);if(t)return t;var f=Object.keys(r),l=Aa(f);if(e.showHidden&&(f=Object.getOwnPropertyNames(r)),A0(r)&&(f.indexOf("message")>=0||f.indexOf("description")>=0))return qr(r);if(f.length===0){if(K0(r)){var p=r.name?": "+r.name:"";return e.stylize("[Function"+p+"]","special")}if(w0(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(X0(r))return e.stylize(Date.prototype.toString.call(r),"date");if(A0(r))return qr(r)}var h="",w=!1,P=["{","}"];if(Pn(r)&&(w=!0,P=["[","]"]),K0(r)){var T=r.name?": "+r.name:"";h=" [Function"+T+"]"}if(w0(r)&&(h=" "+RegExp.prototype.toString.call(r)),X0(r)&&(h=" "+Date.prototype.toUTCString.call(r)),A0(r)&&(h=" "+qr(r)),f.length===0&&(!w||r.length==0))return P[0]+h+P[1];if(n<0)return w0(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var L;return w?L=Sa(e,r,n,l,f):L=f.map(function(B){return Ir(e,r,n,l,B,w)}),e.seen.pop(),Ea(L,h,P)}function _a(e,r){if(r0(r))return e.stylize("undefined","undefined");if(fr(r)){var n="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(Un(r))return e.stylize(""+r,"number");if(Dr(r))return e.stylize(""+r,"boolean");if(Q0(r))return e.stylize("null","null")}function qr(e){return"["+Error.prototype.toString.call(e)+"]"}function Sa(e,r,n,a,t){for(var f=[],l=0,p=r.length;l<p;++l)Cn(r,String(l))?f.push(Ir(e,r,n,a,String(l),!0)):f.push("");return t.forEach(function(h){h.match(/^\d+$/)||f.push(Ir(e,r,n,a,h,!0))}),f}function Ir(e,r,n,a,t,f){var l,p,h;if(h=Object.getOwnPropertyDescriptor(r,t)||{value:r[t]},h.get?h.set?p=e.stylize("[Getter/Setter]","special"):p=e.stylize("[Getter]","special"):h.set&&(p=e.stylize("[Setter]","special")),Cn(a,t)||(l="["+t+"]"),p||(e.seen.indexOf(h.value)<0?(Q0(n)?p=Y0(e,h.value,null):p=Y0(e,h.value,n-1),p.indexOf(` `)>-1&&(f?p=p.split(` `).map(function(w){return" "+w}).join(` `).slice(2):p=` `+p.split(` `).map(function(w){return" "+w}).join(` `))):p=e.stylize("[Circular]","special")),r0(l)){if(f&&t.match(/^\d+$/))return p;l=JSON.stringify(""+t),l.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(l=l.slice(1,-1),l=e.stylize(l,"name")):(l=l.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),l=e.stylize(l,"string"))}return l+": "+p}function Ea(e,r,n){var a=0,t=e.reduce(function(f,l){return a++,l.indexOf(` `)>=0&&a++,f+l.replace(/\u001b\[\d\d?m/g,"").length+1},0);return t>60?n[0]+(r===""?"":r+` `)+" "+e.join(`, `)+" "+n[1]:n[0]+r+" "+e.join(", ")+" "+n[1]}Ff.types=wn();function Pn(e){return Array.isArray(e)}Ff.isArray=Pn;function Dr(e){return typeof e=="boolean"}Ff.isBoolean=Dr;function Q0(e){return e===null}Ff.isNull=Q0;function Oa(e){return e==null}Ff.isNullOrUndefined=Oa;function Un(e){return typeof e=="number"}Ff.isNumber=Un;function fr(e){return typeof e=="string"}Ff.isString=fr;function Pa(e){return typeof e=="symbol"}Ff.isSymbol=Pa;function r0(e){return e===void 0}Ff.isUndefined=r0;function w0(e){return y0(e)&&Br(e)==="[object RegExp]"}Ff.isRegExp=w0;Ff.types.isRegExp=w0;function y0(e){return typeof e=="object"&&e!==null}Ff.isObject=y0;function X0(e){return y0(e)&&Br(e)==="[object Date]"}Ff.isDate=X0;Ff.types.isDate=X0;function A0(e){return y0(e)&&(Br(e)==="[object Error]"||e instanceof Error)}Ff.isError=A0;Ff.types.isNativeError=A0;function K0(e){return typeof e=="function"}Ff.isFunction=K0;function Ua(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}Ff.isPrimitive=Ua;Ff.isBuffer=_n();function Br(e){return Object.prototype.toString.call(e)}function jr(e){return e<10?"0"+e.toString(10):e.toString(10)}var Ca=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ta(){var e=new Date,r=[jr(e.getHours()),jr(e.getMinutes()),jr(e.getSeconds())].join(":");return[e.getDate(),Ca[e.getMonth()],r].join(" ")}Ff.log=function(){console.log("%s - %s",Ta(),Ff.format.apply(Ff,arguments))};Ff.inherits=Sn();Ff._extend=function(e,r){if(!r||!y0(r))return e;for(var n=Object.keys(r),a=n.length;a--;)e[n[a]]=r[n[a]];return e};function Cn(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var f0=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Ff.promisify=function(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(f0&&r[f0]){var n=r[f0];if(typeof n!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(n,f0,{value:n,enumerable:!1,writable:!1,configurable:!0}),n}function n(){for(var a,t,f=new Promise(function(h,w){a=h,t=w}),l=[],p=0;p<arguments.length;p++)l.push(arguments[p]);l.push(function(h,w){h?t(h):a(w)});try{r.apply(this,l)}catch(h){t(h)}return f}return Object.setPrototypeOf(n,Object.getPrototypeOf(r)),f0&&Object.defineProperty(n,f0,{value:n,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(n,En(r))};Ff.promisify.custom=f0;function Fa(e,r){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return r(e)}function Ma(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');function r(){for(var n=[],a=0;a<arguments.length;a++)n.push(arguments[a]);var t=n.pop();if(typeof t!="function")throw new TypeError("The last argument must be of type Function");var f=this,l=function(){return t.apply(f,arguments)};e.apply(this,n).then(function(p){process.nextTick(l.bind(null,null,p))},function(p){process.nextTick(Fa.bind(null,p,l))})}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,En(e)),r}Ff.callbackify=Ma});_();_();_();var Gf=Wr(Xn()),La=Wr(Tn());_();var{existsSync:qa,promises:ja,readFileSync:Ia,writeFileSync:Da}={existsSync:()=>!1,promises:{readFile:()=>null,writeFile:()=>null},readFileSync:()=>null,writeFileSync:()=>null};var Ba={existsSync:qa,promises:ja,readFileSync:Ia,writeFileSync:Da};function rr(e){let r=new Uint8Array(e),n=globalThis.crypto;if(!n||!n.getRandomValues)throw new Error("crypto.getRandomValues unavailable in this environment");return n.getRandomValues(r),Gf.Buffer.from(r)}function Fn(e,r,n){let a=Gf.Buffer.from(r),t=Gf.Buffer.from(n);if(a.length!==16)throw new Error("aes-128-ctr requires 16-byte key");if(t.length!==16)throw new Error("aes-128-ctr requires 16-byte IV");let f=[];return{setAutoPadding(){return this},update(l){let p=Gf.Buffer.from(l),h=e?Lr.encrypt(p,a,t):Lr.decrypt(p,a,t),w=Gf.Buffer.from(h);return f.push(w),w},final(){return Gf.Buffer.alloc(0)}}}function Mn(e,r,n){if(e!=="aes-128-ctr")throw new Error(`Unsupported algorithm in browser shim: ${e}`);return Fn(!0,r,n)}function qn(e,r,n){if(e!=="aes-128-ctr")throw new Error(`Unsupported algorithm in browser shim: ${e}`);return Fn(!1,r,n)}function cu(e,r){if(e!=="sha256")throw new Error(`Unsupported hmac in browser shim: ${e}`);let n=Gf.Buffer.from(r),a=Gf.Buffer.alloc(0);return{update(t){return a=Gf.Buffer.concat([a,Gf.Buffer.from(t)]),this},digest(t){let f=Gf.Buffer.from(jn.bytes(a,n));return t?f.toString(t):f}}}var lu=!1;function Ra(e,r){r===void 0&&(r=!1);for(var n=e.length,a=new Uint8Array(r?4*n:n),t=0,f=0;t<n;t++){var l=e.charCodeAt(t);if(r&&55296<=l&&l<=56319){if(++t>=n)throw new Error("Malformed string, low surrogate expected at position "+t);l=(l^55296)<<10|65536|e.charCodeAt(t)^56320}else if(!r&&l>>>8)throw new Error("Wide characters are not allowed.");!r||l<=127?a[f++]=l:l<=2047?(a[f++]=192|l>>6,a[f++]=128|l&63):l<=65535?(a[f++]=224|l>>12,a[f++]=128|l>>6&63,a[f++]=128|l&63):(a[f++]=240|l>>18,a[f++]=128|l>>12&63,a[f++]=128|l>>6&63,a[f++]=128|l&63)}return a.subarray(0,f)}function In(e){return e instanceof Uint8Array}function Rn(e,r){var n=e?e.byteLength:r||65536;if(n&4095||n<=0)throw new Error("heap size must be a positive integer and a multiple of 4096");return e=e||new Uint8Array(new ArrayBuffer(n)),e}function p0(e,r,n,a,t){var f=e.length-r,l=f<t?f:t;return e.set(n.subarray(a,a+l),r),l}var Nr=(function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,t){a.__proto__=t}||function(a,t){for(var f in t)t.hasOwnProperty(f)&&(a[f]=t[f])},e(r,n)};return function(r,n){e(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}})(),$a=(function(e){Nr(r,e);function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];var t=e.apply(this,n)||this;return t}return r})(Error),kf=(function(e){Nr(r,e);function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];var t=e.apply(this,n)||this;return t}return r})(Error),Dn=(function(e){Nr(r,e);function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];var t=e.apply(this,n)||this;return t}return r})(Error);var Of=(function(){var e=!1,r,n;function a(){r=[],n=[];var B=1,X,ef;for(X=0;X<255;X++)r[X]=B,ef=B&128,B<<=1,B&=255,ef===128&&(B^=27),B^=r[X],n[r[X]]=X;r[255]=r[0],n[0]=0,e=!0}function t(B,X){var ef=r[(n[B]+n[X])%255];return(B===0||X===0)&&(ef=0),ef}function f(B){var X=r[255-n[B]];return B===0&&(X=0),X}var l=!1,p,h,w,P;function T(){e||a();function B(Bf){var zf,Rf,O;for(Rf=O=f(Bf),zf=0;zf<4;zf++)Rf=(Rf<<1|Rf>>>7)&255,O^=Rf;return O^=99,O}p=[],h=[],w=[[],[],[],[]],P=[[],[],[],[]];for(var X=0;X<256;X++){var ef=B(X);p[X]=ef,h[ef]=X,w[0][X]=t(2,ef)<<24|ef<<16|ef<<8|t(3,ef),P[0][ef]=t(14,X)<<24|t(9,X)<<16|t(13,X)<<8|t(11,X);for(var Df=1;Df<4;Df++)w[Df][X]=w[Df-1][X]>>>8|w[Df-1][X]<<24,P[Df][ef]=P[Df-1][ef]>>>8|P[Df-1][ef]<<24}l=!0}var L=function(B,X){l||T();var ef=new Uint32Array(X);ef.set(p,512),ef.set(h,768);for(var Df=0;Df<4;Df++)ef.set(w[Df],4096+1024*Df>>2),ef.set(P[Df],8192+1024*Df>>2);function Bf(O,I,N,g,F,A,m,S,U){var C=ef.subarray(0,60),q=ef.subarray(256,316);C.set([I,N,g,F,A,m,S,U]);for(var d=O,j=1;d<4*O+28;d++){var M=C[d-1];(d%O===0||O===8&&d%O===4)&&(M=p[M>>>24]<<24^p[M>>>16&255]<<16^p[M>>>8&255]<<8^p[M&255]),d%O===0&&(M=M<<8^M>>>24^j<<24,j=j<<1^(j&128?27:0)),C[d]=C[d-O]^M}for(var $=0;$<d;$+=4)for(var K=0;K<4;K++){var M=C[d-(4+$)+(4-K)%4];$<4||$>=d-4?q[$+K]=M:q[$+K]=P[0][p[M>>>24]]^P[1][p[M>>>16&255]]^P[2][p[M>>>8&255]]^P[3][p[M&255]]}Rf.set_rounds(O+5)}var zf={Uint8Array,Uint32Array},Rf=(function(O,I,N){var g=0,F=0,A=0,m=0,S=0,U=0,C=0,q=0,d=0,j=0,M=0,$=0,K=0,Q=0,R=0,k=0,z=0,V=0,D=0,rf=0,J=0,G=new O.Uint32Array(N),E=new O.Uint8Array(N);function xf(v,b,i,u,s,y,x,o){v=v|0,b=b|0,i=i|0,u=u|0,s=s|0,y=y|0,x=x|0,o=o|0;var c=0,If=0,Lf=0,_f=0,jf=0,Sf=0,H=0,Ef=0;for(c=i|1024,If=i|2048,Lf=i|3072,s=s^G[(v|0)>>2],y=y^G[(v|4)>>2],x=x^G[(v|8)>>2],o=o^G[(v|12)>>2],Ef=16;(Ef|0)<=u<<4;Ef=Ef+16|0)_f=G[(i|s>>22&1020)>>2]^G[(c|y>>14&1020)>>2]^G[(If|x>>6&1020)>>2]^G[(Lf|o<<2&1020)>>2]^G[(v|Ef|0)>>2],jf=G[(i|y>>22&1020)>>2]^G[(c|x>>14&1020)>>2]^G[(If|o>>6&1020)>>2]^G[(Lf|s<<2&1020)>>2]^G[(v|Ef|4)>>2],Sf=G[(i|x>>22&1020)>>2]^G[(c|o>>14&1020)>>2]^G[(If|s>>6&1020)>>2]^G[(Lf|y<<2&1020)>>2]^G[(v|Ef|8)>>2],H=G[(i|o>>22&1020)>>2]^G[(c|s>>14&1020)>>2]^G[(If|y>>6&1020)>>2]^G[(Lf|x<<2&1020)>>2]^G[(v|Ef|12)>>2],s=_f,y=jf,x=Sf,o=H;g=G[(b|s>>22&1020)>>2]<<24^G[(b|y>>14&1020)>>2]<<16^G[(b|x>>6&1020)>>2]<<8^G[(b|o<<2&1020)>>2]^G[(v|Ef|0)>>2],F=G[(b|y>>22&1020)>>2]<<24^G[(b|x>>14&1020)>>2]<<16^G[(b|o>>6&1020)>>2]<<8^G[(b|s<<2&1020)>>2]^G[(v|Ef|4)>>2],A=G[(b|x>>22&1020)>>2]<<24^G[(b|o>>14&1020)>>2]<<16^G[(b|s>>6&1020)>>2]<<8^G[(b|y<<2&1020)>>2]^G[(v|Ef|8)>>2],m=G[(b|o>>22&1020)>>2]<<24^G[(b|s>>14&1020)>>2]<<16^G[(b|y>>6&1020)>>2]<<8^G[(b|x<<2&1020)>>2]^G[(v|Ef|12)>>2]}function Y(v,b,i,u){v=v|0,b=b|0,i=i|0,u=u|0,xf(0,2048,4096,J,v,b,i,u)}function ff(v,b,i,u){v=v|0,b=b|0,i=i|0,u=u|0;var s=0;xf(1024,3072,8192,J,v,u,i,b),s=F,F=m,m=s}function of(v,b,i,u){v=v|0,b=b|0,i=i|0,u=u|0,xf(0,2048,4096,J,S^v,U^b,C^i,q^u),S=g,U=F,C=A,q=m}function nf(v,b,i,u){v=v|0,b=b|0,i=i|0,u=u|0;var s=0;xf(1024,3072,8192,J,v,u,i,b),s=F,F=m,m=s,g=g^S,F=F^U,A=A^C,m=m^q,S=v,U=b,C=i,q=u}function bf(v,b,i,u){v=v|0,b=b|0,i=i|0,u=u|0,xf(0,2048,4096,J,S,U,C,q),S=g=g^v,U=F=F^b,C=A=A^i,q=m=m^u}function vf(v,b,i,u){v=v|0,b=b|0,i=i|0,u=u|0,xf(0,2048,4096,J,S,U,C,q),g=g^v,F=F^b,A=A^i,m=m^u,S=v,U=b,C=i,q=u}function df(v,b,i,u){v=v|0,b=b|0,i=i|0,u=u|0,xf(0,2048,4096,J,S,U,C,q),S=g,U=F,C=A,q=m,g=g^v,F=F^b,A=A^i,m=m^u}function mf(v,b,i,u){v=v|0,b=b|0,i=i|0,u=u|0,xf(0,2048,4096,J,d,j,M,$),$=~k&$|k&$+1,M=~R&M|R&M+(($|0)==0),j=~Q&j|Q&j+((M|0)==0),d=~K&d|K&d+((j|0)==0),g=g^v,F=F^b,A=A^i,m=m^u}function Mf(v,b,i,u){v=v|0,b=b|0,i=i|0,u=u|0;var s=0,y=0,x=0,o=0,c=0,If=0,Lf=0,_f=0,jf=0,Sf=0;for(v=v^S,b=b^U,i=i^C,u=u^q,s=z|0,y=V|0,x=D|0,o=rf|0;(jf|0)<128;jf=jf+1|0)s>>>31&&(c=c^v,If=If^b,Lf=Lf^i,_f=_f^u),s=s<<1|y>>>31,y=y<<1|x>>>31,x=x<<1|o>>>31,o=o<<1,Sf=u&1,u=u>>>1|i<<31,i=i>>>1|b<<31,b=b>>>1|v<<31,v=v>>>1,Sf&&(v=v^3774873600);S=c,U=If,C=Lf,q=_f}function hf(v){v=v|0,J=v}function af(v,b,i,u){v=v|0,b=b|0,i=i|0,u=u|0,g=v,F=b,A=i,m=u}function Pf(v,b,i,u){v=v|0,b=b|0,i=i|0,u=u|0,S=v,U=b,C=i,q=u}function wf(v,b,i,u){v=v|0,b=b|0,i=i|0,u=u|0,d=v,j=b,M=i,$=u}function gf(v,b,i,u){v=v|0,b=b|0,i=i|0,u=u|0,K=v,Q=b,R=i,k=u}function yf(v,b,i,u){v=v|0,b=b|0,i=i|0,u=u|0,$=~k&$|k&u,M=~R&M|R&i,j=~Q&j|Q&b,d=~K&d|K&v}function sf(v){return v=v|0,v&15?-1:(E[v|0]=g>>>24,E[v|1]=g>>>16&255,E[v|2]=g>>>8&255,E[v|3]=g&255,E[v|4]=F>>>24,E[v|5]=F>>>16&255,E[v|6]=F>>>8&255,E[v|7]=F&255,E[v|8]=A>>>24,E[v|9]=A>>>16&255,E[v|10]=A>>>8&255,E[v|11]=A&255,E[v|12]=m>>>24,E[v|13]=m>>>16&255,E[v|14]=m>>>8&255,E[v|15]=m&255,16)}function uf(v){return v=v|0,v&15?-1:(E[v|0]=S>>>24,E[v|1]=S>>>16&255,E[v|2]=S>>>8&255,E[v|3]=S&255,E[v|4]=U>>>24,E[v|5]=U>>>16&255,E[v|6]=U>>>8&255,E[v|7]=U&255,E[v|8]=C>>>24,E[v|9]=C>>>16&255,E[v|10]=C>>>8&255,E[v|11]=C&255,E[v|12]=q>>>24,E[v|13]=q>>>16&255,E[v|14]=q>>>8&255,E[v|15]=q&255,16)}function cf(){Y(0,0,0,0),z=g,V=F,D=A,rf=m}function lf(v,b,i){v=v|0,b=b|0,i=i|0;var u=0;if(b&15)return-1;for(;(i|0)>=16;)Af[v&7](E[b|0]<<24|E[b|1]<<16|E[b|2]<<8|E[b|3],E[b|4]<<24|E[b|5]<<16|E[b|6]<<8|E[b|7],E[b|8]<<24|E[b|9]<<16|E[b|10]<<8|E[b|11],E[b|12]<<24|E[b|13]<<16|E[b|14]<<8|E[b|15]),E[b|0]=g>>>24,E[b|1]=g>>>16&255,E[b|2]=g>>>8&255,E[b|3]=g&255,E[b|4]=F>>>24,E[b|5]=F>>>16&255,E[b|6]=F>>>8&255,E[b|7]=F&255,E[b|8]=A>>>24,E[b|9]=A>>>16&255,E[b|10]=A>>>8&255,E[b|11]=A&255,E[b|12]=m>>>24,E[b|13]=m>>>16&255,E[b|14]=m>>>8&255,E[b|15]=m&255,u=u+16|0,b=b+16|0,i=i-16|0;return u|0}function pf(v,b,i){v=v|0,b=b|0,i=i|0;var u=0;if(b&15)return-1;for(;(i|0)>=16;)qf[v&1](E[b|0]<<24|E[b|1]<<16|E[b|2]<<8|E[b|3],E[b|4]<<24|E[b|5]<<16|E[b|6]<<8|E[b|7],E[b|8]<<24|E[b|9]<<16|E[b|10]<<8|E[b|11],E[b|12]<<24|E[b|13]<<16|E[b|14]<<8|E[b|15]),u=u+16|0,b=b+16|0,i=i-16|0;return u|0}var Af=[Y,ff,of,nf,bf,vf,df,mf],qf=[of,Mf];return{set_rounds:hf,set_state:af,set_iv:Pf,set_nonce:wf,set_mask:gf,set_counter:yf,get_state:sf,get_iv:uf,gcm_init:cf,cipher:lf,mac:pf}})(zf,B,X);return Rf.set_key=Bf,Rf};return L.ENC={ECB:0,CBC:2,CFB:4,OFB:6,CTR:7},L.DEC={ECB:1,CBC:3,CFB:5,OFB:6,CTR:7},L.MAC={CBC:0,GCM:1},L.HEAP_DATA=16384,L})(),$n=(function(){function e(r,n,a,t,f,l){a===void 0&&(a=!0),this.pos=0,this.len=0,this.mode=t,this.heap=f||Rn().subarray(Of.HEAP_DATA),this.asm=l||new Of(null,this.heap.buffer),this.pos=0,this.len=0;var p=r.length;if(p!==16&&p!==24&&p!==32)throw new kf("illegal key size");var h=new DataView(r.buffer,r.byteOffset,r.byteLength);if(this.asm.set_key(p>>2,h.getUint32(0),h.getUint32(4),h.getUint32(8),h.getUint32(12),p>16?h.getUint32(16):0,p>16?h.getUint32(20):0,p>24?h.getUint32(24):0,p>24?h.getUint32(28):0),n!==void 0){if(n.length!==16)throw new kf("illegal iv size");var w=new DataView(n.buffer,n.byteOffset,n.byteLength);this.asm.set_iv(w.getUint32(0),w.getUint32(4),w.getUint32(8),w.getUint32(12))}else this.asm.set_iv(0,0,0,0);this.padding=a}return e.prototype.AES_Encrypt_process=function(r){if(!In(r))throw new TypeError("data isn't of expected type");for(var n=this.asm,a=this.heap,t=Of.ENC[this.mode],f=Of.HEAP_DATA,l=this.pos,p=this.len,h=0,w=r.length||0,P=0,T=p+w&-16,L=0,B=new Uint8Array(T);w>0;)L=p0(a,l+p,r,h,w),p+=L,h+=L,w-=L,L=n.cipher(t,f+l,p),L&&B.set(a.subarray(l,l+L),P),P+=L,L<p?(l+=L,p-=L):(l=0,p=0);return this.pos=l,this.len=p,B},e.prototype.AES_Encrypt_finish=function(){var r=this.asm,n=this.heap,a=Of.ENC[this.mode],t=Of.HEAP_DATA,f=this.pos,l=this.len,p=16-l%16,h=l;if(this.hasOwnProperty("padding")){if(this.padding){for(var w=0;w<p;++w)n[f+l+w]=p;l+=p,h=l}else if(l%16)throw new kf("data length must be a multiple of the block size")}else l+=p;var P=new Uint8Array(h);return l&&r.cipher(a,t+f,l),h&&P.set(n.subarray(f,f+h)),this.pos=0,this.len=0,P},e.prototype.AES_Decrypt_process=function(r){if(!In(r))throw new TypeError("data isn't of expected type");var n=this.asm,a=this.heap,t=Of.DEC[this.mode],f=Of.HEAP_DATA,l=this.pos,p=this.len,h=0,w=r.length||0,P=0,T=p+w&-16,L=0,B=0;this.padding&&(L=p+w-T||16,T-=L);for(var X=new Uint8Array(T);w>0;)B=p0(a,l+p,r,h,w),p+=B,h+=B,w-=B,B=n.cipher(t,f+l,p-(w?0:L)),B&&X.set(a.subarray(l,l+B),P),P+=B,B<p?(l+=B,p-=B):(l=0,p=0);return this.pos=l,this.len=p,X},e.prototype.AES_Decrypt_finish=function(){var r=this.asm,n=this.heap,a=Of.DEC[this.mode],t=Of.HEAP_DATA,f=this.pos,l=this.len,p=l;if(l>0){if(l%16){if(this.hasOwnProperty("padding"))throw new kf("data length must be a multiple of the block size");l+=16-l%16}if(r.cipher(a,t+f,l),this.hasOwnProperty("padding")&&this.padding){var h=n[f+p-1];if(h<1||h>16||h>p)throw new Dn("bad padding");for(var w=0,P=h;P>1;P--)w|=h^n[f+p-P];if(w)throw new Dn("bad padding");p-=h}}var T=new Uint8Array(p);return p>0&&T.set(n.subarray(f,f+p)),this.pos=0,this.len=0,T},e})(),Ha=65279,Rr=0xffffffffffff0,Na=(function(){function e(r,n,a,t,f,l){if(t===void 0&&(t=16),this.counter=1,this.dataLength=-1,this.aes=l||new $n(r,void 0,void 0,"CCM"),t<4||t>16||t&1)throw new kf("illegal tagSize value");if(this.tagSize=t,this.nonce=n,n.length<8||n.length>13)throw new kf("illegal nonce length");if(this.lengthSize=15-n.length,n=new Uint8Array(n.length+1),n[0]=this.lengthSize-1,n.set(this.nonce,1),f<0||f>Rr||f>Math.pow(2,8*this.lengthSize)-16)throw new kf("illegal dataLength value");if(a!==void 0){if(a.length>Ha)throw new kf("illegal adata length");this.adata=a.length?a:void 0}this.dataLength=f,this.counter=1,this.AES_CCM_calculate_iv(),this.AES_CTR_set_options(n,this.counter,8*this.lengthSize)}return e.encrypt=function(r,n,a,t,f){return f===void 0&&(f=16),new e(n,a,t,f,r.length).encrypt(r)},e.decrypt=function(r,n,a,t,f){return f===void 0&&(f=16),new e(n,a,t,f,r.length-f).decrypt(r)},e.prototype.encrypt=function(r){this.dataLength=r.length||0;var n=this.AES_CCM_Encrypt_process(r),a=this.AES_CCM_Encrypt_finish(),t=new Uint8Array(n.length+a.length);return n.length&&t.set(n),a.length&&t.set(a,n.length),t},e.prototype.decrypt=function(r){this.dataLength=r.length||0;var n=this.AES_CCM_Decrypt_process(r),a=this.AES_CCM_Decrypt_finish(),t=new Uint8Array(n.length+a.length);return n.length&&t.set(n),a.length&&t.set(a,n.length),t},e.prototype.AES_CCM_calculate_iv=function(){var r=this.nonce,n=this.adata,a=this.tagSize,t=this.lengthSize,f=this.dataLength,l=new Uint8Array(16+(n?2+n.length:0));l[0]=(n?64:0)|a-2<<2|t-1,l.set(r,1),t>6&&(l[9]=f/4294967296>>>16&15),t>5&&(l[10]=f/4294967296>>>8&255),t>4&&(l[11]=f/4294967296&255),t>3&&(l[12]=f>>>24),t>2&&(l[13]=f>>>16&255),l[14]=f>>>8&255,l[15]=f&255,n&&(l[16]=n.length>>>8&255,l[17]=n.length&255,l.set(n,18)),this._cbc_mac_process(l),this.aes.asm.get_state(Of.HEAP_DATA);var p=new Uint8Array(this.aes.heap.subarray(0,16)),h=new DataView(p.buffer,p.byteOffset,p.byteLength);this.aes.asm.set_iv(h.getUint32(0),h.getUint32(4),h.getUint32(8),h.getUint32(12))},e.prototype._cbc_mac_process=function(r){for(var n=this.aes.heap,a=this.aes.asm,t=0,f=r.length||0,l=0;f>0;){for(l=p0(n,0,r,t,f);l&15;)n[l++]=0;t+=l,f-=l,a.mac(Of.MAC.CBC,Of.HEAP_DATA,l)}},e.prototype.AES_CCM_Encrypt_process=function(r){var n=this.aes.asm,a=this.aes.heap,t=0,f=r.length||0,l=this.counter,p=this.aes.pos,h=this.aes.len,w=h+f&-16,P=0,T=0;if((l-1<<4)+h+f>Rr)throw new RangeError("counter overflow");for(var L=new Uint8Array(w);f>0;)T=p0(a,p+h,r,t,f),h+=T,t+=T,f-=T,T=n.mac(Of.MAC.CBC,Of.HEAP_DATA+p,h),T=n.cipher(Of.ENC.CTR,Of.HEAP_DATA+p,T),T&&L.set(a.subarray(p,p+T),P),l+=T>>>4,P+=T,T<h?(p+=T,h-=T):(p=0,h=0);return this.counter=l,this.aes.pos=p,this.aes.len=h,L},e.prototype.AES_CCM_Encrypt_finish=function(){for(var r=this.aes.asm,n=this.aes.heap,a=this.tagSize,t=this.aes.pos,f=this.aes.len,l=new Uint8Array(f+a),p=f;p&15;p++)n[t+p]=0;return r.mac(Of.MAC.CBC,Of.HEAP_DATA+t,p),r.cipher(Of.ENC.CTR,Of.HEAP_DATA+t,p),f&&l.set(n.subarray(t,t+f)),r.set_counter(0,0,0,0),r.get_iv(Of.HEAP_DATA),r.cipher(Of.ENC.CTR,Of.HEAP_DATA,16),l.set(n.subarray(0,a),f),this.counter=1,this.aes.pos=0,this.aes.len=0,l},e.prototype.AES_CCM_Decrypt_process=function(r){var n=0,a=r.length||0,t=this.aes.asm,f=this.aes.heap,l=this.counter,p=this.tagSize,h=this.aes.pos,w=this.aes.len,P=0,T=w+a>p?w+a-p&-16:0,L=w+a-T,B=0;if((l-1<<4)+w+a>Rr)throw new RangeError("counter overflow");for(var X=new Uint8Array(T);a>L;)B=p0(f,h+w,r,n,a-L),w+=B,n+=B,a-=B,B=t.cipher(Of.DEC.CTR,Of.HEAP_DATA+h,B),B=t.mac(Of.MAC.CBC,Of.HEAP_DATA+h,B),B&&X.set(f.subarray(h,h+B),P),l+=B>>>4,P+=B,h=0,w=0;return a>0&&(w+=p0(f,0,r,n,a)),this.counter=l,this.aes.pos=h,this.aes.len=w,X},e.prototype.AES_CCM_Decrypt_finish=function(){var r=this.aes.asm,n=this.aes.heap,a=this.tagSize,t=this.aes.pos,f=this.aes.len,l=f-a;if(f<a)throw new $a("authentication tag not found");var p=new Uint8Array(l),h=new Uint8Array(n.subarray(t+l,t+f));r.cipher(Of.DEC.CTR,Of.HEAP_DATA+t,l+15&-16),p.set(n.subarray(t,t+l));for(var w=l;w&15;w++)n[t+w]=0;r.mac(Of.MAC.CBC,Of.HEAP_DATA+t,w),r.set_counter(0,0,0,0),r.get_iv(Of.HEAP_DATA),r.cipher(Of.ENC.CTR,Of.HEAP_DATA,16);for(var P=0,T=0;T<a;++T)P|=h[T]^n[T];return this.counter=1,this.aes.pos=0,this.aes.len=0,p},e.pro