UNPKG

wsemi

Version:

A support package for web developer.

6 lines 470 kB
/*! * wsemi v1.8.15 * (c) 2018-2021 yuda-lyu(semisphere) * Released under the MIT License. */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("xlsx"),require("dayjs"),require("xss"),require("viewerjs"),require("child_process"),require("fs"),require("readline"),require("path"),require("stream"),require("events"),require("chokidar"),require("crypto"),require("ua-parser-js"),require("htmlparser"),require("tesseract.js"),require("fuse.js")):"function"==typeof define&&define.amd?define(["exports","xlsx","dayjs","xss","viewerjs","child_process","fs","readline","path","stream","events","chokidar","crypto","ua-parser-js","htmlparser","tesseract.js","fuse.js"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).wsemi={},e.XLSX,e.dayjs,e.filterXSS,e.viewerjs,e.child_process,e.fs,e.readline,e.path,e.stream,e.events,e.chokidar,e.crypto,e.UAParser,e.htmlparser,e.tesseractjs,e.Fuse)}(this,(function(e,t,r,n,i,o,a,l,u,c,s,f,g,d,p,A,h){"use strict";function m(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var I=m(t);function v(e){return"[object ArrayBuffer]"===Object.prototype.toString.call(e)}function y(e){if(!v(e))return new Uint8Array;return new Uint8Array(e)}var B=Array.isArray,w="object"==typeof global&&global&&global.Object===Object&&global,E="object"==typeof self&&self&&self.Object===Object&&self,b=w||E||Function("return this")(),C=b.Symbol,Q=Object.prototype,x=Q.hasOwnProperty,D=Q.toString,F=C?C.toStringTag:void 0;var S=Object.prototype.toString;var k="[object Null]",q="[object Undefined]",N=C?C.toStringTag:void 0;function H(e){return null==e?void 0===e?q:k:N&&N in Object(e)?function(e){var t=x.call(e,F),r=e[F];try{e[F]=void 0;var n=!0}catch(e){}var i=D.call(e);return n&&(t?e[F]=r:delete e[F]),i}(e):function(e){return S.call(e)}(e)}function U(e){return null!=e&&"object"==typeof e}var M="[object Symbol]";function R(e){return"symbol"==typeof e||U(e)&&H(e)==M}var Y=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,L=/^\w*$/;function O(e,t){if(B(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!R(e))||(L.test(e)||!Y.test(e)||null!=t&&e in Object(t))}function J(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var j="[object AsyncFunction]",G="[object Function]",z="[object GeneratorFunction]",T="[object Proxy]";function V(e){if(!J(e))return!1;var t=H(e);return t==G||t==z||t==j||t==T}var P,X=b["__core-js_shared__"],K=(P=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+P:"";var W=Function.prototype.toString;function _(e){if(null!=e){try{return W.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var Z=/^\[object .+?Constructor\]$/,$=Function.prototype,ee=Object.prototype,te=$.toString,re=ee.hasOwnProperty,ne=RegExp("^"+te.call(re).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ie(e){return!(!J(e)||(t=e,K&&K in t))&&(V(e)?ne:Z).test(_(e));var t}function oe(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return ie(r)?r:void 0}var ae=oe(Object,"create");var le=Object.prototype.hasOwnProperty;var ue=Object.prototype.hasOwnProperty;function ce(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function se(e,t){return e===t||e!=e&&t!=t}function fe(e,t){for(var r=e.length;r--;)if(se(e[r][0],t))return r;return-1}ce.prototype.clear=function(){this.__data__=ae?ae(null):{},this.size=0},ce.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ce.prototype.get=function(e){var t=this.__data__;if(ae){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return le.call(t,e)?t[e]:void 0},ce.prototype.has=function(e){var t=this.__data__;return ae?void 0!==t[e]:ue.call(t,e)},ce.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ae&&void 0===t?"__lodash_hash_undefined__":t,this};var ge=Array.prototype.splice;function de(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}de.prototype.clear=function(){this.__data__=[],this.size=0},de.prototype.delete=function(e){var t=this.__data__,r=fe(t,e);return!(r<0)&&(r==t.length-1?t.pop():ge.call(t,r,1),--this.size,!0)},de.prototype.get=function(e){var t=this.__data__,r=fe(t,e);return r<0?void 0:t[r][1]},de.prototype.has=function(e){return fe(this.__data__,e)>-1},de.prototype.set=function(e,t){var r=this.__data__,n=fe(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var pe=oe(b,"Map");function Ae(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function he(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}he.prototype.clear=function(){this.size=0,this.__data__={hash:new ce,map:new(pe||de),string:new ce}},he.prototype.delete=function(e){var t=Ae(this,e).delete(e);return this.size-=t?1:0,t},he.prototype.get=function(e){return Ae(this,e).get(e)},he.prototype.has=function(e){return Ae(this,e).has(e)},he.prototype.set=function(e,t){var r=Ae(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var me="Expected a function";function Ie(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(me);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(Ie.Cache||he),r}Ie.Cache=he;var ve=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ye=/\\(\\)?/g,Be=function(e){var t=Ie(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ve,(function(e,r,n,i){t.push(n?i.replace(ye,"$1"):r||e)})),t})),we=Be;function Ee(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var be=1/0,Ce=C?C.prototype:void 0,Qe=Ce?Ce.toString:void 0;function xe(e){if("string"==typeof e)return e;if(B(e))return Ee(e,xe)+"";if(R(e))return Qe?Qe.call(e):"";var t=e+"";return"0"==t&&1/e==-be?"-0":t}function De(e){return null==e?"":xe(e)}function Fe(e,t){return B(e)?e:O(e,t)?[e]:we(De(e))}var Se=1/0;function ke(e){if("string"==typeof e||R(e))return e;var t=e+"";return"0"==t&&1/e==-Se?"-0":t}function qe(e,t){for(var r=0,n=(t=Fe(t,e)).length;null!=e&&r<n;)e=e[ke(t[r++])];return r&&r==n?e:void 0}function Ne(e,t,r){var n=null==e?void 0:qe(e,t);return void 0===n?r:n}function He(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ue(e){if(He(e)){for(let t in e)return!0;return!1}return!1}function Me(e){return"[object Array]"===Object.prototype.toString.call(e)}function Re(e){return"[object String]"===Object.prototype.toString.call(e)}function Ye(e){return!(!Re(e)||""===e)}function Le(e){return"[object Number]"===Object.prototype.toString.call(e)}function Oe(e){return e!=e}function Je(e){let t=!1;if(Ye(e))t=!isNaN(Number(e));else if(Le(e)){if(Oe(e))return!1;t=!0}return t}function je(e,t){return!!He(e)&&(!(!Ye(t)&&!Je(t))&&t in e)}function Ge(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}var ze,Te=function(e,t,r){for(var n=-1,i=Object(e),o=r(e),a=o.length;a--;){var l=o[ze?a:++n];if(!1===t(i[l],l,i))break}return e};function Ve(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Pe(e){return U(e)&&"[object Arguments]"==H(e)}var Xe=Object.prototype,Ke=Xe.hasOwnProperty,We=Xe.propertyIsEnumerable,_e=Pe(function(){return arguments}())?Pe:function(e){return U(e)&&Ke.call(e,"callee")&&!We.call(e,"callee")},Ze=_e;var $e="object"==typeof e&&e&&!e.nodeType&&e,et=$e&&"object"==typeof module&&module&&!module.nodeType&&module,tt=et&&et.exports===$e?b.Buffer:void 0,rt=(tt?tt.isBuffer:void 0)||function(){return!1},nt=9007199254740991,it=/^(?:0|[1-9]\d*)$/;function ot(e,t){var r=typeof e;return!!(t=null==t?nt:t)&&("number"==r||"symbol"!=r&&it.test(e))&&e>-1&&e%1==0&&e<t}var at=9007199254740991;function lt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=at}var ut={};function ct(e){return function(t){return e(t)}}ut["[object Float32Array]"]=ut["[object Float64Array]"]=ut["[object Int8Array]"]=ut["[object Int16Array]"]=ut["[object Int32Array]"]=ut["[object Uint8Array]"]=ut["[object Uint8ClampedArray]"]=ut["[object Uint16Array]"]=ut["[object Uint32Array]"]=!0,ut["[object Arguments]"]=ut["[object Array]"]=ut["[object ArrayBuffer]"]=ut["[object Boolean]"]=ut["[object DataView]"]=ut["[object Date]"]=ut["[object Error]"]=ut["[object Function]"]=ut["[object Map]"]=ut["[object Number]"]=ut["[object Object]"]=ut["[object RegExp]"]=ut["[object Set]"]=ut["[object String]"]=ut["[object WeakMap]"]=!1;var st="object"==typeof e&&e&&!e.nodeType&&e,ft=st&&"object"==typeof module&&module&&!module.nodeType&&module,gt=ft&&ft.exports===st&&w.process,dt=function(){try{var e=ft&&ft.require&&ft.require("util").types;return e||gt&&gt.binding&&gt.binding("util")}catch(e){}}(),pt=dt&&dt.isTypedArray,At=pt?ct(pt):function(e){return U(e)&&lt(e.length)&&!!ut[H(e)]},ht=Object.prototype.hasOwnProperty;function mt(e,t){var r=B(e),n=!r&&Ze(e),i=!r&&!n&&rt(e),o=!r&&!n&&!i&&At(e),a=r||n||i||o,l=a?Ve(e.length,String):[],u=l.length;for(var c in e)!t&&!ht.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ot(c,u))||l.push(c);return l}var It=Object.prototype;function vt(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||It)}function yt(e,t){return function(r){return e(t(r))}}var Bt=yt(Object.keys,Object),wt=Object.prototype.hasOwnProperty;function Et(e){if(!vt(e))return Bt(e);var t=[];for(var r in Object(e))wt.call(e,r)&&"constructor"!=r&&t.push(r);return t}function bt(e){return null!=e&&lt(e.length)&&!V(e)}function Ct(e){return bt(e)?mt(e):Et(e)}var Qt=function(e,t){return function(r,n){if(null==r)return r;if(!bt(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=Object(r);(t?o--:++o<i)&&!1!==n(a[o],o,a););return r}}((function(e,t){return e&&Te(e,t,Ct)})),xt=Qt;function Dt(e,t){var r=!0;return xt(e,(function(e,n,i){return r=!!t(e,n,i)})),r}function Ft(e){var t=this.__data__=new de(e);this.size=t.size}Ft.prototype.clear=function(){this.__data__=new de,this.size=0},Ft.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Ft.prototype.get=function(e){return this.__data__.get(e)},Ft.prototype.has=function(e){return this.__data__.has(e)},Ft.prototype.set=function(e,t){var r=this.__data__;if(r instanceof de){var n=r.__data__;if(!pe||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new he(n)}return r.set(e,t),this.size=r.size,this};function St(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new he;++t<r;)this.add(e[t])}function kt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function qt(e,t){return e.has(t)}St.prototype.add=St.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},St.prototype.has=function(e){return this.__data__.has(e)};var Nt=1,Ht=2;function Ut(e,t,r,n,i,o){var a=r&Nt,l=e.length,u=t.length;if(l!=u&&!(a&&u>l))return!1;var c=o.get(e),s=o.get(t);if(c&&s)return c==t&&s==e;var f=-1,g=!0,d=r&Ht?new St:void 0;for(o.set(e,t),o.set(t,e);++f<l;){var p=e[f],A=t[f];if(n)var h=a?n(A,p,f,t,e,o):n(p,A,f,e,t,o);if(void 0!==h){if(h)continue;g=!1;break}if(d){if(!kt(t,(function(e,t){if(!qt(d,t)&&(p===e||i(p,e,r,n,o)))return d.push(t)}))){g=!1;break}}else if(p!==A&&!i(p,A,r,n,o)){g=!1;break}}return o.delete(e),o.delete(t),g}var Mt=b.Uint8Array;function Rt(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function Yt(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}var Lt=1,Ot=2,Jt="[object Boolean]",jt="[object Date]",Gt="[object Error]",zt="[object Map]",Tt="[object Number]",Vt="[object RegExp]",Pt="[object Set]",Xt="[object String]",Kt="[object Symbol]",Wt="[object ArrayBuffer]",_t="[object DataView]",Zt=C?C.prototype:void 0,$t=Zt?Zt.valueOf:void 0;function er(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function tr(e,t,r){var n=t(e);return B(e)?n:er(n,r(e))}function rr(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}function nr(){return[]}var ir=Object.prototype.propertyIsEnumerable,or=Object.getOwnPropertySymbols,ar=or?function(e){return null==e?[]:(e=Object(e),rr(or(e),(function(t){return ir.call(e,t)})))}:nr;function lr(e){return tr(e,Ct,ar)}var ur=1,cr=Object.prototype.hasOwnProperty;var sr=oe(b,"DataView"),fr=oe(b,"Promise"),gr=oe(b,"Set"),dr=oe(b,"WeakMap"),pr="[object Map]",Ar="[object Promise]",hr="[object Set]",mr="[object WeakMap]",Ir="[object DataView]",vr=_(sr),yr=_(pe),Br=_(fr),wr=_(gr),Er=_(dr),br=H;(sr&&br(new sr(new ArrayBuffer(1)))!=Ir||pe&&br(new pe)!=pr||fr&&br(fr.resolve())!=Ar||gr&&br(new gr)!=hr||dr&&br(new dr)!=mr)&&(br=function(e){var t=H(e),r="[object Object]"==t?e.constructor:void 0,n=r?_(r):"";if(n)switch(n){case vr:return Ir;case yr:return pr;case Br:return Ar;case wr:return hr;case Er:return mr}return t});var Cr=br,Qr=1,xr="[object Arguments]",Dr="[object Array]",Fr="[object Object]",Sr=Object.prototype.hasOwnProperty;function kr(e,t,r,n,i,o){var a=B(e),l=B(t),u=a?Dr:Cr(e),c=l?Dr:Cr(t),s=(u=u==xr?Fr:u)==Fr,f=(c=c==xr?Fr:c)==Fr,g=u==c;if(g&&rt(e)){if(!rt(t))return!1;a=!0,s=!1}if(g&&!s)return o||(o=new Ft),a||At(e)?Ut(e,t,r,n,i,o):function(e,t,r,n,i,o,a){switch(r){case _t:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Wt:return!(e.byteLength!=t.byteLength||!o(new Mt(e),new Mt(t)));case Jt:case jt:case Tt:return se(+e,+t);case Gt:return e.name==t.name&&e.message==t.message;case Vt:case Xt:return e==t+"";case zt:var l=Rt;case Pt:var u=n&Lt;if(l||(l=Yt),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;n|=Ot,a.set(e,t);var s=Ut(l(e),l(t),n,i,o,a);return a.delete(e),s;case Kt:if($t)return $t.call(e)==$t.call(t)}return!1}(e,t,u,r,n,i,o);if(!(r&Qr)){var d=s&&Sr.call(e,"__wrapped__"),p=f&&Sr.call(t,"__wrapped__");if(d||p){var A=d?e.value():e,h=p?t.value():t;return o||(o=new Ft),i(A,h,r,n,o)}}return!!g&&(o||(o=new Ft),function(e,t,r,n,i,o){var a=r&ur,l=lr(e),u=l.length;if(u!=lr(t).length&&!a)return!1;for(var c=u;c--;){var s=l[c];if(!(a?s in t:cr.call(t,s)))return!1}var f=o.get(e),g=o.get(t);if(f&&g)return f==t&&g==e;var d=!0;o.set(e,t),o.set(t,e);for(var p=a;++c<u;){var A=e[s=l[c]],h=t[s];if(n)var m=a?n(h,A,s,t,e,o):n(A,h,s,e,t,o);if(!(void 0===m?A===h||i(A,h,r,n,o):m)){d=!1;break}p||(p="constructor"==s)}if(d&&!p){var I=e.constructor,v=t.constructor;I==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof I&&I instanceof I&&"function"==typeof v&&v instanceof v||(d=!1)}return o.delete(e),o.delete(t),d}(e,t,r,n,i,o))}function qr(e,t,r,n,i){return e===t||(null==e||null==t||!U(e)&&!U(t)?e!=e&&t!=t:kr(e,t,r,n,qr,i))}var Nr=1,Hr=2;function Ur(e){return e==e&&!J(e)}function Mr(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}function Rr(e){var t=function(e){for(var t=Ct(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Ur(i)]}return t}(e);return 1==t.length&&t[0][2]?Mr(t[0][0],t[0][1]):function(r){return r===e||function(e,t,r,n){var i=r.length,o=i,a=!n;if(null==e)return!o;for(e=Object(e);i--;){var l=r[i];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<o;){var u=(l=r[i])[0],c=e[u],s=l[1];if(a&&l[2]){if(void 0===c&&!(u in e))return!1}else{var f=new Ft;if(n)var g=n(c,s,u,e,t,f);if(!(void 0===g?qr(s,c,Nr|Hr,n,f):g))return!1}}return!0}(r,e,t)}}function Yr(e,t){return null!=e&&t in Object(e)}function Lr(e,t){return null!=e&&function(e,t,r){for(var n=-1,i=(t=Fe(t,e)).length,o=!1;++n<i;){var a=ke(t[n]);if(!(o=null!=e&&r(e,a)))break;e=e[a]}return o||++n!=i?o:!!(i=null==e?0:e.length)&&lt(i)&&ot(a,i)&&(B(e)||Ze(e))}(e,t,Yr)}var Or=1,Jr=2;function jr(e){return e}function Gr(e){return function(t){return null==t?void 0:t[e]}}function zr(e){return O(e)?Gr(ke(e)):function(e){return function(t){return qe(t,e)}}(e)}function Tr(e){return"function"==typeof e?e:null==e?jr:"object"==typeof e?B(e)?function(e,t){return O(e)&&Ur(t)?Mr(ke(e),t):function(r){var n=Ne(r,e);return void 0===n&&n===t?Lr(r,e):qr(t,n,Or|Jr)}}(e[0],e[1]):Rr(e):zr(e)}function Vr(e,t,r){if(!J(r))return!1;var n=typeof t;return!!("number"==n?bt(r)&&ot(t,r.length):"string"==n&&t in r)&&se(r[t],e)}function Pr(e,t,r){var n=B(e)?Ge:Dt;return r&&Vr(e,t,r)&&(t=void 0),n(e,Tr(t))}var Xr=yt(Object.getPrototypeOf,Object),Kr="[object Object]",Wr=Function.prototype,_r=Object.prototype,Zr=Wr.toString,$r=_r.hasOwnProperty,en=Zr.call(Object);function tn(e){if(!U(e)||H(e)!=Kr)return!1;var t=Xr(e);if(null===t)return!0;var r=$r.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Zr.call(r)==en}function rn(e){return U(t=e)&&1===t.nodeType&&!tn(t);var t}function nn(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function on(e){return"function"==typeof e?e:jr}function an(e,t){return(B(e)?nn:xt)(e,on(t))}function ln(e,t){var r=-1,n=bt(e)?Array(e.length):[];return xt(e,(function(e,i,o){n[++r]=t(e,i,o)})),n}function un(e,t){return(B(e)?Ee:ln)(e,Tr(t))}var cn=C?C.isConcatSpreadable:void 0;function sn(e){return B(e)||Ze(e)||!!(cn&&e&&e[cn])}function fn(e,t,r,n,i){var o=-1,a=e.length;for(r||(r=sn),i||(i=[]);++o<a;){var l=e[o];t>0&&r(l)?t>1?fn(l,t-1,r,n,i):er(i,l):n||(i[i.length]=l)}return i}function gn(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function dn(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return er(B(r)?gn(r):[r],fn(t,1))}function pn(e){return"[object Undefined]"===Object.prototype.toString.call(e)}function An(e){return"[object Null]"===Object.prototype.toString.call(e)}function hn(e){if(He(e)){for(let t in e)return!1;return!0}return!1}function mn(e){return!(!Re(e)||""!==e)}function In(e){return!!Me(e)&&0===e.length}function vn(e){return!!pn(e)||(!!An(e)||(!!hn(e)||(!!mn(e)||(!!In(e)||!!Oe(e)))))}function yn(e){return!!Me(e)&&(0!==e.length&&(1!==e.length||!vn(e[0])))}function Bn(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function wn(e){return e!=e}function En(e,t,r){return t==t?function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}(e,t,r):Bn(e,wn,r)}function bn(e,t){return!!(null==e?0:e.length)&&En(e,t,0)>-1}function Cn(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}var Qn=gr&&1/Yt(new gr([,-0]))[1]==1/0?function(e){return new gr(e)}:function(){},xn=Qn,Dn=200;function Fn(e,t,r){var n=-1,i=bn,o=e.length,a=!0,l=[],u=l;if(r)a=!1,i=Cn;else if(o>=Dn){var c=t?null:xn(e);if(c)return Yt(c);a=!1,i=qt,u=new St}else u=t?[]:l;e:for(;++n<o;){var s=e[n],f=t?t(s):s;if(s=r||0!==s?s:0,a&&f==f){for(var g=u.length;g--;)if(u[g]===f)continue e;t&&u.push(f),l.push(s)}else i(u,f,r)||(u!==l&&u.push(f),l.push(s))}return l}function Sn(e){return e&&e.length?Fn(e):[]}function kn(e){if(!yn(e))return[];let t=[];return an(e,(function(e){let r=Ct(e);t=[...t,...r],t=Sn(t)})),t}var qn="[object String]";var Nn=Gr("length"),Hn=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Un(e){return Hn.test(e)}var Mn="\\ud800-\\udfff",Rn="["+Mn+"]",Yn="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ln="\\ud83c[\\udffb-\\udfff]",On="[^"+Mn+"]",Jn="(?:\\ud83c[\\udde6-\\uddff]){2}",jn="[\\ud800-\\udbff][\\udc00-\\udfff]",Gn="(?:"+Yn+"|"+Ln+")"+"?",zn="[\\ufe0e\\ufe0f]?",Tn=zn+Gn+("(?:\\u200d(?:"+[On,Jn,jn].join("|")+")"+zn+Gn+")*"),Vn="(?:"+[On+Yn+"?",Yn,Jn,jn,Rn].join("|")+")",Pn=RegExp(Ln+"(?="+Ln+")|"+Vn+Tn,"g");function Xn(e){return Un(e)?function(e){for(var t=Pn.lastIndex=0;Pn.test(e);)++t;return t}(e):Nn(e)}var Kn="[object Map]",Wn="[object Set]";function _n(e){if(null==e)return 0;if(bt(e))return"string"==typeof(t=e)||!B(t)&&U(t)&&H(t)==qn?Xn(e):e.length;var t,r=Cr(e);return r==Kn||r==Wn?e.size:Et(e).length}var Zn="[object Boolean]";function $n(e){return!0===e||!1===e||U(e)&&H(e)==Zn}function ei(e){return $n(e)}function ti(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(pn(e))return"";let r="";try{r=t?JSON.stringify(e,null,2):JSON.stringify(e)}catch(e){r=""}return r}function ri(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!yn(e))return[];if(yn(t)||(t=kn(e)),0===_n(t))return[];let n=!1;if(an(e,(function(e){Ue(e)||(n=!0)})),n)return[];let i=Ne(r,"empty",""),o=[];return an(e,(function(e){let r=un(t,(function(t){return je(e,t)?ei(e[t])?e[t]?"true":"false":Re(e[t])||Je(e[t])?e[t]:ti(e[t]):i}));o.push(r)})),o}function ni(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!yn(e))return[];yn(t)||(t=kn(e)),Ue(r)||(r={},an(t,(e=>{r[e]=e})));let n=!1;return an(e,(function(e){Ue(e)||(n=!0)})),n?[]:dn([un(t,(function(e){return Ne(r,e)}))],ri(e,t))}function ii(){return"undefined"!=typeof window&&void 0!==window.document}function oi(){return"undefined"!=typeof self?self:ii()?window:"undefined"!=typeof global?global:null}function ai(){let e=oi();if(Ue(Ne(I,"utils")))return I;if(Ue(Ne(I,"default.utils")))return Ne(I,"default");if(Ue(Ne(e,"XLSX.utils")))return Ne(e,"XLSX");if(Ue(Ne(e,"XLSX.default.utils")))return Ne(e,"XLSX.default");if(Ue(Ne(e,"xlsx.utils")))return Ne(e,"xlsx");if(Ue(Ne(e,"xlsx.default.utils")))return Ne(e,"xlsx.default");throw console.log("XLSX",I,"g.XLSX",e.XLSX,"g.xlsx",e.xlsx),new Error("invalid XLSX, g.XLSX, g.xlsx")}function li(e){if(!Me(e)&&!rn(e))return{error:"data is not an array or element"};let t=null;try{let r=ai().utils;if(Me(e)){Pr(e,Ue)&&(e=ni(e)),t=r.aoa_to_sheet(e)}else rn(e)&&(t=r.table_to_sheet(e,{raw:!0}))}catch(e){return{error:e}}return t}function ui(e){if(!Ye(e))return!1;let t="YYYY-MM";return e===r(e,t).format(t)}var ci=/\s/;var si=/^\s+/;function fi(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&ci.test(e.charAt(t)););return t}(e)+1).replace(si,""):e}var gi=NaN,di=/^[-+]0x[0-9a-f]+$/i,pi=/^0b[01]+$/i,Ai=/^0o[0-7]+$/i,hi=parseInt;function mi(e){if("number"==typeof e)return e;if(R(e))return gi;if(J(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=J(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=fi(e);var r=pi.test(e);return r||Ai.test(e)?hi(e.slice(2),r?2:8):di.test(e)?gi:+e}var Ii=1/0,vi=17976931348623157e292;function yi(e){return e?(e=mi(e))===Ii||e===-Ii?(e<0?-1:1)*vi:e==e?e:0:0===e?e:0}function Bi(e){var t=yi(e),r=t%1;return t==t?r?t-r:t:0}function wi(e){if(!Je(e))return 0;return yi(e)}function Ei(e){return!!Je(e)&&(e=wi(e),"number"==typeof(t=e)&&t==Bi(t));var t}var bi="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ci(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qi={exports:{}};var xi,Di={exports:{}};function Fi(){return xi||(xi=1,function(e,t){var r;e.exports=(r=r||function(e,t){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==bi&&bi.crypto&&(r=bi.crypto),!r)try{r=require("crypto")}catch(e){}var n=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),o={},a=o.lib={},l=a.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=a.WordArray=l.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:4*e.length},toString:function(e){return(e||s).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var a=r[o>>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var l=0;l<i;l+=4)t[n+l>>>2]=r[l>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(n());return new u.init(t,e)}}),c=o.enc={},s=c.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new u.init(r,t/2)}},f=c.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new u.init(r,t)}},g=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},d=a.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=g.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,i=n.words,o=n.sigBytes,a=this.blockSize,l=o/(4*a),c=(l=t?e.ceil(l):e.max((0|l)-this._minBufferSize,0))*a,s=e.min(4*c,o);if(c){for(var f=0;f<c;f+=a)this._doProcessBlock(i,f);r=i.splice(0,c),n.sigBytes-=s}return new u.init(r,s)},clone:function(){var e=l.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=d.extend({cfg:l.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new p.HMAC.init(e,r).finalize(t)}}});var p=o.algo={};return o}(Math),r)}(Di)),Di.exports}var Si={exports:{}};!function(e,t){var r;e.exports=(r=Fi(),function(){var e=r,t=e.lib.WordArray;function n(e,r,n){for(var i=[],o=0,a=0;a<r;a++)if(a%4){var l=n[e.charCodeAt(a-1)]<<a%4*2|n[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=l<<24-o%4*8,o++}return t.create(i,o)}e.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o<r;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,l=0;l<4&&o+.75*l<r;l++)i.push(n.charAt(a>>>6*(3-l)&63));var u=n.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<r.length;o++)i[r.charCodeAt(o)]=o}var a=r.charAt(64);if(a){var l=e.indexOf(a);-1!==l&&(t=l)}return n(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),r.enc.Base64)}(Si);var ki,qi=Si.exports,Ni=Ci(qi),Hi={exports:{}};function Ui(){return ki||(ki=1,function(e,t){var r;e.exports=(r=Fi(),function(e){var t=r,n=t.lib,i=n.WordArray,o=n.Hasher,a=t.algo,l=[];!function(){for(var t=0;t<64;t++)l[t]=4294967296*e.abs(e.sin(t+1))|0}();var u=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],u=e[t+1],d=e[t+2],p=e[t+3],A=e[t+4],h=e[t+5],m=e[t+6],I=e[t+7],v=e[t+8],y=e[t+9],B=e[t+10],w=e[t+11],E=e[t+12],b=e[t+13],C=e[t+14],Q=e[t+15],x=o[0],D=o[1],F=o[2],S=o[3];x=c(x,D,F,S,a,7,l[0]),S=c(S,x,D,F,u,12,l[1]),F=c(F,S,x,D,d,17,l[2]),D=c(D,F,S,x,p,22,l[3]),x=c(x,D,F,S,A,7,l[4]),S=c(S,x,D,F,h,12,l[5]),F=c(F,S,x,D,m,17,l[6]),D=c(D,F,S,x,I,22,l[7]),x=c(x,D,F,S,v,7,l[8]),S=c(S,x,D,F,y,12,l[9]),F=c(F,S,x,D,B,17,l[10]),D=c(D,F,S,x,w,22,l[11]),x=c(x,D,F,S,E,7,l[12]),S=c(S,x,D,F,b,12,l[13]),F=c(F,S,x,D,C,17,l[14]),x=s(x,D=c(D,F,S,x,Q,22,l[15]),F,S,u,5,l[16]),S=s(S,x,D,F,m,9,l[17]),F=s(F,S,x,D,w,14,l[18]),D=s(D,F,S,x,a,20,l[19]),x=s(x,D,F,S,h,5,l[20]),S=s(S,x,D,F,B,9,l[21]),F=s(F,S,x,D,Q,14,l[22]),D=s(D,F,S,x,A,20,l[23]),x=s(x,D,F,S,y,5,l[24]),S=s(S,x,D,F,C,9,l[25]),F=s(F,S,x,D,p,14,l[26]),D=s(D,F,S,x,v,20,l[27]),x=s(x,D,F,S,b,5,l[28]),S=s(S,x,D,F,d,9,l[29]),F=s(F,S,x,D,I,14,l[30]),x=f(x,D=s(D,F,S,x,E,20,l[31]),F,S,h,4,l[32]),S=f(S,x,D,F,v,11,l[33]),F=f(F,S,x,D,w,16,l[34]),D=f(D,F,S,x,C,23,l[35]),x=f(x,D,F,S,u,4,l[36]),S=f(S,x,D,F,A,11,l[37]),F=f(F,S,x,D,I,16,l[38]),D=f(D,F,S,x,B,23,l[39]),x=f(x,D,F,S,b,4,l[40]),S=f(S,x,D,F,a,11,l[41]),F=f(F,S,x,D,p,16,l[42]),D=f(D,F,S,x,m,23,l[43]),x=f(x,D,F,S,y,4,l[44]),S=f(S,x,D,F,E,11,l[45]),F=f(F,S,x,D,Q,16,l[46]),x=g(x,D=f(D,F,S,x,d,23,l[47]),F,S,a,6,l[48]),S=g(S,x,D,F,I,10,l[49]),F=g(F,S,x,D,C,15,l[50]),D=g(D,F,S,x,h,21,l[51]),x=g(x,D,F,S,E,6,l[52]),S=g(S,x,D,F,p,10,l[53]),F=g(F,S,x,D,B,15,l[54]),D=g(D,F,S,x,u,21,l[55]),x=g(x,D,F,S,v,6,l[56]),S=g(S,x,D,F,Q,10,l[57]),F=g(F,S,x,D,m,15,l[58]),D=g(D,F,S,x,b,21,l[59]),x=g(x,D,F,S,A,6,l[60]),S=g(S,x,D,F,w,10,l[61]),F=g(F,S,x,D,d,15,l[62]),D=g(D,F,S,x,y,21,l[63]),o[0]=o[0]+x|0,o[1]=o[1]+D|0,o[2]=o[2]+F|0,o[3]=o[3]+S|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var o=e.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var l=this._hash,u=l.words,c=0;c<4;c++){var s=u[c];u[c]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return l},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,r,n,i,o,a){var l=e+(t&r|~t&n)+i+a;return(l<<o|l>>>32-o)+t}function s(e,t,r,n,i,o,a){var l=e+(t&n|r&~n)+i+a;return(l<<o|l>>>32-o)+t}function f(e,t,r,n,i,o,a){var l=e+(t^r^n)+i+a;return(l<<o|l>>>32-o)+t}function g(e,t,r,n,i,o,a){var l=e+(r^(t|~n))+i+a;return(l<<o|l>>>32-o)+t}t.MD5=o._createHelper(u),t.HmacMD5=o._createHmacHelper(u)}(Math),r.MD5)}(Hi)),Hi.exports}var Mi,Ri={exports:{}},Yi={exports:{}};function Li(){return Mi||(Mi=1,function(e,t){var r,n,i,o,a,l,u,c;e.exports=(c=Fi(),n=(r=c).lib,i=n.WordArray,o=n.Hasher,a=r.algo,l=[],u=a.SHA1=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],u=r[4],c=0;c<80;c++){if(c<16)l[c]=0|e[t+c];else{var s=l[c-3]^l[c-8]^l[c-14]^l[c-16];l[c]=s<<1|s>>>31}var f=(n<<5|n>>>27)+u+l[c];f+=c<20?1518500249+(i&o|~i&a):c<40?1859775393+(i^o^a):c<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,u=a,a=o,o=i<<30|i>>>2,i=n,n=f}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+u|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}}),r.SHA1=o._createHelper(u),r.HmacSHA1=o._createHmacHelper(u),c.SHA1)}(Yi)),Yi.exports}var Oi,Ji,ji={exports:{}};function Gi(){return Ji||(Ji=1,function(e,t){var r;e.exports=(r=Fi(),Li(),Oi||(Oi=1,function(e,t){var r,n,i;e.exports=(n=(r=Fi()).lib.Base,i=r.enc.Utf8,void(r.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=i.parse(t));var r=e.blockSize,n=4*r;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),l=o.words,u=a.words,c=0;c<r;c++)l[c]^=1549556828,u[c]^=909522486;o.sigBytes=a.sigBytes=n,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}})))}(ji)),ji.exports,function(){var e=r,t=e.lib,n=t.Base,i=t.WordArray,o=e.algo,a=o.MD5,l=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,n=this.cfg,o=n.hasher.create(),a=i.create(),l=a.words,u=n.keySize,c=n.iterations;l.length<u;){r&&o.update(r),r=o.update(e).finalize(t),o.reset();for(var s=1;s<c;s++)r=o.finalize(r),o.reset();a.concat(r)}return a.sigBytes=4*u,a}});e.EvpKDF=function(e,t,r){return l.create(r).compute(e,t)}}(),r.EvpKDF)}(Ri)),Ri.exports}var zi,Ti={exports:{}};!function(e,t){var r;e.exports=(r=Fi(),Ui(),Gi(),zi||(zi=1,function(e,t){var r;e.exports=(r=Fi(),Gi(),void(r.lib.Cipher||function(e){var t=r,n=t.lib,i=n.Base,o=n.WordArray,a=n.BufferedBlockAlgorithm,l=t.enc;l.Utf8;var u=l.Base64,c=t.algo.EvpKDF,s=n.Cipher=a.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?v:m}return function(t){return{encrypt:function(r,n,i){return e(n).encrypt(t,r,n,i)},decrypt:function(r,n,i){return e(n).decrypt(t,r,n,i)}}}}()});n.StreamCipher=s.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var f=t.mode={},g=n.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),d=f.CBC=function(){var t=g.extend();function r(t,r,n){var i,o=this._iv;o?(i=o,this._iv=e):i=this._prevBlock;for(var a=0;a<n;a++)t[r+a]^=i[a]}return t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize;r.call(this,e,t,i),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),t.Decryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=e.slice(t,t+i);n.decryptBlock(e,t),r.call(this,e,t,i),this._prevBlock=o}}),t}(),p=(t.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,n=r-e.sigBytes%r,i=n<<24|n<<16|n<<8|n,a=[],l=0;l<n;l+=4)a.push(i);var u=o.create(a,n);e.concat(u)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};n.BlockCipher=s.extend({cfg:s.cfg.extend({mode:d,padding:p}),reset:function(){var e;s.reset.call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var A=n.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),h=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?o.create([1398893684,1701076831]).concat(r).concat(t):t).toString(u)},parse:function(e){var t,r=u.parse(e),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=o.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),A.create({ciphertext:r,salt:t})}},m=n.SerializableCipher=i.extend({cfg:i.extend({format:h}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),a=i.cfg;return A.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),I=(t.kdf={}).OpenSSL={execute:function(e,t,r,n,i){if(n||(n=o.random(8)),i)a=c.create({keySize:t+r,hasher:i}).compute(e,n);else var a=c.create({keySize:t+r}).compute(e,n);var l=o.create(a.words.slice(t),4*r);return a.sigBytes=4*t,A.create({key:a,iv:l,salt:n})}},v=n.PasswordBasedCipher=m.extend({cfg:m.cfg.extend({kdf:I}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize,n.salt,n.hasher);n.iv=i.iv;var o=m.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt,n.hasher);return n.iv=i.iv,m.decrypt.call(this,e,t,i.key,n)}})}()))}(Ti)),function(){var e=r,t=e.lib.BlockCipher,n=e.algo,i=[],o=[],a=[],l=[],u=[],c=[],s=[],f=[],g=[],d=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var A=e[r],h=e[A],m=e[h],I=257*e[p]^16843008*p;a[r]=I<<24|I>>>8,l[r]=I<<16|I>>>16,u[r]=I<<8|I>>>24,c[r]=I,I=16843009*m^65537*h^257*A^16843008*r,s[p]=I<<24|I>>>8,f[p]=I<<16|I>>>16,g[p]=I<<8|I>>>24,d[p]=I,r?(r=A^e[e[e[m^A]]],n^=e[e[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],A=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<r?o[a]=t[a]:(c=o[a-1],a%r?r>6&&a%r==4&&(c=i[c>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c]):(c=i[(c=c<<8|c>>>24)>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c],c^=p[a/r|0]<<24),o[a]=o[a-r]^c);for(var l=this._invKeySchedule=[],u=0;u<n;u++){if(a=n-u,u%4)var c=o[a];else c=o[a-4];l[u]=u<4||a<=4?c:s[i[c>>>24]]^f[i[c>>>16&255]]^g[i[c>>>8&255]]^d[i[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,l,u,c,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,s,f,g,d,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,l){for(var u=this._nRounds,c=e[t]^r[0],s=e[t+1]^r[1],f=e[t+2]^r[2],g=e[t+3]^r[3],d=4,p=1;p<u;p++){var A=n[c>>>24]^i[s>>>16&255]^o[f>>>8&255]^a[255&g]^r[d++],h=n[s>>>24]^i[f>>>16&255]^o[g>>>8&255]^a[255&c]^r[d++],m=n[f>>>24]^i[g>>>16&255]^o[c>>>8&255]^a[255&s]^r[d++],I=n[g>>>24]^i[c>>>16&255]^o[s>>>8&255]^a[255&f]^r[d++];c=A,s=h,f=m,g=I}A=(l[c>>>24]<<24|l[s>>>16&255]<<16|l[f>>>8&255]<<8|l[255&g])^r[d++],h=(l[s>>>24]<<24|l[f>>>16&255]<<16|l[g>>>8&255]<<8|l[255&c])^r[d++],m=(l[f>>>24]<<24|l[g>>>16&255]<<16|l[c>>>8&255]<<8|l[255&s])^r[d++],I=(l[g>>>24]<<24|l[c>>>16&255]<<16|l[s>>>8&255]<<8|l[255&f])^r[d++],e[t]=A,e[t+1]=h,e[t+2]=m,e[t+3]=I},keySize:8});e.AES=t._createHelper(A)}(),r.AES)}(Qi);var Vi=Ci(Qi.exports),Pi={exports:{}};!function(e,t){e.exports=Fi().enc.Utf8}(Pi);var Xi=Ci(Pi.exports),Ki={exports:{}};!function(e,t){e.exports=Fi().enc.Hex}(Ki);var Wi=Ci(Ki.exports);function _i(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!Ye(e))return"";if(!Ye(t))return"";if(!ei(r))return"";let n="";if(r){n=Vi.decrypt(e,t).toString(Xi)}else{let r=Wi.parse(e).toString(Ni);n=Vi.decrypt(r,t).toString(Xi)}return n}var Zi=function(){try{var e=oe(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),$i=Zi;function eo(e,t,r){"__proto__"==t&&$i?$i(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var to=Object.prototype.hasOwnProperty;function ro(e,t,r){var n=e[t];to.call(e,t)&&se(n,r)&&(void 0!==r||t in e)||eo(e,t,r)}function no(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var l=t[o],u=n?n(r[l],e[l],l,r,e):void 0;void 0===u&&(u=e[l]),i?eo(r,l,u):ro(r,l,u)}return r}var io=Object.prototype.hasOwnProperty;function oo(e){if(!J(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=vt(e),r=[];for(var n in e)("constructor"!=n||!t&&io.call(e,n))&&r.push(n);return r}function ao(e){return bt(e)?mt(e,!0):oo(e)}var lo="object"==typeof e&&e&&!e.nodeType&&e,uo=lo&&"object"==typeof module&&module&&!module.nodeType&&module,co=uo&&uo.exports===lo?b.Buffer:void 0,so=co?co.allocUnsafe:void 0;function fo(e,t){if(t)return e.slice();var r=e.length,n=so?so(r):new e.constructor(r);return e.copy(n),n}var go=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)er(t,ar(e)),e=Xr(e);return t}:nr;function po(e){return tr(e,ao,go)}var Ao=Object.prototype.hasOwnProperty;function ho(e){var t=new e.constructor(e.byteLength);return new Mt(t).set(new Mt(e)),t}var mo=/\w*$/;var Io=C?C.prototype:void 0,vo=Io?Io.valueOf:void 0;function yo(e,t){var r=t?ho(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Bo="[object Boolean]",wo="[object Date]",Eo="[object Map]",bo="[object Number]",Co="[object RegExp]",Qo="[object Set]",xo="[object String]",Do="[object Symbol]",Fo="[object ArrayBuffer]",So="[object DataView]",ko="[object Float32Array]",qo="[object Float64Array]",No="[object Int8Array]",Ho="[object Int16Array]",Uo="[object Int32Array]",Mo="[object Uint8Array]",Ro="[object Uint8ClampedArray]",Yo="[object Uint16Array]",Lo="[object Uint32Array]";function Oo(e,t,r){var n,i,o,a=e.constructor;switch(t){case Fo:return ho(e);case Bo:case wo:return new a(+e);case So:return function(e,t){var r=t?ho(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case ko:case qo:case No:case Ho:case Uo:case Mo:case Ro:case Yo:case Lo:return yo(e,r);case Eo:return new a;case bo:case xo:return new a(e);case Co:return(o=new(i=e).constructor(i.source,mo.exec(i))).lastIndex=i.lastIndex,o;case Qo:return new a;case Do:return n=e,vo?Object(vo.call(n)):{}}}var Jo=Object.create,jo=function(){function e(){}return function(t){if(!J(t))return{};if(Jo)return Jo(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Go(e){return"function"!=typeof e.constructor||vt(e)?{}:jo(Xr(e))}var zo=dt&&dt.isMap,To=zo?ct(zo):function(e){return U(e)&&"[object Map]"==Cr(e)};var Vo=dt&&dt.isSet,Po=Vo?ct(Vo):function(e){return U(e)&&"[object Set]"==Cr(e)},Xo=1,Ko=2,Wo=4,_o="[object Arguments]",Zo="[object Function]",$o="[object GeneratorFunction]",ea="[object Object]",ta={};function ra(e,t,r,n,i,o){var a,l=t&Xo,u=t&Ko,c=t&Wo;if(r&&(a=i?r(e,n,i,o):r(e)),void 0!==a)return a;if(!J(e))return e;var s=B(e);if(s){if(a=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Ao.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!l)return gn(e,a)}else{var f=Cr(e),g=f==Zo||f==$o;if(rt(e))return fo(e,l);if(f==ea||f==_o||g&&!i){if(a=u||g?{}:Go(e),!l)return u?function(e,t){return no(e,go(e),t)}(e,function(e,t){return e&&no(t,ao(t),e)}(a,e)):function(e,t){return no(e,ar(e),t)}(e,function(e,t){return e&&no(t,Ct(t),e)}(a,e))}else{if(!ta[f])return i?e:{};a=Oo(e,f,l)}}o||(o=new Ft);var d=o.get(e);if(d)return d;o.set(e,a),Po(e)?e.forEach((function(n){a.add(ra(n,t,r,n,e,o))})):To(e)&&e.forEach((function(n,i){a.set(i,ra(n,t,r,i,e,o))}));var p=s?void 0:(c?u?po:lr:u?ao:Ct)(e);return nn(p||e,(function(n,i){p&&(n=e[i=n]),ro(a,i,ra(n,t,r,i,e,o))})),a}ta[_o]=ta["[object Array]"]=ta["[object ArrayBuffer]"]=ta["[object DataView]"]=ta["[object Boolean]"]=ta["[object Date]"]=ta["[object Float32Array]"]=ta["[object Float64Array]"]=ta["[object Int8Array]"]=ta["[object Int16Array]"]=ta["[object Int32Array]"]=ta["[object Map]"]=ta["[object Number]"]=ta[ea]=ta["[object RegExp]"]=ta["[object Set]"]=ta["[object String]"]=ta["[object Symbol]"]=ta["[object Uint8Array]"]=ta["[object Uint8ClampedArray]"]=ta["[object Uint16Array]"]=ta["[object Uint32Array]"]=!0,ta["[object Error]"]=ta[Zo]=ta["[object WeakMap]"]=!1;var na=1,ia=4;function oa(e){return ra(e,na|ia)}var aa={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function o(e,t,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var l=new i(n,o||e,a),u=r?r+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],l]:e._events[u].push(l):(e._events[u]=l,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function l(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),l.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},l.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].fn;return a},l.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},l.prototype.emit=function(e,t,n,i,o,a){var l=r?r+e:e;if(!this._events[l])return!1;var u,c,s=this._events[l],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(e,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,t),!0;case 3:return s.fn.call(s.context,t,n),!0;case 4:return s.fn.call(s.context,t,n,i),!0;case 5:return s.fn.call(s.context,t,n,i,o),!0;case 6:return s.fn.call(s.context,t,n,i,o,a),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];s.fn.apply(s.context,u)}else{var g,d=s.length;for(c=0;c<d;c++)switch(s[c].once&&this.removeListener(e,s[c].fn,void 0,!0),f){case 1:s[c].fn.call(s[c].context);break;case 2:s[c].fn.call(s[c].context,t);break;case 3:s[c].fn.call(s[c].context,t,n);break;case 4:s[c].fn.call(s[c].context,t,n,i);break;default:if(!u)for(g=1,u=new Array(f-1);g<f;g++)u[g-1]=arguments[g];s[c].fn.apply(s[c].context,u)}}return!0},l.prototype.on=function(e,t,r){return o(this,e,t,r,!1)},l.prototype.once=function(e,t,r){return o(this,e,t,r,!0)},l.prototype.removeListener=function(e,t,n,i){var o=r?r+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var l=this._events[o];if(l.fn)l.fn!==t||i&&!l.once||n&&l.context!==n||a(this,o);else{for(var u=0,c=[],s=l.length;u<s;u++)(l[u].fn!==t||i&&!l[u].once||n&&l[u].context!==n)&&c.push(l[u]);c.length?this._events[o]=1===c.length?c[0]:c:a(this,o)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,e.exports=l}(aa);var la=Ci(aa.exports);function ua(){return new la}var ca=b.isFinite,sa=Math.min;function fa(e){var t=Math[e];return function(e,r){if(e=mi(e),(r=null==r?0:sa(Bi(r),292))&&ca(e)){var n=(De(e)+"e").split("e");return+((n=(De(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var ga=fa("round");function da(e){if(!Je(e))return 0;e=wi(e);let t=ga(e);return"0"===String(t)?0:t}function pa(e){if(!Ei(e))return!1;return da(e)>0}function Aa(e,t){return function(e,t,r){for(var n=-1,i=e.length,o=t.length,a={};++n<i;){var l=n<o?t[n]:void 0;r(a,e[n],l)}return a}(e||[],t||[],ro)}function ha(e,t){if(!Me(e))return[];if(!Me(t))return[];if(_n(e)!==_n(t))return[];let r=[];return an(e,(function(n,i){let o=null,a=Je(e[i]),l=Je(t[i]);(a||l)&&(o=0),a&&(o+=wi(e[i])),l&&(o+=wi(t[i])),r.push(o)})),r}var ma=Math.ceil,Ia=Math.max;var va=function(e){return function(t,r,n){return n&&"number"!=typeof n&&Vr(t,r,n)&&(r=n=void 0),t=yi(t),void 0===r?(r=t,t=0):r=yi(r),function(e,t,r,n){for(var i=-1,o=Ia(ma((t-e)/(r||1)),0),a=Array(o);o--;)a[n?o:++i]=e,e+=r;return a}(t,r,n=void 0===n?t<r?1:-1:yi(n),e)}}(),ya=va;function Ba(e,t){for(var r=-1,n=t.length,i=Array(n),o=null==e;++r<n;)i[r]=o?void 0:Ne(e,t[r]);return i}function wa(e){return(null==e?0:e.length)?fn(e,1):[]}var Ea=Math.max;function ba(e,t,r){return t=Ea(void 0===t?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=Ea(n.length-t,0),a=Array(o);++i<o;)a[i]=n[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=n[i];return l[t]=r(a),function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(e,this,l)}}function Ca(e){return function(){return e}}var Qa=$i?function(e,t){return $i(e,"toString",{configurable:!0,enumerable:!1,value:Ca(t),writable:!0})}:jr,xa=Qa,Da=Date.now;var Fa,Sa,ka,qa=(Fa=xa,Sa=0,ka=0,function(){var e=Da(),t=16-(e-ka);if(ka=e,t>0){if(++Sa>=800)return arguments[0]}else Sa=0;return Fa.apply(void 0,arguments)}),Na=qa;function Ha(e){return Na(ba(e,void 0,wa),e+"")}var Ua=Ha(Ba);function Ma(e){if(!Ei(e))return!1;return da(e)>=0}function Ra(e,t){let r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!yn(e))return[];if(!Ma(t))return[];if(t=da(t),vn(n)){if(t>=e.lengt