forked from wechatpay-apiv3/wechatpay-postman-script
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sm2.js
2 lines (2 loc) · 199 KB
/
sm2.js
1
2
/*! For license information please see SM2.js.LICENSE.txt */
!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.SM2Lib=r():t.SM2Lib=r()}(this,(function(){return function(t){var r={};function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var i in t)e.d(n,i,function(r){return t[r]}.bind(null,i));return n},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="",e(e.s=295)}([function(t,r){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,r,e){var n=e(29),i=e(123);t.exports=function(t){if("Function"===n(t))return i(t)}},function(t,r,e){(function(r){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof r&&r)||function(){return this}()||Function("return this")()}).call(this,e(148))},function(t,r,e){"use strict";var n,i,o,s=e(133),u=e(9),a=e(2),h=e(4),f=e(8),c=e(12),l=e(22),p=e(35),d=e(23),v=e(16),y=e(11).f,g=e(34),m=e(55),w=e(36),b=e(5),M=e(59),x=e(26),T=x.enforce,A=x.get,E=a.Int8Array,_=E&&E.prototype,S=a.Uint8ClampedArray,B=S&&S.prototype,O=E&&m(E),R=_&&m(_),k=Object.prototype,F=a.TypeError,j=b("toStringTag"),D=M("TYPED_ARRAY_TAG"),I="TypedArrayConstructor",P=s&&!!w&&"Opera"!==l(a.opera),C=!1,L={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},N=function(t){var r=m(t);if(f(r)){var e=A(r);return e&&c(e,I)?e.TypedArrayConstructor:N(r)}},q=function(t){if(!f(t))return!1;var r=l(t);return c(L,r)||c(U,r)};for(n in L)(o=(i=a[n])&&i.prototype)?T(o).TypedArrayConstructor=i:P=!1;for(n in U)(o=(i=a[n])&&i.prototype)&&(T(o).TypedArrayConstructor=i);if((!P||!h(O)||O===Function.prototype)&&(O=function(){throw F("Incorrect invocation")},P))for(n in L)a[n]&&w(a[n],O);if((!P||!R||R===k)&&(R=O.prototype,P))for(n in L)a[n]&&w(a[n].prototype,R);if(P&&m(B)!==R&&w(B,R),u&&!c(R,j))for(n in C=!0,y(R,j,{get:function(){return f(this)?this[D]:void 0}}),L)a[n]&&d(a[n],D,n);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:C&&D,aTypedArray:function(t){if(q(t))return t;throw F("Target is not a typed array")},aTypedArrayConstructor:function(t){if(h(t)&&(!w||g(O,t)))return t;throw F(p(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,r,e,n){if(u){if(e)for(var i in L){var o=a[i];if(o&&c(o.prototype,t))try{delete o.prototype[t]}catch(e){try{o.prototype[t]=r}catch(t){}}}R[t]&&!e||v(R,t,e?r:P&&_[t]||r,n)}},exportTypedArrayStaticMethod:function(t,r,e){var n,i;if(u){if(w){if(e)for(n in L)if((i=a[n])&&c(i,t))try{delete i[t]}catch(t){}if(O[t]&&!e)return;try{return v(O,t,e?r:P&&O[t]||r)}catch(t){}}for(n in L)!(i=a[n])||i[t]&&!e||v(i,t,r)}},getTypedArrayConstructor:N,isView:function(t){if(!f(t))return!1;var r=l(t);return"DataView"===r||c(L,r)||c(U,r)},isTypedArray:q,TypedArray:O,TypedArrayPrototype:R}},function(t,r,e){var n=e(125),i=n.all;t.exports=n.IS_HTMLDDA?function(t){return"function"==typeof t||t===i}:function(t){return"function"==typeof t}},function(t,r,e){var n=e(2),i=e(81),o=e(12),s=e(59),u=e(124),a=e(126),h=i("wks"),f=n.Symbol,c=f&&f.for,l=a?f:f&&f.withoutSetter||s;t.exports=function(t){if(!o(h,t)||!u&&"string"!=typeof h[t]){var r="Symbol."+t;u&&o(f,t)?h[t]=f[t]:h[t]=a&&c?c(r):l(r)}return h[t]}},function(t,r,e){var n=e(2),i=e(49).f,o=e(23),s=e(16),u=e(73),a=e(183),h=e(118);t.exports=function(t,r){var e,f,c,l,p,d=t.target,v=t.global,y=t.stat;if(e=v?n:y?n[d]||u(d,{}):(n[d]||{}).prototype)for(f in r){if(l=r[f],c=t.dontCallGetSet?(p=i(e,f))&&p.value:e[f],!h(v?f:d+(y?".":"#")+f,t.forced)&&void 0!==c){if(typeof l==typeof c)continue;a(l,c)}(t.sham||c&&c.sham)&&o(l,"sham",!0),s(e,f,l,t)}}},function(t,r,e){var n=e(53),i=Function.prototype.call;t.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},function(t,r,e){var n=e(4),i=e(125),o=i.all;t.exports=i.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:n(t)||t===o}:function(t){return"object"==typeof t?null!==t:n(t)}},function(t,r,e){var n=e(0);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,r,e){var n=e(8),i=String,o=TypeError;t.exports=function(t){if(n(t))return t;throw o(i(t)+" is not an object")}},function(t,r,e){var n=e(9),i=e(128),o=e(127),s=e(10),u=e(54),a=TypeError,h=Object.defineProperty,f=Object.getOwnPropertyDescriptor,c="enumerable",l="configurable",p="writable";r.f=n?o?function(t,r,e){if(s(t),r=u(r),s(e),"function"==typeof t&&"prototype"===r&&"value"in e&&p in e&&!e.writable){var n=f(t,r);n&&n.writable&&(t[r]=e.value,e={configurable:l in e?e.configurable:n.configurable,enumerable:c in e?e.enumerable:n.enumerable,writable:!1})}return h(t,r,e)}:h:function(t,r,e){if(s(t),r=u(r),s(e),i)try{return h(t,r,e)}catch(t){}if("get"in e||"set"in e)throw a("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},function(t,r,e){var n=e(1),i=e(14),o=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,r){return o(i(t),r)}},function(t,r,e){var n=e(20);t.exports=function(t){return n(t.length)}},function(t,r,e){var n=e(32),i=Object;t.exports=function(t){return i(n(t))}},function(t,r,e){var n=e(48),i=e(1),o=e(52),s=e(14),u=e(13),a=e(93),h=i([].push),f=function(t){var r=1==t,e=2==t,i=3==t,f=4==t,c=6==t,l=7==t,p=5==t||c;return function(d,v,y,g){for(var m,w,b=s(d),M=o(b),x=n(v,y),T=u(M),A=0,E=g||a,_=r?E(d,T):e||l?E(d,0):void 0;T>A;A++)if((p||A in M)&&(w=x(m=M[A],A,b),t))if(r)_[A]=w;else if(w)switch(t){case 3:return!0;case 5:return m;case 6:return A;case 2:h(_,m)}else switch(t){case 4:return!1;case 7:h(_,m)}return c?-1:i||f?f:_}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},function(t,r,e){var n=e(4),i=e(11),o=e(182),s=e(73);t.exports=function(t,r,e,u){u||(u={});var a=u.enumerable,h=void 0!==u.name?u.name:r;if(n(e)&&o(e,h,u),u.global)a?t[r]=e:s(r,e);else{try{u.unsafe?t[r]&&(a=!0):delete t[r]}catch(t){}a?t[r]=e:i.f(t,r,{value:e,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return t}},function(t,r,e){var n=e(78),i=e(16),o=e(190);n||i(Object.prototype,"toString",o,{unsafe:!0})},function(t,r,e){var n=e(52),i=e(32);t.exports=function(t){return n(i(t))}},function(t,r,e){var n=e(21),i=Math.max,o=Math.min;t.exports=function(t,r){var e=n(t);return e<0?i(e+r,0):o(e,r)}},function(t,r,e){var n=e(21),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},function(t,r,e){var n=e(179);t.exports=function(t){var r=+t;return r!=r||0===r?0:n(r)}},function(t,r,e){var n=e(78),i=e(4),o=e(29),s=e(5)("toStringTag"),u=Object,a="Arguments"==o(function(){return arguments}());t.exports=n?o:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=u(t),s))?e:a?o(r):"Object"==(n=o(r))&&i(r.callee)?"Arguments":n}},function(t,r,e){var n=e(9),i=e(11),o=e(43);t.exports=n?function(t,r,e){return i.f(t,r,o(1,e))}:function(t,r,e){return t[r]=e,t}},function(t,r,e){var n=e(22),i=String;t.exports=function(t){if("Symbol"===n(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},function(t,r,e){var n=e(4),i=e(35),o=TypeError;t.exports=function(t){if(n(t))return t;throw o(i(t)+" is not a function")}},function(t,r,e){var n,i,o,s=e(180),u=e(2),a=e(8),h=e(23),f=e(12),c=e(72),l=e(76),p=e(60),d="Object already initialized",v=u.TypeError,y=u.WeakMap;if(s||c.state){var g=c.state||(c.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,n=function(t,r){if(g.has(t))throw v(d);return r.facade=t,g.set(t,r),r},i=function(t){return g.get(t)||{}},o=function(t){return g.has(t)}}else{var m=l("state");p[m]=!0,n=function(t,r){if(f(t,m))throw v(d);return r.facade=t,h(t,m,r),r},i=function(t){return f(t,m)?t[m]:{}},o=function(t){return f(t,m)}}t.exports={set:n,get:i,has:o,enforce:function(t){return o(t)?i(t):n(t,{})},getterFor:function(t){return function(r){var e;if(!a(r)||(e=i(r)).type!==t)throw v("Incompatible receiver, "+t+" required");return e}}}},function(t,r,e){"use strict";var n=e(6),i=e(68),o=e(77),s=e(8),u=e(19),a=e(13),h=e(18),f=e(67),c=e(5),l=e(63),p=e(62),d=l("slice"),v=c("species"),y=Array,g=Math.max;n({target:"Array",proto:!0,forced:!d},{slice:function(t,r){var e,n,c,l=h(this),d=a(l),m=u(t,d),w=u(void 0===r?d:r,d);if(i(l)&&(e=l.constructor,(o(e)&&(e===y||i(e.prototype))||s(e)&&null===(e=e[v]))&&(e=void 0),e===y||void 0===e))return p(l,m,w);for(n=new(void 0===e?y:e)(g(w-m,0)),c=0;m<w;m++,c++)m in l&&f(n,c,l[m]);return n.length=c,n}})},function(t,r,e){var n=e(2),i=e(4),o=function(t){return i(t)?t:void 0};t.exports=function(t,r){return arguments.length<2?o(n[t]):n[t]&&n[t][r]}},function(t,r,e){var n=e(123),i=n({}.toString),o=n("".slice);t.exports=function(t){return o(i(t),8,-1)}},function(t,r){t.exports=function(t){return null==t}},function(t,r){t.exports=!1},function(t,r,e){var n=e(30),i=TypeError;t.exports=function(t){if(n(t))throw i("Can't call method on "+t);return t}},function(t,r,e){var n=e(28);t.exports=n("navigator","userAgent")||""},function(t,r,e){var n=e(1);t.exports=n({}.isPrototypeOf)},function(t,r){var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},function(t,r,e){var n=e(1),i=e(10),o=e(188);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,e={};try{(t=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),r=e instanceof Array}catch(t){}return function(e,n){return i(e),o(n),r?t(e,n):e.__proto__=n,e}}():void 0)},function(t,r){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,r,e){var n,i=e(10),o=e(177),s=e(75),u=e(60),a=e(150),h=e(69),f=e(76),c=f("IE_PROTO"),l=function(){},p=function(t){return"<script>"+t+"</"+"script>"},d=function(t){t.write(p("")),t.close();var r=t.parentWindow.Object;return t=null,r},v=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,r;v="undefined"!=typeof document?document.domain&&n?d(n):((r=h("iframe")).style.display="none",a.appendChild(r),r.src=String("javascript:"),(t=r.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F):d(n);for(var e=s.length;e--;)delete v.prototype[s[e]];return v()};u[c]=!0,t.exports=Object.create||function(t,r){var e;return null!==t?(l.prototype=i(t),e=new l,l.prototype=null,e[c]=t):e=v(),void 0===r?e:o.f(e,r)}},function(t,r,e){"use strict";var n=e(6),i=e(1),o=e(52),s=e(18),u=e(61),a=i([].join),h=o!=Object,f=u("join",",");n({target:"Array",proto:!0,forced:h||!f},{join:function(t){return a(s(this),void 0===t?",":t)}})},function(t,r,e){"use strict";var n=e(18),i=e(158),o=e(42),s=e(26),u=e(11).f,a=e(117),h=e(119),f=e(31),c=e(9),l="Array Iterator",p=s.set,d=s.getterFor(l);t.exports=a(Array,"Array",(function(t,r){p(this,{type:l,target:n(t),index:0,kind:r})}),(function(){var t=d(this),r=t.target,e=t.kind,n=t.index++;return!r||n>=r.length?(t.target=void 0,h(void 0,!0)):h("keys"==e?n:"values"==e?r[n]:[n,r[n]],!1)}),"values");var v=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!f&&c&&"values"!==v.name)try{u(v,"name",{value:"values"})}catch(t){}},function(t,r,e){var n,i,o=e(2),s=e(33),u=o.process,a=o.Deno,h=u&&u.versions||a&&a.version,f=h&&h.v8;f&&(i=(n=f.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(i=+n[1]),t.exports=i},function(t,r){t.exports={}},function(t,r){t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},function(t,r,e){var n=e(53),i=Function.prototype,o=i.apply,s=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(o):function(){return s.apply(o,arguments)})},function(t,r,e){var n=e(9),i=e(12),o=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,u=i(o,"name"),a=u&&"something"===function(){}.name,h=u&&(!n||n&&s(o,"name").configurable);t.exports={EXISTS:u,PROPER:a,CONFIGURABLE:h}},function(t,r,e){"use strict";var n=e(45).PROPER,i=e(16),o=e(10),s=e(24),u=e(0),a=e(205),h="toString",f=RegExp.prototype.toString,c=u((function(){return"/a/b"!=f.call({source:"a",flags:"b"})})),l=n&&f.name!=h;(c||l)&&i(RegExp.prototype,h,(function(){var t=o(this);return"/"+s(t.source)+"/"+s(a(t))}),{unsafe:!0})},function(t,r,e){var n=e(25),i=e(30);t.exports=function(t,r){var e=t[r];return i(e)?void 0:n(e)}},function(t,r,e){var n=e(1),i=e(25),o=e(53),s=n(n.bind);t.exports=function(t,r){return i(t),void 0===r?t:o?s(t,r):function(){return t.apply(r,arguments)}}},function(t,r,e){var n=e(9),i=e(7),o=e(181),s=e(43),u=e(18),a=e(54),h=e(12),f=e(128),c=Object.getOwnPropertyDescriptor;r.f=n?c:function(t,r){if(t=u(t),r=a(r),f)try{return c(t,r)}catch(t){}if(h(t,r))return s(!i(o.f,t,r),t[r])}},function(t,r,e){var n=e(130),i=e(75).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},function(t,r,e){var n=e(11).f,i=e(12),o=e(5)("toStringTag");t.exports=function(t,r,e){t&&!e&&(t=t.prototype),t&&!i(t,o)&&n(t,o,{configurable:!0,value:r})}},function(t,r,e){var n=e(1),i=e(0),o=e(29),s=Object,u=n("".split);t.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?u(t,""):s(t)}:s},function(t,r,e){var n=e(0);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},function(t,r,e){var n=e(129),i=e(74);t.exports=function(t){var r=n(t,"string");return i(r)?r:r+""}},function(t,r,e){var n=e(12),i=e(4),o=e(14),s=e(76),u=e(187),a=s("IE_PROTO"),h=Object,f=h.prototype;t.exports=u?h.getPrototypeOf:function(t){var r=o(t);if(n(r,a))return r[a];var e=r.constructor;return i(e)&&r instanceof e?e.prototype:r instanceof h?f:null}},function(t,r,e){var n=e(3),i=e(71),o=n.aTypedArrayConstructor,s=n.getTypedArrayConstructor;t.exports=function(t){return o(i(t,s(t)))}},function(t,r,e){var n=e(34),i=TypeError;t.exports=function(t,r){if(n(r,t))return t;throw i("Incorrect invocation")}},function(t,r){"function"==typeof Object.create?t.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,r){if(r){t.super_=r;var e=function(){};e.prototype=r.prototype,t.prototype=new e,t.prototype.constructor=t}}},function(t,r,e){var n=e(1),i=0,o=Math.random(),s=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++i+o,36)}},function(t,r){t.exports={}},function(t,r,e){"use strict";var n=e(0);t.exports=function(t,r){var e=[][t];return!!e&&n((function(){e.call(null,r||function(){return 1},1)}))}},function(t,r,e){var n=e(1);t.exports=n([].slice)},function(t,r,e){var n=e(0),i=e(5),o=e(41),s=i("species");t.exports=function(t){return o>=51||!n((function(){var r=[];return(r.constructor={})[s]=function(){return{foo:1}},1!==r[t](Boolean).foo}))}},function(t,r){t.exports=function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,r){function e(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,r,e){var n=e(18),i=e(19),o=e(13),s=function(t){return function(r,e,s){var u,a=n(r),h=o(a),f=i(s,h);if(t&&e!=e){for(;h>f;)if((u=a[f++])!=u)return!0}else for(;h>f;f++)if((t||f in a)&&a[f]===e)return t||f||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},function(t,r,e){"use strict";var n=e(54),i=e(11),o=e(43);t.exports=function(t,r,e){var s=n(r);s in t?i.f(t,s,o(0,e)):t[s]=e}},function(t,r,e){var n=e(29);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,r,e){var n=e(2),i=e(8),o=n.document,s=i(o)&&i(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},function(t,r,e){var n=e(19),i=e(13),o=e(67),s=Array,u=Math.max;t.exports=function(t,r,e){for(var a=i(t),h=n(r,a),f=n(void 0===e?a:e,a),c=s(u(f-h,0)),l=0;h<f;h++,l++)o(c,l,t[h]);return c.length=l,c}},function(t,r,e){var n=e(10),i=e(135),o=e(30),s=e(5)("species");t.exports=function(t,r){var e,u=n(t).constructor;return void 0===u||o(e=n(u)[s])?r:i(e)}},function(t,r,e){var n=e(2),i=e(73),o="__core-js_shared__",s=n[o]||i(o,{});t.exports=s},function(t,r,e){var n=e(2),i=Object.defineProperty;t.exports=function(t,r){try{i(n,t,{value:r,configurable:!0,writable:!0})}catch(e){n[t]=r}return r}},function(t,r,e){var n=e(28),i=e(4),o=e(34),s=e(126),u=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var r=n("Symbol");return i(r)&&o(r.prototype,u(t))}},function(t,r){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,r,e){var n=e(81),i=e(59),o=n("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},function(t,r,e){var n=e(1),i=e(0),o=e(4),s=e(22),u=e(28),a=e(82),h=function(){},f=[],c=u("Reflect","construct"),l=/^\s*(?:class|function)\b/,p=n(l.exec),d=!l.exec(h),v=function(t){if(!o(t))return!1;try{return c(h,f,t),!0}catch(t){return!1}},y=function(t){if(!o(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!p(l,a(t))}catch(t){return!0}};y.sham=!0,t.exports=!c||i((function(){var t;return v(v.call)||!v(Object)||!v((function(){t=!0}))||t}))?y:v},function(t,r,e){var n={};n[e(5)("toStringTag")]="z",t.exports="[object z]"===String(n)},function(t,r,e){"use strict";e(40),e(91),e(17),e(136),e(94),e(95),e(96),e(97),e(98),e(99),e(100),e(101),e(102),e(103),e(104),e(105),e(106),e(107),e(108),e(109),e(110),e(111),e(112),e(113),e(114),e(115),e(116),e(162),e(46),e(39);var n=e(157);t.exports={stringToByteArrayInUtf8:function(t){return function(t){return"undefined"!=typeof window&&window.TextEncoder?new window.TextEncoder("utf-8").encode(t):(new(0,e(140).TextEncoder)).encode(t)}(t)},utf8ByteArrayToString:function(t){var r;if(-1!==t)return Array.isArray(t)&&(t=new Uint8Array(t)),r=t,"undefined"!=typeof window&&window.TextDecoder?new window.TextDecoder("utf-8").decode(r):(new(0,e(140).TextDecoder)).decode(r)},byteArrayToBase64:function(t){return n.fromByteArray(t)},base64ToByteArray:function(t){return n.toByteArray(t)},byteArrayToHex:function(t){for(var r=0;r<t.length;r++)t[r]=(t[r]>>>0)%256;for(var e=[],n=0,i=0;i<2*t.length;i+=2)e[i>>>3]|=parseInt(t[n],10)<<24-i%8*4,n++;for(var o=[],s=0;s<t.length;s++){var u=e[s>>>2]>>>24-s%4*8&255;o.push((u>>>4).toString(16)),o.push((15&u).toString(16))}return o.join("")},hexToByteArray:function(t){if("string"!=typeof t)throw new TypeError("Expected input to be a string");if(t.length%2!=0)throw new RangeError("Expected string to be an even number of characters");for(var r=new Uint8Array(t.length/2),e=0;e<t.length;e+=2)r[e/2]=parseInt(t.substring(e,e+2),16);return r},byteArrayToByteArray:function(t){return t}}},function(t,r,e){"use strict";var n=e(6),i=e(0),o=e(68),s=e(8),u=e(14),a=e(13),h=e(175),f=e(67),c=e(93),l=e(63),p=e(5),d=e(41),v=p("isConcatSpreadable"),y=d>=51||!i((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),g=l("concat"),m=function(t){if(!s(t))return!1;var r=t[v];return void 0!==r?!!r:o(t)};n({target:"Array",proto:!0,arity:1,forced:!y||!g},{concat:function(t){var r,e,n,i,o,s=u(this),l=c(s,0),p=0;for(r=-1,n=arguments.length;r<n;r++)if(m(o=-1===r?s:arguments[r]))for(i=a(o),h(p+i),e=0;e<i;e++,p++)e in o&&f(l,p,o[e]);else h(p+1),f(l,p++,o);return l.length=p,l}})},function(t,r,e){var n=e(31),i=e(72);(t.exports=function(t,r){return i[t]||(i[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.25.5",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE",source:"https://github.com/zloirock/core-js"})},function(t,r,e){var n=e(1),i=e(4),o=e(72),s=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return s(t)}),t.exports=o.inspectSource},function(t,r,e){var n=e(22),i=e(47),o=e(30),s=e(42),u=e(5)("iterator");t.exports=function(t){if(!o(t))return i(t,u)||i(t,"@@iterator")||s[n(t)]}},function(t,r,e){var n=e(25),i=e(14),o=e(52),s=e(13),u=TypeError,a=function(t){return function(r,e,a,h){n(e);var f=i(r),c=o(f),l=s(f),p=t?l-1:0,d=t?-1:1;if(a<2)for(;;){if(p in c){h=c[p],p+=d;break}if(p+=d,t?p<0:l<=p)throw u("Reduce of empty array with no initial value")}for(;t?p>=0:l>p;p+=d)p in c&&(h=e(h,c[p],p,f));return h}};t.exports={left:a(!1),right:a(!0)}},function(t,r,e){var n=e(29),i=e(2);t.exports="process"==n(i.process)},function(t,r,e){"use strict";var n=e(6),i=e(146);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(t,r,e){var n=e(2);t.exports=n.Promise},function(t,r,e){var n=e(2),i=e(87),o=e(4),s=e(118),u=e(82),a=e(5),h=e(268),f=e(221),c=e(31),l=e(41),p=i&&i.prototype,d=a("species"),v=!1,y=o(n.PromiseRejectionEvent),g=s("Promise",(function(){var t=u(i),r=t!==String(i);if(!r&&66===l)return!0;if(c&&(!p.catch||!p.finally))return!0;if(!l||l<51||!/native code/.test(t)){var e=new i((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};if((e.constructor={})[d]=n,!(v=e.then((function(){}))instanceof n))return!0}return!r&&(h||f)&&!y}));t.exports={CONSTRUCTOR:g,REJECTION_EVENT:y,SUBCLASSING:v}},function(t,r,e){"use strict";var n=e(25),i=TypeError,o=function(t){var r,e;this.promise=new t((function(t,n){if(void 0!==r||void 0!==e)throw i("Bad Promise constructor");r=t,e=n})),this.resolve=n(r),this.reject=n(e)};t.exports.f=function(t){return new o(t)}},function(t,r,e){"use strict";var n=e(37);e(145),e(27),e(144),e(39),e(17),e(147);var i=n(e(223)),o=e(58),s=e(173).Reporter,u=e(170).Buffer;function a(t,r){s.call(this,r),u.isBuffer(t)?(this.base=t,this.offset=0,this.length=t.length):this.error("Input not Buffer")}function h(t,r){if(Array.isArray(t))this.length=0,this.value=t.map((function(t){return h.isEncoderBuffer(t)||(t=new h(t,r)),this.length+=t.length,t}),this);else if("number"==typeof t){if(!(0<=t&&t<=255))return r.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"==typeof t)this.value=t,this.length=u.byteLength(t);else{if(!u.isBuffer(t))return r.error("Unsupported type: "+(0,i.default)(t));this.value=t,this.length=t.length}}o(a,s),r.DecoderBuffer=a,a.isDecoderBuffer=function(t){return t instanceof a||"object"===(0,i.default)(t)&&u.isBuffer(t.base)&&"DecoderBuffer"===t.constructor.name&&"number"==typeof t.offset&&"number"==typeof t.length&&"function"==typeof t.save&&"function"==typeof t.restore&&"function"==typeof t.isEmpty&&"function"==typeof t.readUInt8&&"function"==typeof t.skip&&"function"==typeof t.raw},a.prototype.save=function(){return{offset:this.offset,reporter:s.prototype.save.call(this)}},a.prototype.restore=function(t){var r=new a(this.base);return r.offset=t.offset,r.length=this.offset,this.offset=t.offset,s.prototype.restore.call(this,t.reporter),r},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},a.prototype.skip=function(t,r){if(!(this.offset+t<=this.length))return this.error(r||"DecoderBuffer overrun");var e=new a(this.base);return e._reporterState=this._reporterState,e.offset=this.offset,e.length=this.offset+t,this.offset+=t,e},a.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},r.EncoderBuffer=h,h.isEncoderBuffer=function(t){return t instanceof h||"object"===(0,i.default)(t)&&"EncoderBuffer"===t.constructor.name&&"number"==typeof t.length&&"function"==typeof t.join},h.prototype.join=function(t,r){return t||(t=u.alloc(this.length)),r||(r=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(e){e.join(t,r),r+=e.length})):("number"==typeof this.value?t[r]=this.value:"string"==typeof this.value?t.write(this.value,r):u.isBuffer(this.value)&&this.value.copy(t,r),r+=this.length)),t}},function(t,r,e){"use strict";var n=e(6),i=e(1),o=e(0),s=e(132),u=e(10),a=e(19),h=e(20),f=e(71),c=s.ArrayBuffer,l=s.DataView,p=l.prototype,d=i(c.prototype.slice),v=i(p.getUint8),y=i(p.setUint8);n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o((function(){return!new c(2).slice(1,void 0).byteLength}))},{slice:function(t,r){if(d&&void 0===r)return d(u(this),t);for(var e=u(this).byteLength,n=a(t,e),i=a(void 0===r?e:r,e),o=new(f(this,c))(h(i-n)),s=new l(this),p=new l(o),g=0;n<i;)y(p,g++,v(s,n++));return o}})},function(t,r,e){"use strict";var n=e(14),i=e(19),o=e(13);t.exports=function(t){for(var r=n(this),e=o(r),s=arguments.length,u=i(s>1?arguments[1]:void 0,e),a=s>2?arguments[2]:void 0,h=void 0===a?e:i(a,e);h>u;)r[u++]=t;return r}},function(t,r,e){var n=e(194);t.exports=function(t,r){return new(n(t))(0===r?0:r)}},function(t,r,e){"use strict";var n=e(1),i=e(3),o=n(e(195)),s=i.aTypedArray;(0,i.exportTypedArrayMethod)("copyWithin",(function(t,r){return o(s(this),t,r,arguments.length>2?arguments[2]:void 0)}))},function(t,r,e){"use strict";var n=e(3),i=e(15).every,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("every",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,r,e){"use strict";var n=e(3),i=e(92),o=e(138),s=e(22),u=e(7),a=e(1),h=e(0),f=n.aTypedArray,c=n.exportTypedArrayMethod,l=a("".slice);c("fill",(function(t){var r=arguments.length;f(this);var e="Big"===l(s(this),0,3)?o(t):+t;return u(i,this,e,r>1?arguments[1]:void 0,r>2?arguments[2]:void 0)}),h((function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),1!==t})))},function(t,r,e){"use strict";var n=e(3),i=e(15).filter,o=e(196),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("filter",(function(t){var r=i(s(this),t,arguments.length>1?arguments[1]:void 0);return o(this,r)}))},function(t,r,e){"use strict";var n=e(3),i=e(15).find,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("find",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,r,e){"use strict";var n=e(3),i=e(15).findIndex,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("findIndex",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,r,e){"use strict";var n=e(3),i=e(15).forEach,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("forEach",(function(t){i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,r,e){"use strict";var n=e(3),i=e(66).includes,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("includes",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,r,e){"use strict";var n=e(3),i=e(66).indexOf,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("indexOf",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,r,e){"use strict";var n=e(2),i=e(0),o=e(1),s=e(3),u=e(40),a=e(5)("iterator"),h=n.Uint8Array,f=o(u.values),c=o(u.keys),l=o(u.entries),p=s.aTypedArray,d=s.exportTypedArrayMethod,v=h&&h.prototype,y=!i((function(){v[a].call([1])})),g=!!v&&v.values&&v[a]===v.values&&"values"===v.values.name,m=function(){return f(p(this))};d("entries",(function(){return l(p(this))}),y),d("keys",(function(){return c(p(this))}),y),d("values",m,y||!g,{name:"values"}),d(a,m,y||!g,{name:"values"})},function(t,r,e){"use strict";var n=e(3),i=e(1),o=n.aTypedArray,s=n.exportTypedArrayMethod,u=i([].join);s("join",(function(t){return u(o(this),t)}))},function(t,r,e){"use strict";var n=e(3),i=e(44),o=e(198),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("lastIndexOf",(function(t){var r=arguments.length;return i(o,s(this),r>1?[t,arguments[1]]:[t])}))},function(t,r,e){"use strict";var n=e(3),i=e(15).map,o=e(56),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("map",(function(t){return i(s(this),t,arguments.length>1?arguments[1]:void 0,(function(t,r){return new(o(t))(r)}))}))},function(t,r,e){"use strict";var n=e(3),i=e(84).left,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduce",(function(t){var r=arguments.length;return i(o(this),t,r,r>1?arguments[1]:void 0)}))},function(t,r,e){"use strict";var n=e(3),i=e(84).right,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduceRight",(function(t){var r=arguments.length;return i(o(this),t,r,r>1?arguments[1]:void 0)}))},function(t,r,e){"use strict";var n=e(3),i=n.aTypedArray,o=n.exportTypedArrayMethod,s=Math.floor;o("reverse",(function(){for(var t,r=this,e=i(r).length,n=s(e/2),o=0;o<n;)t=r[o],r[o++]=r[--e],r[e]=t;return r}))},function(t,r,e){"use strict";var n=e(2),i=e(7),o=e(3),s=e(13),u=e(137),a=e(14),h=e(0),f=n.RangeError,c=n.Int8Array,l=c&&c.prototype,p=l&&l.set,d=o.aTypedArray,v=o.exportTypedArrayMethod,y=!h((function(){var t=new Uint8ClampedArray(2);return i(p,t,{length:1,0:3},1),3!==t[1]})),g=y&&o.NATIVE_ARRAY_BUFFER_VIEWS&&h((function(){var t=new c(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));v("set",(function(t){d(this);var r=u(arguments.length>1?arguments[1]:void 0,1),e=a(t);if(y)return i(p,this,e,r);var n=this.length,o=s(e),h=0;if(o+r>n)throw f("Wrong length");for(;h<o;)this[r+h]=e[h++]}),!y||g)},function(t,r,e){"use strict";var n=e(3),i=e(56),o=e(0),s=e(62),u=n.aTypedArray;(0,n.exportTypedArrayMethod)("slice",(function(t,r){for(var e=s(u(this),t,r),n=i(this),o=0,a=e.length,h=new n(a);a>o;)h[o]=e[o++];return h}),o((function(){new Int8Array(1).slice()})))},function(t,r,e){"use strict";var n=e(3),i=e(15).some,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("some",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,r,e){"use strict";var n=e(2),i=e(1),o=e(0),s=e(25),u=e(199),a=e(3),h=e(200),f=e(201),c=e(41),l=e(202),p=a.aTypedArray,d=a.exportTypedArrayMethod,v=n.Uint16Array,y=v&&i(v.prototype.sort),g=!(!y||o((function(){y(new v(2),null)}))&&o((function(){y(new v(2),{})}))),m=!!y&&!o((function(){if(c)return c<74;if(h)return h<67;if(f)return!0;if(l)return l<602;var t,r,e=new v(516),n=Array(516);for(t=0;t<516;t++)r=t%4,e[t]=515-t,n[t]=t-2*r+3;for(y(e,(function(t,r){return(t/4|0)-(r/4|0)})),t=0;t<516;t++)if(e[t]!==n[t])return!0}));d("sort",(function(t){return void 0!==t&&s(t),m?y(this,t):u(p(this),function(t){return function(r,e){return void 0!==t?+t(r,e)||0:e!=e?-1:r!=r?1:0===r&&0===e?1/r>0&&1/e<0?1:-1:r>e}}(t))}),!m||g)},function(t,r,e){"use strict";var n=e(3),i=e(20),o=e(19),s=e(56),u=n.aTypedArray;(0,n.exportTypedArrayMethod)("subarray",(function(t,r){var e=u(this),n=e.length,a=o(t,n);return new(s(e))(e.buffer,e.byteOffset+a*e.BYTES_PER_ELEMENT,i((void 0===r?n:o(r,n))-a))}))},function(t,r,e){"use strict";var n=e(2),i=e(44),o=e(3),s=e(0),u=e(62),a=n.Int8Array,h=o.aTypedArray,f=o.exportTypedArrayMethod,c=[].toLocaleString,l=!!a&&s((function(){c.call(new a(1))}));f("toLocaleString",(function(){return i(c,l?u(h(this)):h(this),u(arguments))}),s((function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()}))||!s((function(){a.prototype.toLocaleString.call([1,2])})))},function(t,r,e){"use strict";var n=e(3).exportTypedArrayMethod,i=e(0),o=e(2),s=e(1),u=o.Uint8Array,a=u&&u.prototype||{},h=[].toString,f=s([].join);i((function(){h.call({})}))&&(h=function(){return f(this)});var c=a.toString!=h;n("toString",h,c)},function(t,r,e){"use strict";var n=e(6),i=e(7),o=e(31),s=e(45),u=e(4),a=e(186),h=e(55),f=e(36),c=e(51),l=e(23),p=e(16),d=e(5),v=e(42),y=e(131),g=s.PROPER,m=s.CONFIGURABLE,w=y.IteratorPrototype,b=y.BUGGY_SAFARI_ITERATORS,M=d("iterator"),x="keys",T="values",A="entries",E=function(){return this};t.exports=function(t,r,e,s,d,y,_){a(e,r,s);var S,B,O,R=function(t){if(t===d&&I)return I;if(!b&&t in j)return j[t];switch(t){case x:case T:case A:return function(){return new e(this,t)}}return function(){return new e(this)}},k=r+" Iterator",F=!1,j=t.prototype,D=j[M]||j["@@iterator"]||d&&j[d],I=!b&&D||R(d),P="Array"==r&&j.entries||D;if(P&&(S=h(P.call(new t)))!==Object.prototype&&S.next&&(o||h(S)===w||(f?f(S,w):u(S[M])||p(S,M,E)),c(S,k,!0,!0),o&&(v[k]=E)),g&&d==T&&D&&D.name!==T&&(!o&&m?l(j,"name",T):(F=!0,I=function(){return i(D,this)})),d)if(B={values:R(T),keys:y?I:R(x),entries:R(A)},_)for(O in B)(b||F||!(O in j))&&p(j,O,B[O]);else n({target:r,proto:!0,forced:b||F},B);return o&&!_||j[M]===I||p(j,M,I,{name:d}),v[r]=I,B}},function(t,r,e){var n=e(0),i=e(4),o=/#|\.prototype\./,s=function(t,r){var e=a[u(t)];return e==f||e!=h&&(i(r)?n(r):!!r)},u=s.normalize=function(t){return String(t).replace(o,".").toLowerCase()},a=s.data={},h=s.NATIVE="N",f=s.POLYFILL="P";t.exports=s},function(t,r){t.exports=function(t,r){return{value:t,done:r}}},function(t,r,e){var n=e(5)("iterator"),i=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){i=!0}};s[n]=function(){return this},Array.from(s,(function(){throw 2}))}catch(t){}t.exports=function(t,r){if(!r&&!i)return!1;var e=!1;try{var o={};o[n]=function(){return{next:function(){return{done:e=!0}}}},t(o)}catch(t){}return e}},function(t,r,e){"use strict";var n=e(28),i=e(11),o=e(5),s=e(9),u=o("species");t.exports=function(t){var r=n(t),e=i.f;s&&r&&!r[u]&&e(r,u,{configurable:!0,get:function(){return this}})}},function(t,r,e){var n=e(1),i=e(21),o=e(24),s=e(32),u=n("".charAt),a=n("".charCodeAt),h=n("".slice),f=function(t){return function(r,e){var n,f,c=o(s(r)),l=i(e),p=c.length;return l<0||l>=p?t?"":void 0:(n=a(c,l))<55296||n>56319||l+1===p||(f=a(c,l+1))<56320||f>57343?t?u(c,l):n:t?h(c,l,l+2):f-56320+(n-55296<<10)+65536}};t.exports={codeAt:f(!1),charAt:f(!0)}},function(t,r,e){var n=e(53),i=Function.prototype,o=i.call,s=n&&i.bind.bind(o,o);t.exports=function(t){return n?s(t):function(){return o.apply(t,arguments)}}},function(t,r,e){var n=e(41),i=e(0);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},function(t,r){var e="object"==typeof document&&document.all,n=void 0===e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:n}},function(t,r,e){var n=e(124);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,r,e){var n=e(9),i=e(0);t.exports=n&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(t,r,e){var n=e(9),i=e(0),o=e(69);t.exports=!n&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(t,r,e){var n=e(7),i=e(8),o=e(74),s=e(47),u=e(178),a=e(5),h=TypeError,f=a("toPrimitive");t.exports=function(t,r){if(!i(t)||o(t))return t;var e,a=s(t,f);if(a){if(void 0===r&&(r="default"),e=n(a,t,r),!i(e)||o(e))return e;throw h("Can't convert object to primitive value")}return void 0===r&&(r="number"),u(t,r)}},function(t,r,e){var n=e(1),i=e(12),o=e(18),s=e(66).indexOf,u=e(60),a=n([].push);t.exports=function(t,r){var e,n=o(t),h=0,f=[];for(e in n)!i(u,e)&&i(n,e)&&a(f,e);for(;r.length>h;)i(n,e=r[h++])&&(~s(f,e)||a(f,e));return f}},function(t,r,e){"use strict";var n,i,o,s=e(0),u=e(4),a=e(8),h=e(38),f=e(55),c=e(16),l=e(5),p=e(31),d=l("iterator"),v=!1;[].keys&&("next"in(o=[].keys())?(i=f(f(o)))!==Object.prototype&&(n=i):v=!0),!a(n)||s((function(){var t={};return n[d].call(t)!==t}))?n={}:p&&(n=h(n)),u(n[d])||c(n,d,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:v}},function(t,r,e){"use strict";var n=e(2),i=e(1),o=e(9),s=e(133),u=e(45),a=e(23),h=e(151),f=e(0),c=e(57),l=e(21),p=e(20),d=e(134),v=e(189),y=e(55),g=e(36),m=e(50).f,w=e(11).f,b=e(92),M=e(70),x=e(51),T=e(26),A=u.PROPER,E=u.CONFIGURABLE,_=T.get,S=T.set,B="ArrayBuffer",O="DataView",R="Wrong index",k=n.ArrayBuffer,F=k,j=F&&F.prototype,D=n.DataView,I=D&&D.prototype,P=Object.prototype,C=n.Array,L=n.RangeError,U=i(b),N=i([].reverse),q=v.pack,Y=v.unpack,z=function(t){return[255&t]},V=function(t){return[255&t,t>>8&255]},Z=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},G=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},K=function(t){return q(t,23,4)},W=function(t){return q(t,52,8)},X=function(t,r){w(t.prototype,r,{get:function(){return _(this)[r]}})},H=function(t,r,e,n){var i=d(e),o=_(t);if(i+r>o.byteLength)throw L(R);var s=_(o.buffer).bytes,u=i+o.byteOffset,a=M(s,u,u+r);return n?a:N(a)},$=function(t,r,e,n,i,o){var s=d(e),u=_(t);if(s+r>u.byteLength)throw L(R);for(var a=_(u.buffer).bytes,h=s+u.byteOffset,f=n(+i),c=0;c<r;c++)a[h+c]=f[o?c:r-c-1]};if(s){var J=A&&k.name!==B;if(f((function(){k(1)}))&&f((function(){new k(-1)}))&&!f((function(){return new k,new k(1.5),new k(NaN),1!=k.length||J&&!E})))J&&E&&a(k,"name",B);else{(F=function(t){return c(this,j),new k(d(t))}).prototype=j;for(var Q,tt=m(k),rt=0;tt.length>rt;)(Q=tt[rt++])in F||a(F,Q,k[Q]);j.constructor=F}g&&y(I)!==P&&g(I,P);var et=new D(new F(2)),nt=i(I.setInt8);et.setInt8(0,2147483648),et.setInt8(1,2147483649),!et.getInt8(0)&&et.getInt8(1)||h(I,{setInt8:function(t,r){nt(this,t,r<<24>>24)},setUint8:function(t,r){nt(this,t,r<<24>>24)}},{unsafe:!0})}else j=(F=function(t){c(this,j);var r=d(t);S(this,{bytes:U(C(r),0),byteLength:r}),o||(this.byteLength=r)}).prototype,I=(D=function(t,r,e){c(this,I),c(t,j);var n=_(t).byteLength,i=l(r);if(i<0||i>n)throw L("Wrong offset");if(i+(e=void 0===e?n-i:p(e))>n)throw L("Wrong length");S(this,{buffer:t,byteLength:e,byteOffset:i}),o||(this.buffer=t,this.byteLength=e,this.byteOffset=i)}).prototype,o&&(X(F,"byteLength"),X(D,"buffer"),X(D,"byteLength"),X(D,"byteOffset")),h(I,{getInt8:function(t){return H(this,1,t)[0]<<24>>24},getUint8:function(t){return H(this,1,t)[0]},getInt16:function(t){var r=H(this,2,t,arguments.length>1?arguments[1]:void 0);return(r[1]<<8|r[0])<<16>>16},getUint16:function(t){var r=H(this,2,t,arguments.length>1?arguments[1]:void 0);return r[1]<<8|r[0]},getInt32:function(t){return G(H(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return G(H(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return Y(H(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return Y(H(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,r){$(this,1,t,z,r)},setUint8:function(t,r){$(this,1,t,z,r)},setInt16:function(t,r){$(this,2,t,V,r,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,r){$(this,2,t,V,r,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,r){$(this,4,t,Z,r,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,r){$(this,4,t,Z,r,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,r){$(this,4,t,K,r,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,r){$(this,8,t,W,r,arguments.length>2?arguments[2]:void 0)}});x(F,B),x(D,O),t.exports={ArrayBuffer:F,DataView:D}},function(t,r){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(t,r,e){var n=e(21),i=e(20),o=RangeError;t.exports=function(t){if(void 0===t)return 0;var r=n(t),e=i(r);if(r!==e)throw o("Wrong length or index");return e}},function(t,r,e){var n=e(77),i=e(35),o=TypeError;t.exports=function(t){if(n(t))return t;throw o(i(t)+" is not a constructor")}},function(t,r,e){e(159)("Uint8",(function(t){return function(r,e,n){return t(this,r,e,n)}}))},function(t,r,e){var n=e(192),i=RangeError;t.exports=function(t,r){var e=n(t);if(e%r)throw i("Wrong offset");return e}},function(t,r,e){var n=e(129),i=TypeError;t.exports=function(t){var r=n(t,"number");if("number"==typeof r)throw i("Can't convert number to bigint");return BigInt(r)}},function(t,r){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,r,e){"use strict";function n(){}function i(){}e(206),e(207),n.prototype.encode=function(t){for(var r=[],e=t.length,n=0;n<e;){var i=t.codePointAt(n),o=0,s=0;for(i<=127?(o=0,s=0):i<=2047?(o=6,s=192):i<=65535?(o=12,s=224):i<=2097151&&(o=18,s=240),r.push(s|i>>o),o-=6;o>=0;)r.push(128|i>>o&63),o-=6;n+=i>=65536?2:1}return r},i.prototype.decode=function(t){for(var r="",e=0;e<t.length;){var n=t[e],i=0,o=0;if(n<=127?(i=0,o=255&n):n<=223?(i=1,o=31&n):n<=239?(i=2,o=15&n):n<=244&&(i=3,o=7&n),t.length-e-i>0)for(var s=0;s<i;)o=o<<6|63&(n=t[e+s+1]),s+=1;else o=65533,i=t.length-e;r+=String.fromCodePoint(o),e+=i+1}return r},t.exports={TextDecoder:i,TextEncoder:n}},function(t,r,e){"use strict";e(17),e(46),e(240),e(40),e(91),e(136),e(94),e(95),e(96),e(97),e(98),e(99),e(100),e(101),e(102),e(103),e(104),e(105),e(106),e(107),e(108),e(109),e(110),e(111),e(112),e(113),e(114),e(115),e(116),function(){var r;function e(t,r,e){null!=t&&("number"==typeof t?this.fromNumber(t,r,e):null==r&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,r))}function n(){return new e(null)}var i="undefined"!=typeof navigator;i&&"Microsoft Internet Explorer"==navigator.appName?(e.prototype.am=function(t,r,e,n,i,o){for(var s=32767&r,u=r>>15;--o>=0;){var a=32767&this[t],h=this[t++]>>15,f=u*a+h*s;i=((a=s*a+((32767&f)<<15)+e[n]+(1073741823&i))>>>30)+(f>>>15)+u*h+(i>>>30),e[n++]=1073741823&a}return i},r=30):i&&"Netscape"!=navigator.appName?(e.prototype.am=function(t,r,e,n,i,o){for(;--o>=0;){var s=r*this[t++]+e[n]+i;i=Math.floor(s/67108864),e[n++]=67108863&s}return i},r=26):(e.prototype.am=function(t,r,e,n,i,o){for(var s=16383&r,u=r>>14;--o>=0;){var a=16383&this[t],h=this[t++]>>14,f=u*a+h*s;i=((a=s*a+((16383&f)<<14)+e[n]+i)>>28)+(f>>14)+u*h,e[n++]=268435455&a}return i},r=28),e.prototype.DB=r,e.prototype.DM=(1<<r)-1,e.prototype.DV=1<<r;e.prototype.FV=Math.pow(2,52),e.prototype.F1=52-r,e.prototype.F2=2*r-52;var o,s,u=new Array;for(o="0".charCodeAt(0),s=0;s<=9;++s)u[o++]=s;for(o="a".charCodeAt(0),s=10;s<36;++s)u[o++]=s;for(o="A".charCodeAt(0),s=10;s<36;++s)u[o++]=s;function a(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function h(t,r){var e=u[t.charCodeAt(r)];return null==e?-1:e}function f(t){var r=n();return r.fromInt(t),r}function c(t){var r,e=1;return 0!=(r=t>>>16)&&(t=r,e+=16),0!=(r=t>>8)&&(t=r,e+=8),0!=(r=t>>4)&&(t=r,e+=4),0!=(r=t>>2)&&(t=r,e+=2),0!=(r=t>>1)&&(t=r,e+=1),e}function l(t){this.m=t}function p(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}function d(t,r){return t&r}function v(t,r){return t|r}function y(t,r){return t^r}function g(t,r){return t&~r}function m(t){if(0==t)return-1;var r=0;return 0==(65535&t)&&(t>>=16,r+=16),0==(255&t)&&(t>>=8,r+=8),0==(15&t)&&(t>>=4,r+=4),0==(3&t)&&(t>>=2,r+=2),0==(1&t)&&++r,r}function w(t){for(var r=0;0!=t;)t&=t-1,++r;return r}function b(){}function M(t){return t}function x(t){this.r2=n(),this.q3=n(),e.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}l.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},l.prototype.revert=function(t){return t},l.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},l.prototype.mulTo=function(t,r,e){t.multiplyTo(r,e),this.reduce(e)},l.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},p.prototype.convert=function(t){var r=n();return t.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),t.s<0&&r.compareTo(e.ZERO)>0&&this.m.subTo(r,r),r},p.prototype.revert=function(t){var r=n();return t.copyTo(r),this.reduce(r),r},p.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var r=0;r<this.m.t;++r){var e=32767&t[r],n=e*this.mpl+((e*this.mph+(t[r]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[e=r+this.m.t]+=this.m.am(0,n,t,r,0,this.m.t);t[e]>=t.DV;)t[e]-=t.DV,t[++e]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},p.prototype.mulTo=function(t,r,e){t.multiplyTo(r,e),this.reduce(e)},p.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e.prototype.copyTo=function(t){for(var r=this.t-1;r>=0;--r)t[r]=this[r];t.t=this.t,t.s=this.s},e.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},e.prototype.fromString=function(t,r){var n;if(16==r)n=4;else if(8==r)n=3;else if(256==r)n=8;else if(2==r)n=1;else if(32==r)n=5;else{if(4!=r)return void this.fromRadix(t,r);n=2}this.t=0,this.s=0;for(var i=t.length,o=!1,s=0;--i>=0;){var u=8==n?255&t[i]:h(t,i);u<0?"-"==t.charAt(i)&&(o=!0):(o=!1,0==s?this[this.t++]=u:s+n>this.DB?(this[this.t-1]|=(u&(1<<this.DB-s)-1)<<s,this[this.t++]=u>>this.DB-s):this[this.t-1]|=u<<s,(s+=n)>=this.DB&&(s-=this.DB))}8==n&&0!=(128&t[0])&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),o&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},e.prototype.dlShiftTo=function(t,r){var e;for(e=this.t-1;e>=0;--e)r[e+t]=this[e];for(e=t-1;e>=0;--e)r[e]=0;r.t=this.t+t,r.s=this.s},e.prototype.drShiftTo=function(t,r){for(var e=t;e<this.t;++e)r[e-t]=this[e];r.t=Math.max(this.t-t,0),r.s=this.s},e.prototype.lShiftTo=function(t,r){var e,n=t%this.DB,i=this.DB-n,o=(1<<i)-1,s=Math.floor(t/this.DB),u=this.s<<n&this.DM;for(e=this.t-1;e>=0;--e)r[e+s+1]=this[e]>>i|u,u=(this[e]&o)<<n;for(e=s-1;e>=0;--e)r[e]=0;r[s]=u,r.t=this.t+s+1,r.s=this.s,r.clamp()},e.prototype.rShiftTo=function(t,r){r.s=this.s;var e=Math.floor(t/this.DB);if(e>=this.t)r.t=0;else{var n=t%this.DB,i=this.DB-n,o=(1<<n)-1;r[0]=this[e]>>n;for(var s=e+1;s<this.t;++s)r[s-e-1]|=(this[s]&o)<<i,r[s-e]=this[s]>>n;n>0&&(r[this.t-e-1]|=(this.s&o)<<i),r.t=this.t-e,r.clamp()}},e.prototype.subTo=function(t,r){for(var e=0,n=0,i=Math.min(t.t,this.t);e<i;)n+=this[e]-t[e],r[e++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n-=t.s;e<this.t;)n+=this[e],r[e++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;e<t.t;)n-=t[e],r[e++]=n&this.DM,n>>=this.DB;n-=t.s}r.s=n<0?-1:0,n<-1?r[e++]=this.DV+n:n>0&&(r[e++]=n),r.t=e,r.clamp()},e.prototype.multiplyTo=function(t,r){var n=this.abs(),i=t.abs(),o=n.t;for(r.t=o+i.t;--o>=0;)r[o]=0;for(o=0;o<i.t;++o)r[o+n.t]=n.am(0,i[o],r,o,0,n.t);r.s=0,r.clamp(),this.s!=t.s&&e.ZERO.subTo(r,r)},e.prototype.squareTo=function(t){for(var r=this.abs(),e=t.t=2*r.t;--e>=0;)t[e]=0;for(e=0;e<r.t-1;++e){var n=r.am(e,r[e],t,2*e,0,1);(t[e+r.t]+=r.am(e+1,2*r[e],t,2*e+1,n,r.t-e-1))>=r.DV&&(t[e+r.t]-=r.DV,t[e+r.t+1]=1)}t.t>0&&(t[t.t-1]+=r.am(e,r[e],t,2*e,0,1)),t.s=0,t.clamp()},e.prototype.divRemTo=function(t,r,i){var o=t.abs();if(!(o.t<=0)){var s=this.abs();if(s.t<o.t)return null!=r&&r.fromInt(0),void(null!=i&&this.copyTo(i));null==i&&(i=n());var u=n(),a=this.s,h=t.s,f=this.DB-c(o[o.t-1]);f>0?(o.lShiftTo(f,u),s.lShiftTo(f,i)):(o.copyTo(u),s.copyTo(i));var l=u.t,p=u[l-1];if(0!=p){var d=p*(1<<this.F1)+(l>1?u[l-2]>>this.F2:0),v=this.FV/d,y=(1<<this.F1)/d,g=1<<this.F2,m=i.t,w=m-l,b=null==r?n():r;for(u.dlShiftTo(w,b),i.compareTo(b)>=0&&(i[i.t++]=1,i.subTo(b,i)),e.ONE.dlShiftTo(l,b),b.subTo(u,u);u.t<l;)u[u.t++]=0;for(;--w>=0;){var M=i[--m]==p?this.DM:Math.floor(i[m]*v+(i[m-1]+g)*y);if((i[m]+=u.am(0,M,i,w,0,l))<M)for(u.dlShiftTo(w,b),i.subTo(b,i);i[m]<--M;)i.subTo(b,i)}null!=r&&(i.drShiftTo(l,r),a!=h&&e.ZERO.subTo(r,r)),i.t=l,i.clamp(),f>0&&i.rShiftTo(f,i),a<0&&e.ZERO.subTo(i,i)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var r=3&t;return(r=(r=(r=(r=r*(2-(15&t)*r)&15)*(2-(255&t)*r)&255)*(2-((65535&t)*r&65535))&65535)*(2-t*r%this.DV)%this.DV)>0?this.DV-r:-r},e.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},e.prototype.exp=function(t,r){if(t>4294967295||t<1)return e.ONE;var i=n(),o=n(),s=r.convert(this),u=c(t)-1;for(s.copyTo(i);--u>=0;)if(r.sqrTo(i,o),(t&1<<u)>0)r.mulTo(o,s,i);else{var a=i;i=o,o=a}return r.revert(i)},e.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var r;if(16==t)r=4;else if(8==t)r=3;else if(2==t)r=1;else if(32==t)r=5;else{if(4!=t)return this.toRadix(t);r=2}var e,n=(1<<r)-1,i=!1,o="",s=this.t,u=this.DB-s*this.DB%r;if(s-- >0)for(u<this.DB&&(e=this[s]>>u)>0&&(i=!0,o=a(e));s>=0;)u<r?(e=(this[s]&(1<<u)-1)<<r-u,e|=this[--s]>>(u+=this.DB-r)):(e=this[s]>>(u-=r)&n,u<=0&&(u+=this.DB,--s)),e>0&&(i=!0),i&&(o+=a(e));return i?o:"0"},e.prototype.negate=function(){var t=n();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(t){var r=this.s-t.s;if(0!=r)return r;var e=this.t;if(0!=(r=e-t.t))return this.s<0?-r:r;for(;--e>=0;)if(0!=(r=this[e]-t[e]))return r;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+c(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var r=n();return this.abs().divRemTo(t,null,r),this.s<0&&r.compareTo(e.ZERO)>0&&t.subTo(r,r),r},e.prototype.modPowInt=function(t,r){var e;return e=t<256||r.isEven()?new l(r):new p(r),this.exp(t,e)},e.ZERO=f(0),e.ONE=f(1),b.prototype.convert=M,b.prototype.revert=M,b.prototype.mulTo=function(t,r,e){t.multiplyTo(r,e)},b.prototype.sqrTo=function(t,r){t.squareTo(r)},x.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var r=n();return t.copyTo(r),this.reduce(r),r},x.prototype.revert=function(t){return t},x.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},x.prototype.mulTo=function(t,r,e){t.multiplyTo(r,e),this.reduce(e)},x.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)};var T,A,E,_=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],S=(1<<26)/_[_.length-1];function B(){var t;t=(new Date).getTime(),A[E++]^=255&t,A[E++]^=t>>8&255,A[E++]^=t>>16&255,A[E++]^=t>>24&255,E>=I&&(E-=I)}if(e.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},e.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var r=this.chunkSize(t),e=Math.pow(t,r),i=f(e),o=n(),s=n(),u="";for(this.divRemTo(i,o,s);o.signum()>0;)u=(e+s.intValue()).toString(t).substr(1)+u,o.divRemTo(i,o,s);return s.intValue().toString(t)+u},e.prototype.fromRadix=function(t,r){this.fromInt(0),null==r&&(r=10);for(var n=this.chunkSize(r),i=Math.pow(r,n),o=!1,s=0,u=0,a=0;a<t.length;++a){var f=h(t,a);f<0?"-"==t.charAt(a)&&0==this.signum()&&(o=!0):(u=r*u+f,++s>=n&&(this.dMultiply(i),this.dAddOffset(u,0),s=0,u=0))}s>0&&(this.dMultiply(Math.pow(r,s)),this.dAddOffset(u,0)),o&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,r,n){if("number"==typeof r)if(t<2)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),v,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(r);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var i=new Array,o=7&t;i.length=1+(t>>3),r.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},e.prototype.bitwiseTo=function(t,r,e){var n,i,o=Math.min(t.t,this.t);for(n=0;n<o;++n)e[n]=r(this[n],t[n]);if(t.t<this.t){for(i=t.s&this.DM,n=o;n<this.t;++n)e[n]=r(this[n],i);e.t=this.t}else{for(i=this.s&this.DM,n=o;n<t.t;++n)e[n]=r(i,t[n]);e.t=t.t}e.s=r(this.s,t.s),e.clamp()},e.prototype.changeBit=function(t,r){var n=e.ONE.shiftLeft(t);return this.bitwiseTo(n,r,n),n},e.prototype.addTo=function(t,r){for(var e=0,n=0,i=Math.min(t.t,this.t);e<i;)n+=this[e]+t[e],r[e++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n+=t.s;e<this.t;)n+=this[e],r[e++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;e<t.t;)n+=t[e],r[e++]=n&this.DM,n>>=this.DB;n+=t.s}r.s=n<0?-1:0,n>0?r[e++]=n:n<-1&&(r[e++]=this.DV+n),r.t=e,r.clamp()},e.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(t,r){if(0!=t){for(;this.t<=r;)this[this.t++]=0;for(this[r]+=t;this[r]>=this.DV;)this[r]-=this.DV,++r>=this.t&&(this[this.t++]=0),++this[r]}},e.prototype.multiplyLowerTo=function(t,r,e){var n,i=Math.min(this.t+t.t,r);for(e.s=0,e.t=i;i>0;)e[--i]=0;for(n=e.t-this.t;i<n;++i)e[i+this.t]=this.am(0,t[i],e,i,0,this.t);for(n=Math.min(t.t,r);i<n;++i)this.am(0,t[i],e,i,0,r-i);e.clamp()},e.prototype.multiplyUpperTo=function(t,r,e){--r;var n=e.t=this.t+t.t-r;for(e.s=0;--n>=0;)e[n]=0;for(n=Math.max(r-this.t,0);n<t.t;++n)e[this.t+n-r]=this.am(r-n,t[n],e,0,0,this.t+n-r);e.clamp(),e.drShiftTo(1,e)},e.prototype.modInt=function(t){if(t<=0)return 0;var r=this.DV%t,e=this.s<0?t-1:0;if(this.t>0)if(0==r)e=this[0]%t;else for(var n=this.t-1;n>=0;--n)e=(r*e+this[n])%t;return e},e.prototype.millerRabin=function(t){var r=this.subtract(e.ONE),i=r.getLowestSetBit();if(i<=0)return!1;var o=r.shiftRight(i);(t=t+1>>1)>_.length&&(t=_.length);for(var s=n(),u=0;u<t;++u){s.fromInt(_[Math.floor(Math.random()*_.length)]);var a=s.modPow(o,this);if(0!=a.compareTo(e.ONE)&&0!=a.compareTo(r)){for(var h=1;h++<i&&0!=a.compareTo(r);)if(0==(a=a.modPowInt(2,this)).compareTo(e.ONE))return!1;if(0!=a.compareTo(r))return!1}}return!0},e.prototype.clone=function(){var t=n();return this.copyTo(t),t},e.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var t=this.t,r=new Array;r[0]=this.s;var e,n=this.DB-t*this.DB%8,i=0;if(t-- >0)for(n<this.DB&&(e=this[t]>>n)!=(this.s&this.DM)>>n&&(r[i++]=e|this.s<<this.DB-n);t>=0;)n<8?(e=(this[t]&(1<<n)-1)<<8-n,e|=this[--t]>>(n+=this.DB-8)):(e=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),0!=(128&e)&&(e|=-256),0==i&&(128&this.s)!=(128&e)&&++i,(i>0||e!=this.s)&&(r[i++]=e);return r},e.prototype.equals=function(t){return 0==this.compareTo(t)},e.prototype.min=function(t){return this.compareTo(t)<0?this:t},e.prototype.max=function(t){return this.compareTo(t)>0?this:t},e.prototype.and=function(t){var r=n();return this.bitwiseTo(t,d,r),r},e.prototype.or=function(t){var r=n();return this.bitwiseTo(t,v,r),r},e.prototype.xor=function(t){var r=n();return this.bitwiseTo(t,y,r),r},e.prototype.andNot=function(t){var r=n();return this.bitwiseTo(t,g,r),r},e.prototype.not=function(){for(var t=n(),r=0;r<this.t;++r)t[r]=this.DM&~this[r];return t.t=this.t,t.s=~this.s,t},e.prototype.shiftLeft=function(t){var r=n();return t<0?this.rShiftTo(-t,r):this.lShiftTo(t,r),r},e.prototype.shiftRight=function(t){var r=n();return t<0?this.lShiftTo(-t,r):this.rShiftTo(t,r),r},e.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+m(this[t]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var t=0,r=this.s&this.DM,e=0;e<this.t;++e)t+=w(this[e]^r);return t},e.prototype.testBit=function(t){var r=Math.floor(t/this.DB);return r>=this.t?0!=this.s:0!=(this[r]&1<<t%this.DB)},e.prototype.setBit=function(t){return this.changeBit(t,v)},e.prototype.clearBit=function(t){return this.changeBit(t,g)},e.prototype.flipBit=function(t){return this.changeBit(t,y)},e.prototype.add=function(t){var r=n();return this.addTo(t,r),r},e.prototype.subtract=function(t){var r=n();return this.subTo(t,r),r},e.prototype.multiply=function(t){var r=n();return this.multiplyTo(t,r),r},e.prototype.divide=function(t){var r=n();return this.divRemTo(t,r,null),r},e.prototype.remainder=function(t){var r=n();return this.divRemTo(t,null,r),r},e.prototype.divideAndRemainder=function(t){var r=n(),e=n();return this.divRemTo(t,r,e),new Array(r,e)},e.prototype.modPow=function(t,r){var e,i,o=t.bitLength(),s=f(1);if(o<=0)return s;e=o<18?1:o<48?3:o<144?4:o<768?5:6,i=o<8?new l(r):r.isEven()?new x(r):new p(r);var u=new Array,a=3,h=e-1,d=(1<<e)-1;if(u[1]=i.convert(this),e>1){var v=n();for(i.sqrTo(u[1],v);a<=d;)u[a]=n(),i.mulTo(v,u[a-2],u[a]),a+=2}var y,g,m=t.t-1,w=!0,b=n();for(o=c(t[m])-1;m>=0;){for(o>=h?y=t[m]>>o-h&d:(y=(t[m]&(1<<o+1)-1)<<h-o,m>0&&(y|=t[m-1]>>this.DB+o-h)),a=e;0==(1&y);)y>>=1,--a;if((o-=a)<0&&(o+=this.DB,--m),w)u[y].copyTo(s),w=!1;else{for(;a>1;)i.sqrTo(s,b),i.sqrTo(b,s),a-=2;a>0?i.sqrTo(s,b):(g=s,s=b,b=g),i.mulTo(b,u[y],s)}for(;m>=0&&0==(t[m]&1<<o);)i.sqrTo(s,b),g=s,s=b,b=g,--o<0&&(o=this.DB-1,--m)}return i.revert(s)},e.prototype.modInverse=function(t){var r=t.isEven();if(this.isEven()&&r||0==t.signum())return e.ZERO;for(var n=t.clone(),i=this.clone(),o=f(1),s=f(0),u=f(0),a=f(1);0!=n.signum();){for(;n.isEven();)n.rShiftTo(1,n),r?(o.isEven()&&s.isEven()||(o.addTo(this,o),s.subTo(t,s)),o.rShiftTo(1,o)):s.isEven()||s.subTo(t,s),s.rShiftTo(1,s);for(;i.isEven();)i.rShiftTo(1,i),r?(u.isEven()&&a.isEven()||(u.addTo(this,u),a.subTo(t,a)),u.rShiftTo(1,u)):a.isEven()||a.subTo(t,a),a.rShiftTo(1,a);n.compareTo(i)>=0?(n.subTo(i,n),r&&o.subTo(u,o),s.subTo(a,s)):(i.subTo(n,i),r&&u.subTo(o,u),a.subTo(s,a))}return 0!=i.compareTo(e.ONE)?e.ZERO:a.compareTo(t)>=0?a.subtract(t):a.signum()<0?(a.addTo(t,a),a.signum()<0?a.add(t):a):a},e.prototype.pow=function(t){return this.exp(t,new b)},e.prototype.gcd=function(t){var r=this.s<0?this.negate():this.clone(),e=t.s<0?t.negate():t.clone();if(r.compareTo(e)<0){var n=r;r=e,e=n}var i=r.getLowestSetBit(),o=e.getLowestSetBit();if(o<0)return r;for(i<o&&(o=i),o>0&&(r.rShiftTo(o,r),e.rShiftTo(o,e));r.signum()>0;)(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),r.compareTo(e)>=0?(r.subTo(e,r),r.rShiftTo(1,r)):(e.subTo(r,e),e.rShiftTo(1,e));return o>0&&e.lShiftTo(o,e),e},e.prototype.isProbablePrime=function(t){var r,e=this.abs();if(1==e.t&&e[0]<=_[_.length-1]){for(r=0;r<_.length;++r)if(e[0]==_[r])return!0;return!1}if(e.isEven())return!1;for(r=1;r<_.length;){for(var n=_[r],i=r+1;i<_.length&&n<S;)n*=_[i++];for(n=e.modInt(n);r<i;)if(n%_[r++]==0)return!1}return e.millerRabin(t)},e.prototype.square=function(){var t=n();return this.squareTo(t),t},e.prototype.Barrett=x,null==A){var O;if(A=new Array,E=0,"undefined"!=typeof window&&window.crypto)if(window.crypto.getRandomValues){var R=new Uint8Array(32);for(window.crypto.getRandomValues(R),O=0;O<32;++O)A[E++]=R[O]}else if("Netscape"==navigator.appName&&navigator.appVersion<"5"){var k=window.crypto.random(32);for(O=0;O<k.length;++O)A[E++]=255&k.charCodeAt(O)}for(;E<I;)O=Math.floor(65536*Math.random()),A[E++]=O>>>8,A[E++]=255&O;E=0,B()}function F(){if(null==T){for(B(),(T=new D).init(A),E=0;E<A.length;++E)A[E]=0;E=0}return T.next()}function j(){}function D(){this.i=0,this.j=0,this.S=new Array}j.prototype.nextBytes=function(t){var r;for(r=0;r<t.length;++r)t[r]=F()},D.prototype.init=function(t){var r,e,n;for(r=0;r<256;++r)this.S[r]=r;for(e=0,r=0;r<256;++r)e=e+this.S[r]+t[r%t.length]&255,n=this.S[r],this.S[r]=this.S[e],this.S[e]=n;this.i=0,this.j=0},D.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]};var I=256;t.exports={default:e,BigInteger:e,SecureRandom:j}}.call(void 0)},function(t,r,e){"use strict";var n=e(37),i=n(e(65)),o=n(e(64)),s=e(141).BigInteger,u=(0,i.default)((function t(){(0,o.default)(this,t),this.p=new s("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),this.a=new s("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),this.b=new s("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16),this.Gx=new s("32C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7",16),this.Gy=new s("BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0",16),this.n=new s("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16),this.h=new s("1",16)}));t.exports=u},function(t,r,e){var n=e(48),i=e(7),o=e(10),s=e(35),u=e(153),a=e(13),h=e(34),f=e(152),c=e(83),l=e(250),p=TypeError,d=function(t,r){this.stopped=t,this.result=r},v=d.prototype;t.exports=function(t,r,e){var y,g,m,w,b,M,x,T=e&&e.that,A=!(!e||!e.AS_ENTRIES),E=!(!e||!e.IS_RECORD),_=!(!e||!e.IS_ITERATOR),S=!(!e||!e.INTERRUPTED),B=n(r,T),O=function(t){return y&&l(y,"normal",t),new d(!0,t)},R=function(t){return A?(o(t),S?B(t[0],t[1],O):B(t[0],t[1])):S?B(t,O):B(t)};if(E)y=t.iterator;else if(_)y=t;else{if(!(g=c(t)))throw p(s(t)+" is not iterable");if(u(g)){for(m=0,w=a(t);w>m;m++)if((b=R(t[m]))&&h(v,b))return b;return new d(!1)}y=f(t,g)}for(M=E?t.next:y.next;!(x=i(M,y)).done;){try{b=R(x.value)}catch(t){l(y,"throw",t)}if("object"==typeof b&&b&&h(v,b))return b}return new d(!1)}},function(t,r,e){"use strict";var n=e(6),i=e(15).map;n({target:"Array",proto:!0,forced:!e(63)("map")},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,r,e){var n=e(9),i=e(45).EXISTS,o=e(1),s=e(11).f,u=Function.prototype,a=o(u.toString),h=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,f=o(h.exec);n&&!i&&s(u,"name",{configurable:!0,get:function(){try{return f(h,a(this))[1]}catch(t){return""}}})},function(t,r,e){"use strict";var n,i,o=e(7),s=e(1),u=e(24),a=e(156),h=e(217),f=e(81),c=e(38),l=e(26).get,p=e(256),d=e(257),v=f("native-string-replace",String.prototype.replace),y=RegExp.prototype.exec,g=y,m=s("".charAt),w=s("".indexOf),b=s("".replace),M=s("".slice),x=(i=/b*/g,o(y,n=/a/,"a"),o(y,i,"a"),0!==n.lastIndex||0!==i.lastIndex),T=h.BROKEN_CARET,A=void 0!==/()??/.exec("")[1];(x||A||T||p||d)&&(g=function(t){var r,e,n,i,s,h,f,p=this,d=l(p),E=u(t),_=d.raw;if(_)return _.lastIndex=p.lastIndex,r=o(g,_,E),p.lastIndex=_.lastIndex,r;var S=d.groups,B=T&&p.sticky,O=o(a,p),R=p.source,k=0,F=E;if(B&&(O=b(O,"y",""),-1===w(O,"g")&&(O+="g"),F=M(E,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==m(E,p.lastIndex-1))&&(R="(?: "+R+")",F=" "+F,k++),e=new RegExp("^(?:"+R+")",O)),A&&(e=new RegExp("^"+R+"$(?!\\s)",O)),x&&(n=p.lastIndex),i=o(y,B?e:p,F),B?i?(i.input=M(i.input,k),i[0]=M(i[0],k),i.index=p.lastIndex,p.lastIndex+=i[0].length):p.lastIndex=0:x&&i&&(p.lastIndex=p.global?i.index+i[0].length:n),A&&i&&i.length>1&&o(v,i[0],e,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(i[s]=void 0)})),i&&S)for(i.groups=h=c(null),s=0;s<S.length;s++)h[(f=S[s])[0]]=i[f[1]];return i}),t.exports=g},function(t,r,e){var n=e(2),i=e(212),o=e(213),s=e(276),u=e(23),a=function(t){if(t&&t.forEach!==s)try{u(t,"forEach",s)}catch(r){t.forEach=s}};for(var h in i)i[h]&&a(n[h]&&n[h].prototype);a(o)},function(t,r){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,r,e){var n=e(130),i=e(75);t.exports=Object.keys||function(t){return n(t,i)}},function(t,r,e){var n=e(28);t.exports=n("document","documentElement")},function(t,r,e){var n=e(16);t.exports=function(t,r,e){for(var i in r)n(t,i,r[i],e);return t}},function(t,r,e){var n=e(7),i=e(25),o=e(10),s=e(35),u=e(83),a=TypeError;t.exports=function(t,r){var e=arguments.length<2?u(t):r;if(i(e))return o(n(e,t));throw a(s(t)+" is not iterable")}},function(t,r,e){var n=e(5),i=e(42),o=n("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||s[o]===t)}},function(t,r,e){var n=e(4),i=e(8),o=e(36);t.exports=function(t,r,e){var s,u;return o&&n(s=r.constructor)&&s!==e&&i(u=s.prototype)&&u!==e.prototype&&o(t,u),t}},function(t,r,e){"use strict";var n=e(35),i=TypeError;t.exports=function(t,r){if(!delete t[r])throw i("Cannot delete property "+n(r)+" of "+n(t))}},function(t,r,e){"use strict";var n=e(10);t.exports=function(){var t=n(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r}},function(t,r,e){"use strict";r.byteLength=function(t){var r=h(t),e=r[0],n=r[1];return 3*(e+n)/4-n},r.toByteArray=function(t){var r,e,n=h(t),s=n[0],u=n[1],a=new o(function(t,r,e){return 3*(r+e)/4-e}(0,s,u)),f=0,c=u>0?s-4:s;for(e=0;e<c;e+=4)r=i[t.charCodeAt(e)]<<18|i[t.charCodeAt(e+1)]<<12|i[t.charCodeAt(e+2)]<<6|i[t.charCodeAt(e+3)],a[f++]=r>>16&255,a[f++]=r>>8&255,a[f++]=255&r;2===u&&(r=i[t.charCodeAt(e)]<<2|i[t.charCodeAt(e+1)]>>4,a[f++]=255&r);1===u&&(r=i[t.charCodeAt(e)]<<10|i[t.charCodeAt(e+1)]<<4|i[t.charCodeAt(e+2)]>>2,a[f++]=r>>8&255,a[f++]=255&r);return a},r.fromByteArray=function(t){for(var r,e=t.length,i=e%3,o=[],s=16383,u=0,a=e-i;u<a;u+=s)o.push(f(t,u,u+s>a?a:u+s));1===i?(r=t[e-1],o.push(n[r>>2]+n[r<<4&63]+"==")):2===i&&(r=(t[e-2]<<8)+t[e-1],o.push(n[r>>10]+n[r>>4&63]+n[r<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,a=s.length;u<a;++u)n[u]=s[u],i[s.charCodeAt(u)]=u;function h(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");return-1===e&&(e=r),[e,e===r?0:4-e%4]}function f(t,r,e){for(var i,o,s=[],u=r;u<e;u+=3)i=(t[u]<<16&16711680)+(t[u+1]<<8&65280)+(255&t[u+2]),s.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,r,e){var n=e(5),i=e(38),o=e(11).f,s=n("unscopables"),u=Array.prototype;null==u[s]&&o(u,s,{configurable:!0,value:i(null)}),t.exports=function(t){u[s][t]=!0}},function(t,r,e){"use strict";var n=e(6),i=e(2),o=e(7),s=e(9),u=e(160),a=e(3),h=e(132),f=e(57),c=e(43),l=e(23),p=e(191),d=e(20),v=e(134),y=e(137),g=e(54),m=e(12),w=e(22),b=e(8),M=e(74),x=e(38),T=e(34),A=e(36),E=e(50).f,_=e(161),S=e(15).forEach,B=e(121),O=e(11),R=e(49),k=e(26),F=e(154),j=k.get,D=k.set,I=k.enforce,P=O.f,C=R.f,L=Math.round,U=i.RangeError,N=h.ArrayBuffer,q=N.prototype,Y=h.DataView,z=a.NATIVE_ARRAY_BUFFER_VIEWS,V=a.TYPED_ARRAY_TAG,Z=a.TypedArray,G=a.TypedArrayPrototype,K=a.aTypedArrayConstructor,W=a.isTypedArray,X="BYTES_PER_ELEMENT",H="Wrong length",$=function(t,r){K(t);for(var e=0,n=r.length,i=new t(n);n>e;)i[e]=r[e++];return i},J=function(t,r){P(t,r,{get:function(){return j(this)[r]}})},Q=function(t){var r;return T(q,t)||"ArrayBuffer"==(r=w(t))||"SharedArrayBuffer"==r},tt=function(t,r){return W(t)&&!M(r)&&r in t&&p(+r)&&r>=0},rt=function(t,r){return r=g(r),tt(t,r)?c(2,t[r]):C(t,r)},et=function(t,r,e){return r=g(r),!(tt(t,r)&&b(e)&&m(e,"value"))||m(e,"get")||m(e,"set")||e.configurable||m(e,"writable")&&!e.writable||m(e,"enumerable")&&!e.enumerable?P(t,r,e):(t[r]=e.value,t)};s?(z||(R.f=rt,O.f=et,J(G,"buffer"),J(G,"byteOffset"),J(G,"byteLength"),J(G,"length")),n({target:"Object",stat:!0,forced:!z},{getOwnPropertyDescriptor:rt,defineProperty:et}),t.exports=function(t,r,e){var s=t.match(/\d+$/)[0]/8,a=t+(e?"Clamped":"")+"Array",h="get"+t,c="set"+t,p=i[a],g=p,m=g&&g.prototype,w={},M=function(t,r){P(t,r,{get:function(){return function(t,r){var e=j(t);return e.view[h](r*s+e.byteOffset,!0)}(this,r)},set:function(t){return function(t,r,n){var i=j(t);e&&(n=(n=L(n))<0?0:n>255?255:255&n),i.view[c](r*s+i.byteOffset,n,!0)}(this,r,t)},enumerable:!0})};z?u&&(g=r((function(t,r,e,n){return f(t,m),F(b(r)?Q(r)?void 0!==n?new p(r,y(e,s),n):void 0!==e?new p(r,y(e,s)):new p(r):W(r)?$(g,r):o(_,g,r):new p(v(r)),t,g)})),A&&A(g,Z),S(E(p),(function(t){t in g||l(g,t,p[t])})),g.prototype=m):(g=r((function(t,r,e,n){f(t,m);var i,u,a,h=0,c=0;if(b(r)){if(!Q(r))return W(r)?$(g,r):o(_,g,r);i=r,c=y(e,s);var l=r.byteLength;if(void 0===n){if(l%s)throw U(H);if((u=l-c)<0)throw U(H)}else if((u=d(n)*s)+c>l)throw U(H);a=u/s}else a=v(r),i=new N(u=a*s);for(D(t,{buffer:i,byteOffset:c,byteLength:u,length:a,view:new Y(i)});h<a;)M(t,h++)})),A&&A(g,Z),m=g.prototype=x(G)),m.constructor!==g&&l(m,"constructor",g),I(m).TypedArrayConstructor=g,V&&l(m,V,a);var T=g!=p;w[a]=g,n({global:!0,constructor:!0,forced:T,sham:!z},w),X in g||l(g,X,s),X in m||l(m,X,s),B(a)}):t.exports=function(){}},function(t,r,e){var n=e(2),i=e(0),o=e(120),s=e(3).NATIVE_ARRAY_BUFFER_VIEWS,u=n.ArrayBuffer,a=n.Int8Array;t.exports=!s||!i((function(){a(1)}))||!i((function(){new a(-1)}))||!o((function(t){new a,new a(null),new a(1.5),new a(t)}),!0)||i((function(){return 1!==new a(new u(2),1,void 0).length}))},function(t,r,e){var n=e(48),i=e(7),o=e(135),s=e(14),u=e(13),a=e(152),h=e(83),f=e(153),c=e(193),l=e(3).aTypedArrayConstructor,p=e(138);t.exports=function(t){var r,e,d,v,y,g,m,w,b=o(this),M=s(t),x=arguments.length,T=x>1?arguments[1]:void 0,A=void 0!==T,E=h(M);if(E&&!f(E))for(w=(m=a(M,E)).next,M=[];!(g=i(w,m)).done;)M.push(g.value);for(A&&x>2&&(T=n(T,arguments[2])),e=u(M),d=new(l(b))(e),v=c(d),r=0;e>r;r++)y=A?T(M[r],r):M[r],d[r]=v?p(y):+y;return d}},function(t,r,e){var n=e(6),i=e(203);n({global:!0,forced:parseInt!=i},{parseInt:i})},function(t,r,e){var n=e(226),i=e(227),o=e(228),s=e(229);t.exports=function(t){return n(t)||i(t)||o(t)||s()},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,r){t.exports=function(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,r,e){"use strict";var n=e(37);e(27);var i=n(e(64)),o=n(e(65)),s=e(79),u=[2043430169,4086860338,3878753381,3462539467,2630111639,965255983,1930511966,3861023932,3427080569,2559193843,823420391,1646840782,3293681564,2292395833,289824371,579648742,2643098247,991229199,1982458398,3964916796,3634866297,2974765299,1654563303,3309126606,2323285917,351604539,703209078,1406418156,2812836312,1330705329,2661410658,1027854021,2055708042,4111416084,3927864873,3560762451,2826557607,1358147919,2716295838,1137624381,2275248762,255530229,511060458,1022120916,2044241832,4088483664,3882000033,3469032771,2643098247,991229199,1982458398,3964916796,3634866297,2974765299,1654563303,3309126606,2323285917,351604539,703209078,1406418156,2812836312,1330705329,2661410658,1027854021],a=64,h=new Array(68);function f(t,r){return t<<r|t>>>32-r}function c(t){return t^f(t,15)^f(t,23)}function l(t,r,e,n,i,o,s,a,c){var l=f(r,12),p=f(l+o+u[t],7);return l^=p,t<=15?(i=i+(r^e^n)+l+(h[t]^h[t+4]),c=c+function(t,r,e){return t^r^e}(o,s,a)+p+h[t]):(i=i+function(t,r,e){return t&r|t&e|r&e}(r,e,n)+l+(h[t]^h[t+4]),c=c+function(t,r,e){return t&r|~t&e}(o,s,a)+p+h[t]),e=f(e,9),s=f(s,19),c=function(t){return t^f(t,9)^f(t,17)}(c),[e,i,s,c]}var p=function(){function t(){(0,i.default)(this,t),this.digest=new Array(8),this.nblocks=0,this.block=new Array(64),this.num=0}return(0,o.default)(t,[{key:"init",value:function(){this.digest[0]=1937774191,this.digest[1]=1226093241,this.digest[2]=388252375,this.digest[3]=3666478592,this.digest[4]=2842636476,this.digest[5]=372324522,this.digest[6]=3817729613,this.digest[7]=2969243214;for(var t=0;t<64;t++)this.block[t]=0;this.nblocks=0,this.num=0}},{key:"SM3Compress",value:function(t){for(var r=0,e=new Array(4),n=this.digest[0],i=this.digest[1],o=this.digest[2],s=this.digest[3],u=this.digest[4],a=this.digest[5],p=this.digest[6],d=this.digest[7],v=new Array(16),y=0;y+3<64;y+=4)v[y/4]=(t[y]<<24)+(t[y+1]<<16)+(t[y+2]<<8)+t[y+3];for(r=0;r<4;r++)h[r]=v[r];for(r=0;r<=8;r+=4)h[r+4]=v[r+4],i=(e=l(r,n,i,o,s,u,a,p,d))[0],s=e[1],a=e[2],d=e[3],h[r+5]=v[r+5],n=(e=l(r+1,s,n,i,o,d,u,a,p))[0],o=e[1],u=e[2],p=e[3],h[r+6]=v[r+6],s=(e=l(r+2,o,s,n,i,p,d,u,a))[0],i=e[1],d=e[2],a=e[3],h[r+7]=v[r+7],o=(e=l(r+3,i,o,s,n,a,p,d,u))[0],n=e[1],p=e[2],u=e[3];for(r=12;r<=60;r+=4)h[r+4]=c(h[r-12]^h[r-5]^f(h[r+1],15))^f(h[r-9],7)^h[r-2],i=(e=l(r,n,i,o,s,u,a,p,d))[0],s=e[1],a=e[2],d=e[3],h[r+5]=c(h[r-11]^h[r-4]^f(h[r+2],15))^f(h[r-8],7)^h[r-1],n=(e=l(r+1,s,n,i,o,d,u,a,p))[0],o=e[1],u=e[2],p=e[3],h[r+6]=c(h[r-10]^h[r-3]^f(h[r+3],15))^f(h[r-7],7)^h[r],s=(e=l(r+2,o,s,n,i,p,d,u,a))[0],i=e[1],d=e[2],a=e[3],h[r+7]=c(h[r-9]^h[r-2]^f(h[r+4],15))^f(h[r-6],7)^h[r+1],o=(e=l(r+3,i,o,s,n,a,p,d,u))[0],n=e[1],p=e[2],u=e[3];this.digest[0]^=n,this.digest[1]^=i,this.digest[2]^=o,this.digest[3]^=s,this.digest[4]^=u,this.digest[5]^=a,this.digest[6]^=p,this.digest[7]^=d;for(var g=0;g<8;g++)this.digest[g]=this.digest[g]>>>0}},{key:"update",value:function(t){for(var r=t.length,e=0;e<r;e++)t[e]=(t[e]>>>0)%256;if(this.num){var n=a-this.num;if(r<n){for(var i=0;i<r;i++)this.block[this.num+i]=t[i];return void(this.num+=r)}for(var o=0;o<n;o++)this.block[this.num+o]=t[o];this.SM3Compress(this.block),this.nblocks++,t=t.slice(n),r-=n}for(var s=0;r>=a;){var u=a*s,h=t.slice(u,u+a);this.SM3Compress(h),this.nblocks++,s++,r-=a}this.num=r;var f=s*a;if(r)for(var c=0;c<r;c++)this.block[c]=t[f+c]}},{key:"final",value:function(){if(this.block[this.num]=128,this.num+9<=a)for(var t=0;t<a-this.num-9;t++)this.block[this.num+1+t]=0;else{for(var r=0;r<a-this.num-1;r++)this.block[this.num+1+r]=0;this.SM3Compress(this.block);for(var e=0;e<56;e++)this.block[e]=0}var n=this.nblocks>>>23,i=(this.nblocks<<9)+(this.num<<3);this.block[56]=(n>>>24)%256,this.block[57]=(n>>>16)%256,this.block[58]=(n>>>8)%256,this.block[59]=(n>>>0)%256,this.block[60]=(i>>>24)%256,this.block[61]=(i>>>16)%256,this.block[62]=(i>>>8)%256,this.block[63]=(i>>>0)%256;var o=new Array(32);this.SM3Compress(this.block);for(var s=0;s<8;s++)o[4*s]=(this.digest[s]>>>24)%256,o[4*s+1]=(this.digest[s]>>>16)%256,o[4*s+2]=(this.digest[s]>>>8)%256,o[4*s+3]=(this.digest[s]>>>0)%256;return o}},{key:"hashForBinaryArray",value:function(t){this.init(),this.update(t);var r=this.final();return s.byteArrayToHex(r)}},{key:"hashForUTF8String",value:function(t){var r=s.stringToByteArrayInUtf8(t);return this.hashForBinaryArray(r)}}]),t}();t.exports=p},function(t,r,e){"use strict";e(86);var n=e(1),i=e(16),o=e(146),s=e(0),u=e(5),a=e(23),h=u("species"),f=RegExp.prototype;t.exports=function(t,r,e,c){var l=u(t),p=!s((function(){var r={};return r[l]=function(){return 7},7!=""[t](r)})),d=p&&!s((function(){var r=!1,e=/a/;return"split"===t&&((e={}).constructor={},e.constructor[h]=function(){return e},e.flags="",e[l]=/./[l]),e.exec=function(){return r=!0,null},e[l](""),!r}));if(!p||!d||e){var v=n(/./[l]),y=r(l,""[t],(function(t,r,e,i,s){var u=n(t),a=r.exec;return a===o||a===f.exec?p&&!s?{done:!0,value:v(r,e,i)}:{done:!0,value:u(e,r,i)}:{done:!1}}));i(String.prototype,t,y[0]),i(f,l,y[1])}c&&a(f[l],"sham",!0)}},function(t,r,e){"use strict";var n=e(122).charAt;t.exports=function(t,r,e){return r+(e?n(t,r).length:1)}},function(t,r,e){var n=e(7),i=e(10),o=e(4),s=e(29),u=e(146),a=TypeError;t.exports=function(t,r){var e=t.exec;if(o(e)){var h=n(e,t,r);return null!==h&&i(h),h}if("RegExp"===s(t))return n(u,t,r);throw a("RegExp#exec called on incompatible receiver")}},function(t,r){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,r,e){"use strict";(function(r){var n,i=e(176),o=i.Buffer,s={};for(n in i)i.hasOwnProperty(n)&&"SlowBuffer"!==n&&"Buffer"!==n&&(s[n]=i[n]);var u=s.Buffer={};for(n in o)o.hasOwnProperty(n)&&"allocUnsafe"!==n&&"allocUnsafeSlow"!==n&&(u[n]=o[n]);if(s.Buffer.prototype=o.prototype,u.from&&u.from!==Uint8Array.from||(u.from=function(t,r,e){if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof t);if(t&&void 0===t.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);return o(t,r,e)}),u.alloc||(u.alloc=function(t,r,e){if("number"!=typeof t)throw new TypeError('The "size" argument must be of type number. Received type '+typeof t);if(t<0||t>=2*(1<<30))throw new RangeError('The value "'+t+'" is invalid for option "size"');var n=o(t);return r&&0!==r.length?"string"==typeof e?n.fill(r,e):n.fill(r):n.fill(0),n}),!s.kStringMaxLength)try{s.kStringMaxLength=r.binding("buffer").kStringMaxLength}catch(t){}s.constants||(s.constants={MAX_LENGTH:s.kMaxLength},s.kStringMaxLength&&(s.constants.MAX_STRING_LENGTH=s.kStringMaxLength)),t.exports=s}).call(this,e(275))},function(t,r,e){"use strict";var n=e(37)(e(223));e(80),e(17),e(147),e(277),e(144),e(172),e(27),e(86);var i=e(173).Reporter,o=e(90).EncoderBuffer,s=e(90).DecoderBuffer,u=e(278),a=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],h=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function f(t,r,e){var n={};this._baseState=n,n.name=e,n.enc=t,n.parent=r||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}t.exports=f;var c=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];f.prototype.clone=function(){var t=this._baseState,r={};c.forEach((function(e){r[e]=t[e]}));var e=new this.constructor(r.parent);return e._baseState=r,e},f.prototype._wrap=function(){var t=this._baseState;h.forEach((function(r){this[r]=function(){var e=new this.constructor(this);return t.children.push(e),e[r].apply(e,arguments)}}),this)},f.prototype._init=function(t){var r=this._baseState;u(null===r.parent),t.call(this),r.children=r.children.filter((function(t){return t._baseState.parent===this}),this),u.equal(r.children.length,1,"Root node can have only one child")},f.prototype._useArgs=function(t){var r=this._baseState,e=t.filter((function(t){return t instanceof this.constructor}),this);t=t.filter((function(t){return!(t instanceof this.constructor)}),this),0!==e.length&&(u(null===r.children),r.children=e,e.forEach((function(t){t._baseState.parent=this}),this)),0!==t.length&&(u(null===r.args),r.args=t,r.reverseArgs=t.map((function(t){if("object"!==(0,n.default)(t)||t.constructor!==Object)return t;var r={};return Object.keys(t).forEach((function(e){e==(0|e)&&(e|=0);var n=t[e];r[n]=e})),r})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(t){f.prototype[t]=function(){var r=this._baseState;throw new Error(t+" not implemented for encoding: "+r.enc)}})),a.forEach((function(t){f.prototype[t]=function(){var r=this._baseState,e=Array.prototype.slice.call(arguments);return u(null===r.tag),r.tag=t,this._useArgs(e),this}})),f.prototype.use=function(t){u(t);var r=this._baseState;return u(null===r.use),r.use=t,this},f.prototype.optional=function(){return this._baseState.optional=!0,this},f.prototype.def=function(t){var r=this._baseState;return u(null===r.default),r.default=t,r.optional=!0,this},f.prototype.explicit=function(t){var r=this._baseState;return u(null===r.explicit&&null===r.implicit),r.explicit=t,this},f.prototype.implicit=function(t){var r=this._baseState;return u(null===r.explicit&&null===r.implicit),r.implicit=t,this},f.prototype.obj=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return t.obj=!0,0!==r.length&&this._useArgs(r),this},f.prototype.key=function(t){var r=this._baseState;return u(null===r.key),r.key=t,this},f.prototype.any=function(){return this._baseState.any=!0,this},f.prototype.choice=function(t){var r=this._baseState;return u(null===r.choice),r.choice=t,this._useArgs(Object.keys(t).map((function(r){return t[r]}))),this},f.prototype.contains=function(t){var r=this._baseState;return u(null===r.use),r.contains=t,this},f.prototype._decode=function(t,r){var e=this._baseState;if(null===e.parent)return t.wrapResult(e.children[0]._decode(t,r));var n,i=e.default,o=!0,u=null;if(null!==e.key&&(u=t.enterKey(e.key)),e.optional){var a=null;if(null!==e.explicit?a=e.explicit:null!==e.implicit?a=e.implicit:null!==e.tag&&(a=e.tag),null!==a||e.any){if(o=this._peekTag(t,a,e.any),t.isError(o))return o}else{var h=t.save();try{null===e.choice?this._decodeGeneric(e.tag,t,r):this._decodeChoice(t,r),o=!0}catch(t){o=!1}t.restore(h)}}if(e.obj&&o&&(n=t.enterObject()),o){if(null!==e.explicit){var f=this._decodeTag(t,e.explicit);if(t.isError(f))return f;t=f}var c=t.offset;if(null===e.use&&null===e.choice){var l;e.any&&(l=t.save());var p=this._decodeTag(t,null!==e.implicit?e.implicit:e.tag,e.any);if(t.isError(p))return p;e.any?i=t.raw(l):t=p}if(r&&r.track&&null!==e.tag&&r.track(t.path(),c,t.length,"tagged"),r&&r.track&&null!==e.tag&&r.track(t.path(),t.offset,t.length,"content"),e.any||(i=null===e.choice?this._decodeGeneric(e.tag,t,r):this._decodeChoice(t,r)),t.isError(i))return i;if(e.any||null!==e.choice||null===e.children||e.children.forEach((function(e){e._decode(t,r)})),e.contains&&("octstr"===e.tag||"bitstr"===e.tag)){var d=new s(i);i=this._getUse(e.contains,t._reporterState.obj)._decode(d,r)}}return e.obj&&o&&(i=t.leaveObject(n)),null===e.key||null===i&&!0!==o?null!==u&&t.exitKey(u):t.leaveKey(u,e.key,i),i},f.prototype._decodeGeneric=function(t,r,e){var n=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(r,t,n.args[0],e):/str$/.test(t)?this._decodeStr(r,t,e):"objid"===t&&n.args?this._decodeObjid(r,n.args[0],n.args[1],e):"objid"===t?this._decodeObjid(r,null,null,e):"gentime"===t||"utctime"===t?this._decodeTime(r,t,e):"null_"===t?this._decodeNull(r,e):"bool"===t?this._decodeBool(r,e):"objDesc"===t?this._decodeStr(r,t,e):"int"===t||"enum"===t?this._decodeInt(r,n.args&&n.args[0],e):null!==n.use?this._getUse(n.use,r._reporterState.obj)._decode(r,e):r.error("unknown tag: "+t)},f.prototype._getUse=function(t,r){var e=this._baseState;return e.useDecoder=this._use(t,r),u(null===e.useDecoder._baseState.parent),e.useDecoder=e.useDecoder._baseState.children[0],e.implicit!==e.useDecoder._baseState.implicit&&(e.useDecoder=e.useDecoder.clone(),e.useDecoder._baseState.implicit=e.implicit),e.useDecoder},f.prototype._decodeChoice=function(t,r){var e=this._baseState,n=null,i=!1;return Object.keys(e.choice).some((function(o){var s=t.save(),u=e.choice[o];try{var a=u._decode(t,r);if(t.isError(a))return!1;n={type:o,value:a},i=!0}catch(r){return t.restore(s),!1}return!0}),this),i?n:t.error("Choice not matched")},f.prototype._createEncoderBuffer=function(t){return new o(t,this.reporter)},f.prototype._encode=function(t,r,e){var n=this._baseState;if(null===n.default||n.default!==t){var i=this._encodeValue(t,r,e);if(void 0!==i&&!this._skipDefault(i,r,e))return i}},f.prototype._encodeValue=function(t,r,e){var o=this._baseState;if(null===o.parent)return o.children[0]._encode(t,r||new i);var s=null;if(this.reporter=r,o.optional&&void 0===t){if(null===o.default)return;t=o.default}var u=null,a=!1;if(o.any)s=this._createEncoderBuffer(t);else if(o.choice)s=this._encodeChoice(t,r);else if(o.contains)u=this._getUse(o.contains,e)._encode(t,r),a=!0;else if(o.children)u=o.children.map((function(e){if("null_"===e._baseState.tag)return e._encode(null,r,t);if(null===e._baseState.key)return r.error("Child should have a key");var i=r.enterKey(e._baseState.key);if("object"!==(0,n.default)(t))return r.error("Child expected, but input is not object");var o=e._encode(t[e._baseState.key],r,t);return r.leaveKey(i),o}),this).filter((function(t){return t})),u=this._createEncoderBuffer(u);else if("seqof"===o.tag||"setof"===o.tag){if(!o.args||1!==o.args.length)return r.error("Too many args for : "+o.tag);if(!Array.isArray(t))return r.error("seqof/setof, but data is not Array");var h=this.clone();h._baseState.implicit=null,u=this._createEncoderBuffer(t.map((function(e){var n=this._baseState;return this._getUse(n.args[0],t)._encode(e,r)}),h))}else null!==o.use?s=this._getUse(o.use,e)._encode(t,r):(u=this._encodePrimitive(o.tag,t),a=!0);if(!o.any&&null===o.choice){var f=null!==o.implicit?o.implicit:o.tag,c=null===o.implicit?"universal":"context";null===f?null===o.use&&r.error("Tag could be omitted only for .use()"):null===o.use&&(s=this._encodeComposite(f,a,c,u))}return null!==o.explicit&&(s=this._encodeComposite(o.explicit,!1,"context",s)),s},f.prototype._encodeChoice=function(t,r){var e=this._baseState,n=e.choice[t.type];return n||u(!1,t.type+" not found in "+JSON.stringify(Object.keys(e.choice))),n._encode(t.value,r)},f.prototype._encodePrimitive=function(t,r){var e=this._baseState;if(/str$/.test(t))return this._encodeStr(r,t);if("objid"===t&&e.args)return this._encodeObjid(r,e.reverseArgs[0],e.args[1]);if("objid"===t)return this._encodeObjid(r,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(r,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(r,e.args&&e.reverseArgs[0]);if("bool"===t)return this._encodeBool(r);if("objDesc"===t)return this._encodeStr(r,t);throw new Error("Unsupported tag: "+t)},f.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},f.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)}},function(t,r,e){var n=e(6),i=e(14),o=e(149);n({target:"Object",stat:!0,forced:e(0)((function(){o(1)}))},{keys:function(t){return o(i(t))}})},function(t,r,e){"use strict";e(27),e(39),e(144);var n=e(58);function i(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function o(t,r){this.path=t,this.rethrow(r)}r.Reporter=i,i.prototype.isError=function(t){return t instanceof o},i.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},i.prototype.restore=function(t){var r=this._reporterState;r.obj=t.obj,r.path=r.path.slice(0,t.pathLen)},i.prototype.enterKey=function(t){return this._reporterState.path.push(t)},i.prototype.exitKey=function(t){var r=this._reporterState;r.path=r.path.slice(0,t-1)},i.prototype.leaveKey=function(t,r,e){var n=this._reporterState;this.exitKey(t),null!==n.obj&&(n.obj[r]=e)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var t=this._reporterState,r=t.obj;return t.obj={},r},i.prototype.leaveObject=function(t){var r=this._reporterState,e=r.obj;return r.obj=t,e},i.prototype.error=function(t){var r,e=this._reporterState,n=t instanceof o;if(r=n?t:new o(e.path.map((function(t){return"["+JSON.stringify(t)+"]"})).join(""),t.message||t,t.stack),!e.options.partial)throw r;return n||e.errors.push(r),r},i.prototype.wrapResult=function(t){var r=this._reporterState;return r.options.partial?{result:this.isError(t)?null:t,errors:r.errors}:t},n(o,Error),o.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},function(t,r,e){"use strict";function n(t){var r={};return Object.keys(t).forEach((function(e){(0|e)==e&&(e|=0);var n=t[e];r[n]=e})),r}e(17),e(147),e(172),r.tagClass={0:"universal",1:"application",2:"context",3:"private"},r.tagClassByName=n(r.tagClass),r.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},r.tagByName=n(r.tag)},function(t,r){var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},function(t,r,e){"use strict";(function(t){var n=e(157),i=e(235),o=e(236);function s(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(t,r){if(s()<r)throw new RangeError("Invalid typed array length");return a.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r)).__proto__=a.prototype:(null===t&&(t=new a(r)),t.length=r),t}function a(t,r,e){if(!(a.TYPED_ARRAY_SUPPORT||this instanceof a))return new a(t,r,e);if("number"==typeof t){if("string"==typeof r)throw new Error("If encoding is specified then the first argument must be a string");return c(this,t)}return h(this,t,r,e)}function h(t,r,e,n){if("number"==typeof r)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&r instanceof ArrayBuffer?function(t,r,e,n){if(r.byteLength,e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(n||0))throw new RangeError("'length' is out of bounds");r=void 0===e&&void 0===n?new Uint8Array(r):void 0===n?new Uint8Array(r,e):new Uint8Array(r,e,n);a.TYPED_ARRAY_SUPPORT?(t=r).__proto__=a.prototype:t=l(t,r);return t}(t,r,e,n):"string"==typeof r?function(t,r,e){"string"==typeof e&&""!==e||(e="utf8");if(!a.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var n=0|d(r,e),i=(t=u(t,n)).write(r,e);i!==n&&(t=t.slice(0,i));return t}(t,r,e):function(t,r){if(a.isBuffer(r)){var e=0|p(r.length);return 0===(t=u(t,e)).length||r.copy(t,0,0,e),t}if(r){if("undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!=typeof r.length||(n=r.length)!=n?u(t,0):l(t,r);if("Buffer"===r.type&&o(r.data))return l(t,r.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,r)}function f(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function c(t,r){if(f(r),t=u(t,r<0?0:0|p(r)),!a.TYPED_ARRAY_SUPPORT)for(var e=0;e<r;++e)t[e]=0;return t}function l(t,r){var e=r.length<0?0:0|p(r.length);t=u(t,e);for(var n=0;n<e;n+=1)t[n]=255&r[n];return t}function p(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function d(t,r){if(a.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var e=t.length;if(0===e)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return Y(t).length;default:if(n)return q(t).length;r=(""+r).toLowerCase(),n=!0}}function v(t,r,e){var n=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if((e>>>=0)<=(r>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,r,e);case"utf8":case"utf-8":return _(this,r,e);case"ascii":return B(this,r,e);case"latin1":case"binary":return O(this,r,e);case"base64":return E(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function y(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}function g(t,r,e,n,i){if(0===t.length)return-1;if("string"==typeof e?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0){if(!i)return-1;e=0}if("string"==typeof r&&(r=a.from(r,n)),a.isBuffer(r))return 0===r.length?-1:m(t,r,e,n,i);if("number"==typeof r)return r&=255,a.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):m(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function m(t,r,e,n,i){var o,s=1,u=t.length,a=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return-1;s=2,u/=2,a/=2,e/=2}function h(t,r){return 1===s?t[r]:t.readUInt16BE(r*s)}if(i){var f=-1;for(o=e;o<u;o++)if(h(t,o)===h(r,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===a)return f*s}else-1!==f&&(o-=o-f),f=-1}else for(e+a>u&&(e=u-a),o=e;o>=0;o--){for(var c=!0,l=0;l<a;l++)if(h(t,o+l)!==h(r,l)){c=!1;break}if(c)return o}return-1}function w(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n))>i&&(n=i):n=i;var o=r.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s<n;++s){var u=parseInt(r.substr(2*s,2),16);if(isNaN(u))return s;t[e+s]=u}return s}function b(t,r,e,n){return z(q(r,t.length-e),t,e,n)}function M(t,r,e,n){return z(function(t){for(var r=[],e=0;e<t.length;++e)r.push(255&t.charCodeAt(e));return r}(r),t,e,n)}function x(t,r,e,n){return M(t,r,e,n)}function T(t,r,e,n){return z(Y(r),t,e,n)}function A(t,r,e,n){return z(function(t,r){for(var e,n,i,o=[],s=0;s<t.length&&!((r-=2)<0);++s)n=(e=t.charCodeAt(s))>>8,i=e%256,o.push(i),o.push(n);return o}(r,t.length-e),t,e,n)}function E(t,r,e){return 0===r&&e===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(r,e))}function _(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var o,s,u,a,h=t[i],f=null,c=h>239?4:h>223?3:h>191?2:1;if(i+c<=e)switch(c){case 1:h<128&&(f=h);break;case 2:128==(192&(o=t[i+1]))&&(a=(31&h)<<6|63&o)>127&&(f=a);break;case 3:o=t[i+1],s=t[i+2],128==(192&o)&&128==(192&s)&&(a=(15&h)<<12|(63&o)<<6|63&s)>2047&&(a<55296||a>57343)&&(f=a);break;case 4:o=t[i+1],s=t[i+2],u=t[i+3],128==(192&o)&&128==(192&s)&&128==(192&u)&&(a=(15&h)<<18|(63&o)<<12|(63&s)<<6|63&u)>65535&&a<1114112&&(f=a)}null===f?(f=65533,c=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=c}return function(t){var r=t.length;if(r<=S)return String.fromCharCode.apply(String,t);var e="",n=0;for(;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=S));return e}(n)}r.Buffer=a,r.SlowBuffer=function(t){+t!=t&&(t=0);return a.alloc(+t)},r.INSPECT_MAX_BYTES=50,a.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),r.kMaxLength=s(),a.poolSize=8192,a._augment=function(t){return t.__proto__=a.prototype,t},a.from=function(t,r,e){return h(null,t,r,e)},a.TYPED_ARRAY_SUPPORT&&(a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0})),a.alloc=function(t,r,e){return function(t,r,e,n){return f(r),r<=0?u(t,r):void 0!==e?"string"==typeof n?u(t,r).fill(e,n):u(t,r).fill(e):u(t,r)}(null,t,r,e)},a.allocUnsafe=function(t){return c(null,t)},a.allocUnsafeSlow=function(t){return c(null,t)},a.isBuffer=function(t){return!(null==t||!t._isBuffer)},a.compare=function(t,r){if(!a.isBuffer(t)||!a.isBuffer(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var e=t.length,n=r.length,i=0,o=Math.min(e,n);i<o;++i)if(t[i]!==r[i]){e=t[i],n=r[i];break}return e<n?-1:n<e?1:0},a.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(t,r){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);var e;if(void 0===r)for(r=0,e=0;e<t.length;++e)r+=t[e].length;var n=a.allocUnsafe(r),i=0;for(e=0;e<t.length;++e){var s=t[e];if(!a.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,i),i+=s.length}return n},a.byteLength=d,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)y(this,r,r+1);return this},a.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)y(this,r,r+3),y(this,r+1,r+2);return this},a.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)y(this,r,r+7),y(this,r+1,r+6),y(this,r+2,r+5),y(this,r+3,r+4);return this},a.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?_(this,0,t):v.apply(this,arguments)},a.prototype.equals=function(t){if(!a.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){var t="",e=r.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),"<Buffer "+t+">"},a.prototype.compare=function(t,r,e,n,i){if(!a.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===r&&(r=0),void 0===e&&(e=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),r<0||e>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&r>=e)return 0;if(n>=i)return-1;if(r>=e)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(e>>>=0)-(r>>>=0),u=Math.min(o,s),h=this.slice(n,i),f=t.slice(r,e),c=0;c<u;++c)if(h[c]!==f[c]){o=h[c],s=f[c];break}return o<s?-1:s<o?1:0},a.prototype.includes=function(t,r,e){return-1!==this.indexOf(t,r,e)},a.prototype.indexOf=function(t,r,e){return g(this,t,r,e,!0)},a.prototype.lastIndexOf=function(t,r,e){return g(this,t,r,e,!1)},a.prototype.write=function(t,r,e,n){if(void 0===r)n="utf8",e=this.length,r=0;else if(void 0===e&&"string"==typeof r)n=r,e=this.length,r=0;else{if(!isFinite(r))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");r|=0,isFinite(e)?(e|=0,void 0===n&&(n="utf8")):(n=e,e=void 0)}var i=this.length-r;if((void 0===e||e>i)&&(e=i),t.length>0&&(e<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return w(this,t,r,e);case"utf8":case"utf-8":return b(this,t,r,e);case"ascii":return M(this,t,r,e);case"latin1":case"binary":return x(this,t,r,e);case"base64":return T(this,t,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,r,e);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function B(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(127&t[i]);return n}function O(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function R(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",o=r;o<e;++o)i+=N(t[o]);return i}function k(t,r,e){for(var n=t.slice(r,e),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function F(t,r,e){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}function j(t,r,e,n,i,o){if(!a.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}function D(t,r,e,n){r<0&&(r=65535+r+1);for(var i=0,o=Math.min(t.length-e,2);i<o;++i)t[e+i]=(r&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function I(t,r,e,n){r<0&&(r=4294967295+r+1);for(var i=0,o=Math.min(t.length-e,4);i<o;++i)t[e+i]=r>>>8*(n?i:3-i)&255}function P(t,r,e,n,i,o){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function C(t,r,e,n,o){return o||P(t,0,e,4),i.write(t,r,e,n,23,4),e+4}function L(t,r,e,n,o){return o||P(t,0,e,8),i.write(t,r,e,n,52,8),e+8}a.prototype.slice=function(t,r){var e,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(r=void 0===r?n:~~r)<0?(r+=n)<0&&(r=0):r>n&&(r=n),r<t&&(r=t),a.TYPED_ARRAY_SUPPORT)(e=this.subarray(t,r)).__proto__=a.prototype;else{var i=r-t;e=new a(i,void 0);for(var o=0;o<i;++o)e[o]=this[o+t]}return e},a.prototype.readUIntLE=function(t,r,e){t|=0,r|=0,e||F(t,r,this.length);for(var n=this[t],i=1,o=0;++o<r&&(i*=256);)n+=this[t+o]*i;return n},a.prototype.readUIntBE=function(t,r,e){t|=0,r|=0,e||F(t,r,this.length);for(var n=this[t+--r],i=1;r>0&&(i*=256);)n+=this[t+--r]*i;return n},a.prototype.readUInt8=function(t,r){return r||F(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,r){return r||F(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUInt16BE=function(t,r){return r||F(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUInt32LE=function(t,r){return r||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},a.prototype.readUInt32BE=function(t,r){return r||F(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readIntLE=function(t,r,e){t|=0,r|=0,e||F(t,r,this.length);for(var n=this[t],i=1,o=0;++o<r&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*r)),n},a.prototype.readIntBE=function(t,r,e){t|=0,r|=0,e||F(t,r,this.length);for(var n=r,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*r)),o},a.prototype.readInt8=function(t,r){return r||F(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},a.prototype.readInt16LE=function(t,r){r||F(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},a.prototype.readInt16BE=function(t,r){r||F(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},a.prototype.readInt32LE=function(t,r){return r||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,r){return r||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readFloatLE=function(t,r){return r||F(t,4,this.length),i.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,r){return r||F(t,4,this.length),i.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,r){return r||F(t,8,this.length),i.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,r){return r||F(t,8,this.length),i.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,r,e,n){(t=+t,r|=0,e|=0,n)||j(this,t,r,e,Math.pow(2,8*e)-1,0);var i=1,o=0;for(this[r]=255&t;++o<e&&(i*=256);)this[r+o]=t/i&255;return r+e},a.prototype.writeUIntBE=function(t,r,e,n){(t=+t,r|=0,e|=0,n)||j(this,t,r,e,Math.pow(2,8*e)-1,0);var i=e-1,o=1;for(this[r+i]=255&t;--i>=0&&(o*=256);)this[r+i]=t/o&255;return r+e},a.prototype.writeUInt8=function(t,r,e){return t=+t,r|=0,e||j(this,t,r,1,255,0),a.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=255&t,r+1},a.prototype.writeUInt16LE=function(t,r,e){return t=+t,r|=0,e||j(this,t,r,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):D(this,t,r,!0),r+2},a.prototype.writeUInt16BE=function(t,r,e){return t=+t,r|=0,e||j(this,t,r,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):D(this,t,r,!1),r+2},a.prototype.writeUInt32LE=function(t,r,e){return t=+t,r|=0,e||j(this,t,r,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t):I(this,t,r,!0),r+4},a.prototype.writeUInt32BE=function(t,r,e){return t=+t,r|=0,e||j(this,t,r,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):I(this,t,r,!1),r+4},a.prototype.writeIntLE=function(t,r,e,n){if(t=+t,r|=0,!n){var i=Math.pow(2,8*e-1);j(this,t,r,e,i-1,-i)}var o=0,s=1,u=0;for(this[r]=255&t;++o<e&&(s*=256);)t<0&&0===u&&0!==this[r+o-1]&&(u=1),this[r+o]=(t/s>>0)-u&255;return r+e},a.prototype.writeIntBE=function(t,r,e,n){if(t=+t,r|=0,!n){var i=Math.pow(2,8*e-1);j(this,t,r,e,i-1,-i)}var o=e-1,s=1,u=0;for(this[r+o]=255&t;--o>=0&&(s*=256);)t<0&&0===u&&0!==this[r+o+1]&&(u=1),this[r+o]=(t/s>>0)-u&255;return r+e},a.prototype.writeInt8=function(t,r,e){return t=+t,r|=0,e||j(this,t,r,1,127,-128),a.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=255&t,r+1},a.prototype.writeInt16LE=function(t,r,e){return t=+t,r|=0,e||j(this,t,r,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):D(this,t,r,!0),r+2},a.prototype.writeInt16BE=function(t,r,e){return t=+t,r|=0,e||j(this,t,r,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):D(this,t,r,!1),r+2},a.prototype.writeInt32LE=function(t,r,e){return t=+t,r|=0,e||j(this,t,r,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):I(this,t,r,!0),r+4},a.prototype.writeInt32BE=function(t,r,e){return t=+t,r|=0,e||j(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),a.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):I(this,t,r,!1),r+4},a.prototype.writeFloatLE=function(t,r,e){return C(this,t,r,!0,e)},a.prototype.writeFloatBE=function(t,r,e){return C(this,t,r,!1,e)},a.prototype.writeDoubleLE=function(t,r,e){return L(this,t,r,!0,e)},a.prototype.writeDoubleBE=function(t,r,e){return L(this,t,r,!1,e)},a.prototype.copy=function(t,r,e,n){if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n<e&&(n=e),n===e)return 0;if(0===t.length||0===this.length)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r<n-e&&(n=t.length-r+e);var i,o=n-e;if(this===t&&e<r&&r<n)for(i=o-1;i>=0;--i)t[i+r]=this[i+e];else if(o<1e3||!a.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+r]=this[i+e];else Uint8Array.prototype.set.call(t,this.subarray(e,e+o),r);return o},a.prototype.fill=function(t,r,e,n){if("string"==typeof t){if("string"==typeof r?(n=r,r=0,e=this.length):"string"==typeof e&&(n=e,e=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(r<0||this.length<r||this.length<e)throw new RangeError("Out of range index");if(e<=r)return this;var o;if(r>>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(o=r;o<e;++o)this[o]=t;else{var s=a.isBuffer(t)?t:q(new a(t,n).toString()),u=s.length;for(o=0;o<e-r;++o)this[o+r]=s[o%u]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function N(t){return t<16?"0"+t.toString(16):t.toString(16)}function q(t,r){var e;r=r||1/0;for(var n=t.length,i=null,o=[],s=0;s<n;++s){if((e=t.charCodeAt(s))>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&o.push(239,191,189),i=e;continue}e=65536+(i-55296<<10|e-56320)}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;o.push(e)}else if(e<2048){if((r-=2)<0)break;o.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return o}function Y(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(U,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function z(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}}).call(this,e(148))},function(t,r,e){var n=e(9),i=e(127),o=e(11),s=e(10),u=e(18),a=e(149);r.f=n&&!i?Object.defineProperties:function(t,r){s(t);for(var e,n=u(r),i=a(r),h=i.length,f=0;h>f;)o.f(t,e=i[f++],n[e]);return t}},function(t,r,e){var n=e(7),i=e(4),o=e(8),s=TypeError;t.exports=function(t,r){var e,u;if("string"===r&&i(e=t.toString)&&!o(u=n(e,t)))return u;if(i(e=t.valueOf)&&!o(u=n(e,t)))return u;if("string"!==r&&i(e=t.toString)&&!o(u=n(e,t)))return u;throw s("Can't convert object to primitive value")}},function(t,r){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},function(t,r,e){var n=e(2),i=e(4),o=n.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},function(t,r,e){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);r.f=o?function(t){var r=i(this,t);return!!r&&r.enumerable}:n},function(t,r,e){var n=e(0),i=e(4),o=e(12),s=e(9),u=e(45).CONFIGURABLE,a=e(82),h=e(26),f=h.enforce,c=h.get,l=Object.defineProperty,p=s&&!n((function(){return 8!==l((function(){}),"length",{value:8}).length})),d=String(String).split("String"),v=t.exports=function(t,r,e){"Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!o(t,"name")||u&&t.name!==r)&&(s?l(t,"name",{value:r,configurable:!0}):t.name=r),p&&e&&o(e,"arity")&&t.length!==e.arity&&l(t,"length",{value:e.arity});try{e&&o(e,"constructor")&&e.constructor?s&&l(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=f(t);return o(n,"source")||(n.source=d.join("string"==typeof r?r:"")),t};Function.prototype.toString=v((function(){return i(this)&&c(this).source||a(this)}),"toString")},function(t,r,e){var n=e(12),i=e(184),o=e(49),s=e(11);t.exports=function(t,r,e){for(var u=i(r),a=s.f,h=o.f,f=0;f<u.length;f++){var c=u[f];n(t,c)||e&&n(e,c)||a(t,c,h(r,c))}}},function(t,r,e){var n=e(28),i=e(1),o=e(50),s=e(185),u=e(10),a=i([].concat);t.exports=n("Reflect","ownKeys")||function(t){var r=o.f(u(t)),e=s.f;return e?a(r,e(t)):r}},function(t,r){r.f=Object.getOwnPropertySymbols},function(t,r,e){"use strict";var n=e(131).IteratorPrototype,i=e(38),o=e(43),s=e(51),u=e(42),a=function(){return this};t.exports=function(t,r,e,h){var f=r+" Iterator";return t.prototype=i(n,{next:o(+!h,e)}),s(t,f,!1,!0),u[f]=a,t}},function(t,r,e){var n=e(0);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,r,e){var n=e(4),i=String,o=TypeError;t.exports=function(t){if("object"==typeof t||n(t))return t;throw o("Can't set "+i(t)+" as a prototype")}},function(t,r){var e=Array,n=Math.abs,i=Math.pow,o=Math.floor,s=Math.log,u=Math.LN2;t.exports={pack:function(t,r,a){var h,f,c,l=e(a),p=8*a-r-1,d=(1<<p)-1,v=d>>1,y=23===r?i(2,-24)-i(2,-77):0,g=t<0||0===t&&1/t<0?1:0,m=0;for((t=n(t))!=t||t===1/0?(f=t!=t?1:0,h=d):(h=o(s(t)/u),t*(c=i(2,-h))<1&&(h--,c*=2),(t+=h+v>=1?y/c:y*i(2,1-v))*c>=2&&(h++,c/=2),h+v>=d?(f=0,h=d):h+v>=1?(f=(t*c-1)*i(2,r),h+=v):(f=t*i(2,v-1)*i(2,r),h=0));r>=8;)l[m++]=255&f,f/=256,r-=8;for(h=h<<r|f,p+=r;p>0;)l[m++]=255&h,h/=256,p-=8;return l[--m]|=128*g,l},unpack:function(t,r){var e,n=t.length,o=8*n-r-1,s=(1<<o)-1,u=s>>1,a=o-7,h=n-1,f=t[h--],c=127&f;for(f>>=7;a>0;)c=256*c+t[h--],a-=8;for(e=c&(1<<-a)-1,c>>=-a,a+=r;a>0;)e=256*e+t[h--],a-=8;if(0===c)c=1-u;else{if(c===s)return e?NaN:f?-1/0:1/0;e+=i(2,r),c-=u}return(f?-1:1)*e*i(2,c-r)}}},function(t,r,e){"use strict";var n=e(78),i=e(22);t.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},function(t,r,e){var n=e(8),i=Math.floor;t.exports=Number.isInteger||function(t){return!n(t)&&isFinite(t)&&i(t)===t}},function(t,r,e){var n=e(21),i=RangeError;t.exports=function(t){var r=n(t);if(r<0)throw i("The argument can't be less than 0");return r}},function(t,r,e){var n=e(22),i=e(1)("".slice);t.exports=function(t){return"Big"===i(n(t),0,3)}},function(t,r,e){var n=e(68),i=e(77),o=e(8),s=e(5)("species"),u=Array;t.exports=function(t){var r;return n(t)&&(r=t.constructor,(i(r)&&(r===u||n(r.prototype))||o(r)&&null===(r=r[s]))&&(r=void 0)),void 0===r?u:r}},function(t,r,e){"use strict";var n=e(14),i=e(19),o=e(13),s=e(155),u=Math.min;t.exports=[].copyWithin||function(t,r){var e=n(this),a=o(e),h=i(t,a),f=i(r,a),c=arguments.length>2?arguments[2]:void 0,l=u((void 0===c?a:i(c,a))-f,a-h),p=1;for(f<h&&h<f+l&&(p=-1,f+=l-1,h+=l-1);l-- >0;)f in e?e[h]=e[f]:s(e,h),h+=p,f+=p;return e}},function(t,r,e){var n=e(197),i=e(56);t.exports=function(t,r){return n(i(t),r)}},function(t,r,e){var n=e(13);t.exports=function(t,r){for(var e=0,i=n(r),o=new t(i);i>e;)o[e]=r[e++];return o}},function(t,r,e){"use strict";var n=e(44),i=e(18),o=e(21),s=e(13),u=e(61),a=Math.min,h=[].lastIndexOf,f=!!h&&1/[1].lastIndexOf(1,-0)<0,c=u("lastIndexOf"),l=f||!c;t.exports=l?function(t){if(f)return n(h,this,arguments)||0;var r=i(this),e=s(r),u=e-1;for(arguments.length>1&&(u=a(u,o(arguments[1]))),u<0&&(u=e+u);u>=0;u--)if(u in r&&r[u]===t)return u||0;return-1}:h},function(t,r,e){var n=e(70),i=Math.floor,o=function(t,r){var e=t.length,a=i(e/2);return e<8?s(t,r):u(t,o(n(t,0,a),r),o(n(t,a),r),r)},s=function(t,r){for(var e,n,i=t.length,o=1;o<i;){for(n=o,e=t[o];n&&r(t[n-1],e)>0;)t[n]=t[--n];n!==o++&&(t[n]=e)}return t},u=function(t,r,e,n){for(var i=r.length,o=e.length,s=0,u=0;s<i||u<o;)t[s+u]=s<i&&u<o?n(r[s],e[u])<=0?r[s++]:e[u++]:s<i?r[s++]:e[u++];return t};t.exports=o},function(t,r,e){var n=e(33).match(/firefox\/(\d+)/i);t.exports=!!n&&+n[1]},function(t,r,e){var n=e(33);t.exports=/MSIE|Trident/.test(n)},function(t,r,e){var n=e(33).match(/AppleWebKit\/(\d+)\./);t.exports=!!n&&+n[1]},function(t,r,e){var n=e(2),i=e(0),o=e(1),s=e(24),u=e(204).trim,a=e(139),h=n.parseInt,f=n.Symbol,c=f&&f.iterator,l=/^[+-]?0x/i,p=o(l.exec),d=8!==h(a+"08")||22!==h(a+"0x16")||c&&!i((function(){h(Object(c))}));t.exports=d?function(t,r){var e=u(s(t));return h(e,r>>>0||(p(l,e)?16:10))}:h},function(t,r,e){var n=e(1),i=e(32),o=e(24),s=e(139),u=n("".replace),a="["+s+"]",h=RegExp("^"+a+a+"*"),f=RegExp(a+a+"*$"),c=function(t){return function(r){var e=o(i(r));return 1&t&&(e=u(e,h,"")),2&t&&(e=u(e,f,"")),e}};t.exports={start:c(1),end:c(2),trim:c(3)}},function(t,r,e){var n=e(7),i=e(12),o=e(34),s=e(156),u=RegExp.prototype;t.exports=function(t){var r=t.flags;return void 0!==r||"flags"in u||i(t,"flags")||!o(u,t)?r:n(s,t)}},function(t,r,e){"use strict";var n=e(6),i=e(122).codeAt;n({target:"String",proto:!0},{codePointAt:function(t){return i(this,t)}})},function(t,r,e){var n=e(6),i=e(1),o=e(19),s=RangeError,u=String.fromCharCode,a=String.fromCodePoint,h=i([].join);n({target:"String",stat:!0,arity:1,forced:!!a&&1!=a.length},{fromCodePoint:function(t){for(var r,e=[],n=arguments.length,i=0;n>i;){if(r=+arguments[i++],o(r,1114111)!==r)throw s(r+" is not a valid code point");e[i]=r<65536?u(r):u(55296+((r-=65536)>>10),r%1024+56320)}return h(e,"")}})},function(t,r,e){var n=e(8),i=e(29),o=e(5)("match");t.exports=function(t){var r;return n(t)&&(void 0!==(r=t[o])?!!r:"RegExp"==i(t))}},function(t,r,e){"use strict";var n=e(37),i=n(e(64)),o=n(e(65)),s=e(141).BigInteger,u=e(142),a=function(){function t(r,e,n){(0,i.default)(this,t),"string"==typeof r&&"string"==typeof e?(this.X=new s(r,16),this.Y=new s(e,16)):(this.X=r,this.Y=e),this.Z=null==n?s.ONE:n,this.zinv=null,this.curve=new u}return(0,o.default)(t,[{key:"getX",value:function(){return null===this.zinv&&(this.zinv=this.Z.modInverse(this.curve.p)),this.X.multiply(this.zinv).mod(this.curve.p)}},{key:"getY",value:function(){return null===this.zinv&&(this.zinv=this.Z.modInverse(this.curve.p)),this.Y.multiply(this.zinv).mod(this.curve.p)}},{key:"isInfinity",value:function(){return null===this.X&&null===this.Y||this.Z.equals(s.ZERO)&&!this.Y.equals(s.ZERO)}}]),t}();t.exports=a},function(t,r,e){"use strict";var n=e(37);e(27),e(39);var i=n(e(163));t.exports={normalize:function(t){var r=(0,i.default)(t);if(r.length>32)r=r.slice(r.length-32,r.length);else if(r.length<32)for(var e=0;e<32-r.length;e++)r.unshift(0);return r},leftPad:function(t,r){return t.length>=r?t:new Array(r-t.length+1).join("0")+t}}},function(t,r,e){var n=e(6),i=e(1),o=e(60),s=e(8),u=e(12),a=e(11).f,h=e(50),f=e(246),c=e(247),l=e(59),p=e(249),d=!1,v=l("meta"),y=0,g=function(t){a(t,v,{value:{objectID:"O"+y++,weakData:{}}})},m=t.exports={enable:function(){m.enable=function(){},d=!0;var t=h.f,r=i([].splice),e={};e[v]=1,t(e).length&&(h.f=function(e){for(var n=t(e),i=0,o=n.length;i<o;i++)if(n[i]===v){r(n,i,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(t,r){if(!s(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!u(t,v)){if(!c(t))return"F";if(!r)return"E";g(t)}return t[v].objectID},getWeakData:function(t,r){if(!u(t,v)){if(!c(t))return!0;if(!r)return!1;g(t)}return t[v].weakData},onFreeze:function(t){return p&&d&&c(t)&&!u(t,v)&&g(t),t}};o[v]=!0},function(t,r){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,r,e){var n=e(69)("span").classList,i=n&&n.constructor&&n.constructor.prototype;t.exports=i===Object.prototype?void 0:i},function(t,r,e){(function(t){!function(t,r){"use strict";function n(t,r){if(!t)throw new Error(r||"Assertion failed")}function i(t,r){t.super_=r;var e=function(){};e.prototype=r.prototype,t.prototype=new e,t.prototype.constructor=t}function o(t,r,e){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==r&&"be"!==r||(e=r,r=10),this._init(t||0,r||10,e||"be"))}var s;"object"==typeof t?t.exports=o:r.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e(254).Buffer}catch(t){}function u(t,r){var e=t.charCodeAt(r);return e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:e-48&15}function a(t,r,e){var n=u(t,e);return e-1>=r&&(n|=u(t,e-1)<<4),n}function h(t,r,e,n){for(var i=0,o=Math.min(t.length,e),s=r;s<o;s++){var u=t.charCodeAt(s)-48;i*=n,i+=u>=49?u-49+10:u>=17?u-17+10:u}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,r){return t.cmp(r)>0?t:r},o.min=function(t,r){return t.cmp(r)<0?t:r},o.prototype._init=function(t,r,e){if("number"==typeof t)return this._initNumber(t,r,e);if("object"==typeof t)return this._initArray(t,r,e);"hex"===r&&(r=16),n(r===(0|r)&&r>=2&&r<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===r?this._parseHex(t,i,e):(this._parseBase(t,r,i),"le"===e&&this._initArray(this.toArray(),r,e)))},o.prototype._initNumber=function(t,r,e){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===e&&this._initArray(this.toArray(),r,e)},o.prototype._initArray=function(t,r,e){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s,u=0;if("be"===e)for(i=t.length-1,o=0;i>=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<<u&67108863,this.words[o+1]=s>>>26-u&67108863,(u+=24)>=26&&(u-=26,o++);else if("le"===e)for(i=0,o=0;i<t.length;i+=3)s=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=s<<u&67108863,this.words[o+1]=s>>>26-u&67108863,(u+=24)>=26&&(u-=26,o++);return this.strip()},o.prototype._parseHex=function(t,r,e){this.length=Math.ceil((t.length-r)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,s=0;if("be"===e)for(n=t.length-1;n>=r;n-=2)i=a(t,r,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(n=(t.length-r)%2==0?r+1:r;n<t.length;n+=2)i=a(t,r,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,r,e){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=r)n++;n--,i=i/r|0;for(var o=t.length-e,s=o%n,u=Math.min(o,o-s)+e,a=0,f=e;f<u;f+=n)a=h(t,f,f+n,r),this.imuln(i),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a);if(0!==s){var c=1;for(a=h(t,f,t.length,r),f=0;f<s;f++)c*=r;this.imuln(c),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var r=0;r<this.length;r++)t.words[r]=this.words[r];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,r,e){e.negative=r.negative^t.negative;var n=t.length+r.length|0;e.length=n,n=n-1|0;var i=0|t.words[0],o=0|r.words[0],s=i*o,u=67108863&s,a=s/67108864|0;e.words[0]=u;for(var h=1;h<n;h++){for(var f=a>>>26,c=67108863&a,l=Math.min(h,r.length-1),p=Math.max(0,h-t.length+1);p<=l;p++){var d=h-p|0;f+=(s=(i=0|t.words[d])*(o=0|r.words[p])+c)/67108864|0,c=67108863&s}e.words[h]=0|c,a=0|f}return 0!==a?e.words[h]=0|a:e.length--,e.strip()}o.prototype.toString=function(t,r){var e;if(r=0|r||1,16===(t=t||10)||"hex"===t){e="";for(var i=0,o=0,s=0;s<this.length;s++){var u=this.words[s],a=(16777215&(u<<i|o)).toString(16);e=0!==(o=u>>>24-i&16777215)||s!==this.length-1?f[6-a.length]+a+e:a+e,(i+=2)>=26&&(i-=26,s--)}for(0!==o&&(e=o.toString(16)+e);e.length%r!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(t===(0|t)&&t>=2&&t<=36){var h=c[t],p=l[t];e="";var d=this.clone();for(d.negative=0;!d.isZero();){var v=d.modn(p).toString(t);e=(d=d.idivn(p)).isZero()?v+e:f[h-v.length]+v+e}for(this.isZero()&&(e="0"+e);e.length%r!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,r){return n(void 0!==s),this.toArrayLike(s,t,r)},o.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},o.prototype.toArrayLike=function(t,r,e){var i=this.byteLength(),o=e||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,u,a="le"===r,h=new t(o),f=this.clone();if(a){for(u=0;!f.isZero();u++)s=f.andln(255),f.iushrn(8),h[u]=s;for(;u<o;u++)h[u]=0}else{for(u=0;u<o-i;u++)h[u]=0;for(u=0;!f.isZero();u++)s=f.andln(255),f.iushrn(8),h[o-u-1]=s}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var r=t,e=0;return r>=4096&&(e+=13,r>>>=13),r>=64&&(e+=7,r>>>=7),r>=8&&(e+=4,r>>>=4),r>=2&&(e+=2,r>>>=2),e+r},o.prototype._zeroBits=function(t){if(0===t)return 26;var r=t,e=0;return 0==(8191&r)&&(e+=13,r>>>=13),0==(127&r)&&(e+=7,r>>>=7),0==(15&r)&&(e+=4,r>>>=4),0==(3&r)&&(e+=2,r>>>=2),0==(1&r)&&e++,e},o.prototype.bitLength=function(){var t=this.words[this.length-1],r=this._countBits(t);return 26*(this.length-1)+r},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;r<this.length;r++){var e=this._zeroBits(this.words[r]);if(t+=e,26!==e)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]|t.words[r];return this.strip()},o.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var r;r=this.length>t.length?t:this;for(var e=0;e<r.length;e++)this.words[e]=this.words[e]&t.words[e];return this.length=r.length,this.strip()},o.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var r,e;this.length>t.length?(r=this,e=t):(r=t,e=this);for(var n=0;n<e.length;n++)this.words[n]=r.words[n]^e.words[n];if(this!==r)for(;n<r.length;n++)this.words[n]=r.words[n];return this.length=r.length,this.strip()},o.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var r=0|Math.ceil(t/26),e=t%26;this._expand(r),e>0&&r--;for(var i=0;i<r;i++)this.words[i]=67108863&~this.words[i];return e>0&&(this.words[i]=~this.words[i]&67108863>>26-e),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,r){n("number"==typeof t&&t>=0);var e=t/26|0,i=t%26;return this._expand(e+1),this.words[e]=r?this.words[e]|1<<i:this.words[e]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var r,e,n;if(0!==this.negative&&0===t.negative)return this.negative=0,r=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,r=this.isub(t),t.negative=1,r._normSign();this.length>t.length?(e=this,n=t):(e=t,n=this);for(var i=0,o=0;o<n.length;o++)r=(0|e.words[o])+(0|n.words[o])+i,this.words[o]=67108863&r,i=r>>>26;for(;0!==i&&o<e.length;o++)r=(0|e.words[o])+i,this.words[o]=67108863&r,i=r>>>26;if(this.length=e.length,0!==i)this.words[this.length]=i,this.length++;else if(e!==this)for(;o<e.length;o++)this.words[o]=e.words[o];return this},o.prototype.add=function(t){var r;return 0!==t.negative&&0===this.negative?(t.negative=0,r=this.sub(t),t.negative^=1,r):0===t.negative&&0!==this.negative?(this.negative=0,r=t.sub(this),this.negative=1,r):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var e,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(e=this,n=t):(e=t,n=this);for(var o=0,s=0;s<n.length;s++)o=(r=(0|e.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&r;for(;0!==o&&s<e.length;s++)o=(r=(0|e.words[s])+o)>>26,this.words[s]=67108863&r;if(0===o&&s<e.length&&e!==this)for(;s<e.length;s++)this.words[s]=e.words[s];return this.length=Math.max(this.length,s),e!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var d=function(t,r,e){var n,i,o,s=t.words,u=r.words,a=e.words,h=0,f=0|s[0],c=8191&f,l=f>>>13,p=0|s[1],d=8191&p,v=p>>>13,y=0|s[2],g=8191&y,m=y>>>13,w=0|s[3],b=8191&w,M=w>>>13,x=0|s[4],T=8191&x,A=x>>>13,E=0|s[5],_=8191&E,S=E>>>13,B=0|s[6],O=8191&B,R=B>>>13,k=0|s[7],F=8191&k,j=k>>>13,D=0|s[8],I=8191&D,P=D>>>13,C=0|s[9],L=8191&C,U=C>>>13,N=0|u[0],q=8191&N,Y=N>>>13,z=0|u[1],V=8191&z,Z=z>>>13,G=0|u[2],K=8191&G,W=G>>>13,X=0|u[3],H=8191&X,$=X>>>13,J=0|u[4],Q=8191&J,tt=J>>>13,rt=0|u[5],et=8191&rt,nt=rt>>>13,it=0|u[6],ot=8191&it,st=it>>>13,ut=0|u[7],at=8191&ut,ht=ut>>>13,ft=0|u[8],ct=8191&ft,lt=ft>>>13,pt=0|u[9],dt=8191&pt,vt=pt>>>13;e.negative=t.negative^r.negative,e.length=19;var yt=(h+(n=Math.imul(c,q))|0)+((8191&(i=(i=Math.imul(c,Y))+Math.imul(l,q)|0))<<13)|0;h=((o=Math.imul(l,Y))+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(d,q),i=(i=Math.imul(d,Y))+Math.imul(v,q)|0,o=Math.imul(v,Y);var gt=(h+(n=n+Math.imul(c,V)|0)|0)+((8191&(i=(i=i+Math.imul(c,Z)|0)+Math.imul(l,V)|0))<<13)|0;h=((o=o+Math.imul(l,Z)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,q),i=(i=Math.imul(g,Y))+Math.imul(m,q)|0,o=Math.imul(m,Y),n=n+Math.imul(d,V)|0,i=(i=i+Math.imul(d,Z)|0)+Math.imul(v,V)|0,o=o+Math.imul(v,Z)|0;var mt=(h+(n=n+Math.imul(c,K)|0)|0)+((8191&(i=(i=i+Math.imul(c,W)|0)+Math.imul(l,K)|0))<<13)|0;h=((o=o+Math.imul(l,W)|0)+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(b,q),i=(i=Math.imul(b,Y))+Math.imul(M,q)|0,o=Math.imul(M,Y),n=n+Math.imul(g,V)|0,i=(i=i+Math.imul(g,Z)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,Z)|0,n=n+Math.imul(d,K)|0,i=(i=i+Math.imul(d,W)|0)+Math.imul(v,K)|0,o=o+Math.imul(v,W)|0;var wt=(h+(n=n+Math.imul(c,H)|0)|0)+((8191&(i=(i=i+Math.imul(c,$)|0)+Math.imul(l,H)|0))<<13)|0;h=((o=o+Math.imul(l,$)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(T,q),i=(i=Math.imul(T,Y))+Math.imul(A,q)|0,o=Math.imul(A,Y),n=n+Math.imul(b,V)|0,i=(i=i+Math.imul(b,Z)|0)+Math.imul(M,V)|0,o=o+Math.imul(M,Z)|0,n=n+Math.imul(g,K)|0,i=(i=i+Math.imul(g,W)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,W)|0,n=n+Math.imul(d,H)|0,i=(i=i+Math.imul(d,$)|0)+Math.imul(v,H)|0,o=o+Math.imul(v,$)|0;var bt=(h+(n=n+Math.imul(c,Q)|0)|0)+((8191&(i=(i=i+Math.imul(c,tt)|0)+Math.imul(l,Q)|0))<<13)|0;h=((o=o+Math.imul(l,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(_,q),i=(i=Math.imul(_,Y))+Math.imul(S,q)|0,o=Math.imul(S,Y),n=n+Math.imul(T,V)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(b,K)|0,i=(i=i+Math.imul(b,W)|0)+Math.imul(M,K)|0,o=o+Math.imul(M,W)|0,n=n+Math.imul(g,H)|0,i=(i=i+Math.imul(g,$)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,$)|0,n=n+Math.imul(d,Q)|0,i=(i=i+Math.imul(d,tt)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,tt)|0;var Mt=(h+(n=n+Math.imul(c,et)|0)|0)+((8191&(i=(i=i+Math.imul(c,nt)|0)+Math.imul(l,et)|0))<<13)|0;h=((o=o+Math.imul(l,nt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(O,q),i=(i=Math.imul(O,Y))+Math.imul(R,q)|0,o=Math.imul(R,Y),n=n+Math.imul(_,V)|0,i=(i=i+Math.imul(_,Z)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,Z)|0,n=n+Math.imul(T,K)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(b,H)|0,i=(i=i+Math.imul(b,$)|0)+Math.imul(M,H)|0,o=o+Math.imul(M,$)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(d,et)|0,i=(i=i+Math.imul(d,nt)|0)+Math.imul(v,et)|0,o=o+Math.imul(v,nt)|0;var xt=(h+(n=n+Math.imul(c,ot)|0)|0)+((8191&(i=(i=i+Math.imul(c,st)|0)+Math.imul(l,ot)|0))<<13)|0;h=((o=o+Math.imul(l,st)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(F,q),i=(i=Math.imul(F,Y))+Math.imul(j,q)|0,o=Math.imul(j,Y),n=n+Math.imul(O,V)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(R,V)|0,o=o+Math.imul(R,Z)|0,n=n+Math.imul(_,K)|0,i=(i=i+Math.imul(_,W)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,W)|0,n=n+Math.imul(T,H)|0,i=(i=i+Math.imul(T,$)|0)+Math.imul(A,H)|0,o=o+Math.imul(A,$)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(g,et)|0,i=(i=i+Math.imul(g,nt)|0)+Math.imul(m,et)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(d,ot)|0,i=(i=i+Math.imul(d,st)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,st)|0;var Tt=(h+(n=n+Math.imul(c,at)|0)|0)+((8191&(i=(i=i+Math.imul(c,ht)|0)+Math.imul(l,at)|0))<<13)|0;h=((o=o+Math.imul(l,ht)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(I,q),i=(i=Math.imul(I,Y))+Math.imul(P,q)|0,o=Math.imul(P,Y),n=n+Math.imul(F,V)|0,i=(i=i+Math.imul(F,Z)|0)+Math.imul(j,V)|0,o=o+Math.imul(j,Z)|0,n=n+Math.imul(O,K)|0,i=(i=i+Math.imul(O,W)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,W)|0,n=n+Math.imul(_,H)|0,i=(i=i+Math.imul(_,$)|0)+Math.imul(S,H)|0,o=o+Math.imul(S,$)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(b,et)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(M,et)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,st)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,n=n+Math.imul(d,at)|0,i=(i=i+Math.imul(d,ht)|0)+Math.imul(v,at)|0,o=o+Math.imul(v,ht)|0;var At=(h+(n=n+Math.imul(c,ct)|0)|0)+((8191&(i=(i=i+Math.imul(c,lt)|0)+Math.imul(l,ct)|0))<<13)|0;h=((o=o+Math.imul(l,lt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(L,q),i=(i=Math.imul(L,Y))+Math.imul(U,q)|0,o=Math.imul(U,Y),n=n+Math.imul(I,V)|0,i=(i=i+Math.imul(I,Z)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,Z)|0,n=n+Math.imul(F,K)|0,i=(i=i+Math.imul(F,W)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,W)|0,n=n+Math.imul(O,H)|0,i=(i=i+Math.imul(O,$)|0)+Math.imul(R,H)|0,o=o+Math.imul(R,$)|0,n=n+Math.imul(_,Q)|0,i=(i=i+Math.imul(_,tt)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(T,et)|0,i=(i=i+Math.imul(T,nt)|0)+Math.imul(A,et)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(b,ot)|0,i=(i=i+Math.imul(b,st)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(g,at)|0,i=(i=i+Math.imul(g,ht)|0)+Math.imul(m,at)|0,o=o+Math.imul(m,ht)|0,n=n+Math.imul(d,ct)|0,i=(i=i+Math.imul(d,lt)|0)+Math.imul(v,ct)|0,o=o+Math.imul(v,lt)|0;var Et=(h+(n=n+Math.imul(c,dt)|0)|0)+((8191&(i=(i=i+Math.imul(c,vt)|0)+Math.imul(l,dt)|0))<<13)|0;h=((o=o+Math.imul(l,vt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(L,V),i=(i=Math.imul(L,Z))+Math.imul(U,V)|0,o=Math.imul(U,Z),n=n+Math.imul(I,K)|0,i=(i=i+Math.imul(I,W)|0)+Math.imul(P,K)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(F,H)|0,i=(i=i+Math.imul(F,$)|0)+Math.imul(j,H)|0,o=o+Math.imul(j,$)|0,n=n+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,tt)|0,n=n+Math.imul(_,et)|0,i=(i=i+Math.imul(_,nt)|0)+Math.imul(S,et)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(T,ot)|0,i=(i=i+Math.imul(T,st)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,n=n+Math.imul(b,at)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(M,at)|0,o=o+Math.imul(M,ht)|0,n=n+Math.imul(g,ct)|0,i=(i=i+Math.imul(g,lt)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,lt)|0;var _t=(h+(n=n+Math.imul(d,dt)|0)|0)+((8191&(i=(i=i+Math.imul(d,vt)|0)+Math.imul(v,dt)|0))<<13)|0;h=((o=o+Math.imul(v,vt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(L,K),i=(i=Math.imul(L,W))+Math.imul(U,K)|0,o=Math.imul(U,W),n=n+Math.imul(I,H)|0,i=(i=i+Math.imul(I,$)|0)+Math.imul(P,H)|0,o=o+Math.imul(P,$)|0,n=n+Math.imul(F,Q)|0,i=(i=i+Math.imul(F,tt)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(O,et)|0,i=(i=i+Math.imul(O,nt)|0)+Math.imul(R,et)|0,o=o+Math.imul(R,nt)|0,n=n+Math.imul(_,ot)|0,i=(i=i+Math.imul(_,st)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(T,at)|0,i=(i=i+Math.imul(T,ht)|0)+Math.imul(A,at)|0,o=o+Math.imul(A,ht)|0,n=n+Math.imul(b,ct)|0,i=(i=i+Math.imul(b,lt)|0)+Math.imul(M,ct)|0,o=o+Math.imul(M,lt)|0;var St=(h+(n=n+Math.imul(g,dt)|0)|0)+((8191&(i=(i=i+Math.imul(g,vt)|0)+Math.imul(m,dt)|0))<<13)|0;h=((o=o+Math.imul(m,vt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(L,H),i=(i=Math.imul(L,$))+Math.imul(U,H)|0,o=Math.imul(U,$),n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,tt)|0,n=n+Math.imul(F,et)|0,i=(i=i+Math.imul(F,nt)|0)+Math.imul(j,et)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(O,ot)|0,i=(i=i+Math.imul(O,st)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,st)|0,n=n+Math.imul(_,at)|0,i=(i=i+Math.imul(_,ht)|0)+Math.imul(S,at)|0,o=o+Math.imul(S,ht)|0,n=n+Math.imul(T,ct)|0,i=(i=i+Math.imul(T,lt)|0)+Math.imul(A,ct)|0,o=o+Math.imul(A,lt)|0;var Bt=(h+(n=n+Math.imul(b,dt)|0)|0)+((8191&(i=(i=i+Math.imul(b,vt)|0)+Math.imul(M,dt)|0))<<13)|0;h=((o=o+Math.imul(M,vt)|0)+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(L,Q),i=(i=Math.imul(L,tt))+Math.imul(U,Q)|0,o=Math.imul(U,tt),n=n+Math.imul(I,et)|0,i=(i=i+Math.imul(I,nt)|0)+Math.imul(P,et)|0,o=o+Math.imul(P,nt)|0,n=n+Math.imul(F,ot)|0,i=(i=i+Math.imul(F,st)|0)+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,n=n+Math.imul(O,at)|0,i=(i=i+Math.imul(O,ht)|0)+Math.imul(R,at)|0,o=o+Math.imul(R,ht)|0,n=n+Math.imul(_,ct)|0,i=(i=i+Math.imul(_,lt)|0)+Math.imul(S,ct)|0,o=o+Math.imul(S,lt)|0;var Ot=(h+(n=n+Math.imul(T,dt)|0)|0)+((8191&(i=(i=i+Math.imul(T,vt)|0)+Math.imul(A,dt)|0))<<13)|0;h=((o=o+Math.imul(A,vt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(L,et),i=(i=Math.imul(L,nt))+Math.imul(U,et)|0,o=Math.imul(U,nt),n=n+Math.imul(I,ot)|0,i=(i=i+Math.imul(I,st)|0)+Math.imul(P,ot)|0,o=o+Math.imul(P,st)|0,n=n+Math.imul(F,at)|0,i=(i=i+Math.imul(F,ht)|0)+Math.imul(j,at)|0,o=o+Math.imul(j,ht)|0,n=n+Math.imul(O,ct)|0,i=(i=i+Math.imul(O,lt)|0)+Math.imul(R,ct)|0,o=o+Math.imul(R,lt)|0;var Rt=(h+(n=n+Math.imul(_,dt)|0)|0)+((8191&(i=(i=i+Math.imul(_,vt)|0)+Math.imul(S,dt)|0))<<13)|0;h=((o=o+Math.imul(S,vt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(L,ot),i=(i=Math.imul(L,st))+Math.imul(U,ot)|0,o=Math.imul(U,st),n=n+Math.imul(I,at)|0,i=(i=i+Math.imul(I,ht)|0)+Math.imul(P,at)|0,o=o+Math.imul(P,ht)|0,n=n+Math.imul(F,ct)|0,i=(i=i+Math.imul(F,lt)|0)+Math.imul(j,ct)|0,o=o+Math.imul(j,lt)|0;var kt=(h+(n=n+Math.imul(O,dt)|0)|0)+((8191&(i=(i=i+Math.imul(O,vt)|0)+Math.imul(R,dt)|0))<<13)|0;h=((o=o+Math.imul(R,vt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(L,at),i=(i=Math.imul(L,ht))+Math.imul(U,at)|0,o=Math.imul(U,ht),n=n+Math.imul(I,ct)|0,i=(i=i+Math.imul(I,lt)|0)+Math.imul(P,ct)|0,o=o+Math.imul(P,lt)|0;var Ft=(h+(n=n+Math.imul(F,dt)|0)|0)+((8191&(i=(i=i+Math.imul(F,vt)|0)+Math.imul(j,dt)|0))<<13)|0;h=((o=o+Math.imul(j,vt)|0)+(i>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,n=Math.imul(L,ct),i=(i=Math.imul(L,lt))+Math.imul(U,ct)|0,o=Math.imul(U,lt);var jt=(h+(n=n+Math.imul(I,dt)|0)|0)+((8191&(i=(i=i+Math.imul(I,vt)|0)+Math.imul(P,dt)|0))<<13)|0;h=((o=o+Math.imul(P,vt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863;var Dt=(h+(n=Math.imul(L,dt))|0)+((8191&(i=(i=Math.imul(L,vt))+Math.imul(U,dt)|0))<<13)|0;return h=((o=Math.imul(U,vt))+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,a[0]=yt,a[1]=gt,a[2]=mt,a[3]=wt,a[4]=bt,a[5]=Mt,a[6]=xt,a[7]=Tt,a[8]=At,a[9]=Et,a[10]=_t,a[11]=St,a[12]=Bt,a[13]=Ot,a[14]=Rt,a[15]=kt,a[16]=Ft,a[17]=jt,a[18]=Dt,0!==h&&(a[19]=h,e.length++),e};function v(t,r,e){return(new y).mulp(t,r,e)}function y(t,r){this.x=t,this.y=r}Math.imul||(d=p),o.prototype.mulTo=function(t,r){var e,n=this.length+t.length;return e=10===this.length&&10===t.length?d(this,t,r):n<63?p(this,t,r):n<1024?function(t,r,e){e.negative=r.negative^t.negative,e.length=t.length+r.length;for(var n=0,i=0,o=0;o<e.length-1;o++){var s=i;i=0;for(var u=67108863&n,a=Math.min(o,r.length-1),h=Math.max(0,o-t.length+1);h<=a;h++){var f=o-h,c=(0|t.words[f])*(0|r.words[h]),l=67108863&c;u=67108863&(l=l+u|0),i+=(s=(s=s+(c/67108864|0)|0)+(l>>>26)|0)>>>26,s&=67108863}e.words[o]=u,n=s,s=i}return 0!==n?e.words[o]=n:e.length--,e.strip()}(this,t,r):v(this,t,r),e},y.prototype.makeRBT=function(t){for(var r=new Array(t),e=o.prototype._countBits(t)-1,n=0;n<t;n++)r[n]=this.revBin(n,e,t);return r},y.prototype.revBin=function(t,r,e){if(0===t||t===e-1)return t;for(var n=0,i=0;i<r;i++)n|=(1&t)<<r-i-1,t>>=1;return n},y.prototype.permute=function(t,r,e,n,i,o){for(var s=0;s<o;s++)n[s]=r[t[s]],i[s]=e[t[s]]},y.prototype.transform=function(t,r,e,n,i,o){this.permute(o,t,r,e,n,i);for(var s=1;s<i;s<<=1)for(var u=s<<1,a=Math.cos(2*Math.PI/u),h=Math.sin(2*Math.PI/u),f=0;f<i;f+=u)for(var c=a,l=h,p=0;p<s;p++){var d=e[f+p],v=n[f+p],y=e[f+p+s],g=n[f+p+s],m=c*y-l*g;g=c*g+l*y,y=m,e[f+p]=d+y,n[f+p]=v+g,e[f+p+s]=d-y,n[f+p+s]=v-g,p!==u&&(m=a*c-h*l,l=a*l+h*c,c=m)}},y.prototype.guessLen13b=function(t,r){var e=1|Math.max(r,t),n=1&e,i=0;for(e=e/2|0;e;e>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(t,r,e){if(!(e<=1))for(var n=0;n<e/2;n++){var i=t[n];t[n]=t[e-n-1],t[e-n-1]=i,i=r[n],r[n]=-r[e-n-1],r[e-n-1]=-i}},y.prototype.normalize13b=function(t,r){for(var e=0,n=0;n<r/2;n++){var i=8192*Math.round(t[2*n+1]/r)+Math.round(t[2*n]/r)+e;t[n]=67108863&i,e=i<67108864?0:i/67108864|0}return t},y.prototype.convert13b=function(t,r,e,i){for(var o=0,s=0;s<r;s++)o+=0|t[s],e[2*s]=8191&o,o>>>=13,e[2*s+1]=8191&o,o>>>=13;for(s=2*r;s<i;++s)e[s]=0;n(0===o),n(0==(-8192&o))},y.prototype.stub=function(t){for(var r=new Array(t),e=0;e<t;e++)r[e]=0;return r},y.prototype.mulp=function(t,r,e){var n=2*this.guessLen13b(t.length,r.length),i=this.makeRBT(n),o=this.stub(n),s=new Array(n),u=new Array(n),a=new Array(n),h=new Array(n),f=new Array(n),c=new Array(n),l=e.words;l.length=n,this.convert13b(t.words,t.length,s,n),this.convert13b(r.words,r.length,h,n),this.transform(s,o,u,a,n,i),this.transform(h,o,f,c,n,i);for(var p=0;p<n;p++){var d=u[p]*f[p]-a[p]*c[p];a[p]=u[p]*c[p]+a[p]*f[p],u[p]=d}return this.conjugate(u,a,n),this.transform(u,a,l,o,n,i),this.conjugate(l,o,n),this.normalize13b(l,n),e.negative=t.negative^r.negative,e.length=t.length+r.length,e.strip()},o.prototype.mul=function(t){var r=new o(null);return r.words=new Array(this.length+t.length),this.mulTo(t,r)},o.prototype.mulf=function(t){var r=new o(null);return r.words=new Array(this.length+t.length),v(this,t,r)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var r=0,e=0;e<this.length;e++){var i=(0|this.words[e])*t,o=(67108863&i)+(67108863&r);r>>=26,r+=i/67108864|0,r+=o>>>26,this.words[e]=67108863&o}return 0!==r&&(this.words[e]=r,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var r=function(t){for(var r=new Array(t.bitLength()),e=0;e<r.length;e++){var n=e/26|0,i=e%26;r[e]=(t.words[n]&1<<i)>>>i}return r}(t);if(0===r.length)return new o(1);for(var e=this,n=0;n<r.length&&0===r[n];n++,e=e.sqr());if(++n<r.length)for(var i=e.sqr();n<r.length;n++,i=i.sqr())0!==r[n]&&(e=e.mul(i));return e},o.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var r,e=t%26,i=(t-e)/26,o=67108863>>>26-e<<26-e;if(0!==e){var s=0;for(r=0;r<this.length;r++){var u=this.words[r]&o,a=(0|this.words[r])-u<<e;this.words[r]=a|s,s=u>>>26-e}s&&(this.words[r]=s,this.length++)}if(0!==i){for(r=this.length-1;r>=0;r--)this.words[r+i]=this.words[r];for(r=0;r<i;r++)this.words[r]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,r,e){var i;n("number"==typeof t&&t>=0),i=r?(r-r%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),u=67108863^67108863>>>o<<o,a=e;if(i-=s,i=Math.max(0,i),a){for(var h=0;h<s;h++)a.words[h]=this.words[h];a.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var f=0;for(h=this.length-1;h>=0&&(0!==f||h>=i);h--){var c=0|this.words[h];this.words[h]=f<<26-o|c>>>o,f=c&u}return a&&0!==f&&(a.words[a.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,r,e){return n(0===this.negative),this.iushrn(t,r,e)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"==typeof t&&t>=0);var r=t%26,e=(t-r)/26,i=1<<r;return!(this.length<=e)&&!!(this.words[e]&i)},o.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var r=t%26,e=(t-r)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=e)return this;if(0!==r&&e++,this.length=Math.min(e,this.length),0!==r){var i=67108863^67108863>>>r<<r;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},o.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,r,e){var i,o,s=t.length+e;this._expand(s);var u=0;for(i=0;i<t.length;i++){o=(0|this.words[i+e])+u;var a=(0|t.words[i])*r;u=((o-=67108863&a)>>26)-(a/67108864|0),this.words[i+e]=67108863&o}for(;i<this.length-e;i++)u=(o=(0|this.words[i+e])+u)>>26,this.words[i+e]=67108863&o;if(0===u)return this.strip();for(n(-1===u),u=0,i=0;i<this.length;i++)u=(o=-(0|this.words[i])+u)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,r){var e=(this.length,t.length),n=this.clone(),i=t,s=0|i.words[i.length-1];0!==(e=26-this._countBits(s))&&(i=i.ushln(e),n.iushln(e),s=0|i.words[i.length-1]);var u,a=n.length-i.length;if("mod"!==r){(u=new o(null)).length=a+1,u.words=new Array(u.length);for(var h=0;h<u.length;h++)u.words[h]=0}var f=n.clone()._ishlnsubmul(i,1,a);0===f.negative&&(n=f,u&&(u.words[a]=1));for(var c=a-1;c>=0;c--){var l=67108864*(0|n.words[i.length+c])+(0|n.words[i.length+c-1]);for(l=Math.min(l/s|0,67108863),n._ishlnsubmul(i,l,c);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,c),n.isZero()||(n.negative^=1);u&&(u.words[c]=l)}return u&&u.strip(),n.strip(),"div"!==r&&0!==e&&n.iushrn(e),{div:u||null,mod:n}},o.prototype.divmod=function(t,r,e){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(u=this.neg().divmod(t,r),"mod"!==r&&(i=u.div.neg()),"div"!==r&&(s=u.mod.neg(),e&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(u=this.divmod(t.neg(),r),"mod"!==r&&(i=u.div.neg()),{div:i,mod:u.mod}):0!=(this.negative&t.negative)?(u=this.neg().divmod(t.neg(),r),"div"!==r&&(s=u.mod.neg(),e&&0!==s.negative&&s.isub(t)),{div:u.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===r?{div:this.divn(t.words[0]),mod:null}:"mod"===r?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,r);var i,s,u},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var e=0!==r.div.negative?r.mod.isub(t):r.mod,n=t.ushrn(1),i=t.andln(1),o=e.cmp(n);return o<0||1===i&&0===o?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var r=(1<<26)%t,e=0,i=this.length-1;i>=0;i--)e=(r*e+(0|this.words[i]))%t;return e},o.prototype.idivn=function(t){n(t<=67108863);for(var r=0,e=this.length-1;e>=0;e--){var i=(0|this.words[e])+67108864*r;this.words[e]=i/t|0,r=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var r=this,e=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var i=new o(1),s=new o(0),u=new o(0),a=new o(1),h=0;r.isEven()&&e.isEven();)r.iushrn(1),e.iushrn(1),++h;for(var f=e.clone(),c=r.clone();!r.isZero();){for(var l=0,p=1;0==(r.words[0]&p)&&l<26;++l,p<<=1);if(l>0)for(r.iushrn(l);l-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(f),s.isub(c)),i.iushrn(1),s.iushrn(1);for(var d=0,v=1;0==(e.words[0]&v)&&d<26;++d,v<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(u.isOdd()||a.isOdd())&&(u.iadd(f),a.isub(c)),u.iushrn(1),a.iushrn(1);r.cmp(e)>=0?(r.isub(e),i.isub(u),s.isub(a)):(e.isub(r),u.isub(i),a.isub(s))}return{a:u,b:a,gcd:e.iushln(h)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var r=this,e=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var i,s=new o(1),u=new o(0),a=e.clone();r.cmpn(1)>0&&e.cmpn(1)>0;){for(var h=0,f=1;0==(r.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(a),s.iushrn(1);for(var c=0,l=1;0==(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(e.iushrn(c);c-- >0;)u.isOdd()&&u.iadd(a),u.iushrn(1);r.cmp(e)>=0?(r.isub(e),s.isub(u)):(e.isub(r),u.isub(s))}return(i=0===r.cmpn(1)?s:u).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),e=t.clone();r.negative=0,e.negative=0;for(var n=0;r.isEven()&&e.isEven();n++)r.iushrn(1),e.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;e.isEven();)e.iushrn(1);var i=r.cmp(e);if(i<0){var o=r;r=e,e=o}else if(0===i||0===e.cmpn(1))break;r.isub(e)}return e.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"==typeof t);var r=t%26,e=(t-r)/26,i=1<<r;if(this.length<=e)return this._expand(e+1),this.words[e]|=i,this;for(var o=i,s=e;0!==o&&s<this.length;s++){var u=0|this.words[s];o=(u+=o)>>>26,u&=67108863,this.words[s]=u}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var r,e=t<0;if(0!==this.negative&&!e)return-1;if(0===this.negative&&e)return 1;if(this.strip(),this.length>1)r=1;else{e&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];r=i===t?0:i<t?-1:1}return 0!==this.negative?0|-r:r},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var r=this.ucmp(t);return 0!==this.negative?0|-r:r},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var r=0,e=this.length-1;e>=0;e--){var n=0|this.words[e],i=0|t.words[e];if(n!==i){n<i?r=-1:n>i&&(r=1);break}}return r},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new T(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function m(t,r){this.name=t,this.p=new o(r,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function T(t){if("string"==typeof t){var r=o._prime(t);this.m=r.p,this.prime=r}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function A(t){T.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}m.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},m.prototype.ireduce=function(t){var r,e=t;do{this.split(e,this.tmp),r=(e=(e=this.imulK(e)).iadd(this.tmp)).bitLength()}while(r>this.n);var n=r<this.n?-1:e.ucmp(this.p);return 0===n?(e.words[0]=0,e.length=1):n>0?e.isub(this.p):void 0!==e.strip?e.strip():e._strip(),e},m.prototype.split=function(t,r){t.iushrn(this.n,0,r)},m.prototype.imulK=function(t){return t.imul(this.k)},i(w,m),w.prototype.split=function(t,r){for(var e=4194303,n=Math.min(t.length,9),i=0;i<n;i++)r.words[i]=t.words[i];if(r.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(r.words[r.length++]=o&e,i=10;i<t.length;i++){var s=0|t.words[i];t.words[i-10]=(s&e)<<4|o>>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,e=0;e<t.length;e++){var n=0|t.words[e];r+=977*n,t.words[e]=67108863&r,r=64*n+(r/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(b,m),i(M,m),i(x,m),x.prototype.imulK=function(t){for(var r=0,e=0;e<t.length;e++){var n=19*(0|t.words[e])+r,i=67108863&n;n>>>=26,t.words[e]=i,r=n}return 0!==r&&(t.words[t.length++]=r),t},o._prime=function(t){if(g[t])return g[t];var r;if("k256"===t)r=new w;else if("p224"===t)r=new b;else if("p192"===t)r=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);r=new x}return g[t]=r,r},T.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},T.prototype._verify2=function(t,r){n(0==(t.negative|r.negative),"red works only with positives"),n(t.red&&t.red===r.red,"red works only with red numbers")},T.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},T.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},T.prototype.add=function(t,r){this._verify2(t,r);var e=t.add(r);return e.cmp(this.m)>=0&&e.isub(this.m),e._forceRed(this)},T.prototype.iadd=function(t,r){this._verify2(t,r);var e=t.iadd(r);return e.cmp(this.m)>=0&&e.isub(this.m),e},T.prototype.sub=function(t,r){this._verify2(t,r);var e=t.sub(r);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},T.prototype.isub=function(t,r){this._verify2(t,r);var e=t.isub(r);return e.cmpn(0)<0&&e.iadd(this.m),e},T.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},T.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},T.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},T.prototype.isqr=function(t){return this.imul(t,t.clone())},T.prototype.sqr=function(t){return this.mul(t,t)},T.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=this.m.andln(3);if(n(r%2==1),3===r){var e=this.m.add(new o(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var u=new o(1).toRed(this),a=u.redNeg(),h=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,h).cmp(a);)f.redIAdd(a);for(var c=this.pow(f,i),l=this.pow(t,i.addn(1).iushrn(1)),p=this.pow(t,i),d=s;0!==p.cmp(u);){for(var v=p,y=0;0!==v.cmp(u);y++)v=v.redSqr();n(y<d);var g=this.pow(c,new o(1).iushln(d-y-1));l=l.redMul(g),c=g.redSqr(),p=p.redMul(c),d=y}return l},T.prototype.invm=function(t){var r=t._invmp(this.m);return 0!==r.negative?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},T.prototype.pow=function(t,r){if(r.isZero())return new o(1).toRed(this);if(0===r.cmpn(1))return t.clone();var e=new Array(16);e[0]=new o(1).toRed(this),e[1]=t;for(var n=2;n<e.length;n++)e[n]=this.mul(e[n-1],t);var i=e[0],s=0,u=0,a=r.bitLength()%26;for(0===a&&(a=26),n=r.length-1;n>=0;n--){for(var h=r.words[n],f=a-1;f>=0;f--){var c=h>>f&1;i!==e[0]&&(i=this.sqr(i)),0!==c||0!==s?(s<<=1,s|=c,(4===++u||0===n&&0===f)&&(i=this.mul(i,e[s]),u=0,s=0)):u=0}a=26}return i},T.prototype.convertTo=function(t){var r=t.umod(this.m);return r===t?r.clone():r},T.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},o.mont=function(t){return new A(t)},i(A,T),A.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},A.prototype.convertFrom=function(t){var r=this.imod(t.mul(this.rinv));return r.red=null,r},A.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var e=t.imul(r),n=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=e.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},A.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new o(0)._forceRed(this);var e=t.mul(r),n=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=e.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},A.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,e(253)(t))},function(t,r,e){"use strict";var n=r;n.der=e(216),n.pem=e(279)},function(t,r,e){"use strict";e(145),e(39),e(86),e(218),e(27),e(258),e(17),e(260);var n=e(58),i=e(170).Buffer,o=e(171),s=e(174);function u(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new a,this.tree._init(t.body)}function a(t){o.call(this,"der",t)}function h(t){return t<10?"0"+t:t}t.exports=u,u.prototype.encode=function(t,r){return this.tree._encode(t,r).join()},n(a,o),a.prototype._encodeComposite=function(t,r,e,n){var o=function(t,r,e,n){var i;"seqof"===t?t="seq":"setof"===t&&(t="set");if(s.tagByName.hasOwnProperty(t))i=s.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return n.error("Unknown tag: "+t);i=t}if(i>=31)return n.error("Multi-octet tag encoding unsupported");r||(i|=32);return i|=s.tagClassByName[e||"universal"]<<6}(t,r,e,this.reporter);if(n.length<128){var u=i.alloc(2);return u[0]=o,u[1]=n.length,this._createEncoderBuffer([u,n])}for(var a=1,h=n.length;h>=256;h>>=8)a++;var f=i.alloc(2+a);f[0]=o,f[1]=128|a;for(var c=1+a,l=n.length;l>0;c--,l>>=8)f[c]=255&l;return this._createEncoderBuffer([f,n])},a.prototype._encodeStr=function(t,r){if("bitstr"===r)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===r){for(var e=i.alloc(2*t.length),n=0;n<t.length;n++)e.writeUInt16BE(t.charCodeAt(n),2*n);return this._createEncoderBuffer(e)}return"numstr"===r?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===r?this._isPrintstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(r)||"objDesc"===r?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+r+" unsupported")},a.prototype._encodeObjid=function(t,r,e){if("string"==typeof t){if(!r)return this.reporter.error("string objid given, but no values map found");if(!r.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=r[t].split(/[\s.]+/g);for(var n=0;n<t.length;n++)t[n]|=0}else if(Array.isArray(t)){t=t.slice();for(var o=0;o<t.length;o++)t[o]|=0}if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!e){if(t[1]>=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}for(var s=0,u=0;u<t.length;u++){var a=t[u];for(s++;a>=128;a>>=7)s++}for(var h=i.alloc(s),f=h.length-1,c=t.length-1;c>=0;c--){var l=t[c];for(h[f--]=127&l;(l>>=7)>0;)h[f--]=128|127&l}return this._createEncoderBuffer(h)},a.prototype._encodeTime=function(t,r){var e,n=new Date(t);return"gentime"===r?e=[h(n.getUTCFullYear()),h(n.getUTCMonth()+1),h(n.getUTCDate()),h(n.getUTCHours()),h(n.getUTCMinutes()),h(n.getUTCSeconds()),"Z"].join(""):"utctime"===r?e=[h(n.getUTCFullYear()%100),h(n.getUTCMonth()+1),h(n.getUTCDate()),h(n.getUTCHours()),h(n.getUTCMinutes()),h(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+r+" time is not supported yet"),this._encodeStr(e,"octstr")},a.prototype._encodeNull=function(){return this._createEncoderBuffer("")},a.prototype._encodeInt=function(t,r){if("string"==typeof t){if(!r)return this.reporter.error("String int or enum given, but no values map");if(!r.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=r[t]}if("number"!=typeof t&&!i.isBuffer(t)){var e=t.toArray();!t.sign&&128&e[0]&&e.unshift(0),t=i.from(e)}if(i.isBuffer(t)){var n=t.length;0===t.length&&n++;var o=i.alloc(n);return t.copy(o),0===t.length&&(o[0]=0),this._createEncoderBuffer(o)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);for(var s=1,u=t;u>=256;u>>=8)s++;for(var a=new Array(s),h=a.length-1;h>=0;h--)a[h]=255&t,t>>=8;return 128&a[0]&&a.unshift(0),this._createEncoderBuffer(i.from(a))},a.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},a.prototype._use=function(t,r){return"function"==typeof t&&(t=t(r)),t._getEncoder("der").tree},a.prototype._skipDefault=function(t,r,e){var n,i=this._baseState;if(null===i.default)return!1;var o=t.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,r,e).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n<o.length;n++)if(o[n]!==i.defaultBuffer[n])return!1;return!0}},function(t,r,e){var n=e(0),i=e(2).RegExp,o=n((function(){var t=i("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),s=o||n((function(){return!i("a","y").sticky})),u=o||n((function(){var t=i("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:u,MISSED_STICKY:s,UNSUPPORTED_Y:o}},function(t,r,e){"use strict";var n=e(44),i=e(7),o=e(1),s=e(166),u=e(10),a=e(30),h=e(208),f=e(32),c=e(71),l=e(167),p=e(20),d=e(24),v=e(47),y=e(70),g=e(168),m=e(146),w=e(217),b=e(0),M=w.UNSUPPORTED_Y,x=4294967295,T=Math.min,A=[].push,E=o(/./.exec),_=o(A),S=o("".slice),B=!b((function(){var t=/(?:)/,r=t.exec;t.exec=function(){return r.apply(this,arguments)};var e="ab".split(t);return 2!==e.length||"a"!==e[0]||"b"!==e[1]}));s("split",(function(t,r,e){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,e){var o=d(f(this)),s=void 0===e?x:e>>>0;if(0===s)return[];if(void 0===t)return[o];if(!h(t))return i(r,o,t,s);for(var u,a,c,l=[],p=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,g=new RegExp(t.source,p+"g");(u=i(m,g,o))&&!((a=g.lastIndex)>v&&(_(l,S(o,v,u.index)),u.length>1&&u.index<o.length&&n(A,l,y(u,1)),c=u[0].length,v=a,l.length>=s));)g.lastIndex===u.index&&g.lastIndex++;return v===o.length?!c&&E(g,"")||_(l,""):_(l,S(o,v)),l.length>s?y(l,0,s):l}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:i(r,this,t,e)}:r,[function(r,e){var n=f(this),s=a(r)?void 0:v(r,t);return s?i(s,r,n,e):i(o,d(n),r,e)},function(t,n){var i=u(this),s=d(t),a=e(o,i,s,n,o!==r);if(a.done)return a.value;var h=c(i,RegExp),f=i.unicode,v=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(M?"g":"y"),y=new h(M?"^(?:"+i.source+")":i,v),m=void 0===n?x:n>>>0;if(0===m)return[];if(0===s.length)return null===g(y,s)?[s]:[];for(var w=0,b=0,A=[];b<s.length;){y.lastIndex=M?0:b;var E,B=g(y,M?S(s,b):s);if(null===B||(E=T(p(y.lastIndex+(M?b:0)),s.length))===w)b=l(s,b,f);else{if(_(A,S(s,w,b)),A.length===m)return A;for(var O=1;O<=B.length-1;O++)if(_(A,B[O]),A.length===m)return A;b=w=E}}return _(A,S(s,w)),A}]}),!B,M)},function(t,r,e){var n,i,o,s,u=e(2),a=e(44),h=e(48),f=e(4),c=e(12),l=e(0),p=e(150),d=e(62),v=e(69),y=e(262),g=e(220),m=e(85),w=u.setImmediate,b=u.clearImmediate,M=u.process,x=u.Dispatch,T=u.Function,A=u.MessageChannel,E=u.String,_=0,S={},B="onreadystatechange";try{n=u.location}catch(t){}var O=function(t){if(c(S,t)){var r=S[t];delete S[t],r()}},R=function(t){return function(){O(t)}},k=function(t){O(t.data)},F=function(t){u.postMessage(E(t),n.protocol+"//"+n.host)};w&&b||(w=function(t){y(arguments.length,1);var r=f(t)?t:T(t),e=d(arguments,1);return S[++_]=function(){a(r,void 0,e)},i(_),_},b=function(t){delete S[t]},m?i=function(t){M.nextTick(R(t))}:x&&x.now?i=function(t){x.now(R(t))}:A&&!g?(s=(o=new A).port2,o.port1.onmessage=k,i=h(s.postMessage,s)):u.addEventListener&&f(u.postMessage)&&!u.importScripts&&n&&"file:"!==n.protocol&&!l(F)?(i=F,u.addEventListener("message",k,!1)):i=B in v("script")?function(t){p.appendChild(v("script")).onreadystatechange=function(){p.removeChild(this),O(t)}}:function(t){setTimeout(R(t),0)}),t.exports={set:w,clear:b}},function(t,r,e){var n=e(33);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},function(t,r){t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},function(t,r,e){var n=e(87),i=e(120),o=e(88).CONSTRUCTOR;t.exports=o||!i((function(t){n.all(t).then(void 0,(function(){}))}))},function(t,r){function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,r,e){"use strict";var n=r;n.der=e(225),n.pem=e(280)},function(t,r,e){"use strict";e(145),e(17),e(46),e(86),e(80),e(27),e(39);var n=e(58),i=e(214),o=e(90).DecoderBuffer,s=e(171),u=e(174);function a(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new h,this.tree._init(t.body)}function h(t){s.call(this,"der",t)}function f(t,r){var e=t.readUInt8(r);if(t.isError(e))return e;var n=u.tagClass[e>>6],i=0==(32&e);if(31==(31&e)){var o=e;for(e=0;128==(128&o);){if(o=t.readUInt8(r),t.isError(o))return o;e<<=7,e|=127&o}}else e&=31;return{cls:n,primitive:i,tag:e,tagStr:u.tag[e]}}function c(t,r,e){var n=t.readUInt8(e);if(t.isError(n))return n;if(!r&&128===n)return null;if(0==(128&n))return n;var i=127&n;if(i>4)return t.error("length octect is too long");n=0;for(var o=0;o<i;o++){n<<=8;var s=t.readUInt8(e);if(t.isError(s))return s;n|=s}return n}t.exports=a,a.prototype.decode=function(t,r){return o.isDecoderBuffer(t)||(t=new o(t,r)),this.tree._decode(t,r)},n(h,s),h.prototype._peekTag=function(t,r,e){if(t.isEmpty())return!1;var n=t.save(),i=f(t,'Failed to peek tag: "'+r+'"');return t.isError(i)?i:(t.restore(n),i.tag===r||i.tagStr===r||i.tagStr+"of"===r||e)},h.prototype._decodeTag=function(t,r,e){var n=f(t,'Failed to decode tag of "'+r+'"');if(t.isError(n))return n;var i=c(t,n.primitive,'Failed to get length of "'+r+'"');if(t.isError(i))return i;if(!e&&n.tag!==r&&n.tagStr!==r&&n.tagStr+"of"!==r)return t.error('Failed to match tag: "'+r+'"');if(n.primitive||null!==i)return t.skip(i,'Failed to match body of: "'+r+'"');var o=t.save(),s=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(s)?s:(i=t.offset-o.offset,t.restore(o),t.skip(i,'Failed to match body of: "'+r+'"'))},h.prototype._skipUntilEnd=function(t,r){for(;;){var e=f(t,r);if(t.isError(e))return e;var n=c(t,e.primitive,r);if(t.isError(n))return n;var i=void 0;if(i=e.primitive||null!==n?t.skip(n):this._skipUntilEnd(t,r),t.isError(i))return i;if("end"===e.tagStr)break}},h.prototype._decodeList=function(t,r,e,n){for(var i=[];!t.isEmpty();){var o=this._peekTag(t,"end");if(t.isError(o))return o;var s=e.decode(t,"der",n);if(t.isError(s)&&o)break;i.push(s)}return i},h.prototype._decodeStr=function(t,r){if("bitstr"===r){var e=t.readUInt8();return t.isError(e)?e:{unused:e,data:t.raw()}}if("bmpstr"===r){var n=t.raw();if(n.length%2==1)return t.error("Decoding of string type: bmpstr length mismatch");for(var i="",o=0;o<n.length/2;o++)i+=String.fromCharCode(n.readUInt16BE(2*o));return i}if("numstr"===r){var s=t.raw().toString("ascii");return this._isNumstr(s)?s:t.error("Decoding of string type: numstr unsupported characters")}if("octstr"===r)return t.raw();if("objDesc"===r)return t.raw();if("printstr"===r){var u=t.raw().toString("ascii");return this._isPrintstr(u)?u:t.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(r)?t.raw().toString():t.error("Decoding of string type: "+r+" unsupported")},h.prototype._decodeObjid=function(t,r,e){for(var n,i=[],o=0,s=0;!t.isEmpty();)o<<=7,o|=127&(s=t.readUInt8()),0==(128&s)&&(i.push(o),o=0);128&s&&i.push(o);var u=i[0]/40|0,a=i[0]%40;if(n=e?i:[u,a].concat(i.slice(1)),r){var h=r[n.join(" ")];void 0===h&&(h=r[n.join(".")]),void 0!==h&&(n=h)}return n},h.prototype._decodeTime=function(t,r){var e,n,i,o,s,u,a=t.raw().toString();if("gentime"===r)e=0|a.slice(0,4),n=0|a.slice(4,6),i=0|a.slice(6,8),o=0|a.slice(8,10),s=0|a.slice(10,12),u=0|a.slice(12,14);else{if("utctime"!==r)return t.error("Decoding "+r+" time is not supported yet");e=0|a.slice(0,2),n=0|a.slice(2,4),i=0|a.slice(4,6),o=0|a.slice(6,8),s=0|a.slice(8,10),u=0|a.slice(10,12),e=e<70?2e3+e:1900+e}return Date.UTC(e,n-1,i,o,s,u,0)},h.prototype._decodeNull=function(){return null},h.prototype._decodeBool=function(t){var r=t.readUInt8();return t.isError(r)?r:0!==r},h.prototype._decodeInt=function(t,r){var e=t.raw(),n=new i(e);return r&&(n=r[n.toString(10)]||n),n},h.prototype._use=function(t,r){return"function"==typeof t&&(t=t(r)),t._getDecoder("der").tree}},function(t,r,e){var n=e(164);t.exports=function(t){if(Array.isArray(t))return n(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,r){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,r,e){var n=e(164);t.exports=function(t,r){if(t){if("string"==typeof t)return n(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?n(t,r):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,r){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,r,e){var n=e(2),i=e(212),o=e(213),s=e(40),u=e(23),a=e(5),h=a("iterator"),f=a("toStringTag"),c=s.values,l=function(t,r){if(t){if(t[h]!==c)try{u(t,h,c)}catch(r){t[h]=c}if(t[f]||u(t,f,r),i[r])for(var e in s)if(t[e]!==s[e])try{u(t,e,s[e])}catch(r){t[e]=s[e]}}};for(var p in i)l(n[p]&&n[p].prototype,p);l(o,"DOMTokenList")},function(t,r,e){"use strict";var n=r;n.bignum=e(214),n.define=e(255).define,n.base=e(284),n.constants=e(285),n.decoders=e(224),n.encoders=e(215)},function(t,r,e){"use strict";(function(r){var n=e(37);e(80),e(27),e(17),e(46),e(237);var i=n(e(163)),o=n(e(64)),s=n(e(65)),u=e(141),a=u.BigInteger,h=u.SecureRandom,f=e(142),c=e(209),l=e(241),p=e(165),d=e(242),v=e(79),y=e(231),g=y.bignum,m=e(210),w=new h,b=y.define("ASN1_SM2EncryptFormat",(function(){this.seq().obj(this.key("X").int(),this.key("Y").int(),this.key("Hash").octstr(),this.key("Cipher").octstr())})),M=y.define("ASN1_SM2SignFormat",(function(){this.seq().obj(this.key("R").int(),this.key("S").int())})),x=y.define("ASN1_SM2PublicKeyObjID",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("subAlgorithm").objid())})),T=y.define("ASN1_SM2PublicKey",(function(){this.seq().obj(this.key("algorithm").use(x),this.key("key").bitstr())})),A=function(){function t(){(0,o.default)(this,t),this.curve=new f,this.ecmath=new d,this.sm3=new p}return(0,s.default)(t,[{key:"encodePublicKeyToDer",value:function(t){var e=T.encode({algorithm:{algorithm:"1.2.840.10045.2.1".split("."),subAlgorithm:"1.2.156.10197.1.301".split(".")},key:{data:r.from(t,"hex")}},"der");return v.byteArrayToHex(e)}},{key:"decodePublicKeyFromDer",value:function(t){var e=T.decode(r.from(t,"hex"),"der");return v.byteArrayToHex(e.key.data)}},{key:"encrypt",value:function(t,r){if(r&&0===r.length)throw new Error("plaintext cannot be an empty string.");for(var e=new a(this.curve.n.bitLength(),w).mod(this.curve.n.subtract(a.ONE)).add(a.ONE),n=this.ecmath.ECPointMultiplyG(e),i=m.normalize(n.getX().toByteArray()),o=m.normalize(n.getY().toByteArray()),s=new c(t.substr(2,64),t.substr(66,64)),u=this.ecmath.ECPointMultiply(s,e),h=m.normalize(u.getX().toByteArray()),f=m.normalize(u.getY().toByteArray()),p=h.concat(f),d=l.kdf(p,r.length),y=!0,M=0;M<d.length;M++)if(0!=d[M]){y=!1;break}if(y)return this.encrypt(t,r);for(var x=new Array(r.length),T=0;T<r.length;T++)x[T]=r[T]^d[T];var A=h.concat(Array.prototype.slice.call(r)).concat(f);this.sm3.init(),this.sm3.update(A);var E=this.sm3.final(),_=b.encode({X:new g(v.byteArrayToHex(i),16),Y:new g(v.byteArrayToHex(o),16),Hash:E,Cipher:x},"der");return v.byteArrayToHex(_)}},{key:"decrypt",value:function(t,e){for(var n=r.from(v.hexToByteArray(e)),i=b.decode(n,"der"),o=new c(i.X.toString(16),i.Y.toString(16)),s=new a(t,16),u=this.ecmath.ECPointMultiply(o,s),h=m.normalize(u.getX().toByteArray()),f=m.normalize(u.getY().toByteArray()),p=h.concat(f),d=l.kdf(p,i.Cipher.length),y=!0,g=0;g<d.length;g++)if(0!=d[g]){y=!1;break}if(y)return-1;for(var w=new Array(i.Cipher.length),M=0;M<i.Cipher.length;M++)w[M]=i.Cipher[M]^d[M];var x=h.concat(w).concat(f);return this.sm3.init(),this.sm3.update(x),r.from(this.sm3.final()).equals(i.Hash)?w:-1}},{key:"sign",value:function(t,r,e,n){t.startsWith("0x")&&(t=t.slice(2)),r.startsWith("0x")&&(r=r.slice(2));var i=new c(t.substr(2,64),t.substr(66,64)),o=l.SM2MessageDigest(e,n,i),s=new a(this.curve.n.bitLength(),w).mod(this.curve.n.subtract(a.ONE)).add(a.ONE),u=this.ecmath.ECPointMultiplyG(s),h=new a(v.byteArrayToHex(o),16).add(u.getX()).mod(this.curve.n);if(h.equals(this.ecmath.zero))return this.sign(t,r,e,n);if(h.add(s).equals(this.curve.n))return this.sign(t,r,e,n);var f=new a(r,16),p=f.add(this.ecmath.one).modInverse(this.curve.n),d=h.multiply(f),y=p.multiply(s.add(d.negate())).mod(this.curve.n);if(y.equals(this.ecmath.zero))return this.sign(t,r,e,n);var m=M.encode({R:new g(h.toString(16),16),S:new g(y.toString(16),16)},"der");return v.byteArrayToHex(m)}},{key:"verify",value:function(t,e,n,i){t.startsWith("0x")&&(t=t.slice(2));var o=r.from(v.hexToByteArray(i)),s=M.decode(o,"der"),u=new a(s.R.toString(16),16),h=new a(s.S.toString(16),16);if(!(u.compareTo(this.ecmath.zero)>0&&u.compareTo(this.curve.n)<0))return!1;if(!(h.compareTo(this.ecmath.zero)>0&&h.compareTo(this.curve.n)<0))return!1;var f=u.add(h).mod(this.curve.n);if(f.equals(this.ecmath.zero))return!1;var p=this.ecmath.ECPointMultiplyG(h),d=new c(t.substr(2,64),t.substr(66,64)),y=this.ecmath.ECPointMultiply(d,f),g=this.ecmath.ECPointAdd(p,y),m=l.SM2MessageDigest(e,n,d);return!!new a(v.byteArrayToHex(m),16).add(g.getX()).mod(this.curve.n).equals(u)}},{key:"genKeyPair",value:function(){var t=new a(this.curve.n.bitLength(),w).mod(this.curve.n.subtract(a.ONE)).add(a.ONE),r=this.ecmath.ECPointMultiplyG(t),e=m.normalize(r.getX().toByteArray()),n=m.normalize(r.getY().toByteArray()),o=v.byteArrayToHex([4].concat((0,i.default)(e),(0,i.default)(n)));return{privateKey:m.leftPad(t.toString(16),64),publicKey:o}}},{key:"getPublicKeyFromPrivateKey",value:function(t){var r=this.ecmath.ECPointMultiplyG(new a(t,16)),e=m.normalize(r.getX().toByteArray()),n=m.normalize(r.getY().toByteArray());return v.byteArrayToHex([4].concat((0,i.default)(e),(0,i.default)(n)))}},{key:"kdf",value:function(t,r){return l.kdf(t,r)}}]),t}();t.exports=A}).call(this,e(176).Buffer)},,,function(t,r){r.read=function(t,r,e,n,i){var o,s,u=8*i-n-1,a=(1<<u)-1,h=a>>1,f=-7,c=e?i-1:0,l=e?-1:1,p=t[r+c];for(c+=l,o=p&(1<<-f)-1,p>>=-f,f+=u;f>0;o=256*o+t[r+c],c+=l,f-=8);for(s=o&(1<<-f)-1,o>>=-f,f+=n;f>0;s=256*s+t[r+c],c+=l,f-=8);if(0===o)o=1-h;else{if(o===a)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),o-=h}return(p?-1:1)*s*Math.pow(2,o-n)},r.write=function(t,r,e,n,i,o){var s,u,a,h=8*o-i-1,f=(1<<h)-1,c=f>>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,v=r<0||0===r&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,s=f):(s=Math.floor(Math.log(r)/Math.LN2),r*(a=Math.pow(2,-s))<1&&(s--,a*=2),(r+=s+c>=1?l/a:l*Math.pow(2,1-c))*a>=2&&(s++,a/=2),s+c>=f?(u=0,s=f):s+c>=1?(u=(r*a-1)*Math.pow(2,i),s+=c):(u=r*Math.pow(2,c-1)*Math.pow(2,i),s=0));i>=8;t[e+p]=255&u,p+=d,u/=256,i-=8);for(s=s<<i|u,h+=i;h>0;t[e+p]=255&s,p+=d,s/=256,h-=8);t[e+p-d]|=128*v}},function(t,r){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},function(t,r,e){"use strict";var n,i=e(6),o=e(1),s=e(49).f,u=e(20),a=e(24),h=e(238),f=e(32),c=e(239),l=e(31),p=o("".startsWith),d=o("".slice),v=Math.min,y=c("startsWith");i({target:"String",proto:!0,forced:!!(l||y||(n=s(String.prototype,"startsWith"),!n||n.writable))&&!y},{startsWith:function(t){var r=a(f(this));h(t);var e=u(v(arguments.length>1?arguments[1]:void 0,r.length)),n=a(t);return p?p(r,n,e):d(r,e,e+n.length)===n}})},function(t,r,e){var n=e(208),i=TypeError;t.exports=function(t){if(n(t))throw i("The method doesn't accept regular expressions");return t}},function(t,r,e){var n=e(5)("match");t.exports=function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[n]=!1,"/./"[t](r)}catch(t){}}return!1}},function(t,r,e){"use strict";var n=e(6),i=e(84).left,o=e(61),s=e(41),u=e(85);n({target:"Array",proto:!0,forced:!o("reduce")||!u&&s>79&&s<83},{reduce:function(t){var r=arguments.length;return i(this,t,r,r>1?arguments[1]:void 0)}})},function(t,r,e){"use strict";var n=e(165),i=new(e(142)),o=new n,s=e(210);function u(t,r){var e=new Array(2+t.length+192),n=8*t.length;e[0]=n>>8&255,e[1]=255&n;for(var u=0;u<t.length;u++)e[2+u]=t[u];for(var a=2+t.length,h=s.normalize(i.a.toByteArray()),f=0;f<h.length;f++)e[a+f]=(h[f]>>>0)%256;a+=h.length;for(var c=s.normalize(i.b.toByteArray()),l=0;l<c.length;l++)e[a+l]=(c[l]>>>0)%256;a+=c.length;for(var p=s.normalize(i.Gx.toByteArray()),d=0;d<p.length;d++)e[a+d]=(p[d]>>>0)%256;a+=p.length;for(var v=s.normalize(i.Gy.toByteArray()),y=0;y<v.length;y++)e[a+y]=(v[y]>>>0)%256;a+=v.length;for(var g=s.normalize(r.getX().toByteArray()),m=0;m<g.length;m++)e[a+m]=(g[m]>>>0)%256;a+=g.length;for(var w=s.normalize(r.getY().toByteArray()),b=0;b<w.length;b++)e[a+b]=(w[b]>>>0)%256;return a+=w.length,o.init(),o.update(e),o.final()}t.exports={SM2MessageDigest:function(t,r,e){var n=u(r,e);return o.init(),o.update(n),o.update(t),o.final()},SM2GetZ:u,kdf:function(t,r){if(r>137438953440)return-1;if(t.length>1024)return-1;var e,n=1,i=r,s=[],u=0;for(t.push((n>>>24)%256),t.push((n>>>16)%256),t.push((n>>>8)%256),t.push((n>>>0)%256);i>0;){if(o.init(),o.update(t),e=o.final(),i<=32)for(var a=0;a<i;a++)s[u+a]=e[a];else for(var h=r>=32?32:r,f=0;f<h;f++)s[u+f]=e[f];i-=32,u+=32,n++,t[t.length-4]=(n>>>24)%256,t[t.length-3]=(n>>>16)%256,t[t.length-2]=(n>>>8)%256,t[t.length-1]=(n>>>0)%256}return s}}},function(t,r,e){"use strict";var n=e(37);e(40),e(243),e(17),e(252),e(230),e(144),e(46);var i=n(e(64)),o=n(e(65)),s=e(141).BigInteger,u=e(142),a=e(209),h=function(){function t(){(0,i.default)(this,t),this.curve=new u,this.G=new a("32C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7","BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0"),this.zero=new s("0"),this.one=new s("1"),this.two=new s("2"),this.three=new s("3"),this.infinity=new a(null,null),this.preCompute()}return(0,o.default)(t,[{key:"preCompute",value:function(){for(var t=new Map,r=1;r<256;r++)t.set("".concat(r),this.preComputeMultiplyG(new s("".concat(r))));this.map=t}},{key:"preComputeMultiplyG",value:function(t){if(t.equals(this.one))return this.G;for(var r=this.G,e=t.bitLength()-2;e>=0;e--){r=this.ECPointDoubling(r),1==t.testBit(e)&&(r=this.ECPointAdd(r,this.G))}return r}},{key:"ECPointAdd",value:function(t,r){var e=this.curve.p;if(t.isInfinity())return r;if(r.isInfinity())return t;var n=t.X,i=t.Y,o=t.Z,s=r.X,u=r.Y,h=r.Z,f=n.multiply(h).mod(e),c=s.multiply(o).mod(e),l=f.subtract(c),p=i.multiply(h).mod(e),d=u.multiply(o).mod(e),v=p.subtract(d);if(this.zero.equals(l))return this.zero.equals(v)?this.ECPointDoubling(t):this.infinity;var y=f.add(c),g=o.multiply(h).mod(e),m=l.square().mod(e),w=l.multiply(m).mod(e),b=g.multiply(v.square()).subtract(y.multiply(m)).mod(e),M=l.multiply(b).mod(e),x=v.multiply(m.multiply(f).subtract(b)).subtract(p.multiply(w)).mod(e),T=w.multiply(g).mod(e);return new a(M,x,T)}},{key:"ECPointDoubling",value:function(t){if(t.isInfinity())return t;if(!t.Y.signum())return this.infinity;var r=t.X,e=t.Y,n=t.Z,i=this.curve.p,o=this.curve.a,s=r.square().multiply(this.three).add(o.multiply(n.square())).mod(i),u=e.shiftLeft(1).multiply(n).mod(i),h=e.square().mod(i),f=h.multiply(r).multiply(n).mod(i),c=u.square().mod(i),l=s.square().subtract(f.shiftLeft(3)).mod(i),p=u.multiply(l).mod(i),d=s.multiply(f.shiftLeft(2).subtract(l)).subtract(c.shiftLeft(1).multiply(h)).mod(i),v=u.multiply(c).mod(i);return new a(p,d,v)}},{key:"ECPointMultiply",value:function(t,r){if(r.equals(this.one))return t;for(var e=t,n=r.bitLength()-2;n>=0;n--){e=this.ECPointDoubling(e),1==r.testBit(n)&&(e=this.ECPointAdd(e,t))}return e}},{key:"ECPointMultiplyG",value:function(t){if(t.equals(this.one))return this.G;for(var r=t.bitLength(),e=r%8==0?8:r%8,n=this.map.get(t.shiftRight(r-e).toString()),i=t.bitLength()-e-1;i>0;i-=8){n=this.ECPointDoubling(n),n=this.ECPointDoubling(n),n=this.ECPointDoubling(n),n=this.ECPointDoubling(n),n=this.ECPointDoubling(n),n=this.ECPointDoubling(n),n=this.ECPointDoubling(n),n=this.ECPointDoubling(n);for(var o=0,s=0;s<8;s++)o*=2,t.testBit(i-s)&&(o+=1);0!==o&&(n=this.ECPointAdd(n,this.map.get("".concat(o))))}return n}},{key:"ECPointIsOnCurve",value:function(t){var r=t.Y.multiply(t.Y).mod(this.curve.p),e=t.X.multiply(t.X).multiply(t.X).add(t.X.multiply(this.curve.a)).add(this.curve.b).mod(this.curve.p);return r.equals(e)}}]),t}();t.exports=h},function(t,r,e){e(244)},function(t,r,e){"use strict";e(245)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),e(251))},function(t,r,e){"use strict";var n=e(6),i=e(2),o=e(1),s=e(118),u=e(16),a=e(211),h=e(143),f=e(57),c=e(4),l=e(30),p=e(8),d=e(0),v=e(120),y=e(51),g=e(154);t.exports=function(t,r,e){var m=-1!==t.indexOf("Map"),w=-1!==t.indexOf("Weak"),b=m?"set":"add",M=i[t],x=M&&M.prototype,T=M,A={},E=function(t){var r=o(x[t]);u(x,t,"add"==t?function(t){return r(this,0===t?0:t),this}:"delete"==t?function(t){return!(w&&!p(t))&&r(this,0===t?0:t)}:"get"==t?function(t){return w&&!p(t)?void 0:r(this,0===t?0:t)}:"has"==t?function(t){return!(w&&!p(t))&&r(this,0===t?0:t)}:function(t,e){return r(this,0===t?0:t,e),this})};if(s(t,!c(M)||!(w||x.forEach&&!d((function(){(new M).entries().next()})))))T=e.getConstructor(r,t,m,b),a.enable();else if(s(t,!0)){var _=new T,S=_[b](w?{}:-0,1)!=_,B=d((function(){_.has(1)})),O=v((function(t){new M(t)})),R=!w&&d((function(){for(var t=new M,r=5;r--;)t[b](r,r);return!t.has(-0)}));O||((T=r((function(t,r){f(t,x);var e=g(new M,t,T);return l(r)||h(r,e[b],{that:e,AS_ENTRIES:m}),e}))).prototype=x,x.constructor=T),(B||R)&&(E("delete"),E("has"),m&&E("get")),(R||S)&&E(b),w&&x.clear&&delete x.clear}return A[t]=T,n({global:!0,constructor:!0,forced:T!=M},A),y(T,t),w||e.setStrong(T,t,m),T}},function(t,r,e){var n=e(29),i=e(18),o=e(50).f,s=e(70),u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"Window"==n(t)?function(t){try{return o(t)}catch(t){return s(u)}}(t):o(i(t))}},function(t,r,e){var n=e(0),i=e(8),o=e(29),s=e(248),u=Object.isExtensible,a=n((function(){u(1)}));t.exports=a||s?function(t){return!!i(t)&&((!s||"ArrayBuffer"!=o(t))&&(!u||u(t)))}:u},function(t,r,e){var n=e(0);t.exports=n((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},function(t,r,e){var n=e(0);t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,r,e){var n=e(7),i=e(10),o=e(47);t.exports=function(t,r,e){var s,u;i(t);try{if(!(s=o(t,"return"))){if("throw"===r)throw e;return e}s=n(s,t)}catch(t){u=!0,s=t}if("throw"===r)throw e;if(u)throw s;return i(s),e}},function(t,r,e){"use strict";var n=e(11).f,i=e(38),o=e(151),s=e(48),u=e(57),a=e(30),h=e(143),f=e(117),c=e(119),l=e(121),p=e(9),d=e(211).fastKey,v=e(26),y=v.set,g=v.getterFor;t.exports={getConstructor:function(t,r,e,f){var c=t((function(t,n){u(t,l),y(t,{type:r,index:i(null),first:void 0,last:void 0,size:0}),p||(t.size=0),a(n)||h(n,t[f],{that:t,AS_ENTRIES:e})})),l=c.prototype,v=g(r),m=function(t,r,e){var n,i,o=v(t),s=w(t,r);return s?s.value=e:(o.last=s={index:i=d(r,!0),key:r,value:e,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=s),n&&(n.next=s),p?o.size++:t.size++,"F"!==i&&(o.index[i]=s)),t},w=function(t,r){var e,n=v(t),i=d(r);if("F"!==i)return n.index[i];for(e=n.first;e;e=e.next)if(e.key==r)return e};return o(l,{clear:function(){for(var t=v(this),r=t.index,e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=void 0),delete r[e.index],e=e.next;t.first=t.last=void 0,p?t.size=0:this.size=0},delete:function(t){var r=this,e=v(r),n=w(r,t);if(n){var i=n.next,o=n.previous;delete e.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),e.first==n&&(e.first=i),e.last==n&&(e.last=o),p?e.size--:r.size--}return!!n},forEach:function(t){for(var r,e=v(this),n=s(t,arguments.length>1?arguments[1]:void 0);r=r?r.next:e.first;)for(n(r.value,r.key,this);r&&r.removed;)r=r.previous},has:function(t){return!!w(this,t)}}),o(l,e?{get:function(t){var r=w(this,t);return r&&r.value},set:function(t,r){return m(this,0===t?0:t,r)}}:{add:function(t){return m(this,t=0===t?0:t,t)}}),p&&n(l,"size",{get:function(){return v(this).size}}),c},setStrong:function(t,r,e){var n=r+" Iterator",i=g(r),o=g(n);f(t,r,(function(t,r){y(this,{type:n,target:t,state:i(t),kind:r,last:void 0})}),(function(){for(var t=o(this),r=t.kind,e=t.last;e&&e.removed;)e=e.previous;return t.target&&(t.last=e=e?e.next:t.state.first)?c("keys"==r?e.key:"values"==r?e.value:[e.key,e.value],!1):(t.target=void 0,c(void 0,!0))}),e?"entries":"values",!e,!0),l(r)}}},function(t,r,e){"use strict";var n=e(122).charAt,i=e(24),o=e(26),s=e(117),u=e(119),a="String Iterator",h=o.set,f=o.getterFor(a);s(String,"String",(function(t){h(this,{type:a,string:i(t),index:0})}),(function(){var t,r=f(this),e=r.string,i=r.index;return i>=e.length?u(void 0,!0):(t=n(e,i),r.index+=t.length,u(t,!1))}))},function(t,r){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,r){},function(t,r,e){"use strict";e(145);var n=e(215),i=e(224),o=e(58);function s(t,r){this.name=t,this.body=r,this.decoders={},this.encoders={}}r.define=function(t,r){return new s(t,r)},s.prototype._createNamed=function(t){var r=this.name;function e(t){this._initNamed(t,r)}return o(e,t),e.prototype._initNamed=function(r,e){t.call(this,r,e)},new e(this)},s.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(i[t])),this.decoders[t]},s.prototype.decode=function(t,r,e){return this._getDecoder(r).decode(t,e)},s.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(n[t])),this.encoders[t]},s.prototype.encode=function(t,r,e){return this._getEncoder(r).encode(t,e)}},function(t,r,e){var n=e(0),i=e(2).RegExp;t.exports=n((function(){var t=i(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},function(t,r,e){var n=e(0),i=e(2).RegExp;t.exports=n((function(){var t=i("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},function(t,r,e){"use strict";var n=e(6),i=e(14),o=e(19),s=e(21),u=e(13),a=e(259),h=e(175),f=e(93),c=e(67),l=e(155),p=e(63)("splice"),d=Math.max,v=Math.min;n({target:"Array",proto:!0,forced:!p},{splice:function(t,r){var e,n,p,y,g,m,w=i(this),b=u(w),M=o(t,b),x=arguments.length;for(0===x?e=n=0:1===x?(e=0,n=b-M):(e=x-2,n=v(d(s(r),0),b-M)),h(b+e-n),p=f(w,n),y=0;y<n;y++)(g=M+y)in w&&c(p,y,w[g]);if(p.length=n,e<n){for(y=M;y<b-n;y++)m=y+e,(g=y+n)in w?w[m]=w[g]:l(w,m);for(y=b;y>b-n+e;y--)l(w,y-1)}else if(e>n)for(y=b-n;y>M;y--)m=y+e-1,(g=y+n-1)in w?w[m]=w[g]:l(w,m);for(y=0;y<e;y++)w[y+M]=arguments[y+2];return a(w,b-n+e),p}})},function(t,r,e){"use strict";var n=e(9),i=e(68),o=TypeError,s=Object.getOwnPropertyDescriptor,u=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=u?function(t,r){if(i(t)&&!s(t,"length").writable)throw o("Cannot set read only .length");return t.length=r}:function(t,r){return t.length=r}},function(t,r,e){e(261),e(269),e(270),e(271),e(272),e(273)},function(t,r,e){"use strict";var n,i,o,s=e(6),u=e(31),a=e(85),h=e(2),f=e(7),c=e(16),l=e(36),p=e(51),d=e(121),v=e(25),y=e(4),g=e(8),m=e(57),w=e(71),b=e(219).set,M=e(263),x=e(266),T=e(169),A=e(267),E=e(26),_=e(87),S=e(88),B=e(89),O="Promise",R=S.CONSTRUCTOR,k=S.REJECTION_EVENT,F=S.SUBCLASSING,j=E.getterFor(O),D=E.set,I=_&&_.prototype,P=_,C=I,L=h.TypeError,U=h.document,N=h.process,q=B.f,Y=q,z=!!(U&&U.createEvent&&h.dispatchEvent),V="unhandledrejection",Z=function(t){var r;return!(!g(t)||!y(r=t.then))&&r},G=function(t,r){var e,n,i,o=r.value,s=1==r.state,u=s?t.ok:t.fail,a=t.resolve,h=t.reject,c=t.domain;try{u?(s||(2===r.rejection&&$(r),r.rejection=1),!0===u?e=o:(c&&c.enter(),e=u(o),c&&(c.exit(),i=!0)),e===t.promise?h(L("Promise-chain cycle")):(n=Z(e))?f(n,e,a,h):a(e)):h(o)}catch(t){c&&!i&&c.exit(),h(t)}},K=function(t,r){t.notified||(t.notified=!0,M((function(){for(var e,n=t.reactions;e=n.get();)G(e,t);t.notified=!1,r&&!t.rejection&&X(t)})))},W=function(t,r,e){var n,i;z?((n=U.createEvent("Event")).promise=r,n.reason=e,n.initEvent(t,!1,!0),h.dispatchEvent(n)):n={promise:r,reason:e},!k&&(i=h["on"+t])?i(n):t===V&&x("Unhandled promise rejection",e)},X=function(t){f(b,h,(function(){var r,e=t.facade,n=t.value;if(H(t)&&(r=T((function(){a?N.emit("unhandledRejection",n,e):W(V,e,n)})),t.rejection=a||H(t)?2:1,r.error))throw r.value}))},H=function(t){return 1!==t.rejection&&!t.parent},$=function(t){f(b,h,(function(){var r=t.facade;a?N.emit("rejectionHandled",r):W("rejectionhandled",r,t.value)}))},J=function(t,r,e){return function(n){t(r,n,e)}},Q=function(t,r,e){t.done||(t.done=!0,e&&(t=e),t.value=r,t.state=2,K(t,!0))},tt=function(t,r,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===r)throw L("Promise can't be resolved itself");var n=Z(r);n?M((function(){var e={done:!1};try{f(n,r,J(tt,e,t),J(Q,e,t))}catch(r){Q(e,r,t)}})):(t.value=r,t.state=1,K(t,!1))}catch(r){Q({done:!1},r,t)}}};if(R&&(C=(P=function(t){m(this,C),v(t),f(n,this);var r=j(this);try{t(J(tt,r),J(Q,r))}catch(t){Q(r,t)}}).prototype,(n=function(t){D(this,{type:O,done:!1,notified:!1,parent:!1,reactions:new A,rejection:!1,state:0,value:void 0})}).prototype=c(C,"then",(function(t,r){var e=j(this),n=q(w(this,P));return e.parent=!0,n.ok=!y(t)||t,n.fail=y(r)&&r,n.domain=a?N.domain:void 0,0==e.state?e.reactions.add(n):M((function(){G(n,e)})),n.promise})),i=function(){var t=new n,r=j(t);this.promise=t,this.resolve=J(tt,r),this.reject=J(Q,r)},B.f=q=function(t){return t===P||undefined===t?new i(t):Y(t)},!u&&y(_)&&I!==Object.prototype)){o=I.then,F||c(I,"then",(function(t,r){var e=this;return new P((function(t,r){f(o,e,t,r)})).then(t,r)}),{unsafe:!0});try{delete I.constructor}catch(t){}l&&l(I,C)}s({global:!0,constructor:!0,wrap:!0,forced:R},{Promise:P}),p(P,O,!1,!0),d(O)},function(t,r){var e=TypeError;t.exports=function(t,r){if(t<r)throw e("Not enough arguments");return t}},function(t,r,e){var n,i,o,s,u,a,h,f,c=e(2),l=e(48),p=e(49).f,d=e(219).set,v=e(220),y=e(264),g=e(265),m=e(85),w=c.MutationObserver||c.WebKitMutationObserver,b=c.document,M=c.process,x=c.Promise,T=p(c,"queueMicrotask"),A=T&&T.value;A||(n=function(){var t,r;for(m&&(t=M.domain)&&t.exit();i;){r=i.fn,i=i.next;try{r()}catch(t){throw i?s():o=void 0,t}}o=void 0,t&&t.enter()},v||m||g||!w||!b?!y&&x&&x.resolve?((h=x.resolve(void 0)).constructor=x,f=l(h.then,h),s=function(){f(n)}):m?s=function(){M.nextTick(n)}:(d=l(d,c),s=function(){d(n)}):(u=!0,a=b.createTextNode(""),new w(n).observe(a,{characterData:!0}),s=function(){a.data=u=!u})),t.exports=A||function(t){var r={fn:t,next:void 0};o&&(o.next=r),i||(i=r,s()),o=r}},function(t,r,e){var n=e(33),i=e(2);t.exports=/ipad|iphone|ipod/i.test(n)&&void 0!==i.Pebble},function(t,r,e){var n=e(33);t.exports=/web0s(?!.*chrome)/i.test(n)},function(t,r,e){var n=e(2);t.exports=function(t,r){var e=n.console;e&&e.error&&(1==arguments.length?e.error(t):e.error(t,r))}},function(t,r){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var r={item:t,next:null};this.head?this.tail.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}},t.exports=e},function(t,r,e){var n=e(221),i=e(85);t.exports=!n&&!i&&"object"==typeof window&&"object"==typeof document},function(t,r,e){"use strict";var n=e(6),i=e(7),o=e(25),s=e(89),u=e(169),a=e(143);n({target:"Promise",stat:!0,forced:e(222)},{all:function(t){var r=this,e=s.f(r),n=e.resolve,h=e.reject,f=u((function(){var e=o(r.resolve),s=[],u=0,f=1;a(t,(function(t){var o=u++,a=!1;f++,i(e,r,t).then((function(t){a||(a=!0,s[o]=t,--f||n(s))}),h)})),--f||n(s)}));return f.error&&h(f.value),e.promise}})},function(t,r,e){"use strict";var n=e(6),i=e(31),o=e(88).CONSTRUCTOR,s=e(87),u=e(28),a=e(4),h=e(16),f=s&&s.prototype;if(n({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(t){return this.then(void 0,t)}}),!i&&a(s)){var c=u("Promise").prototype.catch;f.catch!==c&&h(f,"catch",c,{unsafe:!0})}},function(t,r,e){"use strict";var n=e(6),i=e(7),o=e(25),s=e(89),u=e(169),a=e(143);n({target:"Promise",stat:!0,forced:e(222)},{race:function(t){var r=this,e=s.f(r),n=e.reject,h=u((function(){var s=o(r.resolve);a(t,(function(t){i(s,r,t).then(e.resolve,n)}))}));return h.error&&n(h.value),e.promise}})},function(t,r,e){"use strict";var n=e(6),i=e(7),o=e(89);n({target:"Promise",stat:!0,forced:e(88).CONSTRUCTOR},{reject:function(t){var r=o.f(this);return i(r.reject,void 0,t),r.promise}})},function(t,r,e){"use strict";var n=e(6),i=e(28),o=e(31),s=e(87),u=e(88).CONSTRUCTOR,a=e(274),h=i("Promise"),f=o&&!u;n({target:"Promise",stat:!0,forced:o||u},{resolve:function(t){return a(f&&this===h?s:this,t)}})},function(t,r,e){var n=e(10),i=e(8),o=e(89);t.exports=function(t,r){if(n(t),i(r)&&r.constructor===t)return r;var e=o.f(t);return(0,e.resolve)(r),e.promise}},function(t,r){var e,n,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(t){n=s}}();var a,h=[],f=!1,c=-1;function l(){f&&a&&(f=!1,a.length?h=a.concat(h):c=-1,h.length&&p())}function p(){if(!f){var t=u(l);f=!0;for(var r=h.length;r;){for(a=h,h=[];++c<r;)a&&a[c].run();c=-1,r=h.length}a=null,f=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(r){try{return n.call(null,t)}catch(r){return n.call(this,t)}}}(t)}}function d(t,r){this.fun=t,this.array=r}function v(){}i.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];h.push(new d(t,r)),1!==h.length||f||u(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,r,e){"use strict";var n=e(15).forEach,i=e(61)("forEach");t.exports=i?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,r,e){"use strict";var n=e(6),i=e(15).filter;n({target:"Array",proto:!0,forced:!e(63)("filter")},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,r){function e(t,r){if(!t)throw new Error(r||"Assertion failed")}t.exports=e,e.equal=function(t,r,e){if(t!=r)throw new Error(e||"Assertion failed: "+t+" != "+r)}},function(t,r,e){"use strict";e(17),e(46),e(27),e(39);var n=e(58),i=e(216);function o(t){i.call(this,t),this.enc="pem"}n(o,i),t.exports=o,o.prototype.encode=function(t,r){for(var e=i.prototype.encode.call(this,t).toString("base64"),n=["-----BEGIN "+r.label+"-----"],o=0;o<e.length;o+=64)n.push(e.slice(o,o+64));return n.push("-----END "+r.label+"-----"),n.join("\n")}},function(t,r,e){"use strict";e(86),e(218),e(17),e(46),e(281),e(39),e(27),e(282);var n=e(58),i=e(170).Buffer,o=e(225);function s(t){o.call(this,t),this.enc="pem"}n(s,o),t.exports=s,s.prototype.decode=function(t,r){for(var e=t.toString().split(/[\r\n]+/g),n=r.label.toUpperCase(),s=/^-----(BEGIN|END) ([^-]+)-----$/,u=-1,a=-1,h=0;h<e.length;h++){var f=e[h].match(s);if(null!==f&&f[2]===n){if(-1!==u){if("END"!==f[1])break;a=h;break}if("BEGIN"!==f[1])break;u=h}}if(-1===u||-1===a)throw new Error("PEM section not found for: "+n);var c=e.slice(u+1,a).join("");c.replace(/[^a-z0-9+/=]+/gi,"");var l=i.from(c,"base64");return o.prototype.decode.call(this,l,r)}},function(t,r,e){"use strict";var n=e(7),i=e(166),o=e(10),s=e(30),u=e(20),a=e(24),h=e(32),f=e(47),c=e(167),l=e(168);i("match",(function(t,r,e){return[function(r){var e=h(this),i=s(r)?void 0:f(r,t);return i?n(i,r,e):new RegExp(r)[t](a(e))},function(t){var n=o(this),i=a(t),s=e(r,n,i);if(s.done)return s.value;if(!n.global)return l(n,i);var h=n.unicode;n.lastIndex=0;for(var f,p=[],d=0;null!==(f=l(n,i));){var v=a(f[0]);p[d]=v,""===v&&(n.lastIndex=c(i,u(n.lastIndex),h)),d++}return 0===d?null:p}]}))},function(t,r,e){"use strict";var n=e(44),i=e(7),o=e(1),s=e(166),u=e(0),a=e(10),h=e(4),f=e(30),c=e(21),l=e(20),p=e(24),d=e(32),v=e(167),y=e(47),g=e(283),m=e(168),w=e(5)("replace"),b=Math.max,M=Math.min,x=o([].concat),T=o([].push),A=o("".indexOf),E=o("".slice),_="$0"==="a".replace(/./,"$0"),S=!!/./[w]&&""===/./[w]("a","$0");s("replace",(function(t,r,e){var o=S?"$":"$0";return[function(t,e){var n=d(this),o=f(t)?void 0:y(t,w);return o?i(o,t,n,e):i(r,p(n),t,e)},function(t,i){var s=a(this),u=p(t);if("string"==typeof i&&-1===A(i,o)&&-1===A(i,"$<")){var f=e(r,s,u,i);if(f.done)return f.value}var d=h(i);d||(i=p(i));var y=s.global;if(y){var w=s.unicode;s.lastIndex=0}for(var _=[];;){var S=m(s,u);if(null===S)break;if(T(_,S),!y)break;""===p(S[0])&&(s.lastIndex=v(u,l(s.lastIndex),w))}for(var B,O="",R=0,k=0;k<_.length;k++){for(var F=p((S=_[k])[0]),j=b(M(c(S.index),u.length),0),D=[],I=1;I<S.length;I++)T(D,void 0===(B=S[I])?B:String(B));var P=S.groups;if(d){var C=x([F],D,j,u);void 0!==P&&T(C,P);var L=p(n(i,void 0,C))}else L=g(F,u,j,D,P,i);j>=R&&(O+=E(u,R,j)+L,R=j+F.length)}return O+E(u,R)}]}),!!u((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!_||S)},function(t,r,e){var n=e(1),i=e(14),o=Math.floor,s=n("".charAt),u=n("".replace),a=n("".slice),h=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,f=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,r,e,n,c,l){var p=e+t.length,d=n.length,v=f;return void 0!==c&&(c=i(c),v=h),u(l,v,(function(i,u){var h;switch(s(u,0)){case"$":return"$";case"&":return t;case"`":return a(r,0,e);case"'":return a(r,p);case"<":h=c[a(u,1,-1)];break;default:var f=+u;if(0===f)return i;if(f>d){var l=o(f/10);return 0===l?i:l<=d?void 0===n[l-1]?s(u,1):n[l-1]+s(u,1):i}h=n[f-1]}return void 0===h?"":h}))}},function(t,r,e){"use strict";var n=r;n.Reporter=e(173).Reporter,n.DecoderBuffer=e(90).DecoderBuffer,n.EncoderBuffer=e(90).EncoderBuffer,n.Node=e(171)},function(t,r,e){"use strict";e(17),e(147),e(172);var n=r;n._reverse=function(t){var r={};return Object.keys(t).forEach((function(e){(0|e)==e&&(e|=0);var n=t[e];r[n]=e})),r},n.der=e(174)},,,,,,,,,,function(t,r,e){"use strict";var n=e(232),i=e(79);t.exports={SM2:n,utils:i}}])}));