PageSourceSearch

https://www.podbbang.com/_nuxt/fe9503b.js

js podbbang.com collected 2026-09-24 09:19:42 UTC 1,059,987 bytes, 2 lines download raw bytes

1/*! For license information please see LICENSES */
2(window.webpackJsonp=window.webpackJsonp||[]).push([[110],[,function(t,e,r){"use strict";r.d(e,"a",(function(){return T})),r.d(e,"i",(function(){return n.default})),r.d(e,"d",(function(){return y})),r.d(e,"b",(function(){return x})),r.d(e,"c",(function(){return I})),r.d(e,"e",(function(){return j})),r.d(e,"f",(function(){return F})),r.d(e,"g",(function(){return U})),r.d(e,"h",(function(){return K})),r.d(e,"j",(function(){return z}));var n=r(3);function o(t){return(o="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)}function h(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function f(t){return function(t){if(Array.isArray(t)){for(var i=0,e=new Array(t.length);i<t.length;i++)e[i]=t[i];return e}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function l(){return"undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function c(t,e){d(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(r){d(t.prototype,e.prototype,r)})),Object.getOwnPropertyNames(e).forEach((function(r){d(t,e,r)}))}function d(t,e,r){(r?Reflect.getOwnMetadataKeys(e,r):Reflect.getOwnMetadataKeys(e)).forEach((function(n){var o=r?Reflect.getOwnMetadata(n,e,r):Reflect.getOwnMetadata(n,e);r?Reflect.defineMetadata(n,o,t,r):Reflect.defineMetadata(n,o,t)}))}var m={__proto__:[]}instanceof Array;function v(t){return function(e,r,n){var o="function"==typeof e?e:e.constructor;o.__decorators__||(o.__decorators__=[]),"number"!=typeof n&&(n=void 0),o.__decorators__.push((function(e){return t(e,r,n)}))}}function y(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return n.default.extend({mixins:e})}function w(t,e){var r=e.prototype._init;e.prototype._init=function(){var e=this,r=Object.getOwnPropertyNames(t);if(t.$options.props)for(var n in t.$options.props)t.hasOwnProperty(n)||r.push(n);r.forEach((function(r){Object.defineProperty(e,r,{get:function(){return t[r]},set:function(e){t[r]=e},configurable:!0})}))};var data=new e;e.prototype._init=r;var n={};return Object.keys(data).forEach((function(t){void 0!==data[t]&&(n[t]=data[t])})),n}var M=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function _(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.name=e.name||t._componentTag||t.name;var r=t.prototype;Object.getOwnPropertyNames(r).forEach((function(t){if("constructor"!==t)if(M.indexOf(t)>-1)e[t]=r[t];else{var n=Object.getOwnPropertyDescriptor(r,t);void 0!==n.value?"function"==typeof n.value?(e.methods||(e.methods={}))[t]=n.value:(e.mixins||(e.mixins=[])).push({data:function(){return h({},t,n.value)}}):(n.get||n.set)&&((e.computed||(e.computed={}))[t]={get:n.get,set:n.set})}})),(e.mixins||(e.mixins=[])).push({data:function(){return w(this,t)}});var o=t.__decorators__;o&&(o.forEach((function(t){return t(e)})),delete t.__decorators__);var f=Object.getPrototypeOf(t.prototype),d=f instanceof n.default?f.constructor:n.default,m=d.extend(e);return E(m,t,d),l()&&c(m,t),m}var S={prototype:!0,arguments:!0,callee:!0,caller:!0};function E(t,e,r){Object.getOwnPropertyNames(e).forEach((function(n){if(!S[n]){var h=Object.getOwnPropertyDescriptor(t,n);if(!h||h.configurable){var f,l,c=Object.getOwnPropertyDescriptor(e,n);if(!m){if("cid"===n)return;var d=Object.getOwnPropertyDescriptor(r,n);if(f=c.value,l=o(f),null!=f&&("object"===l||"function"===l)&&d&&d.value===c.value)return}0,Object.defineProperty(t,n,c)}}}))}function k(t){return"function"==typeof t?_(t):function(e){return _(e,t)}}k.registerHooks=function(t){M.push.apply(M,f(t))};var T=k,A=function(){for(var s=0,i=0,t=arguments.length;i<t;i++)s+=arguments[i].length;var e=Array(s),r=0;for(i=0;i<t;i++)for(var a=arguments[i],n=0,o=a.length;n<o;n++,r++)e[r]=a[n];return e},R=/\B([A-Z])/g;function x(t){return function(e,r,n){var o=r.replace(R,"-$1").toLowerCase(),h=n.value;n.value=function(){for(var e=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var f=function(n){var h=t||o;void 0===n?0===r.length?e.$emit(h):1===r.length?e.$emit(h,r[0]):e.$emit.apply(e,A([h],r)):(r.unshift(n),e.$emit.apply(e,A([h],r)))},l=h.apply(this,r);return O(l)?l.then(f):f(l),l}}}function O(t){return t instanceof Promise||t&&"function"==typeof t.then}function I(t){return v((function(e,r){void 0===e.inject&&(e.inject={}),Array.isArray(e.inject)||(e.inject[r]=t||r)}))}function L(t){return"function"!=typeof t||!t.managed&&!t.managedReactive}function D(t){var e=function(){var r=this,n="function"==typeof t?t.call(this):t;for(var i in(n=Object.create(n||null))[C]=Object.create(this[C]||{}),e.managed)n[e.managed[i]]=this[i];var o=function(i){n[e.managedReactive[i]]=h[i],Object.defineProperty(n[C],e.managedReactive[i],{enumerable:!0,configurable:!0,get:function(){return r[i]}})},h=this;for(var i in e.managedReactive)o(i);return n};return e.managed={},e.managedReactive={},e}var C="__reactiveInject__";function P(t){Array.isArray(t.inject)||(t.inject=t.inject||{},t.inject[C]={from:C,default:{}})}var B="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function N(t,e,r){if(B&&!Array.isArray(t)&&"function"!=typeof t&&!t.hasOwnProperty("type")&&void 0===t.type){var n=Reflect.getMetadata("design:type",e,r);n!==Object&&(t.type=n)}}function j(t,e){return void 0===e&&(e={}),function(r,n){N(e,r,n),v((function(r,n){(r.props||(r.props={}))[n]=e,r.model={prop:n,event:t||n}}))(r,n)}}function F(t){return void 0===t&&(t={}),function(e,r){N(t,e,r),v((function(e,r){(e.props||(e.props={}))[r]=t}))(e,r)}}function U(t){return v((function(e,r){var n=e.provide;P(e),L(n)&&(n=e.provide=D(n)),n.managed[r]=t||r}))}function K(t){return v((function(e,r){e.computed=e.computed||{},e.computed[r]={cache:!1,get:function(){return this.$refs[t||r]}}}))}function z(path,t){void 0===t&&(t={});
2var e=t.deep,r=void 0!==e&&e,n=t.immediate,o=void 0!==n&&n;return v((function(t,e){"object"!=typeof t.watch&&(t.watch=Object.create(null));var n=t.watch;"object"!=typeof n[path]||Array.isArray(n[path])?void 0===n[path]&&(n[path]=[]):n[path]=[n[path]],n[path].push({handler:e,deep:r,immediate:o})}))}},,,,,,,,,,,,function(t,e,r){var n=r(33),o=n.Buffer;function h(t,e){for(var r in t)e[r]=t[r]}function f(t,e,r){return o(t,e,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=n:(h(n,e),e.Buffer=f),f.prototype=Object.create(o.prototype),h(o,f),f.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,r)},f.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=o(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},f.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},f.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},,function(t,e,r){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var content=function(t,e){var content=t[1]||"",r=t[3];if(!r)return content;if(e&&"function"==typeof btoa){var n=(h=r,f=btoa(unescape(encodeURIComponent(JSON.stringify(h)))),data="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(f),"/*# ".concat(data," */")),o=r.sources.map((function(source){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(source," */")}));return[content].concat(o).concat([n]).join("\n")}var h,f,data;return[content].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(content,"}"):content})).join("")},e.i=function(t,r,n){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var h=this[i][0];null!=h&&(o[h]=!0)}for(var f=0;f<t.length;f++){var l=[].concat(t[f]);n&&o[l[0]]||(r&&(l[2]?l[2]="".concat(r," and ").concat(l[2]):l[2]=r),e.push(l))}},e}},function(t,e,r){"use strict";function n(t,e){for(var r=[],n={},i=0;i<e.length;i++){var o=e[i],h=o[0],f={id:t+":"+i,css:o[1],media:o[2],sourceMap:o[3]};n[h]?n[h].parts.push(f):r.push(n[h]={id:h,parts:[f]})}return r}r.r(e),r.d(e,"default",(function(){return y}));var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var h={},head=o&&(document.head||document.getElementsByTagName("head")[0]),f=null,l=0,c=!1,d=function(){},m=null,v="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function y(t,e,r,o){c=r,m=o||{};var f=n(t,e);return w(f),function(e){for(var r=[],i=0;i<f.length;i++){var o=f[i];(l=h[o.id]).refs--,r.push(l)}e?w(f=n(t,e)):f=[];for(i=0;i<r.length;i++){var l;if(0===(l=r[i]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete h[l.id]}}}}function w(t){for(var i=0;i<t.length;i++){var e=t[i],r=h[e.id];if(r){r.refs++;for(var n=0;n<r.parts.length;n++)r.parts[n](e.parts[n]);for(;n<e.parts.length;n++)r.parts.push(_(e.parts[n]));r.parts.length>e.parts.length&&(r.parts.length=e.parts.length)}else{var o=[];for(n=0;n<e.parts.length;n++)o.push(_(e.parts[n]));h[e.id]={id:e.id,refs:1,parts:o}}}}function M(){var t=document.createElement("style");return t.type="text/css",head.appendChild(t),t}function _(t){var e,r,n=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(n){if(c)return d;n.parentNode.removeChild(n)}if(v){var o=l++;n=f||(f=M()),e=k.bind(null,n,o,!1),r=k.bind(null,n,o,!0)}else n=M(),e=T.bind(null,n),r=function(){n.parentNode.removeChild(n)};return e(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;e(t=n)}else r()}}
2var S,E=(S=[],function(t,e){return S[t]=e,S.filter(Boolean).join("\n")});function k(t,e,r,n){var o=r?"":n.css;if(t.styleSheet)t.styleSheet.cssText=E(e,o);else{var h=document.createTextNode(o),f=t.childNodes;f[e]&&t.removeChild(f[e]),f.length?t.insertBefore(h,f[e]):t.appendChild(h)}}function T(t,e){var r=e.css,n=e.media,o=e.sourceMap;if(n&&t.setAttribute("media",n),m.ssrId&&t.setAttribute("data-vue-ssr-id",e.id),o&&(r+="\n/*# sourceURL="+o.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}},,,,,,,,,,,,,function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return l})),r.d(e,"b",(function(){return v})),r.d(e,"c",(function(){return m})),r.d(e,"d",(function(){return M})),r.d(e,"e",(function(){return _})),r.d(e,"f",(function(){return h})),r.d(e,"g",(function(){return f})),r.d(e,"h",(function(){return d})),r.d(e,"i",(function(){return c}));var n=r(192),o=function(t){for(var e=[],p=0,i=0;i<t.length;i++){var r=t.charCodeAt(i);r<128?e[p++]=r:r<2048?(e[p++]=r>>6|192,e[p++]=63&r|128):55296==(64512&r)&&i+1<t.length&&56320==(64512&t.charCodeAt(i+1))?(r=65536+((1023&r)<<10)+(1023&t.charCodeAt(++i)),e[p++]=r>>18|240,e[p++]=r>>12&63|128,e[p++]=r>>6&63|128,e[p++]=63&r|128):(e[p++]=r>>12|224,e[p++]=r>>6&63|128,e[p++]=63&r|128)}return e};function h(t){return f(void 0,t)}function f(t,source){if(!(source instanceof Object))return source;switch(source.constructor){case Date:return new Date(source.getTime());case Object:void 0===t&&(t={});break;case Array:t=[];break;default:return source}for(var e in source)source.hasOwnProperty(e)&&"__proto__"!==e&&(t[e]=f(t[e],source[e]));return t}var l=function(){function t(){var t=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise((function(e,r){t.resolve=e,t.reject=r}))}return t.prototype.wrapCallback=function(t){var e=this;return function(r,n){r?e.reject(r):e.resolve(n),"function"==typeof t&&(e.promise.catch((function(){})),1===t.length?t(r):t(r,n))}},t}();function c(){try{return"[object process]"===Object.prototype.toString.call(t.process)}catch(t){return!1}}function d(){return"object"==typeof self&&self.self===self}var m=function(t){function e(code,r,n){var o=t.call(this,r)||this;return o.code=code,o.customData=n,o.name="FirebaseError",Object.setPrototypeOf(o,e.prototype),Error.captureStackTrace&&Error.captureStackTrace(o,v.prototype.create),o}return Object(n.b)(e,t),e}(Error),v=function(){function t(t,e,r){this.service=t,this.serviceName=e,this.errors=r}return t.prototype.create=function(code){for(var data=[],t=1;t<arguments.length;t++)data[t-1]=arguments[t];var e=data[0]||{},r=this.service+"/"+code,template=this.errors[code],n=template?y(template,e):"Error",o=this.serviceName+": "+n+" ("+r+").",h=new m(r,o,e);return h},t}();function y(template,data){return template.replace(w,(function(t,e){var r=data[e];return null!=r?String(r):"<"+e+"?>"}))}var w=/\{\$([^}]+)}/g;function M(t,e){return Object.prototype.hasOwnProperty.call(t,e)}!function(){function t(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var i=1;i<this.blockSize;++i)this.pad_[i]=0;this.reset()}t.prototype.reset=function(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0},t.prototype.compress_=function(t,e){e||(e=0);var r=this.W_;if("string"==typeof t)for(var i=0;i<16;i++)r[i]=t.charCodeAt(e)<<24|t.charCodeAt(e+1)<<16|t.charCodeAt(e+2)<<8|t.charCodeAt(e+3),e+=4;else for(i=0;i<16;i++)r[i]=t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3],e+=4;for(i=16;i<80;i++){var n=r[i-3]^r[i-8]^r[i-14]^r[i-16];r[i]=4294967295&(n<<1|n>>>31)}var o,h,a=this.chain_[0],b=this.chain_[1],f=this.chain_[2],l=this.chain_[3],c=this.chain_[4];for(i=0;i<80;i++){i<40?i<20?(o=l^b&(f^l),h=1518500249):(o=b^f^l,h=1859775393):i<60?(o=b&f|l&(b|f),h=2400959708):(o=b^f^l,h=3395469782);
2n=(a<<5|a>>>27)+o+c+h+r[i]&4294967295;c=l,l=f,f=4294967295&(b<<30|b>>>2),b=a,a=n}this.chain_[0]=this.chain_[0]+a&4294967295,this.chain_[1]=this.chain_[1]+b&4294967295,this.chain_[2]=this.chain_[2]+f&4294967295,this.chain_[3]=this.chain_[3]+l&4294967295,this.chain_[4]=this.chain_[4]+c&4294967295},t.prototype.update=function(t,e){if(null!=t){void 0===e&&(e=t.length);for(var r=e-this.blockSize,n=0,o=this.buf_,h=this.inbuf_;n<e;){if(0===h)for(;n<=r;)this.compress_(t,n),n+=this.blockSize;if("string"==typeof t){for(;n<e;)if(o[h]=t.charCodeAt(n),++n,++h===this.blockSize){this.compress_(o),h=0;break}}else for(;n<e;)if(o[h]=t[n],++n,++h===this.blockSize){this.compress_(o),h=0;break}}this.inbuf_=h,this.total_+=e}},t.prototype.digest=function(){var t=[],e=8*this.total_;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var i=this.blockSize-1;i>=56;i--)this.buf_[i]=255&e,e/=256;this.compress_(this.buf_);var r=0;for(i=0;i<5;i++)for(var n=24;n>=0;n-=8)t[r]=this.chain_[i]>>n&255,++r;return t}}();function _(t,e){var r=new S(t,e);return r.subscribe.bind(r)}var S=function(){function t(t,e){var r=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=e,this.task.then((function(){t(r)})).catch((function(t){r.error(t)}))}return t.prototype.next=function(t){this.forEachObserver((function(e){e.next(t)}))},t.prototype.error=function(t){this.forEachObserver((function(e){e.error(t)})),this.close(t)},t.prototype.complete=function(){this.forEachObserver((function(t){t.complete()})),this.close()},t.prototype.subscribe=function(t,e,r){var n,o=this;if(void 0===t&&void 0===e&&void 0===r)throw new Error("Missing Observer.");void 0===(n=function(t,e){if("object"!=typeof t||null===t)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if(o in t&&"function"==typeof t[o])return!0}return!1}(t,["next","error","complete"])?t:{next:t,error:e,complete:r}).next&&(n.next=E),void 0===n.error&&(n.error=E),void 0===n.complete&&(n.complete=E);var h=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((function(){try{o.finalError?n.error(o.finalError):n.complete()}catch(t){}})),this.observers.push(n),h},t.prototype.unsubscribeOne=function(i){void 0!==this.observers&&void 0!==this.observers[i]&&(delete this.observers[i],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},t.prototype.forEachObserver=function(t){if(!this.finalized)for(var i=0;i<this.observers.length;i++)this.sendOne(i,t)},t.prototype.sendOne=function(i,t){var e=this;this.task.then((function(){if(void 0!==e.observers&&void 0!==e.observers[i])try{t(e.observers[i])}catch(t){"undefined"!=typeof console&&console.error&&console.error(t)}}))},t.prototype.close=function(t){var e=this;this.finalized||(this.finalized=!0,void 0!==t&&(this.finalError=t),this.task.then((function(){e.observers=void 0,e.onNoObservers=void 0})))},t}();function E(){}}).call(this,r(35))},,,function(t,e,r){"use strict";(function(t){var n=r(505),o=r(506),h=r(274);function f(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(t,e){if(f()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=c.prototype:(null===t&&(t=new c(e)),t.length=e),t}function c(t,e,r){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return v(this,t)}return d(this,t,e,r)}function d(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);c.TYPED_ARRAY_SUPPORT?(t=e).__proto__=c.prototype:t=y(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!c.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|M(e,r),o=(t=l(t,n)).write(e,r);
vendor: 11,166 bytes, line 2
2o!==n&&(t=t.slice(0,o));return t}(t,e,r):function(t,e){if(c.isBuffer(e)){var r=0|w(e.length);return 0===(t=l(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?l(t,0):y(t,e);if("Buffer"===e.type&&h(e.data))return y(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function m(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 v(t,e){if(m(e),t=l(t,e<0?0:0|w(e)),!c.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)t[i]=0;return t}function y(t,e){var r=e.length<0?0:0|w(e.length);t=l(t,r);for(var i=0;i<r;i+=1)t[i]=255&e[i];return t}function w(t){if(t>=f())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f().toString(16)+" bytes");return 0|t}function M(t,e){if(c.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 r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Y(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Z(t).length;default:if(n)return Y(t).length;e=(""+e).toLowerCase(),n=!0}}function _(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return B(this,e,r);case"utf8":case"utf-8":return D(this,e,r);case"ascii":return C(this,e,r);case"latin1":case"binary":return P(this,e,r);case"base64":return L(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function S(b,t,e){var i=b[t];b[t]=b[e],b[e]=i}function E(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=c.from(e,n)),c.isBuffer(e))return 0===e.length?-1:k(t,e,r,n,o);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):k(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function k(t,e,r,n,o){var i,h=1,f=t.length,l=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;h=2,f/=2,l/=2,r/=2}function c(t,i){return 1===h?t[i]:t.readUInt16BE(i*h)}if(o){var d=-1;for(i=r;i<f;i++)if(c(t,i)===c(e,-1===d?0:i-d)){if(-1===d&&(d=i),i-d+1===l)return d*h}else-1!==d&&(i-=i-d),d=-1}else for(r+l>f&&(r=f-l),i=r;i>=0;i--){for(var m=!0,v=0;v<l;v++)if(c(t,i+v)!==c(e,v)){m=!1;break}if(m)return i}return-1}function T(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;var h=e.length;if(h%2!=0)throw new TypeError("Invalid hex string");n>h/2&&(n=h/2);for(var i=0;i<n;++i){var f=parseInt(e.substr(2*i,2),16);if(isNaN(f))return i;t[r+i]=f}return i}function A(t,e,r,n){return X(Y(e,t.length-r),t,r,n)}function R(t,e,r,n){return X(function(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}(e),t,r,n)}function x(t,e,r,n){return R(t,e,r,n)}function O(t,e,r,n){return X(Z(e),t,r,n)}function I(t,e,r,n){return X(function(t,e){for(var r,n,o,h=[],i=0;i<t.length&&!((e-=2)<0);++i)r=t.charCodeAt(i),n=r>>8,o=r%256,h.push(o),h.push(n);return h}(e,t.length-r),t,r,n)}function L(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function D(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,h,f,l,c=t[i],d=null,m=c>239?4:c>223?3:c>191?2:1;if(i+m<=r)switch(m){case 1:c<128&&(d=c);break;case 2:128==(192&(o=t[i+1]))&&(l=(31&c)<<6|63&o)>127&&(d=l);break;case 3:o=t[i+1],h=t[i+2],128==(192&o)&&128==(192&h)&&(l=(15&c)<<12|(63&o)<<6|63&h)>2047&&(l<55296||l>57343)&&(d=l);break;case 4:o=t[i+1],h=t[i+2],f=t[i+3],128==(192&o)&&128==(192&h)&&128==(192&f)&&(l=(15&c)<<18|(63&o)<<12|(63&h)<<6|63&f)>65535&&l<1114112&&(d=l)}null===d?(d=65533,m=1):d>65535&&(d-=65536,n.push(d>>>10&1023|55296),d=56320|1023&d),n.push(d),i+=m}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var r="",i=0;for(;i<e;)r+=String.fromCharCode.apply(String,t.slice(i,i+=4096));return r}(n)}e.Buffer=c,e.SlowBuffer=function(t){+t!=t&&(t=0);return c.alloc(+t)},e.INSPECT_MAX_BYTES=50,c.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}}(),e.kMaxLength=f(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,r){return d(null,t,e,r)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,r){return function(t,e,r,n){return m(e),e<=0?l(t,e):void 0!==r?"string"==typeof n?l(t,e).fill(r,n):l(t,e).fill(r):l(t,e)}(null,t,e,r)},c.allocUnsafe=function(t){return v(null,t)},c.allocUnsafeSlow=function(t){return v(null,t)},c.isBuffer=function(b){return!(null==b||!b._isBuffer)},c.compare=function(a,b){if(!c.isBuffer(a)||!c.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var t=a.length,e=b.length,i=0,r=Math.min(t,e);i<r;++i)if(a[i]!==b[i]){t=a[i],e=b[i];break}return t<e?-1:e<t?1:0},c.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}},c.concat=function(t,e){if(!h(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var i;if(void 0===e)for(e=0,i=0;i<t.length;++i)e+=t[i].length;var r=c.allocUnsafe(e),n=0;for(i=0;i<t.length;++i){var o=t[i];if(!c.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,n),n+=o.length}return r},c.byteLength=M,c.prototype._isBuffer=!0,c.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 i=0;i<t;i+=2)S(this,i,i+1);return this},c.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 i=0;i<t;i+=4)S(this,i,i+3),S(this,i+1,i+2);return this},c.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 i=0;i<t;i+=8)S(this,i,i+7),S(this,i+1,i+6),S(this,i+2,i+5),S(this,i+3,i+4);return this},c.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?D(this,0,t):_.apply(this,arguments)},c.prototype.equals=function(b){if(!c.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b||0===c.compare(this,b)},c.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},c.prototype.compare=function(t,e,r,n,o){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;for(var h=(o>>>=0)-(n>>>=0),f=(r>>>=0)-(e>>>=0),l=Math.min(h,f),d=this.slice(n,o),m=t.slice(e,r),i=0;i<l;++i)if(d[i]!==m[i]){h=d[i],f=m[i];break}return h<f?-1:f<h?1:0},c.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},c.prototype.indexOf=function(t,e,r){return E(this,t,e,r,!0)},c.prototype.lastIndexOf=function(t,e,r){return E(this,t,e,r,!1)},c.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var h=!1;;)switch(n){case"hex":return T(this,t,e,r);case"utf8":case"utf-8":return A(this,t,e,r);case"ascii":return R(this,t,e,r);case"latin1":case"binary":return x(this,t,e,r);case"base64":return O(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,e,r);default:if(h)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function C(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function P(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function B(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=W(t[i]);return o}function N(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function j(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function F(t,e,r,n,o,h){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<h)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function U(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function K(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function z(t,e,r,n,o,h){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function H(t,e,r,n,h){return h||z(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function G(t,e,r,n,h){return h||z(t,0,r,8),o.write(t,e,r,n,52,8),r+8}c.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),c.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=c.prototype;else{var o=e-t;r=new c(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+t]}return r},c.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||j(t,e,this.length);for(var n=this[t],o=1,i=0;
vendor: 4,089 bytes, line 2
2++i<e&&(o*=256);)n+=this[t+i]*o;return n},c.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||j(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},c.prototype.readUInt8=function(t,e){return e||j(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||j(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||j(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||j(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||j(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||j(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*e)),n},c.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||j(t,e,this.length);for(var i=e,n=1,o=this[t+--i];i>0&&(n*=256);)o+=this[t+--i]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return e||j(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||j(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(t,e){e||j(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(t,e){return e||j(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||j(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||j(t,4,this.length),o.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||j(t,4,this.length),o.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||j(t,8,this.length),o.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||j(t,8,this.length),o.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||F(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},c.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||F(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},c.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):U(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):U(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):K(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):K(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);F(this,t,e,r,o-1,-o)}var i=0,h=1,sub=0;for(this[e]=255&t;++i<r&&(h*=256);)t<0&&0===sub&&0!==this[e+i-1]&&(sub=1),this[e+i]=(t/h>>0)-sub&255;return e+r},c.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);F(this,t,e,r,o-1,-o)}var i=r-1,h=1,sub=0;for(this[e+i]=255&t;--i>=0&&(h*=256);)t<0&&0===sub&&0!==this[e+i+1]&&(sub=1),this[e+i]=(t/h>>0)-sub&255;return e+r},c.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):U(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>
vendor: 11,707 bytes, line 2
28,this[e+1]=255&t):U(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):K(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):K(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,r){return H(this,t,e,!0,r)},c.prototype.writeFloatBE=function(t,e,r){return H(this,t,e,!1,r)},c.prototype.writeDoubleLE=function(t,e,r){return G(this,t,e,!0,r)},c.prototype.writeDoubleBE=function(t,e,r){return G(this,t,e,!1,r)},c.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=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-e<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},c.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var code=t.charCodeAt(0);code<256&&(t=code)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var o=c.isBuffer(t)?t:Y(new c(t,n).toString()),h=o.length;for(i=0;i<r-e;++i)this[i+e]=o[i%h]}return this};var V=/[^+\/0-9A-Za-z-_]/g;function W(t){return t<16?"0"+t.toString(16):t.toString(16)}function Y(t,e){var r;e=e||1/0;for(var n=t.length,o=null,h=[],i=0;i<n;++i){if((r=t.charCodeAt(i))>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&h.push(239,191,189);continue}if(i+1===n){(e-=3)>-1&&h.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&h.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&h.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;h.push(r)}else if(r<2048){if((e-=2)<0)break;h.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;h.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;h.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return h}function Z(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(V,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function X(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}}).call(this,r(35))},,,,,,,,,,,function(t,e){function r(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=r,r.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)}},function(t,e,r){"use strict";var n=e,o=r(54),h=r(44),f=r(310);n.assert=h,n.toArray=f.toArray,n.zero2=f.zero2,n.toHex=f.toHex,n.encode=f.encode,n.getNAF=function(t,e,r){var n=new Array(Math.max(t.bitLength(),r)+1);n.fill(0);for(var o=1<<e+1,h=t.clone(),i=0;i<n.length;i++){var f,l=h.andln(o-1);h.isOdd()?(f=l>(o>>1)-1?(o>>1)-l:l,h.isubn(f)):f=0,n[i]=f,h.iushrn(1)}return n},n.getJSF=function(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var n=0,o=0;t.cmpn(-n)>0||e.cmpn(-o)>0;){var h,f,l,c=t.andln(3)+n&3,d=e.andln(3)+o&3;if(3===c&&(c=-1),3===d&&(d=-1),0==(1&c))h=0;else h=3!==(l=t.andln(7)+n&7)&&5!==l||2!==d?c:-c;if(r[0].push(h),0==(1&d))f=0;else f=3!==(l=e.andln(7)+o&7)&&5!==l||2!==c?d:-d;r[1].push(f),2*n===h+1&&(n=1-n),2*o===f+1&&(o=1-o),t.iushrn(1),e.iushrn(1)}return r},n.cachedProperty=function(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(t){return"string"==typeof t?n.toArray(t,"hex"):t},n.intFromLE=function(t){return new o(t,"hex","le")}},,,,,function(t,e,r){"use strict";var n=r(44),o=r(14);function h(t,i){return 55296==(64512&t.charCodeAt(i))&&(!(i<0||i+1>=t.length)&&56320==(64512&t.charCodeAt(i+1)))}function f(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function l(t){return 1===t.length?"0"+t:t}function c(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=o,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i<t.length;i+=2)r.push(parseInt(t[i]+t[i+1],16))}else for(var p=0,i=0;i<t.length;i++){var n=t.charCodeAt(i);n<128?r[p++]=n:n<2048?(r[p++]=n>>6|192,r[p++]=63&n|128):h(t,i)?(n=65536+((1023&n)<<10)+(1023&t.charCodeAt(++i)),r[p++]=n>>18|240,r[p++]=n>>12&63|128,r[p++]=n>>6&63|128,r[p++]=63&n|128):(r[p++]=n>>12|224,r[p++]=n>>6&63|128,r[p++]=63&n|128)}else for(i=0;i<t.length;i++)r[i]=0|t[i];return r},e.toHex=function(t){for(var e="",i=0;i<t.length;i++)e+=l(t[i].toString(16));return e},e.htonl=f,e.toHex32=function(t,e){for(var r="",i=0;i<t.length;i++){var n=t[i];"little"===e&&(n=f(n)),r+=c(n.toString(16))}return r},e.zero2=l,e.zero8=c,e.join32=function(t,e,r,o){var h=r-e;n(h%4==0);for(var f=new Array(h/4),i=0,l=e;i<f.length;i++,l+=4){var c;c="big"===o?t[l]<<24|t[l+1]<<16|t[l+2]<<8|t[l+3]:t[l+3]<<24|t[l+2]<<16|t[l+1]<<8|t[l],f[i]=c>>>0}return f},e.split32=function(t,e){for(var r=new Array(4*t.length),i=0,n=0;i<t.length;i++,n+=4){var o=t[i];"big"===e?(r[n]=o>>>24,r[n+1]=o>>>16&255,r[n+2]=o>>>8&255,r[n+3]=255&o):(r[n+3]=o>>>24,r[n+2]=o>>>16&255,r[n+1]=o>>>8&255,r[n]=255&o)}return r},e.rotr32=function(t,b){return t>>>b|t<<32-b},e.rotl32=function(t,b){return t<<b|t>>>32-b},e.sum32=function(a,b){return a+b>>>0},e.sum32_3=function(a,b,t){return a+b+t>>>0},e.sum32_4=function(a,b,t,e){return a+b+t+e>>>0},e.sum32_5=function(a,b,t,e,r){return a+b+t+e+r>>>0},e.sum64=function(t,e,r,n){var o=t[e],h=n+t[e+1]>>>0,f=(h<n?1:0)+r+o;t[e]=f>>>0,t[e+1]=h},e.sum64_hi=function(t,e,r,n){return(e+n>>>0<e?1:0)+t+r>>>0},e.sum64_lo=function(t,e,r,n){return e+n>>>0},e.sum64_4_hi=function(t,e,r,n,o,h,f,dl){var l=0,c=e;return l+=(c=c+n>>>0)<e?1:0,l+=(c=c+h>>>0)<h?1:0,t+r+o+f+(l+=(c=c+dl>>>0)<dl?1:0)>>>0},e.sum64_4_lo=function(t,e,r,n,o,h,f,dl){return e+n+h+dl>>>0},e.sum64_5_hi=function(t,e,r,n,o,h,f,dl,l,c){var d=0,m=e;return d+=(m=m+n>>>0)<e?1:0,d+=(m=m+h>>>0)<h?1:0,d+=(m=m+dl>>>0)<dl?1:0,t+r+o+f+l+(d+=(m=m+c>>>0)<c?1:0)>>>0},e.sum64_5_lo=function(t,e,r,n,o,h,f,dl,l,c){return e+n+h+dl+c>>>0},e.rotr64_hi=function(t,e,r){return(e<<32-r|t>>>r)>>>0},e.rotr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0},e.shr64_hi=function(t,e,r){return t>>>r},e.shr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0}},,,,function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function h(t,base,e){if(h.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==base&&"be"!==base||(e=base,base=10),this._init(t||0,base||10,e||"be"))}var f;"object"==typeof t?t.exports=h:e.BN=h,h.BN=h,h.wordSize=26;try{f=r(559).Buffer}catch(t){}function l(t,e,r){for(var n=0,o=Math.min(t.length,r),i=e;i<o;i++){var h=t.charCodeAt(i)-48;n<<=4,n|=h>=49&&h<=54?h-49+10:h>=17&&h<=22?h-17+10:15&h}return n}function c(t,e,r,n){for(var o=0,h=Math.min(t.length,r),i=e;i<h;i++){var f=t.charCodeAt(i)-48;o*=n,o+=f>=49?f-49+10:f>=17?f-17+10:f}return o}h.isBN=function(t){return t instanceof h||null!==t&&"object"==typeof t&&t.constructor.wordSize===h.wordSize&&Array.isArray(t.words)},h.max=function(t,e){return t.cmp(e)>0?t:e},h.min=function(t,e){return t.cmp(e)<0?t:e},h.prototype._init=function(t,base,e){if("number"==typeof t)return this._initNumber(t,base,e);if("object"==typeof t)return this._initArray(t,base,e);"hex"===base&&(base=16),n(base===(0|base)&&base>=2&&base<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&r++,16===base?this._parseHex(t,r):this._parseBase(t,base,r),"-"===t[0]&&(this.negative=1),this.strip(),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initNumber=function(t,base,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(),base,e)},h.prototype._initArray=function(t,base,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 r,o,h=0;if("be"===e)for(i=t.length-1,r=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[r]|=o<<h&67108863,this.words[r+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,r++);else if("le"===e)for(i=0,r=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[r]|=o<<h&67108863,this.words[r+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,r++);return this.strip()},h.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n,o=0;for(i=t.length-6,r=0;i>=e;i-=6)n=l(t,i,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==e&&(n=l(t,e,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303),this.strip()},h.prototype._parseBase=function(t,base,e){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=base)r++;r--,n=n/base|0;for(var o=t.length-e,h=o%r,f=Math.min(o,o-h)+e,l=0,i=e;i<f;i+=r)l=c(t,i,i+r,base),this.imuln(n),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==h){var d=1;for(l=c(t,i,t.length,base),i=0;i<h;i++)d*=base;this.imuln(d),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},h.prototype.copy=function(t){t.words=new Array(this.length);for(var i=0;i<this.length;i++)t.words[i]=this.words[i];t.length=this.length,t.negative=this.negative,t.red=this.red},h.prototype.clone=function(){var t=new h(null);return this.copy(t),t},h.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},h.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var d=["","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"],m=[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],v=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 39,987 bytes, line 2
2777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function y(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var a=0|t.words[0],b=0|e.words[0],o=a*b,h=67108863&o,f=o/67108864|0;r.words[0]=h;for(var l=1;l<n;l++){for(var c=f>>>26,d=67108863&f,m=Math.min(l,e.length-1),v=Math.max(0,l-t.length+1);v<=m;v++){var i=l-v|0;c+=(o=(a=0|t.words[i])*(b=0|e.words[v])+d)/67108864|0,d=67108863&o}r.words[l]=0|d,f=0|c}return 0!==f?r.words[l]=0|f:r.length--,r.strip()}h.prototype.toString=function(base,t){var e;if(t=0|t||1,16===(base=base||10)||"hex"===base){e="";for(var r=0,o=0,i=0;i<this.length;i++){var h=this.words[i],f=(16777215&(h<<r|o)).toString(16);e=0!==(o=h>>>24-r&16777215)||i!==this.length-1?d[6-f.length]+f+e:f+e,(r+=2)>=26&&(r-=26,i--)}for(0!==o&&(e=o.toString(16)+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(base===(0|base)&&base>=2&&base<=36){var l=m[base],c=v[base];e="";var y=this.clone();for(y.negative=0;!y.isZero();){var w=y.modn(c).toString(base);e=(y=y.idivn(c)).isZero()?w+e:d[l-w.length]+w+e}for(this.isZero()&&(e="0"+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}n(!1,"Base should be between 2 and 36")},h.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},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(t,e){return n(void 0!==f),this.toArrayLike(f,t,e)},h.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},h.prototype.toArrayLike=function(t,e,r){var o=this.byteLength(),h=r||Math.max(1,o);n(o<=h,"byte array longer than desired length"),n(h>0,"Requested array length <= 0"),this.strip();var b,i,f="le"===e,l=new t(h),q=this.clone();if(f){for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),l[i]=b;for(;i<h;i++)l[i]=0}else{for(i=0;i<h-o;i++)l[i]=0;for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),l[h-i-1]=b}return l},Math.clz32?h.prototype._countBits=function(t){return 32-Math.clz32(t)}:h.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},h.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},h.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;i<this.length;i++){var b=this._zeroBits(this.words[i]);if(t+=b,26!==b)break}return t},h.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},h.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},h.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},h.prototype.isNeg=function(){return 0!==this.negative},h.prototype.neg=function(){return this.clone().ineg()},h.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},h.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]|t.words[i];return this.strip()},h.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},h.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},h.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},h.prototype.iuand=function(t){var b;b=this.length>t.length?t:this;for(var i=0;i<b.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=b.length,this.strip()},h.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},h.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},h.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},h.prototype.iuxor=function(t){var a,b;this.length>t.length?(a=this,b=t):(a=t,b=this);for(var i=0;i<b.length;i++)this.words[i]=a.words[i]^b.words[i];if(this!==a)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=a.length,this.strip()},h.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},h.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},h.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},h.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},h.prototype.notn=function(t){return this.clone().inotn(t)},h.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,o=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<o:this.words[r]&~(1<<o),this.strip()},h.prototype.iadd=function(t){var e,a,b;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(a=this,b=t):(a=t,b=this);for(var r=0,i=0;i<b.length;i++)e=(0|a.words[i])+(0|b.words[i])+r,this.words[i]=67108863&e,r=e>>>26;for(;0!==r&&i<a.length;i++)e=(0|a.words[i])+r,this.words[i]=67108863&e,r=e>>>26;if(this.length=a.length,0!==r)this.words[this.length]=r,this.length++;else if(a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this},h.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},h.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var a,b,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(a=this,b=t):(a=t,b=this);for(var n=0,i=0;i<b.length;i++)n=(e=(0|a.words[i])-(0|b.words[i])+n)>>26,this.words[i]=67108863&e;for(;0!==n&&i<a.length;i++)n=(e=(0|a.words[i])+n)>>26,this.words[i]=67108863&e;if(0===n&&i<a.length&&a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=Math.max(this.length,i),a!==this&&(this.negative=1),this.strip()},h.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,r){var n,o,h,a=t.words,b=e.words,f=r.words,l=0,c=0|a[0],d=8191&c,m=c>>>13,v=0|a[1],y=8191&v,w=v>>>13,M=0|a[2],_=8191&M,S=M>>>13,E=0|a[3],k=8191&E,T=E>>>13,A=0|a[4],R=8191&A,x=A>>>13,O=0|a[5],I=8191&O,L=O>>>13,D=0|a[6],C=8191&D,P=D>>>13,B=0|a[7],N=8191&B,j=B>>>13,F=0|a[8],U=8191&F,K=F>>>13,z=0|a[9],H=8191&z,G=z>>>13,V=0|b[0],W=8191&V,Y=V>>>13,Z=0|b[1],X=8191&Z,$=Z>>>13,J=0|b[2],Q=8191&J,tt=J>>>13,et=0|b[3],it=8191&et,nt=et>>>13,ot=0|b[4],at=8191&ot,st=ot>>>13,ut=0|b[5],ht=8191&ut,ft=ut>>>13,lt=0|b[6],ct=8191&lt,pt=lt>>>13,mt=0|b[7],gt=8191&mt,vt=mt>>>13,yt=0|b[8],bt=8191&yt,wt=yt>>>13,Mt=0|b[9],_t=8191&Mt,St=Mt>>>13;r.negative=t.negative^e.negative,r.length=19;var Et=(l+(n=Math.imul(d,W))|0)+((8191&(o=(o=Math.imul(d,Y))+Math.imul(m,W)|0))<<13)|0;l=((h=Math.imul(m,Y))+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(y,W),o=(o=Math.imul(y,Y))+Math.imul(w,W)|0,h=Math.imul(w,Y);var kt=(l+(n=n+Math.imul(d,X)|0)|0)+((8191&(o=(o=o+Math.imul(d,$)|0)+Math.imul(m,X)|0))<<13)|0;l=((h=h+Math.imul(m,$)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(_,W),o=(o=Math.imul(_,Y))+Math.imul(S,W)|0,h=Math.imul(S,Y),n=n+Math.imul(y,X)|0,o=(o=o+Math.imul(y,$)|0)+Math.imul(w,X)|0,h=h+Math.imul(w,$)|0;var Tt=(l+(n=n+Math.imul(d,Q)|0)|0)+((8191&(o=(o=o+Math.imul(d,tt)|0)+Math.imul(m,Q)|0))<<13)|0;l=((h=h+Math.imul(m,tt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(k,W),o=(o=Math.imul(k,Y))+Math.imul(T,W)|0,h=Math.imul(T,Y),n=n+Math.imul(_,X)|0,o=(o=o+Math.imul(_,$)|0)+Math.imul(S,X)|0,h=h+Math.imul(S,$)|0,n=n+Math.imul(y,Q)|0,o=(o=o+Math.imul(y,tt)|0)+Math.imul(w,Q)|0,h=h+Math.imul(w,tt)|0;var At=(l+(n=n+Math.imul(d,it)|0)|0)+((8191&(o=(o=o+Math.imul(d,nt)|0)+Math.imul(m,it)|0))<<13)|0;l=((h=h+Math.imul(m,nt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(R,W),o=(o=Math.imul(R,Y))+Math.imul(x,W)|0,h=Math.imul(x,Y),n=n+Math.imul(k,X)|0,o=(o=o+Math.imul(k,$)|0)+Math.imul(T,X)|0,h=h+Math.imul(T,$)|0,n=n+Math.imul(_,Q)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(S,Q)|0,h=h+Math.imul(S,tt)|0,n=n+Math.imul(y,it)|0,o=(o=o+Math.imul(y,nt)|0)+Math.imul(w,it)|0,h=h+Math.imul(w,nt)|0;var Rt=(l+(n=n+Math.imul(d,at)|0)|0)+((8191&(o=(o=o+Math.imul(d,st)|0)+Math.imul(m,at)|0))<<13)|0;l=((h=h+Math.imul(m,st)|0)+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(I,W),o=(o=Math.imul(I,Y))+Math.imul(L,W)|0,h=Math.imul(L,Y),n=n+Math.imul(R,X)|0,o=(o=o+Math.imul(R,$)|0)+Math.imul(x,X)|0,h=h+Math.imul(x,$)|0,n=n+Math.imul(k,Q)|0,o=(o=o+Math.imul(k,tt)|0)+Math.imul(T,Q)|0,h=h+Math.imul(T,tt)|0,n=n+Math.imul(_,it)|0,o=(o=o+Math.imul(_,nt)|0)+Math.imul(S,it)|0,h=h+Math.imul(S,nt)|0,n=n+Math.imul(y,at)|0,o=(o=o+Math.imul(y,st)|0)+Math.imul(w,at)|0,h=h+Math.imul(w,st)|0;var xt=(l+(n=n+Math.imul(d,ht)|0)|0)+((8191&(o=(o=o+Math.imul(d,ft)|0)+Math.imul(m,ht)|0))<<13)|0;l=((h=h+Math.imul(m,ft)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(C,W),o=(o=Math.imul(C,Y))+Math.imul(P,W)|0,h=Math.imul(P,Y),n=n+Math.imul(I,X)|0,o=(o=o+Math.imul(I,$)|0)+Math.imul(L,X)|0,h=h+Math.imul(L,$)|0,n=n+Math.imul(R,Q)|0,o=(o=o+Math.imul(R,tt)|0)+Math.imul(x,Q)|0,h=h+Math.imul(x,tt)|0,n=n+Math.imul(k,it)|0,o=(o=o+Math.imul(k,nt)|0)+Math.imul(T,it)|0,h=h+Math.imul(T,nt)|0,n=n+Math.imul(_,at)|0,o=(o=o+Math.imul(_,st)|0)+Math.imul(S,at)|0,h=h+Math.imul(S,st)|0,n=n+Math.imul(y,ht)|0,o=(o=o+Math.imul(y,ft)|0)+Math.imul(w,ht)|0,h=h+Math.imul(w,ft)|0;var Ot=(l+(n=n+Math.imul(d,ct)|0)|0)+((8191&(o=(o=o+Math.imul(d,pt)|0)+Math.imul(m,ct)|0))<<13)|0;l=((h=h+Math.imul(m,pt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(N,W),o=(o=Math.imul(N,Y))+Math.imul(j,W)|0,h=Math.imul(j,Y),n=n+Math.imul(C,X)|0,o=(o=o+Math.imul(C,$)|0)+Math.imul(P,X)|0,h=h+Math.imul(P,$)|0,n=n+Math.imul(I,Q)|0,o=(o=o+Math.imul(I,tt)|0)+Math.imul(L,Q)|0,h=h+Math.imul(L,tt)|0,n=n+Math.imul(R,it)|0,o=(o=o+Math.imul(R,nt)|0)+Math.imul(x,it)|0,h=h+Math.imul(x,nt)|0,n=n+Math.imul(k,at)|0,o=(o=o+Math.imul(k,st)|0)+Math.imul(T,at)|0,h=h+Math.imul(T,st)|0,n=n+Math.imul(_,ht)|0,o=(o=o+Math.imul(_,ft)|0)+Math.imul(S,ht)|0,h=h+Math.imul(S,ft)|0,n=n+Math.imul(y,ct)|0,o=(o=o+Math.imul(y,pt)|0)+Math.imul(w,ct)|0,h=h+Math.imul(w,pt)|0;var It=(l+(n=n+Math.imul(d,gt)|0)|0)+((8191&(o=(o=o+Math.imul(d,vt)|0)+Math.imul(m,gt)|0))<<13)|0;l=((h=h+Math.imul(m,vt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,W),o=(o=Math.imul(U,Y))+Math.imul(K,W)|0,h=Math.imul(K,Y),n=n+Math.imul(N,X)|0,o=(o=o+Math.imul(N,$)|0)+Math.imul(j,X)|0,h=h+Math.imul(j,$)|0,n=n+Math.imul(C,Q)|0,o=(o=o+Math.imul(C,tt)|0)+Math.imul(P,Q)|0,h=h+Math.imul(P,tt)|0,n=n+Math.imul(I,it)|0,o=(o=o+Math.imul(I,nt)|0)+Math.imul(L,it)|0,h=h+Math.imul(L,nt)|0,n=n+Math.imul(R,at)|0,o=(o=o+Math.imul(R,st)|0)+Math.imul(x,at)|0,h=h+Math.imul(x,st)|0,n=n+Math.imul(k,ht)|0,o=(o=o+Math.imul(k,ft)|0)+Math.imul(T,ht)|0,h=h+Math.imul(T,ft)|0,n=n+Math.imul(_,ct)|0,o=(o=o+Math.imul(_,pt)|0)+Math.imul(S,ct)|0,h=h+Math.imul(S,pt)|0,n=n+Math.imul(y,gt)|0,o=(o=o+Math.imul(y,vt)|0)+Math.imul(w,gt)|0,h=h+Math.imul(w,vt)|0;var Lt=(l+(n=n+Math.imul(d,bt)|0)|0)+((8191&(o=(o=o+Math.imul(d,wt)|0)+Math.imul(m,bt)|0))<<13)|0;l=((h=h+Math.imul(m,wt)|0)+(o>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(H,W),o=(o=Math.imul(H,Y))+Math.imul(G,W)|0,h=Math.imul(G,Y),n=n+Math.imul(U,X)|0,o=(o=o+Math.imul(U,$)|0)+Math.imul(K,X)|0,h=h+Math.imul(K,$)|0,n=n+Math.imul(N,Q)|0,o=(o=o+Math.imul(N,tt)|0)+Math.imul(j,Q)|0,h=h+Math.imul(j,tt)|0,n=n+Math.imul(C,it)|0,o=(o=o+Math.imul(C,nt)|0)+Math.imul(P,it)|0,h=h+Math.imul(P,nt)|0,n=n+Math.imul(I,at)|0,o=(o=o+Math.imul(I,st)|0)+Math.imul(L,at)|0,h=h+Math.imul(L,st)|0,n=n+Math.imul(R,ht)|0,o=(o=o+Math.imul(R,ft)|0)+Math.imul(x,ht)|0,h=h+Math.imul(x,ft)|0,n=n+Math.imul(k,ct)|0,o=(o=o+Math.imul(k,pt)|0)+Math.imul(T,ct)|0,h=h+Math.imul(T,pt)|0,n=n+Math.imul(_,gt)|0,o=(o=o+Math.imul(_,vt)|0)+Math.imul(S,gt)|0,h=h+Math.imul(S,vt)|0,n=n+Math.imul(y,bt)|0,o=(o=o+Math.imul(y,wt)|0)+Math.imul(w,bt)|0,h=h+Math.imul(w,wt)|0;var Dt=(l+(n=n+Math.imul(d,_t)|0)|0)+((8191&(o=(o=o+Math.imul(d,St)|0)+Math.imul(m,_t)|0))<<13)|0;l=((h=h+Math.imul(m,St)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(H,X),o=(o=Math.imul(H,$))+Math.imul(G,X)|0,h=Math.imul(G,$),n=n+Math.imul(U,Q)|0,o=(o=o+Math.imul(U,tt)|0)+Math.imul(K,Q)|0,h=h+Math.imul(K,tt)|0,n=n+Math.imul(N,it)|0,o=(o=o+Math.imul(N,nt)|0)+Math.imul(j,it)|0,h=h+Math.imul(j,nt)|0,n=n+Math.imul(C,at)|0,o=(o=o+Math.imul(C,st)|0)+Math.imul(P,at)|0,h=h+Math.imul(P,st)|0,n=n+Math.imul(I,ht)|0,o=(o=o+Math.imul(I,ft)|0)+Math.imul(L,ht)|0,h=h+Math.imul(L,ft)|0,n=n+Math.imul(R,ct)|0,o=(o=o+Math.imul(R,pt)|0)+Math.imul(x,ct)|0,h=h+Math.imul(x,pt)|0,n=n+Math.imul(k,gt)|0,o=(o=o+Math.imul(k,vt)|0)+Math.imul(T,gt)|0,h=h+Math.imul(T,vt)|0,n=n+Math.imul(_,bt)|0,o=(o=o+Math.imul(_,wt)|0)+Math.imul(S,bt)|0,h=h+Math.imul(S,wt)|0;var Ct=(l+(n=n+Math.imul(y,_t)|0)|0)+((8191&(o=(o=o+Math.imul(y,St)|0)+Math.imul(w,_t)|0))<<13)|0;l=((h=h+Math.imul(w,St)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(H,Q),o=(o=Math.imul(H,tt))+Math.imul(G,Q)|0,h=Math.imul(G,tt),n=n+Math.imul(U,it)|0,o=(o=o+Math.imul(U,nt)|0)+Math.imul(K,it)|0,h=h+Math.imul(K,nt)|0,n=n+Math.imul(N,at)|0,o=(o=o+Math.imul(N,st)|0)+Math.imul(j,at)|0,h=h+Math.imul(j,st)|0,n=n+Math.imul(C,ht)|0,o=(o=o+Math.imul(C,ft)|0)+Math.imul(P,ht)|0,h=h+Math.imul(P,ft)|0,n=n+Math.imul(I,ct)|0,o=(o=o+Math.imul(I,pt)|0)+Math.imul(L,ct)|0,h=h+Math.imul(L,pt)|0,n=n+Math.imul(R,gt)|0,o=(o=o+Math.imul(R,vt)|0)+Math.imul(x,gt)|0,h=h+Math.imul(x,vt)|0,n=n+Math.imul(k,bt)|0,o=(o=o+Math.imul(k,wt)|0)+Math.imul(T,bt)|0,h=h+Math.imul(T,wt)|0;var Pt=(l+(n=n+Math.imul(_,_t)|0)|0)+((8191&(o=(o=o+Math.imul(_,St)|0)+Math.imul(S,_t)|0))<<13)|0;l=((h=h+Math.imul(S,St)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(H,it),o=(o=Math.imul(H,nt))+Math.imul(G,it)|0,h=Math.imul(G,nt),n=n+Math.imul(U,at)|0,o=(o=o+Math.imul(U,st)|0)+Math.imul(K,at)|0,h=h+Math.imul(K,st)|0,n=n+Math.imul(N,ht)|0,o=(o=o+Math.imul(N,ft)|0)+Math.imul(j,ht)|0,h=h+Math.imul(j,ft)|0,n=n+Math.imul(C,ct)|0,o=(o=o+Math.imul(C,pt)|0)+Math.imul(P,ct)|0,h=h+Math.imul(P,pt)|0,n=n+Math.imul(I,gt)|0,o=(o=o+Math.imul(I,vt)|0)+Math.imul(L,gt)|0,h=h+Math.imul(L,vt)|0,n=n+Math.imul(R,bt)|0,o=(o=o+Math.imul(R,wt)|0)+Math.imul(x,bt)|0,h=h+Math.imul(x,wt)|0;var Bt=(l+(n=n+Math.imul(k,_t)|0)|0)+((8191&(o=(o=o+Math.imul(k,St)|0)+Math.imul(T,_t)|0))<<13)|0;l=((h=h+Math.imul(T,St)|0)+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(H,at),o=(o=Math.imul(H,st))+Math.imul(G,at)|0,h=Math.imul(G,st),n=n+Math.imul(U,ht)|0,o=(o=o+Math.imul(U,ft)|0)+Math.imul(K,ht)|0,h=h+Math.imul(K,ft)|0,n=n+Math.imul(N,ct)|0,o=(o=o+Math.imul(N,pt)|0)+Math.imul(j,ct)|0,h=h+Math.imul(j,pt)|0,n=n+Math.imul(C,gt)|0,o=(o=o+Math.imul(C,vt)|0)+Math.imul(P,gt)|0,h=h+Math.imul(P,vt)|0,n=n+Math.imul(I,bt)|0,o=(o=o+Math.imul(I,wt)|0)+Math.imul(L,bt)|0,h=h+Math.imul(L,wt)|0;var Nt=(l+(n=n+Math.imul(R,_t)|0)|0)+((8191&(o=(o=o+Math.imul(R,St)|0)+Math.imul(x,_t)|0))<<13)|0;l=((h=h+Math.imul(x,St)|0)+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(H,ht),o=(o=Math.imul(H,ft))+Math.imul(G,ht)|0,h=Math.imul(G,ft),n=n+Math.imul(U,ct)|0,o=(o=o+Math.imul(U,pt)|0)+Math.imul(K,ct)|0,h=h+Math.imul(K,pt)|0,n=n+Math.imul(N,gt)|0,o=(o=o+Math.imul(N,vt)|0)+Math.imul(j,gt)|0,h=h+Math.imul(j,vt)|0,n=n+Math.imul(C,bt)|0,o=(o=o+Math.imul(C,wt)|0)+Math.imul(P,bt)|0,h=h+Math.imul(P,wt)|0;var jt=(l+(n=n+Math.imul(I,_t)|0)|0)+((8191&(o=(o=o+Math.imul(I,St)|0)+Math.imul(L,_t)|0))<<13)|0;l=((h=h+Math.imul(L,St)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(H,ct),o=(o=Math.imul(H,pt))+Math.imul(G,ct)|0,h=Math.imul(G,pt),n=n+Math.imul(U,gt)|0,o=(o=o+Math.imul(U,vt)|0)+Math.imul(K,gt)|0,h=h+Math.imul(K,vt)|0,n=n+Math.imul(N,bt)|0,o=(o=o+Math.imul(N,wt)|0)+Math.imul(j,bt)|0,h=h+Math.imul(j,wt)|0;var Ft=(l+(n=n+Math.imul(C,_t)|0)|0)+((8191&(o=(o=o+Math.imul(C,St)|0)+Math.imul(P,_t)|0))<<13)|0;l=((h=h+Math.imul(P,St)|0)+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,n=Math.imul(H,gt),o=(o=Math.imul(H,vt))+Math.imul(G,gt)|0,h=Math.imul(G,vt),n=n+Math.imul(U,bt)|0,o=(o=o+Math.imul(U,wt)|0)+Math.imul(K,bt)|0,h=h+Math.imul(K,wt)|0;var Ut=(l+(n=n+Math.imul(N,_t)|0)|0)+((8191&(o=(o=o+Math.imul(N,St)|0)+Math.imul(j,_t)|0))<<13)|0;l=((h=h+Math.imul(j,St)|0)+(o>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,n=Math.imul(H,bt),o=(o=Math.imul(H,wt))+Math.imul(G,bt)|0,h=Math.imul(G,wt);var qt=(l+(n=n+Math.imul(U,_t)|0)|0)+((8191&(o=(o=o+Math.imul(U,St)|0)+Math.imul(K,_t)|0))<<13)|0;l=((h=h+Math.imul(K,St)|0)+(o>>>13)|0)+(qt>>>26)|0,qt&=67108863;var Kt=(l+(n=Math.imul(H,_t))|0)+((8191&(o=(o=Math.imul(H,St))+Math.imul(G,_t)|0))<<13)|0;return l=((h=Math.imul(G,St))+(o>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,f[0]=Et,f[1]=kt,f[2]=Tt,f[3]=At,f[4]=Rt,f[5]=xt,f[6]=Ot,f[7]=It,f[8]=Lt,f[9]=Dt,f[10]=Ct,f[11]=Pt,f[12]=Bt,f[13]=Nt,f[14]=jt,f[15]=Ft,f[16]=Ut,f[17]=qt,f[18]=Kt,0!==l&&(f[19]=l,r.length++),r};function M(t,e,r){return(new _).mulp(t,e,r)}function _(t,e){this.x=t,this.y=e}Math.imul||(w=y),h.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?w(this,t,e):r<63?y(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,o=0,h=0;h<r.length-1;h++){var f=o;o=0;for(var l=67108863&n,c=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=c;d++){var i=h-d,m=(0|t.words[i])*(0|e.words[d]),v=67108863&m;l=67108863&(v=v+l|0),o+=(f=(f=f+(m/67108864|0)|0)+(v>>>26)|0)>>>26,f&=67108863}r.words[h]=l,n=f,f=o}return 0!==n?r.words[h]=n:r.length--,r.strip()}(this,t,e):M(this,t,e)},_.prototype.makeRBT=function(t){for(var e=new Array(t),r=h.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,r,t);return e},_.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},_.prototype.permute=function(t,e,r,n,o,h){for(var i=0;i<h;i++)n[i]=e[t[i]],o[i]=r[t[i]]},_.prototype.transform=function(t,e,r,n,o,h){this.permute(h,t,e,r,n,o);for(var s=1;s<o;s<<=1)for(var f=s<<1,l=Math.cos(2*Math.PI/f),c=Math.sin(2*Math.PI/f),p=0;p<o;p+=f)for(var d=l,m=c,v=0;v<s;v++){var y=r[p+v],w=n[p+v],M=r[p+v+s],_=n[p+v+s],S=d*M-m*_;_=d*_+m*M,M=S,r[p+v]=y+M,n[p+v]=w+_,r[p+v+s]=y-M,n[p+v+s]=w-_,v!==f&&(S=l*d-c*m,m=l*m+c*d,d=S)}},_.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},_.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var i=0;i<r/2;i++){var n=t[i];t[i]=t[r-i-1],t[r-i-1]=n,n=e[i],e[i]=-e[r-i-1],e[r-i-1]=-n}},_.prototype.normalize13b=function(t,e){for(var r=0,i=0;i<e/2;i++){var n=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+r;t[i]=67108863&n,r=n<67108864?0:n/67108864|0}return t},_.prototype.convert13b=function(t,e,r,o){for(var h=0,i=0;i<e;i++)h+=0|t[i],r[2*i]=8191&h,h>>>=13,r[2*i+1]=8191&h,h>>>=13;for(i=2*e;i<o;++i)r[i]=0;n(0===h),n(0==(-8192&h))},_.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},_.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(n),h=this.stub(n),f=new Array(n),l=new Array(n),c=new Array(n),d=new Array(n),m=new Array(n),v=new Array(n),y=r.words;y.length=n,this.convert13b(t.words,t.length,f,n),this.convert13b(e.words,e.length,d,n),this.transform(f,h,l,c,n,o),this.transform(d,h,m,v,n,o);for(var i=0;i<n;i++){var w=l[i]*m[i]-c[i]*v[i];c[i]=l[i]*v[i]+c[i]*m[i],l[i]=w}return this.conjugate(l,c,n),this.transform(l,c,y,h,n,o),this.conjugate(y,h,n),this.normalize13b(y,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},h.prototype.mul=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},h.prototype.mulf=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),M(this,t,e)},h.prototype.imul=function(t){return this.clone().mulTo(t,this)},h.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,i=0;i<this.length;i++){var r=(0|this.words[i])*t,o=(67108863&r)+(67108863&e);e>>=26,e+=r/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},h.prototype.muln=function(t){return this.clone().imuln(t)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,o=r%26;e[r]=(t.words[n]&1<<o)>>>o}return e}(t);if(0===e.length)return new h(1);for(var r=this,i=0;i<e.length&&0===e[i];i++,r=r.sqr());if(++i<e.length)for(var q=r.sqr();i<e.length;i++,q=q.sqr())0!==e[i]&&(r=r.mul(q));return r},h.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var i,e=t%26,s=(t-e)/26,r=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var h=this.words[i]&r,f=(0|this.words[i])-h<<e;this.words[i]=f|o,o=h>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i<s;i++)this.words[i]=0;this.length+=s}return this.strip()},h.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},h.prototype.iushrn=function(t,e,r){var o;n("number"==typeof t&&t>=0),o=e?(e-e%26)/26:0;var h=t%26,s=Math.min((t-h)/26,this.length),mask=67108863^67108863>>>h<<h,f=r;if(o-=s,o=Math.max(0,o),f){for(var i=0;i<s;i++)f.words[i]=this.words[i];f.length=s}if(0===s);else if(this.length>s)for(this.length-=s,i=0;i<this.length;i++)this.words[i]=this.words[i+s];else this.words[0]=0,this.length=1;var l=0;for(i=this.length-1;i>=0&&(0!==l||i>=o);i--){var c=0|this.words[i];this.words[i]=l<<26-h|c>>>h,l=c&mask}return f&&0!==l&&(f.words[f.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},h.prototype.shln=function(t){return this.clone().ishln(t)},h.prototype.ushln=function(t){return this.clone().iushln(t)},h.prototype.shrn=function(t){return this.clone().ishrn(t)},h.prototype.ushrn=function(t){return this.clone().iushrn(t)},h.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26,q=1<<e;return!(this.length<=s)&&!!(this.words[s]&q)},h.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==e&&s++,this.length=Math.min(s,this.length),0!==e){var mask=67108863^67108863>>>e<<e;this.words[this.length-1]&=mask}return this.strip()},h.prototype.maskn=function(t){return this.clone().imaskn(t)},h.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)},h.prototype._iaddn=function(t){this.words[0]+=t;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},h.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 i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this.strip()},h.prototype.addn=function(t){return this.clone().iaddn(t)},h.prototype.subn=function(t){return this.clone().isubn(t)},h.prototype.iabs=function(){return this.negative=0,this},h.prototype.abs=function(){return this.clone().iabs()},h.prototype._ishlnsubmul=function(t,e,r){var i,o,h=t.length+r;this._expand(h);var f=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+f;var l=(0|t.words[i])*e;f=((o-=67108863&l)>>26)-(l/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)f=(o=(0|this.words[i+r])+f)>>26,this.words[i+r]=67108863&o;if(0===f)return this.strip();for(n(-1===f),f=0,i=0;i<this.length;i++)f=(o=-(0|this.words[i])+f)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},h.prototype._wordDiv=function(t,e){var r=(this.length,t.length),a=this.clone(),b=t,n=0|b.words[b.length-1];0!==(r=26-this._countBits(n))&&(b=b.ushln(r),a.iushln(r),n=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==e){(q=new h(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i<q.length;i++)q.words[i]=0}var f=a.clone()._ishlnsubmul(b,1,o);0===f.negative&&(a=f,q&&(q.words[o]=1));for(var l=o-1;l>=0;l--){var c=67108864*(0|a.words[b.length+l])+(0|a.words[b.length+l-1]);for(c=Math.min(c/n|0,67108863),a._ishlnsubmul(b,c,l);0!==a.negative;)c--,a.negative=0,a._ishlnsubmul(b,1,l),a.isZero()||(a.negative^=1);q&&(q.words[l]=c)}return q&&q.strip(),a.strip(),"div"!==e&&0!==r&&a.iushrn(r),{div:q||null,mod:a}},h.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new h(0),mod:new h(0)}:0!==this.negative&&0===t.negative?(f=this.neg().divmod(t,e),"mod"!==e&&(div=f.div.neg()),"div"!==e&&(o=f.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:div,mod:o}):0===this.negative&&0!==t.negative?(f=this.divmod(t.neg(),e),"mod"!==e&&(div=f.div.neg()),{div:div,mod:f.mod}):0!=(this.negative&t.negative)?(f=this.neg().divmod(t.neg(),e),"div"!==e&&(o=f.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:f.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new h(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new h(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new h(this.modn(t.words[0]))}:this._wordDiv(t,e);var div,o,f},h.prototype.div=function(t){return this.divmod(t,"div",!1).div},h.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},h.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},h.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),o=t.andln(1),h=r.cmp(n);return h<0||1===o&&0===h?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},h.prototype.modn=function(t){n(t<=67108863);for(var p=(1<<26)%t,e=0,i=this.length-1;i>=0;i--)e=(p*e+(0|this.words[i]))%t;return e},h.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},h.prototype.divn=function(t){return this.clone().idivn(t)},h.prototype.egcd=function(p){n(0===p.negative),n(!p.isZero());var t=this,e=p.clone();t=0!==t.negative?t.umod(p):t.clone();for(var r=new h(1),o=new h(0),f=new h(0),l=new h(1),g=0;t.isEven()&&e.isEven();)t.iushrn(1),e.iushrn(1),++g;for(var c=e.clone(),d=t.clone();!t.isZero();){for(var i=0,m=1;0==(t.words[0]&m)&&i<26;++i,m<<=1);if(i>0)for(t.iushrn(i);i-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(c),o.isub(d)),r.iushrn(1),o.iushrn(1);for(var v=0,y=1;0==(e.words[0]&y)&&v<26;++v,y<<=1);if(v>0)for(e.iushrn(v);v-- >0;)(f.isOdd()||l.isOdd())&&(f.iadd(c),l.isub(d)),f.iushrn(1),l.iushrn(1);t.cmp(e)>=0?(t.isub(e),r.isub(f),o.isub(l)):(e.isub(t),f.isub(r),l.isub(o))}return{a:f,b:l,gcd:e.iushln(g)}},h.prototype._invmp=function(p){n(0===p.negative),n(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var t,e=new h(1),r=new h(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,f=1;0==(a.words[0]&f)&&i<26;++i,f<<=1);if(i>0)for(a.iushrn(i);i-- >0;)e.isOdd()&&e.iadd(o),e.iushrn(1);for(var l=0,c=1;0==(b.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(b.iushrn(l);l-- >0;)r.isOdd()&&r.iadd(o),r.iushrn(1);a.cmp(b)>=0?(a.isub(b),e.isub(r)):(b.isub(a),r.isub(e))}return(t=0===a.cmpn(1)?e:r).cmpn(0)<0&&t.iadd(p),t},h.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),b=t.clone();a.negative=0,b.negative=0;for(var e=0;a.isEven()&&b.isEven();e++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var r=a.cmp(b);if(r<0){var n=a;a=b,b=n}else if(0===r||0===b.cmpn(1))break;a.isub(b)}return b.iushln(e)},h.prototype.invm=function(t){return this.egcd(t).a.umod(t)},h.prototype.isEven=function(){return 0==(1&this.words[0])},h.prototype.isOdd=function(){return 1==(1&this.words[0])},h.prototype.andln=function(t){return this.words[0]&t},h.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,s=(t-e)/26,q=1<<e;if(this.length<=s)return this._expand(s+1),this.words[s]|=q,this;for(var r=q,i=s;0!==r&&i<this.length;i++){var o=0|this.words[i];r=(o+=r)>>>26,o&=67108863,this.words[i]=o}return 0!==r&&(this.words[i]=r,this.length++),this},h.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},h.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},h.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},h.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var a=0|this.words[i],b=0|t.words[i];if(a!==b){a<b?e=-1:a>b&&(e=1);break}}return e},h.prototype.gtn=function(t){return 1===this.cmpn(t)},h.prototype.gt=function(t){return 1===this.cmp(t)},h.prototype.gten=function(t){return this.cmpn(t)>=0},h.prototype.gte=function(t){return this.cmp(t)>=0},h.prototype.ltn=function(t){return-1===this.cmpn(t)},h.prototype.lt=function(t){return-1===this.cmp(t)},h.prototype.lten=function(t){return this.cmpn(t)<=0},h.prototype.lte=function(t){return this.cmp(t)<=0},h.prototype.eqn=function(t){return 0===this.cmpn(t)},h.prototype.eq=function(t){return 0===this.cmp(t)},h.red=function(t){return new x(t)},h.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)},h.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(t){return this.red=t,this},h.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},h.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},h.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},h.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},h.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},h.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},h.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},h.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},h.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var S={k256:null,p224:null,p192:null,p25519:null};function E(t,p){this.name=t,this.p=new h(p,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function k(){E.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function T(){E.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){E.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function R(){E.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"==typeof t){var e=h._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function O(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new h(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)}E.prototype._tmp=function(){var t=new h(null);return t.words=new Array(Math.ceil(this.n/13)),t},E.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},E.prototype.split=function(input,t){input.iushrn(this.n,0,t)},E.prototype.imulK=function(t){return t.imul(this.k)},o(k,E),k.prototype.split=function(input,output){for(var t=Math.min(input.length,9),i=0;i<t;i++)output.words[i]=input.words[i];if(output.length=t,input.length<=9)return input.words[0]=0,void(input.length=1);var e=input.words[9];for(output.words[output.length++]=4194303&e,i=10;i<input.length;i++){var r=0|input.words[i];input.words[i-10]=(4194303&r)<<4|e>>>22,e=r}e>>>=22,input.words[i-10]=e,0===e&&input.length>10?input.length-=10:input.length-=9},k.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(T,E),o(A,E),o(R,E),R.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=19*(0|t.words[i])+e,n=67108863&r;r>>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},h._prime=function(t){if(S[t])return S[t];var e;if("k256"===t)e=new k;else if("p224"===t)e=new T;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new R}return S[t]=e,e},x.prototype._verify1=function(a){n(0===a.negative,"red works only with positives"),n(a.red,"red works only with red numbers")},x.prototype._verify2=function(a,b){n(0==(a.negative|b.negative),"red works only with positives"),n(a.red&&a.red===b.red,"red works only with red numbers")},x.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)},x.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},x.prototype.add=function(a,b){this._verify2(a,b);var t=a.add(b);return t.cmp(this.m)>=0&&t.isub(this.m),t._forceRed(this)},x.prototype.iadd=function(a,b){this._verify2(a,b);var t=a.iadd(b);return t.cmp(this.m)>=0&&t.isub(this.m),t},x.prototype.sub=function(a,b){this._verify2(a,b);var t=a.sub(b);return t.cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},x.prototype.isub=function(a,b){this._verify2(a,b);var t=a.isub(b);return t.cmpn(0)<0&&t.iadd(this.m),t},x.prototype.shl=function(a,t){return this._verify1(a),this.imod(a.ushln(t))},x.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b))},x.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b))},x.prototype.isqr=function(a){return this.imul(a,a.clone())},x.prototype.sqr=function(a){return this.mul(a,a)},x.prototype.sqrt=function(a){if(a.isZero())return a.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var e=this.m.add(new h(1)).iushrn(2);return this.pow(a,e)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);n(!q.isZero());var r=new h(1).toRed(this),o=r.redNeg(),f=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new h(2*l*l).toRed(this);0!==this.pow(l,f).cmp(o);)l.redIAdd(o);for(var c=this.pow(l,q),d=this.pow(a,q.addn(1).iushrn(1)),m=this.pow(a,q),v=s;0!==m.cmp(r);){for(var y=m,i=0;0!==y.cmp(r);i++)y=y.redSqr();n(i<v);var b=this.pow(c,new h(1).iushln(v-i-1));d=d.redMul(b),c=b.redSqr(),m=m.redMul(c),v=i}return d},x.prototype.invm=function(a){var t=a._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},x.prototype.pow=function(a,t){if(t.isZero())return new h(1).toRed(this);if(0===t.cmpn(1))return a.clone();var e=new Array(16);e[0]=new h(1).toRed(this),e[1]=a;for(var i=2;i<e.length;i++)e[i]=this.mul(e[i-1],a);var r=e[0],n=0,o=0,f=t.bitLength()%26;for(0===f&&(f=26),i=t.length-1;i>=0;i--){for(var l=t.words[i],c=f-1;c>=0;c--){var d=l>>c&1;r!==e[0]&&(r=this.sqr(r)),0!==d||0!==n?(n<<=1,n|=d,(4===++o||0===i&&0===c)&&(r=this.mul(r,e[n]),o=0,n=0)):o=0}f=26}return r},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},h.mont=function(t){return new O(t)},o(O,x),O.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},O.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},O.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var t=a.imul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},O.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new h(0)._forceRed(this);var t=a.mul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},O.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(79)(t))},function(t,e,r){"use strict";var n=function(){return(n=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t}).apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var o,h=r(30),f=r(56);function l(){for(var s=0,i=0,t=arguments.length;i<t;i++)s+=arguments[i].length;var e=Array(s),r=0;for(i=0;i<t;i++)for(var a=arguments[i],n=0,o=a.length;n<o;n++,r++)e[r]=a[n];return e}var c,d=[];!function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"}(c||(c={}));var m,v={debug:c.DEBUG,verbose:c.VERBOSE,info:c.INFO,warn:c.WARN,error:c.ERROR,silent:c.SILENT},y=c.INFO,w=((o={})[c.DEBUG]="log",o[c.VERBOSE]="log",o[c.INFO]="info",o[c.WARN]="warn",o[c.ERROR]="error",o),M=function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(!(e<t.logLevel)){var o=(new Date).toISOString(),h=w[e];if(!h)throw new Error("Attempted to log a message with an invali
2d logType (value: "+e+")");console[h].apply(console,l(["["+o+"]  "+t.name+":"],r))}},_=function(){function t(t){this.name=t,this._logLevel=y,this._logHandler=M,this._userLogHandler=null,d.push(this)}return Object.defineProperty(t.prototype,"logLevel",{get:function(){return this._logLevel},set:function(t){if(!(t in c))throw new TypeError('Invalid value "'+t+'" assigned to `logLevel`');this._logLevel=t},enumerable:!1,configurable:!0}),t.prototype.setLogLevel=function(t){this._logLevel="string"==typeof t?v[t]:t},Object.defineProperty(t.prototype,"logHandler",{get:function(){return this._logHandler},set:function(t){if("function"!=typeof t)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(t){this._userLogHandler=t},enumerable:!1,configurable:!0}),t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,l([this,c.DEBUG],t)),this._logHandler.apply(this,l([this,c.DEBUG],t))},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,l([this,c.VERBOSE],t)),this._logHandler.apply(this,l([this,c.VERBOSE],t))},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,l([this,c.INFO],t)),this._logHandler.apply(this,l([this,c.INFO],t))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,l([this,c.WARN],t)),this._logHandler.apply(this,l([this,c.WARN],t))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,l([this,c.ERROR],t)),this._logHandler.apply(this,l([this,c.ERROR],t))},t}();function S(t){d.forEach((function(e){e.setLogLevel(t)}))}var E,k=((m={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",m["bad-app-name"]="Illegal App name: '{$appName}",m["duplicate-app"]="Firebase App named '{$appName}' already exists",m["app-deleted"]="Firebase App named '{$appName}' already deleted",m["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",m["invalid-log-argument"]="First argument to `onLog` must be null or a function.",m),T=new h.b("app","Firebase",k),A=((E={})["@firebase/app"]="fire-core",E["@firebase/analytics"]="fire-analytics",E["@firebase/app-check"]="fire-app-check",E["@firebase/auth"]="fire-auth",E["@firebase/database"]="fire-rtdb",E["@firebase/functions"]="fire-fn",E["@firebase/installations"]="fire-iid",E["@firebase/messaging"]="fire-fcm",E["@firebase/performance"]="fire-perf",E["@firebase/remote-config"]="fire-rc",E["@firebase/storage"]="fire-gcs",E["@firebase/firestore"]="fire-fst",E["fire-js"]="fire-js",E["firebase-wrapper"]="fire-js-all",E),R=new _("@firebase/app"),x=function(){function t(t,e,r){var n=this;this.firebase_=r,this.isDeleted_=!1,this.name_=e.name,this.automaticDataCollectionEnabled_=e.automaticDataCollectionEnabled||!1,this.options_=Object(h.f)(t),this.container=new f.b(e.name),this._addComponent(new f.a("app",(function(){return n}),"PUBLIC")),this.firebase_.INTERNAL.components.forEach((function(component){return n._addComponent(component)}))}return Object.defineProperty(t.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(t){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,configurable:!0}),t.prototype.delete=function(){var t=this;return new Promise((function(e){t.checkDestroyed_(),e()})).then((function(){return t.firebase_.INTERNAL.removeApp(t.name_),Promise.all(t.container.getProviders().map((function(t){return t.delete()})))})).then((function(){t.isDeleted_=!0}))},t.prototype._getService=function(t,e){var r;void 0===e&&(e="[DEFAULT]"),this.checkDestroyed_();var n=this.container.getProvider(t);return n.isInitialized()||"EXPLICIT"!==(null===(r=n.getComponent())||void 0===r?void 0:r.instantiationMode)||n.initialize(),n.getImmediate({identifier:e})},t.prototype._removeServiceInstance=function(t,e){void 0===e&&(e="[DEFAULT]"),this.container.getProvider(t).clearInstance(e)},t.prototype._addComponent=function(component){try{this.container.addComponent(component)}catch(t){R.debug("Component "+component.name+" failed to register with FirebaseApp "+this.name,t)}},t.prototype._addOrOverwriteComponent=function(component){this.container.addOrOverwriteComponent(component)},t.prototype.toJSON=function(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}},t.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw T.create("app-deleted",{appName:this.name_})},t}();x.prototype.name&&x.prototype.options||x.prototype.delete||console.log("dc");function O(t){var e={},r=new Map,n={__esModule:!0,initializeApp:function(r,o){void 0===o&&(o={});if("object"!=typeof o||null===o){o={name:o}}var f=o;void 0===f.name&&(f.name="[DEFAULT]");var l=f.name;if("string"!=typeof l||!l)throw T.create("bad-app-name",{appName:String(l)}
2);if(Object(h.d)(e,l))throw T.create("duplicate-app",{appName:l});var c=new t(r,f,n);return e[l]=c,c},app:o,registerVersion:function(t,e,r){var n,o=null!==(n=A[t])&&void 0!==n?n:t;r&&(o+="-"+r);var h=o.match(/\s|\//),c=e.match(/\s|\//);if(h||c){var d=['Unable to register library "'+o+'" with version "'+e+'":'];return h&&d.push('library name "'+o+'" contains illegal characters (whitespace or "/")'),h&&c&&d.push("and"),c&&d.push('version name "'+e+'" contains illegal characters (whitespace or "/")'),void R.warn(d.join(" "))}l(new f.a(o+"-version",(function(){return{library:o,version:e}}),"VERSION"))},setLogLevel:S,onLog:function(t,e){if(null!==t&&"function"!=typeof t)throw T.create("invalid-log-argument");!function(t,e){for(var r=function(r){var n=null;e&&e.level&&(n=v[e.level]),r.userLogHandler=null===t?null:function(e,r){for(var o=[],h=2;h<arguments.length;h++)o[h-2]=arguments[h];var f=o.map((function(t){if(null==t)return null;if("string"==typeof t)return t;if("number"==typeof t||"boolean"==typeof t)return t.toString();if(t instanceof Error)return t.message;try{return JSON.stringify(t)}catch(t){return null}})).filter((function(t){return t})).join(" ");r>=(null!=n?n:e.logLevel)&&t({level:c[r].toLowerCase(),message:f,args:o,type:e.name})}},n=0,o=d;n<o.length;n++){r(o[n])}}(t,e)},apps:null,SDK_VERSION:"8.10.0",INTERNAL:{registerComponent:l,removeApp:function(t){delete e[t]},components:r,useAsService:function(t,e){if("serverAuth"===e)return null;return e}}};function o(t){if(t=t||"[DEFAULT]",!Object(h.d)(e,t))throw T.create("no-app",{appName:t});return e[t]}function l(component){var f=component.name;if(r.has(f))return R.debug("There were multiple attempts to register component "+f+"."),"PUBLIC"===component.type?n[f]:null;if(r.set(f,component),"PUBLIC"===component.type){var l=function(t){if(void 0===t&&(t=o()),"function"!=typeof t[f])throw T.create("invalid-app-argument",{appName:f});return t[f]()};void 0!==component.serviceProps&&Object(h.g)(l,component.serviceProps),n[f]=l,t.prototype[f]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=this._getService.bind(this,f);return r.apply(this,component.multipleInstances?t:[])}}for(var c=0,d=Object.keys(e);c<d.length;c++){var m=d[c];e[m]._addComponent(component)}return"PUBLIC"===component.type?n[f]:null}return n.default=n,Object.defineProperty(n,"apps",{get:function(){return Object.keys(e).map((function(t){return e[t]}))}}),o.App=t,n}var I=function t(){var e=O(x);return e.INTERNAL=n(n({},e.INTERNAL),{createFirebaseNamespace:t,extendNamespace:function(t){Object(h.g)(e,t)},createSubscribe:h.e,ErrorFactory:h.b,deepExtend:h.g}),e}(),L=function(){function t(t){this.container=t}return t.prototype.getPlatformInfoString=function(){return this.container.getProviders().map((function(t){if(function(t){var component=t.getComponent();return"VERSION"===(null==component?void 0:component.type)}(t)){var e=t.getImmediate();return e.library+"/"+e.version}return null})).filter((function(t){return t})).join(" ")},t}();if(Object(h.h)()&&void 0!==self.firebase){R.warn("\n    Warning: Firebase is already defined in the global scope. Please make sure\n    Firebase library is only loaded once.\n  ");var D=self.firebase.SDK_VERSION;D&&D.indexOf("LITE")>=0&&R.warn("\n    Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n    You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n    ")}var C=I.initializeApp;I.initializeApp=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Object(h.i)()&&R.warn('\n      Warning: This is a browser-targeted Firebase bundle but it appears it is being\n      run in a Node environment.  If running in a Node environment, make sure you\n      are using the bundle specified by the "main" field in package.json.\n      \n      If you are using Webpack, you can specify "main" as the first item in\n      "resolve.mainFields":\n      https://webpack.js.org/configuration/resolve/#resolvemainfields\n      \n      If using Rollup, use the @rollup/plugin-node-resolve plugin and specify "main"\n      as the first item in "mainFields", e.g. [\'main\', \'module\'].\n      https://github.com/rollup/@rollup/plugin-node-resolve\n      '),C.apply(void 0,t)};var P,B,N=I;(P=N).INTERNAL.registerComponent(new f.a("platform-logger",(function(t){return new L(t)}),"PRIVATE")),P.registerVersion("@firebase/app","0.6.30",B),P.registerVersion("fire-js","");e.a=N},function(t,e,r){"use strict";r.d(e,"a",(function(){return d})),r.d(e,"b",(function(){return v}));function n(t,e,r,n){return new(r||(r=Promise))((function(o,h){function f(t){try{c(n.next(t))}catch(t){h(t)}}function l(t){try{c(n.throw(t))}catch(t){h(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(f,l)}c((n=n.apply(t,e||[])).next())}))}function o(t,body){var e,r,n,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},g=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return g.next=h(0),g.throw=h(1),g.return=h(2),"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(f){return function(h){if(e)throw new TypeError("Generator is already executing.");for(;g&&(g=0,h[0]&&(o=0)),o;)try{if(e=1,r&&(n=2&h[0]?r.return:h[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,h[1])).done)return n;switch(r=0,n&&(h=[2&h[0],n.value]),h[0]){case 0:case 1:n=h;break;case 4:return o.label++,{value:h[1],done:!1};case 5:o.label++,r=h[1],h=[0];continue;case 7:h=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==h[0]&&2!==h[0])){o=0;continue}
2if(3===h[0]&&(!n||h[1]>n[0]&&h[1]<n[3])){o.label=h[1];break}if(6===h[0]&&o.label<n[1]){o.label=n[1],n=h;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(h);break}n[2]&&o.ops.pop(),o.trys.pop();continue}h=body.call(t,o)}catch(t){h=[6,t],r=0}finally{e=n=0}if(5&h[0])throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}([h,f])}}}Object.create;function h(t){var s="function"==typeof Symbol&&Symbol.iterator,e=s&&t[s],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function f(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),h=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)h.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return h}function l(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var c=r(30),d=function(){function t(t,e,r){this.name=t,this.instanceFactory=e,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}return t.prototype.setInstantiationMode=function(t){return this.instantiationMode=t,this},t.prototype.setMultipleInstances=function(t){return this.multipleInstances=t,this},t.prototype.setServiceProps=function(t){return this.serviceProps=t,this},t.prototype.setInstanceCreatedCallback=function(t){return this.onInstanceCreated=t,this},t}(),m=function(){function t(t,e){this.name=t,this.container=e,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}return t.prototype.get=function(t){var e=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(e)){var r=new c.a;if(this.instancesDeferred.set(e,r),this.isInitialized(e)||this.shouldAutoInitialize())try{var n=this.getOrInitializeService({instanceIdentifier:e});n&&r.resolve(n)}catch(t){}}return this.instancesDeferred.get(e).promise},t.prototype.getImmediate=function(t){var e,r=this.normalizeInstanceIdentifier(null==t?void 0:t.identifier),n=null!==(e=null==t?void 0:t.optional)&&void 0!==e&&e;if(!this.isInitialized(r)&&!this.shouldAutoInitialize()){if(n)return null;throw Error("Service "+this.name+" is not available")}try{return this.getOrInitializeService({instanceIdentifier:r})}catch(t){if(n)return null;throw t}},t.prototype.getComponent=function(){return this.component},t.prototype.setComponent=function(component){var t,e;if(component.name!==this.name)throw Error("Mismatching Component "+component.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");if(this.component=component,this.shouldAutoInitialize()){if(function(component){return"EAGER"===component.instantiationMode}(component))try{this.getOrInitializeService({instanceIdentifier:"[DEFAULT]"})}catch(t){}try{for(var r=h(this.instancesDeferred.entries()),n=r.next();!n.done;n=r.next()){var o=f(n.value,2),l=o[0],c=o[1],d=this.normalizeInstanceIdentifier(l);try{var m=this.getOrInitializeService({instanceIdentifier:d});c.resolve(m)}catch(t){}}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}}},t.prototype.clearInstance=function(t){void 0===t&&(t="[DEFAULT]"),this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)},t.prototype.delete=function(){return n(this,void 0,void 0,(function(){var t;return o(this,(function(e){switch(e.label){case 0:return t=Array.from(this.instances.values()),[4,Promise.all(l(l([],f(t.filter((function(t){return"INTERNAL"in t})).map((function(t){return t.INTERNAL.delete()})))),f(t.filter((function(t){return"_delete"in t})).map((function(t){return t._delete()})))))];case 1:return e.sent(),[2]}}))}))},t.prototype.isComponentSet=function(){return null!=this.component},t.prototype.isInitialized=function(t){return void 0===t&&(t="[DEFAULT]"),this.instances.has(t)},t.prototype.getOptions=function(t){return void 0===t&&(t="[DEFAULT]"),this.instancesOptions.get(t)||{}},t.prototype.initialize=function(t){var e,r;void 0===t&&(t={});var n=t.options,o=void 0===n?{}:n,l=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(l))throw Error(this.name+"("+l+") has already been initialized");if(!this.isComponentSet())throw Error("Component "+this.name+" has not been registered yet");var c=this.getOrInitializeService({instanceIdentifier:l,options:o});try{for(var d=h(this.instancesDeferred.entries()),m=d.next();!m.done;m=d.next()){var v=f(m.value,2),y=v[0],w=v[1];l===this.normalizeInstanceIdentifier(y)&&w.resolve(c)}}catch(t){e={error:t}}finally{try{m&&!m.done&&(r=d.return)&&r.call(d)}finally{if(e)throw e.error}}return c},t.prototype.onInit=function(t,e){var r,n=this.normalizeInstanceIdentifier(e),o=null!==(r=this.onInitCallbacks.get(n))&&void 0!==r?r:new Set;o.add(t),this.onInitCallbacks.set(n,o);var h=this.instances.get(n);return h&&t(h,n),function(){o.delete(t)}},t.prototype.invokeOnInitCallbacks=function(t,e){var r,n,o=this.onInitCallbacks.get(e);if(o)try{for(var f=h(o),l=f.next();!l.done;l=f.next()){var c=l.value;try{c(t,e)}catch(t){}}}catch(t){r={error:t}}finally{try{l&&!l.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}},t.prototype.getOrInitializeService=function(t){var e,r=t.instanceIdentifier,n=t.options,o=void 0===n?{}:n,h=this.instances.get(r);
2if(!h&&this.component&&(h=this.component.instanceFactory(this.container,{instanceIdentifier:(e=r,"[DEFAULT]"===e?void 0:e),options:o}),this.instances.set(r,h),this.instancesOptions.set(r,o),this.invokeOnInitCallbacks(h,r),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,r,h)}catch(t){}return h||null},t.prototype.normalizeInstanceIdentifier=function(t){return void 0===t&&(t="[DEFAULT]"),this.component?this.component.multipleInstances?t:"[DEFAULT]":t},t.prototype.shouldAutoInitialize=function(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode},t}();var v=function(){function t(t){this.name=t,this.providers=new Map}return t.prototype.addComponent=function(component){var t=this.getProvider(component.name);if(t.isComponentSet())throw new Error("Component "+component.name+" has already been registered with "+this.name);t.setComponent(component)},t.prototype.addOrOverwriteComponent=function(component){this.getProvider(component.name).isComponentSet()&&this.providers.delete(component.name),this.addComponent(component)},t.prototype.getProvider=function(t){if(this.providers.has(t))return this.providers.get(t);var e=new m(t,this);return this.providers.set(t,e),e},t.prototype.getProviders=function(){return Array.from(this.providers.values())},t}()},,,,,,,,,,,,,function(t,e,r){var n=r(13).Buffer,o=r(131).Transform,h=r(109).StringDecoder;function f(t){o.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(14)(f,o),f.prototype.update=function(data,t,e){"string"==typeof data&&(data=n.from(data,t));var r=this._update(data);return this.hashMode?this:(e&&(r=this._toString(r,e)),r)},f.prototype.setAutoPadding=function(){},f.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},f.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},f.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},f.prototype._transform=function(data,t,e){var r;try{this.hashMode?this._update(data):this.push(this._update(data))}catch(t){r=t}finally{e(r)}},f.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},f.prototype._finalOrDigest=function(t){var e=this.__final()||n.alloc(0);return t&&(e=this._toString(e,t,!0)),e},f.prototype._toString=function(t,e,r){if(this._decoder||(this._decoder=new h(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var n=this._decoder.write(t);return r&&(n+=this._decoder.end()),n},t.exports=f},function(t,e,r){!function(t){"use strict";function e(t){return Array.prototype.slice.call(t)}function r(t){return new Promise((function(e,r){t.onsuccess=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function n(t,e,n){var o,p=new Promise((function(h,f){r(o=t[e].apply(t,n)).then(h,f)}));return p.request=o,p}function o(t,e,r){var p=n(t,e,r);return p.then((function(t){if(t)return new m(t,p.request)}))}function h(t,e,r){r.forEach((function(r){Object.defineProperty(t.prototype,r,{get:function(){return this[e][r]},set:function(t){this[e][r]=t}})}))}function f(t,e,r,o){o.forEach((function(o){o in r.prototype&&(t.prototype[o]=function(){return n(this[e],o,arguments)})}))}function l(t,e,r,n){n.forEach((function(n){n in r.prototype&&(t.prototype[n]=function(){return this[e][n].apply(this[e],arguments)})}))}function c(t,e,r,n){n.forEach((function(n){n in r.prototype&&(t.prototype[n]=function(){return o(this[e],n,arguments)})}))}function d(t){this._index=t}function m(cursor,t){this._cursor=cursor,this._request=t}function v(t){this._store=t}function y(t){this._tx=t,this.complete=new Promise((function(e,r){t.oncomplete=function(){e()},t.onerror=function(){r(t.error)},t.onabort=function(){r(t.error)}}))}function w(t,e,r){this._db=t,this.oldVersion=e,this.transaction=new y(r)}function M(t){this._db=t}h(d,"_index",["name","keyPath","multiEntry","unique"]),f(d,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]),c(d,"_index",IDBIndex,["openCursor","o
2penKeyCursor"]),h(m,"_cursor",["direction","key","primaryKey","value"]),f(m,"_cursor",IDBCursor,["update","delete"]),["advance","continue","continuePrimaryKey"].forEach((function(t){t in IDBCursor.prototype&&(m.prototype[t]=function(){var cursor=this,e=arguments;return Promise.resolve().then((function(){return cursor._cursor[t].apply(cursor._cursor,e),r(cursor._request).then((function(t){if(t)return new m(t,cursor._request)}))}))})})),v.prototype.createIndex=function(){return new d(this._store.createIndex.apply(this._store,arguments))},v.prototype.index=function(){return new d(this._store.index.apply(this._store,arguments))},h(v,"_store",["name","keyPath","indexNames","autoIncrement"]),f(v,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]),c(v,"_store",IDBObjectStore,["openCursor","openKeyCursor"]),l(v,"_store",IDBObjectStore,["deleteIndex"]),y.prototype.objectStore=function(){return new v(this._tx.objectStore.apply(this._tx,arguments))},h(y,"_tx",["objectStoreNames","mode"]),l(y,"_tx",IDBTransaction,["abort"]),w.prototype.createObjectStore=function(){return new v(this._db.createObjectStore.apply(this._db,arguments))},h(w,"_db",["name","version","objectStoreNames"]),l(w,"_db",IDBDatabase,["deleteObjectStore","close"]),M.prototype.transaction=function(){return new y(this._db.transaction.apply(this._db,arguments))},h(M,"_db",["name","version","objectStoreNames"]),l(M,"_db",IDBDatabase,["close"]),["openCursor","o
2penKeyCursor"].forEach((function(t){[v,d].forEach((function(r){t in r.prototype&&(r.prototype[t.replace("open","iterate")]=function(){var r=e(arguments),n=r[r.length-1],o=this._store||this._index,h=o[t].apply(o,r.slice(0,-1));h.onsuccess=function(){n(h.result)}})}))})),[d,v].forEach((function(t){t.prototype.getAll||(t.prototype.getAll=function(t,e){var r=this,n=[];return new Promise((function(o){r.iterateCursor(t,(function(cursor){cursor?(n.push(cursor.value),void 0===e||n.length!=e?cursor.continue():o(n)):o(n)}))}))})})),t.openDb=function(t,e,r){var p=n(indexedDB,"open",[t,e]),o=p.request;return o&&(o.onupgradeneeded=function(t){r&&r(new w(o.result,t.oldVersion,o.transaction))}),p.then((function(t){return new M(t)}))},t.deleteDb=function(t){return n(indexedDB,"deleteDatabase",[t])},Object.defineProperty(t,"__esModule",{value:!0})}(e)},,,,,,,,function(t,e,r){"use strict";var n=r(132),o=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=v;var h=Object.create(r(108));h.inherits=r(14);var f=r(276),l=r(172);h.inherits(v,f);for(var c=o(l.prototype),d=0;d<c.length;d++){var m=c[d];v.prototype[m]||(v.prototype[m]=l.prototype[m])}function v(t){if(!(this instanceof v))return new v(t);f.call(this,t),l.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",y)}function y(){this.allowHalfOpen||this._writableState.ended||n.nextTick(w,this)}function w(t){t.end()}Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),v.prototype._destroy=function(t,e){this.push(null),this.end(),n.nextTick(e,t)}},,,,,,,,function(t,e,r){"use strict";(function(e,n){var o=r(13).Buffer,h=e.crypto||e.msCrypto;h&&h.getRandomValues?t.exports=function(t,e){if(t>4294967295)throw new RangeError("requested too many random bytes");var r=o.allocUnsafe(t);if(t>0)if(t>65536)for(var f=0;f<t;f+=65536)h.getRandomValues(r.slice(f,f+65536));else h.getRandomValues(r);if("function"==typeof e)return n.nextTick((function(){e(null,r)}));return r}:t.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,r(35),r(38))},function(t,e,r){"use strict";var n={};function o(code,t,e){e||(e=Error);var r=function(e){var r,n;function o(r,n,o){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,o))||this}return n=e,(r=o).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,o}(e);r.prototype.name=e.name,r.prototype.code=code,n[code]=r}function h(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(i){return String(i)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}o("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(t,e,r){var n,o,f,l;if("string"==typeof e&&(o="not ",e.substr(!f||f<0?0:+f,o.length)===o)?(n="must not be",e=e.replace(/^not /,"")):n="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))l="The ".concat(t," ").concat(n," ").concat(h(e,"type"));else{var c=function(t,e,r){return"number"!=typeof r&&(r=0),!(r+e.length>t.length)&&-1!==t.indexOf(e,r)}(t,".")?"property":"argument";l='The "'.concat(t,'" ').concat(c," ").concat(n," ").concat(h(e,"type"))}return l+=". Received type ".concat(typeof r)}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENT
2ED",(function(t){return"The "+t+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n},function(t,e,r){"use strict";(function(e){var n=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=d;var o=r(284),h=r(288);r(14)(d,o);for(var f=n(h.prototype),l=0;l<f.length;l++){var c=f[l];d.prototype[c]||(d.prototype[c]=h.prototype[c])}function d(t){if(!(this instanceof d))return new d(t);o.call(this,t),h.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",m)))}function m(){this._writableState.ended||e.nextTick(v,this)}function v(t){t.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(d.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(d.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this,r(38))},function(t,e,r){var n=r(13).Buffer;function o(t,e){this._block=n.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}o.prototype.update=function(data,t){"string"==typeof data&&(t=t||"utf8",data=n.from(data,t));for(var e=this._block,r=this._blockSize,o=data.length,h=this._len,f=0;f<o;){for(var l=h%r,c=Math.min(o-f,r-l),i=0;i<c;i++)e[l+i]=data[f+i];f+=c,(h+=c)%r==0&&this._update(e)}return this._len+=o,this},o.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,o=(r-n)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var h=this._hash();return t?h.toString(t):h},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=o},,function(t,e,r){"use strict";var n={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(t,e){var r=e.parent,n=e.slots,o=e.props,h=n(),f=h.default;void 0===f&&(f=[]);var l=h.placeholder;return r._isMounted?f:(r.$once("hook:mounted",(function(){r.$forceUpdate()})),o.placeholderTag&&(o.placeholder||l)?t(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||l):f.length>0?f.map((function(){return t(!1)})):t(!1))}};t.exports=n},function(t,e,r){"use strict";var n=r(55);r.d(e,"a",(function(){return n.a}));n.a.registerVersion("firebase","8.10.1","app"),n.a.SDK_VERSION="8.10.1"},,,,,,,,,,,,,,,function(t,e,r){"use strict";var n,o="object"==typeof Reflect?Reflect:null,h=o&&"function"==typeof o.apply?o.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};n=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var f=Number.isNaN||function(t){return t!=t};function l(){l.init.call(this)}t.exports=l,t.exports.once=function(t,e){return new Promise((function(r,n){function o(){void 0!==h&&t.removeListener("error",h),r([].slice.call(arguments))}var h;"error"!==e&&(h=function(r){t.removeListener(e,o),n(r)},t.once("error",h)),t.once(e,o)}))},l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var c=10;function d(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function m(t){return void 0===t._maxListeners?l.defaultMaxListeners:t._maxListeners}function v(t,e,r,n){var o,h,f,l;if(d(r),void 0===(h=t._events)?(h=t._events=Object.create(null),t._eventsCount=0):(void 0!==h.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),h=t._events),f=h[e]),void 0===f)f=h[e]=r,++t._eventsCount;else if("function"==typeof f?f=h[e]=n?[r,f]:[f,r]:n?f.unshift(r):f.push(r),(o=m(t))>0&&f.length>
vendor: 4,657 bytes, line 2
2o&&!f.warned){f.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+f.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=t,c.type=e,c.count=f.length,l=c,console&&console.warn&&console.warn(l)}return t}function y(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function w(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},o=y.bind(n);return o.listener=r,n.wrapFn=o,o}function M(t,e,r){var n=t._events;if(void 0===n)return[];var o=n[e];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(t){for(var e=new Array(t.length),i=0;i<e.length;++i)e[i]=t[i].listener||t[i];return e}(o):S(o,o.length)}function _(t){var e=this._events;if(void 0!==e){var r=e[t];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function S(t,e){for(var r=new Array(e),i=0;i<e;++i)r[i]=t[i];return r}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(t){if("number"!=typeof t||t<0||f(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");c=t}}),l.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||f(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},l.prototype.getMaxListeners=function(){return m(this)},l.prototype.emit=function(t){for(var e=[],i=1;i<arguments.length;i++)e.push(arguments[i]);var r="error"===t,n=this._events;if(void 0!==n)r=r&&void 0===n.error;else if(!r)return!1;if(r){var o;if(e.length>0&&(o=e[0]),o instanceof Error)throw o;var f=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw f.context=o,f}var l=n[t];if(void 0===l)return!1;if("function"==typeof l)h(l,this,e);else{var c=l.length,d=S(l,c);for(i=0;i<c;++i)h(d[i],this,e)}return!0},l.prototype.addListener=function(t,e){return v(this,t,e,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(t,e){return v(this,t,e,!0)},l.prototype.once=function(t,e){return d(e),this.on(t,w(this,t,e)),this},l.prototype.prependOnceListener=function(t,e){return d(e),this.prependListener(t,w(this,t,e)),this},l.prototype.removeListener=function(t,e){var r,n,o,i,h;if(d(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===e||r[i].listener===e){h=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(r,o),1===r.length&&(n[t]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",t,h||e)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(t){var e,r,i;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var n,o=Object.keys(r);for(i=0;i<o.length;++i)"removeListener"!==(n=o[i])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(i=e.length-1;i>=0;i--)this.removeListener(t,e[i]);return this},l.prototype.listeners=function(t){return M(this,t,!0)},l.prototype.rawListeners=function(t){return M(this,t,!1)},l.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):_.call(t,e)},l.prototype.listenerCount=_,l.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(t,e,r){(function(t){function r(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===r(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t}
vendor: 8,994 bytes, line 2
2,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===r(t)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===r(t)},e.isError=function(t){return"[object Error]"===r(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=t.isBuffer}).call(this,r(33).Buffer)},function(t,e,r){"use strict";var n=r(13).Buffer,o=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function h(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===o||!o(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=c,this.end=d,e=4;break;case"utf8":this.fillLast=l,e=4;break;case"base64":this.text=m,this.end=v,e=3;break;default:return this.write=y,void(this.end=w)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function f(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function l(t){var p=this.lastTotal-this.lastNeed,e=function(t,e,p){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==e?e:this.lastNeed<=t.length?(t.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,p,0,t.length),void(this.lastNeed-=t.length))}function c(t,i){if((t.length-i)%2==0){var e=t.toString("utf16le",i);if(e){var r=e.charCodeAt(e.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],e.slice(0,-1)}return e}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",i,t.length-1)}function d(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function m(t,i){var e=(t.length-i)%3;return 0===e?t.toString("base64",i):(this.lastNeed=3-e,this.lastTotal=3,1===e?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",i,t.length-e))}function v(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function y(t){return t.toString(this.encoding)}function w(t){return t&&t.length?this.write(t):""}e.StringDecoder=h,h.prototype.write=function(t){if(0===t.length)return"";var e,i;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i<t.length?e?e+this.text(t,i):this.text(t,i):e||""},h.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},h.prototype.text=function(t,i){var e=function(t,e,i){var r=e.length-1;if(r<i)return 0;var n=f(e[r]);if(n>=0)return n>0&&(t.lastNeed=n-1),n;if(--r<i||-2===n)return 0;if((n=f(e[r]))>=0)return n>0&&(t.lastNeed=n-2),n;if(--r<i||-2===n)return 0;if((n=f(e[r]))>=0)return n>0&&(2===n?n=0:t.lastNeed=n-3),n;return 0}(this,t,i);if(!this.lastNeed)return t.toString("utf8",i);this.lastTotal=e;var r=t.length-(e-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",i,r)},h.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,r){"use strict";var n=r(14),o=r(173),h=r(175),f=r(176),l=r(69);function c(t){l.call(this,"digest"),this._hash=t}n(c,l),c.prototype._update=function(data){this._hash.update(data)},c.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return"md5"===(t=t.toLowerCase())?new o:"rmd160"===t||"ripemd160"===t?new h:new c(f(t))}},function(t,e,r){(function(e){t.exports=function(a,b){for(var t=Math.min(a.length,b.length),r=new e(t),i=0;i<t;++i)r[i]=a[i]^b[i];return r}}).call(this,r(33).Buffer)},function(t,e,r){"use strict";var n=r(50),o=r(44);function h(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=h,h.prototype.update=function(t,e){if(t=n.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var r=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=n.join32(t,0,t.length-r,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this},h.prototype.digest=function(t){return this.update(this._pad()),o(null===this.pending),this._digest(t)},h.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,r=e-(t+this.padLength)%e,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=t>>>24&255,n[i++]=t>>>16&255,n[i++]=t>>>8&255,n[i++]=255&t}else for(n[i++]=255&t,n[i++]=t>>>8&255,n[i++]=t>>>16&255,n[i++]=t>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n}},function(t,e,r){"use strict";const n=r(14),o=r(188).Reporter,h=r(186).Buffer;function f(base,t){o.call(this,t),h.isBuffer(base)?(this.base=base,this.offset=0,this.length=base.length):this.error("Input not Buffer")}function l(t,e){if(Array.isArray(t))this.length=0,this.value=t.map((function(t){return l.isEncoderBuffer(t)||(t=new l(t,e)),this.length+=t.length,t}),this);else if("number"==typeof t){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"==typeof t)this.value=t,this.length=h.byteLength(t);else{if(!h.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}n(f,o),e.DecoderBuffer=f,f.isDecoderBuffer=function(data){if(data instanceof f)return!0;return"object"==typeof data&&h.isBuffer(data.base)&&"DecoderBuffer"===data.constructor.name&&"number"==typeof data.offset&&"number"==typeof data.length&&"function"==typeof data.save&&"function"==typeof data.restore&&"function"==typeof data.isEmpty&&"function"==typeof data.readUInt8&&"function"==typeof data.skip&&"function"==typeof data.raw},f.prototype.save=function(){return{offset:this.offset,reporter:o.prototype.save.call(this)}},f.prototype.restore=function(t){const e=new f(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,o.prototype.restore.call(this,t.reporter),e},f.prototype.isEmpty=function(){return this.offset===this.length},f.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},f.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");const r=new f(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+t,this.offset+=t,r},f.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.EncoderBuffer=l,l.isEncoderBuffer=function(data){if(data instanceof l)return!0;return"object"==typeof data&&"EncoderBuffer"===data.constructor.name&&"number"==typeof data.length&&"function"==typeof data.join},l.prototype.join=function(t,e){return t||(t=h.alloc(this.length)),e||(e=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(r){r.join(t,e),e+=r.length})):("number"==typeof this.value?t[e]=this.value:"string"==typeof this.value?t.write(this.value,e):h.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length)),t}},,,,,,function(t,e,r){var n;"undefined"!=typeof window&&(n=function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}
vendor: 570 bytes, line 2
2),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(object,t){return Object.prototype.hasOwnProperty.call(object,t)},r.p="/dist/",r(r.s="./src/hls.ts")}({
vendor: 2,794 bytes, line 2
2"./node_modules/eventemitter3/index.js":function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,o="~";function h(){}function f(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function l(t,e,r,n,h){if("function"!=typeof r)throw new TypeError("The listener must be a function");var l=new f(r,n||t,h),c=o?o+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],l]:t._events[c].push(l):(t._events[c]=l,t._eventsCount++),t}function c(t,e){0==--t._eventsCount?t._events=new h:delete t._events[e]}function d(){this._events=new h,this._eventsCount=0}Object.create&&(h.prototype=Object.create(null),(new h).__proto__||(o=!1)),d.prototype.eventNames=function(){var t,e,r=[];if(0===this._eventsCount)return r;for(e in t=this._events)n.call(t,e)&&r.push(o?e.slice(1):e);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},d.prototype.listeners=function(t){var e=o?o+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,n=r.length,h=new Array(n);i<n;i++)h[i]=r[i].fn;return h},d.prototype.listenerCount=function(t){var e=o?o+t:t,r=this._events[e];return r?r.fn?1:r.length:0},d.prototype.emit=function(t,e,r,n,h,f){var l=o?o+t:t;if(!this._events[l])return!1;var c,i,d=this._events[l],m=arguments.length;if(d.fn){switch(d.once&&this.removeListener(t,d.fn,void 0,!0),m){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,e),!0;case 3:return d.fn.call(d.context,e,r),!0;case 4:return d.fn.call(d.context,e,r,n),!0;case 5:return d.fn.call(d.context,e,r,n,h),!0;case 6:return d.fn.call(d.context,e,r,n,h,f),!0}for(i=1,c=new Array(m-1);i<m;i++)c[i-1]=arguments[i];d.fn.apply(d.context,c)}else{var v,y=d.length;for(i=0;i<y;i++)switch(d[i].once&&this.removeListener(t,d[i].fn,void 0,!0),m){case 1:d[i].fn.call(d[i].context);break;case 2:d[i].fn.call(d[i].context,e);break;case 3:d[i].fn.call(d[i].context,e,r);break;case 4:d[i].fn.call(d[i].context,e,r,n);break;default:if(!c)for(v=1,c=new Array(m-1);v<m;v++)c[v-1]=arguments[v];d[i].fn.apply(d[i].context,c)}}return!0},d.prototype.on=function(t,e,r){return l(this,t,e,r,!1)},d.prototype.once=function(t,e,r){return l(this,t,e,r,!0)},d.prototype.removeListener=function(t,e,r,n){var h=o?o+t:t;if(!this._events[h])return this;if(!e)return c(this,h),this;var f=this._events[h];if(f.fn)f.fn!==e||n&&!f.once||r&&f.context!==r||c(this,h);else{for(var i=0,l=[],d=f.length;i<d;i++)(f[i].fn!==e||n&&!f[i].once||r&&f[i].context!==r)&&l.push(f[i]);l.length?this._events[h]=1===l.length?l[0]:l:c(this,h)}return this},d.prototype.removeAllListeners=function(t){var e;return t?(e=o?o+t:t,this._events[e]&&c(this,e)):(this._events=new h,this._eventsCount=0),this},d.prototype.off=d.prototype.removeListener,d.prototype.addListener=d.prototype.on,d.prefixed=o,d.EventEmitter=d,t.exports=d},
vendor: 1,729 bytes, line 2
2"./node_modules/url-toolkit/src/url-toolkit.js":function(t,e,r){var n,o,h,f,l;n=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#.*)?$/,o=/^([^\/?#]*)(.*)$/,h=/(?:\/|^)\.(?=\/)/g,f=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,l={buildAbsoluteURL:function(t,e,r){if(r=r||{},t=t.trim(),!(e=e.trim())){if(!r.alwaysNormalize)return t;var n=l.parseURL(t);if(!n)throw new Error("Error trying to parse base URL.");return n.path=l.normalizePath(n.path),l.buildURLFromParts(n)}var h=l.parseURL(e);if(!h)throw new Error("Error trying to parse relative URL.");if(h.scheme)return r.alwaysNormalize?(h.path=l.normalizePath(h.path),l.buildURLFromParts(h)):e;var f=l.parseURL(t);if(!f)throw new Error("Error trying to parse base URL.");if(!f.netLoc&&f.path&&"/"!==f.path[0]){var c=o.exec(f.path);f.netLoc=c[1],f.path=c[2]}f.netLoc&&!f.path&&(f.path="/");var d={scheme:f.scheme,netLoc:h.netLoc,path:null,params:h.params,query:h.query,fragment:h.fragment};if(!h.netLoc&&(d.netLoc=f.netLoc,"/"!==h.path[0]))if(h.path){var m=f.path,v=m.substring(0,m.lastIndexOf("/")+1)+h.path;d.path=l.normalizePath(v)}else d.path=f.path,h.params||(d.params=f.params,h.query||(d.query=f.query));return null===d.path&&(d.path=r.alwaysNormalize?l.normalizePath(h.path):h.path),l.buildURLFromParts(d)},parseURL:function(t){var e=n.exec(t);return e?{scheme:e[1]||"",netLoc:e[2]||"",path:e[3]||"",params:e[4]||"",query:e[5]||"",fragment:e[6]||""}:null},normalizePath:function(path){for(path=path.split("").reverse().join("").replace(h,"");path.length!==(path=path.replace(f,"")).length;);return path.split("").reverse().join("")},buildURLFromParts:function(t){return t.scheme+t.netLoc+t.path+t.params+t.query+t.fragment}},t.exports=l},
vendor: 2,726 bytes, line 2
2"./node_modules/webworkify-webpack/index.js":function(t,e,r){function n(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.i=function(t){return t},r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(object,t){return Object.prototype.hasOwnProperty.call(object,t)},r.p="/",r.oe=function(t){throw console.error(t),t};var n=r(r.s=ENTRY_MODULE);return n.default||n}function o(t){return(t+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function h(t,e,n){var h={};h[n]=[];var f=e.toString(),l=f.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!l)return h;for(var c,d=l[1],m=new RegExp("(\\\\n|\\W)"+o(d)+"\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)","g");c=m.exec(f);)"dll-reference"!==c[3]&&h[n].push(c[3]);for(m=new RegExp("\\("+o(d)+'\\("(dll-reference\\s([\\.|\\-|\\+|\\w|/|@]+))"\\)\\)\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)',"g");c=m.exec(f);)t[c[2]]||(h[n].push(c[1]),t[c[2]]=r(c[1]).m),h[c[2]]=h[c[2]]||[],h[c[2]].push(c[4]);for(var v,y=Object.keys(h),i=0;i<y.length;i++)for(var w=0;w<h[y[i]].length;w++)v=h[y[i]][w],isNaN(1*v)||(h[y[i]][w]=1*h[y[i]][w]);return h}function f(t){return Object.keys(t).reduce((function(e,r){return e||t[r].length>0}),!1)}t.exports=function(t,e){e=e||{};var o={main:r.m},l=e.all?{main:Object.keys(o.main)}:function(t,e){for(var r={main:[e]},n={main:[]},o={main:{}};f(r);)for(var l=Object.keys(r),i=0;i<l.length;i++){var c=l[i],d=r[c].pop();if(o[c]=o[c]||{},!o[c][d]&&t[c][d]){o[c][d]=!0,n[c]=n[c]||[],n[c].push(d);for(var m=h(t,t[c][d],c),v=Object.keys(m),y=0;y<v.length;y++)r[v[y]]=r[v[y]]||[],r[v[y]]=r[v[y]].concat(m[v[y]])}}return n}(o,t),c="";Object.keys(l).filter((function(t){return"main"!==t})).forEach((function(t){for(var e=0;l[t][e];)e++;l[t].push(e),o[t][e]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",c=c+"var "+t+" = ("+n.toString().replace("ENTRY_MODULE",JSON.stringify(e))+")({"+l[t].map((function(e){return JSON.stringify(e)+": "+o[t][e].toString()})).join(",")+"});\n"})),c=c+"new (("+n.toString().replace("ENTRY_MODULE",JSON.stringify(t))+")({"+l.main.map((function(t){return JSON.stringify(t)+": "+o.main[t].toString()})).join(",")+"}))(self);";var d=new window.Blob([c],{type:"text/javascript"});if(e.bare)return d;var m=(window.URL||window.webkitURL||window.mozURL||window.msURL).createObjectURL(d),v=new window.Worker(m);return v.objectURL=m,v}},
vendor: 3,248 bytes, line 2
2"./src/crypt/decrypter.js":function(t,e,r){"use strict";r.r(e);var n=function(){function t(t,e){this.subtle=t,this.aesIV=e}return t.prototype.decrypt=function(data,t){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,data)},t}(),o=function(){function t(t,e){this.subtle=t,this.key=e}return t.prototype.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},t}(),h=function(){function t(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.initTable()}var e=t.prototype;return e.uint8ArrayToUint32Array_=function(t){for(var view=new DataView(t),e=new Uint32Array(4),i=0;i<4;i++)e[i]=view.getUint32(4*i);return e},e.initTable=function(){var t=this.sBox,e=this.invSBox,r=this.subMix,n=r[0],o=r[1],h=r[2],f=r[3],l=this.invSubMix,c=l[0],d=l[1],m=l[2],v=l[3],y=new Uint32Array(256),w=0,M=0,i=0;for(i=0;i<256;i++)y[i]=i<128?i<<1:i<<1^283;for(i=0;i<256;i++){var _=M^M<<1^M<<2^M<<3^M<<4;_=_>>>8^255&_^99,t[w]=_,e[_]=w;var S=y[w],E=y[S],k=y[E],T=257*y[_]^16843008*_;n[w]=T<<24|T>>>8,o[w]=T<<16|T>>>16,h[w]=T<<8|T>>>24,f[w]=T,T=16843009*k^65537*E^257*S^16843008*w,c[_]=T<<24|T>>>8,d[_]=T<<16|T>>>16,m[_]=T<<8|T>>>24,v[_]=T,w?(w=S^y[y[y[k^S]]],M^=y[y[M]]):w=M=1}},e.expandKey=function(t){for(var e=this.uint8ArrayToUint32Array_(t),r=!0,n=0;n<e.length&&r;)r=e[n]===this.key[n],n++;if(!r){this.key=e;var o=this.keySize=e.length;if(4!==o&&6!==o&&8!==o)throw new Error("Invalid aes key size="+o);var h,f,l,c,d=this.ksRows=4*(o+6+1),m=this.keySchedule=new Uint32Array(d),v=this.invKeySchedule=new Uint32Array(d),y=this.sBox,w=this.rcon,M=this.invSubMix,_=M[0],S=M[1],E=M[2],k=M[3];for(h=0;h<d;h++)h<o?l=m[h]=e[h]:(c=l,h%o==0?(c=y[(c=c<<8|c>>>24)>>>24]<<24|y[c>>>16&255]<<16|y[c>>>8&255]<<8|y[255&c],c^=w[h/o|0]<<24):o>6&&h%o==4&&(c=y[c>>>24]<<24|y[c>>>16&255]<<16|y[c>>>8&255]<<8|y[255&c]),m[h]=l=(m[h-o]^c)>>>0);for(f=0;f<d;f++)h=d-f,c=3&f?m[h]:m[h-4],v[f]=f<4||h<=4?c:_[y[c>>>24]]^S[y[c>>>16&255]]^E[y[c>>>8&255]]^k[y[255&c]],v[f]=v[f]>>>0}},e.networkToHostOrderSwap=function(t){return t<<24|(65280&t)<<8|(16711680&t)>>8|t>>>24},e.decrypt=function(t,e,r,n){for(var o,h,f,l,c,d,m,v,y,w,M,_,S,i,E,k,T,A=this.keySize+6,R=this.invKeySchedule,x=this.invSBox,O=this.invSubMix,I=O[0],L=O[1],D=O[2],C=O[3],P=this.uint8ArrayToUint32Array_(r),B=P[0],N=P[1],j=P[2],F=P[3],U=new Int32Array(t),K=new Int32Array(U.length),z=this.networkToHostOrderSwap;e<U.length;){for(y=z(U[e]),w=z(U[e+1]),M=z(U[e+2]),_=z(U[e+3]),c=y^R[0],d=_^R[1],m=M^R[2],v=w^R[3],S=4,i=1;i<A;i++)o=I[c>>>24]^L[d>>16&255]^D[m>>8&255]^C[255&v]^R[S],h=I[d>>>24]^L[m>>16&255]^D[v>>8&255]^C[255&c]^R[S+1],f=I[m>>>24]^L[v>>16&255]^D[c>>8&255]^C[255&d]^R[S+2],l=I[v>>>24]^L[c>>16&255]^D[d>>8&255]^C[255&m]^R[S+3],c=o,d=h,m=f,v=l,S+=4;o=x[c>>>24]<<24^x[d>>16&255]<<16^x[m>>8&255]<<8^x[255&v]^R[S],h=x[d>>>24]<<24^x[m>>16&255]<<16^x[v>>8&255]<<8^x[255&c]^R[S+1],f=x[m>>>24]<<24^x[v>>16&255]<<16^x[c>>8&255]<<8^x[255&d]^R[S+2],l=x[v>>>24]<<24^x[c>>16&255]<<16^x[d>>
28&255]<<8^x[255&m]^R[S+3],S+=3,K[e]=z(o^B),K[e+1]=z(l^N),K[e+2]=z(f^j),K[e+3]=z(h^F),B=y,N=w,j=M,F=_,e+=4}return n?(E=K.buffer,k=E.byteLength,(T=k&&new DataView(E).getUint8(k-1))?E.slice(0,k-T):E):K.buffer},e.destroy=function(){this.key=void 0,this.keySize=void 0,this.ksRows=void 0,this.sBox=void 0,this.invSBox=void 0,this.subMix=void 0,this.invSubMix=void 0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.rcon=void 0},t}(),f=r("./src/errors.ts"),l=r("./src/utils/logger.js"),c=r("./src/events.js"),d=r("./src/utils/get-self-scope.js"),m=Object(d.getSelfScope)(),v=function(){function t(t,e,r){var n=(void 0===r?{}:r).removePKCS7Padding,o=void 0===n||n;if(this.logEnabled=!0,this.observer=t,this.config=e,this.removePKCS7Padding=o,o)try{var h=m.crypto;h&&(this.subtle=h.subtle||h.webkitSubtle)}catch(t){}this.disableWebCrypto=!this.subtle}var e=t.prototype;return e.isSync=function(){return this.disableWebCrypto&&this.config.enableSoftwareAES},e.decrypt=function(data,t,e,r){var f=this;if(this.disableWebCrypto&&this.config.enableSoftwareAES){this.logEnabled&&(l.logger.log("JS AES decrypt"),this.logEnabled=!1);var c=this.decryptor;c||(this.decryptor=c=new h),c.expandKey(t),r(c.decrypt(data,0,e,this.removePKCS7Padding))}else{this.logEnabled&&(l.logger.log("WebCrypto AES decrypt"),this.logEnabled=!1);var d=this.subtle;this.key!==t&&(this.key=t,this.fastAesKey=new o(d,t)),this.fastAesKey.expandKey().then((function(o){new n(d,e).decrypt(data,o).catch((function(n){f.onWebCryptoError(n,data,t,e,r)})).then((function(t){r(t)}))})).catch((function(n){f.onWebCryptoError(n,data,t,e,r)}))}},e.onWebCryptoError=function(t,data,e,r,n){this.config.enableSoftwareAES?(l.logger.log("WebCrypto Error, disable WebCrypto API"),this.disableWebCrypto=!0,this.logEnabled=!0,this.decrypt(data,e,r,n)):(l.logger.error("decrypting error : "+t.message),this.observer.trigger(c.default.ERROR,{type:f.ErrorTypes.MEDIA_ERROR,details:f.ErrorDetails.FRAG_DECRYPT_ERROR,fatal:!0,reason:t.message}))},e.destroy=function(){var t=this.decryptor;t&&(t.destroy(),this.decryptor=void 0)},t}();e.default=v},
vendor: 51,607 bytes, line 2
2"./src/demux/demuxer-inline.js":function(t,e,r){"use strict";r.r(e);var n=r("./src/events.js"),o=r("./src/errors.ts"),h=r("./src/crypt/decrypter.js"),f=r("./src/polyfills/number.js"),l=r("./src/utils/logger.js"),c=r("./src/utils/get-self-scope.js");function d(data,t){return 255===data[t]&&240==(246&data[t+1])}function m(data,t){return 1&data[t+1]?7:9}function v(data,t){return(3&data[t+3])<<11|data[t+4]<<3|(224&data[t+5])>>>5}function y(data,t){return!!(t+1<data.length&&d(data,t))}function w(data,t){if(y(data,t)){var e=m(data,t);if(t+e>=data.length)return!1;var r=v(data,t);if(r<=e)return!1;var n=t+r;if(n===data.length||n+1<data.length&&d(data,n))return!0}return!1}function M(track,t,data,e,r){if(!track.samplerate){var h=function(t,data,e,r){var h,f,c,d,m,v=navigator.userAgent.toLowerCase(),y=r,w=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];if(h=1+((192&data[e+2])>>>6),!((f=(60&data[e+2])>>>2)>w.length-1))return d=(1&data[e+2])<<2,d|=(192&data[e+3])>>>6,l.logger.log("manifest codec:"+r+",ADTS data:type:"+h+",sampleingIndex:"+f+"["+w[f]+"Hz],channelConfig:"+d),/firefox/i.test(v)?f>=6?(h=5,m=new Array(4),c=f-3):(h=2,m=new Array(2),c=f):-1!==v.indexOf("android")?(h=2,m=new Array(2),c=f):(h=5,m=new Array(4),r&&(-1!==r.indexOf("mp4a.40.29")||-1!==r.indexOf("mp4a.40.5"))||!r&&f>=6?c=f-3:((r&&-1!==r.indexOf("mp4a.40.2")&&(f>=6&&1===d||/vivaldi/i.test(v))||!r&&1===d)&&(h=2,m=new Array(2)),c=f)),m[0]=h<<3,m[0]|=(14&f)>>1,m[1]|=(1&f)<<7,m[1]|=d<<3,5===h&&(m[1]|=(14&c)>>1,m[2]=(1&c)<<7,m[2]|=8,m[3]=0),{config:m,samplerate:w[f],channelCount:d,codec:"mp4a.40."+h,manifestCodec:y};t.trigger(n.default.ERROR,{type:o.ErrorTypes.MEDIA_ERROR,details:o.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+f})}(t,data,e,r);track.config=h.config,track.samplerate=h.samplerate,track.channelCount=h.channelCount,track.codec=h.codec,track.manifestCodec=h.manifestCodec,l.logger.log("parsed codec:"+track.codec+",rate:"+h.samplerate+",nb channel:"+h.channelCount)}}function _(t){return 9216e4/t}function S(track,data,t,e,r){var header=function(data,t,e,r,n){var o,h,f=data.length;if(o=m(data,t),h=v(data,t),(h-=o)>0&&t+o+h<=f)return{headerLength:o,frameLength:h,stamp:e+r*n}}(data,t,e,r,_(track.samplerate));if(header){var n=header.stamp,o=header.headerLength,h=header.frameLength,f={unit:data.subarray(t+o,t+o+h),pts:n,dts:n};return track.samples.push(f),{sample:f,length:h+o}}}var E=r("./src/demux/id3.js"),k=function(){function t(t,e,r){this.observer=t,this.config=r,this.remuxer=e}var e=t.prototype;return e.resetInitSegment=function(t,e,r,n){this._audioTrack={container:"audio/adts",type:"audio",id:0,sequenceNumber:0,isAAC:!0,samples:[],len:0,manifestCodec:e,duration:n,inputTimeScale:9e4}},e.resetTimeStamp=function(){},t.probe=function(data){if(!data)return!1;for(var t=(E.default.getID3Data(data,0)||[]).length,e=data.length;t<e;t++)if(w(data,t))return l.logger.log("ADTS sync word found !"),!0;return!1},e.append=function(data,t,e,r){for(var track=this._audioTrack,n=E.default.getID3Data(data,0)||[],o=E.default.getTimeStamp(n),h=Object(f.isFiniteNumber)(o)?90*o:9e4*t,c=0,d=h,m=data.length,v=n.length,w=[{pts:d,dts:d,data:n}];v<m-1;)if(y(data,v)&&v+5<m){M(track,this.observer,data,v,track.manifestCodec);var _=S(track,data,v,h,c);if(!_){l.logger.log("Unable to parse AAC frame");break}v+=_.length,d=_.sample.pts,c++}else E.default.isHeader(data,v)?(n=E.default.getID3Data(data,v),w.push({pts:d,dts:d,data:n}),v+=n.length):v++;this.remuxer.remux(track,{samples:[]},{samples:w,inputTimeScale:9e4},{samples:[]},t,e,r)},e.destroy=function(){},t}(),T=r("./src/demux/mp4demuxer.js"),A={BitratesMap:[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],SamplingRateMap:[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],SamplesCoefficients:[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],BytesInSlot:[0,1,1,4],appendFrame:function(track,data,t,e,r){if(!(t+24>data.length)){var header=this.parseHeader(data,t);if(header&&t+header.frameLength<=data.length){var n=e+r*(9e4*header.samplesPerFrame/header.sampleRate),o={unit:data.subarray(t,t+header.frameLength),pts:n,dts:n};return track.config=[],track.channelCount=header.channelCount,track.samplerate=header.sampleRate,track.samples.push(o),{sample:o,length:header.frameLength}}}},parseHeader:function(data,t){var e=data[t+1]>>3&3,r=data[t+1]>>1&3,n=data[t+2]>>4&15,o=data[t+2]>>2&3,h=data[t+2]>>1&1;if(1!==e&&0!==n&&15!==n&&3!==o){var f=3===e?3-r:3===r?3:4,l=1e3*A.BitratesMap[14*f+n-1],c=3===e?0:2===e?1:2,d=A.SamplingRateMap[3*c+o],m=data[t+3]>>6==3?1:2,v=A.SamplesCoefficients[e][r],y=A.BytesInSlot[r],w=8*v*y;return{sampleRate:d,channelCount:m,frameLength:parseInt(v*l/d+h,10)*y,samplesPerFrame:w}}},isHeaderPattern:function(data,t){return 255===data[t]&&224==(224&data[t+1])&&0!=(6&data[t+1])},isHeader:function(data,t){return!!(t+1<data.length&&this.isHeaderPattern(data,t))},probe:function(data,t){if(t+1<data.length&&this.isHeaderPattern(data,t)){var header=this.parseHeader(data,t),e=4;header&&header.frameLength&&(e=header.frameLength);var r=t+e;if(r===data.length||r+1<data.length&&this.isHeaderPattern(data,r))return!0}return!1}},R=A,x=function(){function t(data){this.data=data,this.bytesAvailable=data.byteLength,this.word=0,this.bitsAvailable=0}var e=t.prototype;return e.loadWord=function(){var data=this.data,t=this.bytesAvailable,e=data.byteLength-t,r=new Uint8Array(4),n=Math.min(4,t);if(0===n)throw new Error("no bytes available");r.set(data.subarray(e,e+n)),this.word=new DataView(r.buffer).getUint32(0),this.bitsAvailable=8*n,this.bytesAvailable-=n},e.skipBits=function(t){var e;this.bitsAvailable>t?(this.word<<=t,this.bitsAvailable-=t):(t-=this.bitsAvailable,t-=(e=t>>3)>>3,this.bytesAvailable-=e,this.loadWord(),this.word<<=t,this.bitsAvailable-=t)},e.readBits=function(t){var e=Math.min(this.bitsAvailable,t),r=this.word>>>32-e;return t>32&&l.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=e,this.bitsAvailable>0?this.word<<=e:this.bytesAvailable>0&&this.loadWord(),(e=t-e)>0&&this.bitsAvailable?r<<e|this.readBits(e):r},e.skipLZ=function(){var t;for(t=0;t<this.bitsAvailable;++t)if(0!=(this.word&2147483648>>>t))return this.word<<=t,this.bitsAvailable-=t,t;return this.loadWord(),t+this.skipLZ()},e.skipUEG=function(){this.skipBits(1+this.skipLZ())},e.skipEG=function(){this.skipBits(1+this.skipLZ())},e.readUEG=function(){var t=this.skipLZ();return this.readBits(t+1)-1},e.readEG=function(){var t=this.readUEG();return 1&t?1+t>>>1:-1*(t>>>1)},e.readBoolean=function(){return 1===this.readBits(1)},e.readUByte=function(){return this.readBits(8)},e.readUShort=function(){return this.readBits(16)},e.readUInt=function(){return this.readBits(32)},e.skipScalingList=function(t){var e,r=8,n=8;for(e=0;e<t;e++)0!==n&&(n=(r+this.readEG()+256)%256),r=0===n?r:n},e.readSPS=function(){var t,e,r,n,o,h,i,f=0,l=0,c=0,d=0,m=this.readUByte.bind(this),v=this.readBits.bind(this),y=this.readUEG.bind(this),w=this.readBoolean.bind(this),M=this.skipBits.bind(this),_=this.skipEG.bind(this),S=this.skipUEG.bind(this),E=this.skipScalingList.bind(this);if(m(),t=m(),v(5),M(3),m(),S(),100===t||110===t||122===t||244===t||44===t||83===t||86===t||118===t||128===t){var k=y();if(3===k&&M(1),S(),S(),M(1),w())for(h=3!==k?8:12,i=0;i<h;i++)w()&&E(i<6?16:64)}S();var T=y();if(0===T)y();else if(1===T)for(M(1),_(),_(),e=y(),i=0;i<e;i++)_();S(),M(1),r=y(),n=y(),0===(o=v(1))&&M(1),M(1),w()&&(f=y(),l=y(),c=y(),d=y());var A=[1,1];if(w()&&w())switch(m()){case 1:A=[1,1];break;case 2:A=[12,11];break;case 3:A=[10,11];break;case 4:A=[16,11];break;case 5:A=[40,33];break;case 6:A=[24,11];break;case 7:A=[20,11];break;case 8:A=[32,11];break;case 9:A=[80,33];break;case 10:A=[18,11];break;case 11:A=[15,11];break;case 12:A=[64,33];break;case 13:A=[160,99];break;case 14:A=[4,3];break;case 15:A=[3,2];break;case 16:A=[2,1];break;case 255:A=[m()<<8|m(),m()<<8|m()]}return{width:Math.ceil(16*(r+1)-2*f-2*l),height:(2-o)*(n+1)*16-(o?2:4)*(c+d),pixelRatio:A}},e.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},t}(),O=function(){function t(t,e,r,n){this.decryptdata=r,this.discardEPB=n,this.decrypter=new h.default(t,e,{removePKCS7Padding:!1})}var e=t.prototype;return e.decryptBuffer=function(t,e){this.decrypter.decrypt(t,this.decryptdata.key.buffer,this.decryptdata.iv.buffer,e)},e.decryptAacSample=function(t,e,r,n){var o=t[e].unit,h=o.subarray(16,o.length-o.length%16),f=h.buffer.slice(h.byteOffset,h.byteOffset+h.length),l=this;this.decryptBuffer(f,(function(h){h=new Uint8Array(h),o.set(h,16),n||l.decryptAacSamples(t,e+1,r)}))},e.decryptAacSamples=function(t,e,r){for(;;e++){if(e>=t.length)return void r();if(!(t[e].unit.length<32)){var n=this.decrypter.isSync();if(this.decryptAacSample(t,e,r,n),!n)return}}},e.getAvcEncryptedData=function(t){for(var e=16*Math.floor((t.length-48)/160)+16,r=new Int8Array(e),n=0,o=32;o<=t.length-16;o+=160,n+=16)r.set(t.subarray(o,o+16),n);return r},e.getAvcDecryptedUnit=function(t,e){e=new Uint8Array(e);for(var r=0,n=32;n<=t.length-16;n+=160,r+=16)t.set(e.subarray(r,r+16),n);return t},e.decryptAvcSample=function(t,e,r,n,o,h){var f=this.discardEPB(o.data),l=this.getAvcEncryptedData(f),c=this;this.decryptBuffer(l.buffer,(function(l){o.data=c.getAvcDecryptedUnit(f,l),h||c.decryptAvcSamples(t,e,r+1,n)}))},e.decryptAvcSamples=function(t,e,r,n){for(;;e++,r=0){if(e>=t.length)return void n();for(var o=t[e].units;!(r>=o.length);r++){var h=o[r];if(!(h.data.length<=48||1!==h.type&&5!==h.type)){var f=this.decrypter.isSync();if(this.decryptAvcSample(t,e,r,n,h,f),!f)return}}}},t}(),I={video:1,audio:2,id3:3,text:4},L=function(){function t(t,e,r,n){this.observer=t,this.config=r,this.typeSupported=n,this.remuxer=e,this.sampleAes=null,this.pmtUnknownTypes={}}var e=t.prototype;return e.setDecryptData=function(t){null!=t&&null!=t.key&&"SAMPLE-AES"===t.method?this.sampleAes=new O(this.observer,this.config,t,this.discardEPB):this.sampleAes=null},t.probe=function(data){var e=t._syncOffset(data);return!(e<0||(e&&l.logger.warn("MPEG2-TS detected but first sync word found @ offset "+e+", junk ahead ?"),0))},t._syncOffset=function(data){for(var t=Math.min(1e3,data.length-564),i=0;i<t;){if(71===data[i]&&71===data[i+188]&&71===data[i+376])return i;i++}return-1},t.createTrack=function(t,e){return{container:"video"===t||"audio"===t?"video/mp2t":void 0,type:t,id:I[t],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:"video"===t?0:void 0,isAAC:"audio"===t||void 0,duration:"audio"===t?e:void 0}},e.resetInitSegment=function(e,r,n,o){this.pmtParsed=!1,this._pmtId=-1,this.pmtUnknownTypes={},this._avcTrack=t.createTrack("video",o),this._audioTrack=t.createTrack("audio",o),this._id3Track=t.createTrack("id3",o),this._txtTrack=t.createTrack("text",o),this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=r,this.videoCodec=n,this._duration=o},e.resetTimeStamp=function(){},e.append=function(data,e,r,h){var f,c,d,m,v,y=data.length,w=!1;this.pmtUnknownTypes={},this.contiguous=r;var M=this.pmtParsed,_=this._avcTrack,S=this._audioTrack,E=this._id3Track,k=_.pid,T=S.pid,A=E.pid,R=this._pmtId,x=_.pesData,O=S.pesData,I=E.pesData,L=this._parsePAT,D=this._parsePMT.bind(this),C=this._parsePES,P=this._parseAVCPES.bind(this),B=this._parseAACPES.bind(this),N=this._parseMPEGPES.bind(this),j=this._parseID3PES.bind(this),F=t._syncOffset(data);for(y-=(y+F)%188,f=F;f<y;f+=188)if(71===data[f]){if(c=!!(64&data[f+1]),d=((31&data[f+1])<<8)+data[f+2],(48&data[f+3])>>4>1){if((m=f+5+data[f+4])===f+188)continue}else m=f+4;switch(d){case k:c&&(x&&(v=C(x))&&P(v,!1),x={data:[],size:0}),x&&(x.data.push(data.subarray(m,f+188)),x.size+=f+188-m);break;case T:c&&(O&&(v=C(O))&&(S.isAAC?B(v):N(v)),O={data:[],size:0}),O&&(O.data.push(data.subarray(m,f+188)),O.size+=f+188-m);break;case A:c&&(I&&(v=C(I))&&j(v),I={data:[],size:0}),I&&(I.data.push(data.subarray(m,f+188)),I.size+=f+188-m);break;case 0:c&&(m+=data[m]+1),R=this._pmtId=L(data,m);break;case R:c&&(m+=data[m]+1);var U=D(data,m,!0===this.typeSupported.mpeg||!0===this.typeSupported.mp3,null!=this.sampleAes);(k=U.avc)>0&&(_.pid=k),(T=U.audio)>0&&(S.pid=T,S.isAAC=U.isAAC),(A=U.id3)>0&&(E.pid=A),w&&!M&&(l.logger.log("reparse from beginning"),w=!1,f=F-188),M=this.pmtParsed=!0;break;case 17:case 8191:break;default:w=!0}}else this.observer.trigger(n.default.ERROR,{type:o.ErrorTypes.MEDIA_ERROR,details:o.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});x&&(v=C(x))?(P(v,!0),_.pesData=null):_.pesData=x,O&&(v=C(O))?(S.isAAC?B(v):N(v),S.pesData=null):(O&&O.size&&l.logger.log("last AAC PES packet truncated,might overlap between fragments"),S.pesData=O),I&&(v=C(I))?(j(v),E.pesData=null):E.pesData=I,null==this.sampleAes?this.remuxer.remux(S,_,E,this._txtTrack,e,r,h):this.decryptAndRemux(S,_,E,this._txtTrack,e,r,h)},e.decryptAndRemux=function(t,e,r,n,o,h,f){if(t.samples&&t.isAAC){var l=this;this.sampleAes.decryptAacSamples(t.samples,0,(function(){l.decryptAndRemuxAvc(t,e,r,n,o,h,f)}))}else this.decryptAndRemuxAvc(t,e,r,n,o,h,f)},e.decryptAndRemuxAvc=function(t,e,r,n,o,h,f){if(e.samples){var l=this;this.sampleAes.decryptAvcSamples(e.samples,0,0,(function(){l.remuxer.remux(t,e,r,n,o,h,f)}))}else this.remuxer.remux(t,e,r,n,o,h,f)},e.destroy=function(){this._initPTS=this._initDTS=void 0,this._duration=0},e._parsePAT=function(data,t){return(31&data[t+10])<<8|data[t+11]},e._trackUnknownPmt=function(t,e,r){var n=this.pmtUnknownTypes[t]||0;return 0===n&&(this.pmtUnknownTypes[t]=0,e.call(l.logger,r)),this.pmtUnknownTypes[t]++,n},e._parsePMT=function(data,t,e,r){var n,o,h={audio:-1,avc:-1,id3:-1,isAAC:!0};for(n=t+3+((15&data[t+1])<<8|data[t+2])-4,t+=12+((15&data[t+10])<<8|data[t+11]);t<n;){switch(o=(31&data[t+1])<<8|data[t+2],data[t]){case 207:if(!r){this._trackUnknownPmt(data[t],l.logger.warn,"ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:-1===h.audio&&(h.audio=o);break;case 21:-1===h.id3&&(h.id3=o);break;case 219:if(!r){this._trackUnknownPmt(data[t],l.logger.warn,"H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:-1===h.avc&&(h.avc=o);break;case 3:case 4:e?-1===h.audio&&(h.audio=o,h.isAAC=!1):this._trackUnknownPmt(data[t],l.logger.warn,"MPEG audio found, not supported in this browser");break;case 36:this._trackUnknownPmt(data[t],l.logger.warn,"Unsupported HEVC stream type found");break;default:this._trackUnknownPmt(data[t],l.logger.log,"Unknown stream type:"+data[t])}t+=5+((15&data[t+3])<<8|data[t+4])}return h},e._parsePES=function(t){var e,r,n,o,h,f,c,d,i=0,data=t.data;if(!t||0===t.size)return null;for(;data[0].length<19&&data.length>1;){var m=new Uint8Array(data[0].length+data[1].length);m.set(data[0]),m.set(data[1],data[0].length),data[0]=m,data.splice(1,1)}if(1===((e=data[0])[0]<<16)+(e[1]<<8)+e[2]){if((n=(e[4]<<8)+e[5])&&n>t.size-6)return null;if(192&(r=e[7])&&(f=536870912*(14&e[9])+4194304*(255&e[10])+16384*(254&e[11])+128*(255&e[12])+(254&e[13])/2,64&r?f-(c=536870912*(14&e[14])+4194304*(255&e[15])+16384*(254&e[16])+128*(255&e[17])+(254&e[18])/2)>54e5&&(l.logger.warn(Math.round((f-c)/9e4)+"s delta between PTS and DTS, align them"),f=c):c=f),d=(o=e[8])+9,t.size<=d)return null;t.size-=d,h=new Uint8Array(t.size);for(var v=0,y=data.length;v<y;v++){var w=(e=data[v]).byteLength;if(d){if(d>w){d-=w;continue}e=e.subarray(d),w-=d,d=0}h.set(e,i),i+=w}return n&&(n-=o+3),{data:h,pts:f,dts:c,len:n}}return null},e.pushAccesUnit=function(t,e){if(t.units.length&&t.frame){var r=e.samples,n=r.length;if(isNaN(t.pts)){if(!n)return void e.dropped++;var o=r[n-1];t.pts=o.pts,t.dts=o.dts}!this.config.forceKeyFrameOnDiscontinuity||!0===t.key||e.sps&&(n||this.contiguous)?(t.id=n,r.push(t)):e.dropped++}t.debug.length&&l.logger.log(t.pts+"/"+t.dts+":"+t.debug)},e._parseAVCPES=function(t,e){var r,n,i,o=this,track=this._avcTrack,h=this._parseAVCNALu(t.data),f=this.avcSample,l=!1,c=this.pushAccesUnit.bind(this),d=function(t,e,r,n){return{key:t,pts:e,dts:r,units:[],debug:n}};t.data=null,f&&h.length&&!track.audFound&&(c(f,track),f=this.avcSample=d(!1,t.pts,t.dts,"")),h.forEach((function(e){switch(e.type){case 1:n=!0,f||(f=o.avcSample=d(!0,t.pts,t.dts,"")),f.frame=!0;var data=e.data;if(l&&data.length>4){var h=new x(data).readSliceType();2!==h&&4!==h&&7!==h&&9!==h||(f.key=!0)}break;case 5:n=!0,f||(f=o.avcSample=d(!0,t.pts,t.dts,"")),f.key=!0,f.frame=!0;break;case 6:n=!0,(r=new x(o.discardEPB(e.data))).readUByte();for(var m=0,v=0,y=!1,b=0;!y&&r.bytesAvailable>1;){m=0;do{m+=b=r.readUByte()}while(255===b);v=0;do{v+=b=r.readUByte()}while(255===b);if(4===m&&0!==r.bytesAvailable){if(y=!0,181===r.readUByte()&&49===r.readUShort()&&1195456820===r.readUInt()&&3===r.readUByte()){var w=r.readUByte(),M=31&w,_=[w,r.readUByte()];for(i=0;i<M;i++)_.push(r.readUByte()),_.push(r.readUByte()),_.push(r.readUByte());o._insertSampleInOrder(o._txtTrack.samples,{type:3,pts:t.pts,bytes:_})}}else if(5===m&&0!==r.bytesAvailable){if(y=!0,v>16){var S=[];for(i=0;i<16;i++)S.push(r.readUByte().toString(16)),3!==i&&5!==i&&7!==i&&9!==i||S.push("-");var k=v-16,T=new Uint8Array(k);for(i=0;i<k;i++)T[i]=r.readUByte();o._insertSampleInOrder(o._txtTrack.samples,{pts:t.pts,payloadType:m,uuid:S.join(""),userDataBytes:T,userData:Object(E.utf8ArrayToStr)(T.buffer)})}}else if(v<r.bytesAvailable)for(i=0;i<v;i++)r.readUByte()}break;case 7:if(n=!0,l=!0,!track.sps){var A=(r=new x(e.data)).readSPS();track.width=A.width,track.height=A.height,track.pixelRatio=A.pixelRatio,track.sps=[e.data],track.duration=o._duration;var R=e.data.subarray(1,4),O="avc1.";for(i=0;i<3;i++){var I=R[i].toString(16);I.length<2&&(I="0"+I),O+=I}track.codec=O}break;case 8:n=!0,track.pps||(track.pps=[e.data]);break;case 9:n=!1,track.audFound=!0,f&&c(f,track),f=o.avcSample=d(!1,t.pts,t.dts,"");break;case 12:n=!1;break;default:n=!1,f&&(f.debug+="unknown NAL "+e.type+" ")}f&&n&&f.units.push(e)})),e&&f&&(c(f,track),this.avcSample=null)},e._insertSampleInOrder=function(t,data){var e=t.length;if(e>0){if(data.pts>=t[e-1].pts)t.push(data);else for(var r=e-1;r>=0;r--)if(data.pts<t[r].pts){t.splice(r,0,data);break}}else t.push(data)},e._getLastNalUnit=function(){var t,e=this.avcSample;if(!e||0===e.units.length){var r=this._avcTrack.samples;e=r[r.length-1]}if(e){var n=e.units;t=n[n.length-1]}return t},e._parseAVCNALu=function(t){var e,r,n,o,i=0,h=t.byteLength,track=this._avcTrack,f=track.naluState||0,l=f,c=[],d=-1;for(-1===f&&(d=0,o=31&t[0],f=0,i=1);i<h;)if(e=t[i++],f)if(1!==f)if(e)if(1===e){if(d>=0)n={data:t.subarray(d,i-f-1),type:o},c.push(n);else{var m=this._getLastNalUnit();if(m&&(l&&i<=4-l&&m.state&&(m.data=m.data.subarray(0,m.data.byteLength-l)),(r=i-f-1)>0)){var v=new Uint8Array(m.data.byteLength+r);v.set(m.data,0),v.set(t.subarray(0,r),m.data.byteLength),m.data=v}}i<h?(d=i,o=31&t[i],f=0):f=-1}else f=0;else f=3;else f=e?0:2;else f=e?0:1;if(d>=0&&f>=0&&(n={data:t.subarray(d,h),type:o,state:f},c.push(n)),0===c.length){var y=this._getLastNalUnit();if(y){var w=new Uint8Array(y.data.byteLength+t.byteLength);w.set(y.data,0),w.set(t,y.data.byteLength),y.data=w}}return track.naluState=f,c},e.discardEPB=function(data){for(var t,e,r=data.byteLength,n=[],i=1;i<r-2;)0===data[i]&&0===data[i+1]&&3===data[i+2]?(n.push(i+2),i+=2):i++;if(0===n.length)return data;t=r-n.length,e=new Uint8Array(t);var o=0;for(i=0;i<t;o++,i++)o===n[0]&&(o++,n.shift()),e[i]=data[o];return e},e._parseAACPES=function(t){var e,r,h,f,c,d,m,track=this._audioTrack,data=t.data,v=t.pts,w=this.aacOverFlow,E=this.aacLastPTS;if(w){var k=new Uint8Array(w.byteLength+data.byteLength);k.set(w,0),k.set(data,w.byteLength),data=k}for(h=0,c=data.length;h<c-1&&!y(data,h);h++);if(!h||(h<c-1?(d="AAC PES did not start with ADTS header,offset:"+h,m=!1):(d="no ADTS header found in AAC PES",m=!0),l.logger.warn("parsing error:"+d),this.observer.trigger(n.default.ERROR,{type:o.ErrorTypes.MEDIA_ERROR,details:o.ErrorDetails.FRAG_PARSING_ERROR,fatal:m,reason:d}),!m)){if(M(track,this.observer,data,h,this.audioCodec),r=0,e=_(track.samplerate),w&&E){var T=E+e;Math.abs(T-v)>1&&(l.logger.log("AAC: align PTS for overlapping frames by "+Math.round((T-v)/90)),v=T)}for(;h<c;){if(y(data,h)){if(h+5<c){var A=S(track,data,h,v,r);if(A){h+=A.length,f=A.sample.pts,r++;continue}}break}h++}w=h<c?data.subarray(h,c):null,this.aacOverFlow=w,this.aacLastPTS=f}},e._parseMPEGPES=function(t){for(var data=t.data,e=data.length,r=0,n=0,o=t.pts;n<e;)if(R.isHeader(data,n)){var h=R.appendFrame(this._audioTrack,data,n,o,r);if(!h)break;n+=h.length,r++}else n++},e._parseID3PES=function(t){this._id3Track.samples.push(t)},t}(),D=function(){function t(t,e,r){this.observer=t,this.config=r,this.remuxer=e}var e=t.prototype;return e.resetInitSegment=function(t,e,r,n){this._audioTrack={container:"audio/mpeg",type:"audio",id:-1,sequenceNumber:0,isAAC:!1,samples:[],len:0,manifestCodec:e,duration:n,inputTimeScale:9e4}},e.resetTimeStamp=function(){},t.probe=function(data){var t,e,r=E.default.getID3Data(data,0);if(r&&void 0!==E.default.getTimeStamp(r))for(t=r.length,e=Math.min(data.length-1,t+100);t<e;t++)if(R.probe(data,t))return l.logger.log("MPEG Audio sync word found !"),!0;return!1},e.append=function(data,t,e,r){for(var n=E.default.getID3Data(data,0)||[],o=E.default.getTimeStamp(n),h=void 0!==o?90*o:9e4*t,f=n.length,l=data.length,c=0,d=0,track=this._audioTrack,m=[{pts:h,dts:h,data:n}];f<l;)if(R.isHeader(data,f)){var v=R.appendFrame(track,data,f,h,c);if(!v)break;f+=v.length,d=v.sample.pts,c++}else E.default.isHeader(data,f)?(n=E.default.getID3Data(data,f),m.push({pts:d,dts:d,data:n}),f+=n.length):f++;this.remuxer.remux(track,{samples:[]},{samples:m,inputTimeScale:9e4},{samples:[]},t,e,r)},e.destroy=function(){},t}(),C=function(){function t(){}return t.getSilentFrame=function(t,e){switch(t){case"mp4a.40.2":if(1===e)return new Uint8Array([0,200,0,128,35,128]);if(2===e)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(1===e)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null},t}(),P=Math.pow(2,32)-1,B=function(){function t(){}return t.init=function(){var i;for(i in t.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]},t.types)t.types.hasOwnProperty(i)&&(t.types[i]=[i.charCodeAt(0),i.charCodeAt(1),i.charCodeAt(2),i.charCodeAt(3)]);var e=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),r=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);t.HDLR_TYPES={video:e,audio:r};var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),o=new Uint8Array([0,0,0,0,0,0,0,0]);t.STTS=t.STSC=t.STCO=o,t.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),t.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),t.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),t.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var h=new Uint8Array([105,115,111,109]),f=new Uint8Array([97,118,99,49]),l=new Uint8Array([0,0,0,1]);t.FTYP=t.box(t.types.ftyp,h,l,h,f),t.DINF=t.box(t.types.dinf,t.box(t.types.dref,n))},t.box=function(t){for(var e,r=Array.prototype.slice.call(arguments,1),n=8,i=r.length,o=i;i--;)n+=r[i].byteLength;for((e=new Uint8Array(n))[0]=n>>24&255,e[1]=n>>16&255,e[2]=n>>8&255,e[3]=255&n,e.set(t,4),i=0,n=8;i<o;i++)e.set(r[i],n),n+=r[i].byteLength;return e},t.hdlr=function(e){return t.box(t.types.hdlr,t.HDLR_TYPES[e])},t.mdat=function(data){return t.box(t.types.mdat,data)},t.mdhd=function(e,r){r*=e;var n=Math.floor(r/(P+1)),o=Math.floor(r%(P+1));return t.box(t.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,n>>24,n>>16&255,n>>8&255,255&n,o>>24,o>>16&255,o>>8&255,255&o,85,196,0,0]))},t.mdia=function(track){return t.box(t.types.mdia,t.mdhd(track.timescale,track.duration),t.hdlr(track.type),t.minf(track))},t.mfhd=function(e){return t.box(t.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e]))},t.minf=function(track){return"audio"===track.type?t.box(t.types.minf,t.box(t.types.smhd,t.SMHD),t.DINF,t.stbl(track)):t.box(t.types.minf,t.box(t.types.vmhd,t.VMHD),t.DINF,t.stbl(track))},t.moof=function(e,r,track){return t.box(t.types.moof,t.mfhd(e),t.traf(track,r))},t.moov=function(e){for(var i=e.length,r=[];i--;)r[i]=t.trak(e[i]);return t.box.apply(null,[t.types.moov,t.mvhd(e[0].timescale,e[0].duration)].concat(r).concat(t.mvex(e)))},t.mvex=function(e){for(var i=e.length,r=[];i--;)r[i]=t.trex(e[i]);return t.box.apply(null,[t.types.mvex].concat(r))},t.mvhd=function(e,r){r*=e;var n=Math.floor(r/(P+1)),o=Math.floor(r%(P+1)),h=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,n>>24,n>>16&255,n>>8&255,255&n,o>>24,o>>16&255,o>>8&255,255&o,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return t.box(t.types.mvhd,h)},t.sdtp=function(track){var e,i,r=track.samples||[],n=new Uint8Array(4+r.length);for(i=0;i<r.length;i++)e=r[i].flags,n[i+4]=e.dependsOn<<4|e.isDependedOn<<2|e.hasRedundancy;return t.box(t.types.sdtp,n)},t.stbl=function(track){return t.box(t.types.stbl,t.stsd(track),t.box(t.types.stts,t.STTS),t.box(t.types.stsc,t.STSC),t.box(t.types.stsz,t.STSZ),t.box(t.types.stco,t.STCO))},t.avc1=function(track){var i,data,e,r=[],n=[];for(i=0;i<track.sps.length;i++)e=(data=track.sps[i]).byteLength,r.push(e>>>8&255),r.push(255&e),r=r.concat(Array.prototype.slice.call(data));for(i=0;i<track.pps.length;i++)e=(data=track.pps[i]).byteLength,n.push(e>>>8&255),n.push(255&e),n=n.concat(Array.prototype.slice.call(data));var o=t.box(t.types.avcC,new Uint8Array([1,r[3],r[4],r[5],255,224|track.sps.length].concat(r).concat([track.pps.length]).concat(n))),h=track.width,f=track.height,l=track.pixelRatio[0],c=track.pixelRatio[1];return t.box(t.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,h>>8&255,255&h,f>>8&255,255&f,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),o,t.box(t.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),t.box(t.types.pasp,new Uint8Array([l>>24,l>>16&255,l>>8&255,255&l,c>>24,c>>16&255,c>>8&255,255&c])))},t.esds=function(track){var t=track.config.length;return new Uint8Array([0,0,0,0,3,23+t,0,1,0,4,15+t,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([t]).concat(track.config).concat([6,1,2]))},t.mp4a=function(track){var e=track.samplerate;return t.box(t.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,track.channelCount,0,16,0,0,0,0,e>>8&255,255&e,0,0]),t.box(t.types.esds,t.esds(track)))},t.mp3=function(track){var e=track.samplerate;return t.box(t.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,track.channelCount,0,16,0,0,0,0,e>>8&255,255&e,0,0]))},t.stsd=function(track){return"audio"===track.type?track.isAAC||"mp3"!==track.codec?t.box(t.types.stsd,t.STSD,t.mp4a(track)):t.box(t.types.stsd,t.STSD,t.mp3(track)):t.box(t.types.stsd,t.STSD,t.avc1(track))},t.tkhd=function(track){var e=track.id,r=track.duration*track.timescale,n=track.width,o=track.height,h=Math.floor(r/(P+1)),f=Math.floor(r%(P+1));return t.box(t.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,0,0,0,0,h>>24,h>>16&255,h>>8&255,255&h,f>>24,f>>16&255,f>>8&255,255&f,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,n>>8&255,255&n,0,0,o>>8&255,255&o,0,0]))},t.traf=function(track,e){var r=t.sdtp(track),n=track.id,o=Math.floor(e/(P+1)),h=Math.floor(e%(P+1));return t.box(t.types.traf,t.box(t.types.tfhd,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,255&n])),t.box(t.types.tfdt,new Uint8Array([1,0,0,0,o>>24,o>>16&255,o>>8&255,255&o,h>>24,h>>16&255,h>>8&255,255&h])),t.trun(track,r.length+16+20+8+16+8+8),r)},t.trak=function(track){return track.duration=track.duration||4294967295,t.box(t.types.trak,t.tkhd(track),t.mdia(track))},t.trex=function(track){var e=track.id;return t.box(t.types.trex,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},t.trun=function(track,e){var i,r,n,o,h,f,l=track.samples||[],c=l.length,d=12+16*c,m=new Uint8Array(d);for(e+=8+d,m.set([0,0,15,1,c>>>24&255,c>>>16&255,c>>>8&255,255&c,e>>>24&255,e>>>16&255,e>>>8&255,255&e],0),i=0;i<c;i++)n=(r=l[i]).duration,o=r.size,h=r.flags,f=r.cts,m.set([n>>>24&255,n>>>16&255,n>>>8&255,255&n,o>>>24&255,o>>>16&255,o>>>8&255,255&o,h.isLeading<<2|h.dependsOn,h.isDependedOn<<6|h.hasRedundancy<<4|h.paddingValue<<1|h.isNonSync,61440&h.degradPrio,15&h.degradPrio,f>>>24&255,f>>>16&255,f>>>8&255,255&f],12+16*i);return t.box(t.types.trun,m)},t.initSegment=function(e){t.types||t.init();var r,n=t.moov(e);return(r=new Uint8Array(t.FTYP.byteLength+n.byteLength)).set(t.FTYP),r.set(n,t.FTYP.byteLength),r},t}();function N(t,e,r,n){void 0===r&&(r=1),void 0===n&&(n=!1);var o=t*e*r;return n?Math.round(o):o}function j(t,e){return void 0===e&&(e=!1),N(t,1e3,1/9e4,e)}function F(t,e){return void 0===e&&(e=1),N(t,9e4,1/e)}var U=F(10),K=F(.2),z=null;function H(t,e){var r;if(void 0===e)return t;for(r=e<t?-8589934592:8589934592;Math.abs(t-e)>4294967296;)t+=r;return t}var G,V=function(){function t(t,e,r,n){if(this.observer=t,this.config=e,this.typeSupported=r,this.ISGenerated=!1,null===z){var o=navigator.userAgent.match(/Chrome\/(\d+)/i);z=o?parseInt(o[1]):0}}var e=t.prototype;return e.destroy=function(){},e.resetTimeStamp=function(t){this._initPTS=this._initDTS=t},e.resetInitSegment=function(){this.ISGenerated=!1},e.getVideoStartPts=function(t){var e=!1,r=t.reduce((function(t,r){var n=r.pts-t;return n<-4294967296?(e=!0,H(t,r.pts)):n>0?t:r.pts}),t[0].pts);return e&&l.logger.debug("PTS rollover detected"),r},e.remux=function(t,e,r,o,h,f,c){if(this.ISGenerated||this.generateIS(t,e,h),this.ISGenerated){var d=t.samples.length,m=e.samples.length,v=h,y=h;if(d&&m){var w=this.getVideoStartPts(e.samples),M=(H(t.samples[0].pts,w)-w)/e.inputTimeScale;v+=Math.max(0,M),y+=Math.max(0,-M)}if(d){t.timescale||(l.logger.warn("regenerate InitSegment as audio detected"),this.generateIS(t,e,h));var _,S=this.remuxAudio(t,v,f,c);m&&(S&&(_=S.endPTS-S.startPTS),e.timescale||(l.logger.warn("regenerate InitSegment as video detected"),this.generateIS(t,e,h)),this.remuxVideo(e,y,f,_))}else if(m){var E=this.remuxVideo(e,y,f,0,c);E&&t.codec&&this.remuxEmptyAudio(t,v,f,E)}}r.samples.length&&this.remuxID3(r,h),o.samples.length&&this.remuxText(o,h),this.observer.trigger(n.default.FRAG_PARSED)},e.generateIS=function(t,e,r){var h,f,c=this.observer,d=t.samples,m=e.samples,v=this.typeSupported,y="audio/mp4",w={},data={tracks:w},M=void 0===this._initPTS;if(M&&(h=f=1/0),t.config&&d.length&&(t.timescale=t.samplerate,l.logger.log("audio sampling rate : "+t.samplerate),t.isAAC||(v.mpeg?(y="audio/mpeg",t.codec=""):v.mp3&&(t.codec="mp3")),w.audio={container:y,codec:t.codec,initSegment:!t.isAAC&&v.mpeg?new Uint8Array:B.initSegment([t]),metadata:{channelCount:t.channelCount}},M&&(h=f=d[0].pts-Math.round(t.inputTimeScale*r))),e.sps&&e.pps&&m.length){var _=e.inputTimeScale;if(e.timescale=_,w.video={container:"video/mp4",codec:e.codec,initSegment:B.initSegment([e]),metadata:{width:e.width,height:e.height}},M){var S=this.getVideoStartPts(m),E=Math.round(_*r);f=Math.min(f,H(m[0].dts,S)-E),h=Math.min(h,S-E),this.observer.trigger(n.default.INIT_PTS_FOUND,{initPTS:h})}}else M&&w.audio&&this.observer.trigger(n.default.INIT_PTS_FOUND,{initPTS:h});Object.keys(w).length?(c.trigger(n.default.FRAG_PARSING_INIT_SEGMENT,data),this.ISGenerated=!0,M&&(this._initPTS=h,this._initDTS=f)):c.trigger(n.default.ERROR,{type:o.ErrorTypes.MEDIA_ERROR,details:o.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"no audio/video samples found"})},e.remuxVideo=function(track,t,e,r){var h,f,c,d,m,v=track.timescale,y=track.samples,w=[],M=y.length,_=this._initPTS,S=8,E=Number.POSITIVE_INFINITY,k=Number.NEGATIVE_INFINITY,T=0,A=!1,R=this.nextAvcDts;if(0!==M){e||(R=t*v-(y[0].pts-H(y[0].dts,y[0].pts)));for(var i=0;i<M;i++){var x=y[i];x.pts=H(x.pts-_,R),x.dts=H(x.dts-_,R),x.dts>x.pts&&(T=Math.max(Math.min(T,x.pts-x.dts),-1*K)),x.dts<y[i>0?i-1:i].dts&&(A=!0)}A&&y.sort((function(a,b){var t=a.dts-b.dts,e=a.pts-b.pts;return t||e||a.id-b.id})),d=y[0].dts,m=y[M-1].dts;var O=Math.round((m-d)/(M-1));if(T<0){if(T<-2*O){l.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+j(-O,!0)+" ms");for(var I=T,L=0;L<M;L++)y[L].dts=I=Math.max(I,y[L].pts-O),y[L].pts=Math.max(I,y[L].pts)}else{l.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+j(T,!0)+" ms to overcome this issue");for(var D=0;D<M;D++)y[D].dts=y[D].dts+T}d=y[0].dts,m=y[M-1].dts}if(e){var C=d-R,P=C>O;if(P||C<-1){P?l.logger.warn("AVC: "+j(C,!0)+" ms ("+C+"dts) hole between fragments detected, filling it"):l.logger.warn("AVC: "+j(-C,!0)+" ms ("+C+"dts) overlapping between fragments detected"),d=R;var N=y[0].pts-C;y[0].dts=d,y[0].pts=N,l.logger.log("Video: First PTS/DTS adjusted: "+j(N,!0)+"/"+j(d,!0)+", delta: "+j(C,!0)+" ms")}}z&&z<75&&(d=Math.max(0,d));for(var F=0,U=0,G=0;G<M;G++){for(var V=y[G],W=V.units,Y=W.length,Z=0,X=0;X<Y;X++)Z+=W[X].data.length;U+=Z,F+=Y,V.length=Z,V.dts=Math.max(V.dts,d),V.pts=Math.max(V.pts,V.dts,0),E=Math.min(V.pts,E),k=Math.max(V.pts,k)}m=y[M-1].dts;var $=U+4*F+8;try{f=new Uint8Array($)}catch(t){return void this.observer.trigger(n.default.ERROR,{type:o.ErrorTypes.MUX_ERROR,details:o.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:$,reason:"fail allocating video mdat "+$})}var view=new DataView(f.buffer);view.setUint32(0,$),f.set(B.types.mdat,4);for(var J=0;J<M;J++){for(var Q,tt=y[J],et=tt.units,it=0,nt=0,ot=et.length;nt<ot;nt++){var at=et[nt],st=at.data,ut=at.data.byteLength;view.setUint32(S,ut),S+=4,f.set(st,S),S+=ut,it+=4+ut}if(J<M-1)h=y[J+1].dts-tt.dts;else{var ht=this.config,ft=tt.dts-y[J>0?J-1:J].dts;if(ht.stretchShortVideoTrack){var lt=ht.maxBufferHole,ct=Math.floor(lt*v),pt=(r?E+r*v:this.nextAudioPts)-tt.pts;pt>ct?((h=pt-ft)<0&&(h=ft),l.logger.log("It is approximately "+j(pt,!1)+" ms to the next segment; using duration "+j(h,!1)+" ms for the last video frame.")):h=ft}else h=ft}Q=Math.round(tt.pts-tt.dts),w.push({size:it,duration:h,cts:Q,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:tt.key?2:1,isNonSync:tt.key?0:1}})}this.nextAvcDts=m+h;var mt=track.dropped;if(track.nbNalu=0,track.dropped=0,w.length&&navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var gt=w[0].flags;gt.dependsOn=2,gt.isNonSync=0}track.samples=w,c=B.moof(track.sequenceNumber++,d,track),track.samples=[];var data={data1:c,data2:f,startPTS:E/v,endPTS:(k+h)/v,startDTS:d/v,endDTS:this.nextAvcDts/v,type:"video",hasAudio:!1,hasVideo:!0,nb:w.length,dropped:mt};return this.observer.trigger(n.default.FRAG_PARSING_DATA,data),data}},e.remuxAudio=function(track,t,e,r){var h,f,c,d,m,v,y=track.inputTimeScale,w=track.timescale,M=y/w,_=(track.isAAC?1024:1152)*M,S=this._initPTS,E=!track.isAAC&&this.typeSupported.mpeg,k=E?0:8,T=track.samples,A=[],R=this.nextAudioPts;if(e|=T.length&&R&&(r&&Math.abs(t-R/y)<.1||Math.abs(T[0].pts-R-S)<20*_),T.forEach((function(e){e.pts=e.dts=H(e.pts-S,t*y)})),0!==(T=T.filter((function(t){return t.pts>=0}))).length){if(e||(R=r?Math.max(0,t*y):T[0].pts),track.isAAC)for(var x=this.config.maxAudioFramesDrift,i=0,O=R;i<T.length;){var I=T[i],L=I.pts,D=L-O;if(D<=-x*_)e||i>0?(l.logger.warn("Dropping 1 audio frame @ "+j(O,!0)/1e3+"s due to "+j(D,!0)+" ms overlap."),T.splice(i,1)):(l.logger.warn("Audio frame @ "+j(L,!0)/1e3+"s overlaps nextAudioPts by "+j(D,!0)+" ms."),O=L+_,i++);else if(D>=x*_&&D<U&&O){var P=Math.round(D/_);l.logger.warn("Injecting "+P+" audio frames @ "+j(O,!0)/1e3+"s due to "+j(D,!0)+" ms gap.");for(var N=0;N<P;N++){var F=Math.max(O,0);(f=C.getSilentFrame(track.manifestCodec||track.codec,track.channelCount))||(l.logger.log("Unable to get silent frame for given audio codec; duplicating last frame instead."),f=I.unit.subarray()),T.splice(i,0,{unit:f,pts:F,dts:F}),O+=_,i++}I.pts=I.dts=O,O+=_,i++}else Math.abs(D),I.pts=I.dts=O,O+=_,i++}for(var K=T.length,z=0;K--;)z+=T[K].unit.byteLength;for(var G=0,V=T.length;G<V;G++){var W=T[G],Y=W.unit,Z=W.pts;if(void 0!==v&&h)h.duration=Math.round((Z-v)/M);else{var X=Z-R,$=0;if(e&&track.isAAC&&X){if(X>0&&X<U)$=Math.round((Z-R)/_),l.logger.log(j(X,!0)+" ms hole between AAC samples detected,filling it"),$>0&&((f=C.getSilentFrame(track.manifestCodec||track.codec,track.channelCount))||(f=Y.subarray()),z+=$*f.length);else if(X<-12){l.logger.log("drop overlapping AAC sample, expected/parsed/delta: "+j(R,!0)+" ms / "+j(Z,!0)+" ms / "+j(-X,!0)+" ms"),z-=Y.byteLength;continue}Z=R}if(m=Z,!(z>0))return;z+=k;try{c=new Uint8Array(z)}catch(t){return void this.observer.trigger(n.default.ERROR,{type:o.ErrorTypes.MUX_ERROR,details:o.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:z,reason:"fail allocating audio mdat "+z})}E||(new DataView(c.buffer).setUint32(0,z),c.set(B.types.mdat,4));for(var J=0;J<$;J++)(f=C.getSilentFrame(track.manifestCodec||track.codec,track.channelCount))||(l.logger.log("Unable to get silent frame for given audio codec; duplicating this frame instead."),f=Y.subarray()),c.set(f,k),k+=f.byteLength,h={size:f.byteLength,cts:0,duration:1024,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:1}},A.push(h)}c.set(Y,k);var Q=Y.byteLength;k+=Q,h={size:Q,cts:0,duration:0,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:1}},A.push(h),v=Z}var tt=0;if((K=A.length)>=2&&(tt=A[K-2].duration,h.duration=tt),K){this.nextAudioPts=R=v+M*tt,track.samples=A,d=E?new Uint8Array:B.moof(track.sequenceNumber++,m/M,track),track.samples=[];var et=m/y,it=R/y,nt={data1:d,data2:c,startPTS:et,endPTS:it,startDTS:et,endDTS:it,type:"audio",hasAudio:!0,hasVideo:!1,nb:K};return this.observer.trigger(n.default.FRAG_PARSING_DATA,nt),nt}return null}},e.remuxEmptyAudio=function(track,t,e,r){var n=track.inputTimeScale,o=n/(track.samplerate?track.samplerate:n),h=this.nextAudioPts,f=(void 0!==h?h:r.startDTS*n)+this._initDTS,c=r.endDTS*n+this._initDTS,d=1024*o,m=Math.ceil((c-f)/d),v=C.getSilentFrame(track.manifestCodec||track.codec,track.channelCount);if(l.logger.warn("remux empty Audio"),v){for(var y=[],i=0;i<m;i++){var w=f+i*d;y.push({unit:v,pts:w,dts:w})}track.samples=y,this.remuxAudio(track,t,e)}else l.logger.trace("Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec!")},e.remuxID3=function(track,t){var e=track.samples.length;if(e){for(var r=track.inputTimeScale,o=this._initPTS,h=this._initDTS,f=0;f<e;f++){var l=track.samples[f];l.pts=H(l.pts-o,t*r)/r,l.dts=H(l.dts-h,t*r)/r}this.observer.trigger(n.default.FRAG_PARSING_METADATA,{samples:track.samples}),track.samples=[]}},e.remuxText=function(track,t){var e=track.samples.length,r=track.inputTimeScale,o=this._initPTS;if(e){for(var h=0;h<e;h++){var f=track.samples[h];f.pts=H(f.pts-o,t*r)/r}track.samples.sort((function(a,b){return a.pts-b.pts})),this.observer.trigger(n.default.FRAG_PARSING_USERDATA,{samples:track.samples})}track.samples=[]},t}(),W=function(){function t(t){this.observer=t}var e=t.prototype;return e.destroy=function(){},e.resetTimeStamp=function(){},e.resetInitSegment=function(){},e.remux=function(t,e,r,o,h,f,l,c){var d=this.observer,m="";t&&(m+="audio"),e&&(m+="video"),d.trigger(n.default.FRAG_PARSING_DATA,{data1:c,startPTS:h,startDTS:h,type:m,hasAudio:!!t,hasVideo:!!e,nb:1,dropped:0}),d.trigger(n.default.FRAG_PARSED)},t}(),Y=Object(c.getSelfScope)();try{G=Y.performance.now.bind(Y.performance)}catch(t){l.logger.debug("Unable to use Performance API on this environment"),G=Y.Date.now}var Z=function(){function t(t,e,r,n){this.observer=t,this.typeSupported=e,this.config=r,this.vendor=n}var e=t.prototype;return e.destroy=function(){var t=this.demuxer;t&&t.destroy()},e.push=function(data,t,e,r,o,f,l,c,d,m,v,y){var w=this;if(data.byteLength>0&&null!=t&&null!=t.key&&"AES-128"===t.method){var M=this.decrypter;null==M&&(M=this.decrypter=new h.default(this.observer,this.config));var _=G();M.decrypt(data,t.key.buffer,t.iv.buffer,(function(h){var M=G();w.observer.trigger(n.default.FRAG_DECRYPTED,{stats:{tstart:_,tdecrypt:M}}),w.pushDecrypted(new Uint8Array(h),t,new Uint8Array(e),r,o,f,l,c,d,m,v,y)}))}else this.pushDecrypted(new Uint8Array(data),t,new Uint8Array(e),r,o,f,l,c,d,m,v,y)},e.pushDecrypted=function(data,t,e,r,h,f,l,c,d,m,v,y){var w=this.demuxer,M=this.remuxer;if(!w||l||c){for(var _,S=this.observer,E=this.typeSupported,A=this.config,R=[{demux:L,remux:V},{demux:T.default,remux:W},{demux:k,remux:V},{demux:D,remux:V}],i=0,x=R.length;i<x&&!(_=R[i]).demux.probe(data);i++);if(!_)return void S.trigger(n.default.ERROR,{type:o.ErrorTypes.MEDIA_ERROR,details:o.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"});M&&M instanceof _.remux||(M=new _.remux(S,A,E,this.vendor)),w&&w instanceof _.demux||(w=new _.demux(S,M,A,E),this.probe=_.demux.probe),this.demuxer=w,this.remuxer=M}(l||c)&&(w.resetInitSegment(e,r,h,m),M.resetInitSegment()),l&&(w.resetTimeStamp(y),M.resetTimeStamp(y)),"function"==typeof w.setDecryptData&&w.setDecryptData(t),w.append(data,f,d,v)},t}();e.default=Z},"./src/demux/demuxer-worker.js":function(t,e,r){"use strict";r.r(e);var n=r("./src/demux/demuxer-inline.js"),o=r("./src/events.js"),h=r("./src/utils/logger.js"),f=r("./node_modules/eventemitter3/index.js");e.default=function(t){var e=new f.EventEmitter;e.trigger=function(t){for(var r=arguments.length,data=new Array(r>1?r-1:0),n=1;n<r;n++)data[n-1]=arguments[n];e.emit.apply(e,[t,t].concat(data))},e.off=function(t){for(var r=arguments.length,data=new Array(r>1?r-1:0),n=1;n<r;n++)data[n-1]=arguments[n];e.removeListener.apply(e,[t].concat(data))};var r=function(e,data){t.postMessage({event:e,data:data})};t.addEventListener("message",(function(o){var data=o.data;switch(data.cmd){case"init":var f=JSON.parse(data.config);t.demuxer=new n.default(e,data.typeSupported,f,data.vendor),Object(h.enableLogs)(f.debug),r("init",null);break;case"demux":t.demuxer.push(data.data,data.decryptdata,data.initSegment,data.audioCodec,data.videoCodec,data.timeOffset,data.discontinuity,data.trackSwitch,data.contiguous,data.duration,data.accurateTimeOffset,data.defaultInitPTS)}})),e.on(o.default.FRAG_DECRYPTED,r),e.on(o.default.FRAG_PARSING_INIT_SEGMENT,r),e.on(o.default.FRAG_PARSED,r),e.on(o.default.ERROR,r),e.on(o.default.FRAG_PARSING_METADATA,r),e.on(o.default.FRAG_PARSING_USERDATA,r),e.on(o.default.INIT_PTS_FOUND,r),e.on(o.default.FRAG_PARSING_DATA,(function(e,data){var r=[],n={event:e,data:data};data.data1&&(n.data1=data.data1.buffer,r.push(data.data1.buffer),delete data.data1),data.data2&&(n.data2=data.data2.buffer,r.push(data.data2.buffer),delete data.data2),t.postMessage(n,r)}))}},"./src/demux/id3.js":function(t,e,r){"use strict";r.r(e),r.d(e,"utf8ArrayToStr",(function(){return l}));var n,o=r("./src/utils/get-self-scope.js"),h=function(){function t(){}return t.isHeader=function(data,t){return t+10<=data.length&&73===data[t]&&68===data[t+1]&&51===data[t+2]&&data[t+3]<255&&data[t+4]<255&&data[t+6]<128&&data[t+7]<128&&data[t+8]<128&&data[t+9]<128},t.isFooter=function(data,t){return t+10<=data.length&&51===data[t]&&68===data[t+1]&&73===data[t+2]&&data[t+3]<255&&data[t+4]<255&&data[t+6]<128&&data[t+7]<128&&data[t+8]<128&&data[t+9]<128},t.getID3Data=function(data,e){for(var r=e,n=0;t.isHeader(data,e);)n+=10,n+=t._readSize(data,e+6),t.isFooter(data,e+10)&&(n+=10),e+=n;if(n>0)return data.subarray(r,r+n)},t._readSize=function(data,t){var e=0;return e=(127&data[t])<<21,e|=(127&data[t+1])<<14,e|=(127&data[t+2])<<7,e|=127&data[t+3]},t.getTimeStamp=function(data){for(var e=t.getID3Frames(data),i=0;i<e.length;i++){var r=e[i];if(t.isTimeStampFrame(r))return t._readTimeStamp(r)}},t.isTimeStampFrame=function(t){return t&&"PRIV"===t.key&&"com.apple.streaming.transportStreamTimestamp"===t.info},t._getFrameData=function(data){var e=String.fromCharCode(data[0],data[1],data[2],data[3]),r=t._readSize(data,4);return{type:e,size:r,data:data.subarray(10,10+r)}},t.getID3Frames=function(e){for(var r=0,n=[];t.isHeader(e,r);){for(var o=t._readSize(e,r+6),h=(r+=10)+o;r+8<h;){var f=t._getFrameData(e.subarray(r)),l=t._decodeFrame(f);l&&n.push(l),r+=f.size+10}t.isFooter(e,r)&&(r+=10)}return n},t._decodeFrame=function(e){return"PRIV"===e.type?t._decodePrivFrame(e):"W"===e.type[0]?t._decodeURLFrame(e):t._decodeTextFrame(e)},t._readTimeStamp=function(t){if(8===t.data.byteLength){var data=new Uint8Array(t.data),e=1&data[3],r=(data[4]<<23)+(data[5]<<15)+(data[6]<<7)+data[7];return r/=45,e&&(r+=47721858.84),Math.round(r)}},t._decodePrivFrame=function(e){if(!(e.size<2)){var r=t._utf8ArrayToStr(e.data,!0),n=new Uint8Array(e.data.subarray(r.length+1));return{key:e.type,info:r,data:n.buffer}}},t._decodeTextFrame=function(e){if(!(e.size<2)){if("TXXX"===e.type){var r=1,n=t._utf8ArrayToStr(e.data.subarray(r),!0);r+=n.length+1;var o=t._utf8ArrayToStr(e.data.subarray(r));return{key:e.type,info:n,data:o}}var text=t._utf8ArrayToStr(e.data.subarray(1));return{key:e.type,data:text}}},t._decodeURLFrame=function(e){if("WXXX"===e.type){if(e.size<2)return;var r=1,n=t._utf8ArrayToStr(e.data.subarray(r),!0);r+=n.length+1;var o=t._utf8ArrayToStr(e.data.subarray(r));return{key:e.type,info:n,data:o}}var h=t._utf8ArrayToStr(e.data);return{key:e.type,data:h}},t._utf8ArrayToStr=function(t,e){void 0===e&&(e=!1);var r=f();if(r){var n=r.decode(t);if(e){var o=n.indexOf("\0");return-1!==o?n.substring(0,o):n}return n.replace(/\0/g,"")}for(var h,l,c,d=t.length,m="",i=0;i<d;){if(0===(h=t[i++])&&e)return m;if(0!==h&&3!==h)switch(h>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:m+=String.fromCharCode(h);break;case 12:case 13:l=t[i++],m+=String.fromCharCode((31&h)<<6|63&l);break;case 14:l=t[i++],c=t[i++],m+=String.fromCharCode((15&h)<<12|(63&l)<<6|(63&c)<<0)}}return m},t}();function f(){var t=Object(o.getSelfScope)();return n||void 0===t.TextDecoder||(n=new t.TextDecoder("utf-8")),n}var l=h._utf8ArrayToStr;e.default=h},"./src/demux/mp4demuxer.js":function(t,e,r){"use strict";r.r(e);var n=r("./src/utils/logger.js"),o=r("./src/events.js"),h=Math.pow(2,32)-1,f=function(){function t(t,e){this.observer=t,this.remuxer=e}var e=t.prototype;return e.resetTimeStamp=function(t){this.initPTS=t},e.resetInitSegment=function(e,r,n,h){if(e&&e.byteLength){var f=this.initData=t.parseInitSegment(e);null==r&&(r="mp4a.40.5"),null==n&&(n="avc1.42e01e");var l={};f.audio&&f.video?l.audiovideo={container:"video/mp4",codec:r+","+n,initSegment:h?e:null}:(f.audio&&(l.audio={container:"audio/mp4",codec:r,initSegment:h?e:null}),f.video&&(l.video={container:"video/mp4",codec:n,initSegment:h?e:null})),this.observer.trigger(o.default.FRAG_PARSING_INIT_SEGMENT,{tracks:l})}else r&&(this.audioCodec=r),n&&(this.videoCodec=n)},t.probe=function(data){return t.findBox({data:data,start:0,end:Math.min(data.length,16384)},["moof"]).length>0},t.bin2str=function(t){return String.fromCharCode.apply(null,t)},t.readUint16=function(t,e){t.data&&(e+=t.start,t=t.data);var r=t[e]<<8|t[e+1];return r<0?65536+r:r},t.readUint32=function(t,e){t.data&&(e+=t.start,t=t.data);var r=t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3];return r<0?4294967296+r:r},t.writeUint32=function(t,e,r){t.data&&(e+=t.start,t=t.data),t[e]=r>>24,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=255&r},t.findBox=function(data,path){var i,e,r,n,o,h,f=[];if(data.data?(o=data.start,r=data.end,data=data.data):(o=0,r=data.byteLength),!path.length)return null;for(i=o;i<r;)h=(e=t.readUint32(data,i))>1?i+e:r,t.bin2str(data.subarray(i+4,i+8))===path[0]&&(1===path.length?f.push({data:data,start:i+8,end:h}):(n=t.findBox({data:data,start:i+8,end:h},path.slice(1))).length&&(f=f.concat(n))),i=h;return f},t.parseSegmentIndex=function(e){var r,n=t.findBox(e,["moov"])[0],o=n?n.end:null,h=0,f=t.findBox(e,["sidx"]);if(!f||!f[0])return null;r=[];var l=(f=f[0]).data[0];h=0===l?8:16;var c=t.readUint32(f,h);h+=4,h+=0===l?8:16,h+=2;var d=f.end+0,m=t.readUint16(f,h);h+=2;for(var i=0;i<m;i++){var v=h,y=t.readUint32(f,v);v+=4;var w=2147483647&y;if(1==(2147483648&y)>>>31)return void console.warn("SIDX has hierarchical references (not supported)");var M=t.readUint32(f,v);v+=4,r.push({referenceSize:w,subsegmentDuration:M,info:{duration:M/c,start:d,end:d+w-1}}),d+=w,h=v+=4}return{earliestPresentationTime:0,timescale:c,version:l,referencesCount:m,references:r,moovEndOffset:o}},t.parseInitSegment=function(e){var r=[];return t.findBox(e,["moov","trak"]).forEach((function(e){var o=t.findBox(e,["tkhd"])[0];if(o){var h=o.data[o.start],f=0===h?12:20,l=t.readUint32(o,f),c=t.findBox(e,["mdia","mdhd"])[0];if(c){f=0===(h=c.data[c.start])?12:20;var d=t.readUint32(c,f),m=t.findBox(e,["mdia","hdlr"])[0];if(m){var v={soun:"audio",vide:"video"}[t.bin2str(m.data.subarray(m.start+8,m.start+12))];if(v){var y=t.findBox(e,["mdia","minf","stbl","stsd"]);if(y.length){y=y[0];var w=t.bin2str(y.data.subarray(y.start+12,y.start+16));n.logger.log("MP4Demuxer:"+v+":"+w+" found")}r[l]={timescale:d,type:v},r[v]={timescale:d,id:l}}}}}})),r},t.getStartDTS=function(e,r){var n,o,h;return n=t.findBox(r,["moof","traf"]),o=[].concat.apply([],n.map((function(r){return t.findBox(r,["tfhd"]).map((function(n){var o,h;return o=t.readUint32(n,4),h=e[o].timescale||9e4,t.findBox(r,["tfdt"]).map((function(e){var r,n;return r=e.data[e.start],n=t.readUint32(e,4),1===r&&(n*=Math.pow(2,32),n+=t.readUint32(e,8)),n}))[0]/h}))}))),h=Math.min.apply(null,o),isFinite(h)?h:0},t.offsetStartDTS=function(e,r,n){t.findBox(r,["moof","traf"]).map((function(r){return t.findBox(r,["tfhd"]).map((function(o){var f=t.readUint32(o,4),l=e[f].timescale||9e4;t.findBox(r,["tfdt"]).map((function(e){var r=e.data[e.start],o=t.readUint32(e,4);if(0===r)t.writeUint32(e,4,o-n*l);else{o*=Math.pow(2,32),o+=t.readUint32(e,8),o-=n*l,o=Math.max(o,0);var f=Math.floor(o/(h+1)),c=Math.floor(o%(h+1));t.writeUint32(e,4,f),t.writeUint32(e,8,c)}}))}))}))},e.append=function(data,e,r,n){var h=this.initData;h||(this.resetInitSegment(data,this.audioCodec,this.videoCodec,!1),h=this.initData);var f,l=this.initPTS;if(void 0===l){var c=t.getStartDTS(h,data);this.initPTS=l=c-e,this.observer.trigger(o.default.INIT_PTS_FOUND,{initPTS:l})}t.offsetStartDTS(h,data,l),f=t.getStartDTS(h,data),this.remuxer.remux(h.audio,h.video,null,null,f,r,n,data)},e.destroy=function(){},t}();e.default=f},
2"./src/errors.ts":function(t,e,r){"use strict";var n,o;r.r(e),r.d(e,"ErrorTypes",(function(){return n})),r.d(e,"ErrorDetails",(function(){return o})),function(t){t.NETWORK_ERROR="networkError",t.MEDIA_ERROR="mediaError",t.KEY_SYSTEM_ERROR="keySystemError",t.MUX_ERROR="muxError",t.OTHER_ERROR="otherError"}(n||(n={})),function(t){t.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",t.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",t.KEY_SYSTEM_NO_SESSION="keySystemNoSession",t.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",t.KEY_SYSTEM_NO_INIT_DATA="keySystemNoInitData",t.MANIFEST_LOAD_ERROR="manifestLoadError",t.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",t.MANIFEST_PARSING_ERROR="manifestParsingError",t.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",t.LEVEL_EMPTY_ERROR="levelEmptyError",t.LEVEL_LOAD_ERROR="levelLoadError",t.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",t.LEVEL_SWITCH_ERROR="levelSwitchError",t.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",t.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",t.FRAG_LOAD_ERROR="fragLoadError",t.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",t.FRAG_DECRYPT_ERROR="fragDecryptError",t.FRAG_PARSING_ERROR="fragParsingError",t.REMUX_ALLOC_ERROR="remuxAllocError",t.KEY_LOAD_ERROR="keyLoadError",t.KEY_LOAD_TIMEOUT="keyLoadTimeOut",t.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",t.BUFFER_APPEND_ERROR="bufferAppendError",t.BUFFER_APPENDING_ERROR="bufferAppendingError",t.BUFFER_STALLED_ERROR="bufferStalledError",t.BUFFER_FULL_ERROR="bufferFullError",t.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",t.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",t.INTERNAL_EXCEPTION="internalException"}(o||(o={}))},
2"./src/events.js":function(t,e,r){"use strict";r.r(e),e.default={MEDIA_ATTACHING:"hlsMediaAttaching",MEDIA_ATTACHED:"hlsMediaAttached",MEDIA_DETACHING:"hlsMediaDetaching",MEDIA_DETACHED:"hlsMediaDetached",BUFFER_RESET:"hlsBufferReset",BUFFER_CODECS:"hlsBufferCodecs",BUFFER_CREATED:"hlsBufferCreated",BUFFER_APPENDING:"hlsBufferAppending",BUFFER_APPENDED:"hlsBufferAppended",BUFFER_EOS:"hlsBufferEos",BUFFER_FLUSHING:"hlsBufferFlushing",BUFFER_FLUSHED:"hlsBufferFlushed",MANIFEST_LOADING:"hlsManifestLoading",MANIFEST_LOADED:"hlsManifestLoaded",MANIFEST_PARSED:"hlsManifestParsed",LEVEL_SWITCHING:"hlsLevelSwitching",LEVEL_SWITCHED:"hlsLevelSwitched",LEVEL_LOADING:"hlsLevelLoading",LEVEL_LOADED:"hlsLevelLoaded",LEVEL_UPDATED:"hlsLevelUpdated",LEVEL_PTS_UPDATED:"hlsLevelPtsUpdated",LEVELS_UPDATED:"hlsLevelsUpdated",AUDIO_TRACKS_UPDATED:"hlsAudioTracksUpdated",AUDIO_TRACK_SWITCHING:"hlsAudioTrackSwitching",AUDIO_TRACK_SWITCHED:"hlsAudioTrackSwitched",AUDIO_TRACK_LOADING:"hlsAudioTrackLoading",AUDIO_TRACK_LOADED:"hlsAudioTrackLoaded",SUBTITLE_TRACKS_UPDATED:"hlsSubtitleTracksUpdated",SUBTITLE_TRACK_SWITCH:"hlsSubtitleTrackSwitch",SUBTITLE_TRACK_LOADING:"hlsSubtitleTrackLoading",SUBTITLE_TRACK_LOADED:"hlsSubtitleTrackLoaded",SUBTITLE_FRAG_PROCESSED:"hlsSubtitleFragProcessed",CUES_PARSED:"hlsCuesParsed",NON_NATIVE_TEXT_TRACKS_FOUND:"hlsNonNativeTextTracksFoun
vendor: 827 bytes, line 2
2d",INIT_PTS_FOUND:"hlsInitPtsFound",FRAG_LOADING:"hlsFragLoading",FRAG_LOAD_PROGRESS:"hlsFragLoadProgress",FRAG_LOAD_EMERGENCY_ABORTED:"hlsFragLoadEmergencyAborted",FRAG_LOADED:"hlsFragLoaded",FRAG_DECRYPTED:"hlsFragDecrypted",FRAG_PARSING_INIT_SEGMENT:"hlsFragParsingInitSegment",FRAG_PARSING_USERDATA:"hlsFragParsingUserdata",FRAG_PARSING_METADATA:"hlsFragParsingMetadata",FRAG_PARSING_DATA:"hlsFragParsingData",FRAG_PARSED:"hlsFragParsed",FRAG_BUFFERED:"hlsFragBuffered",FRAG_CHANGED:"hlsFragChanged",FPS_DROP:"hlsFpsDrop",FPS_DROP_LEVEL_CAPPING:"hlsFpsDropLevelCapping",ERROR:"hlsError",DESTROYING:"hlsDestroying",KEY_LOADING:"hlsKeyLoading",KEY_LOADED:"hlsKeyLoaded",STREAM_STATE_TRANSITION:"hlsStreamStateTransition",LIVE_BACK_BUFFER_REACHED:"hlsLiveBackBufferReached"}},"./src/hls.ts":function(t,e,r){"use strict";r.r(e)
vendor: 136,460 bytes, line 2
2,r.d(e,"default",(function(){return vr}));var n={};r.r(n),r.d(n,"newCue",(function(){return Se}));var o,h,f=r("./node_modules/url-toolkit/src/url-toolkit.js"),l=r("./src/errors.ts"),c=r("./src/polyfills/number.js"),d=r("./src/events.js"),m=r("./src/utils/logger.js"),v={hlsEventGeneric:!0,hlsHandlerDestroying:!0,hlsHandlerDestroyed:!0},y=function(){function t(t){this.hls=void 0,this.handledEvents=void 0,this.useGenericHandler=void 0,this.hls=t,this.onEvent=this.onEvent.bind(this);for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];this.handledEvents=r,this.useGenericHandler=!0,this.registerListeners()}var e=t.prototype;return e.destroy=function(){this.onHandlerDestroying(),this.unregisterListeners(),this.onHandlerDestroyed()},e.onHandlerDestroying=function(){},e.onHandlerDestroyed=function(){},e.isEventHandler=function(){return"object"==typeof this.handledEvents&&this.handledEvents.length&&"function"==typeof this.onEvent},e.registerListeners=function(){this.isEventHandler()&&this.handledEvents.forEach((function(t){if(v[t])throw new Error("Forbidden event-name: "+t);this.hls.on(t,this.onEvent)}),this)},e.unregisterListeners=function(){this.isEventHandler()&&this.handledEvents.forEach((function(t){this.hls.off(t,this.onEvent)}),this)},e.onEvent=function(t,data){this.onEventGeneric(t,data)},e.onEventGeneric=function(t,data){try{(function(t,data){var e="on"+t.replace("hls","");if("function"!=typeof this[e])throw new Error("Event "+t+" has no generic handler in this "+this.constructor.name+" class (tried "+e+")");return this[e].bind(this,data)}).call(this,t,data).call()}catch(e){m.logger.error("An internal error happened while handling event "+t+'. Error message: "'+e.message+'". Here is a stacktrace:',e),this.hls.trigger(d.default.ERROR,{type:l.ErrorTypes.OTHER_ERROR,details:l.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:t,err:e})}},t}();!function(t){t.MANIFEST="manifest",t.LEVEL="level",t.AUDIO_TRACK="audioTrack",t.SUBTITLE_TRACK="subtitleTrack"}(o||(o={})),function(t){t.MAIN="main",t.AUDIO="audio",t.SUBTITLE="subtitle"}(h||(h={}));var w=r("./src/demux/mp4demuxer.js");function M(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var _,S=function(){function t(t,e){this._uri=null,this.baseuri=void 0,this.reluri=void 0,this.method=null,this.key=null,this.iv=null,this.baseuri=t,this.reluri=e}var e,r,n;return e=t,(r=[{key:"uri",get:function(){return!this._uri&&this.reluri&&(this._uri=Object(f.buildAbsoluteURL)(this.baseuri,this.reluri,{alwaysNormalize:!0})),this._uri}}])&&M(e.prototype,r),n&&M(e,n),t}();function E(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}!function(t){t.AUDIO="audio",t.VIDEO="video"}(_||(_={}));var k=function(){function t(){var t;this._url=null,this._byteRange=null,this._decryptdata=null,this._elementaryStreams=((t={})[_.AUDIO]=!1,t[_.VIDEO]=!1,t),this.deltaPTS=0,this.rawProgramDateTime=null,this.programDateTime=null,this.title=null,this.tagList=[],this.cc=void 0,this.type=void 0,this.relurl=void 0,this.baseurl=void 0,this.duration=void 0,this.start=void 0,this.sn=0,this.urlId=0,this.level=0,this.levelkey=void 0,this.loader=void 0}var e,r,n,o=t.prototype;return o.setByteRange=function(t,e){var r=t.split("@",2),n=[];1===r.length?n[0]=e?e.byteRangeEndOffset:0:n[0]=parseInt(r[1]),n[1]=parseInt(r[0])+n[0],this._byteRange=n},o.addElementaryStream=function(t){this._elementaryStreams[t]=!0},o.hasElementaryStream=function(t){return!0===this._elementaryStreams[t]},o.createInitializationVector=function(t){for(var e=new Uint8Array(16),i=12;i<16;i++)e[i]=t>>8*(15-i)&255;return e},o.setDecryptDataFromLevelKey=function(t,e){var r=t;return(null==t?void 0:t.method)&&t.uri&&!t.iv&&((r=new S(t.baseuri,t.reluri)).method=t.method,r.iv=this.createInitializationVector(e)),r},e=t,(r=[{key:"url",get:function(){return!this._url&&this.relurl&&(this._url=Object(f.buildAbsoluteURL)(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url},set:function(t){this._url=t}},{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var t=this.sn;"number"!=typeof t&&(this.levelkey&&"AES-128"===this.levelkey.method&&!this.levelkey.iv&&m.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),t=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,t)}return this._decryptdata}},{key:"endProgramDateTime",get:function(){if(null===this.programDateTime)return null;if(!Object(c.isFiniteNumber)(this.programDateTime))return null;var t=Object(c.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+1e3*t}},{key:"encrypted",get:function(){return!(!this.decryptdata||null===this.decryptdata.uri||null!==this.decryptdata.key)}}])&&E(e.prototype,r),n&&E(e,n),t}();function T(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var A=function(){function t(t){this.endCC=0,this.endSN=0,this.fragments=[],this.initSegment=null,this.live=!0,this.needSidxRanges=!1,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=t,this.version=null}var e,r,n;return e=t,(r=[{key:"hasProgramDateTime",get:function(){return!(!this.fragments[0]||!Object(c.isFiniteNumber)(this.fragments[0].programDateTime))}}])&&T(e.prototype,r),n&&T(e,n),t}(),R=/^(\d+)x(\d+)$/,x=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,O=function(){function t(e){for(var r in"string"==typeof e&&(e=t.parseAttrList(e)),e)e.hasOwnProperty(r)&&(this[r]=e[r])}var e=t.prototype;return e.decimalInteger=function(t){var e=parseInt(this[t],10);return e>Number.MAX_SAFE_INTEGER?1/0:e},e.hexadecimalInteger=function(t){if(this[t]){var e=(this[t]||"0x").slice(2);e=(1&e.length?"0":"")+e;for(var r=new Uint8Array(e.length/2),i=0;i<e.length/2;i++)r[i]=parseInt(e.slice(2*i,2*i+2),16);return r}return null},e.hexadecimalIntegerAsNumber=function(t){var e=parseInt(this[t],16);return e>Number.MAX_SAFE_INTEGER?1/0:e},e.decimalFloatingPoint=function(t){return parseFloat(this[t])},e.enumeratedString=function(t){return this[t]},e.decimalResolution=function(t){var e=R.exec(this[t]);if(null!==e)return{width:parseInt(e[1],10),height:parseInt(e[2],10)}},t.parseAttrList=function(input){var t,e={};for(x.lastIndex=0;null!==(t=x.exec(input));){var r=t[2];0===r.indexOf('"')&&r.lastIndexOf('"')===r.length-1&&(r=r.slice(1,-1)),e[t[1]]=r}return e},t}(),I={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,drac:!0,dvav:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0}};function L(t,e){return MediaSource.isTypeSupported((e||"video")+'/mp4;codecs="'+t+'"')}var D=/(?:#EXT-X-STREAM-INF:([^\n\r]*)[\r\n]+([^\r\n]+)|#EXT-X-SESSION-DATA:([^\n\r]*)[\r\n]+)/g,C=/#EXT-X-MEDIA:(.*)/g,P=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/|(?!#)([\S+ ?]+)/.source,/|#EXT-X-BYTERANGE:*(.+)/.source,/|#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/|#.*/.source].join(""),"g"),B=/(?:(?:#(EXTM3U))|(?:#EXT-X-(PLAYLIST-TYPE):(.+))|(?:#EXT-X-(MEDIA-SEQUENCE): *(\d+))|(?:#EXT-X-(TARGETDURATION): *(\d+))|(?:#EXT-X-(KEY):(.+))|(?:#EXT-X-(START):(.+))|(?:#EXT-X-(ENDLIST))|(?:#EXT-X-(DISCONTINUITY-SEQ)UENCE:(\d+))|(?:#EXT-X-(DIS)CONTINUITY))|(?:#EXT-X-(VERSION):(\d+))|(?:#EXT-X-(MAP):(.+))|(?:(#)([^:]*):(.*))|(?:(#)(.*))(?:.*)\r?\n?/,N=/\.(mp4|m4s|m4v|m4a)$/i,j=function(){function t(){}return t.findGroup=function(t,e){for(var i=0;i<t.length;i++){var r=t[i];if(r.id===e)return r}},t.convertAVC1ToAVCOTI=function(t){var e,r=t.split(".");return r.length>2?(e=r.shift()+".",e+=parseInt(r.shift()).toString(16),e+=("000"+parseInt(r.shift()).toString(16)).substr(-4)):e=t,e},t.resolve=function(t,e){return f.buildAbsoluteURL(e,t,{alwaysNormalize:!0})},t.parseMasterPlaylist=function(e,r){var n,o=[],h={},f=!1;function l(t,e){["video","audio"].forEach((function(r){var n=t.filter((function(t){return function(t,e){var r=I[e];return!!r&&!0===r[t.slice(0,4)]}(t,r)}));if(n.length){var o=n.filter((function(t){return 0===t.lastIndexOf("avc1",0)||0===t.lastIndexOf("mp4a",0)}));e[r+"Codec"]=o.length>0?o[0]:n[0],t=t.filter((function(t){return-1===n.indexOf(t)}))}})),e.unknownCodecs=t}for(D.lastIndex=0;null!=(n=D.exec(e));)if(n[1]){var c={},d=c.attrs=new O(n[1]);c.url=t.resolve(n[2],r);var m=d.decimalResolution("RESOLUTION");m&&(c.width=m.width,c.height=m.height),c.bitrate=d.decimalInteger("AVERAGE-BANDWIDTH")||d.decimalInteger("BANDWIDTH"),c.name=d.NAME,l([].concat((d.CODECS||"").split(/[ ,]+/)),c),c.videoCodec&&-1!==c.videoCodec.indexOf("avc1")&&(c.videoCodec=t.convertAVC1ToAVCOTI(c.videoCodec)),o.push(c)}else if(n[3]){var v=new O(n[3]);v["DATA-ID"]&&(f=!0,h[v["DATA-ID"]]=v)}return{levels:o,sessionData:f?h:null}},t.parseMasterPlaylistMedia=function(e,r,n,o){var h;void 0===o&&(o=[]);var f=[],l=0;for(C.lastIndex=0;null!==(h=C.exec(e));){var c=new O(h[1]);if(c.TYPE===n){var d={attrs:c,id:l++,groupId:c["GROUP-ID"],instreamId:c["INSTREAM-ID"],name:c.NAME||c.LANGUAGE,type:n,default:"YES"===c.DEFAULT,autoselect:"YES"===c.AUTOSELECT,forced:"YES"===c.FORCED,lang:c.LANGUAGE};if(c.URI&&(d.url=t.resolve(c.URI,r)),o.length){var m=t.findGroup(o,d.groupId);d.audioCodec=m?m.codec:o[0].codec}f.push(d)}}return f},t.parseLevelPlaylist=function(t,e,r,n,o){var h,i,f,l=0,d=0,v=new A(e),y=0,w=null,M=new k,_=null;for(P.lastIndex=0;null!==(h=P.exec(t));){var E=h[1];if(E){M.duration=parseFloat(E);var title=(" "+h[2]).slice(1);M.title=title||null,M.tagList.push(title?["INF",E,title]:["INF",E])}else if(h[3]){if(Object(c.isFiniteNumber)(M.duration)){var T=l++;M.type=n,M.start=d,f&&(M.levelkey=f),M.sn=T,M.level=r,M.cc=y,M.urlId=o,M.baseurl=e,M.relurl=(" "+h[3]).slice(1),F(M,w),v.fragments.push(M),w=M,d+=M.duration,M=new k}}else if(h[4]){var data=(" "+h[4]).slice(1);w?M.setByteRange(data,w):M.setByteRange(data)}else if(h[5])M.rawProgramDateTime=(" "+h[5]).slice(1),M.tagList.push(["PROGRAM-DATE-TIME",M.rawProgramDateTime]),null===_&&(_=v.fragments.length);else{if(!(h=h[0].match(B))){m.logger.warn("No matches on slow regex match for level playlist!");continue}for(i=1;i<h.length&&void 0===h[i];i++);var R=(" "+h[i+1]).slice(1),x=(" "+h[i+2]).slice(1);switch(h[i]){case"#":M.tagList.push(x?[R,x]:[R]);break;case"PLAYLIST-TYPE":v.type=R.toUpperCase();break;case"MEDIA-SEQUENCE":l=v.startSN=parseInt(R);break;case"TARGETDURATION":v.targetduration=parseFloat(R);break;case"VERSION":v.version=parseInt(R);break;case"EXTM3U":break;case"ENDLIST":v.live=!1;break;case"DIS":y++,M.tagList.push(["DIS"]);break;case"DISCONTINUITY-SEQ":y=parseInt(R);break;case"KEY":var I=new O(R),L=I.enumeratedString("METHOD"),D=I.URI,C=I.hexadecimalInteger("IV");if("com.apple.streamingkeydelivery"===(I.KEYFORMAT||"identity")){m.logger.warn("Keyformat com.apple.streamingkeydelivery is not supported");continue}L&&(f=new S(e,D),D&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(L)>=0&&(f.method=L,f.key=null,f.iv=C));break;case"START":var j=new O(R).decimalFloatingPoint("TIME-OFFSET");Object(c.isFiniteNumber)(j)&&(v.startTimeOffset=j);break;case"MAP":var U=new O(R);M.relurl=U.URI,U.BYTERANGE&&M.setByteRange(U.BYTERANGE),M.baseurl=e,M.level=r,M.type=n,M.sn="initSegment",v.initSegment=M,(M=new k).rawProgramDateTime=v.initSegment.rawProgramDateTime;break;default:m.logger.warn("line parsed but not handled: "+h)}}}return(M=w)&&!M.relurl&&(v.fragments.pop(),d-=M.duration),v.totalduration=d,v.averagetargetduration=d/v.fragments.length,v.endSN=l-1,v.startCC=v.fragments[0]?v.fragments[0].cc:0,v.endCC=y,!v.initSegment&&v.fragments.length&&v.fragments.every((function(t){return N.test(t.relurl)}))&&(m.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),(M=new k).relurl=v.fragments[0].relurl,M.baseurl=e,M.level=r,M.type=n,M.sn="initSegment",v.initSegment=M,v.needSidxRanges=!0),_&&function(t,e){for(var r=t[e],i=e-1;i>=0;i--){var n=t[i];n.programDateTime=r.programDateTime-1e3*n.duration,r=n}}(v.fragments,_),v},t}();function F(t,e){t.rawProgramDateTime?t.programDateTime=Date.parse(t.rawProgramDateTime):(null==e?void 0:e.programDateTime)&&(t.programDateTime=e.endProgramDateTime),Object(c.isFiniteNumber)(t.programDateTime)||(t.programDateTime=null,t.rawProgramDateTime=null)}var U=window.performance,K=function(t){var e,r;function n(e){var r;return(r=t.call(this,e,d.default.MANIFEST_LOADING,d.default.LEVEL_LOADING,d.default.AUDIO_TRACK_LOADING,d.default.SUBTITLE_TRACK_LOADING)||this).loaders={},r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,n.canHaveQualityLevels=function(t){return t!==o.AUDIO_TRACK&&t!==o.SUBTITLE_TRACK},n.mapContextToLevelType=function(t){switch(t.type){case o.AUDIO_TRACK:return h.AUDIO;case o.SUBTITLE_TRACK:return h.SUBTITLE;default:return h.MAIN}},n.getResponseUrl=function(t,e){var r=t.url;return void 0!==r&&0!==r.indexOf("data:")||(r=e.url),r};var f=n.prototype;return f.createInternalLoader=function(t){var e=this.hls.config,r=e.pLoader,n=e.loader,o=new(r||n)(e);return t.loader=o,this.loaders[t.type]=o,o},f.getInternalLoader=function(t){return this.loaders[t.type]},f.resetInternalLoader=function(t){this.loaders[t]&&delete this.loaders[t]},f.destroyInternalLoaders=function(){for(var t in this.loaders){var e=this.loaders[t];e&&e.destroy(),this.resetInternalLoader(t)}},f.destroy=function(){this.destroyInternalLoaders(),t.prototype.destroy.call(this)},f.onManifestLoading=function(data){this.load({url:data.url,type:o.MANIFEST,level:0,id:null,responseType:"text"})},f.onLevelLoading=function(data){this.load({url:data.url,type:o.LEVEL,level:data.level,id:data.id,responseType:"text"})},f.onAudioTrackLoading=function(data){this.load({url:data.url,type:o.AUDIO_TRACK,level:null,id:data.id,responseType:"text"})},f.onSubtitleTrackLoading=function(data){this.load({url:data.url,type:o.SUBTITLE_TRACK,level:null,id:data.id,responseType:"text"})},f.load=function(t){var e=this.hls.config;m.logger.debug("Loading playlist of type "+t.type+", level: "+t.level+", id: "+t.id);var r,n,h,f,l=this.getInternalLoader(t);if(l){var c=l.context;if(c&&c.url===t.url)return m.logger.trace("playlist request ongoing"),!1;m.logger.warn("aborting previous loader for type: "+t.type),l.abort()}switch(t.type){case o.MANIFEST:r=e.manifestLoadingMaxRetry,n=e.manifestLoadingTimeOut,h=e.manifestLoadingRetryDelay,f=e.manifestLoadingMaxRetryTimeout;break;case o.LEVEL:r=0,f=0,h=0,n=e.levelLoadingTimeOut;break;default:r=e.levelLoadingMaxRetry,n=e.levelLoadingTimeOut,h=e.levelLoadingRetryDelay,f=e.levelLoadingMaxRetryTimeout}l=this.createInternalLoader(t);var d={timeout:n,maxRetry:r,retryDelay:h,maxRetryDelay:f},v={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};return m.logger.debug("Calling internal loader delegate for URL: "+t.url),l.load(t,d,v),!0},f.loadsuccess=function(t,e,r,n){if(void 0===n&&(n=null),r.isSidxRequest)return this._handleSidxRequest(t,r),void this._handlePlaylistLoaded(t,e,r,n);if(this.resetInternalLoader(r.type),"string"!=typeof t.data)throw new Error('expected responseType of "text" for PlaylistLoader');var o=t.data;e.tload=U.now(),0===o.indexOf("#EXTM3U")?o.indexOf("#EXTINF:")>0||o.indexOf("#EXT-X-TARGETDURATION:")>0?this._handleTrackOrLevelPlaylist(t,e,r,n):this._handleMasterPlaylist(t,e,r,n):this._handleManifestParsingError(t,r,"no EXTM3U delimiter",n)},f.loaderror=function(t,e,r){void 0===r&&(r=null),this._handleNetworkError(e,r,!1,t)},f.loadtimeout=function(t,e,r){void 0===r&&(r=null),this._handleNetworkError(e,r,!0)},f._handleMasterPlaylist=function(t,e,r,o){var h=this.hls,f=t.data,l=n.getResponseUrl(t,r),c=j.parseMasterPlaylist(f,l),v=c.levels,y=c.sessionData;if(v.length){var w=v.map((function(t){return{id:t.attrs.AUDIO,codec:t.audioCodec}})),M=j.parseMasterPlaylistMedia(f,l,"AUDIO",w),_=j.parseMasterPlaylistMedia(f,l,"SUBTITLES"),S=j.parseMasterPlaylistMedia(f,l,"CLOSED-CAPTIONS");if(M.length){var E=!1;M.forEach((function(t){t.url||(E=!0)})),!1===E&&v[0].audioCodec&&!v[0].attrs.AUDIO&&(m.logger.log("audio codec signaled in quality level, but no embedded audio track signaled, create one"),M.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:{},url:""}))}h.trigger(d.default.MANIFEST_LOADED,{levels:v,audioTracks:M,subtitles:_,captions:S,url:l,stats:e,networkDetails:o,sessionData:y})}else this._handleManifestParsingError(t,r,"no level found in manifest",o)},f._handleTrackOrLevelPlaylist=function(t,e,r,h){var f=this.hls,m=r.id,v=r.level,y=r.type,w=n.getResponseUrl(t,r),M=Object(c.isFiniteNumber)(m)?m:0,_=Object(c.isFiniteNumber)(v)?v:M,S=n.mapContextToLevelType(r),E=j.parseLevelPlaylist(t.data,w,_,S,M);if(E.tload=e.tload,E.fragments.length){if(y===o.MANIFEST){var k={url:w,details:E};f.trigger(d.default.MANIFEST_LOADED,{levels:[k],audioTracks:[],url:w,stats:e,networkDetails:h,sessionData:null})}if(e.tparsed=U.now(),E.needSidxRanges){var T=E.initSegment.url;this.load({url:T,isSidxRequest:!0,type:y,level:v,levelDetails:E,id:m,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer"})}else r.levelDetails=E,this._handlePlaylistLoaded(t,e,r,h)}else f.trigger(d.default.ERROR,{type:l.ErrorTypes.NETWORK_ERROR,details:l.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:w,reason:"no fragments found in level",level:"number"==typeof r.level?r.level:void 0})},f._handleSidxRequest=function(t,e){if("string"==typeof t.data)throw new Error("sidx request must be made with responseType of array buffer");var r=w.default.parseSegmentIndex(new Uint8Array(t.data));if(r){var n=r.references,o=e.levelDetails;n.forEach((function(t,e){var r=t.info;if(o){var n=o.fragments[e];0===n.byteRange.length&&n.setByteRange(String(1+r.end-r.start)+"@"+String(r.start))}})),o&&o.initSegment.setByteRange(String(r.moovEndOffset)+"@0")}},f._handleManifestParsingError=function(t,e,r,n){this.hls.trigger(d.default.ERROR,{type:l.ErrorTypes.NETWORK_ERROR,details:l.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:!0,url:t.url,reason:r,networkDetails:n})},f._handleNetworkError=function(t,e,r,n){var details,h;void 0===r&&(r=!1),void 0===n&&(n=null),m.logger.info("A network error occured while loading a "+t.type+"-type playlist");var f=this.getInternalLoader(t);switch(t.type){case o.MANIFEST:details=r?l.ErrorDetails.MANIFEST_LOAD_TIMEOUT:l.ErrorDetails.MANIFEST_LOAD_ERROR,h=!0;break;case o.LEVEL:details=r?l.ErrorDetails.LEVEL_LOAD_TIMEOUT:l.ErrorDetails.LEVEL_LOAD_ERROR,h=!1;break;case o.AUDIO_TRACK:details=r?l.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:l.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,h=!1;break;default:h=!1}f&&(f.abort(),this.resetInternalLoader(t.type));var c={type:l.ErrorTypes.NETWORK_ERROR,details:details,fatal:h,url:t.url,loader:f,context:t,networkDetails:e};n&&(c.response=n),this.hls.trigger(d.default.ERROR,c)},f._handlePlaylistLoaded=function(t,e,r,h){var f=r.type,l=r.level,c=r.id,m=r.levelDetails;if(m&&m.targetduration)if(n.canHaveQualityLevels(r.type))this.hls.trigger(d.default.LEVEL_LOADED,{details:m,level:l||0,id:c||0,stats:e,networkDetails:h});else switch(f){case o.AUDIO_TRACK:this.hls.trigger(d.default.AUDIO_TRACK_LOADED,{details:m,id:c,stats:e,networkDetails:h});break;case o.SUBTITLE_TRACK:this.hls.trigger(d.default.SUBTITLE_TRACK_LOADED,{details:m,id:c,stats:e,networkDetails:h})}else this._handleManifestParsingError(t,r,"invalid target duration",h)},n}(y),z=function(t){var e,r;function n(e){var r;return(r=t.call(this,e,d.default.FRAG_LOADING)||this).loaders={},r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var o=n.prototype;return o.destroy=function(){var e=this.loaders;for(var r in e){var n=e[r];n&&n.destroy()}this.loaders={},t.prototype.destroy.call(this)},o.onFragLoading=function(data){var t=data.frag,e=t.type,r=this.loaders,n=this.hls.config,o=n.fLoader,h=n.loader;t.loaded=0;var f,l,d,v=r[e];v&&(m.logger.warn("abort previous fragment loader for type: "+e),v.abort()),v=r[e]=t.loader=n.fLoader?new o(n):new h(n),f={url:t.url,frag:t,responseType:"arraybuffer",progressData:!1};var y=t.byteRangeStartOffset,w=t.byteRangeEndOffset;Object(c.isFiniteNumber)(y)&&Object(c.isFiniteNumber)(w)&&(f.rangeStart=y,f.rangeEnd=w),l={timeout:n.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:n.fragLoadingMaxRetryTimeout},d={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this),onProgress:this.loadprogress.bind(this)},v.load(f,l,d)},o.loadsuccess=function(t,e,r,n){void 0===n&&(n=null);var o=t.data,h=r.frag;h.loader=void 0,this.loaders[h.type]=void 0,this.hls.trigger(d.default.FRAG_LOADED,{payload:o,frag:h,stats:e,networkDetails:n})},o.loaderror=function(t,e,r){void 0===r&&(r=null);var n=e.frag,o=n.loader;o&&o.abort(),this.loaders[n.type]=void 0,this.hls.trigger(d.default.ERROR,{type:l.ErrorTypes.NETWORK_ERROR,details:l.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:e.frag,response:t,networkDetails:r})},o.loadtimeout=function(t,e,r){void 0===r&&(r=null);var n=e.frag,o=n.loader;o&&o.abort(),this.loaders[n.type]=void 0,this.hls.trigger(d.default.ERROR,{type:l.ErrorTypes.NETWORK_ERROR,details:l.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e.frag,networkDetails:r})},o.loadprogress=function(t,e,data,r){void 0===r&&(r=null);var n=e.frag;n.loaded=t.loaded,this.hls.trigger(d.default.FRAG_LOAD_PROGRESS,{frag:n,stats:t,networkDetails:r})},n}(y),H=function(t){var e,r;function n(e){var r;return(r=t.call(this,e,d.default.KEY_LOADING)||this).loaders={},r.decryptkey=null,r.decrypturl=null,r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var o=n.prototype;return o.destroy=function(){for(var e in this.loaders){var r=this.loaders[e];r&&r.destroy()}this.loaders={},t.prototype.destroy.call(this)},o.onKeyLoading=function(data){var t=data.frag,e=t.type,r=this.loaders[e];if(t.decryptdata){var n=t.decryptdata.uri;if(n!==this.decrypturl||null===this.decryptkey){var o=this.hls.config;if(r&&(m.logger.warn("abort previous key loader for type:"+e),r.abort()),!n)return void m.logger.warn("key uri is falsy");t.loader=this.loaders[e]=new o.loader(o),this.decrypturl=n,this.decryptkey=null;var h={url:n,frag:t,responseType:"arraybuffer"},f={timeout:o.fragLoadingTimeOut,maxRetry:0,retryDelay:o.fragLoadingRetryDelay,maxRetryDelay:o.fragLoadingMaxRetryTimeout},l={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};t.loader.load(h,f,l)}else this.decryptkey&&(t.decryptdata.key=this.decryptkey,this.hls.trigger(d.default.KEY_LOADED,{frag:t}))}else m.logger.warn("Missing decryption data on fragment in onKeyLoading")},o.loadsuccess=function(t,e,r){var n=r.frag;n.decryptdata?(this.decryptkey=n.decryptdata.key=new Uint8Array(t.data),n.loader=void 0,delete this.loaders[n.type],this.hls.trigger(d.default.KEY_LOADED,{frag:n})):m.logger.error("after key load, decryptdata unset")},o.loaderror=function(t,e){var r=e.frag,n=r.loader;n&&n.abort(),delete this.loaders[r.type],this.hls.trigger(d.default.ERROR,{type:l.ErrorTypes.NETWORK_ERROR,details:l.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:r,response:t})},o.loadtimeout=function(t,e){var r=e.frag,n=r.loader;n&&n.abort(),delete this.loaders[r.type],this.hls.trigger(d.default.ERROR,{type:l.ErrorTypes.NETWORK_ERROR,details:l.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:r})},n}(y),G="NOT_LOADED",V="APPENDING",W="PARTIAL",Y="OK",Z=function(t){var e,r;function n(e){var r;return(r=t.call(this,e,d.default.BUFFER_APPENDED,d.default.FRAG_BUFFERED,d.default.FRAG_LOADED)||this).bufferPadding=.2,r.fragments=Object.create(null),r.timeRanges=Object.create(null),r.config=e.config,r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var o=n.prototype;return o.destroy=function(){this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.config=null,y.prototype.destroy.call(this),t.prototype.destroy.call(this)},o.getBufferedFrag=function(t,e){var r=this.fragments,n=Object.keys(r).filter((function(n){var o=r[n];if(o.body.type!==e)return!1;if(!o.buffered)return!1;var h=o.body;return h.startPTS<=t&&t<=h.endPTS}));if(0===n.length)return null;var o=n.pop();return r[o].body},o.detectEvictedFragments=function(t,e){var r=this;Object.keys(this.fragments).forEach((function(n){var o=r.fragments[n];if(o&&o.buffered){var h=o.range[t];if(h)for(var f=h.time,i=0;i<f.length;i++){var time=f[i];if(!r.isTimeBuffered(time.startPTS,time.endPTS,e)){r.removeFragment(o.body);break}}}}))},o.detectPartialFragments=function(t){var e=this,r=this.getFragmentKey(t),n=this.fragments[r];n&&(n.buffered=!0,Object.keys(this.timeRanges).forEach((function(r){if(t.hasElementaryStream(r)){var o=e.timeRanges[r];n.range[r]=e.getBufferedTimes(t.startPTS,t.endPTS,o)}})))},o.getBufferedTimes=function(t,e,r){for(var n,o,h=[],f=!1,i=0;i<r.length;i++){if(n=r.start(i)-this.bufferPadding,o=r.end(i)+this.bufferPadding,t>=n&&e<=o){h.push({startPTS:Math.max(t,r.start(i)),endPTS:Math.min(e,r.end(i))});break}if(t<o&&e>n)h.push({startPTS:Math.max(t,r.start(i)),endPTS:Math.min(e,r.end(i))}),f=!0;else if(e<=n)break}return{time:h,partial:f}},o.getFragmentKey=function(t){return t.type+"_"+t.level+"_"+t.urlId+"_"+t.sn},o.getPartialFragment=function(time){var t,e,r,n=this,o=null,h=0;return Object.keys(this.fragments).forEach((function(f){var l=n.fragments[f];n.isPartial(l)&&(e=l.body.startPTS-n.bufferPadding,r=l.body.endPTS+n.bufferPadding,time>=e&&time<=r&&(t=Math.min(time-e,r-time),h<=t&&(o=l.body,h=t)))})),o},o.getState=function(t){var e=this.getFragmentKey(t),r=this.fragments[e],n=G;return void 0!==r&&(n=r.buffered?!0===this.isPartial(r)?W:Y:V),n},o.isPartial=function(t){return!0===t.buffered&&(void 0!==t.range.video&&!0===t.range.video.partial||void 0!==t.range.audio&&!0===t.range.audio.partial)},o.isTimeBuffered=function(t,e,r){for(var n,o,i=0;i<r.length;i++){if(n=r.start(i)-this.bufferPadding,o=r.end(i)+this.bufferPadding,t>=n&&e<=o)return!0;if(e<=n)return!1}return!1},o.onFragLoaded=function(t){var e=t.frag;Object(c.isFiniteNumber)(e.sn)&&!e.bitrateTest&&(this.fragments[this.getFragmentKey(e)]={body:e,range:Object.create(null),buffered:!1})},o.onBufferAppended=function(t){var e=this;this.timeRanges=t.timeRanges,Object.keys(this.timeRanges).forEach((function(t){var r=e.timeRanges[t];e.detectEvictedFragments(t,r)}))},o.onFragBuffered=function(t){this.detectPartialFragments(t.frag)},o.hasFragment=function(t){var e=this.getFragmentKey(t);return void 0!==this.fragments[e]},o.removeFragment=function(t){var e=this.getFragmentKey(t);delete this.fragments[e]},o.removeAllFragments=function(){this.fragments=Object.create(null)},n}(y),X={search:function(t,e){for(var r=0,n=t.length-1,o=null,h=null;r<=n;){var f=e(h=t[o=(r+n)/2|0]);if(f>0)r=o+1;else{if(!(f<0))return h;n=o-1}}return null}},$=function(){function t(){}return t.isBuffered=function(t,e){try{if(t)for(var r=t.buffered,i=0;i<r.length;i++)if(e>=r.start(i)&&e<=r.end(i))return!0}catch(t){}return!1},t.bufferInfo=function(t,e,r){try{if(t){var i,n=t.buffered,o=[];for(i=0;i<n.length;i++)o.push({start:n.start(i),end:n.end(i)});return this.bufferedInfo(o,e,r)}}catch(t){}return{len:0,start:e,end:e,nextStart:void 0}},t.bufferedInfo=function(t,e,r){t.sort((function(a,b){var t=a.start-b.start;return t||b.end-a.end}));var n=[];if(r)for(var i=0;i<t.length;i++){var o=n.length;if(o){var h=n[o-1].end;t[i].start-h<r?t[i].end>h&&(n[o-1].end=t[i].end):n.push(t[i])}else n.push(t[i])}else n=t;for(var f,l=0,c=e,d=e,m=0;m<n.length;m++){var v=n[m].start,y=n[m].end;if(e+r>=v&&e<y)c=v,l=(d=y)-e;else if(e+r<v){f=v;break}}return{len:l,start:c,end:d,nextStart:f}},t}(),J=r("./node_modules/eventemitter3/index.js"),Q=r("./node_modules/webworkify-webpack/index.js"),tt=r("./src/demux/demuxer-inline.js");function et(){return window.MediaSource||window.WebKitMediaSource}var it=r("./src/utils/get-self-scope.js"),nt=function(t){var e,r;function n(){return t.apply(this,arguments)||this}return r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,n.prototype.trigger=function(t){for(var e=arguments.length,data=new Array(e>1?e-1:0),r=1;r<e;r++)data[r-1]=arguments[r];this.emit.apply(this,[t,t].concat(data))},n}(J.EventEmitter),ot=Object(it.getSelfScope)(),at=et()||{isTypeSupported:function(){return!1}},st=function(){function t(t,e){var r=this;this.hls=t,this.id=e;var n=this.observer=new nt,o=t.config,h=function(e,data){(data=data||{}).frag=r.frag,data.id=r.id,t.trigger(e,data)};n.on(d.default.FRAG_DECRYPTED,h),n.on(d.default.FRAG_PARSING_INIT_SEGMENT,h),n.on(d.default.FRAG_PARSING_DATA,h),n.on(d.default.FRAG_PARSED,h),n.on(d.default.ERROR,h),n.on(d.default.FRAG_PARSING_METADATA,h),n.on(d.default.FRAG_PARSING_USERDATA,h),n.on(d.default.INIT_PTS_FOUND,h);var f={mp4:at.isTypeSupported("video/mp4"),mpeg:at.isTypeSupported("audio/mpeg"),mp3:at.isTypeSupported('audio/mp4; codecs="mp3"')},c=navigator.vendor;if(o.enableWorker&&"undefined"!=typeof Worker){var v;m.logger.log("demuxing in webworker");try{v=this.w=Q("./src/demux/demuxer-worker.js"),this.onwmsg=this.onWorkerMessage.bind(this),v.addEventListener("message",this.onwmsg),v.onerror=function(e){t.trigger(d.default.ERROR,{type:l.ErrorTypes.OTHER_ERROR,details:l.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",err:{message:e.message+" ("+e.filename+":"+e.lineno+")"}})},v.postMessage({cmd:"init",typeSupported:f,vendor:c,id:e,config:JSON.stringify(o)})}catch(t){m.logger.warn("Error in worker:",t),m.logger.error("Error while initializing DemuxerWorker, fallback on DemuxerInline"),v&&ot.URL.revokeObjectURL(v.objectURL),this.demuxer=new tt.default(n,f,o,c),this.w=void 0}}else this.demuxer=new tt.default(n,f,o,c)}var e=t.prototype;return e.destroy=function(){var t=this.w;if(t)t.removeEventListener("message",this.onwmsg),t.terminate(),this.w=null;else{var e=this.demuxer;e&&(e.destroy(),this.demuxer=null)}var r=this.observer;r&&(r.removeAllListeners(),this.observer=null)},e.push=function(data,t,e,r,n,o,h,f){var l=this.w,d=Object(c.isFiniteNumber)(n.startPTS)?n.startPTS:n.start,v=n.decryptdata,y=this.frag,w=!(y&&n.cc===y.cc),M=!(y&&n.level===y.level),_=y&&n.sn===y.sn+1,S=!M&&_;if(w&&m.logger.log(this.id+":discontinuity detected"),M&&m.logger.log(this.id+":switch detected"),this.frag=n,l)l.postMessage({cmd:"demux",data:data,decryptdata:v,initSegment:t,audioCodec:e,videoCodec:r,timeOffset:d,discontinuity:w,trackSwitch:M,contiguous:S,duration:o,accurateTimeOffset:h,defaultInitPTS:f},data instanceof ArrayBuffer?[data]:[]);else{var E=this.demuxer;E&&E.push(data,v,t,e,r,d,w,M,S,o,h,f)}},e.onWorkerMessage=function(t){var data=t.data,e=this.hls;switch(data.event){case"init":ot.URL.revokeObjectURL(this.w.objectURL);break;case d.default.FRAG_PARSING_DATA:data.data.data1=new Uint8Array(data.data1),data.data2&&(data.data.data2=new Uint8Array(data.data2));default:data.data=data.data||{},data.data.frag=this.frag,data.data.id=this.id,e.trigger(data.event,data.data)}},t}();function ut(t,e,r){switch(e){case"audio":t.audioGroupIds||(t.audioGroupIds=[]),t.audioGroupIds.push(r);break;case"text":t.textGroupIds||(t.textGroupIds=[]),t.textGroupIds.push(r)}}function ht(t,e,r){var n=t[e],o=t[r],h=o.startPTS;if(Object(c.isFiniteNumber)(h))r>e?(n.duration=h-n.start,n.duration<0&&m.logger.warn("negative duration computed for frag "+n.sn+",level "+n.level+", there should be some duration drift between playlist and fragment!")):(o.duration=n.start-h,o.duration<0&&m.logger.warn("negative duration computed for frag "+o.sn+",level "+o.level+", there should be some duration drift between playlist and fragment!"));else if(r>e){var f=n.cc===o.cc;o.start=n.start+(f&&n.minEndPTS?n.minEndPTS-n.start:n.duration)}else o.start=Math.max(n.start-o.duration,0)}function ft(details,t,e,r,n,o){var h=e,f=r;if(Object(c.isFiniteNumber)(t.startPTS)){var l=Math.abs(t.startPTS-e);Object(c.isFiniteNumber)(t.deltaPTS)?t.deltaPTS=Math.max(l,t.deltaPTS):t.deltaPTS=l,h=Math.max(e,t.startPTS),e=Math.min(e,t.startPTS),f=Math.min(r,t.endPTS),r=Math.max(r,t.endPTS),n=Math.min(n,t.startDTS),o=Math.max(o,t.endDTS)}var d=e-t.start;t.start=t.startPTS=e,t.maxStartPTS=h,t.endPTS=r,t.minEndPTS=f,t.startDTS=n,t.endDTS=o,t.duration=r-e;var m,v,i,y=t.sn;if(!details||y<details.startSN||y>details.endSN)return 0;for(m=y-details.startSN,(v=details.fragments)[m]=t,i=m;i>0;i--)ht(v,i,i-1);for(i=m;i<v.length-1;i++)ht(v,i,i+1);return details.PTSKnown=!0,d}function lt(t,e){e.initSegment&&t.initSegment&&(e.initSegment=t.initSegment);var r,n=0;if(ct(t,e,(function(t,o){n=t.cc-o.cc,Object(c.isFiniteNumber)(t.startPTS)&&(o.start=o.startPTS=t.startPTS,o.endPTS=t.endPTS,o.duration=t.duration,o.backtracked=t.backtracked,o.dropped=t.dropped,r=o),e.PTSKnown=!0})),e.PTSKnown){if(n){m.logger.log("discontinuity sliding from playlist, take drift into account");for(var o=e.fragments,i=0;i<o.length;i++)o[i].cc+=n}r?ft(e,r,r.startPTS,r.endPTS,r.startDTS,r.endDTS):function(t,e){var r=e.startSN-t.startSN,n=t.fragments,o=e.fragments;if(!(r<0||r>n.length))for(var i=0;i<o.length;i++)o[i].start+=n[r].start}(t,e),e.PTSKnown=t.PTSKnown}}function ct(t,e,r){if(t&&e)for(var n=Math.max(t.startSN,e.startSN)-e.startSN,o=Math.min(t.endSN,e.endSN)-e.startSN,h=e.startSN-t.startSN,i=n;i<=o;i++){var f=t.fragments[h+i],l=e.fragments[i];if(!f||!l)break;r(f,l,i)}}function pt(t,e,r){var n=1e3*(e.averagetargetduration?e.averagetargetduration:e.targetduration),o=n/2;return t&&e.endSN===t.endSN&&(n=o),r&&(n=Math.max(o,n-(window.performance.now()-r))),Math.round(n)}var mt={toString:function(t){for(var e="",r=t.length,i=0;i<r;i++)e+="["+t.start(i).toFixed(3)+","+t.end(i).toFixed(3)+"]";return e}};function gt(t,details){details.fragments.forEach((function(e){if(e){var r=e.start+t;e.start=e.startPTS=r,e.endPTS=r+e.duration}})),details.PTSKnown=!0}function vt(t,e,details){!function(t,details,e){if(function(t,e,details){var r=!1;return e&&e.details&&details&&(details.endCC>details.startCC||t&&t.cc<details.startCC)&&(r=!0),r}(t,e,details)){var r=function(t,e){var r=t.fragments,n=e.fragments;if(n.length&&r.length){var o=function(t,e){for(var r=null,i=0;i<t.length;i+=1){var n=t[i];if(n&&n.cc===e){r=n;break}}return r}(r,n[0].cc);if(o&&(!o||o.startPTS))return o;m.logger.log("No frag in previous level to align on")}else m.logger.log("No fragments to align")}(e.details,details);r&&(m.logger.log("Adjusting PTS using last level due to CC increase within current level"),gt(r.start,details))}}(t,details,e),!details.PTSKnown&&e&&function(details,t){if(t&&t.fragments.length){if(!details.hasProgramDateTime||!t.hasProgramDateTime)return;var e=t.fragments[0].programDateTime,r=(details.fragments[0].programDateTime-e)/1e3+t.fragments[0].start;Object(c.isFiniteNumber)(r)&&(m.logger.log("adjusting PTS using programDateTime delta, sliding:"+r.toFixed(3)),gt(r,details))}}(details,e.details)}function yt(t,e,r){if(null===e||!Array.isArray(t)||!t.length||!Object(c.isFiniteNumber)(e))return null;if(e<(t[0].programDateTime||0))return null;if(e>=(t[t.length-1].endProgramDateTime||0))return null;r=r||0;for(var n=0;n<t.length;++n){var o=t[n];if(Mt(e,r,o))return o}return null}function bt(t,e,r,n){void 0===r&&(r=0),void 0===n&&(n=0);var o=null;if(t?o=e[t.sn-e[0].sn+1]:0===r&&0===e[0].start&&(o=e[0]),o&&0===wt(r,n,o))return o;var h=X.search(e,wt.bind(null,r,n));return h||o}function wt(t,e,r){void 0===t&&(t=0),void 0===e&&(e=0);var n=Math.min(e,r.duration+(r.deltaPTS?r.deltaPTS:0));return r.start+r.duration-n<=t?1:r.start-n>t&&r.start?-1:0}function Mt(t,e,r){var n=1e3*Math.min(e,r.duration+(r.deltaPTS?r.deltaPTS:0));return(r.endProgramDateTime||0)-n>t}var _t=function(){function t(t,e,r,n){this.config=t,this.media=e,this.fragmentTracker=r,this.hls=n,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1}var e=t.prototype;return e.poll=function(t){var e=this.config,r=this.media,n=this.stalled,o=r.currentTime,h=r.seeking,f=this.seeking&&!h,l=!this.seeking&&h;if(this.seeking=h,o===t){if((l||f)&&(this.stalled=null),!r.paused&&!r.ended&&0!==r.playbackRate&&r.buffered.length){var c=$.bufferInfo(r,o,0),d=c.len>0,v=c.nextStart||0;if(d||v){if(h){var y=c.len>2,w=!v||v-o>2&&!this.fragmentTracker.getPartialFragment(o);if(y||w)return;this.moved=!1}if(!this.moved&&this.stalled){var M=Math.max(v,c.start||0)-o;if(M>0&&M<=2)return void this._trySkipBufferHole(null)}var _=self.performance.now();if(null!==n){var S=_-n;!h&&S>=250&&this._reportStall(c.len);var E=$.bufferInfo(r,o,e.maxBufferHole);this._tryFixBufferStall(E,S)}else this.stalled=_}}}else if(this.moved=!0,null!==n){if(this.stallReported){var k=self.performance.now()-n;m.logger.warn("playback not stuck anymore @"+o+", after "+Math.round(k)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}},e._tryFixBufferStall=function(t,e){var r=this.config,n=this.fragmentTracker,o=this.media.currentTime,h=n.getPartialFragment(o);h&&this._trySkipBufferHole(h)||t.len>r.maxBufferHole&&e>1e3*r.highBufferWatchdogPeriod&&(m.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},e._reportStall=function(t){var e=this.hls,r=this.media;this.stallReported||(this.stallReported=!0,m.logger.warn("Playback stalling at @"+r.currentTime+" due to low buffer (buffer="+t+")"),e.trigger(d.default.ERROR,{type:l.ErrorTypes.MEDIA_ERROR,details:l.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:t}))},e._trySkipBufferHole=function(t){for(var e=this.config,r=this.hls,n=this.media,o=n.currentTime,h=0,i=0;i<n.buffered.length;i++){var f=n.buffered.start(i);if(o+e.maxBufferHole>=h&&o<f){var c=Math.max(f+.05,n.currentTime+.1);return m.logger.warn("skipping hole, adjusting currentTime from "+o+" to "+c),this.moved=!0,this.stalled=null,n.currentTime=c,t&&r.trigger(d.default.ERROR,{type:l.ErrorTypes.MEDIA_ERROR,details:l.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+o+" to "+c,frag:t}),c}h=n.buffered.end(i)}return 0},e._tryNudgeBuffer=function(){var t=this.config,e=this.hls,r=this.media,n=r.currentTime,o=(this.nudgeRetry||0)+1;if(this.nudgeRetry=o,o<t.nudgeMaxRetry){var h=n+o*t.nudgeOffset;m.logger.warn("Nudging 'currentTime' from "+n+" to "+h),r.currentTime=h,e.trigger(d.default.ERROR,{type:l.ErrorTypes.MEDIA_ERROR,details:l.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else m.logger.error("Playhead still not moving while enough data buffered @"+n+" after "+t.nudgeMaxRetry+" nudges"),e.trigger(d.default.ERROR,{type:l.ErrorTypes.MEDIA_ERROR,details:l.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})},t}();function St(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Et=function(t){var e,r;function n(e){for(var r,n=arguments.length,o=new Array(n>1?n-1:0),h=1;h<n;h++)o[h-1]=arguments[h];return(r=t.call.apply(t,[this,e].concat(o))||this)._boundTick=void 0,r._tickTimer=null,r._tickInterval=null,r._tickCallCount=0,r._boundTick=r.tick.bind(St(r)),r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var o=n.prototype;return o.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},o.hasInterval=function(){return!!this._tickInterval},o.hasNextTick=function(){return!!this._tickTimer},o.setInterval=function(t){return!this._tickInterval&&(this._tickInterval=self.setInterval(this._boundTick,t),!0)},o.clearInterval=function(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)},o.clearNextTick=function(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)},o.tick=function(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),this._tickCallCount>1&&(this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)),this._tickCallCount=0)},o.doTick=function(){},n}(y),kt="STOPPED",Tt="STARTING",At="IDLE",Rt="PAUSED",xt="KEY_LOADING",Ot="FRAG_LOADING",It="FRAG_LOADING_WAITING_RETRY",Lt="WAITING_TRACK",Dt="PARSING",Ct="PARSED",Pt="BUFFER_FLUSHING",Bt="ENDED",Nt="ERROR",jt="WAITING_INIT_PTS",Ft="WAITING_LEVEL",Ut=function(t){var e,r;function n(){return t.apply(this,arguments)||this}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var o=n.prototype;return o.doTick=function(){},o.startLoad=function(){},o.stopLoad=function(){var t=this.fragCurrent;t&&(t.loader&&t.loader.abort(),this.fragmentTracker.removeFragment(t)),this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=kt},o._streamEnded=function(t,e){var r=this.fragCurrent,n=this.fragmentTracker;if(!e.live&&r&&!r.backtracked&&r.sn===e.endSN&&!t.nextStart){var o=n.getState(r);return o===W||o===Y}return!1},o.onMediaSeeking=function(){var t=this.config,e=this.media,r=this.mediaBuffer,n=this.state,o=e?e.currentTime:null,h=$.bufferInfo(r||e,o,this.config.maxBufferHole);if(m.logger.log("media seeking to "+(Object(c.isFiniteNumber)(o)?o.toFixed(3):o)),n===Ot){var f=this.fragCurrent;if(0===h.len&&f){var l=t.maxFragLookUpTolerance,d=f.start-l,v=f.start+f.duration+l;o<d||o>v?(f.loader&&(m.logger.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),f.loader.abort()),this.fragCurrent=null,this.fragPrevious=null,this.state=At):m.logger.log("seeking outside of buffer but within currently loaded fragment range")}}else n===Bt&&(0===h.len&&(this.fragPrevious=null,this.fragCurrent=null),this.state=At);e&&(this.lastCurrentTime=o),this.loadedmetadata||(this.nextLoadPosition=this.startPosition=o),this.tick()},o.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},o.onHandlerDestroying=function(){this.stopLoad(),t.prototype.onHandlerDestroying.call(this)},o.onHandlerDestroyed=function(){this.state=kt,this.fragmentTracker=null},o.computeLivePosition=function(t,e){var r=void 0!==this.config.liveSyncDuration?this.config.liveSyncDuration:this.config.liveSyncDurationCount*e.targetduration;return t+Math.max(0,e.totalduration-r)},n}(Et);function qt(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Kt,zt=function(t){var e,r;function n(e,r){var n;return(n=t.call(this,e,d.default.MEDIA_ATTACHED,d.default.MEDIA_DETACHING,d.default.MANIFEST_LOADING,d.default.MANIFEST_PARSED,d.default.LEVEL_LOADED,d.default.LEVELS_UPDATED,d.default.KEY_LOADED,d.default.FRAG_LOADED,d.default.FRAG_LOAD_EMERGENCY_ABORTED,d.default.FRAG_PARSING_INIT_SEGMENT,d.default.FRAG_PARSING_DATA,d.default.FRAG_PARSED,d.default.ERROR,d.default.AUDIO_TRACK_SWITCHING,d.default.AUDIO_TRACK_SWITCHED,d.default.BUFFER_CREATED,d.default.BUFFER_APPENDED,d.default.BUFFER_FLUSHED)||this).fragmentTracker=r,n.config=e.config,n.audioCodecSwap=!1,n._state=kt,n.stallReported=!1,n.gapController=null,n.altAudio=!1,n.audioOnly=!1,n.bitrateTest=!1,n}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var o,f,v,y=n.prototype;return y.startLoad=function(t){if(this.levels){var e=this.lastCurrentTime,r=this.hls;if(this.stopLoad(),this.setInterval(100),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var n=r.startLevel;-1===n&&(r.config.testBandwidth?(n=0,this.bitrateTest=!0):n=r.nextAutoLevel),this.level=r.nextLoadLevel=n,this.loadedmetadata=!1}e>0&&-1===t&&(m.logger.log("override startPosition with lastCurrentTime @"+e.toFixed(3)),t=e),this.state=At,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()}else this.forceStartLoad=!0,this.state=kt},y.stopLoad=function(){this.forceStartLoad=!1,t.prototype.stopLoad.call(this)},y.doTick=function(){switch(this.state){case Pt:this.fragLoadError=0;break;case At:this._doTickIdle();break;case Ft:var t=this.levels[this.level];t&&t.details&&(this.state=At);break;case It:var e=window.performance.now(),r=this.retryDate;(!r||e>=r||this.media&&this.media.seeking)&&(m.logger.log("mediaController: retryDate reached, switch back to IDLE state"),this.state=At)}this._checkBuffer(),this._checkFragmentChanged()},y._doTickIdle=function(){var t=this.hls,e=t.config,r=this.media;if(void 0!==this.levelLastLoaded&&(r||!this.startFragRequested&&e.startFragPrefetch))if(this.altAudio&&this.audioOnly)this.demuxer.frag=null;else{var n;n=this.loadedmetadata?r.currentTime:this.nextLoadPosition;var o=t.nextLoadLevel,h=this.levels[o];if(h){var f,l=h.bitrate;f=l?Math.max(8*e.maxBufferSize/l,e.maxBufferLength):e.maxBufferLength,f=Math.min(f,e.maxMaxBufferLength);var c=n<e.maxBufferHole?Math.max(2,e.maxBufferHole):e.maxBufferHole,v=$.bufferInfo(this.mediaBuffer?this.mediaBuffer:r,n,c),y=v.len;if(!(y>=f)){m.logger.trace("buffer length of "+y.toFixed(3)+" is below max of "+f.toFixed(3)+". checking for more payload ..."),this.level=t.nextLoadLevel=o;var w=h.details;if(!w||w.live&&this.levelLastLoaded!==o)this.state=Ft;else{if(this._streamEnded(v,w)){var data={};return this.altAudio&&(data.type="video"),this.hls.trigger(d.default.BUFFER_EOS,data),void(this.state=Bt)}this._fetchPayloadOrEos(n,v,w)}}}}},y._fetchPayloadOrEos=function(t,e,r){var n=this.fragPrevious,o=(this.level,r.fragments),h=o.length;if(0!==h){var f,l=o[0].start,c=o[h-1].start+o[h-1].duration,d=e.end;if(r.initSegment&&!r.initSegment.data)f=r.initSegment;else if(r.live){var v=this.config.initialLiveManifestSize;if(h<v)return void m.logger.warn("Can not start playback of a level, reason: not enough fragments "+h+" < "+v);if(null===(f=this._ensureFragmentAtLivePoint(r,d,l,c,n,o)))return}else d<l&&(f=o[0]);f||(f=this._findFragment(l,n,h,o,d,c,r)),f&&(f.encrypted?this._loadKey(f,r):this._loadFragment(f,r,t,d))}},y._ensureFragmentAtLivePoint=function(t,e,r,n,o,h){var f,l=this.hls.config,d=this.media,v=1/0;if(void 0!==l.liveMaxLatencyDuration?v=l.liveMaxLatencyDuration:Object(c.isFiniteNumber)(l.liveMaxLatencyDurationCount)&&(v=l.liveMaxLatencyDurationCount*t.targetduration),e<Math.max(r-l.maxFragLookUpTolerance,n-v)){var y=this.liveSyncPosition=this.computeLivePosition(r,t);e=y,d&&!d.paused&&d.readyState&&d.duration>y&&y>d.currentTime&&(m.logger.log("buffer end: "+e.toFixed(3)+" is located too far from the end of live sliding playlist, reset currentTime to : "+y.toFixed(3)),d.currentTime=y),this.nextLoadPosition=y}if(t.PTSKnown&&e>n&&d&&d.readyState)return null;if(this.startFragRequested&&!t.PTSKnown&&o)if(t.hasProgramDateTime)m.logger.log("live playlist, switching playlist, load frag with same PDT: "+o.programDateTime),f=yt(h,o.endProgramDateTime,l.maxFragLookUpTolerance);else{var w=o.sn+1;if(w>=t.startSN&&w<=t.endSN){var M=h[w-t.startSN];o.cc===M.cc&&(f=M,m.logger.log("live playlist, switching playlist, load frag with next SN: "+f.sn))}f||(f=X.search(h,(function(t){return o.cc-t.cc})))&&m.logger.log("live playlist, switching playlist, load frag with same CC: "+f.sn)}return f},y._findFragment=function(t,e,r,n,o,h,f){var l,c=this.hls.config;if(l=o<h?bt(e,n,o,o>h-c.maxFragLookUpTolerance?0:c.maxFragLookUpTolerance):n[r-1]){var d=l.sn-f.startSN,v=e&&l.level===e.level,y=n[d-1],w=n[d+1];if(e&&l.sn===e.sn)if(v&&!l.backtracked)if(l.sn<f.endSN){var M=e.deltaPTS;M&&M>c.maxBufferHole&&e.dropped&&d?(l=y,m.logger.warn("Previous fragment was dropped with large PTS gap between audio and video. Maybe fragment is not starting with a keyframe? Loading previous one to try to overcome this")):(l=w,this.fragmentTracker.getState(l)!==Y&&m.logger.log("Re-loading fragment with SN: "+l.sn))}else l=null;else l.backtracked&&(w&&w.backtracked?(m.logger.warn("Already backtracked from fragment "+w.sn+", will not backtrack to fragment "+l.sn+". Loading fragment "+w.sn),l=w):(m.logger.warn("Loaded fragment with dropped frames, backtracking 1 segment to find a keyframe"),l.dropped=0,y?(l=y).backtracked=!0:d&&(l=null)))}return l},y._loadKey=function(t,e){m.logger.log("Loading key for "+t.sn+" of ["+e.startSN+"-"+e.endSN+"], level "+this.level),this.state=xt,this.hls.trigger(d.default.KEY_LOADING,{frag:t})},y._loadFragment=function(t,e,r,n){var o=this.fragmentTracker.getState(t);this.fragCurrent=t,"initSegment"!==t.sn&&(this.startFragRequested=!0),Object(c.isFiniteNumber)(t.sn)&&!t.bitrateTest&&(this.nextLoadPosition=t.start+t.duration),t.backtracked||o===G||o===W?(t.autoLevel=this.hls.autoLevelEnabled,t.bitrateTest=this.bitrateTest,m.logger.log("Loading "+t.sn+" of ["+e.startSN+"-"+e.endSN+"], level "+this.level+", "+(this.loadedmetadata?"currentTime":"nextLoadPosition")+": "+parseFloat(r.toFixed(3))+", bufferEnd: "+parseFloat(n.toFixed(3))),this.hls.trigger(d.default.FRAG_LOADING,{frag:t}),this.demuxer||(this.demuxer=new st(this.hls,"main")),this.state=Ot):o===V&&this._reduceMaxBufferLength(t.duration)&&this.fragmentTracker.removeFragment(t)},y.getBufferedFrag=function(t){return this.fragmentTracker.getBufferedFrag(t,h.MAIN)},y.followingBufferedFrag=function(t){return t?this.getBufferedFrag(t.endPTS+.5):null},y._checkFragmentChanged=function(){var t,e,video=this.media;if(video&&video.readyState&&!1===video.seeking&&((e=video.currentTime)>this.lastCurrentTime&&(this.lastCurrentTime=e),$.isBuffered(video,e)?t=this.getBufferedFrag(e):$.isBuffered(video,e+.1)&&(t=this.getBufferedFrag(e+.1)),t)){var r=t;if(r!==this.fragPlaying){this.hls.trigger(d.default.FRAG_CHANGED,{frag:r});var n=r.level;this.fragPlaying&&this.fragPlaying.level===n||this.hls.trigger(d.default.LEVEL_SWITCHED,{level:n}),this.fragPlaying=r}}},y.immediateLevelSwitch=function(){if(m.logger.log("immediateLevelSwitch"),!this.immediateSwitch){this.immediateSwitch=!0;var t,e=this.media;e?(t=e.paused)||e.pause():t=!0,this.previouslyPaused=t}var r=this.fragCurrent;r&&r.loader&&r.loader.abort(),this.fragCurrent=null,this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},y.immediateLevelSwitchEnd=function(){var t=this.media;t&&t.buffered.length&&(this.immediateSwitch=!1,t.currentTime>0&&$.isBuffered(t,t.currentTime)&&(t.currentTime-=1e-4),this.previouslyPaused||t.play())},y.nextLevelSwitch=function(){var t=this.media;if(t&&t.readyState){var e,r=this.getBufferedFrag(t.currentTime);if(r&&r.startPTS>1&&this.flushMainBuffer(0,r.startPTS-1),t.paused)e=0;else{var n=this.hls.nextLoadLevel,o=this.levels[n],h=this.fragLastKbps;e=h&&this.fragCurrent?this.fragCurrent.duration*o.bitrate/(1e3*h)+1:0}var f=this.getBufferedFrag(t.currentTime+e);if(f){var l=this.followingBufferedFrag(f);if(l){var c=this.fragCurrent;c&&c.loader&&c.loader.abort(),this.fragCurrent=null;var d=Math.max(f.endPTS,l.maxStartPTS+Math.min(this.config.maxFragLookUpTolerance,l.duration));this.flushMainBuffer(d,Number.POSITIVE_INFINITY)}}}},y.flushMainBuffer=function(t,e){this.state=Pt;var r={startOffset:t,endOffset:e};this.altAudio&&(r.type="video"),this.hls.trigger(d.default.BUFFER_FLUSHING,r)},y.onMediaAttached=function(data){var t=this.media=this.mediaBuffer=data.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),this.onvended=this.onMediaEnded.bind(this),t.addEventListener("seeking",this.onvseeking),t.addEventListener("seeked",this.onvseeked),t.addEventListener("ended",this.onvended);var e=this.config;this.levels&&e.autoStartLoad&&this.hls.startLoad(e.startPosition),this.gapController=new _t(e,t,this.fragmentTracker,this.hls)},y.onMediaDetaching=function(){var t=this.media;t&&t.ended&&(m.logger.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0);var e=this.levels;e&&e.forEach((function(t){t.details&&t.details.fragments.forEach((function(t){t.backtracked=void 0}))})),t&&(t.removeEventListener("seeking",this.onvseeking),t.removeEventListener("seeked",this.onvseeked),t.removeEventListener("ended",this.onvended),this.onvseeking=this.onvseeked=this.onvended=null),this.fragmentTracker.removeAllFragments(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.stopLoad()},y.onMediaSeeked=function(){var t=this.media,e=t?t.currentTime:void 0;Object(c.isFiniteNumber)(e)&&m.logger.log("media seeked to "+e.toFixed(3)),this.tick()},y.onManifestLoading=function(){m.logger.log("trigger BUFFER_RESET"),this.hls.trigger(d.default.BUFFER_RESET),this.fragmentTracker.removeAllFragments(),this.stalled=!1,this.startPosition=this.lastCurrentTime=0},y.onManifestParsed=function(data){var t,e=!1,r=!1;data.levels.forEach((function(n){(t=n.audioCodec)&&(-1!==t.indexOf("mp4a.40.2")&&(e=!0),-1!==t.indexOf("mp4a.40.5")&&(r=!0))})),this.audioCodecSwitch=e&&r,this.audioCodecSwitch&&m.logger.log("both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.altAudio=data.altAudio,this.levels=data.levels,this.startFragRequested=!1;var n=this.config;(n.autoStartLoad||this.forceStartLoad)&&this.hls.startLoad(n.startPosition)},y.onLevelLoaded=function(data){var t=data.details,e=data.level,r=this.levels[this.levelLastLoaded],n=this.levels[e],o=t.totalduration,h=0;if(m.logger.log("level "+e+" loaded ["+t.startSN+","+t.endSN+"],duration:"+o),t.live||n.details&&n.details.live){var f=n.details;f&&t.fragments.length>0?(lt(f,t),h=t.fragments[0].start,this.liveSyncPosition=this.computeLivePosition(h,f),t.PTSKnown&&Object(c.isFiniteNumber)(h)?m.logger.log("live playlist sliding:"+h.toFixed(3)):(m.logger.log("live playlist - outdated PTS, unknown sliding"),vt(this.fragPrevious,r,t))):(m.logger.log("live playlist - first load, unknown sliding"),t.PTSKnown=!1,vt(this.fragPrevious,r,t))}else t.PTSKnown=!1;if(n.details=t,this.levelLastLoaded=e,this.hls.trigger(d.default.LEVEL_UPDATED,{details:t,level:e}),!1===this.startFragRequested){if(-1===this.startPosition||-1===this.lastCurrentTime){var l=t.startTimeOffset;Object(c.isFiniteNumber)(l)?(l<0&&(m.logger.log("negative start time offset "+l+", count from end of last fragment"),l=h+o+l),m.logger.log("start time offset found in playlist, adjust startPosition to "+l),this.startPosition=l):t.live?(this.startPosition=this.computeLivePosition(h,t),m.logger.log("configure startPosition to "+this.startPosition)):this.startPosition=0,this.lastCurrentTime=this.startPosition}this.nextLoadPosition=this.startPosition}this.state===Ft&&(this.state=At),this.tick()},y.onKeyLoaded=function(){this.state===xt&&(this.state=At,this.tick())},y.onFragLoaded=function(data){var t=this.fragCurrent,e=this.hls,r=this.levels,n=this.media,o=data.frag;if(this.state===Ot&&t&&"main"===o.type&&o.level===t.level&&o.sn===t.sn){var h=data.stats,f=r[t.level],details=f.details;if(this.bitrateTest=!1,this.stats=h,m.logger.log("Loaded "+t.sn+" of ["+details.startSN+" ,"+details.endSN+"],level "+t.level),o.bitrateTest&&e.nextLoadLevel)this.state=At,this.startFragRequested=!1,h.tparsed=h.tbuffered=window.performance.now(),e.trigger(d.default.FRAG_BUFFERED,{stats:h,frag:t,id:"main"}),this.tick();else if("initSegment"===o.sn)this.state=At,h.tparsed=h.tbuffered=window.performance.now(),details.initSegment.data=data.payload,e.trigger(d.default.FRAG_BUFFERED,{stats:h,frag:t,id:"main"}),this.tick();else{m.logger.log("Parsing "+t.sn+" of ["+details.startSN+" ,"+details.endSN+"],level "+t.level+", cc "+t.cc),this.state=Dt,this.pendingBuffering=!0,this.appended=!1,o.bitrateTest&&(o.bitrateTest=!1,this.fragmentTracker.onFragLoaded({frag:o}));var l=!(n&&n.seeking)&&(details.PTSKnown||!details.live),c=details.initSegment?details.initSegment.data:[],v=this._getAudioCodec(f);(this.demuxer=this.demuxer||new st(this.hls,"main")).push(data.payload,c,v,f.videoCodec,t,details.totalduration,l)}}this.fragLoadError=0},y.onFragParsingInitSegment=function(data){var t=this.fragCurrent,e=data.frag;if(t&&"main"===data.id&&e.sn===t.sn&&e.level===t.level&&this.state===Dt){var r,track,n=data.tracks;if(this.audioOnly=n.audio&&!n.video,this.altAudio&&!this.audioOnly&&delete n.audio,track=n.audio){var o=this.levels[this.level].audioCodec,h=navigator.userAgent.toLowerCase();o&&this.audioCodecSwap&&(m.logger.log("swapping playlist audio codec"),o=-1!==o.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),this.audioCodecSwitch&&1!==track.metadata.channelCount&&-1===h.indexOf("firefox")&&(o="mp4a.40.5"),-1!==h.indexOf("android")&&"audio/mpeg"!==track.container&&(o="mp4a.40.2",m.logger.log("Android: force audio codec to "+o)),track.levelCodec=o,track.id=data.id}for(r in(track=n.video)&&(track.levelCodec=this.levels[this.level].videoCodec,track.id=data.id),this.hls.trigger(d.default.BUFFER_CODECS,n),n){track=n[r],m.logger.log("main track:"+r+",container:"+track.container+",codecs[level/parsed]=["+track.levelCodec+"/"+track.codec+"]");var f=track.initSegment;f&&(this.appended=!0,this.pendingBuffering=!0,this.hls.trigger(d.default.BUFFER_APPENDING,{type:r,data:f,parent:"main",content:"initSegment"}))}this.tick()}},y.onFragParsingData=function(data){var t=this,e=this.fragCurrent,r=data.frag;if(e&&"main"===data.id&&r.sn===e.sn&&r.level===e.level&&("audio"!==data.type||!this.altAudio)&&this.state===Dt){var n=this.levels[this.level],o=e;if(Object(c.isFiniteNumber)(data.endPTS)||(data.endPTS=data.startPTS+e.duration,data.endDTS=data.startDTS+e.duration),!0===data.hasAudio&&o.addElementaryStream(_.AUDIO),!0===data.hasVideo&&o.addElementaryStream(_.VIDEO),m.logger.log("Parsed "+data.type+",PTS:["+data.startPTS.toFixed(3)+","+data.endPTS.toFixed(3)+"],DTS:["+data.startDTS.toFixed(3)+"/"+data.endDTS.toFixed(3)+"],nb:"+data.nb+",dropped:"+(data.dropped||0)),"video"===data.type)if(o.dropped=data.dropped,o.dropped)if(o.backtracked)m.logger.warn("Already backtracked on this fragment, appending with the gap",o.sn);else{var h=n.details;if(!h||o.sn!==h.startSN)return m.logger.warn("missing video frame(s), backtracking fragment",o.sn),this.fragmentTracker.removeFragment(o),o.backtracked=!0,this.nextLoadPosition=data.startPTS,this.state=At,this.fragPrevious=o,this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),void this.tick();m.logger.warn("missing video frame(s) on first frag, appending with gap",o.sn)}else o.backtracked=!1;var f=ft(n.details,o,data.startPTS,data.endPTS,data.startDTS,data.endDTS),l=this.hls;l.trigger(d.default.LEVEL_PTS_UPDATED,{details:n.details,level:this.level,drift:f,type:data.type,start:data.startPTS,end:data.endPTS}),[data.data1,data.data2].forEach((function(e){e&&e.length&&t.state===Dt&&(t.appended=!0,t.pendingBuffering=!0,l.trigger(d.default.BUFFER_APPENDING,{type:data.type,data:e,parent:"main",content:"data"}))})),this.tick()}},y.onFragParsed=function(data){var t=this.fragCurrent,e=data.frag;t&&"main"===data.id&&e.sn===t.sn&&e.level===t.level&&this.state===Dt&&(this.stats.tparsed=window.performance.now(),this.state=Ct,this._checkAppendedParsed())},y.onAudioTrackSwitching=function(data){var t=this.altAudio,e=!!data.url,r=data.id;if(!e){if(this.mediaBuffer!==this.media){m.logger.log("switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var n=this.fragCurrent;n.loader&&(m.logger.log("switching to main audio track, cancel main fragment load"),n.loader.abort()),this.fragCurrent=null,this.fragPrevious=null,this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),this.state=At}var o=this.hls;t&&o.trigger(d.default.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),o.trigger(d.default.AUDIO_TRACK_SWITCHED,{id:r})}},y.onAudioTrackSwitched=function(data){var t=data.id,e=!!this.hls.audioTracks[t].url;if(e){var r=this.videoBuffer;r&&this.mediaBuffer!==r&&(m.logger.log("switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=r)}this.altAudio=e,this.tick()},y.onBufferCreated=function(data){var t,e,r=data.tracks,n=!1;for(var o in r){var track=r[o];"main"===track.id?(e=o,t=track,"video"===o&&(this.videoBuffer=r[o].buffer)):n=!0}n&&t?(m.logger.log("alternate track found, use "+e+".buffered to schedule main fragment loading"),this.mediaBuffer=t.buffer):this.mediaBuffer=this.media},y.onBufferAppended=function(data){if("main"===data.parent){var t=this.state;t!==Dt&&t!==Ct||(this.pendingBuffering=data.pending>0,this._checkAppendedParsed())}},y._checkAppendedParsed=function(){if(!(this.state!==Ct||this.appended&&this.pendingBuffering)){var t=this.fragCurrent;if(t){var e=this.mediaBuffer?this.mediaBuffer:this.media;m.logger.log("main buffered : "+mt.toString(e.buffered)),this.fragPrevious=t;var r=this.stats;r.tbuffered=window.performance.now(),this.fragLastKbps=Math.round(8*r.total/(r.tbuffered-r.tfirst)),this.hls.trigger(d.default.FRAG_BUFFERED,{stats:r,frag:t,id:"main"}),this.state=At}(this.loadedmetadata||this.startPosition<=0)&&this.tick()}},y.onError=function(data){var t=data.frag||this.fragCurrent;if(!t||"main"===t.type){var e=!!this.media&&$.isBuffered(this.media,this.media.currentTime)&&$.isBuffered(this.media,this.media.currentTime+.5);switch(data.details){case l.ErrorDetails.FRAG_LOAD_ERROR:case l.ErrorDetails.FRAG_LOAD_TIMEOUT:case l.ErrorDetails.KEY_LOAD_ERROR:case l.ErrorDetails.KEY_LOAD_TIMEOUT:if(!data.fatal)if(this.fragLoadError+1<=this.config.fragLoadingMaxRetry){var r=Math.min(Math.pow(2,this.fragLoadError)*this.config.fragLoadingRetryDelay,this.config.fragLoadingMaxRetryTimeout);m.logger.warn("mediaController: frag loading failed, retry in "+r+" ms"),this.retryDate=window.performance.now()+r,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.fragLoadError++,this.state=It}else m.logger.error("mediaController: "+data.details+" reaches max retry, redispatch as fatal ..."),data.fatal=!0,this.state=Nt;break;case l.ErrorDetails.LEVEL_LOAD_ERROR:case l.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==Nt&&(data.fatal?(this.state=Nt,m.logger.warn("streamController: "+data.details+",switch to "+this.state+" state ...")):data.levelRetry||this.state!==Ft||(this.state=At));break;case l.ErrorDetails.BUFFER_FULL_ERROR:"main"!==data.parent||this.state!==Dt&&this.state!==Ct||(e?(this._reduceMaxBufferLength(this.config.maxBufferLength),this.state=At):(m.logger.warn("buffer full error also media.currentTime is not buffered, flush everything"),this.fragCurrent=null,this.flushMainBuffer(0,Number.POSITIVE_INFINITY)))}}},y._reduceMaxBufferLength=function(t){var e=this.config;return e.maxMaxBufferLength>=t&&(e.maxMaxBufferLength/=2,m.logger.warn("main:reduce max buffer length to "+e.maxMaxBufferLength+"s"),!0)},y._checkBuffer=function(){var t=this.media;if(t&&0!==t.readyState){var e=(this.mediaBuffer?this.mediaBuffer:t).buffered;!this.loadedmetadata&&e.length?(this.loadedmetadata=!0,this._seekToStartPos()):this.immediateSwitch?this.immediateLevelSwitchEnd():this.gapController.poll(this.lastCurrentTime,e)}},y.onFragLoadEmergencyAborted=function(){this.state=At,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tick()},y.onBufferFlushed=function(){var t=this.mediaBuffer?this.mediaBuffer:this.media;if(t){var e=this.audioOnly?_.AUDIO:_.VIDEO;this.fragmentTracker.detectEvictedFragments(e,t.buffered)}this.state=At,this.fragPrevious=null},y.onLevelsUpdated=function(data){this.levels=data.levels},y.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},y._seekToStartPos=function(){var t=this.media,e=t.currentTime,r=this.startPosition;if(e!==r&&r>=0){if(t.seeking)return void m.logger.log("could not seek to "+r+", already seeking at "+e);var n=(t.buffered.length?t.buffered.start(0):0)-r;n>0&&n<this.config.maxBufferHole&&(m.logger.log("adjusting start position by "+n+" to match buffer start"),r+=n,this.startPosition=r),m.logger.log("seek to target start position "+r+" from current time "+e+". ready state "+t.readyState),t.currentTime=r}},y._getAudioCodec=function(t){var e=this.config.defaultAudioCodec||t.audioCodec;return this.audioCodecSwap&&(m.logger.log("swapping playlist audio codec"),e&&(e=-1!==e.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5")),e},o=n,(f=[{key:"state",set:function(t){if(this.state!==t){var e=this.state;this._state=t,m.logger.log("main stream-controller: "+e+"->"+t),this.hls.trigger(d.default.STREAM_STATE_TRANSITION,{previousState:e,nextState:t})}},get:function(){return this._state}},{key:"currentLevel",get:function(){var t=this.media;if(t){var e=this.getBufferedFrag(t.currentTime);if(e)return e.level}return-1}},{key:"nextBufferedFrag",get:function(){var t=this.media;return t?this.followingBufferedFrag(this.getBufferedFrag(t.currentTime)):null}},{key:"nextLevel",get:function(){var t=this.nextBufferedFrag;return t?t.level:-1}},{key:"liveSyncPosition",get:function(){return this._liveSyncPosition},set:function(t){this._liveSyncPosition=t}}])&&qt(o.prototype,f),v&&qt(o,v),n}(Ut);function Ht(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Gt=function(t){var e,r;function n(e){var r;return(r=t.call(this,e,d.default.MANIFEST_LOADED,d.default.LEVEL_LOADED,d.default.AUDIO_TRACK_SWITCHED,d.default.FRAG_LOADED,d.default.ERROR)||this).canload=!1,r.currentLevelIndex=null,r.manualLevelIndex=-1,r.timer=null,Kt=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var o,h,f,c=n.prototype;return c.onHandlerDestroying=function(){this.clearTimer(),this.manualLevelIndex=-1},c.clearTimer=function(){null!==this.timer&&(clearTimeout(this.timer),this.timer=null)},c.startLoad=function(){var t=this._levels;this.canload=!0,this.levelRetryCount=0,t&&t.forEach((function(t){t.loadError=0;var e=t.details;e&&e.live&&(t.details=void 0)})),null!==this.timer&&this.loadLevel()},c.stopLoad=function(){this.canload=!1},c.onManifestLoaded=function(data){var t,e=[],r=[],n={},o=null,h=!1,f=!1;if(data.levels.forEach((function(t){var r=t.attrs;t.loadError=0,t.fragmentError=!1,h=h||!!t.videoCodec,f=f||!!t.audioCodec,Kt&&t.audioCodec&&-1!==t.audioCodec.indexOf("mp4a.40.34")&&(t.audioCodec=void 0),(o=n[t.bitrate])?o.url.push(t.url):(t.url=[t.url],t.urlId=0,n[t.bitrate]=t,e.push(t)),r&&(r.AUDIO&&ut(o||t,"audio",r.AUDIO),r.SUBTITLES&&ut(o||t,"text",r.SUBTITLES))})),h&&f&&(e=e.filter((function(t){return!!t.videoCodec}))),e=e.filter((function(t){var e=t.audioCodec,r=t.videoCodec;return(!e||L(e,"audio"))&&(!r||L(r,"video"))})),data.audioTracks&&(r=data.audioTracks.filter((function(track){return!track.audioCodec||L(track.audioCodec,"audio")}))).forEach((function(track,t){track.id=t})),e.length>0){t=e[0].bitrate,e.sort((function(a,b){return a.bitrate-b.bitrate})),this._levels=e;for(var i=0;i<e.length;i++)if(e[i].bitrate===t){this._firstLevel=i,m.logger.log("manifest loaded,"+e.length+" level(s) found, first bitrate:"+t);break}var c=f&&!h;this.hls.trigger(d.default.MANIFEST_PARSED,{levels:e,audioTracks:r,firstLevel:this._firstLevel,stats:data.stats,audio:f,video:h,altAudio:!c&&r.some((function(t){return!!t.url}))})}else this.hls.trigger(d.default.ERROR,{type:l.ErrorTypes.MEDIA_ERROR,details:l.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:this.hls.url,reason:"no level with compatible codecs found in manifest"})},c.setLevelInternal=function(t){var e=this._levels,r=this.hls;if(t>=0&&t<e.length){if(this.clearTimer(),this.currentLevelIndex!==t){m.logger.log("switching to level "+t),this.currentLevelIndex=t;var n=e[t];n.level=t,r.trigger(d.default.LEVEL_SWITCHING,n)}var o=e[t],h=o.details;if(!h||h.live){var f=o.urlId;r.trigger(d.default.LEVEL_LOADING,{url:o.url[f],level:t,id:f})}}else r.trigger(d.default.ERROR,{type:l.ErrorTypes.OTHER_ERROR,details:l.ErrorDetails.LEVEL_SWITCH_ERROR,level:t,fatal:!1,reason:"invalid level idx"})},c.onError=function(data){if(data.fatal)data.type===l.ErrorTypes.NETWORK_ERROR&&this.clearTimer();else{var t,e=!1,r=!1;switch(data.details){case l.ErrorDetails.FRAG_LOAD_ERROR:case l.ErrorDetails.FRAG_LOAD_TIMEOUT:case l.ErrorDetails.KEY_LOAD_ERROR:case l.ErrorDetails.KEY_LOAD_TIMEOUT:t=data.frag.level,r=!0;break;case l.ErrorDetails.LEVEL_LOAD_ERROR:case l.ErrorDetails.LEVEL_LOAD_TIMEOUT:t=data.context.level,e=!0;break;case l.ErrorDetails.REMUX_ALLOC_ERROR:t=data.level,e=!0}void 0!==t&&this.recoverLevel(data,t,e,r)}},c.recoverLevel=function(t,e,r,n){var o,h,f,l=this,c=this.hls.config,d=t.details,v=this._levels[e];if(v.loadError++,v.fragmentError=n,r){if(!(this.levelRetryCount+1<=c.levelLoadingMaxRetry))return m.logger.error("level controller, cannot recover from "+d+" error"),this.currentLevelIndex=null,this.clearTimer(),void(t.fatal=!0);h=Math.min(Math.pow(2,this.levelRetryCount)*c.levelLoadingRetryDelay,c.levelLoadingMaxRetryTimeout),this.timer=setTimeout((function(){return l.loadLevel()}),h),t.levelRetry=!0,this.levelRetryCount++,m.logger.warn("level controller, "+d+", retry in "+h+" ms, current retry count is "+this.levelRetryCount)}(r||n)&&((o=v.url.length)>1&&v.loadError<o?(v.urlId=(v.urlId+1)%o,v.details=void 0,m.logger.warn("level controller, "+d+" for level "+e+": switching to redundant URL-id "+v.urlId)):-1===this.manualLevelIndex?(f=0===e?this._levels.length-1:e-1,m.logger.warn("level controller, "+d+": switch to "+f),this.hls.nextAutoLevel=this.currentLevelIndex=f):n&&(m.logger.warn("level controller, "+d+": reload a fragment"),this.currentLevelIndex=null))},c.onFragLoaded=function(t){var e=t.frag;if(void 0!==e&&"main"===e.type){var r=this._levels[e.level];void 0!==r&&(r.fragmentError=!1,r.loadError=0,this.levelRetryCount=0)}},c.onLevelLoaded=function(data){var t=this,e=data.level,details=data.details;if(e===this.currentLevelIndex){var r=this._levels[e];if(r.fragmentError||(r.loadError=0,this.levelRetryCount=0),details.live){var n=pt(r.details,details,data.stats.trequest);m.logger.log("live playlist, reload in "+Math.round(n)+" ms"),this.timer=setTimeout((function(){return t.loadLevel()}),n)}else this.clearTimer()}},c.onAudioTrackSwitched=function(data){var t=this.hls.audioTracks[data.id].groupId,e=this.hls.levels[this.currentLevelIndex];if(e&&e.audioGroupIds){for(var r=-1,i=0;i<e.audioGroupIds.length;i++)if(e.audioGroupIds[i]===t){r=i;break}r!==e.urlId&&(e.urlId=r,this.startLoad())}},c.loadLevel=function(){if(m.logger.debug("call to loadLevel"),null!==this.currentLevelIndex&&this.canload){var t=this._levels[this.currentLevelIndex];if("object"==typeof t&&t.url.length>0){var e=this.currentLevelIndex,r=t.urlId,n=t.url[r];m.logger.log("Attempt loading level index "+e+" with URL-id "+r),this.hls.trigger(d.default.LEVEL_LOADING,{url:n,level:e,id:r})}}},c.removeLevel=function(t,e){var r=this.levels.filter((function(r,n){return n!==t||r.url.length>1&&void 0!==e&&(r.url=r.url.filter((function(t,r){return r!==e})),r.urlId=0,!0)})).map((function(t,e){var details=t.details;return details&&details.fragments&&details.fragments.forEach((function(t){t.level=e})),t}));this._levels=r,this.hls.trigger(d.default.LEVELS_UPDATED,{levels:r})},o=n,(h=[{key:"levels",get:function(){return this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(t){var e=this._levels;e&&(t=Math.min(t,e.length-1),this.currentLevelIndex===t&&e[t].details||this.setLevelInternal(t))}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(t){this.manualLevelIndex=t,void 0===this._startLevel&&(this._startLevel=t),-1!==t&&(this.level=t)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(t){this._firstLevel=t}},{key:"startLevel",get:function(){if(void 0===this._startLevel){var t=this.hls.config.startLevel;return void 0!==t?t:this._firstLevel}return this._startLevel},set:function(t){this._startLevel=t}},{key:"nextLoadLevel",get:function(){return-1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(t){this.level=t,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=t)}}])&&Ht(o.prototype,h),f&&Ht(o,f),n}(y),Vt=r("./src/demux/id3.js");function Wt(track,t){var e;try{e=new Event("addtrack")}catch(t){(e=document.createEvent("Event")).initEvent("addtrack",!1,!1)}e.track=track,t.dispatchEvent(e)}function Yt(track){if(null==track?void 0:track.cues)for(;track.cues.length>0;)track.removeCue(track.cues[0])}var Zt=function(t){var e,r;function n(e){var r;return(r=t.call(this,e,d.default.MEDIA_ATTACHED,d.default.MEDIA_DETACHING,d.default.FRAG_PARSING_METADATA,d.default.LIVE_BACK_BUFFER_REACHED)||this).id3Track=void 0,r.media=void 0,r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var o=n.prototype;return o.destroy=function(){y.prototype.destroy.call(this)},o.onMediaAttached=function(data){this.media=data.media,this.media},o.onMediaDetaching=function(){Yt(this.id3Track),this.id3Track=void 0,this.media=void 0},o.getID3Track=function(t){for(var i=0;i<t.length;i++){var e=t[i];if("metadata"===e.kind&&"id3"===e.label)return Wt(e,this.media),e}return this.media.addTextTrack("metadata","id3")},o.onFragParsingMetadata=function(data){var t=data.frag,e=data.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var r=window.WebKitDataCue||window.VTTCue||window.TextTrackCue,i=0;i<e.length;i++){var n=Vt.default.getID3Frames(e[i].data);if(n){var o=Math.max(e[i].pts,0),h=i<e.length-1?e[i+1].pts:t.endPTS;h||(h=t.start+t.duration),h-o<=0&&(h=o+.25);for(var f=0;f<n.length;f++){var l=n[f];if(!Vt.default.isTimeStampFrame(l)){var c=new r(o,h,"");c.value=l,this.id3Track.addCue(c)}}}}},o.onLiveBackBufferReached=function(t){var e=t.bufferEnd,r=this.id3Track;if(r&&r.cues&&r.cues.length){var n=function(t,time){if(time<t[0].endTime)return t[0];if(time>t[t.length-1].endTime)return t[t.length-1];for(var e=0,r=t.length-1;e<=r;){var n=Math.floor((r+e)/2);if(time<t[n].endTime)r=n-1;else{if(!(time>t[n].endTime))return t[n];e=n+1}}return t[e].endTime-time<time-t[r].endTime?t[e]:t[r]}(r.cues,e);if(n)for(;r.cues[0]!==n;)r.removeCue(r.cues[0])}},n}(y),Xt=function(){function t(t){this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.alpha_=t?Math.exp(Math.log(.5)/t):0,this.estimate_=0,this.totalWeight_=0}var e=t.prototype;return e.sample=function(t,e){var r=Math.pow(this.alpha_,t);this.estimate_=e*(1-r)+r*this.estimate_,this.totalWeight_+=t},e.getTotalWeight=function(){return this.totalWeight_},e.getEstimate=function(){if(this.alpha_){var t=1-Math.pow(this.alpha_,this.totalWeight_);return this.estimate_/t}return this.estimate_},t}(),$t=function(){function t(t,e,r,n){this.hls=void 0,this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.hls=t,this.defaultEstimate_=n,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new Xt(e),this.fast_=new Xt(r)}var e=t.prototype;return e.sample=function(t,e){var r=(t=Math.max(t,this.minDelayMs_))/1e3,n=8*e/r;this.fast_.sample(r,n),this.slow_.sample(r,n)},e.canEstimate=function(){var t=this.fast_;return t&&t.getTotalWeight()>=this.minWeight_},e.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},e.destroy=function(){},t}();function Jt(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Qt=window.performance,te=function(t){var e,r;function n(e){var r;return(r=t.call(this,e,d.default.FRAG_LOADING,d.default.FRAG_LOADED,d.default.FRAG_BUFFERED,d.default.ERROR)||this).lastLoadedFragLevel=0,r._nextAutoLevel=-1,r.hls=e,r.timer=null,r._bwEstimator=null,r.onCheck=r._abandonRulesCheck.bind(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(r)),r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var o,h,f,v=n.prototype;return v.destroy=function(){this.clearTimer(),y.prototype.destroy.call(this)},v.onFragLoading=function(data){var t=data.frag;if("main"===t.type&&(this.timer||(this.fragCurrent=t,this.timer=setInterval(this.onCheck,100)),!this._bwEstimator)){var e,r,n=this.hls,o=n.config,h=t.level;n.levels[h].details.live?(e=o.abrEwmaFastLive,r=o.abrEwmaSlowLive):(e=o.abrEwmaFastVoD,r=o.abrEwmaSlowVoD),this._bwEstimator=new $t(n,r,e,o.abrEwmaDefaultEstimate)}},v._abandonRulesCheck=function(){var t=this.hls,video=t.media,e=this.fragCurrent;if(e){var r=e.loader;if(!r||r.stats&&r.stats.aborted)return m.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),void(this._nextAutoLevel=-1);var n=r.stats;if(video&&n&&(!video.paused&&0!==video.playbackRate||!video.readyState)&&e.autoLevel&&e.level){var o=Qt.now()-n.trequest,h=Math.abs(video.playbackRate);if(o>500*e.duration/h){var f=t.levels,l=Math.max(1,n.bw?n.bw/8:1e3*n.loaded/o),c=f[e.level];if(!c)return;var v=c.realBitrate?Math.max(c.realBitrate,c.bitrate):c.bitrate,y=n.total?n.total:Math.max(n.loaded,Math.round(e.duration*v/8)),w=video.currentTime,M=(y-n.loaded)/l,_=($.bufferInfo(video,w,t.config.maxBufferHole).end-w)/h;if(_<2*e.duration/h&&M>_){var S,E=t.minAutoLevel;for(S=e.level-1;S>E;S--){var k=f[S].realBitrate?Math.max(f[S].realBitrate,f[S].bitrate):f[S].bitrate;if(e.duration*k/(6.4*l)<_)break}void 0<M&&(m.logger.warn("loading too slow, abort fragment loading and switch to level "+S+":fragLoadedDelay["+S+"]<fragLoadedDelay["+(e.level-1)+"];bufferStarvationDelay:"+(void 0).toFixed(1)+"<"+M.toFixed(1)+":"+_.toFixed(1)),t.nextLoadLevel=S,this._bwEstimator.sample(o,n.loaded),r.abort(),this.clearTimer(),t.trigger(d.default.FRAG_LOAD_EMERGENCY_ABORTED,{frag:e,stats:n}))}}}}},v.onFragLoaded=function(data){var t=data.frag;if("main"===t.type&&Object(c.isFiniteNumber)(t.sn)){if(this.clearTimer(),this.lastLoadedFragLevel=t.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var e=this.hls.levels[t.level],r=(e.loaded?e.loaded.bytes:0)+data.stats.loaded,n=(e.loaded?e.loaded.duration:0)+data.frag.duration;e.loaded={bytes:r,duration:n},e.realBitrate=Math.round(8*r/n)}if(data.frag.bitrateTest){var o=data.stats;o.tparsed=o.tbuffered=o.tload,this.onFragBuffered(data)}}},v.onFragBuffered=function(data){var t=data.stats,e=data.frag;if(!0!==t.aborted&&"main"===e.type&&Object(c.isFiniteNumber)(e.sn)&&(!e.bitrateTest||t.tload===t.tbuffered)){var r=t.tparsed-t.trequest;m.logger.log("latency/loading/parsing/append/kbps:"+Math.round(t.tfirst-t.trequest)+"/"+Math.round(t.tload-t.tfirst)+"/"+Math.round(t.tparsed-t.tload)+"/"+Math.round(t.tbuffered-t.tparsed)+"/"+Math.round(8*t.loaded/(t.tbuffered-t.trequest))),this._bwEstimator.sample(r,t.loaded),t.bwEstimate=this._bwEstimator.getEstimate(),e.bitrateTest?this.bitrateTestDelay=r/1e3:this.bitrateTestDelay=0}},v.onError=function(data){switch(data.details){case l.ErrorDetails.FRAG_LOAD_ERROR:case l.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer()}},v.clearTimer=function(){clearInterval(this.timer),this.timer=null},v._findBestLevel=function(t,e,r,n,o,h,f,l,c){for(var i=o;i>=n;i--){var d=c[i];if(d){var v=d.details,y=v?v.totalduration/v.fragments.length:e,w=!!v&&v.live,M=void 0;M=i<=t?f*r:l*r;var _=c[i].realBitrate?Math.max(c[i].realBitrate,c[i].bitrate):c[i].bitrate,S=_*y/M;if(m.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+i+"/"+Math.round(M)+"/"+_+"/"+y+"/"+h+"/"+S),M>_&&(!S||w&&!this.bitrateTestDelay||S<h))return i}}return-1},o=n,(h=[{key:"nextAutoLevel",get:function(){var t=this._nextAutoLevel,e=this._bwEstimator;if(!(-1===t||e&&e.canEstimate()))return t;var r=this._nextABRAutoLevel;return-1!==t&&(r=Math.min(t,r)),r},set:function(t){this._nextAutoLevel=t}},{key:"_nextABRAutoLevel",get:function(){var t=this.hls,e=t.maxAutoLevel,r=t.levels,n=t.config,o=t.minAutoLevel,video=t.media,h=this.lastLoadedFragLevel,f=this.fragCurrent?this.fragCurrent.duration:0,l=video?video.currentTime:0,c=video&&0!==video.playbackRate?Math.abs(video.playbackRate):1,d=this._bwEstimator?this._bwEstimator.getEstimate():n.abrEwmaDefaultEstimate,v=($.bufferInfo(video,l,n.maxBufferHole).end-l)/c,y=this._findBestLevel(h,f,d,o,e,v,n.abrBandWidthFactor,n.abrBandWidthUpFactor,r);if(y>=0)return y;m.logger.trace("rebuffering expected to happen, lets try to find a quality level minimizing the rebuffering");var w=f?Math.min(f,n.maxStarvationDelay):n.maxStarvationDelay,M=n.abrBandWidthFactor,_=n.abrBandWidthUpFactor;if(0===v){var S=this.bitrateTestDelay;S&&(w=(f?Math.min(f,n.maxLoadingDelay):n.maxLoadingDelay)-S,m.logger.trace("bitrate test took "+Math.round(1e3*S)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*w)+" ms"),M=_=1)}return y=this._findBestLevel(h,f,d,o,e,v+w,M,_,r),Math.max(y,0)}}])&&Jt(o.prototype,h),f&&Jt(o,f),n}(y),ee=et(),re=function(t){var e,r;function n(e){var r;return(r=t.call(this,e,d.default.MEDIA_ATTACHING,d.default.MEDIA_DETACHING,d.default.MANIFEST_PARSED,d.default.BUFFER_RESET,d.default.BUFFER_APPENDING,d.default.BUFFER_CODECS,d.default.BUFFER_EOS,d.default.BUFFER_FLUSHING,d.default.LEVEL_PTS_UPDATED,d.default.LEVEL_UPDATED)||this)._msDuration=null,r._levelDuration=null,r._levelTargetDuration=10,r._live=null,r._objectUrl=null,r._needsFlush=!1,r._needsEos=!1,r.config=void 0,r.audioTimestampOffset=void 0,r.bufferCodecEventsExpected=0,r._bufferCodecEventsTotal=0,r.media=null,r.mediaSource=null,r.segments=[],r.parent=void 0,r.appending=!1,r.appended=0,r.appendError=0,r.flushBufferCounter=0,r.tracks={},r.pendingTracks={},r.sourceBuffer={},r.flushRange=[],r._onMediaSourceOpen=function(){m.logger.log("media source opened"),r.hls.trigger(d.default.MEDIA_ATTACHED,{media:r.media});var t=r.mediaSource;t&&t.removeEventListener("sourceopen",r._onMediaSourceOpen),r.checkPendingTracks()},r._onMediaSourceClose=function(){m.logger.log("media source closed")},r._onMediaSourceEnded=function(){m.logger.log("media source ended")},r._onSBUpdateEnd=function(){if(r.audioTimestampOffset&&r.sourceBuffer.audio){var t=r.sourceBuffer.audio;m.logger.warn("change mpeg audio timestamp offset from "+t.timestampOffset+" to "+r.audioTimestampOffset),t.timestampOffset=r.audioTimestampOffset,delete r.audioTimestampOffset}r._needsFlush&&r.doFlush(),r._needsEos&&r.checkEos(),r.appending=!1;var e=r.parent,n=r.segments.reduce((function(t,r){return r.parent===e?t+1:t}),0),o={},h=r.sourceBuffer;for(var f in h){var l=h[f];if(!l)throw Error("handling source buffer update end error: source buffer for "+f+" uninitilized and unable to update buffered TimeRanges.");o[f]=l.buffered}r.hls.trigger(d.default.BUFFER_APPENDED,{parent:e,pending:n,timeRanges:o}),r._needsFlush||r.doAppending(),r.updateMediaElementDuration(),0===n&&r.flushLiveBackBuffer()},r._onSBUpdateError=function(t){m.logger.error("sourceBuffer error:",t),r.hls.trigger(d.default.ERROR,{type:l.ErrorTypes.MEDIA_ERROR,details:l.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1})},r.config=e.config,r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var o=n.prototype;return o.destroy=function(){y.prototype.destroy.call(this)},o.onLevelPtsUpdated=function(data){var t=data.type,e=this.tracks.audio;if("audio"===t&&e&&"audio/mpeg"===e.container){var r=this.sourceBuffer.audio;if(!r)throw Error("Level PTS Updated and source buffer for audio uninitalized");if(Math.abs(r.timestampOffset-data.start)>.1){var n=r.updating;try{r.abort()}catch(t){m.logger.warn("can not abort audio buffer: "+t)}n?this.audioTimestampOffset=data.start:(m.logger.warn("change mpeg audio timestamp offset from "+r.timestampOffset+" to "+data.start),r.timestampOffset=data.start)}}},o.onManifestParsed=function(data){var t=2;(data.audio&&!data.video||!data.altAudio)&&(t=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=t,m.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},o.onMediaAttaching=function(data){var t=this.media=data.media;if(t&&ee){var e=this.mediaSource=new ee;e.addEventListener("sourceopen",this._onMediaSourceOpen),e.addEventListener("sourceended",this._onMediaSourceEnded),e.addEventListener("sourceclose",this._onMediaSourceClose),t.src=window.URL.createObjectURL(e),this._objectUrl=t.src}},o.onMediaDetaching=function(){m.logger.log("media source detaching");var t=this.mediaSource;if(t){if("open"===t.readyState)try{t.endOfStream()}catch(t){m.logger.warn("onMediaDetaching:"+t.message+" while calling endOfStream")}t.removeEventListener("sourceopen",this._onMediaSourceOpen),t.removeEventListener("sourceended",this._onMediaSourceEnded),t.removeEventListener("sourceclose",this._onMediaSourceClose),this.media&&(this._objectUrl&&window.URL.revokeObjectURL(this._objectUrl),this.media.src===this._objectUrl?(this.media.removeAttribute("src"),this.media.load()):m.logger.warn("media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={},this.sourceBuffer={},this.flushRange=[],this.segments=[],this.appended=0}this.hls.trigger(d.default.MEDIA_DETACHED)},o.checkPendingTracks=function(){var t=this.bufferCodecEventsExpected,e=this.pendingTracks,r=Object.keys(e).length;(r&&!t||2===r)&&(this.createSourceBuffers(e),this.pendingTracks={},this.doAppending())},o.onBufferReset=function(){var t=this.sourceBuffer;for(var e in t){var r=t[e];try{r&&(this.mediaSource&&this.mediaSource.removeSourceBuffer(r),r.removeEventListener("updateend",this._onSBUpdateEnd),r.removeEventListener("error",this._onSBUpdateError))}catch(t){}}this.sourceBuffer={},this.flushRange=[],this.segments=[],this.appended=0},o.onBufferCodecs=function(t){var e=this;Object.keys(this.sourceBuffer).length||(Object.keys(t).forEach((function(r){e.pendingTracks[r]=t[r]})),this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&"open"===this.mediaSource.readyState&&this.checkPendingTracks())},o.createSourceBuffers=function(t){var e=this.sourceBuffer,r=this.mediaSource;if(!r)throw Error("createSourceBuffers called when mediaSource was null");for(var n in t)if(!e[n]){var track=t[n];if(!track)throw Error("source buffer exists for track "+n+", however track does not");var o=track.levelCodec||track.codec,h=track.container+";codecs="+o;m.logger.log("creating sourceBuffer("+h+")");try{var f=e[n]=r.addSourceBuffer(h);f.addEventListener("updateend",this._onSBUpdateEnd),f.addEventListener("error",this._onSBUpdateError),this.tracks[n]={buffer:f,codec:o,id:track.id,container:track.container,levelCodec:track.levelCodec}}catch(t){m.logger.error("error while trying to add sourceBuffer:"+t.message),this.hls.trigger(d.default.ERROR,{type:l.ErrorTypes.MEDIA_ERROR,details:l.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,err:t,mimeType:h})}}this.hls.trigger(d.default.BUFFER_CREATED,{tracks:this.tracks})},o.onBufferAppending=function(data){this._needsFlush||(this.segments?this.segments.push(data):this.segments=[data],this.doAppending())},o.onBufferEos=function(data){for(var t in this.sourceBuffer)if(!data.type||data.type===t){var e=this.sourceBuffer[t];e&&!e.ended&&(e.ended=!0,m.logger.log(t+" sourceBuffer now EOS"))}this.checkEos()},o.checkEos=function(){var t=this.sourceBuffer,e=this.mediaSource;if(e&&"open"===e.readyState){for(var r in t){var n=t[r];if(n){if(!n.ended)return;if(n.updating)return void(this._needsEos=!0)}}m.logger.log("all media data are available, signal endOfStream() to MediaSource and stop loading fragment");try{e.endOfStream()}catch(t){m.logger.warn("exception while calling mediaSource.endOfStream()")}this._needsEos=!1}else this._needsEos=!1},o.onBufferFlushing=function(data){data.type?this.flushRange.push({start:data.startOffset,end:data.endOffset,type:data.type}):(this.flushRange.push({start:data.startOffset,end:data.endOffset,type:"video"}),this.flushRange.push({start:data.startOffset,end:data.endOffset,type:"audio"})),this.flushBufferCounter=0,this.doFlush()},o.flushLiveBackBuffer=function(){if(this._live){var t=this.config.liveBackBufferLength;if(isFinite(t)&&!(t<0))if(this.media)for(var e=this.media.currentTime,r=this.sourceBuffer,n=Object.keys(r),o=e-Math.max(t,this._levelTargetDuration),h=n.length-1;h>=0;h--){var f=n[h],l=r[f];if(l){var c=l.buffered;c.length>0&&o>c.start(0)&&this.removeBufferRange(f,l,0,o)&&this.hls.trigger(d.default.LIVE_BACK_BUFFER_REACHED,{bufferEnd:o})}}else m.logger.error("flushLiveBackBuffer called without attaching media")}},o.onLevelUpdated=function(t){var details=t.details;details.fragments.length>0&&(this._levelDuration=details.totalduration+details.fragments[0].start,this._levelTargetDuration=details.averagetargetduration||details.targetduration||10,this._live=details.live,this.updateMediaElementDuration())},o.updateMediaElementDuration=function(){var t,e=this.config;if(null!==this._levelDuration&&this.media&&this.mediaSource&&this.sourceBuffer&&0!==this.media.readyState&&"open"===this.mediaSource.readyState){for(var r in this.sourceBuffer){var n=this.sourceBuffer[r];if(n&&!0===n.updating)return}t=this.media.duration,null===this._msDuration&&(this._msDuration=this.mediaSource.duration),!0===this._live&&!0===e.liveDurationInfinity?(m.logger.log("Media Source duration is set to Infinity"),this._msDuration=this.mediaSource.duration=1/0):(this._levelDuration>this._msDuration&&this._levelDuration>t||!Object(c.isFiniteNumber)(t))&&(m.logger.log("Updating Media Source duration to "+this._levelDuration.toFixed(3)),this._msDuration=this.mediaSource.duration=this._levelDuration)}},o.doFlush=function(){for(;this.flushRange.length;){var t=this.flushRange[0];if(!this.flushBuffer(t.start,t.end,t.type))return void(this._needsFlush=!0);this.flushRange.shift(),this.flushBufferCounter=0}if(0===this.flushRange.length){this._needsFlush=!1;var e=0,r=this.sourceBuffer;try{for(var n in r){var o=r[n];o&&(e+=o.buffered.length)}}catch(t){m.logger.error("error while accessing sourceBuffer.buffered")}this.appended=e,this.hls.trigger(d.default.BUFFER_FLUSHED)}},o.doAppending=function(){var t=this.config,e=this.hls,r=this.segments,n=this.sourceBuffer;if(Object.keys(n).length){if(!this.media||this.media.error)return this.segments=[],void m.logger.error("trying to append although a media error occured, flush segment and abort");if(!this.appending){var o=r.shift();if(o)try{var h=n[o.type];if(!h)return void this._onSBUpdateEnd();if(h.updating)return void r.unshift(o);h.ended=!1,this.parent=o.parent,h.appendBuffer(o.data),this.appendError=0,this.appended++,this.appending=!0}catch(n){m.logger.error("error while trying to append buffer:"+n.message),r.unshift(o);var f={type:l.ErrorTypes.MEDIA_ERROR,parent:o.parent,details:"",fatal:!1};22===n.code?(this.segments=[],f.details=l.ErrorDetails.BUFFER_FULL_ERROR):(this.appendError++,f.details=l.ErrorDetails.BUFFER_APPEND_ERROR,this.appendError>t.appendErrorMaxRetry&&(m.logger.log("fail "+t.appendErrorMaxRetry+" times to append segment in sourceBuffer"),this.segments=[],f.fatal=!0)),e.trigger(d.default.ERROR,f)}}}},o.flushBuffer=function(t,e,r){var n=this.sourceBuffer;if(!Object.keys(n).length)return!0;var o="null";if(this.media&&(o=this.media.currentTime.toFixed(3)),m.logger.log("flushBuffer,pos/start/end: "+o+"/"+t+"/"+e),this.flushBufferCounter>=this.appended)return m.logger.warn("abort flushing too many retries"),!0;var h=n[r];if(h){if(h.ended=!1,h.updating)return m.logger.warn("cannot flush, sb updating in progress"),!1;if(this.removeBufferRange(r,h,t,e))return this.flushBufferCounter++,!1}return m.logger.log("buffer flushed"),!0},o.removeBufferRange=function(t,e,r,n){try{for(var i=0;i<e.buffered.length;i++){var o=e.buffered.start(i),h=e.buffered.end(i),f=Math.max(o,r),l=Math.min(h,n);if(Math.min(l,h)-f>.5){var c="null";return this.media&&(c=this.media.currentTime.toString()),m.logger.log("sb remove "+t+" ["+f+","+l+"], of ["+o+","+h+"], pos:"+c),e.remove(f,l),!0}}}catch(t){m.logger.warn("removeBufferRange failed",t)}return!1},n}(y);function ie(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var ne=function(t){var e,r;function n(e){var r;return(r=t.call(this,e,d.default.FPS_DROP_LEVEL_CAPPING,d.default.MEDIA_ATTACHING,d.default.MANIFEST_PARSED,d.default.LEVELS_UPDATED,d.default.BUFFER_CODECS,d.default.MEDIA_DETACHING)||this).autoLevelCapping=Number.POSITIVE_INFINITY,r.firstLevel=null,r.levels=[],r.media=null,r.restrictedLevels=[],r.timer=null,r.clientRect=null,r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var o,h,f,l=n.prototype;return l.destroy=function(){this.hls.config.capLevelToPlayerSize&&(this.media=null,this.clientRect=null,this.stopCapping())},l.onFpsDropLevelCapping=function(data){n.isLevelAllowed(data.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(data.droppedLevel)},l.onMediaAttaching=function(data){this.media=data.media instanceof window.HTMLVideoElement?data.media:null},l.onManifestParsed=function(data){var t=this.hls;this.restrictedLevels=[],this.levels=data.levels,this.firstLevel=data.firstLevel,t.config.capLevelToPlayerSize&&data.video&&this.startCapping()},l.onBufferCodecs=function(data){this.hls.config.capLevelToPlayerSize&&data.video&&this.startCapping()},l.onLevelsUpdated=function(data){this.levels=data.levels},l.onMediaDetaching=function(){this.stopCapping()},l.detectPlayerSize=function(){if(this.media){var t=this.levels?this.levels.length:0;if(t){var e=this.hls;e.autoLevelCapping=this.getMaxLevel(t-1),e.autoLevelCapping>this.autoLevelCapping&&e.streamController.nextLevelSwitch(),this.autoLevelCapping=e.autoLevelCapping}}},l.getMaxLevel=function(t){var e=this;if(!this.levels)return-1;var r=this.levels.filter((function(r,o){return n.isLevelAllowed(o,e.restrictedLevels)&&o<=t}));return this.clientRect=null,n.getMaxLevelByMediaSize(r,this.mediaWidth,this.mediaHeight)},l.startCapping=function(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),clearInterval(this.timer),this.timer=setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())},l.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=null,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(this.timer=clearInterval(this.timer),this.timer=null)},l.getDimensions=function(){if(this.clientRect)return this.clientRect;var t=this.media,e={width:0,height:0};if(t){var r=t.getBoundingClientRect();e.width=r.width,e.height=r.height,e.width||e.height||(e.width=r.right-r.left||t.width||0,e.height=r.bottom-r.top||t.height||0)}return this.clientRect=e,e},n.isLevelAllowed=function(t,e){return void 0===e&&(e=[]),-1===e.indexOf(t)},n.getMaxLevelByMediaSize=function(t,e,r){if(!t||t&&!t.length)return-1;for(var n,o,h=t.length-1,i=0;i<t.length;i+=1){var f=t[i];if((f.width>=e||f.height>=r)&&(n=f,!(o=t[i+1])||n.width!==o.width||n.height!==o.height)){h=i;break}}return h},o=n,f=[{key:"contentScaleFactor",get:function(){var t=1;try{t=window.devicePixelRatio}catch(t){}return t}}],(h=[{key:"mediaWidth",get:function(){return this.getDimensions().width*n.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*n.contentScaleFactor}}])&&ie(o.prototype,h),f&&ie(o,f),n}(y),oe=window.performance,ae=function(t){var e,r;function n(e){return t.call(this,e,d.default.MEDIA_ATTACHING)||this}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var o=n.prototype;return o.destroy=function(){this.timer&&clearInterval(this.timer),this.isVideoPlaybackQualityAvailable=!1},o.onMediaAttaching=function(data){var t=this.hls.config;t.capLevelOnFPSDrop&&("function"==typeof(this.video=data.media instanceof window.HTMLVideoElement?data.media:null).getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),clearInterval(this.timer),this.timer=setInterval(this.checkFPSInterval.bind(this),t.fpsDroppedMonitoringPeriod))},o.checkFPS=function(video,t,e){var r=oe.now();if(t){if(this.lastTime){var n=r-this.lastTime,o=e-this.lastDroppedFrames,h=t-this.lastDecodedFrames,f=1e3*o/n,l=this.hls;if(l.trigger(d.default.FPS_DROP,{currentDropped:o,currentDecoded:h,totalDroppedFrames:e}),f>0&&o>l.config.fpsDroppedMonitoringThreshold*h){var c=l.currentLevel;m.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+c),c>0&&(-1===l.autoLevelCapping||l.autoLevelCapping>=c)&&(c-=1,l.trigger(d.default.FPS_DROP_LEVEL_CAPPING,{level:c,droppedLevel:l.currentLevel}),l.autoLevelCapping=c,l.streamController.nextLevelSwitch())}}this.lastTime=r,this.lastDroppedFrames=e,this.lastDecodedFrames=t}},o.checkFPSInterval=function(){var video=this.video;if(video)if(this.isVideoPlaybackQualityAvailable){var t=video.getVideoPlaybackQuality();this.checkFPS(video,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(video,video.webkitDecodedFrameCount,video.webkitDroppedFrameCount)},n}(y),se=function(){function t(t){t&&t.xhrSetup&&(this.xhrSetup=t.xhrSetup)}var e=t.prototype;return e.destroy=function(){this.abort(),this.loader=null},e.abort=function(){var t=this.loader;t&&4!==t.readyState&&(this.stats.aborted=!0,t.abort()),window.clearTimeout(this.requestTimeout),this.requestTimeout=null,window.clearTimeout(this.retryTimeout),this.retryTimeout=null},e.load=function(t,e,r){this.context=t,this.config=e,this.callbacks=r,this.stats={trequest:window.performance.now(),retry:0},this.retryDelay=e.retryDelay,this.loadInternal()},e.loadInternal=function(){var t,e=this.context;t=this.loader=new window.XMLHttpRequest;var r=this.stats;r.tfirst=0,r.loaded=0;var n=this.xhrSetup;try{if(n)try{n(t,e.url)}catch(r){t.open("GET",e.url,!0),n(t,e.url)}t.readyState||t.open("GET",e.url,!0)}catch(r){return void this.callbacks.onError({code:t.status,text:r.message},e,t)}e.rangeEnd&&t.setRequestHeader("Range","bytes="+e.rangeStart+"-"+(e.rangeEnd-1)),t.onreadystatechange=this.readystatechange.bind(this),t.onprogress=this.loadprogress.bind(this),t.responseType=e.responseType,this.requestTimeout=window.setTimeout(this.loadtimeout.bind(this),this.config.timeout),t.send()},e.readystatechange=function(t){var e=t.currentTarget,r=e.readyState,n=this.stats,o=this.context,h=this.config;if(!n.aborted&&r>=2)if(window.clearTimeout(this.requestTimeout),0===n.tfirst&&(n.tfirst=Math.max(window.performance.now(),n.trequest)),4===r){var f=e.status;if(f>=200&&f<300){var data,l;n.tload=Math.max(n.tfirst,window.performance.now()),l="arraybuffer"===o.responseType?(data=e.response).byteLength:(data=e.responseText).length,n.loaded=n.total=l;var c={url:e.responseURL,data:data};this.callbacks.onSuccess(c,n,o,e)}else n.retry>=h.maxRetry||f>=400&&f<499?(m.logger.error(f+" while loading "+o.url),this.callbacks.onError({code:f,text:e.statusText},o,e)):(m.logger.warn(f+" while loading "+o.url+", retrying in "+this.retryDelay+"..."),this.destroy(),this.retryTimeout=window.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,h.maxRetryDelay),n.retry++)}else this.requestTimeout=window.setTimeout(this.loadtimeout.bind(this),h.timeout)},e.loadtimeout=function(){m.logger.warn("timeout while loading "+this.context.url),this.callbacks.onTimeout(this.stats,this.context,null)},e.loadprogress=function(t){var e=t.currentTarget,r=this.stats;r.loaded=t.loaded,t.lengthComputable&&(r.total=t.total);var n=this.callbacks.onProgress;n&&n(r,this.context,null,e)},t}();function ue(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var he=function(t){var e,r;function n(e){var r;return(r=t.call(this,e,d.default.MANIFEST_LOADING,d.default.MANIFEST_PARSED,d.default.AUDIO_TRACK_LOADED,d.default.AUDIO_TRACK_SWITCHED,d.default.LEVEL_LOADED,d.default.ERROR)||this)._trackId=-1,r._selectDefaultTrack=!0,r.tracks=[],r.trackIdBlacklist=Object.create(null),r.audioGroupId=null,r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var o,h,f,c=n.prototype;return c.onManifestLoading=function(){this.tracks=[],this._trackId=-1,this._selectDefaultTrack=!0},c.onManifestParsed=function(data){var t=this.tracks=data.audioTracks||[];this.hls.trigger(d.default.AUDIO_TRACKS_UPDATED,{audioTracks:t}),this._selectAudioGroup(this.hls.nextLoadLevel)},c.onAudioTrackLoaded=function(data){if(data.id>=this.tracks.length)m.logger.warn("Invalid audio track id:",data.id);else{if(m.logger.log("audioTrack "+data.id+" loaded"),this.tracks[data.id].details=data.details,data.details.live&&!this.hasInterval()){var t=1e3*data.details.targetduration;this.setInterval(t)}!data.details.live&&this.hasInterval()&&this.clearInterval()}},c.onAudioTrackSwitched=function(data){var t=this.tracks[data.id].groupId;t&&this.audioGroupId!==t&&(this.audioGroupId=t)},c.onLevelLoaded=function(data){this._selectAudioGroup(data.level)},c.onError=function(data){data.type===l.ErrorTypes.NETWORK_ERROR&&(data.fatal&&this.clearInterval(),data.details===l.ErrorDetails.AUDIO_TRACK_LOAD_ERROR&&(m.logger.warn("Network failure on audio-track id:",data.context.id),this._handleLoadError()))},c._setAudioTrack=function(t){if(this._trackId===t&&this.tracks[this._trackId].details)m.logger.debug("Same id as current audio-track passed, and track details available -> no-op");else if(t<0||t>=this.tracks.length)m.logger.warn("Invalid id passed to audio-track controller");else{var e=this.tracks[t];m.logger.log("Now switching to audio-track index "+t),this.clearInterval(),this._trackId=t;var r=e.url,n=e.type,o=e.id;this.hls.trigger(d.default.AUDIO_TRACK_SWITCHING,{id:o,type:n,url:r}),this._loadTrackDetailsIfNeeded(e)}},c.doTick=function(){this._updateTrack(this._trackId)},c._selectAudioGroup=function(t){var e=this.hls.levels[t];if(e&&e.audioGroupIds){var r=e.audioGroupIds[e.urlId];this.audioGroupId!==r&&(this.audioGroupId=r,this._selectInitialAudioTrack())}},c._selectInitialAudioTrack=function(){var t=this,e=this.tracks;if(e.length){var r=this.tracks[this._trackId],n=null;if(r&&(n=r.name),this._selectDefaultTrack){var o=e.filter((function(track){return track.default}));o.length?e=o:m.logger.warn("No default audio tracks defined")}var h=!1,f=function(){e.forEach((function(track){h||t.audioGroupId&&track.groupId!==t.audioGroupId||n&&n!==track.name||(t._setAudioTrack(track.id),h=!0)}))};f(),h||(n=null,f()),h||(m.logger.error("No track found for running audio group-ID: "+this.audioGroupId),this.hls.trigger(d.default.ERROR,{type:l.ErrorTypes.MEDIA_ERROR,details:l.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))}},c._needsTrackLoading=function(t){var details=t.details,e=t.url;return!(details&&!details.live||!e)},c._loadTrackDetailsIfNeeded=function(t){if(this._needsTrackLoading(t)){var e=t.url,r=t.id;m.logger.log("loading audio-track playlist for id: "+r),this.hls.trigger(d.default.AUDIO_TRACK_LOADING,{url:e,id:r})}},c._updateTrack=function(t){if(!(t<0||t>=this.tracks.length)){this.clearInterval(),this._trackId=t,m.logger.log("trying to update audio-track "+t);var e=this.tracks[t];this._loadTrackDetailsIfNeeded(e)}},c._handleLoadError=function(){this.trackIdBlacklist[this._trackId]=!0;var t=this._trackId,e=this.tracks[t],r=e.name,n=e.language,o=e.groupId;m.logger.warn("Loading failed on audio track id: "+t+", group-id: "+o+', name/language: "'+r+'" / "'+n+'"');for(var h=t,i=0;i<this.tracks.length;i++)if(!this.trackIdBlacklist[i]&&this.tracks[i].name===r){h=i;break}h!==t?(m.logger.log("Attempting audio-track fallback id:",h,"group-id:",this.tracks[h].groupId),this._setAudioTrack(h)):m.logger.warn('No fallback audio-track found for name/language: "'+r+'" / "'+n+'"')},o=n,(h=[{key:"audioTracks",get:function(){return this.tracks}},{key:"audioTrack",get:function(){return this._trackId},set:function(t){this._setAudioTrack(t),this._selectDefaultTrack=!1}}])&&ue(o.prototype,h),f&&ue(o,f),n}(Et);function fe(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var le=window.performance,ce=function(t){var e,r;function n(e,r){var n;return(n=t.call(this,e,d.default.MEDIA_ATTACHED,d.default.MEDIA_DETACHING,d.default.AUDIO_TRACKS_UPDATED,d.default.AUDIO_TRACK_SWITCHING,d.default.AUDIO_TRACK_LOADED,d.default.KEY_LOADED,d.default.FRAG_LOADED,d.default.FRAG_PARSING_INIT_SEGMENT,d.default.FRAG_PARSING_DATA,d.default.FRAG_PARSED,d.default.ERROR,d.default.BUFFER_RESET,d.default.BUFFER_CREATED,d.default.BUFFER_APPENDED,d.default.BUFFER_FLUSHED,d.default.INIT_PTS_FOUND)||this).fragmentTracker=r,n.config=e.config,n.audioCodecSwap=!1,n._state=kt,n.initPTS=[],n.waitingFragment=null,n.videoTrackCC=null,n.waitingVideoCC=null,n}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var o,h,f,v=n.prototype;return v.onInitPtsFound=function(data){var t=data.id,e=data.frag.cc,r=data.initPTS;"main"===t&&(this.initPTS[e]=r,this.videoTrackCC=e,m.logger.log("InitPTS for cc: "+e+" found from main: "+r),this.state===jt&&this.tick())},v.startLoad=function(t){if(this.tracks){var e=this.lastCurrentTime;this.stopLoad(),this.setInterval(100),this.fragLoadError=0,e>0&&-1===t?(m.logger.log("audio:override startPosition with lastCurrentTime @"+e.toFixed(3)),this.state=At):(this.lastCurrentTime=this.startPosition?this.startPosition:t,this.state=Tt),this.nextLoadPosition=this.startPosition=this.lastCurrentTime,this.tick()}else this.startPosition=t,this.state=kt},v.doTick=function(){var t,track,e,r=this.hls,n=r.config;switch(this.state){case Nt:case Rt:case Pt:break;case Tt:this.state=Lt,this.loadedmetadata=!1;break;case At:var o=this.tracks;if(!o)break;if(!this.media&&(this.startFragRequested||!n.startFragPrefetch))break;if(this.loadedmetadata)t=this.media.currentTime;else if(void 0===(t=this.nextLoadPosition))break;var h=this.mediaBuffer?this.mediaBuffer:this.media,f=this.videoBuffer?this.videoBuffer:this.media,l=t<n.maxBufferHole?Math.max(2,n.maxBufferHole):n.maxBufferHole,v=$.bufferInfo(h,t,l),y=$.bufferInfo(f,t,l),w=v.len,M=v.end,_=this.fragPrevious,S=Math.min(n.maxBufferLength,n.maxMaxBufferLength),E=Math.max(S,y.len),k=this.audioSwitch,T=this.trackId;if((w<E||k)&&T<o.length){if(void 0===(e=o[T].details)){this.state=Lt;break}if(!k&&this._streamEnded(v,e))return this.hls.trigger(d.default.BUFFER_EOS,{type:"audio"}),void(this.state=Bt);var A,R=e.fragments,x=R.length,O=R[0].start,I=R[x-1].start+R[x-1].duration;if(k)if(e.live&&!e.PTSKnown)m.logger.log("switching audiotrack, live stream, unknown PTS,load first fragment"),M=0;else if(M=t,e.PTSKnown&&t<O){if(!(v.end>O||v.nextStart))return;m.logger.log("alt audio track ahead of main track, seek to start of alt audio track"),this.media.currentTime=O+.05}if(e.initSegment&&!e.initSegment.data)A=e.initSegment;else if(M<=O){if(A=R[0],null!==this.videoTrackCC&&A.cc!==this.videoTrackCC&&(A=function(t,e){return X.search(t,(function(t){return t.cc<e?1:t.cc>e?-1:0}))}(R,this.videoTrackCC)),e.live&&A.loadIdx&&A.loadIdx===this.fragLoadIdx){var L=v.nextStart?v.nextStart:O;return m.logger.log("no alt audio available @currentTime:"+this.media.currentTime+", seeking @"+(L+.05)),void(this.media.currentTime=L+.05)}}else{var D,C=n.maxFragLookUpTolerance,P=_?R[_.sn-R[0].sn+1]:void 0;M<I?(M>I-C&&(C=0),D=P&&!wt(M,C,P)?P:X.search(R,(function(t){return wt(M,C,t)}))):D=R[x-1],D&&(A=D,O=D.start,_&&A.level===_.level&&A.sn===_.sn&&(A.sn<e.endSN?(A=R[A.sn+1-e.startSN],this.fragmentTracker.getState(A)!==Y&&m.logger.log("SN just loaded, load next one: "+A.sn)):A=null))}A&&(A.encrypted?(m.logger.log("Loading key for "+A.sn+" of ["+e.startSN+" ,"+e.endSN+"],track "+T),this.state=xt,r.trigger(d.default.KEY_LOADING,{frag:A})):(this.fragCurrent=A,(k||this.fragmentTracker.getState(A)===G)&&(m.logger.log("Loading "+A.sn+", cc: "+A.cc+" of ["+e.startSN+" ,"+e.endSN+"],track "+T+", "+(this.loadedmetadata?"currentTime":"nextLoadPosition")+": "+t+", bufferEnd: "+M.toFixed(3)),"initSegment"!==A.sn&&(this.startFragRequested=!0),Object(c.isFiniteNumber)(A.sn)&&(this.nextLoadPosition=A.start+A.duration),r.trigger(d.default.FRAG_LOADING,{frag:A}),this.state=Ot)))}break;case Lt:(track=this.tracks[this.trackId])&&track.details&&(this.state=At);break;case It:var B=le.now(),N=this.retryDate,j=(h=this.media)&&h.seeking;(!N||B>=N||j)&&(m.logger.log("audioStreamController: retryDate reached, switch back to IDLE state"),this.state=At);break;case jt:var F=this.waitingFragment;if(F){var U=F.frag.cc;if(void 0!==this.initPTS[U])this.waitingFragment=null,this.state=Ot,this.onFragLoaded(F);else if(this.videoTrackCC!==this.waitingVideoCC)m.logger.log("Waiting fragment cc ("+U+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var K=$.bufferInfo(this.mediaBuffer,this.media.currentTime,n.maxBufferHole);wt(K.end,n.maxFragLookUpTolerance,F.frag)<0&&(m.logger.log("Waiting fragment cc ("+U+") @ "+F.frag.start+" cancelled because another fragment at "+K.end+" is needed"),this.clearWaitingFragment())}}else this.state=At}},v.clearWaitingFragment=function(){var t=this.waitingFragment;t&&(this.fragmentTracker.removeFragment(t.frag),this.waitingFragment=null,this.waitingVideoCC=null,this.state=At)},v.onMediaAttached=function(data){var t=this.media=this.mediaBuffer=data.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),t.addEventListener("seeking",this.onvseeking),t.addEventListener("ended",this.onvended);var e=this.config;this.tracks&&e.autoStartLoad&&this.startLoad(e.startPosition)},v.onMediaDetaching=function(){var t=this.media;t&&t.ended&&(m.logger.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),t&&(t.removeEventListener("seeking",this.onvseeking),t.removeEventListener("ended",this.onvended),this.onvseeking=this.onvseeked=this.onvended=null),this.media=this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},v.onAudioTracksUpdated=function(data){m.logger.log("audio tracks updated"),this.tracks=data.audioTracks},v.onAudioTrackSwitching=function(data){var t=!!data.url;this.trackId=data.id,this.fragCurrent=null,this.clearWaitingFragment(),this.state=Rt,t?this.setInterval(100):this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),t&&(this.audioSwitch=!0,this.state=At),this.tick()},v.onAudioTrackLoaded=function(data){var t=data.details,e=data.id,track=this.tracks[e],r=track.details,n=t.totalduration,o=0;if(m.logger.log("track "+e+" loaded ["+t.startSN+","+t.endSN+"],duration:"+n),t.live||r&&r.live?r&&t.fragments.length>0?(lt(r,t),o=t.fragments[0].start,t.PTSKnown?m.logger.log("live audio playlist sliding:"+o.toFixed(3)):m.logger.log("live audio playlist - outdated PTS, unknown sliding")):(t.PTSKnown=!1,m.logger.log("live audio playlist - first load, unknown sliding")):t.PTSKnown=!1,track.details=t,!this.startFragRequested){if(-1===this.startPosition){var h=t.startTimeOffset;Object(c.isFiniteNumber)(h)?(m.logger.log("start time offset found in playlist, adjust startPosition to "+h),this.startPosition=h):t.live?(this.startPosition=this.computeLivePosition(o,t),m.logger.log("compute startPosition for audio-track to "+this.startPosition)):this.startPosition=0}this.nextLoadPosition=this.startPosition}this.state===Lt&&(this.state=At),this.tick()},v.onKeyLoaded=function(){this.state===xt&&(this.state=At,this.tick())},v.onFragLoaded=function(data){var t=this.fragCurrent,e=data.frag;if(this.state===Ot&&t&&"audio"===e.type&&e.level===t.level&&e.sn===t.sn){var track=this.tracks[this.trackId],details=track.details,r=details.totalduration,n=t.level,o=t.sn,h=t.cc,f=this.config.defaultAudioCodec||track.audioCodec||"mp4a.40.2",l=this.stats=data.stats;if("initSegment"===o)this.state=At,l.tparsed=l.tbuffered=le.now(),details.initSegment.data=data.payload,this.hls.trigger(d.default.FRAG_BUFFERED,{stats:l,frag:t,id:"audio"}),this.tick();else{this.state=Dt,this.appended=!1,this.demuxer||(this.demuxer=new st(this.hls,"audio"));var c=this.initPTS[h],v=details.initSegment?details.initSegment.data:[];void 0!==c?(this.pendingBuffering=!0,m.logger.log("Demuxing "+o+" of ["+details.startSN+" ,"+details.endSN+"],track "+n),this.demuxer.push(data.payload,v,f,null,t,r,!1,c)):(m.logger.log("Unknown video PTS for cc "+h+", waiting for video PTS before demuxing audio frag "+o+" of ["+details.startSN+" ,"+details.endSN+"],track "+n),this.waitingFragment=data,this.waitingVideoCC=this.videoTrackCC,this.state=jt)}}this.fragLoadError=0},v.onFragParsingInitSegment=function(data){var t=this.fragCurrent,e=data.frag;if(t&&"audio"===data.id&&e.sn===t.sn&&e.level===t.level&&this.state===Dt){var track,r=data.tracks;if(r.video&&delete r.video,track=r.audio){track.levelCodec=track.codec,track.id=data.id,this.hls.trigger(d.default.BUFFER_CODECS,r),m.logger.log("audio track:audio,container:"+track.container+",codecs[level/parsed]=["+track.levelCodec+"/"+track.codec+"]");var n=track.initSegment;if(n){var o={type:"audio",data:n,parent:"audio",content:"initSegment"};this.audioSwitch?this.pendingData=[o]:(this.appended=!0,this.pendingBuffering=!0,this.hls.trigger(d.default.BUFFER_APPENDING,o))}this.tick()}}},v.onFragParsingData=function(data){var t=this,e=this.fragCurrent,r=data.frag;if(e&&"audio"===data.id&&"audio"===data.type&&r.sn===e.sn&&r.level===e.level&&this.state===Dt){var n=this.trackId,track=this.tracks[n],o=this.hls;Object(c.isFiniteNumber)(data.endPTS)||(data.endPTS=data.startPTS+e.duration,data.endDTS=data.startDTS+e.duration),e.addElementaryStream(_.AUDIO),m.logger.log("parsed "+data.type+",PTS:["+data.startPTS.toFixed(3)+","+data.endPTS.toFixed(3)+"],DTS:["+data.startDTS.toFixed(3)+"/"+data.endDTS.toFixed(3)+"],nb:"+data.nb),ft(track.details,e,data.startPTS,data.endPTS);var h=this.media,f=!1;if(this.audioSwitch)if(h&&h.readyState){var v=h.currentTime;m.logger.log("switching audio track : currentTime:"+v),v>=data.startPTS&&(m.logger.log("switching audio track : flushing all audio"),this.state=Pt,o.trigger(d.default.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),f=!0,this.audioSwitch=!1,o.trigger(d.default.AUDIO_TRACK_SWITCHED,{id:n}))}else this.audioSwitch=!1,o.trigger(d.default.AUDIO_TRACK_SWITCHED,{id:n});var y=this.pendingData;if(!y)return m.logger.warn("Apparently attempt to enqueue media payload without codec initialization data upfront"),void o.trigger(d.default.ERROR,{type:l.ErrorTypes.MEDIA_ERROR,details:null,fatal:!0});this.audioSwitch||([data.data1,data.data2].forEach((function(t){t&&t.length&&y.push({type:data.type,data:t,parent:"audio",content:"data"})})),!f&&y.length&&(y.forEach((function(e){t.state===Dt&&(t.pendingBuffering=!0,t.hls.trigger(d.default.BUFFER_APPENDING,e))})),this.pendingData=[],this.appended=!0)),this.tick()}},v.onFragParsed=function(data){var t=this.fragCurrent,e=data.frag;t&&"audio"===data.id&&e.sn===t.sn&&e.level===t.level&&this.state===Dt&&(this.stats.tparsed=le.now(),this.state=Ct,this._checkAppendedParsed())},v.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},v.onBufferCreated=function(data){var t=data.tracks.audio;t&&(this.mediaBuffer=t.buffer,this.loadedmetadata=!0),data.tracks.video&&(this.videoBuffer=data.tracks.video.buffer)},v.onBufferAppended=function(data){if("audio"===data.parent){var t=this.state;t!==Dt&&t!==Ct||(this.pendingBuffering=data.pending>0,this._checkAppendedParsed())}},v._checkAppendedParsed=function(){if(!(this.state!==Ct||this.appended&&this.pendingBuffering)){var t=this.fragCurrent,e=this.stats,r=this.hls;if(t){this.fragPrevious=t,e.tbuffered=le.now(),r.trigger(d.default.FRAG_BUFFERED,{stats:e,frag:t,id:"audio"});var n=this.mediaBuffer?this.mediaBuffer:this.media;n&&m.logger.log("audio buffered : "+mt.toString(n.buffered)),this.audioSwitch&&this.appended&&(this.audioSwitch=!1,r.trigger(d.default.AUDIO_TRACK_SWITCHED,{id:this.trackId})),this.state=At}this.tick()}},v.onError=function(data){var t=data.frag;if(!t||"audio"===t.type)switch(data.details){case l.ErrorDetails.FRAG_LOAD_ERROR:case l.ErrorDetails.FRAG_LOAD_TIMEOUT:var e=data.frag;if(e&&"audio"!==e.type)break;if(!data.fatal){var r=this.fragLoadError;r?r++:r=1;var n=this.config;if(r<=n.fragLoadingMaxRetry){this.fragLoadError=r;var o=Math.min(Math.pow(2,r-1)*n.fragLoadingRetryDelay,n.fragLoadingMaxRetryTimeout);m.logger.warn("AudioStreamController: frag loading failed, retry in "+o+" ms"),this.retryDate=le.now()+o,this.state=It}else m.logger.error("AudioStreamController: "+data.details+" reaches max retry, redispatch as fatal ..."),data.fatal=!0,this.state=Nt}break;case l.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case l.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:case l.ErrorDetails.KEY_LOAD_ERROR:case l.ErrorDetails.KEY_LOAD_TIMEOUT:this.state!==Nt&&(this.state=data.fatal?Nt:At,m.logger.warn("AudioStreamController: "+data.details+" while loading frag, now switching to "+this.state+" state ..."));break;case l.ErrorDetails.BUFFER_FULL_ERROR:if("audio"===data.parent&&(this.state===Dt||this.state===Ct)){var h=this.mediaBuffer,f=this.media.currentTime;if(h&&$.isBuffered(h,f)&&$.isBuffered(h,f+.5)){var c=this.config;c.maxMaxBufferLength>=c.maxBufferLength&&(c.maxMaxBufferLength/=2,m.logger.warn("AudioStreamController: reduce max buffer length to "+c.maxMaxBufferLength+"s")),this.state=At}else m.logger.warn("AudioStreamController: buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,this.state=Pt,this.hls.trigger(d.default.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"})}}},v.onBufferFlushed=function(){var t=this,e=this.pendingData;e&&e.length?(m.logger.log("AudioStreamController: appending pending audio data after buffer flushed"),e.forEach((function(e){t.hls.trigger(d.default.BUFFER_APPENDING,e)})),this.appended=!0,this.pendingData=[],this.state=Ct):(this.state=At,this.fragPrevious=null,this.tick())},o=n,(h=[{key:"state",set:function(t){if(this.state!==t){var e=this.state;this._state=t,m.logger.log("audio stream:"+e+"->"+t)}},get:function(){return this._state}}])&&fe(o.prototype,h),f&&fe(o,f),n}(Ut),de=function(){if("undefined"!=typeof window&&window.VTTCue)return window.VTTCue;var t={"":!0,lr:!0,rl:!0},e={start:!0,middle:!0,end:!0,left:!0,right:!0};function r(t){return"string"==typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase()}function n(t){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var p in e)t[p]=e[p]}return t}function o(e,o,text){var h=this,f={enumerable:!0};h.hasBeenReset=!1;var l="",c=!1,d=e,m=o,v=text,y=null,w="",M=!0,_="auto",S="start",E=50,k="middle",T=50,A="middle";Object.defineProperty(h,"id",n({},f,{get:function(){return l},set:function(t){l=""+t}})),Object.defineProperty(h,"pauseOnExit",n({},f,{get:function(){return c},set:function(t){c=!!t}})),Object.defineProperty(h,"startTime",n({},f,{get:function(){return d},set:function(t){if("number"!=typeof t)throw new TypeError("Start time must be set to a number.");d=t,this.hasBeenReset=!0}})),Object.defineProperty(h,"endTime",n({},f,{get:function(){return m},set:function(t){if("number"!=typeof t)throw new TypeError("End time must be set to a number.");m=t,this.hasBeenReset=!0}})),Object.defineProperty(h,"text",n({},f,{get:function(){return v},set:function(t){v=""+t,this.hasBeenReset=!0}})),Object.defineProperty(h,"region",n({},f,{get:function(){return y},set:function(t){y=t,this.hasBeenReset=!0}})),Object.defineProperty(h,"vertical",n({},f,{get:function(){return w},set:function(e){var r=function(e){return"string"==typeof e&&!!t[e.toLowerCase()]&&e.toLowerCase()}(e);if(!1===r)throw new SyntaxError("An invalid or illegal string was specified.");w=r,this.hasBeenReset=!0}})),Object.defineProperty(h,"snapToLines",n({},f,{get:function(){return M},set:function(t){M=!!t,this.hasBeenReset=!0}})),Object.defineProperty(h,"line",n({},f,{get:function(){return _},set:function(t){if("number"!=typeof t&&"auto"!==t)throw new SyntaxError("An invalid number or illegal string was specified.");_=t,this.hasBeenReset=!0}})),Object.defineProperty(h,"lineAlign",n({},f,{get:function(){return S},set:function(t){var e=r(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");S=e,this.hasBeenReset=!0}})),Object.defineProperty(h,"position",n({},f,{get:function(){return E},set:function(t){if(t<0||t>100)throw new Error("Position must be between 0 and 100.");E=t,this.hasBeenReset=!0}})),Object.defineProperty(h,"positionAlign",n({},f,{get:function(){return k},set:function(t){var e=r(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");k=e,this.hasBeenReset=!0}})),Object.defineProperty(h,"size",n({},f,{get:function(){return T},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");T=t,this.hasBeenReset=!0}})),Object.defineProperty(h,"align",n({},f,{get:function(){return A},set:function(t){var e=r(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");A=e,this.hasBeenReset=!0}})),h.displayState=void 0}return o.prototype.getCueAsHTML=function(){return window.WebVTT.convertCueToDOMTree(window,this.text)},o}(),pe=function(){return{decode:function(data){if(!data)return"";if("string"!=typeof data)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(data))}}};function me(){this.window=window,this.state="INITIAL",this.buffer="",this.decoder=new pe,this.regionList=[]}function ge(){this.values=Object.create(null)}function ve(input,t,e,r){var n=r?input.split(r):[input];for(var i in n)if("string"==typeof n[i]){var o=n[i].split(e);2===o.length&&t(o[0],o[1])}}ge.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,r){return r?this.has(t)?this.values[t]:e[r]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,a){for(var r=0;r<a.length;++r)if(e===a[r]){this.set(t,e);break}},integer:function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},percent:function(t,e){return!!(e.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(e=parseFloat(e))>=0&&e<=100)&&(this.set(t,e),!0)}};var ye=new de(0,0,0),be="middle"===ye.align?"middle":"center";function we(input,t,e){var r=input;function n(){var t=function(input){function t(t,e,s,r){return 3600*(0|t)+60*(0|e)+(0|s)+(0|r)/1e3}var e=input.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return e?e[3]?t(e[1],e[2],e[3].replace(":",""),e[4]):e[1]>59?t(e[1],e[2],0,e[4]):t(0,e[1],e[2],e[4]):null}(input);if(null===t)throw new Error("Malformed timestamp: "+r);return input=input.replace(/^[^\sa-zA-Z-]+/,""),t}function o(){input=input.replace(/^\s+/,"")}if(o(),t.startTime=n(),o(),"--\x3e"!==input.substr(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+r);input=input.substr(3),o(),t.endTime=n(),o(),function(input,t){var r=new ge;ve(input,(function(t,n){switch(t){case"region":for(var i=e.length-1;i>=0;i--)if(e[i].id===n){r.set(t,e[i].region);break}break;case"vertical":r.alt(t,n,["rl","lr"]);break;case"line":var o=n.split(","),h=o[0];r.integer(t,h),r.percent(t,h)&&r.set("snapToLines",!1),r.alt(t,h,["auto"]),2===o.length&&r.alt("lineAlign",o[1],["start",be,"end"]);break;case"position":o=n.split(","),r.percent(t,o[0]),2===o.length&&r.alt("positionAlign",o[1],["start",be,"end","line-left","line-right","auto"]);break;case"size":r.percent(t,n);break;case"align":r.alt(t,n,["start",be,"end","left","right"])}}),/:/,/\s/),t.region=r.get("region",null),t.vertical=r.get("vertical","");var line=r.get("line","auto");"auto"===line&&-1===ye.line&&(line=-1),t.line=line,t.lineAlign=r.get("lineAlign","start"),t.snapToLines=r.get("snapToLines",!0),t.size=r.get("size",100),t.align=r.get("align",be);var n=r.get("position","auto");"auto"===n&&50===ye.position&&(n="start"===t.align||"left"===t.align?0:"end"===t.align||"right"===t.align?100:50),t.position=n}(input,t)}function Me(input){return input.replace(/<br(?: \/)?>/gi,"\n")}me.prototype={parse:function(data){var t=this;function e(){var e=t.buffer,r=0;for(e=Me(e);r<e.length&&"\r"!==e[r]&&"\n"!==e[r];)++r;var line=e.substr(0,r);return"\r"===e[r]&&++r,"\n"===e[r]&&++r,t.buffer=e.substr(r),line}data&&(t.buffer+=t.decoder.decode(data,{stream:!0}));try{var line;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var r=(line=e()).match(/^()?WEBVTT([ \t].*)?$/);if(!r||!r[0])throw new Error("Malformed WebVTT signature.");t.state="HEADER"}for(var n=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(n?n=!1:line=e(),t.state){case"HEADER":/:/.test(line)?ve(line,(function(t,e){}),/:/):line||(t.state="ID");continue;case"NOTE":line||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(line)){t.state="NOTE";break}if(!line)continue;if(t.cue=new de(0,0,""),t.state="CUE",-1===line.indexOf("--\x3e")){t.cue.id=line;continue}case"CUE":try{we(line,t.cue,t.regionList)}catch(e){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var o=-1!==line.indexOf("--\x3e");if(!line||o&&(n=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=line;continue;case"BADCUE":line||(t.state="ID");continue}}}catch(e){"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){try{if(this.buffer+=this.decoder.decode(),(this.cue||"HEADER"===this.state)&&(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state)throw new Error("Malformed WebVTT signature.")}catch(t){throw t}return this.onflush&&this.onflush(),this}};var _e=me;function Se(track,t,e,r){for(var n,o,h,f,text,l=[],c=window.VTTCue||TextTrackCue,d=0;d<r.rows.length;d++)if(h=!0,f=0,text="",!(n=r.rows[d]).isEmpty()){for(var m=0;m<n.chars.length;m++)n.chars[m].uchar.match(/\s/)&&h?f++:(text+=n.chars[m].uchar,h=!1);n.cueStartTime=t,t===e&&(e+=1e-4),o=new c(t,e,Me(text.trim())),f>=16?f--:f++,navigator.userAgent.match(/Firefox\//)?o.line=d+1:o.line=d>7?d-2:d+1,o.align="left",o.position=Math.max(0,Math.min(100,f/32*100)),l.push(o),track&&track.addCue(o)}return l}var Ee,ke={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},Te=function(t){var e=t;return ke.hasOwnProperty(t)&&(e=ke[t]),String.fromCharCode(e)},Ae={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Re={17:2,18:4,21:6,22:8,23:10,19:13,20:15},xe={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},Oe={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Ie=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];!function(t){t[t.ERROR=0]="ERROR",t[t.TEXT=1]="TEXT",t[t.WARNING=2]="WARNING",t[t.INFO=2]="INFO",t[t.DEBUG=3]="DEBUG",t[t.DATA=3]="DATA"}(Ee||(Ee={}));var Le=function(){function t(){this.time=null,this.verboseLevel=Ee.ERROR}return t.prototype.log=function(t,e){this.verboseLevel>=t&&m.logger.log(this.time+" ["+t+"] "+e)},t}(),De=function(t){for(var e=[],r=0;r<t.length;r++)e.push(t[r].toString(16));return e},Ce=function(){function t(t,e,r,n,o){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=t||"white",this.underline=e||!1,this.italics=r||!1,this.background=n||"black",this.flash=o||!1}var e=t.prototype;return e.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},e.setStyles=function(t){for(var e=["foreground","underline","italics","background","flash"],i=0;i<e.length;i++){var style=e[i];t.hasOwnProperty(style)&&(this[style]=t[style])}},e.isDefault=function(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash},e.equals=function(t){return this.foreground===t.foreground&&this.underline===t.underline&&this.italics===t.italics&&this.background===t.background&&this.flash===t.flash},e.copy=function(t){this.foreground=t.foreground,this.underline=t.underline,this.italics=t.italics,this.background=t.background,this.flash=t.flash},e.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},t}(),Pe=function(){function t(t,e,r,n,o,h){this.uchar=void 0,this.penState=void 0,this.uchar=t||" ",this.penState=new Ce(e,r,n,o,h)}var e=t.prototype;return e.reset=function(){this.uchar=" ",this.penState.reset()},e.setChar=function(t,e){this.uchar=t,this.penState.copy(e)},e.setPenState=function(t){this.penState.copy(t)},e.equals=function(t){return this.uchar===t.uchar&&this.penState.equals(t.penState)},e.copy=function(t){this.uchar=t.uchar,this.penState.copy(t.penState)},e.isEmpty=function(){return" "===this.uchar&&this.penState.isDefault()},t}(),Be=function(){function t(t){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var i=0;i<100;i++)this.chars.push(new Pe);this.logger=t,this.pos=0,this.currPenState=new Ce}var e=t.prototype;return e.equals=function(t){for(var e=!0,i=0;i<100;i++)if(!this.chars[i].equals(t.chars[i])){e=!1;break}return e},e.copy=function(t){for(var i=0;i<100;i++)this.chars[i].copy(t.chars[i])},e.isEmpty=function(){for(var t=!0,i=0;i<100;i++)if(!this.chars[i].isEmpty()){t=!1;break}return t},e.setCursor=function(t){this.pos!==t&&(this.pos=t),this.pos<0?(this.logger.log(Ee.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>100&&(this.logger.log(Ee.DEBUG,"Too large cursor position "+this.pos),this.pos=100)},e.moveCursor=function(t){var e=this.pos+t;if(t>1)for(var i=this.pos+1;i<e+1;i++)this.chars[i].setPenState(this.currPenState);this.setCursor(e)},e.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},e.insertChar=function(t){t>=144&&this.backSpace();var e=Te(t);this.pos>=100?this.logger.log(Ee.ERROR,"Cannot insert "+t.toString(16)+" ("+e+") at position "+this.pos+". Skipping it!"):(this.chars[this.pos].setChar(e,this.currPenState),this.moveCursor(1))},e.clearFromPos=function(t){var i;for(i=t;i<100;i++)this.chars[i].reset()},e.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},e.clearToEndOfRow=function(){this.clearFromPos(this.pos)},e.getTextString=function(){for(var t=[],e=!0,i=0;i<100;i++){var r=this.chars[i].uchar;" "!==r&&(e=!1),t.push(r)}return e?"":t.join("")},e.setPenStyles=function(t){this.currPenState.setStyles(t),this.chars[this.pos].setPenState(this.currPenState)},t}(),Ne=function(){function t(t){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var i=0;i<15;i++)this.rows.push(new Be(t));this.logger=t,this.currRow=14,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var e=t.prototype;return e.reset=function(){for(var i=0;i<15;i++)this.rows[i].clear();this.currRow=14},e.equals=function(t){for(var e=!0,i=0;i<15;i++)if(!this.rows[i].equals(t.rows[i])){e=!1;break}return e},e.copy=function(t){for(var i=0;i<15;i++)this.rows[i].copy(t.rows[i])},e.isEmpty=function(){for(var t=!0,i=0;i<15;i++)if(!this.rows[i].isEmpty()){t=!1;break}return t},e.backSpace=function(){this.rows[this.currRow].backSpace()},e.clearToEndOfRow=function(){this.rows[this.currRow].clearToEndOfRow()},e.insertChar=function(t){this.rows[this.currRow].insertChar(t)},e.setPen=function(t){this.rows[this.currRow].setPenStyles(t)},e.moveCursor=function(t){this.rows[this.currRow].moveCursor(t)},e.setCursor=function(t){this.logger.log(Ee.INFO,"setCursor: "+t),this.rows[this.currRow].setCursor(t)},e.setPAC=function(t){this.logger.log(Ee.INFO,"pacData = "+JSON.stringify(t));var e=t.row-1;if(this.nrRollUpRows&&e<this.nrRollUpRows-1&&(e=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==e){for(var i=0;i<15;i++)this.rows[i].clear();var r=this.currRow+1-this.nrRollUpRows,n=this.lastOutputScreen;if(n){var o=n.rows[r].cueStartTime,time=this.logger.time;if(o&&null!==time&&o<time)for(var h=0;h<this.nrRollUpRows;h++)this.rows[e-this.nrRollUpRows+h+1].copy(n.rows[r+h])}}this.currRow=e;var f=this.rows[this.currRow];if(null!==t.indent){var l=t.indent,c=Math.max(l-1,0);f.setCursor(t.indent),t.color=f.chars[c].penState.foreground}var d={foreground:t.color,underline:t.underline,italics:t.italics,background:"black",flash:!1};this.setPen(d)},e.setBkgData=function(t){this.logger.log(Ee.INFO,"bkgData = "+JSON.stringify(t)),this.backSpace(),this.setPen(t),this.insertChar(32)},e.setRollUpRows=function(t){this.nrRollUpRows=t},e.rollUp=function(){if(null!==this.nrRollUpRows){this.logger.log(Ee.TEXT,this.getDisplayText());var t=this.currRow+1-this.nrRollUpRows,e=this.rows.splice(t,1)[0];e.clear(),this.rows.splice(this.currRow,0,e),this.logger.log(Ee.INFO,"Rolling up")}else this.logger.log(Ee.DEBUG,"roll_up but nrRollUpRows not set yet")},e.getDisplayText=function(t){t=t||!1;for(var e=[],text="",r=-1,i=0;i<15;i++){var n=this.rows[i].getTextString();n&&(r=i+1,t?e.push("Row "+r+": '"+n+"'"):e.push(n.trim()))}return e.length>0&&(text=t?"["+e.join(" | ")+"]":e.join("\n")),text},e.getTextAndFormat=function(){return this.rows},t}(),je=function(){function t(t,e,r){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=t,this.outputFilter=e,this.mode=null,this.verbose=0,this.displayedMemory=new Ne(r),this.nonDisplayedMemory=new Ne(r),this.lastOutputScreen=new Ne(r),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=r}var e=t.prototype;return e.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},e.getHandler=function(){return this.outputFilter},e.setHandler=function(t){this.outputFilter=t},e.setPAC=function(t){this.writeScreen.setPAC(t)},e.setBkgData=function(t){this.writeScreen.setBkgData(t)},e.setMode=function(t){t!==this.mode&&(this.mode=t,this.logger.log(Ee.INFO,"MODE="+t),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=t)},e.insertChars=function(t){for(var i=0;i<t.length;i++)this.writeScreen.insertChar(t[i]);var e=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(Ee.INFO,e+": "+this.writeScreen.getDisplayText(!0)),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(this.logger.log(Ee.TEXT,"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},e.ccRCL=function(){this.logger.log(Ee.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},e.ccBS=function(){this.logger.log(Ee.INFO,"BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())},e.ccAOF=function(){},e.ccAON=function(){},e.ccDER=function(){this.logger.log(Ee.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},e.ccRU=function(t){this.logger.log(Ee.INFO,"RU("+t+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(t)},e.ccFON=function(){this.logger.log(Ee.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},e.ccRDC=function(){this.logger.log(Ee.INFO,"RDC - Resume Direct 
2Captioning"),this.setMode("MODE_PAINT-ON")},e.ccTR=function(){this.logger.log(Ee.INFO,"TR"),this.setMode("MODE_TEXT")},e.ccRTD=function(){this.logger.log(Ee.INFO,"RTD"),this.setMode("MODE_TEXT")},e.ccEDM=function(){this.logger.log(Ee.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},e.ccCR=function(){this.logger.log(Ee.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},e.ccENM=function(){this.logger.log(Ee.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},e.ccEOC=function(){if(this.logger.log(Ee.INFO,"EOC - End Of Caption"),"MODE_POP-ON"===this.mode){var t=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=t,this.writeScreen=this.nonDisplayedMemory,this.logger.log(Ee.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},e.ccTO=function(t){this.logger.log(Ee.INFO,"TO("+t+") - Tab Offset"),this.writeScreen.moveCursor(t)},e.ccMIDROW=function(t){var e={flash:!1};if(e.underline=t%2==1,e.italics=t>=46,e.italics)e.foreground="white";else{var r=Math.floor(t/2)-16;e.foreground=["white","green","blue","cyan","red","yellow","magenta"][r]}this.logger.log(Ee.INFO,"MIDROW: "+JSON.stringify(e)),this.writeScreen.setPen(e)},e.outputDataUpdate=function(t){void 0===t&&(t=!1);var time=this.logger.time;null!==time&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,time,this.lastOutputScreen),t&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:time):this.cueStartTime=time,this.lastOutputScreen.copy(this.displayedMemory))},e.cueSplitAtTime=function(t){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,t,this.displayedMemory),this.cueStartTime=t))},t}();function Fe(a,b,t){t.a=a,t.b=b}function Ue(a,b,t){return t.a===a&&t.b===b}var qe=function(){function t(t,e,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var n=new Le;this.channels=[null,new je(t,e,n),new je(t+1,r,n)],this.cmdHistory={a:null,b:null},this.logger=n}var e=t.prototype;return e.getHandler=function(t){return this.channels[t].getHandler()},e.setHandler=function(t,e){this.channels[t].setHandler(e)},e.addData=function(time,t){var e,a,b,r=!1;this.logger.time=time;for(var i=0;i<t.length;i+=2)if(a=127&t[i],b=127&t[i+1],0!==a||0!==b){if(this.logger.log(Ee.DATA,"["+De([t[i],t[i+1]])+"] -> ("+De([a,b])+")"),(e=this.parseCmd(a,b))||(e=this.parseMidrow(a,b)),e||(e=this.parsePAC(a,b)),e||(e=this.parseBackgroundAttributes(a,b)),!e&&(r=this.parseChars(a,b))){var n=this.currentChannel;n&&n>0?this.channels[n].insertChars(r):this.logger.log(Ee.WARNING,"No channel found yet. TEXT-MODE?")}e||r||this.logger.log(Ee.WARNING,"Couldn't parse cleaned data "+De([a,b])+" orig: "+De([t[i],t[i+1]]))}},e.parseCmd=function(a,b){var t=this.cmdHistory;if(!((20===a||28===a||21===a||29===a)&&b>=32&&b<=47||(23===a||31===a)&&b>=33&&b<=35))return!1;if(Ue(a,b,t))return Fe(null,null,t),this.logger.log(Ee.DEBUG,"Repeated command ("+De([a,b])+") is dropped"),!0;var e=20===a||21===a||23===a?1:2,r=this.channels[e];return 20===a||21===a||28===a||29===a?32===b?r.ccRCL():33===b?r.ccBS():34===b?r.ccAOF():35===b?r.ccAON():36===b?r.ccDER():37===b?r.ccRU(2):38===b?r.ccRU(3):39===b?r.ccRU(4):40===b?r.ccFON():41===b?r.ccRDC():42===b?r.ccTR():43===b?r.ccRTD():44===b?r.ccEDM():45===b?r.ccCR():46===b?r.ccENM():47===b&&r.ccEOC():r.ccTO(b-32),Fe(a,b,t),this.currentChannel=e,!0},e.parseMidrow=function(a,b){var t=0;if((17===a||25===a)&&b>=32&&b<=47){if((t=17===a?1:2)!==this.currentChannel)return this.logger.log(Ee.ERROR,"Mismatch channel in midrow parsing"),!1;var e=this.channels[t];return!!e&&(e.ccMIDROW(b),this.logger.log(Ee.DEBUG,"MIDROW ("+De([a,b])+")"),!0)}return!1},e.parsePAC=function(a,b){var t,e=this.cmdHistory;if(!((a>=17&&a<=23||a>=25&&a<=31)&&b>=64&&b<=127||(16===a||24===a)&&b>=64&&b<=95))return!1;if(Ue(a,b,e))return Fe(null,null,e),!0;var r=a<=23?1:2;t=b>=64&&b<=95?1===r?Ae[a]:xe[a]:1===r?Re[a]:Oe[a];var n=this.channels[r];return!!n&&(n.setPAC(this.interpretPAC(t,b)),Fe(a,b,e),this.currentChannel=r,!0)},e.interpretPAC=function(t,e){var r=e,n={color:null,italics:!1,indent:null,underline:!1,row:t};return r=e>95?e-96:e-64,n.underline=1==(1&r),r<=13?n.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(r/2)]:r<=15?(n.italics=!0,n.color="white"):n.indent=4*Math.floor((r-16)/2),n},e.parseChars=function(a,b){var t,e=null,r=null;if(a>=25?(t=2,r=a-8):(t=1,r=a),r>=17&&r<=19){var n=b;n=17===r?b+80:18===r?b+112:b+144,this.logger.log(Ee.INFO,"Special char '"+Te(n)+"' in channel "+t),e=[n]}else a>=32&&a<=127&&(e=0===b?[a]:[a,b]);if(e){var o=De(e);this.logger.log(Ee.DEBUG,"Char codes =  "+o.join(",")),Fe(a,b,this.cmdHistory)}return e}
vendor: 21,791 bytes, line 2
2,e.parseBackgroundAttributes=function(a,b){var t;if(!((16===a||24===a)&&b>=32&&b<=47||(23===a||31===a)&&b>=45&&b<=47))return!1;var e={};16===a||24===a?(t=Math.floor((b-32)/2),e.background=Ie[t],b%2==1&&(e.background=e.background+"_semi")):45===b?e.background="transparent":(e.foreground="black",47===b&&(e.underline=!0));var r=a<=23?1:2;return this.channels[r].setBkgData(e),Fe(a,b,this.cmdHistory),!0},e.reset=function(){for(var i=0;i<Object.keys(this.channels).length;i++){var t=this.channels[i];t&&t.reset()}this.cmdHistory={a:null,b:null}},e.cueSplitAtTime=function(t){for(var i=0;i<this.channels.length;i++){var e=this.channels[i];e&&e.cueSplitAtTime(t)}},t}(),Ke=function(){function t(t,e){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=t,this.trackName=e}var e=t.prototype;return e.dispatchCue=function(){null!==this.startTime&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)},e.newCue=function(t,e,r){(null===this.startTime||this.startTime>t)&&(this.startTime=t),this.endTime=e,this.screen=r,this.timelineController.createCaptionsTrack(this.trackName)},e.reset=function(){this.cueRanges=[]},t}(),ze=function(t,e,r){return t.substr(r||0,e.length)===e},He=function(text){for(var t=5381,i=text.length;i;)t=33*t^text.charCodeAt(--i);return(t>>>0).toString()},Ge={parse:function(t,e,r,n,o,h){var f,l=Object(Vt.utf8ArrayToStr)(new Uint8Array(t)).trim().replace(/\r\n|\n\r|\n|\r/g,"\n").split("\n"),d="00:00.000",m=0,v=0,y=0,w=[],M=!0,_=!1,S=new _e;S.oncue=function(t){var e=r[n],o=r.ccOffset;e&&e.new&&(void 0!==v?o=r.ccOffset=e.start:function(t,e,r){var n=t[e],o=t[n.prevCC];if(!o||!o.new&&n.new)return t.ccOffset=t.presentationOffset=n.start,void(n.new=!1);for(;o&&o.new;)t.ccOffset+=n.start-o.start,n.new=!1,o=t[(n=o).prevCC];t.presentationOffset=r}(r,n,y)),y&&(o=y-r.presentationOffset),_&&(t.startTime+=o-v,t.endTime+=o-v),t.id=He(t.startTime.toString())+He(t.endTime.toString())+He(t.text),t.text=decodeURIComponent(encodeURIComponent(t.text)),t.endTime>0&&w.push(t)},S.onparsingerror=function(t){f=t},S.onflush=function(){f&&h?h(f):o(w)},l.forEach((function(line){if(M){if(ze(line,"X-TIMESTAMP-MAP=")){M=!1,_=!0,line.substr(16).split(",").forEach((function(t){ze(t,"LOCAL:")?d=t.substr(6):ze(t,"MPEGTS:")&&(m=parseInt(t.substr(7)))}));try{e+(9e4*r[n].start||0)<0&&(e+=8589934592),m-=e,v=function(t){var e=parseInt(t.substr(-3)),r=parseInt(t.substr(-6,2)),n=parseInt(t.substr(-9,2)),o=t.length>9?parseInt(t.substr(0,t.indexOf(":"))):0;if(!(Object(c.isFiniteNumber)(e)&&Object(c.isFiniteNumber)(r)&&Object(c.isFiniteNumber)(n)&&Object(c.isFiniteNumber)(o)))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+t);return e+=1e3*r,e+=6e4*n,e+=36e5*o}(d)/1e3,y=m/9e4}catch(t){_=!1,f=t}return}""===line&&(M=!1)}S.parse(line+"\n")})),S.flush()}};function Ve(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function We(t,e){return t&&t.label===e.name&&!(t.textTrack1||t.textTrack2)}var Ye=function(t){var e,r;function n(e){var r;if((r=t.call(this,e,d.default.MEDIA_ATTACHING,d.default.MEDIA_DETACHING,d.default.FRAG_PARSING_USERDATA,d.default.FRAG_DECRYPTED,d.default.MANIFEST_LOADING,d.default.MANIFEST_LOADED,d.default.FRAG_LOADED,d.default.INIT_PTS_FOUND)||this).media=null,r.config=void 0,r.enabled=!0,r.Cues=void 0,r.textTracks=[],r.tracks=[],r.initPTS=[],r.unparsedVttFrags=[],r.captionsTracks={},r.nonNativeCaptionsTracks={},r.captionsProperties=void 0,r.cea608Parser1=void 0,r.cea608Parser2=void 0,r.lastSn=-1,r.prevCC=-1,r.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}},r.hls=e,r.config=e.config,r.Cues=e.config.cueHandler,r.captionsProperties={textTrack1:{label:r.config.captionsTextTrack1Label,languageCode:r.config.captionsTextTrack1LanguageCode},textTrack2:{label:r.config.captionsTextTrack2Label,languageCode:r.config.captionsTextTrack2LanguageCode},textTrack3:{label:r.config.captionsTextTrack3Label,languageCode:r.config.captionsTextTrack3LanguageCode},textTrack4:{label:r.config.captionsTextTrack4Label,languageCode:r.config.captionsTextTrack4LanguageCode}},r.config.enableCEA708Captions){var n=new Ke(Ve(r),"textTrack1"),o=new Ke(Ve(r),"textTrack2"),h=new Ke(Ve(r),"textTrack3"),f=new Ke(Ve(r),"textTrack4");r.cea608Parser1=new qe(1,n,o),r.cea608Parser2=new qe(3,h,f)}return r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var o=n.prototype;return o.addCues=function(t,e,r,n,o){for(var h,f,l,c,m=!1,i=o.length;i--;){var v=o[i],y=(h=v[0],f=v[1],l=e,c=r,Math.min(f,c)-Math.max(h,l));if(y>=0&&(v[0]=Math.min(v[0],e),v[1]=Math.max(v[1],r),m=!0,y/(r-e)>.5))return}if(m||o.push([e,r]),this.config.renderTextTracksNatively)this.Cues.newCue(this.captionsTracks[t],e,r,n);else{var w=this.Cues.newCue(null,e,r,n);this.hls.trigger(d.default.CUES_PARSED,{type:"captions",cues:w,track:t})}},o.onInitPtsFound=function(data){var t=this,e=data.frag,r=data.id,n=data.initPTS,o=this.unparsedVttFrags;"main"===r&&(this.initPTS[e.cc]=n),o.length&&(this.unparsedVttFrags=[],o.forEach((function(e){t.onFragLoaded(e)})))},o.getExistingTrack=function(t){var e=this.media;if(e)for(var i=0;i<e.textTracks.length;i++){var r=e.textTracks[i];if(r[t])return r}return null},o.createCaptionsTrack=function(t){this.config.renderTextTracksNatively?this.createNativeTrack(t):this.createNonNativeTrack(t)},o.createNativeTrack=function(t){if(!this.captionsTracks[t]){var e=this.captionsProperties,r=this.captionsTracks,n=this.media,o=e[t],label=o.label,h=o.languageCode,f=this.getExistingTrack(t);if(f)r[t]=f,Yt(r[t]),Wt(r[t],n);else{var l=this.createTextTrack("captions",label,h);l&&(l[t]=!0,r[t]=l)}}},o.createNonNativeTrack=function(t){if(!this.nonNativeCaptionsTracks[t]){var e=this.captionsProperties[t];if(e){var track={_id:t,label:e.label,kind:"captions",default:!!e.media&&!!e.media.default,closedCaptions:e.media};this.nonNativeCaptionsTracks[t]=track,this.hls.trigger(d.default.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[track]})}}},o.createTextTrack=function(t,label,e){var r=this.media;if(r)return r.addTextTrack(t,label,e)},o.destroy=function(){t.prototype.destroy.call(this)},o.onMediaAttaching=function(data){this.media=data.media,this._cleanTracks()},o.onMediaDetaching=function(){var t=this.captionsTracks;Object.keys(t).forEach((function(e){Yt(t[e]),delete t[e]})),this.nonNativeCaptionsTracks={}},o.onManifestLoading=function(){this.lastSn=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}},this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={}},o._cleanTracks=function(){var t=this.media;if(t){var e=t.textTracks;if(e)for(var i=0;i<e.length;i++)Yt(e[i])}},o.onManifestLoaded=function(data){var t=this;if(this.textTracks=[],this.unparsedVttFrags=this.unparsedVttFrags||[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset()),this.config.enableWebVTT){var e=data.subtitles||[],r=this.tracks&&e&&this.tracks.length===e.length;if(this.tracks=data.subtitles||[],this.config.renderTextTracksNatively){var n=this.media?this.media.textTracks:[];this.tracks.forEach((function(track,e){var r;if(e<n.length){for(var o=null,i=0;i<n.length;i++)if(We(n[i],track)){o=n[i];break}o&&(r=o)}r||(r=t.createTextTrack("subtitles",track.name,track.lang)),track.default?r.mode=t.hls.subtitleDisplay?"showing":"hidden":r.mode="disabled",t.textTracks.push(r)}))}else if(!r&&this.tracks&&this.tracks.length){var o=this.tracks.map((function(track){return{label:track.name,kind:track.type.toLowerCase(),default:track.default,subtitleTrack:track}}));this.hls.trigger(d.default.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:o})}}this.config.enableCEA708Captions&&data.captions&&data.captions.forEach((function(e){var r=/(?:CC|SERVICE)([1-4])/.exec(e.instreamId);if(r){var n="textTrack"+r[1],o=t.captionsProperties[n];o&&(o.label=e.name,e.lang&&(o.languageCode=e.lang),o.media=e)}}))},o.onFragLoaded=function(data){var t=data.frag,e=data.payload,r=this.cea608Parser1,n=this.cea608Parser2,o=this.initPTS,h=this.lastSn,f=this.unparsedVttFrags;if("main"===t.type){var l=t.sn;t.sn!==h+1&&r&&n&&(r.reset(),n.reset()),this.lastSn=l}else if("subtitle"===t.type)if(e.byteLength){if(!Object(c.isFiniteNumber)(o[t.cc]))return f.push(data),void(o.length&&this.hls.trigger(d.default.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t}));var m=t.decryptdata;null!=m&&null!=m.key&&"AES-128"===m.method||this._parseVTTs(t,e)}else this.hls.trigger(d.default.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t})},o._parseVTTs=function(t,e){var r=this,n=this.hls,o=this.prevCC,h=this.textTracks,f=this.vttCCs;f[t.cc]||(f[t.cc]={start:t.start,prevCC:o,new:!0},this.prevCC=t.cc),Ge.parse(e,this.initPTS[t.cc],f,t.cc,(function(e){if(r.config.renderTextTracksNatively){var o=h[t.level];if("disabled"===o.mode)return void n.trigger(d.default.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t});e.forEach((function(t){if(!o.cues.getCueById(t.id))try{if(o.addCue(t),!o.cues.getCueById(t.id))throw new Error("addCue is failed for: "+t)}catch(r){m.logger.debug("Failed occurred on adding cues: "+r);var e=new window.TextTrackCue(t.startTime,t.endTime,t.text);e.id=t.id,o.addCue(e)}}))}else{var f=r.tracks[t.level].default?"default":"subtitles"+t.level;n.trigger(d.default.CUES_PARSED,{type:"subtitles",cues:e,track:f})}n.trigger(d.default.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})}),(function(e){m.logger.log("Failed to parse VTT cue: "+e),n.trigger(d.default.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t})}))},o.onFragDecrypted=function(data){var t=data.frag,e=data.payload;if("subtitle"===t.type){if(!Object(c.isFiniteNumber)(this.initPTS[t.cc]))return void this.unparsedVttFrags.push(data);this._parseVTTs(t,e)}},o.onFragParsingUserdata=function(data){var t=this.cea608Parser1,e=this.cea608Parser2;if(this.enabled&&t&&e)for(var i=0;i<data.samples.length;i++){var r=data.samples[i].bytes;if(r){var n=this.extractCea608Data(r);t.addData(data.samples[i].pts,n[0]),e.addData(data.samples[i].pts,n[1])}}},o.extractCea608Data=function(t){for(var e=31&t[0],r=2,n=[[],[]],o=0;o<e;o++){var h=t[r++],f=127&t[r++],l=127&t[r++],c=3&h;0===f&&0===l||0!=(4&h)&&(0!==c&&1!==c||(n[c].push(f),n[c].push(l)))}return n},n}(y);function Ze(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Xe(t){for(var e=[],i=0;i<t.length;i++){var track=t[i];"subtitles"===track.kind&&track.label&&e.push(t[i])}return e}var $e,Je=function(t){var e,r;function n(e){var r;return(r=t.call(this,e,d.default.MEDIA_ATTACHED,d.default.MEDIA_DETACHING,d.default.MANIFEST_LOADED,d.default.SUBTITLE_TRACK_LOADED)||this).tracks=[],r.trackId=-1,r.media=null,r.stopped=!0,r.subtitleDisplay=!0,r.queuedDefaultTrack=null,r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var o,h,f,l=n.prototype;return l.destroy=function(){y.prototype.destroy.call(this)},l.onMediaAttached=function(data){var t=this;this.media=data.media,this.media&&(Object(c.isFiniteNumber)(this.queuedDefaultTrack)&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=null),this.trackChangeListener=this._onTextTracksChanged.bind(this),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.subtitlePollingInterval=setInterval((function(){t.trackChangeListener()}),500):this.media.textTracks.addEventListener("change",this.trackChangeListener))},l.onMediaDetaching=function(){this.media&&(this.useTextTrackPolling?clearInterval(this.subtitlePollingInterval):this.media.textTracks.removeEventListener("change",this.trackChangeListener),Object(c.isFiniteNumber)(this.subtitleTrack)&&(this.queuedDefaultTrack=this.subtitleTrack),Xe(this.media.textTracks).forEach((function(track){Yt(track)})),this.subtitleTrack=-1,this.media=null)},l.onManifestLoaded=function(data){var t=this,e=data.subtitles||[];this.tracks=e,this.hls.trigger(d.default.SUBTITLE_TRACKS_UPDATED,{subtitleTracks:e}),e.forEach((function(track){track.default&&(t.media?t.subtitleTrack=track.id:t.queuedDefaultTrack=track.id)}))},l.onSubtitleTrackLoaded=function(data){var t=this,e=data.id,details=data.details,r=this.trackId,n=this.tracks,o=n[r];if(e>=n.length||e!==r||!o||this.stopped)this._clearReloadTimer();else if(m.logger.log("subtitle track "+e+" loaded"),details.live){var h=pt(o.details,details,data.stats.trequest);m.logger.log("Reloading live subtitle playlist in "+h+"ms"),this.timer=setTimeout((function(){t._loadCurrentTrack()}),h)}else this._clearReloadTimer()},l.startLoad=function(){this.stopped=!1,this._loadCurrentTrack()},l.stopLoad=function(){this.stopped=!0,this._clearReloadTimer()},l._clearReloadTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=null)},l._loadCurrentTrack=function(){var t=this.trackId,e=this.tracks,r=this.hls,n=e[t];t<0||!n||n.details&&!n.details.live||(m.logger.log("Loading subtitle track "+t),r.trigger(d.default.SUBTITLE_TRACK_LOADING,{url:n.url,id:t}))},l._toggleTrackModes=function(t){var e=this.media,r=this.subtitleDisplay,n=this.trackId;if(e){var o=Xe(e.textTracks);if(-1===t)[].slice.call(o).forEach((function(track){track.mode="disabled"}));else{var h=o[n];h&&(h.mode="disabled")}var f=o[t];f&&(f.mode=r?"showing":"hidden")}},l._setSubtitleTrackInternal=function(t){var e=this.hls,r=this.tracks;!Object(c.isFiniteNumber)(t)||t<-1||t>=r.length||(this.trackId=t,m.logger.log("Switching to subtitle track "+t),e.trigger(d.default.SUBTITLE_TRACK_SWITCH,{id:t}),this._loadCurrentTrack())},l._onTextTracksChanged=function(){if(this.media&&this.hls.config.renderTextTracksNatively){for(var t=-1,e=Xe(this.media.textTracks),r=0;r<e.length;r++)if("hidden"===e[r].mode)t=r;else if("showing"===e[r].mode){t=r;break}this.subtitleTrack=t}},o=n,(h=[{key:"subtitleTracks",get:function(){return this.tracks}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(t){this.trackId!==t&&(this._toggleTrackModes(t),this._setSubtitleTrackInternal(t))}}])&&Ze(o.prototype,h),f&&Ze(o,f),n}(y),Qe=r("./src/crypt/decrypter.js"),er=window.performance,rr=function(t){var e,r;function n(e,r){var n;return(n=t.call(this,e,d.default.MEDIA_ATTACHED,d.default.MEDIA_DETACHING,d.default.ERROR,d.default.KEY_LOADED,d.default.FRAG_LOADED,d.default.SUBTITLE_TRACKS_UPDATED,d.default.SUBTITLE_TRACK_SWITCH,d.default.SUBTITLE_TRACK_LOADED,d.default.SUBTITLE_FRAG_PROCESSED,d.default.LEVEL_UPDATED)||this).fragmentTracker=r,n.config=e.config,n.state=kt,n.tracks=[],n.tracksBuffered=[],n.currentTrackId=-1,n.decrypter=new Qe.default(e,e.config),n.lastAVStart=0,n._onMediaSeeking=n.onMediaSeeking.bind(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n)),n}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var o=n.prototype;return o.startLoad=function(){this.stopLoad(),this.state=At;var t=this.tracks[this.currentTrackId];t&&t.details&&(this.setInterval(500),this.tick())},o.onSubtitleFragProcessed=function(data){var t=data.frag,e=data.success;if(this.fragPrevious=t,this.state=At,e){var r=this.tracksBuffered[this.currentTrackId];if(r){for(var n,o=t.start,i=0;i<r.length;i++)if(o>=r[i].start&&o<=r[i].end){n=r[i];break}var h=t.start+t.duration;n?n.end=h:(n={start:o,end:h},r.push(n))}}},o.onMediaAttached=function(t){var e=t.media;this.media=e,e.addEventListener("seeking",this._onMediaSeeking),this.state=At},o.onMediaDetaching=function(){var t=this;this.media&&(this.media.removeEventListener("seeking",this._onMediaSeeking),this.fragmentTracker.removeAllFragments(),this.currentTrackId=-1,this.tracks.forEach((function(track){t.tracksBuffered[track.id]=[]})),this.media=null,this.state=kt)},o.onError=function(data){var t=data.frag;t&&"subtitle"===t.type&&(this.fragCurrent&&this.fragCurrent.loader&&this.fragCurrent.loader.abort(),this.state=At)},o.onSubtitleTracksUpdated=function(data){var t=this;m.logger.log("subtitle tracks updated"),this.tracksBuffered=[],this.tracks=data.subtitleTracks,this.tracks.forEach((function(track){t.tracksBuffered[track.id]=[]}))},o.onSubtitleTrackSwitch=function(data){if(this.currentTrackId=data.id,this.tracks&&this.tracks.length&&-1!==this.currentTrackId){var t=this.tracks[this.currentTrackId];t&&t.details&&this.setInterval(500)}else this.clearInterval()},o.onSubtitleTrackLoaded=function(data){var t=data.id,details=data.details,e=this.currentTrackId,r=this.tracks,n=r[e];t>=r.length||t!==e||!n||(details.live&&function(t,e,r){void 0===r&&(r=0);var n=-1;ct(t,e,(function(t,e,r){e.start=t.start,n=r}));var o=e.fragments;if(n<0)o.forEach((function(t){t.start+=r}));else for(var i=n+1;i<o.length;i++)o[i].start=o[i-1].start+o[i-1].duration}(n.details,details,this.lastAVStart),n.details=details,this.setInterval(500))},o.onKeyLoaded=function(){this.state===xt&&(this.state=At)},o.onFragLoaded=function(data){var t=this.fragCurrent,e=data.frag.decryptdata,r=data.frag,n=this.hls;if(this.state===Ot&&t&&"subtitle"===data.frag.type&&t.sn===data.frag.sn&&data.payload.byteLength>0&&e&&e.key&&"AES-128"===e.method){var o=er.now();this.decrypter.decrypt(data.payload,e.key.buffer,e.iv.buffer,(function(t){var e=er.now();n.trigger(d.default.FRAG_DECRYPTED,{frag:r,payload:t,stats:{tstart:o,tdecrypt:e}})}))}},o.onLevelUpdated=function(t){var e=t.details.fragments;this.lastAVStart=e.length?e[0].start:0},o.doTick=function(){if(this.media)switch(this.state){case At:var t=this.config,e=this.currentTrackId,r=this.fragmentTracker,n=this.media,o=this.tracks;if(!o||!o[e]||!o[e].details)break;var h,f=t.maxBufferHole,l=t.maxFragLookUpTolerance,c=Math.min(t.maxBufferLength,t.maxMaxBufferLength),v=$.bufferedInfo(this._getBuffered(),n.currentTime,f),y=v.end,w=v.len,M=o[e].details,_=M.fragments,S=_.length,E=_[S-1].start+_[S-1].duration;if(w>c)return;var k=this.fragPrevious;y<E?(k&&M.hasProgramDateTime&&(h=yt(_,k.endProgramDateTime,l)),h||(h=bt(k,_,y,l))):h=_[S-1],h&&h.encrypted?(m.logger.log("Loading key for "+h.sn),this.state=xt,this.hls.trigger(d.default.KEY_LOADING,{frag:h})):h&&r.getState(h)===G&&(this.fragCurrent=h,this.state=Ot,this.hls.trigger(d.default.FRAG_LOADING,{frag:h}))}else this.state=At},o.stopLoad=function(){this.lastAVStart=0,this.fragPrevious=null,t.prototype.stopLoad.call(this)},o._getBuffered=function(){return this.tracksBuffered[this.currentTrackId]||[]},o.onMediaSeeking=function(){if(this.fragCurrent){var t=this.media?this.media.currentTime:0,e=this.config.maxFragLookUpTolerance,r=this.fragCurrent.start-e,n=this.fragCurrent.start+this.fragCurrent.duration+e;(t<r||t>n)&&(this.fragCurrent.loader&&this.fragCurrent.loader.abort(),this.fragmentTracker.removeFragment(this.fragCurrent),this.fragCurrent=null,this.fragPrevious=null,this.state=At,this.tick())}},n}(Ut);!function(t){t.WIDEVINE="com.widevine.alpha",t.PLAYREADY="com.microsoft.playready"}($e||($e={}));var ir="undefined"!=typeof window&&window.navigator&&window.navigator.requestMediaKeySystemAccess?window.navigator.requestMediaKeySystemAccess.bind(window.navigator):null;function nr(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var or=function(t){var e,r;function n(e){var r;return(r=t.call(this,e,d.default.MEDIA_ATTACHED,d.default.MEDIA_DETACHED,d.default.MANIFEST_PARSED)||this)._widevineLicenseUrl=void 0,r._licenseXhrSetup=void 0,r._emeEnabled=void 0,r._requestMediaKeySystemAccess=void 0,r._drmSystemOptions=void 0,r._config=void 0,r._mediaKeysList=[],r._media=null,r._hasSetMediaKeys=!1,r._requestLicenseFailureCount=0,r.mediaKeysPromise=null,r._onMediaEncrypted=function(t){if(m.logger.log('Media is encrypted using "'+t.initDataType+'" init data type'),!r.mediaKeysPromise)return m.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been requested"),void r.hls.trigger(d.default.ERROR,{type:l.ErrorTypes.KEY_SYSTEM_ERROR,details:l.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});var e=function(e){r._media&&(r._attemptSetMediaKeys(e),r._generateRequestWithPreferredKeySession(t.initDataType,t.initData))};r.mediaKeysPromise.then(e).catch(e)},r._config=e.config,r._widevineLicenseUrl=r._config.widevineLicenseUrl,r._licenseXhrSetup=r._config.licenseXhrSetup,r._emeEnabled=r._config.emeEnabled,r._requestMediaKeySystemAccess=r._config.requestMediaKeySystemAccessFunc,r._drmSystemOptions=e.config.drmSystemOptions,r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var o,h,f,c=n.prototype;return c.getLicenseServerUrl=function(t){switch(t){case $e.WIDEVINE:if(!this._widevineLicenseUrl)break;return this._widevineLicenseUrl}throw new Error('no license server URL configured for key-system "'+t+'"')},c._attemptKeySystemAccess=function(t,e,r){var n=this,o=function(t,e,r,n){switch(t){case $e.WIDEVINE:return function(t,e,r){var n={audioCapabilities:[],videoCapabilities:[]};return t.forEach((function(t){n.audioCapabilities.push({contentType:'audio/mp4; codecs="'+t+'"',robustness:r.audioRobustness||""})})),e.forEach((function(t){n.videoCapabilities.push({contentType:'video/mp4; codecs="'+t+'"',robustness:r.videoRobustness||""})})),[n]}(e,r,n);default:throw new Error("Unknown key-system: "+t)}}(t,e,r,this._drmSystemOptions);m.logger.log("Requesting encrypted media key-system access");var h=this.requestMediaKeySystemAccess(t,o);this.mediaKeysPromise=h.then((function(e){return n._onMediaKeySystemAccessObtained(t,e)})),h.catch((function(e){m.logger.error('Failed to obtain key-system "'+t+'" access:',e)}))},c._onMediaKeySystemAccessObtained=function(t,e){var r=this;
vendor: 6,329 bytes, line 2
2m.logger.log('Access for key-system "'+t+'" obtained');var n={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:e,mediaKeySystemDomain:t};this._mediaKeysList.push(n);var o=Promise.resolve().then((function(){return e.createMediaKeys()})).then((function(e){return n.mediaKeys=e,m.logger.log('Media-keys created for key-system "'+t+'"'),r._onMediaKeysCreated(),e}));return o.catch((function(t){m.logger.error("Failed to create media-keys:",t)})),o},c._onMediaKeysCreated=function(){var t=this;this._mediaKeysList.forEach((function(e){e.mediaKeysSession||(e.mediaKeysSession=e.mediaKeys.createSession(),t._onNewMediaKeySession(e.mediaKeysSession))}))},c._onNewMediaKeySession=function(t){var e=this;m.logger.log("New key-system session "+t.sessionId),t.addEventListener("message",(function(r){e._onKeySessionMessage(t,r.message)}),!1)},c._onKeySessionMessage=function(t,e){m.logger.log("Got EME message event, creating license request"),this._requestLicense(e,(function(data){m.logger.log("Received license data (length: "+(data?data.byteLength:data)+"), updating key-session"),t.update(data)}))},c._attemptSetMediaKeys=function(t){if(!this._media)throw new Error("Attempted to set mediaKeys without first attaching a media element");if(!this._hasSetMediaKeys){var e=this._mediaKeysList[0];if(!e||!e.mediaKeys)return m.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been obtained yet"),void this.hls.trigger(d.default.ERROR,{type:l.ErrorTypes.KEY_SYSTEM_ERROR,details:l.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});m.logger.log("Setting keys for encrypted media"),this._media.setMediaKeys(e.mediaKeys),this._hasSetMediaKeys=!0}},c._generateRequestWithPreferredKeySession=function(t,e){var r=this,n=this._mediaKeysList[0];if(!n)return m.logger.error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),void this.hls.trigger(d.default.ERROR,{type:l.ErrorTypes.KEY_SYSTEM_ERROR,details:l.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});if(n.mediaKeysSessionInitialized)m.logger.warn("Key-Session already initialized but requested again");else{var o=n.mediaKeysSession;if(!o)return m.logger.error("Fatal: Media is encrypted but no key-session existing"),void this.hls.trigger(d.default.ERROR,{type:l.ErrorTypes.KEY_SYSTEM_ERROR,details:l.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!0});if(!e)return m.logger.warn("Fatal: initData required for generating a key session is null"),void this.hls.trigger(d.default.ERROR,{type:l.ErrorTypes.KEY_SYSTEM_ERROR,details:l.ErrorDetails.KEY_SYSTEM_NO_INIT_DATA,fatal:!0});m.logger.log('Generating key-session request for "'+t+'" init data type'),n.mediaKeysSessionInitialized=!0,o.generateRequest(t,e).then((function(){m.logger.debug("Key-session generation succeeded")})).catch((function(t){m.logger.error("Error generating key-session request:",t),r.hls.trigger(d.default.ERROR,{type:l.ErrorTypes.KEY_SYSTEM_ERROR,details:l.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!1})}))}},c._createLicenseXhr=function(t,e,r){var n=new XMLHttpRequest,o=this._licenseXhrSetup;try{if(o)try{o(n,t)}catch(e){n.open("POST",t,!0),o(n,t)}n.readyState||n.open("POST",t,!0)}catch(t){throw new Error("issue setting up KeySystem license XHR "+t)}return n.responseType="arraybuffer",n.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,n,t,e,r),n},c._onLicenseRequestReadyStageChange=function(t,e,r,n){switch(t.readyState){case 4:if(200===t.status)this._requestLicenseFailureCount=0,m.logger.log("License request succeeded"),"arraybuffer"!==t.responseType&&m.logger.warn("xhr response type was not set to the expected arraybuffer for license request"),n(t.response);else{if(m.logger.error("License Request XHR failed ("+e+"). Status: "+t.status+" ("+t.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>3)return void this.hls.trigger(d.default.ERROR,{type:l.ErrorTypes.KEY_SYSTEM_ERROR,details:l.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});var o=3-this._requestLicenseFailureCount+1;m.logger.warn("Retrying license request, "+o+" attempts left"),this._requestLicense(r,n)}}},c._generateLicenseRequestChallenge=function(t,e){switch(t.mediaKeySystemDomain){case $e.WIDEVINE:return e}throw new Error("unsupported key-system: "+t.mediaKeySystemDomain)},c._requestLicense=function(t,e){m.logger.log("Requesting content license for key-system");var r=this._mediaKeysList[0];if(!r)return m.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),void this.hls.trigger(d.default.ERROR,{type:l.ErrorTypes.KEY_SYSTEM_ERROR,details:l.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});try{var n=this.getLicenseServerUrl(r.mediaKeySystemDomain),o=this._createLicenseXhr(n,t,e);m.logger.log("Sending license request to URL: "+n);var h=this._generateLicenseRequestChallenge(r,t);o.send(h)}catch(t){m.logger.error("Failure requesting DRM license: "+t),this.hls.trigger(d.default.ERROR,{type:l.ErrorTypes.KEY_SYSTEM_ERROR,details:l.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},c.onMediaAttached=function(data){if(this._emeEnabled){var t=data.media;this._media=t,t.addEventListener("encrypted",this._onMediaEncrypted)}},c.onMediaDetached=function(){var t=this._media,e=this._mediaKeysList;t&&(t.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(e.map((function(t){if(t.mediaKeysSession)return t.mediaKeysSession.close().catch((function(){}))}))).then((function(){return t.setMediaKeys(null)})).catch((function(){})))},c.onManifestParsed=function(data){if(this._emeEnabled){var t=data.levels.map((function(t){return t.audioCodec})),e=data.levels.map((function(t){return t.videoCodec}));this._attemptKeySystemAccess($e.WIDEVINE,t,e)}},o=n,(h=[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}])&&nr(o.prototype,h),f&&nr(o,f),n}(y);function ar(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function sr(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};
vendor: 10,702 bytes, line 2
2i%2?ar(Object(source),!0).forEach((function(e){ur(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):ar(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}function ur(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var fr=sr(sr({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,initialLiveManifestSize:1,maxBufferLength:30,maxBufferSize:6e7,maxBufferHole:.5,lowBufferWatchdogPeriod:.5,highBufferWatchdogPeriod:3,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,liveDurationInfinity:!1,liveBackBufferLength:1/0,maxMaxBufferLength:600,enableWorker:!0,enableSoftwareAES:!0,manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,startLevel:void 0,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:se,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,abrController:te,bufferController:re,capLevelController:ne,fpsController:ae,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystemOptions:{},requestMediaKeySystemAccessFunc:ir,testBandwidth:!0},{cueHandler:n,enableCEA708Captions:!0,enableWebVTT:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}),{},{subtitleStreamController:rr,subtitleTrackController:Je,timelineController:Ye,audioStreamController:ce,audioTrackController:he,emeController:or});function lr(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function cr(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?lr(Object(source),!0).forEach((function(e){dr(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):lr(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}function dr(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pr(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function mr(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function gr(t,e,r){return e&&mr(t.prototype,e),r&&mr(t,r),t}var vr=function(t){var e,r;function n(e){var r;void 0===e&&(e={}),(r=t.call(this)||this).config=void 0,r._autoLevelCapping=void 0,r.abrController=void 0,r.capLevelController=void 0,r.levelController=void 0,r.streamController=void 0,r.networkControllers=void 0,r.audioTrackController=void 0,r.subtitleTrackController=void 0,r.emeController=void 0,r.coreComponents=void 0,r.media=null,r.url=null;var o=n.DefaultConfig;if((e.liveSyncDurationCount||e.liveMaxLatencyDurationCount)&&(e.liveSyncDuration||e.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");r.config=cr(cr({},o),e);var h=pr(r).config;if(void 0!==h.liveMaxLatencyDurationCount&&h.liveMaxLatencyDurationCount<=h.liveSyncDurationCount)throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be gt "liveSyncDurationCount"');if(void 0!==h.liveMaxLatencyDuration&&(void 0===h.liveSyncDuration||h.liveMaxLatencyDuration<=h.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be gt "liveSyncDuration"');Object(m.enableLogs)(h.debug),r._autoLevelCapping=-1;var f=r.abrController=new h.abrController(pr(r)),l=new h.bufferController(pr(r)),c=r.capLevelController=new h.capLevelController(pr(r)),d=new h.fpsController(pr(r)),v=new K(pr(r)),y=new z(pr(r)),w=new H(pr(r)),M=new Zt(pr(r)),_=r.levelController=new Gt(pr(r)),S=new Z(pr(r)),E=[_,r.streamController=new zt(pr(r),S)],k=h.audioStreamController;k&&E.push(new k(pr(r),S)),r.networkControllers=E;var T=[v,y,w,f,l,c,d,M,S];if(k=h.audioTrackController){var A=new k(pr(r));r.audioTrackController=A,T.push(A)}if(k=h.subtitleTrackController){var R=new k(pr(r));r.subtitleTrackController=R,E.push(R)}if(k=h.emeController){var x=new k(pr(r));r.emeController=x,T.push(x)}return(k=h.subtitleStreamController)&&E.push(new k(pr(r),S)),(k=h.timelineController)&&T.push(new k(pr(r))),r.coreComponents=T,r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,n.isSupported=function(){return function(){var t=et();if(!t)return!1;var e=self.SourceBuffer||self.WebKitSourceBuffer,r=t&&"function"==typeof t.isTypeSupported&&t.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),n=!e||e.prototype&&"function"==typeof e.prototype.appendBuffer&&"function"==typeof e.prototype.remove;return!!r&&!!n}()},gr(n,null,[{key:"version",get:function(){return"0.14.17"}},{key:"Events",get:function(){return d.default}},{key:"ErrorTypes",get:function(){return l.ErrorTypes}},{key:"ErrorDetails",get:function(){return l.ErrorDetails}},{key:"DefaultConfig",get:function(){return n.defaultConfig?n.defaultConfig:fr},set:function(t){n.defaultConfig=t}}]);var o=n.prototype;return o.destroy=function(){m.logger.log("destroy"),this.trigger(d.default.DESTROYING),this.detachMedia(),this.coreComponents.concat(this.networkControllers).forEach((function(component){component.destroy()})),this.url=null,this.removeAllListeners(),this._autoLevelCapping=-1},o.attachMedia=function(t){m.logger.log("attachMedia"),this.media=t,this.trigger(d.default.MEDIA_ATTACHING,{media:t})},o.detachMedia=function(){m.logger.log("detachMedia"),this.trigger(d.default.MEDIA_DETACHING),this.media=null},o.loadSource=function(t){t=f.buildAbsoluteURL(window.location.href,t,{alwaysNormalize:!0}),m.logger.log("loadSource:"+t),this.url=t,this.trigger(d.default.MANIFEST_LOADING,{url:t})},o.startLoad=function(t){void 0===t&&(t=-1),m.logger.log("startLoad("+t+")"),this.networkControllers.forEach((function(e){e.startLoad(t)}))},o.stopLoad=function(){m.logger.log("stopLoad"),this.networkControllers.forEach((function(t){t.stopLoad()}))},o.swapAudioCodec=function(){m.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},o.recoverMediaError=function(){m.logger.log("recoverMediaError");var t=this.media;this.detachMedia(),t&&this.attachMedia(t)},o.removeLevel=function(t,e){void 0===e&&(e=0),this.levelController.removeLevel(t,e)},gr(n,[{key:"levels",get:function(){return this.levelController.levels}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(t){m.logger.log("set currentLevel:"+t),this.loadLevel=t,this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(t){m.logger.log("set nextLevel:"+t),this.levelController.manualLevel=t,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(t){m.logger.log("set loadLevel:"+t),this.levelController.manualLevel=t}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(t){this.levelController.nextLoadLevel=t}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(t){m.logger.log("set firstLevel:"+t),this.levelController.firstLevel=t}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(t){m.logger.log("set startLevel:"+t),-1!==t&&(t=Math.max(t,this.minAutoLevel)),this.levelController.startLevel=t}},{key:"capLevelToPlayerSize",set:function(t){var e=!!t;e!==this.config.capLevelToPlayerSize&&(e?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=e)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(t){m.logger.log("set autoLevelCapping:"+t),this._autoLevelCapping=t}},{key:"bandwidthEstimate",get:function(){var t=this.abrController._bwEstimator;return t?t.getEstimate():NaN}},{key:"autoLevelEnabled",get:function(){return-1===this.levelController.manualLevel}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){for(var t=this.levels,e=this.config.minAutoBitrate,r=t?t.length:0,i=0;i<r;i++)if((t[i].realBitrate?Math.max(t[i].realBitrate,t[i].bitrate):t[i].bitrate)>e)return i;return 0}},{key:"maxAutoLevel",get:function(){var t=this.levels,e=this.autoLevelCapping;return-1===e&&t&&t.length?t.length-1:e}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(t){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,t)}},{key:"audioTracks",get:function(){var t=this.audioTrackController;return t?t.audioTracks:[]}},{key:"audioTrack",get:function(){var t=this.audioTrackController;return t?t.audioTrack:-1},set:function(t){var e=this.audioTrackController;e&&(e.audioTrack=t)}},{key:"liveSyncPosition",get:function(){return this.streamController.liveSyncPosition}},{key:"subtitleTracks",get:function(){var t=this.subtitleTrackController;return t?t.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var t=this.subtitleTrackController;return t?t.subtitleTrack:-1},set:function(t){var e=this.subtitleTrackController;e&&(e.subtitleTrack=t)}},{key:"subtitleDisplay",get:function(){var t=this.subtitleTrackController;return!!t&&t.subtitleDisplay}
2,set:function(t){var e=this.subtitleTrackController;e&&(e.subtitleDisplay=t)}}]),n}(nt);vr.defaultConfig=void 0},
2"./src/polyfills/number.js":function(t,e,r){"use strict";r.r(e),r.d(e,"isFiniteNumber",(function(){return n})),r.d(e,"MAX_SAFE_INTEGER",(function(){return o}));var n=Number.isFinite||function(t){return"number"==typeof t&&isFinite(t)},o=Number.MAX_SAFE_INTEGER||9007199254740991},
2"./src/utils/get-self-scope.js":function(t,e,r){"use strict";function n(){return"undefined"==typeof window?self:window}r.r(e),r.d(e,"getSelfScope",(function(){return n}))},
2"./src/utils/logger.js":function(t,e,r){"use strict";r.r(e),r.d(e,"enableLogs",(function(){return m})),r.d(e,"logger",(function(){return v}));var n=r("./src/utils/get-self-scope.js");function o(){}var h={trace:o,debug:o,log:o,warn:o,info:o,error:o},f=h;function l(t,e){return e="["+t+"] > "+e}var c=Object(n.getSelfScope)();function d(t){var e=c.console[t];return e?function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];n[0]&&(n[0]=l(t,n[0])),e.apply(c.console,n)}:o}var m=function(t){if(c.console&&!0===t||"object"==typeof t){!function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];r.forEach((function(e){f[e]=t[e]?t[e].bind(t):d(e)}))}(t,"debug","log","info","warn","error");try{f.log()}catch(t){f=h}}else f=h},v=f}
vendor: 5,459 bytes, line 2
2}).default},t.exports=n())},,,,,,,,,,,,function(t,e,r){t.exports=o;var n=r(107).EventEmitter;function o(){n.call(this)}r(14)(o,n),o.Readable=r(170),o.Writable=r(511),o.Duplex=r(512),o.Transform=r(513),o.PassThrough=r(514),o.Stream=o,o.prototype.pipe=function(t,e){var source=this;function r(e){t.writable&&!1===t.write(e)&&source.pause&&source.pause()}function o(){source.readable&&source.resume&&source.resume()}source.on("data",r),t.on("drain",o),t._isStdio||e&&!1===e.end||(source.on("end",f),source.on("close",l));var h=!1;function f(){h||(h=!0,t.end())}function l(){h||(h=!0,"function"==typeof t.destroy&&t.destroy())}function c(t){if(d(),0===n.listenerCount(this,"error"))throw t}function d(){source.removeListener("data",r),t.removeListener("drain",o),source.removeListener("end",f),source.removeListener("close",l),source.removeListener("error",c),t.removeListener("error",c),source.removeListener("end",d),source.removeListener("close",d),t.removeListener("close",d)}return source.on("error",c),t.on("error",c),source.on("end",d),source.on("close",d),t.on("close",d),t.emit("pipe",source),t}},function(t,e,r){"use strict";(function(e){void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,r,n,o){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var h,i,f=arguments.length;switch(f){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,r)}));case 3:return e.nextTick((function(){t.call(null,r,n)}));case 4:return e.nextTick((function(){t.call(null,r,n,o)}));default:for(h=new Array(f-1),i=0;i<h.length;)h[i++]=arguments[i];return e.nextTick((function(){t.apply(null,h)}))}}}:t.exports=e}).call(this,r(38))},function(t,e,r){(function(t){var n=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},i=0;i<e.length;i++)r[e[i]]=Object.getOwnPropertyDescriptor(t,e[i]);return r},o=/%[sdj%]/g;e.format=function(t){if(!E(t)){for(var e=[],i=0;i<arguments.length;i++)e.push(l(arguments[i]));return e.join(" ")}i=1;for(var r=arguments,n=r.length,h=String(t).replace(o,(function(t){if("%%"===t)return"%";if(i>=n)return t;switch(t){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch(t){return"[Circular]"}default:return t}})),f=r[i];i<n;f=r[++i])_(f)||!A(f)?h+=" "+f:h+=" "+l(f);return h},e.deprecate=function(r,n){if(void 0!==t&&!0===t.noDeprecation)return r;if(void 0===t)return function(){return e.deprecate(r,n).apply(this,arguments)};var o=!1;return function(){if(!o){if(t.throwDeprecation)throw new Error(n);t.traceDeprecation?console.trace(n):console.error(n),o=!0}return r.apply(this,arguments)}};var h,f={};function l(t,r){var n={seen:[],stylize:d};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),M(r)?n.showHidden=r:r&&e._extend(n,r),k(n.showHidden)&&(n.showHidden=!1),k(n.depth)&&(n.depth=2),k(n.colors)&&(n.colors=!1),k(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),m(n,t,n.depth)}function c(t,e){var style=l.styles[e];return style?"�["+l.colors[style][0]+"m"+t+"�["+l.colors[style][1]+"m":t}function d(t,e){return t}function m(t,r,n){if(t.customInspect&&r&&O(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,t);return E(o)||(o=m(t,o,n)),o}var h=function(t,e){if(k(e))return t.stylize("undefined","undefined");if(E(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(S(e))return t.stylize(""+e,"number");if(M(e))return t.stylize(""+e,"boolean");if(_(e))return t.stylize("null","null")}(t,r);if(h)return h;var f=Object.keys(r),l=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(f);if(t.showHidden&&(f=Object.getOwnPropertyNames(r)),x(r)&&(f.indexOf("message")>=0||f.indexOf("description")>=0))return v(r);if(0===f.length){if(O(r)){var c=r.name?": "+r.name:"";return t.stylize("[Function"+c+"]","special")}if(T(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(R(r))return t.stylize(Date.prototype.toString.call(r),"date");if(x(r))return v(r)}var output,base="",d=!1,A=["{","}"];(w(r)&&(d=!0,A=["[","]"]),O(r))&&(base=" [Function"+(r.name?": "+r.name:"")+"]");return T(r)&&(base=" "+RegExp.prototype.toString.call(r)),R(r)&&(base=" "+Date.prototype.toUTCString.call(r)),x(r)&&(base=" "+v(r)),0!==f.length||d&&0!=r.length?n<0?T(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),output=d?function(t,e,r,n,o){for(var output=[],i=0,h=e.length;i<h;++i)P(e,String(i))?output.push(y(t,e,r,n,String(i),!0)):output.push("");return o.forEach((function(o){o.match(/^\d+$/)||output.push(y(t,e,r,n,o,!0))})),output}(t,r,n,l,f):f.map((function(e){return y(t,r,n,l,e,d)})),t.seen.pop(),function(output,base,t){if(output.reduce((function(t,e){return e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return t[0]+(""===base?"":base+"\n ")+" "+output.join(",\n  ")+" "+t[1];return t[0]+base+" "+output.join(", ")+" "+t[1]}(output,base,A)):A[0]+base+A[1]}function v(t){return"["+Error.prototype.toString.call(t)+"]"}function y(t,e,r,n,o,h){var f,l,desc;if((desc=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]}).get?l=desc.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):desc.set&&(l=t.stylize("[
2Setter]","special")),P(n,o)||(f="["+o+"]"),l||(t.seen.indexOf(desc.value)<0?(l=_(r)?m(t,desc.value,null):m(t,desc.value,r-1)).indexOf("\n")>-1&&(l=h?l.split("\n").map((function(line){return"  "+line})).join("\n").substr(2):"\n"+l.split("\n").map((function(line){return"   "+line})).join("\n")):l=t.stylize("[Circular]","special")),k(f)){if(h&&o.match(/^\d+$/))return l;(f=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(f=f.substr(1,f.length-2),f=t.stylize(f,"name")):(f=f.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),f=t.stylize(f,"string"))}return f+": "+l}function w(t){return Array.isArray(t)}function M(t){return"boolean"==typeof t}function _(t){return null===t}function S(t){return"number"==typeof t}function E(t){return"string"==typeof t}function k(t){return void 0===t}function T(t){return A(t)&&"[object RegExp]"===I(t)}function A(t){return"object"==typeof t&&null!==t}function R(t){return A(t)&&"[object Date]"===I(t)}function x(t){return A(t)&&("[object Error]"===I(t)||t instanceof Error)}function O(t){return"function"==typeof t}function I(t){return Object.prototype.toString.call(t)}function L(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(r){if(k(h)&&(h=t.env.NODE_DEBUG||""),r=r.toUpperCase(),!f[r])if(new RegExp("\\b"+r+"\\b","i").test(h)){var n=t.pid;f[r]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",r,n,t)}}else f[r]=function(){};return f[r]},e.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=w,e.isBoolean=M,e.isNull=_,e.isNullOrUndefined=function(t){return null==t},e.isNumber=S,e.isString=E,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=k,e.isRegExp=T,e.isObject=A,e.isDate=R,e.isError=x,e.isFunction=O,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(515);var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(){var t=new Date,time=[L(t.getHours()),L(t.getMinutes()),L(t.getSeconds())].join(":");return[t.getDate(),D[t.getMonth()],time].join(" ")}function P(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",C(),e.format.apply(e,arguments))},e.inherits=r(516),e._extend=function(t,e){if(!e||!A(e))return t;for(var r=Object.keys(e),i=r.length;i--;)t[r[i]]=e[r[i]];return t};var B="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function N(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(B&&t[B]){var e;if("function"!=typeof(e=t[B]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,B,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(t,n){t?r(t):e(n)}));try{t.apply(this,o)}catch(t){r(t)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),B&&Object.defineProperty(e,B,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,n(t))},e.promisify.custom=B,e.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function r(){for(var r=[],i=0;i<arguments.length;i++)r.push(arguments[i]);var n=r.pop();if("function"!=typeof n)throw new TypeError("The last argument must be of type Function");var o=this,h=function(){return n.apply(o,arguments)};e.apply(this,r).then((function(e){t.nextTick(h,null,e)}),(function(e){t.nextTick(N,e,h)}))}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,n(e)),r}}
vendor: 5,413 bytes, line 2
2).call(this,r(38))},function(t,e,r){var n=r(13).Buffer;function o(t){n.isBuffer(t)||(t=n.from(t));for(var e=t.length/4|0,r=new Array(e),i=0;i<e;i++)r[i]=t.readUInt32BE(4*i);return r}function h(t){for(;0<t.length;t++)t[0]=0}function f(t,e,r,n,o){for(var h,f,l,c,d=r[0],m=r[1],v=r[2],y=r[3],w=t[0]^e[0],M=t[1]^e[1],_=t[2]^e[2],S=t[3]^e[3],E=4,k=1;k<o;k++)h=d[w>>>24]^m[M>>>16&255]^v[_>>>8&255]^y[255&S]^e[E++],f=d[M>>>24]^m[_>>>16&255]^v[S>>>8&255]^y[255&w]^e[E++],l=d[_>>>24]^m[S>>>16&255]^v[w>>>8&255]^y[255&M]^e[E++],c=d[S>>>24]^m[w>>>16&255]^v[M>>>8&255]^y[255&_]^e[E++],w=h,M=f,_=l,S=c;return h=(n[w>>>24]<<24|n[M>>>16&255]<<16|n[_>>>8&255]<<8|n[255&S])^e[E++],f=(n[M>>>24]<<24|n[_>>>16&255]<<16|n[S>>>8&255]<<8|n[255&w])^e[E++],l=(n[_>>>24]<<24|n[S>>>16&255]<<16|n[w>>>8&255]<<8|n[255&M])^e[E++],c=(n[S>>>24]<<24|n[w>>>16&255]<<16|n[M>>>8&255]<<8|n[255&_])^e[E++],[h>>>=0,f>>>=0,l>>>=0,c>>>=0]}var l=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var r=[],n=[],o=[[],[],[],[]],h=[[],[],[],[]],f=0,l=0,i=0;i<256;++i){var c=l^l<<1^l<<2^l<<3^l<<4;c=c>>>8^255&c^99,r[f]=c,n[c]=f;var d=t[f],m=t[d],v=t[m],y=257*t[c]^16843008*c;o[0][f]=y<<24|y>>>8,o[1][f]=y<<16|y>>>16,o[2][f]=y<<8|y>>>24,o[3][f]=y,y=16843009*v^65537*m^257*d^16843008*f,h[0][c]=y<<24|y>>>8,h[1][c]=y<<16|y>>>16,h[2][c]=y<<8|y>>>24,h[3][c]=y,0===f?f=l=1:(f=d^t[t[t[v^d]]],l^=t[t[l]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:o,INV_SUB_MIX:h}}();function d(t){this._key=o(t),this._reset()}d.blockSize=16,d.keySize=32,d.prototype.blockSize=d.blockSize,d.prototype.keySize=d.keySize,d.prototype._reset=function(){for(var t=this._key,e=t.length,r=e+6,n=4*(r+1),o=[],h=0;h<e;h++)o[h]=t[h];for(h=e;h<n;h++){var f=o[h-1];h%e==0?(f=f<<8|f>>>24,f=c.SBOX[f>>>24]<<24|c.SBOX[f>>>16&255]<<16|c.SBOX[f>>>8&255]<<8|c.SBOX[255&f],f^=l[h/e|0]<<24):e>6&&h%e==4&&(f=c.SBOX[f>>>24]<<24|c.SBOX[f>>>16&255]<<16|c.SBOX[f>>>8&255]<<8|c.SBOX[255&f]),o[h]=o[h-e]^f}for(var d=[],m=0;m<n;m++){var v=n-m,y=o[v-(m%4?0:4)];d[m]=m<4||v<=4?y:c.INV_SUB_MIX[0][c.SBOX[y>>>24]]^c.INV_SUB_MIX[1][c.SBOX[y>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[y>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&y]]}this._nRounds=r,this._keySchedule=o,this._invKeySchedule=d},d.prototype.encryptBlockRaw=function(t){return f(t=o(t),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},d.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),r=n.allocUnsafe(16);return r.writeUInt32BE(e[0],0),r.writeUInt32BE(e[1],4),r.writeUInt32BE(e[2],8),r.writeUInt32BE(e[3],12),r},d.prototype.decryptBlock=function(t){var e=(t=o(t))[1];t[1]=t[3],t[3]=e;var r=f(t,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),h=n.allocUnsafe(16);return h.writeUInt32BE(r[0],0),h.writeUInt32BE(r[3],4),h.writeUInt32BE(r[2],8),h.writeUInt32BE(r[1],12),h},d.prototype.scrub=function(){h(this._keySchedule),h(this._invKeySchedule),h(this._key)},t.exports.AES=d},function(t,e,r){var n=r(13).Buffer,o=r(173);t.exports=function(t,e,r,h){if(n.isBuffer(t)||(t=n.from(t,"binary")),e&&(n.isBuffer(e)||(e=n.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var f=r/8,l=n.alloc(f),c=n.alloc(h||0),d=n.alloc(0);f>0||h>0;){var m=new o;m.update(d),m.update(t),e&&m.update(e),d=m.digest();var v=0;if(f>0){var y=l.length-f;v=Math.min(f,d.length),d.copy(l,y,0,v),f-=v}if(v<d.length&&h>0){var w=c.length-h,M=Math.min(h,d.length-v);d.copy(c,w,v,v+M),h-=M}}return d.fill(0),{key:l,iv:c}}},function(t,e,r){"use strict";var n=r(54),o=r(45),h=o.getNAF,f=o.getJSF,l=o.assert;function c(t,e){this.type=t,this.p=new n(e.p,16),this.red=e.prime?n.red(e.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=e.n&&new n(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function d(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(p,t){l(p.precomputed);var e=p._getDoubles(),r=h(t,1,this._bitLength),n=(1<<e.step+1)-(e.step%2==0?2:1);n/=3;for(var o=[],f=0;f<r.length;f+=e.step){var c=0;for(t=f+e.step-1;t>=f;t--)c=(c<<1)+r[t];o.push(c)}for(var a=this.jpoint(null,null,null),b=this.jpoint(null,null,null),i=n;i>0;i--){for(f=0;f<o.length;f++){(c=o[f])===i?b=b.mixedAdd(e.points[f]):c===-i&&(b=b.mixedAdd(e.points[f].neg()))}a=a.add(b)}return a.toP()},c.prototype._wnafMul=function(p,t){var e=4,r=p._getNAFPoints(e);e=r.wnd;for(var n=r.points,o=h(t,e,this._bitLength),f=this.jpoint(null,null,null),i=o.length-1;i>=0;i--){for(t=0;i>=0&&0===o[i];i--)t++;if(i>=0&&t++,f=f.dblp(t),i<0)break;var c=o[i];l(0!==c),f="affine"===p.type?c>0?f.mixedAdd(n[c-1>>1]):f.mixedAdd(n[-c-1>>1].neg()):c>0?f.add(n[c-1>>1]):f.add(n[-c-1>>1].neg())}return"affine"===p.type?f.toP():f},c.prototype._wnafMulAdd=function(t,e,r,n,o){for(var l=this._wnafT1,c=this._wnafT2,d=this._wnafT3,m=0,i=0;i<n;i++){var v=(p=e[i])._getNAFPoints(t);l[i]=v.wnd,c[i]=v.points}for(i=n-1;i>=1;i-=2){var a=i-1,b=i;if(1===l[a]&&1===l[b]){var y=[e[a],null,null,e[b]];
20===e[a].y.cmp(e[b].y)?(y[1]=e[a].add(e[b]),y[2]=e[a].toJ().mixedAdd(e[b].neg())):0===e[a].y.cmp(e[b].y.redNeg())?(y[1]=e[a].toJ().mixedAdd(e[b]),y[2]=e[a].add(e[b].neg())):(y[1]=e[a].toJ().mixedAdd(e[b]),y[2]=e[a].toJ().mixedAdd(e[b].neg()));var w=[-3,-1,-5,-7,0,7,5,1,3],M=f(r[a],r[b]);m=Math.max(M[0].length,m),d[a]=new Array(m),d[b]=new Array(m);for(var _=0;_<m;_++){var S=0|M[0][_],E=0|M[1][_];d[a][_]=w[3*(S+1)+(E+1)],d[b][_]=0,c[a]=y}}else d[a]=h(r[a],l[a],this._bitLength),d[b]=h(r[b],l[b],this._bitLength),m=Math.max(d[a].length,m),m=Math.max(d[b].length,m)}var k=this.jpoint(null,null,null),T=this._wnafT4;for(i=m;i>=0;i--){for(var A=0;i>=0;){var R=!0;for(_=0;_<n;_++)T[_]=0|d[_][i],0!==T[_]&&(R=!1);if(!R)break;A++,i--}if(i>=0&&A++,k=k.dblp(A),i<0)break;for(_=0;_<n;_++){var p,x=T[_];0!==x&&(x>0?p=c[_][x-1>>1]:x<0&&(p=c[_][-x-1>>1].neg()),k="affine"===p.type?k.mixedAdd(p):k.add(p))}}for(i=0;i<n;i++)c[i]=null;return o?k:k.toP()},c.BasePoint=d,d.prototype.eq=function(){throw new Error("Not implemented")},d.prototype.validate=function(){return this.curve.validate(this)},c.prototype.decodePoint=function(t,e){t=o.toArray(t,e);var r=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*r)return 6===t[0]?l(t[t.length-1]%2==0):7===t[0]&&l(t[t.length-1]%2==1),this.point(t.slice(1,1+r),t.slice(1+r,1+2*r));if((2===t[0]||3===t[0])&&t.length-1===r)return this.pointFromX(t.slice(1,1+r),3===t[0]);throw new Error("Unknown point format")},d.prototype.encodeCompressed=function(t){return this.encode(t,!0)},d.prototype._encode=function(t){var e=this.curve.p.byteLength(),r=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",e))},d.prototype.encode=function(t,e){return o.encode(this._encode(e),t)},d.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},d.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},d.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<e;i+=t){for(var o=0;o<t;o++)n=n.dbl();r.push(n)}return{step:t,points:r}},d.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],r=(1<<t)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)e[i]=e[i-1].add(n);return{wnd:t,points:e}},d.prototype._getBeta=function(){return null},d.prototype.dblp=function(t){for(var e=this,i=0;i<t;i++)e=e.dbl();return e}},function(t,e,r){var n=r(577),o=r(585),h=r(586),f=r(178),l=r(295),c=r(13).Buffer;function d(t){var e;"object"!=typeof t||c.isBuffer(t)||(e=t.passphrase,t=t.key),"string"==typeof t&&(t=c.from(t));var r,d,m=h(t,e),v=m.tag,data=m.data;switch(v){case"CERTIFICATE":d=n.certificate.decode(data,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(d||(d=n.PublicKey.decode(data,"der")),r=d.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(d.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return d.subjectPrivateKey=d.subjectPublicKey,{type:"ec",data:d};case"1.2.840.10040.4.1":return d.algorithm.params.pub_key=n.DSAparam.decode(d.subjectPublicKey.data,"der"),{type:"dsa",data:d.algorithm.params};default:throw new Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":data=function(data,t){var e=data.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(data.algorithm.decrypt.kde.kdeparams.iters.toString(),10),n=o[data.algorithm.decrypt.cipher.algo.join(".")],h=data.algorithm.decrypt.cipher.iv,d=data.subjectPrivateKey,m=parseInt(n.split("-")[1],10)/8,v=l.pbkdf2Sync(t,e,r,m,"sha1"),y=f.createDecipheriv(n,v,h),w=[];return w.push(y.update(d)),w.push(y.final()),c.concat(w)}(data=n.EncryptedPrivateKey.decode(data,"der"),e);case"PRIVATE KEY":switch(r=(d=n.PrivateKey.decode(data,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(d.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:d.algorithm.curve,privateKey:n.ECPrivateKey.decode(d.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return d.algorithm.params.priv_key=n.DSAparam.decode(d.subjectPrivateKey,"der"),{type:"dsa",params:d.algorithm.params};default:throw new Error("unknown key id "+r)}case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(data,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(data,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(data,"der")};case"EC PRIVATE KEY":return{curve:(data=n.ECPrivateKey.decode(data,"der")).parameters.value,privateKey:data.privateKey};default:throw new Error("unknown key type "+v)}}t.exports=d,d.signature=n.signature},function(t,e){var r=function(t,e){Error.call(this,t),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="JsonWebTokenError",this.message=t,e&&(this.inner=e)};(r.prototype=Object.create(Error.prototype)).constructor=r,t.exports=r},,,,,function(t,e,r){"use strict";r.d(e,"a",(function(){return f}));var n=r(2),o=r(6),h=r(7),f=(r(15),r(20),r(22),function(){function t(e,r){Object(o.a)(this,t),this.$auth=e,this.name=r._name,this.options=Object.assign({},l,r)}var e,r,f,c,d;return Object(h.a)(t,[{key:"_setToken",value:function(t){this.options.globalToken&&this.$auth.ctx.app.$axios.setHeader(this.options.tokenName,t)}},{key:"_clearToken",value:function(){this.options.globalToken&&this.$auth.ctx.app.$axios.setHeader(this.options.tokenName,!1)}},{key:"mounted",value:function(){if(this.options.tokenRequired){var t=this.$auth.syncToken(this.name);this._setToken(t)}return this.$auth.fetchUserOnce()}},{key:"login",value:(d=Object(n.a)(regeneratorRuntime.mark((function t(e){var r,n,o,h;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.options.endpoints.login){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,this.$auth.reset();case 4:return t.next=6,this.$auth.request(e,this.options.endpoints.login,!0);case 6:if(r=t.sent,n=r.response,o=r.result,this.options.tokenRequired&&(h=this.options.tokenType?this.options.tokenType+" "+o:o,this.$auth.setToken(this.name,h),this._setToken(h)),!this.options.autoFetchUser){t.next=13;break}return t.next=13,this.fetchUser();case 13:return t.abrupt("return",n);case 14:case"end":return t.stop()}}),t,this)}))),function(t){return d.apply(this,arguments)})},{key:"setUserToken",value:(c=Object(n.a)(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.options.tokenType?this.options.tokenType+" "+e:e,this.$auth.setToken(this.name,r),this._setToken(r),t.abrupt("return",this.fetchUser());case 4:case"end":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"fetchUser",value:(f=Object(n.a)(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.options.tokenRequired||this.$auth.getToken(this.name)){t.next=2;break}return t.abrupt("return");case 2:if(this.options.endpoints.user){t.next=5;break}return this.$auth.setUser({}),t.abrupt("return");case 5:return t.next=7,this.$auth.requestWith(this.name,e,this.options.endpoints.user);case 7:r=t.sent,this.$auth.setUser(r);case 9:case"end":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"logout",value:(r=Object(n.a)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.options.endpoints.logout){t.next=3;break}return t.next=3,this.$auth.requestWith(this.name,e,this.options.endpoints.logout).catch((function(){}));case 3:return t.abrupt("return",this.$auth.reset());case 4:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"reset",value:(e=Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.options.tokenRequired&&this._clearToken(),this.$auth.setUser(!1),this.$auth.setToken(this.name,!1),this.$auth.setRefreshToken(this.name,!1),t.abrupt("return",Promise.resolve());case 5:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})}]),t}()),l={tokenRequired:!0,tokenType:"Bearer",globalToken:!0,tokenName:"Authorization",autoFetchUser:!0}},,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){var n=r(504),o=r(598);e.ALGORITHMS=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"],e.sign=n.sign,e.verify=o.verify,e.decode=o.decode,e.isValid=o.isValid,e.createSign=function(t){return new n(t)},e.createVerify=function(t){return new o(t)}},function(t,e,r){(e=t.exports=r(276)).Stream=e,e.Readable=e,e.Writable=r(172),e.Duplex=r(78),e.Transform=r(280),e.PassThrough=r(510)},function(t,e,r){var n=r(33),o=n.Buffer;function h(t,e){for(var r in t)e[r]=t[r]}function f(t,e,r){return o(t,e,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=n:(h(n,e),e.Buffer=f),h(o,f),f.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,r)},f.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=o(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},f.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},f.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},function(t,e,r){"use strict";(function(e){var n=r(132);function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var o=n.callback;e.pendingcb--,o(r),n=n.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}t.exports=S;var h,f=n.nextTick;S.WritableState=_;var l=Object.create(r(108));l.inherits=r(14);var c={deprecate:r(279)},d=r(277),m=r(171).Buffer,v=e.Uint8Array||function(){};var y,w=r(278);function M(){}function _(t,e){h=h||r(78),t=t||{};var l=e instanceof h;this.objectMode=!!t.objectMode,l&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var c=t.highWaterMark,d=t.writableHighWaterMark,m=this.objectMode?16:16384;this.highWaterMark=c||0===c?c:l&&(d||0===d)?d:m,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var v=!1===t.decodeStrings;this.decodeStrings=!v,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,o=r.sync,h=r.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,o,h){--e.pendingcb,r?(n.nextTick(h,o),n.nextTick(x,t,e),t._writableState.errorEmitted=!0,t.emit("error",o)):(h(o),t._writableState.errorEmitted=!0,t.emit("error",o),x(t,e))}(t,r,o,e,h);else{var l=A(r);l||r.corked||r.bufferProcessing||!r.bufferedRequest||T(t,r),o?f(k,t,r,l,h):k(t,r,l,h)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}
vendor: 12,522 bytes, line 2
2function S(t){if(h=h||r(78),!(y.call(S,this)||this instanceof h))return new S(t);this._writableState=new _(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),d.call(this)}function E(t,e,r,n,o,h,f){e.writelen=n,e.writecb=f,e.writing=!0,e.sync=!0,r?t._writev(o,e.onwrite):t._write(o,h,e.onwrite),e.sync=!1}function k(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),x(t,e)}function T(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,h=new Array(n),f=e.corkedRequestsFree;f.entry=r;for(var l=0,c=!0;r;)h[l]=r,r.isBuf||(c=!1),r=r.next,l+=1;h.allBuffers=c,E(t,e,!0,e.length,h,"",f.finish),e.pendingcb++,e.lastBufferedRequest=null,f.next?(e.corkedRequestsFree=f.next,f.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;r;){var d=r.chunk,m=r.encoding,v=r.callback;if(E(t,e,!1,e.objectMode?1:d.length,d,m,v),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function A(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function R(t,e){t._final((function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),x(t,e)}))}function x(t,e){var r=A(e);return r&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,n.nextTick(R,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),r}l.inherits(S,d),_.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(_.prototype,"buffer",{get:c.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(y=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(object){return!!y.call(this,object)||this===S&&(object&&object._writableState instanceof _)}})):y=function(object){return object instanceof this},S.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},S.prototype.write=function(t,e,r){var o,h=this._writableState,f=!1,l=!h.objectMode&&(o=t,m.isBuffer(o)||o instanceof v);return l&&!m.isBuffer(t)&&(t=function(t){return m.from(t)}(t)),"function"==typeof e&&(r=e,e=null),l?e="buffer":e||(e=h.defaultEncoding),"function"!=typeof r&&(r=M),h.ended?function(t,e){var r=new Error("write after end");t.emit("error",r),n.nextTick(e,r)}(this,r):(l||function(t,e,r,o){var h=!0,f=!1;return null===r?f=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||e.objectMode||(f=new TypeError("Invalid non-string/buffer chunk")),f&&(t.emit("error",f),n.nextTick(o,f),h=!1),h}(this,h,t,r))&&(h.pendingcb++,f=function(t,e,r,n,o,h){if(!r){var f=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=m.from(e,r));return e}(e,n,o);n!==f&&(r=!0,o="buffer",n=f)}var l=e.objectMode?1:n.length;e.length+=l;var c=e.length<e.highWaterMark;c||(e.needDrain=!0);if(e.writing||e.corked){var d=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:h,next:null},d?d.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else E(t,e,!1,l,n,o,h);return c}(this,h,l,t,e,r)),f},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||T(this,t))},S.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))},S.prototype._writev=null,S.prototype.end=function(t,e,r){var o=this._writableState;"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),o.corked&&(o.corked=1,this.uncork()),o.ending||o.finished||function(t,e,r){e.ending=!0,x(t,e),r&&(e.finished?n.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,o,r)},Object.defineProperty(S.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),S.prototype.destroy=w.destroy,S.prototype._undestroy=w.undestroy,S.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,r(35))},function(t,e,r){"use strict";var n=r(14),o=r(282),h=r(13).Buffer,f=new Array(16);function l(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function c(t,e){return t<<e|t>>>32-e}function d(a,b,t,e,r,n,s){return c(a+(b&t|~b&e)+r+n|0,s)+b|0}function m(a,b,t,e,r,n,s){return c(a+(b&e|t&~e)+r+n|0,s)+b|0}function v(a,b,t,e,r,n,s){return c(a+(b^t^e)+r+n|0,s)+b|0}function y(a,b,t,e,r,n,s){return c(a+(t^(b|~e))+r+n|0,s)+b|0}n(l,o),l.prototype._update=function(){for(var t=f,i=0;i<16;++i)t[i]=this._block.readInt32LE(4*i);var a=this._a,b=this._b,e=this._c,r=this._d;a=d(a,b,e,r,t[0],3614090360,7),r=d(r,a,b,e,t[1],3905402710,12),e=d(e,r,a,b,t[2],606105819,17),b=d(b,e,r,a,t[3],3250441966,22),a=d(a,b,e,r,t[4],4118548399,7),r=d(r,a,b,e,t[5],1200080426,12),e=d(e,r,a,b,t[6],2821735955,17),b=d(b,e,r,a,t[7],4249261313,22),a=d(a,b,e,r,t[8],1770035416,7),r=d(r,a,b,e,t[9],2336552879,12),e=d(e,r,a,b,t[10],4294925233,17),b=d(b,e,r,a,t[11],2304563134,22),a=d(a,b,e,r,t[12],1804603682,7),r=d(r,a,b,e,t[13],4254626195,12),e=d(e,r,a,b,t[14],2792965006,17),a=m(a,b=d(b,e,r,a,t[15],1236535329,22),e,r,t[1],4129170786,5),r=m(r,a,b,e,t[6],3225465664,9),e=m(e,r,a,b,t[11],643717713,14),b=m(b,e,r,a,t[0],3921069994,20),a=m(a,b,e,r,t[5],3593408605,5),r=m(r,a,b,e,t[10],38016083,9),e=m(e,r,a,b,t[15],3634488961,14),b=m(b,e,r,a,t[4],3889429448,20),a=m(a,b,e,r,t[9],568446438,5),r=m(r,a,b,e,t[14],3275163606,9),e=m(e,r,a,b,t[3],4107603335,14),b=m(b,e,r,a,t[8],1163531501,20),a=m(a,b,e,r,t[13],2850285829,5),r=m(r,a,b,e,t[2],4243563512,9),e=m(e,r,a,b,t[7],1735328473,14),a=v(a,b=m(b,e,r,a,t[12],2368359562,20),e,r,t[5],4294588738,4),r=v(r,a,b,e,t[8],2272392833,11),e=v(e,r,a,b,t[11],1839030562,16),b=v(b,e,r,a,t[14],4259657740,23),a=v(a,b,e,r,t[1],2763975236,4),r=v(r,a,b,e,t[4],1272893353,11),e=v(e,r,a,b,t[7],4139469664,16),b=v(b,e,r,a,t[10],3200236656,23),a=v(a,b,e,r,t[13],681279174,4),r=v(r,a,b,e,t[0],3936430074,11),e=v(e,r,a,b,t[3],3572445317,16),b=v(b,e,r,a,t[6],76029189,23),a=v(a,b,e,r,t[9],3654602809,4),r=v(r,a,b,e,t[12],3873151461,11),e=v(e,r,a,b,t[15],530742520,16),a=y(a,b=v(b,e,r,a,t[2],3299628645,23),e,r,t[0],4096336452,6),r=y(r,a,b,e,t[7],1126891415,10),e=y(e,r,a,b,t[14],2878612391,15),b=y(b,e,r,a,t[5],4237533241,21),a=y(a,b,e,r,t[12],1700485571,6),r=y(r,a,b,e,t[3],2399980690,10),e=y(e,r,a,b,t[10],4293915773,15),b=y(b,e,r,a,t[1],2240044497,21),a=y(a,b,e,r,t[8],1873313359,6),r=y(r,a,b,e,t[15],4264355552,10),e=y(e,r,a,b,t[6],2734768916,15),b=y(b,e,r,a,t[13],1309151649,21),a=y(a,b,e,r,t[4],4149444226,6),r=y(r,a,b,e,t[11],3174756917,10),e=y(e,r,a,b,t[2],718787259,15),b=y(b,e,r,a,t[9],3951481745,21),this._a=this._a+a|0,this._b=this._b+b|0,this._c=this._c+e|0,this._d=this._d+r|0},l.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=h.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=l},function(t,e,r){"use strict";var n=r(87).codes.ERR_STREAM_PREMATURE_CLOSE;function o(){}t.exports=function t(e,r,h){if("function"==typeof r)return t(e,null,r);r||(r={}),h=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];t.apply(this,n)}}}(h||o);var f=r.readable||!1!==r.readable&&e.readable,l=r.writable||!1!==r.writable&&e.writable,c=function(){e.writable||m()},d=e._writableState&&e._writableState.finished,m=function(){l=!1,d=!0,f||h.call(e)},v=e._readableState&&e._readableState.endEmitted,y=function(){f=!1,v=!0,l||h.call(e)},w=function(t){h.call(e,t)},M=function(){var t;return f&&!v?(e._readableState&&e._readableState.ended||(t=new n),h.call(e,t)):l&&!d?(e._writableState&&e._writableState.ended||(t=new n),h.call(e,t)):void 0},_=function(){e.req.on("finish",m)};return!function(t){return t.setHeader&&"function"==typeof t.abort}(e)?l&&!e._writableState&&(e.on("end",c),e.on("close",c)):(e.on("complete",m),e.on("abort",M),e.req?_():e.on("request",_)),e.on("end",y),e.on("finish",m),!1!==r.error&&e.on("error",w),e.on("close",M),function(){e.removeListener("complete",m),e.removeListener("abort",M),e.removeListener("request",_),e.req&&e.req.removeListener("finish",m),e.removeListener("end",c),e.removeListener("close",c),e.removeListener("finish",m),e.removeListener("end",y),e.removeListener("error",w),e.removeListener("close",M)}}},function(t,e,r){"use strict";var n=r(33).Buffer,o=r(14),h=r(282),f=new Array(16),l=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],c=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],d=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],m=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],v=[0,1518500249,1859775393,2400959708,2840853838],hr=[1352829926,1548603684,1836072691,2053994217,0];function y(){h.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function w(t,e){return t<<e|t>>>32-e}function M(a,b,t,e,r,n,o,s){return w(a+(b^t^e)+n+o|0,s)+r|0}function _(a,b,t,e,r,n,o,s){return w(a+(b&t|~b&e)+n+o|0,s)+r|0}function S(a,b,t,e,r,n,o,s){return w(a+((b|~t)^e)+n+o|0,s)+r|0}function E(a,b,t,e,r,n,o,s){return w(a+(b&e|t&~e)+n+o|0,s)+r|0}function k(a,b,t,e,r,n,o,s){return w(a+(b^(t|~e))+n+o|0,s)+r|0}o(y,h),y.prototype._update=function(){for(var t=f,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var r=0|this._a,n=0|this._b,o=0|this._c,dl=0|this._d,h=0|this._e,y=0|this._a,br=0|this._b,T=0|this._c,A=0|this._d,R=0|this._e,i=0;i<80;i+=1){var x,tr;i<16?(x=M(r,n,o,dl,h,t[l[i]],v[0],d[i]),tr=k(y,br,T,A,R,t[c[i]],hr[0],m[i])):i<32?(x=_(r,n,o,dl,h,t[l[i]],v[1],d[i]),tr=E(y,br,T,A,R,t[c[i]],hr[1],m[i])):i<48?(x=S(r,n,o,dl,h,t[l[i]],v[2],d[i]),tr=S(y,br,T,A,R,t[c[i]],hr[2],m[i])):i<64?(x=E(r,n,o,dl,h,t[l[i]],v[3],d[i]),tr=_(y,br,T,A,R,t[c[i]],hr[3],m[i])):(x=k(r,n,o,dl,h,t[l[i]],v[4],d[i]),tr=M(y,br,T,A,R,t[c[i]],hr[4],m[i])),r=h,h=dl,dl=w(o,10),o=n,n=x,y=R,R=A,A=w(T,10),T=br,br=tr}var O=this._b+o+A|0;this._b=this._c+dl+R|0,this._c=this._d+h+y|0,this._d=this._e+r+br|0,this._e=this._a+n+T|0,this._a=O},y.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=n.alloc?n.alloc(20):new n(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t}
vendor: 9,172 bytes, line 2
2,t.exports=y},function(t,e,r){(e=t.exports=function(t){t=t.toLowerCase();var r=e[t];if(!r)throw new Error(t+" is not supported (we accept pull requests)");return new r}).sha=r(526),e.sha1=r(527),e.sha224=r(528),e.sha256=r(290),e.sha384=r(529),e.sha512=r(291)},function(t,e,r){"use strict";var n=r(44);function o(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}t.exports=o,o.prototype._init=function(){},o.prototype.update=function(data){return 0===data.length?[]:"decrypt"===this.type?this._updateDecrypt(data):this._updateEncrypt(data)},o.prototype._buffer=function(data,t){for(var e=Math.min(this.buffer.length-this.bufferOff,data.length-t),i=0;i<e;i++)this.buffer[this.bufferOff+i]=data[t+i];return this.bufferOff+=e,e},o.prototype._flushBuffer=function(t,e){return this._update(this.buffer,0,t,e),this.bufferOff=0,this.blockSize},o.prototype._updateEncrypt=function(data){var t=0,e=0,r=(this.bufferOff+data.length)/this.blockSize|0,n=new Array(r*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(data,t),this.bufferOff===this.buffer.length&&(e+=this._flushBuffer(n,e)));for(var o=data.length-(data.length-t)%this.blockSize;t<o;t+=this.blockSize)this._update(data,t,n,e),e+=this.blockSize;for(;t<data.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=data[t];return n},o.prototype._updateDecrypt=function(data){for(var t=0,e=0,r=Math.ceil((this.bufferOff+data.length)/this.blockSize)-1,n=new Array(r*this.blockSize);r>0;r--)t+=this._buffer(data,t),e+=this._flushBuffer(n,e);return t+=this._buffer(data,t),n},o.prototype.final=function(t){var e,r;return t&&(e=this.update(t)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(r):r},o.prototype._pad=function(t,e){if(0===e)return!1;for(;e<t.length;)t[e++]=0;return!0},o.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=new Array(this.blockSize);return this._update(this.buffer,0,t,0),t},o.prototype._unpad=function(t){return t},o.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=new Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)}},function(t,e,r){var n=r(538),o=r(546),h=r(304);e.createCipher=e.Cipher=n.createCipher,e.createCipheriv=e.Cipheriv=n.createCipheriv,e.createDecipher=e.Decipher=o.createDecipher,e.createDecipheriv=e.Decipheriv=o.createDecipheriv,e.listCiphers=e.getCiphers=function(){return Object.keys(h)}},function(t,e,r){var n={ECB:r(539),CBC:r(540),CFB:r(541),CFB8:r(542),CFB1:r(543),OFB:r(544),CTR:r(302),GCM:r(302)},o=r(304);for(var h in o)o[h].module=n[o[h].mode];t.exports=o},function(t,e,r){var n;function o(t){this.rand=t}if(t.exports=function(t){return n||(n=new o(null)),n.generate(t)},t.exports.Rand=o,o.prototype.generate=function(t){return this._rand(t)},o.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),i=0;i<e.length;i++)e[i]=this.rand.getByte();return e},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?o.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?o.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"==typeof window&&(o.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var h=r(552);if("function"!=typeof h.randomBytes)throw new Error("Not supported");o.prototype._rand=function(t){return h.randomBytes(t)}}catch(t){}},function(t,e,r){(function(e){var n=r(182),o=r(86);function h(t){var e,r=t.modulus.byteLength();do{e=new n(o(r))}while(e.cmp(t.modulus)>=0||!e.umod(t.prime1)||!e.umod(t.prime2));return e}function f(t,r){var o=function(t){var e=h(t);return{blinder:e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed(),unblinder:e.invm(t.modulus)}}(r),f=r.modulus.byteLength(),l=new n(t).mul(o.blinder).umod(r.modulus),c=l.toRed(n.mont(r.prime1)),d=l.toRed(n.mont(r.prime2)),m=r.coefficient,p=r.prime1,q=r.prime2,v=c.redPow(r.exponent1).fromRed(),y=d.redPow(r.exponent2).fromRed(),w=v.isub(y).imul(m).umod(p).imul(q);return y.iadd(w).imul(o.unblinder).umod(r.modulus).toArrayLike(e,"be",f)}f.getr=h,t.exports=f}).call(this,r(33).Buffer)},function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function h(t,base,e){if(h.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==base&&"be"!==base||(e=base,base=10),this._init(t||0,base||10,e||"be"))}var f;"object"==typeof t?t.exports=h:e.BN=h,h.BN=h,h.wordSize=26;try{f=r(557).Buffer}catch(t){}function l(t,e,r){for(var o=0,h=Math.min(t.length,r),f=0,i=e;i<h;i++){var b,l=t.charCodeAt(i)-48;o<<=4,o|=b=l>=49&&l<=54?l-49+10:l>=17&&l<=22?l-17+10:l,f|=b}return n(!(240&f),"Invalid character in "+t),o}function c(t,e,r,o){for(var h=0,b=0,f=Math.min(t.length,r),i=e;i<f;i++){var l=t.charCodeAt(i)-48;h*=o,b=l>=49?l-49+10:l>=17?l-17+10:l,n(l>=0&&b<o,"Invalid character"),h+=b}return h}function d(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(h.isBN=function(t){return t instanceof h||null!==t&&"object"==typeof t&&t.constructor.wordSize===h.wordSize&&Array.isArray(t.words)},h.max=function(t,e){return t.cmp(e)>0?t:e},h.min=function(t,e){return t.cmp(e)<0?t:e},h.prototype._init=function(t,base,e){if("number"==typeof t)return this._initNumber(t,base,e);if("object"==typeof t)return this._initArray(t,base,e);"hex"===base&&(base=16),n(base===(0|base)&&base>=2&&base<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&r++,16===base?this._parseHex(t,r):this._parseBase(t,base,r),"-"===t[0]&&(this.negative=1),this._strip(),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initNumber=function(t,base,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(),base,e)},h.prototype._initArray=function(t,base,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 r,o,h=0;if("be"===e)for(i=t.length-1,r=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[r]|=o<<h&67108863,this.words[r+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,r++);else if("le"===e)for(i=0,r=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[r]|=o<<h&67108863,this.words[r+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,r++);return this._strip()},h.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n,o=0;for(i=t.length-6,r=0;i>=e;i-=6)n=l(t,i,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==e&&(n=l(t,e,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303),this._strip()},h.prototype._parseBase=function(t,base,e){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=base)r++;r--,n=n/base|0;for(var o=t.length-e,h=o%r,f=Math.min(o,o-h)+e,l=0,i=e;i<f;i+=r)l=c(t,i,i+r,base),this.imuln(n),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==h){var d=1;for(l=c(t,i,t.length,base),i=0;i<h;i++)d*=base;this.imuln(d),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},h.prototype.copy=function(t){t.words=new Array(this.length);for(var i=0;i<this.length;i++)t.words[i]=this.words[i];t.length=this.length,t.negative=this.negative,t.red=this.red},h.prototype._move=function(t){d(t,this)},h.prototype.clone=function(){var t=new h(null);return this.copy(t),t},h.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},h.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{h.prototype[Symbol.for("nodejs.util.inspect.custom")]=m}catch(t){h.prototype.inspect=m}else h.prototype.inspect=m;function m(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var v=["","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"],y=[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],w=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 34,989 bytes, line 2
2777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];h.prototype.toString=function(base,t){var e;if(t=0|t||1,16===(base=base||10)||"hex"===base){e="";for(var r=0,o=0,i=0;i<this.length;i++){var h=this.words[i],f=(16777215&(h<<r|o)).toString(16);e=0!==(o=h>>>24-r&16777215)||i!==this.length-1?v[6-f.length]+f+e:f+e,(r+=2)>=26&&(r-=26,i--)}for(0!==o&&(e=o.toString(16)+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(base===(0|base)&&base>=2&&base<=36){var l=y[base],c=w[base];e="";var d=this.clone();for(d.negative=0;!d.isZero();){var m=d.modrn(c).toString(base);e=(d=d.idivn(c)).isZero()?m+e:v[l-m.length]+m+e}for(this.isZero()&&(e="0"+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}n(!1,"Base should be between 2 and 36")},h.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},h.prototype.toJSON=function(){return this.toString(16,2)},f&&(h.prototype.toBuffer=function(t,e){return this.toArrayLike(f,t,e)}),h.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function M(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var a=0|t.words[0],b=0|e.words[0],o=a*b,h=67108863&o,f=o/67108864|0;r.words[0]=h;for(var l=1;l<n;l++){for(var c=f>>>26,d=67108863&f,m=Math.min(l,e.length-1),v=Math.max(0,l-t.length+1);v<=m;v++){var i=l-v|0;c+=(o=(a=0|t.words[i])*(b=0|e.words[v])+d)/67108864|0,d=67108863&o}r.words[l]=0|d,f=0|c}return 0!==f?r.words[l]=0|f:r.length--,r._strip()}h.prototype.toArrayLike=function(t,e,r){this._strip();var o=this.byteLength(),h=r||Math.max(1,o);n(o<=h,"byte array longer than desired length"),n(h>0,"Requested array length <= 0");var f=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,h);return this["_toArrayLike"+("le"===e?"LE":"BE")](f,o),f},h.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var h=this.words[i]<<o|n;t[r++]=255&h,r<t.length&&(t[r++]=h>>8&255),r<t.length&&(t[r++]=h>>16&255),6===o?(r<t.length&&(t[r++]=h>>24&255),n=0,o=0):(n=h>>>24,o+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},h.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,o=0;i<this.length;i++){var h=this.words[i]<<o|n;t[r--]=255&h,r>=0&&(t[r--]=h>>8&255),r>=0&&(t[r--]=h>>16&255),6===o?(r>=0&&(t[r--]=h>>24&255),n=0,o=0):(n=h>>>24,o+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?h.prototype._countBits=function(t){return 32-Math.clz32(t)}:h.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},h.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},h.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;i<this.length;i++){var b=this._zeroBits(this.words[i]);if(t+=b,26!==b)break}return t},h.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},h.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},h.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},h.prototype.isNeg=function(){return 0!==this.negative},h.prototype.neg=function(){return this.clone().ineg()},h.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},h.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]|t.words[i];return this._strip()},h.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},h.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},h.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},h.prototype.iuand=function(t){var b;b=this.length>t.length?t:this;for(var i=0;i<b.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=b.length,this._strip()},h.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},h.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},h.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},h.prototype.iuxor=function(t){var a,b;this.length>t.length?(a=this,b=t):(a=t,b=this);for(var i=0;i<b.length;i++)this.words[i]=a.words[i]^b.words[i];if(this!==a)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=a.length,this._strip()},h.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},h.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},h.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},h.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},h.prototype.notn=function(t){return this.clone().inotn(t)},h.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,o=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<o:this.words[r]&~(1<<o),this._strip()},h.prototype.iadd=function(t){var e,a,b;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(a=this,b=t):(a=t,b=this);for(var r=0,i=0;i<b.length;i++)e=(0|a.words[i])+(0|b.words[i])+r,this.words[i]=67108863&e,r=e>>>26;for(;0!==r&&i<a.length;i++)e=(0|a.words[i])+r,this.words[i]=67108863&e,r=e>>>26;if(this.length=a.length,0!==r)this.words[this.length]=r,this.length++;else if(a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this},h.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},h.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var a,b,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(a=this,b=t):(a=t,b=this);for(var n=0,i=0;i<b.length;i++)n=(e=(0|a.words[i])-(0|b.words[i])+n)>>26,this.words[i]=67108863&e;for(;0!==n&&i<a.length;i++)n=(e=(0|a.words[i])+n)>>26,this.words[i]=67108863&e;if(0===n&&i<a.length&&a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=Math.max(this.length,i),a!==this&&(this.negative=1),this._strip()},h.prototype.sub=function(t){return this.clone().isub(t)};var _=function(t,e,r){var n,o,h,a=t.words,b=e.words,f=r.words,l=0,c=0|a[0],d=8191&c,m=c>>>13,v=0|a[1],y=8191&v,w=v>>>13,M=0|a[2],_=8191&M,S=M>>>13,E=0|a[3],k=8191&E,T=E>>>13,A=0|a[4],R=8191&A,x=A>>>13,O=0|a[5],I=8191&O,L=O>>>13,D=0|a[6],C=8191&D,P=D>>>13,B=0|a[7],N=8191&B,j=B>>>13,F=0|a[8],U=8191&F,K=F>>>13,z=0|a[9],H=8191&z,G=z>>>13,V=0|b[0],W=8191&V,Y=V>>>13,Z=0|b[1],X=8191&Z,$=Z>>>13,J=0|b[2],Q=8191&J,tt=J>>>13,et=0|b[3],it=8191&et,nt=et>>>13,ot=0|b[4],at=8191&ot,st=ot>>>13,ut=0|b[5],ht=8191&ut,ft=ut>>>13,lt=0|b[6],ct=8191&lt,pt=lt>>>13,mt=0|b[7],gt=8191&mt,vt=mt>>>13,yt=0|b[8],bt=8191&yt,wt=yt>>>13,Mt=0|b[9],_t=8191&Mt,St=Mt>>>13;r.negative=t.negative^e.negative,r.length=19;var Et=(l+(n=Math.imul(d,W))|0)+((8191&(o=(o=Math.imul(d,Y))+Math.imul(m,W)|0))<<13)|0;l=((h=Math.imul(m,Y))+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(y,W),o=(o=Math.imul(y,Y))+Math.imul(w,W)|0,h=Math.imul(w,Y);var kt=(l+(n=n+Math.imul(d,X)|0)|0)+((8191&(o=(o=o+Math.imul(d,$)|0)+Math.imul(m,X)|0))<<13)|0;l=((h=h+Math.imul(m,$)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(_,W),o=(o=Math.imul(_,Y))+Math.imul(S,W)|0,h=Math.imul(S,Y),n=n+Math.imul(y,X)|0,o=(o=o+Math.imul(y,$)|0)+Math.imul(w,X)|0,h=h+Math.imul(w,$)|0;var Tt=(l+(n=n+Math.imul(d,Q)|0)|0)+((8191&(o=(o=o+Math.imul(d,tt)|0)+Math.imul(m,Q)|0))<<13)|0;l=((h=h+Math.imul(m,tt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(k,W),o=(o=Math.imul(k,Y))+Math.imul(T,W)|0,h=Math.imul(T,Y),n=n+Math.imul(_,X)|0,o=(o=o+Math.imul(_,$)|0)+Math.imul(S,X)|0,h=h+Math.imul(S,$)|0,n=n+Math.imul(y,Q)|0,o=(o=o+Math.imul(y,tt)|0)+Math.imul(w,Q)|0,h=h+Math.imul(w,tt)|0;var At=(l+(n=n+Math.imul(d,it)|0)|0)+((8191&(o=(o=o+Math.imul(d,nt)|0)+Math.imul(m,it)|0))<<13)|0;l=((h=h+Math.imul(m,nt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(R,W),o=(o=Math.imul(R,Y))+Math.imul(x,W)|0,h=Math.imul(x,Y),n=n+Math.imul(k,X)|0,o=(o=o+Math.imul(k,$)|0)+Math.imul(T,X)|0,h=h+Math.imul(T,$)|0,n=n+Math.imul(_,Q)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(S,Q)|0,h=h+Math.imul(S,tt)|0,n=n+Math.imul(y,it)|0,o=(o=o+Math.imul(y,nt)|0)+Math.imul(w,it)|0,h=h+Math.imul(w,nt)|0;var Rt=(l+(n=n+Math.imul(d,at)|0)|0)+((8191&(o=(o=o+Math.imul(d,st)|0)+Math.imul(m,at)|0))<<13)|0;l=((h=h+Math.imul(m,st)|0)+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(I,W),o=(o=Math.imul(I,Y))+Math.imul(L,W)|0,h=Math.imul(L,Y),n=n+Math.imul(R,X)|0,o=(o=o+Math.imul(R,$)|0)+Math.imul(x,X)|0,h=h+Math.imul(x,$)|0,n=n+Math.imul(k,Q)|0,o=(o=o+Math.imul(k,tt)|0)+Math.imul(T,Q)|0,h=h+Math.imul(T,tt)|0,n=n+Math.imul(_,it)|0,o=(o=o+Math.imul(_,nt)|0)+Math.imul(S,it)|0,h=h+Math.imul(S,nt)|0,n=n+Math.imul(y,at)|0,o=(o=o+Math.imul(y,st)|0)+Math.imul(w,at)|0,h=h+Math.imul(w,st)|0;var xt=(l+(n=n+Math.imul(d,ht)|0)|0)+((8191&(o=(o=o+Math.imul(d,ft)|0)+Math.imul(m,ht)|0))<<13)|0;l=((h=h+Math.imul(m,ft)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(C,W),o=(o=Math.imul(C,Y))+Math.imul(P,W)|0,h=Math.imul(P,Y),n=n+Math.imul(I,X)|0,o=(o=o+Math.imul(I,$)|0)+Math.imul(L,X)|0,h=h+Math.imul(L,$)|0,n=n+Math.imul(R,Q)|0,o=(o=o+Math.imul(R,tt)|0)+Math.imul(x,Q)|0,h=h+Math.imul(x,tt)|0,n=n+Math.imul(k,it)|0,o=(o=o+Math.imul(k,nt)|0)+Math.imul(T,it)|0,h=h+Math.imul(T,nt)|0,n=n+Math.imul(_,at)|0,o=(o=o+Math.imul(_,st)|0)+Math.imul(S,at)|0,h=h+Math.imul(S,st)|0,n=n+Math.imul(y,ht)|0,o=(o=o+Math.imul(y,ft)|0)+Math.imul(w,ht)|0,h=h+Math.imul(w,ft)|0;var Ot=(l+(n=n+Math.imul(d,ct)|0)|0)+((8191&(o=(o=o+Math.imul(d,pt)|0)+Math.imul(m,ct)|0))<<13)|0;l=((h=h+Math.imul(m,pt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(N,W),o=(o=Math.imul(N,Y))+Math.imul(j,W)|0,h=Math.imul(j,Y),n=n+Math.imul(C,X)|0,o=(o=o+Math.imul(C,$)|0)+Math.imul(P,X)|0,h=h+Math.imul(P,$)|0,n=n+Math.imul(I,Q)|0,o=(o=o+Math.imul(I,tt)|0)+Math.imul(L,Q)|0,h=h+Math.imul(L,tt)|0,n=n+Math.imul(R,it)|0,o=(o=o+Math.imul(R,nt)|0)+Math.imul(x,it)|0,h=h+Math.imul(x,nt)|0,n=n+Math.imul(k,at)|0,o=(o=o+Math.imul(k,st)|0)+Math.imul(T,at)|0,h=h+Math.imul(T,st)|0,n=n+Math.imul(_,ht)|0,o=(o=o+Math.imul(_,ft)|0)+Math.imul(S,ht)|0,h=h+Math.imul(S,ft)|0,n=n+Math.imul(y,ct)|0,o=(o=o+Math.imul(y,pt)|0)+Math.imul(w,ct)|0,h=h+Math.imul(w,pt)|0;var It=(l+(n=n+Math.imul(d,gt)|0)|0)+((8191&(o=(o=o+Math.imul(d,vt)|0)+Math.imul(m,gt)|0))<<13)|0;l=((h=h+Math.imul(m,vt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,W),o=(o=Math.imul(U,Y))+Math.imul(K,W)|0,h=Math.imul(K,Y),n=n+Math.imul(N,X)|0,o=(o=o+Math.imul(N,$)|0)+Math.imul(j,X)|0,h=h+Math.imul(j,$)|0,n=n+Math.imul(C,Q)|0,o=(o=o+Math.imul(C,tt)|0)+Math.imul(P,Q)|0,h=h+Math.imul(P,tt)|0,n=n+Math.imul(I,it)|0,o=(o=o+Math.imul(I,nt)|0)+Math.imul(L,it)|0,h=h+Math.imul(L,nt)|0,n=n+Math.imul(R,at)|0,o=(o=o+Math.imul(R,st)|0)+Math.imul(x,at)|0,h=h+Math.imul(x,st)|0,n=n+Math.imul(k,ht)|0,o=(o=o+Math.imul(k,ft)|0)+Math.imul(T,ht)|0,h=h+Math.imul(T,ft)|0,n=n+Math.imul(_,ct)|0,o=(o=o+Math.imul(_,pt)|0)+Math.imul(S,ct)|0,h=h+Math.imul(S,pt)|0,n=n+Math.imul(y,gt)|0,o=(o=o+Math.imul(y,vt)|0)+Math.imul(w,gt)|0,h=h+Math.imul(w,vt)|0;var Lt=(l+(n=n+Math.imul(d,bt)|0)|0)+((8191&(o=(o=o+Math.imul(d,wt)|0)+Math.imul(m,bt)|0))<<13)|0;l=((h=h+Math.imul(m,wt)|0)+(o>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(H,W),o=(o=Math.imul(H,Y))+Math.imul(G,W)|0,h=Math.imul(G,Y),n=n+Math.imul(U,X)|0,o=(o=o+Math.imul(U,$)|0)+Math.imul(K,X)|0,h=h+Math.imul(K,$)|0,n=n+Math.imul(N,Q)|0,o=(o=o+Math.imul(N,tt)|0)+Math.imul(j,Q)|0,h=h+Math.imul(j,tt)|0,n=n+Math.imul(C,it)|0,o=(o=o+Math.imul(C,nt)|0)+Math.imul(P,it)|0,h=h+Math.imul(P,nt)|0,n=n+Math.imul(I,at)|0,o=(o=o+Math.imul(I,st)|0)+Math.imul(L,at)|0,h=h+Math.imul(L,st)|0,n=n+Math.imul(R,ht)|0,o=(o=o+Math.imul(R,ft)|0)+Math.imul(x,ht)|0,h=h+Math.imul(x,ft)|0,n=n+Math.imul(k,ct)|0,o=(o=o+Math.imul(k,pt)|0)+Math.imul(T,ct)|0,h=h+Math.imul(T,pt)|0,n=n+Math.imul(_,gt)|0,o=(o=o+Math.imul(_,vt)|0)+Math.imul(S,gt)|0,h=h+Math.imul(S,vt)|0,n=n+Math.imul(y,bt)|0,o=(o=o+Math.imul(y,wt)|0)+Math.imul(w,bt)|0,h=h+Math.imul(w,wt)|0;var Dt=(l+(n=n+Math.imul(d,_t)|0)|0)+((8191&(o=(o=o+Math.imul(d,St)|0)+Math.imul(m,_t)|0))<<13)|0;l=((h=h+Math.imul(m,St)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(H,X),o=(o=Math.imul(H,$))+Math.imul(G,X)|0,h=Math.imul(G,$),n=n+Math.imul(U,Q)|0,o=(o=o+Math.imul(U,tt)|0)+Math.imul(K,Q)|0,h=h+Math.imul(K,tt)|0,n=n+Math.imul(N,it)|0,o=(o=o+Math.imul(N,nt)|0)+Math.imul(j,it)|0,h=h+Math.imul(j,nt)|0,n=n+Math.imul(C,at)|0,o=(o=o+Math.imul(C,st)|0)+Math.imul(P,at)|0,h=h+Math.imul(P,st)|0,n=n+Math.imul(I,ht)|0,o=(o=o+Math.imul(I,ft)|0)+Math.imul(L,ht)|0,h=h+Math.imul(L,ft)|0,n=n+Math.imul(R,ct)|0,o=(o=o+Math.imul(R,pt)|0)+Math.imul(x,ct)|0,h=h+Math.imul(x,pt)|0,n=n+Math.imul(k,gt)|0,o=(o=o+Math.imul(k,vt)|0)+Math.imul(T,gt)|0,h=h+Math.imul(T,vt)|0,n=n+Math.imul(_,bt)|0,o=(o=o+Math.imul(_,wt)|0)+Math.imul(S,bt)|0,h=h+Math.imul(S,wt)|0;var Ct=(l+(n=n+Math.imul(y,_t)|0)|0)+((8191&(o=(o=o+Math.imul(y,St)|0)+Math.imul(w,_t)|0))<<13)|0;l=((h=h+Math.imul(w,St)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(H,Q),o=(o=Math.imul(H,tt))+Math.imul(G,Q)|0,h=Math.imul(G,tt),n=n+Math.imul(U,it)|0,o=(o=o+Math.imul(U,nt)|0)+Math.imul(K,it)|0,h=h+Math.imul(K,nt)|0,n=n+Math.imul(N,at)|0,o=(o=o+Math.imul(N,st)|0)+Math.imul(j,at)|0,h=h+Math.imul(j,st)|0,n=n+Math.imul(C,ht)|0,o=(o=o+Math.imul(C,ft)|0)+Math.imul(P,ht)|0,h=h+Math.imul(P,ft)|0,n=n+Math.imul(I,ct)|0,o=(o=o+Math.imul(I,pt)|0)+Math.imul(L,ct)|0,h=h+Math.imul(L,pt)|0,n=n+Math.imul(R,gt)|0,o=(o=o+Math.imul(R,vt)|0)+Math.imul(x,gt)|0,h=h+Math.imul(x,vt)|0,n=n+Math.imul(k,bt)|0,o=(o=o+Math.imul(k,wt)|0)+Math.imul(T,bt)|0,h=h+Math.imul(T,wt)|0;var Pt=(l+(n=n+Math.imul(_,_t)|0)|0)+((8191&(o=(o=o+Math.imul(_,St)|0)+Math.imul(S,_t)|0))<<13)|0;l=((h=h+Math.imul(S,St)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(H,it),o=(o=Math.imul(H,nt))+Math.imul(G,it)|0,h=Math.imul(G,nt),n=n+Math.imul(U,at)|0,o=(o=o+Math.imul(U,st)|0)+Math.imul(K,at)|0,h=h+Math.imul(K,st)|0,n=n+Math.imul(N,ht)|0,o=(o=o+Math.imul(N,ft)|0)+Math.imul(j,ht)|0,h=h+Math.imul(j,ft)|0,n=n+Math.imul(C,ct)|0,o=(o=o+Math.imul(C,pt)|0)+Math.imul(P,ct)|0,h=h+Math.imul(P,pt)|0,n=n+Math.imul(I,gt)|0,o=(o=o+Math.imul(I,vt)|0)+Math.imul(L,gt)|0,h=h+Math.imul(L,vt)|0,n=n+Math.imul(R,bt)|0,o=(o=o+Math.imul(R,wt)|0)+Math.imul(x,bt)|0,h=h+Math.imul(x,wt)|0;var Bt=(l+(n=n+Math.imul(k,_t)|0)|0)+((8191&(o=(o=o+Math.imul(k,St)|0)+Math.imul(T,_t)|0))<<13)|0;l=((h=h+Math.imul(T,St)|0)+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(H,at),o=(o=Math.imul(H,st))+Math.imul(G,at)|0,h=Math.imul(G,st),n=n+Math.imul(U,ht)|0,o=(o=o+Math.imul(U,ft)|0)+Math.imul(K,ht)|0,h=h+Math.imul(K,ft)|0,n=n+Math.imul(N,ct)|0,o=(o=o+Math.imul(N,pt)|0)+Math.imul(j,ct)|0,h=h+Math.imul(j,pt)|0,n=n+Math.imul(C,gt)|0,o=(o=o+Math.imul(C,vt)|0)+Math.imul(P,gt)|0,h=h+Math.imul(P,vt)|0,n=n+Math.imul(I,bt)|0,o=(o=o+Math.imul(I,wt)|0)+Math.imul(L,bt)|0,h=h+Math.imul(L,wt)|0;var Nt=(l+(n=n+Math.imul(R,_t)|0)|0)+((8191&(o=(o=o+Math.imul(R,St)|0)+Math.imul(x,_t)|0))<<13)|0;l=((h=h+Math.imul(x,St)|0)+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(H,ht),o=(o=Math.imul(H,ft))+Math.imul(G,ht)|0,h=Math.imul(G,ft),n=n+Math.imul(U,ct)|0,o=(o=o+Math.imul(U,pt)|0)+Math.imul(K,ct)|0,h=h+Math.imul(K,pt)|0,n=n+Math.imul(N,gt)|0,o=(o=o+Math.imul(N,vt)|0)+Math.imul(j,gt)|0,h=h+Math.imul(j,vt)|0,n=n+Math.imul(C,bt)|0,o=(o=o+Math.imul(C,wt)|0)+Math.imul(P,bt)|0,h=h+Math.imul(P,wt)|0;var jt=(l+(n=n+Math.imul(I,_t)|0)|0)+((8191&(o=(o=o+Math.imul(I,St)|0)+Math.imul(L,_t)|0))<<13)|0;l=((h=h+Math.imul(L,St)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(H,ct),o=(o=Math.imul(H,pt))+Math.imul(G,ct)|0,h=Math.imul(G,pt),n=n+Math.imul(U,gt)|0,o=(o=o+Math.imul(U,vt)|0)+Math.imul(K,gt)|0,h=h+Math.imul(K,vt)|0,n=n+Math.imul(N,bt)|0,o=(o=o+Math.imul(N,wt)|0)+Math.imul(j,bt)|0,h=h+Math.imul(j,wt)|0;var Ft=(l+(n=n+Math.imul(C,_t)|0)|0)+((8191&(o=(o=o+Math.imul(C,St)|0)+Math.imul(P,_t)|0))<<13)|0;l=((h=h+Math.imul(P,St)|0)+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,n=Math.imul(H,gt),o=(o=Math.imul(H,vt))+Math.imul(G,gt)|0,h=Math.imul(G,vt),n=n+Math.imul(U,bt)|0,o=(o=o+Math.imul(U,wt)|0)+Math.imul(K,bt)|0,h=h+Math.imul(K,wt)|0;var Ut=(l+(n=n+Math.imul(N,_t)|0)|0)+((8191&(o=(o=o+Math.imul(N,St)|0)+Math.imul(j,_t)|0))<<13)|0;l=((h=h+Math.imul(j,St)|0)+(o>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,n=Math.imul(H,bt),o=(o=Math.imul(H,wt))+Math.imul(G,bt)|0,h=Math.imul(G,wt);var qt=(l+(n=n+Math.imul(U,_t)|0)|0)+((8191&(o=(o=o+Math.imul(U,St)|0)+Math.imul(K,_t)|0))<<13)|0;l=((h=h+Math.imul(K,St)|0)+(o>>>13)|0)+(qt>>>26)|0,qt&=67108863;var Kt=(l+(n=Math.imul(H,_t))|0)+((8191&(o=(o=Math.imul(H,St))+Math.imul(G,_t)|0))<<13)|0;return l=((h=Math.imul(G,St))+(o>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,f[0]=Et,f[1]=kt,f[2]=Tt,f[3]=At,f[4]=Rt,f[5]=xt,f[6]=Ot,f[7]=It,f[8]=Lt,f[9]=Dt,f[10]=Ct,f[11]=Pt,f[12]=Bt,f[13]=Nt,f[14]=jt,f[15]=Ft,f[16]=Ut,f[17]=qt,f[18]=Kt,0!==l&&(f[19]=l,r.length++),r};function S(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,o=0,h=0;h<r.length-1;h++){var f=o;o=0;for(var l=67108863&n,c=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=c;d++){var i=h-d,m=(0|t.words[i])*(0|e.words[d]),v=67108863&m;l=67108863&(v=v+l|0),o+=(f=(f=f+(m/67108864|0)|0)+(v>>>26)|0)>>>26,f&=67108863}r.words[h]=l,n=f,f=o}return 0!==n?r.words[h]=n:r.length--,r._strip()}function E(t,e,r){return S(t,e,r)}function k(t,e){this.x=t,this.y=e}Math.imul||(_=M),h.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?_(this,t,e):r<63?M(this,t,e):r<1024?S(this,t,e):E(this,t,e)},k.prototype.makeRBT=function(t){for(var e=new Array(t),r=h.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,r,t);return e},k.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},k.prototype.permute=function(t,e,r,n,o,h){for(var i=0;i<h;i++)n[i]=e[t[i]],o[i]=r[t[i]]},k.prototype.transform=function(t,e,r,n,o,h){this.permute(h,t,e,r,n,o);for(var s=1;s<o;s<<=1)for(var f=s<<1,l=Math.cos(2*Math.PI/f),c=Math.sin(2*Math.PI/f),p=0;p<o;p+=f)for(var d=l,m=c,v=0;v<s;v++){var y=r[p+v],w=n[p+v],M=r[p+v+s],_=n[p+v+s],S=d*M-m*_;_=d*_+m*M,M=S,r[p+v]=y+M,n[p+v]=w+_,r[p+v+s]=y-M,n[p+v+s]=w-_,v!==f&&(S=l*d-c*m,m=l*m+c*d,d=S)}},k.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},k.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var i=0;i<r/2;i++){var n=t[i];t[i]=t[r-i-1],t[r-i-1]=n,n=e[i],e[i]=-e[r-i-1],e[r-i-1]=-n}},k.prototype.normalize13b=function(t,e){for(var r=0,i=0;i<e/2;i++){var n=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+r;t[i]=67108863&n,r=n<67108864?0:n/67108864|0}return t},k.prototype.convert13b=function(t,e,r,o){for(var h=0,i=0;i<e;i++)h+=0|t[i],r[2*i]=8191&h,h>>>=13,r[2*i+1]=8191&h,h>>>=13;for(i=2*e;i<o;++i)r[i]=0;n(0===h),n(0==(-8192&h))},k.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},k.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(n),h=this.stub(n),f=new Array(n),l=new Array(n),c=new Array(n),d=new Array(n),m=new Array(n),v=new Array(n),y=r.words;y.length=n,this.convert13b(t.words,t.length,f,n),this.convert13b(e.words,e.length,d,n),this.transform(f,h,l,c,n,o),this.transform(d,h,m,v,n,o);for(var i=0;i<n;i++){var w=l[i]*m[i]-c[i]*v[i];c[i]=l[i]*v[i]+c[i]*m[i],l[i]=w}return this.conjugate(l,c,n),this.transform(l,c,y,h,n,o),this.conjugate(y,h,n),this.normalize13b(y,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},h.prototype.mul=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},h.prototype.mulf=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),E(this,t,e)},h.prototype.imul=function(t){return this.clone().mulTo(t,this)},h.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*t,h=(67108863&o)+(67108863&r);r>>=26,r+=o/67108864|0,r+=h>>>26,this.words[i]=67108863&h}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},h.prototype.muln=function(t){return this.clone().imuln(t)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,o=r%26;e[r]=t.words[n]>>>o&1}return e}(t);if(0===e.length)return new h(1);for(var r=this,i=0;i<e.length&&0===e[i];i++,r=r.sqr());if(++i<e.length)for(var q=r.sqr();i<e.length;i++,q=q.sqr())0!==e[i]&&(r=r.mul(q));return r},h.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var i,e=t%26,s=(t-e)/26,r=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var h=this.words[i]&r,f=(0|this.words[i])-h<<e;this.words[i]=f|o,o=h>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i<s;i++)this.words[i]=0;this.length+=s}return this._strip()},h.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},h.prototype.iushrn=function(t,e,r){var o;n("number"==typeof t&&t>=0),o=e?(e-e%26)/26:0;var h=t%26,s=Math.min((t-h)/26,this.length),mask=67108863^67108863>>>h<<h,f=r;if(o-=s,o=Math.max(0,o),f){for(var i=0;i<s;i++)f.words[i]=this.words[i];f.length=s}if(0===s);else if(this.length>s)for(this.length-=s,i=0;i<this.length;i++)this.words[i]=this.words[i+s];else this.words[0]=0,this.length=1;var l=0;for(i=this.length-1;i>=0&&(0!==l||i>=o);i--){var c=0|this.words[i];this.words[i]=l<<26-h|c>>>h,l=c&mask}return f&&0!==l&&(f.words[f.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},h.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},h.prototype.shln=function(t){return this.clone().ishln(t)},h.prototype.ushln=function(t){return this.clone().iushln(t)},h.prototype.shrn=function(t){return this.clone().ishrn(t)},h.prototype.ushrn=function(t){return this.clone().iushrn(t)},h.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26,q=1<<e;return!(this.length<=s)&&!!(this.words[s]&q)},h.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==e&&s++,this.length=Math.min(s,this.length),0!==e){var mask=67108863^67108863>>>e<<e;this.words[this.length-1]&=mask}return this._strip()},h.prototype.maskn=function(t){return this.clone().imaskn(t)},h.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)},h.prototype._iaddn=function(t){this.words[0]+=t;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},h.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 i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this._strip()},h.prototype.addn=function(t){return this.clone().iaddn(t)},h.prototype.subn=function(t){return this.clone().isubn(t)},h.prototype.iabs=function(){return this.negative=0,this},h.prototype.abs=function(){return this.clone().iabs()},h.prototype._ishlnsubmul=function(t,e,r){var i,o,h=t.length+r;this._expand(h);var f=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+f;var l=(0|t.words[i])*e;f=((o-=67108863&l)>>26)-(l/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)f=(o=(0|this.words[i+r])+f)>>26,this.words[i+r]=67108863&o;if(0===f)return this._strip();for(n(-1===f),f=0,i=0;i<this.length;i++)f=(o=-(0|this.words[i])+f)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},h.prototype._wordDiv=function(t,e){var r=(this.length,t.length),a=this.clone(),b=t,n=0|b.words[b.length-1];0!==(r=26-this._countBits(n))&&(b=b.ushln(r),a.iushln(r),n=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==e){(q=new h(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i<q.length;i++)q.words[i]=0}var f=a.clone()._ishlnsubmul(b,1,o);0===f.negative&&(a=f,q&&(q.words[o]=1));for(var l=o-1;l>=0;l--){var c=67108864*(0|a.words[b.length+l])+(0|a.words[b.length+l-1]);for(c=Math.min(c/n|0,67108863),a._ishlnsubmul(b,c,l);0!==a.negative;)c--,a.negative=0,a._ishlnsubmul(b,1,l),a.isZero()||(a.negative^=1);q&&(q.words[l]=c)}return q&&q._strip(),a._strip(),"div"!==e&&0!==r&&a.iushrn(r),{div:q||null,mod:a}},h.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new h(0),mod:new h(0)}:0!==this.negative&&0===t.negative?(f=this.neg().divmod(t,e),"mod"!==e&&(div=f.div.neg()),"div"!==e&&(o=f.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:div,mod:o}):0===this.negative&&0!==t.negative?(f=this.divmod(t.neg(),e),"mod"!==e&&(div=f.div.neg()),{div:div,mod:f.mod}):0!=(this.negative&t.negative)?(f=this.neg().divmod(t.neg(),e),"div"!==e&&(o=f.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:f.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new h(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new h(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new h(this.modrn(t.words[0]))}:this._wordDiv(t,e);var div,o,f},h.prototype.div=function(t){return this.divmod(t,"div",!1).div},h.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},h.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},h.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),o=t.andln(1),h=r.cmp(n);return h<0||1===o&&0===h?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},h.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var p=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(p*r+(0|this.words[i]))%t;return e?-r:r},h.prototype.modn=function(t){return this.modrn(t)},h.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},h.prototype.divn=function(t){return this.clone().idivn(t)},h.prototype.egcd=function(p){n(0===p.negative),n(!p.isZero());var t=this,e=p.clone();t=0!==t.negative?t.umod(p):t.clone();for(var r=new h(1),o=new h(0),f=new h(0),l=new h(1),g=0;t.isEven()&&e.isEven();)t.iushrn(1),e.iushrn(1),++g;for(var c=e.clone(),d=t.clone();!t.isZero();){for(var i=0,m=1;0==(t.words[0]&m)&&i<26;++i,m<<=1);if(i>0)for(t.iushrn(i);i-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(c),o.isub(d)),r.iushrn(1),o.iushrn(1);for(var v=0,y=1;0==(e.words[0]&y)&&v<26;++v,y<<=1);if(v>0)for(e.iushrn(v);v-- >0;)(f.isOdd()||l.isOdd())&&(f.iadd(c),l.isub(d)),f.iushrn(1),l.iushrn(1);t.cmp(e)>=0?(t.isub(e),r.isub(f),o.isub(l)):(e.isub(t),f.isub(r),l.isub(o))}return{a:f,b:l,gcd:e.iushln(g)}},h.prototype._invmp=function(p){n(0===p.negative),n(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var t,e=new h(1),r=new h(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,f=1;0==(a.words[0]&f)&&i<26;++i,f<<=1);if(i>0)for(a.iushrn(i);i-- >0;)e.isOdd()&&e.iadd(o),e.iushrn(1);for(var l=0,c=1;0==(b.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(b.iushrn(l);l-- >0;)r.isOdd()&&r.iadd(o),r.iushrn(1);a.cmp(b)>=0?(a.isub(b),e.isub(r)):(b.isub(a),r.isub(e))}return(t=0===a.cmpn(1)?e:r).cmpn(0)<0&&t.iadd(p),t},h.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),b=t.clone();a.negative=0,b.negative=0;for(var e=0;a.isEven()&&b.isEven();e++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var r=a.cmp(b);if(r<0){var n=a;a=b,b=n}else if(0===r||0===b.cmpn(1))break;a.isub(b)}return b.iushln(e)},h.prototype.invm=function(t){return this.egcd(t).a.umod(t)},h.prototype.isEven=function(){return 0==(1&this.words[0])},h.prototype.isOdd=function(){return 1==(1&this.words[0])},h.prototype.andln=function(t){return this.words[0]&t},h.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,s=(t-e)/26,q=1<<e;if(this.length<=s)return this._expand(s+1),this.words[s]|=q,this;for(var r=q,i=s;0!==r&&i<this.length;i++){var o=0|this.words[i];r=(o+=r)>>>26,o&=67108863,this.words[i]=o}return 0!==r&&(this.words[i]=r,this.length++),this},h.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},h.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},h.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},h.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var a=0|this.words[i],b=0|t.words[i];if(a!==b){a<b?e=-1:a>b&&(e=1);break}}return e},h.prototype.gtn=function(t){return 1===this.cmpn(t)},h.prototype.gt=function(t){return 1===this.cmp(t)},h.prototype.gten=function(t){return this.cmpn(t)>=0},h.prototype.gte=function(t){return this.cmp(t)>=0},h.prototype.ltn=function(t){return-1===this.cmpn(t)},h.prototype.lt=function(t){return-1===this.cmp(t)},h.prototype.lten=function(t){return this.cmpn(t)<=0},h.prototype.lte=function(t){return this.cmp(t)<=0},h.prototype.eqn=function(t){return 0===this.cmpn(t)},h.prototype.eq=function(t){return 0===this.cmp(t)},h.red=function(t){return new L(t)},h.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)},h.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(t){return this.red=t,this},h.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},h.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},h.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},h.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},h.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},h.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},h.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},h.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},h.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var T={k256:null,p224:null,p192:null,p25519:null};function A(t,p){this.name=t,this.p=new h(p,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function R(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){A.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function O(){A.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function I(){A.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function L(t){if("string"==typeof t){var e=h._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function D(t){L.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new h(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)}A.prototype._tmp=function(){var t=new h(null);return t.words=new Array(Math.ceil(this.n/13)),t},A.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},A.prototype.split=function(input,t){input.iushrn(this.n,0,t)},A.prototype.imulK=function(t){return t.imul(this.k)},o(R,A),R.prototype.split=function(input,output){for(var t=Math.min(input.length,9),i=0;i<t;i++)output.words[i]=input.words[i];if(output.length=t,input.length<=9)return input.words[0]=0,void(in
vendor: 15,050 bytes, line 2
2put.length=1);var e=input.words[9];for(output.words[output.length++]=4194303&e,i=10;i<input.length;i++){var r=0|input.words[i];input.words[i-10]=(4194303&r)<<4|e>>>22,e=r}e>>>=22,input.words[i-10]=e,0===e&&input.length>10?input.length-=10:input.length-=9},R.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(x,A),o(O,A),o(I,A),I.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=19*(0|t.words[i])+e,n=67108863&r;r>>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},h._prime=function(t){if(T[t])return T[t];var e;if("k256"===t)e=new R;else if("p224"===t)e=new x;else if("p192"===t)e=new O;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new I}return T[t]=e,e},L.prototype._verify1=function(a){n(0===a.negative,"red works only with positives"),n(a.red,"red works only with red numbers")},L.prototype._verify2=function(a,b){n(0==(a.negative|b.negative),"red works only with positives"),n(a.red&&a.red===b.red,"red works only with red numbers")},L.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):(d(a,a.umod(this.m)._forceRed(this)),a)},L.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},L.prototype.add=function(a,b){this._verify2(a,b);var t=a.add(b);return t.cmp(this.m)>=0&&t.isub(this.m),t._forceRed(this)},L.prototype.iadd=function(a,b){this._verify2(a,b);var t=a.iadd(b);return t.cmp(this.m)>=0&&t.isub(this.m),t},L.prototype.sub=function(a,b){this._verify2(a,b);var t=a.sub(b);return t.cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},L.prototype.isub=function(a,b){this._verify2(a,b);var t=a.isub(b);return t.cmpn(0)<0&&t.iadd(this.m),t},L.prototype.shl=function(a,t){return this._verify1(a),this.imod(a.ushln(t))},L.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b))},L.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b))},L.prototype.isqr=function(a){return this.imul(a,a.clone())},L.prototype.sqr=function(a){return this.mul(a,a)},L.prototype.sqrt=function(a){if(a.isZero())return a.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var e=this.m.add(new h(1)).iushrn(2);return this.pow(a,e)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);n(!q.isZero());var r=new h(1).toRed(this),o=r.redNeg(),f=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new h(2*l*l).toRed(this);0!==this.pow(l,f).cmp(o);)l.redIAdd(o);for(var c=this.pow(l,q),d=this.pow(a,q.addn(1).iushrn(1)),m=this.pow(a,q),v=s;0!==m.cmp(r);){for(var y=m,i=0;0!==y.cmp(r);i++)y=y.redSqr();n(i<v);var b=this.pow(c,new h(1).iushln(v-i-1));d=d.redMul(b),c=b.redSqr(),m=m.redMul(c),v=i}return d},L.prototype.invm=function(a){var t=a._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},L.prototype.pow=function(a,t){if(t.isZero())return new h(1).toRed(this);if(0===t.cmpn(1))return a.clone();var e=new Array(16);e[0]=new h(1).toRed(this),e[1]=a;for(var i=2;i<e.length;i++)e[i]=this.mul(e[i-1],a);var r=e[0],n=0,o=0,f=t.bitLength()%26;for(0===f&&(f=26),i=t.length-1;i>=0;i--){for(var l=t.words[i],c=f-1;c>=0;c--){var d=l>>c&1;r!==e[0]&&(r=this.sqr(r)),0!==d||0!==n?(n<<=1,n|=d,(4===++o||0===i&&0===c)&&(r=this.mul(r,e[n]),o=0,n=0)):o=0}f=26}return r},L.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},L.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},h.mont=function(t){return new D(t)},o(D,L),D.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},D.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},D.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var t=a.imul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},D.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new h(0)._forceRed(this);var t=a.mul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},D.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(79)(t))},function(t,e,r){"use strict";var n=e;n.version=r(558).version,n.utils=r(45),n.rand=r(180),n.curve=r(311),n.curves=r(184),n.ec=r(570),n.eddsa=r(574)},function(t,e,r){"use strict";var pre,n=e,o=r(185),h=r(311),f=r(45).assert;function l(t){"short"===t.type?this.curve=new h.short(t):"edwards"===t.type?this.curve=new h.edwards(t):this.curve=new h.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,f(this.g.validate(),"Invalid curve"),f(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(t,e){Object.defineProperty(n,t,{configurable:!0,enumerable:!0,get:function(){var r=new l(e);return Object.defineProperty(n,t,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=l,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{pre=r(569)}catch(t){pre=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",pre]})},function(t,e,r){var n=e;n.utils=r(50),n.common=r(112),n.sha=r(563),n.ripemd=r(567),n.hmac=r(568),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(t,e,r){"use strict";(function(e){var n,o=r(33),h=o.Buffer,f={};for(n in o)o.hasOwnProperty(n)&&"SlowBuffer"!==n&&"Buffer"!==n&&(f[n]=o[n]);var l=f.Buffer={};for(n in h)h.hasOwnProperty(n)&&"allocUnsafe"!==n&&"allocUnsafeSlow"!==n&&(l[n]=h[n]);if(f.Buffer.prototype=h.prototype,l.from&&l.from!==Uint8Array.from||(l.from=function(t,e,r){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 h(t,e,r)}),l.alloc||(l.alloc=function(t,e,r){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=h(t);return e&&0!==e.length?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n}),!f.kStringMaxLength)try{f.kStringMaxLength=e.binding("buffer").kStringMaxLength}catch(t){}f.constants||(f.constants={MAX_LENGTH:f.kMaxLength},f.kStringMaxLength&&(f.constants.MAX_STRING_LENGTH=f.kStringMaxLength)),t.exports=f}).call(this,r(38))},function(t,e,r){"use strict";const n=r(188).Reporter,o=r(113).EncoderBuffer,h=r(113).DecoderBuffer,f=r(44),l=["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"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(l);function d(t,e,r){const n={};this._baseState=n,n.name=r,n.enc=t,n.parent=e||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=d;const m=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];d.prototype.clone=function(){const t=this._baseState,e={};m.forEach((function(r){e[r]=t[r]}));const r=new this.constructor(e.parent);return r._baseState=e,r},d.prototype._wrap=function(){const t=this._baseState;c.forEach((function(e){this[e]=function(){const r=new this.constructor(this);return t.children.push(r),r[e].apply(r,arguments)}}),this)},d.prototype._init=function(body){const t=this._baseState;f(null===t.parent),body.call(this),t.children=t.children.filter((function(t){return t._baseState.parent===this}),this),f.equal(t.children.length,1,"Root node can have only one child")},d.prototype._useArgs=function(t){const e=this._baseState,r=t.filter((function(t){return t instanceof this.constructor}),this);t=t.filter((function(t){return!(t instanceof this.constructor)}),this),0!==r.length&&(f(null===e.children),e.children=r,r.forEach((function(t){t._baseState.parent=this}),this)),0!==t.length&&(f(null===e.args),e.args=t,e.reverseArgs=t.map((function(t){if("object"!=typeof t||t.constructor!==Object)return t;const e={};return Object.keys(t).forEach((function(r){r==(0|r)&&(r|=0);const n=t[r];e[n]=r})),e})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(t){d.prototype[t]=function(){const e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}})),l.forEach((function(t){d.prototype[t]=function(){const e=this._baseState,r=Array.prototype.slice.call(arguments);return f(null===e.tag),e.tag=t,this._useArgs(r),this}})),d.prototype.use=function(t){f(t);const e=this._baseState;return f(null===e.use),e.use=t,this},d.prototype.optional=function(){return this._baseState.optional=!0,this},d.prototype.def=function(t){const e=this._baseState;return f(null===e.default),e.default=t,e.optional=!0,this},d.prototype.explicit=function(t){const e=this._baseState;return f(null===e.explicit&&null===e.implicit),e.explicit=t,this},d.prototype.implicit=function(t){const e=this._baseState;return f(null===e.explicit&&null===e.implicit),e.implicit=t,this},d.prototype.obj=function(){const t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},d.prototype.key=function(t){const e=this._baseState;return f(null===e.key),e.key=t,this},d.prototype.any=function(){return this._baseState.any=!0,this},d.prototype.choice=function(t){const e=this._baseState;return f(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map((function(e){return t[e]}))),this},d.prototype.contains=function(t){const e=this._baseState;return f(null===e.use),e.contains=t,this},d.prototype._decode=function(input,t){const e=this._baseState;if(null===e.parent)return input.wrapResult(e.children[0]._decode(input,t));let r,n=e.default,o=!0,f=null;
vendor: 8,181 bytes, line 2
2if(null!==e.key&&(f=input.enterKey(e.key)),e.optional){let r=null;if(null!==e.explicit?r=e.explicit:null!==e.implicit?r=e.implicit:null!==e.tag&&(r=e.tag),null!==r||e.any){if(o=this._peekTag(input,r,e.any),input.isError(o))return o}else{const r=input.save();try{null===e.choice?this._decodeGeneric(e.tag,input,t):this._decodeChoice(input,t),o=!0}catch(t){o=!1}input.restore(r)}}if(e.obj&&o&&(r=input.enterObject()),o){if(null!==e.explicit){const t=this._decodeTag(input,e.explicit);if(input.isError(t))return t;input=t}const r=input.offset;if(null===e.use&&null===e.choice){let t;e.any&&(t=input.save());const body=this._decodeTag(input,null!==e.implicit?e.implicit:e.tag,e.any);if(input.isError(body))return body;e.any?n=input.raw(t):input=body}if(t&&t.track&&null!==e.tag&&t.track(input.path(),r,input.length,"tagged"),t&&t.track&&null!==e.tag&&t.track(input.path(),input.offset,input.length,"content"),e.any||(n=null===e.choice?this._decodeGeneric(e.tag,input,t):this._decodeChoice(input,t)),input.isError(n))return n;if(e.any||null!==e.choice||null===e.children||e.children.forEach((function(e){e._decode(input,t)})),e.contains&&("octstr"===e.tag||"bitstr"===e.tag)){const data=new h(n);n=this._getUse(e.contains,input._reporterState.obj)._decode(data,t)}}return e.obj&&o&&(n=input.leaveObject(r)),null===e.key||null===n&&!0!==o?null!==f&&input.exitKey(f):input.leaveKey(f,e.key,n),n},d.prototype._decodeGeneric=function(t,input,e){const r=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(input,t,r.args[0],e):/str$/.test(t)?this._decodeStr(input,t,e):"objid"===t&&r.args?this._decodeObjid(input,r.args[0],r.args[1],e):"objid"===t?this._decodeObjid(input,null,null,e):"gentime"===t||"utctime"===t?this._decodeTime(input,t,e):"null_"===t?this._decodeNull(input,e):"bool"===t?this._decodeBool(input,e):"objDesc"===t?this._decodeStr(input,t,e):"int"===t||"enum"===t?this._decodeInt(input,r.args&&r.args[0],e):null!==r.use?this._getUse(r.use,input._reporterState.obj)._decode(input,e):input.error("unknown tag: "+t)},d.prototype._getUse=function(t,e){const r=this._baseState;return r.useDecoder=this._use(t,e),f(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},d.prototype._decodeChoice=function(input,t){const e=this._baseState;let r=null,n=!1;return Object.keys(e.choice).some((function(o){const h=input.save(),f=e.choice[o];try{const e=f._decode(input,t);if(input.isError(e))return!1;r={type:o,value:e},n=!0}catch(t){return input.restore(h),!1}return!0}),this),n?r:input.error("Choice not matched")},d.prototype._createEncoderBuffer=function(data){return new o(data,this.reporter)},d.prototype._encode=function(data,t,e){const r=this._baseState;if(null!==r.default&&r.default===data)return;const n=this._encodeValue(data,t,e);return void 0===n||this._skipDefault(n,t,e)?void 0:n},d.prototype._encodeValue=function(data,t,e){const r=this._baseState;if(null===r.parent)return r.children[0]._encode(data,t||new n);let o=null;if(this.reporter=t,r.optional&&void 0===data){if(null===r.default)return;data=r.default}let content=null,h=!1;if(r.any)o=this._createEncoderBuffer(data);else if(r.choice)o=this._encodeChoice(data,t);else if(r.contains)content=this._getUse(r.contains,e)._encode(data,t),h=!0;else if(r.children)content=r.children.map((function(e){if("null_"===e._baseState.tag)return e._encode(null,t,data);if(null===e._baseState.key)return t.error("Child should have a key");const r=t.enterKey(e._baseState.key);if("object"!=typeof data)return t.error("Child expected, but input is not object");const n=e._encode(data[e._baseState.key],t,data);return t.leaveKey(r),n}),this).filter((function(t){return t})),content=this._createEncoderBuffer(content);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return t.error("Too many args for : "+r.tag);if(!Array.isArray(data))return t.error("seqof/setof, but data is not Array");const e=this.clone();e._baseState.implicit=null,content=this._createEncoderBuffer(data.map((function(e){const r=this._baseState;return this._getUse(r.args[0],data)._encode(e,t)}),e))}else null!==r.use?o=this._getUse(r.use,e)._encode(data,t):(content=this._encodePrimitive(r.tag,data),h=!0);if(!r.any&&null===r.choice){const e=null!==r.implicit?r.implicit:r.tag,n=null===r.implicit?"universal":"context";null===e?null===r.use&&t.error("Tag could be omitted only for .use()"):null===r.use&&(o=this._encodeComposite(e,h,n,content))}return null!==r.explicit&&(o=this._encodeComposite(r.explicit,!1,"context",o)),o},d.prototype._encodeChoice=function(data,t){const e=this._baseState,r=e.choice[data.type];return r||f(!1,data.type+" not found in "+JSON.stringify(Object.keys(e.choice))),r._encode(data.value,t)},d.prototype._encodePrimitive=function(t,data){const e=this._baseState;if(/str$/.test(t))return this._encodeStr(data,t);if("objid"===t&&e.args)return this._encodeObjid(data,e.reverseArgs[0],e.args[1]);if("objid"===t)return this._encodeObjid(data,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(data,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(data,e.args&&e.reverseArgs[0]);if("bool"===t)return this._encodeBool(data);if("objDesc"===t)return this._encodeStr(data,t);throw new Error("Unsupported tag: "+t)},d.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},d.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)}},function(t,e,r){"use strict";const n=r(14);function o(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function h(path,t){this.path=path,this.rethrow(t)}e.Reporter=o,o.prototype.isError=function(t){return t instanceof h},o.prototype.save=function(){const t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},o.prototype.restore=function(data){const t=this._reporterState;t.obj=data.obj,t.path=t.path.slice(0,data.pathLen)},o.prototype.enterKey=function(t){return this._reporterState.path.push(t)},o.prototype.exitKey=function(t){const e=this._reporterState;e.path=e.path.slice(0,t-1)},o.prototype.leaveKey=function(t,e,r){const n=this._reporterState;this.exitKey(t),null!==n.obj&&(n.obj[e]=r)},o.prototype.path=function(){return this._reporterState.path.join("/")},o.prototype.enterObject=function(){const t=this._reporterState,e=t.obj;return t.obj={},e},o.prototype.leaveObject=function(t){const e=this._reporterState,r=e.obj;return e.obj=t,r},o.prototype.error=function(t){let e;const r=this._reporterState,n=t instanceof h;if(e=n?t:new h(r.path.map((function(t){return"["+JSON.stringify(t)+"]"})).join(""),t.message||t,t.stack),!r.options.partial)throw e;return n||r.errors.push(e),e},o.prototype.wrapResult=function(t){const e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},n(h,Error),h.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,h),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},function(t,e,r){"use strict";function n(map){const t={};return Object.keys(map).forEach((function(e){(0|e)==e&&(e|=0);const r=map[e];t[r]=e})),t}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=n(e.tagClass),e.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"},e.tagByName=n(e.tag)},function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function h(t,base,e){if(h.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==base&&"be"!==base||(e=base,base
vendor: 4,177 bytes, line 2
2=10),this._init(t||0,base||10,e||"be"))}var f;"object"==typeof t?t.exports=h:e.BN=h,h.BN=h,h.wordSize=26;try{f=r(593).Buffer}catch(t){}function l(t,e,r){for(var n=0,o=Math.min(t.length,r),i=e;i<o;i++){var h=t.charCodeAt(i)-48;n<<=4,n|=h>=49&&h<=54?h-49+10:h>=17&&h<=22?h-17+10:15&h}return n}function c(t,e,r,n){for(var o=0,h=Math.min(t.length,r),i=e;i<h;i++){var f=t.charCodeAt(i)-48;o*=n,o+=f>=49?f-49+10:f>=17?f-17+10:f}return o}h.isBN=function(t){return t instanceof h||null!==t&&"object"==typeof t&&t.constructor.wordSize===h.wordSize&&Array.isArray(t.words)},h.max=function(t,e){return t.cmp(e)>0?t:e},h.min=function(t,e){return t.cmp(e)<0?t:e},h.prototype._init=function(t,base,e){if("number"==typeof t)return this._initNumber(t,base,e);if("object"==typeof t)return this._initArray(t,base,e);"hex"===base&&(base=16),n(base===(0|base)&&base>=2&&base<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&r++,16===base?this._parseHex(t,r):this._parseBase(t,base,r),"-"===t[0]&&(this.negative=1),this.strip(),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initNumber=function(t,base,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(),base,e)},h.prototype._initArray=function(t,base,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 r,o,h=0;if("be"===e)for(i=t.length-1,r=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[r]|=o<<h&67108863,this.words[r+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,r++);else if("le"===e)for(i=0,r=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[r]|=o<<h&67108863,this.words[r+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,r++);return this.strip()},h.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n,o=0;for(i=t.length-6,r=0;i>=e;i-=6)n=l(t,i,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==e&&(n=l(t,e,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303),this.strip()},h.prototype._parseBase=function(t,base,e){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=base)r++;r--,n=n/base|0;for(var o=t.length-e,h=o%r,f=Math.min(o,o-h)+e,l=0,i=e;i<f;i+=r)l=c(t,i,i+r,base),this.imuln(n),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==h){var d=1;for(l=c(t,i,t.length,base),i=0;i<h;i++)d*=base;this.imuln(d),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},h.prototype.copy=function(t){t.words=new Array(this.length);for(var i=0;i<this.length;i++)t.words[i]=this.words[i];t.length=this.length,t.negative=this.negative,t.red=this.red},h.prototype.clone=function(){var t=new h(null);return this.copy(t),t},h.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},h.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var d=["","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"],m=[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],v=[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,143489
vendor: 39,367 bytes, line 2
207,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function y(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var a=0|t.words[0],b=0|e.words[0],o=a*b,h=67108863&o,f=o/67108864|0;r.words[0]=h;for(var l=1;l<n;l++){for(var c=f>>>26,d=67108863&f,m=Math.min(l,e.length-1),v=Math.max(0,l-t.length+1);v<=m;v++){var i=l-v|0;c+=(o=(a=0|t.words[i])*(b=0|e.words[v])+d)/67108864|0,d=67108863&o}r.words[l]=0|d,f=0|c}return 0!==f?r.words[l]=0|f:r.length--,r.strip()}h.prototype.toString=function(base,t){var e;if(t=0|t||1,16===(base=base||10)||"hex"===base){e="";for(var r=0,o=0,i=0;i<this.length;i++){var h=this.words[i],f=(16777215&(h<<r|o)).toString(16);e=0!==(o=h>>>24-r&16777215)||i!==this.length-1?d[6-f.length]+f+e:f+e,(r+=2)>=26&&(r-=26,i--)}for(0!==o&&(e=o.toString(16)+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(base===(0|base)&&base>=2&&base<=36){var l=m[base],c=v[base];e="";var y=this.clone();for(y.negative=0;!y.isZero();){var w=y.modn(c).toString(base);e=(y=y.idivn(c)).isZero()?w+e:d[l-w.length]+w+e}for(this.isZero()&&(e="0"+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}n(!1,"Base should be between 2 and 36")},h.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},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(t,e){return n(void 0!==f),this.toArrayLike(f,t,e)},h.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},h.prototype.toArrayLike=function(t,e,r){var o=this.byteLength(),h=r||Math.max(1,o);n(o<=h,"byte array longer than desired length"),n(h>0,"Requested array length <= 0"),this.strip();var b,i,f="le"===e,l=new t(h),q=this.clone();if(f){for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),l[i]=b;for(;i<h;i++)l[i]=0}else{for(i=0;i<h-o;i++)l[i]=0;for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),l[h-i-1]=b}return l},Math.clz32?h.prototype._countBits=function(t){return 32-Math.clz32(t)}:h.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},h.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},h.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;i<this.length;i++){var b=this._zeroBits(this.words[i]);if(t+=b,26!==b)break}return t},h.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},h.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},h.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},h.prototype.isNeg=function(){return 0!==this.negative},h.prototype.neg=function(){return this.clone().ineg()},h.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},h.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]|t.words[i];return this.strip()},h.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},h.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},h.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},h.prototype.iuand=function(t){var b;b=this.length>t.length?t:this;for(var i=0;i<b.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=b.length,this.strip()},h.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},h.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},h.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},h.prototype.iuxor=function(t){var a,b;this.length>t.length?(a=this,b=t):(a=t,b=this);for(var i=0;i<b.length;i++)this.words[i]=a.words[i]^b.words[i];if(this!==a)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=a.length,this.strip()},h.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},h.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},h.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},h.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},h.prototype.notn=function(t){return this.clone().inotn(t)},h.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,o=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<o:this.words[r]&~(1<<o),this.strip()},h.prototype.iadd=function(t){var e,a,b;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(a=this,b=t):(a=t,b=this);for(var r=0,i=0;i<b.length;i++)e=(0|a.words[i])+(0|b.words[i])+r,this.words[i]=67108863&e,r=e>>>26;for(;0!==r&&i<a.length;i++)e=(0|a.words[i])+r,this.words[i]=67108863&e,r=e>>>26;if(this.length=a.length,0!==r)this.words[this.length]=r,this.length++;else if(a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this},h.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},h.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var a,b,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(a=this,b=t):(a=t,b=this);for(var n=0,i=0;i<b.length;i++)n=(e=(0|a.words[i])-(0|b.words[i])+n)>>26,this.words[i]=67108863&e;for(;0!==n&&i<a.length;i++)n=(e=(0|a.words[i])+n)>>26,this.words[i]=67108863&e;if(0===n&&i<a.length&&a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=Math.max(this.length,i),a!==this&&(this.negative=1),this.strip()},h.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,r){var n,o,h,a=t.words,b=e.words,f=r.words,l=0,c=0|a[0],d=8191&c,m=c>>>13,v=0|a[1],y=8191&v,w=v>>>13,M=0|a[2],_=8191&M,S=M>>>13,E=0|a[3],k=8191&E,T=E>>>13,A=0|a[4],R=8191&A,x=A>>>13,O=0|a[5],I=8191&O,L=O>>>13,D=0|a[6],C=8191&D,P=D>>>13,B=0|a[7],N=8191&B,j=B>>>13,F=0|a[8],U=8191&F,K=F>>>13,z=0|a[9],H=8191&z,G=z>>>13,V=0|b[0],W=8191&V,Y=V>>>13,Z=0|b[1],X=8191&Z,$=Z>>>13,J=0|b[2],Q=8191&J,tt=J>>>13,et=0|b[3],it=8191&et,nt=et>>>13,ot=0|b[4],at=8191&ot,st=ot>>>13,ut=0|b[5],ht=8191&ut,ft=ut>>>13,lt=0|b[6],ct=8191&lt,pt=lt>>>13,mt=0|b[7],gt=8191&mt,vt=mt>>>13,yt=0|b[8],bt=8191&yt,wt=yt>>>13,Mt=0|b[9],_t=8191&Mt,St=Mt>>>13;r.negative=t.negative^e.negative,r.length=19;var Et=(l+(n=Math.imul(d,W))|0)+((8191&(o=(o=Math.imul(d,Y))+Math.imul(m,W)|0))<<13)|0;l=((h=Math.imul(m,Y))+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(y,W),o=(o=Math.imul(y,Y))+Math.imul(w,W)|0,h=Math.imul(w,Y);var kt=(l+(n=n+Math.imul(d,X)|0)|0)+((8191&(o=(o=o+Math.imul(d,$)|0)+Math.imul(m,X)|0))<<13)|0;l=((h=h+Math.imul(m,$)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(_,W),o=(o=Math.imul(_,Y))+Math.imul(S,W)|0,h=Math.imul(S,Y),n=n+Math.imul(y,X)|0,o=(o=o+Math.imul(y,$)|0)+Math.imul(w,X)|0,h=h+Math.imul(w,$)|0;var Tt=(l+(n=n+Math.imul(d,Q)|0)|0)+((8191&(o=(o=o+Math.imul(d,tt)|0)+Math.imul(m,Q)|0))<<13)|0;l=((h=h+Math.imul(m,tt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(k,W),o=(o=Math.imul(k,Y))+Math.imul(T,W)|0,h=Math.imul(T,Y),n=n+Math.imul(_,X)|0,o=(o=o+Math.imul(_,$)|0)+Math.imul(S,X)|0,h=h+Math.imul(S,$)|0,n=n+Math.imul(y,Q)|0,o=(o=o+Math.imul(y,tt)|0)+Math.imul(w,Q)|0,h=h+Math.imul(w,tt)|0;var At=(l+(n=n+Math.imul(d,it)|0)|0)+((8191&(o=(o=o+Math.imul(d,nt)|0)+Math.imul(m,it)|0))<<13)|0;l=((h=h+Math.imul(m,nt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(R,W),o=(o=Math.imul(R,Y))+Math.imul(x,W)|0,h=Math.imul(x,Y),n=n+Math.imul(k,X)|0,o=(o=o+Math.imul(k,$)|0)+Math.imul(T,X)|0,h=h+Math.imul(T,$)|0,n=n+Math.imul(_,Q)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(S,Q)|0,h=h+Math.imul(S,tt)|0,n=n+Math.imul(y,it)|0,o=(o=o+Math.imul(y,nt)|0)+Math.imul(w,it)|0,h=h+Math.imul(w,nt)|0;var Rt=(l+(n=n+Math.imul(d,at)|0)|0)+((8191&(o=(o=o+Math.imul(d,st)|0)+Math.imul(m,at)|0))<<13)|0;l=((h=h+Math.imul(m,st)|0)+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(I,W),o=(o=Math.imul(I,Y))+Math.imul(L,W)|0,h=Math.imul(L,Y),n=n+Math.imul(R,X)|0,o=(o=o+Math.imul(R,$)|0)+Math.imul(x,X)|0,h=h+Math.imul(x,$)|0,n=n+Math.imul(k,Q)|0,o=(o=o+Math.imul(k,tt)|0)+Math.imul(T,Q)|0,h=h+Math.imul(T,tt)|0,n=n+Math.imul(_,it)|0,o=(o=o+Math.imul(_,nt)|0)+Math.imul(S,it)|0,h=h+Math.imul(S,nt)|0,n=n+Math.imul(y,at)|0,o=(o=o+Math.imul(y,st)|0)+Math.imul(w,at)|0,h=h+Math.imul(w,st)|0;var xt=(l+(n=n+Math.imul(d,ht)|0)|0)+((8191&(o=(o=o+Math.imul(d,ft)|0)+Math.imul(m,ht)|0))<<13)|0;l=((h=h+Math.imul(m,ft)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(C,W),o=(o=Math.imul(C,Y))+Math.imul(P,W)|0,h=Math.imul(P,Y),n=n+Math.imul(I,X)|0,o=(o=o+Math.imul(I,$)|0)+Math.imul(L,X)|0,h=h+Math.imul(L,$)|0,n=n+Math.imul(R,Q)|0,o=(o=o+Math.imul(R,tt)|0)+Math.imul(x,Q)|0,h=h+Math.imul(x,tt)|0,n=n+Math.imul(k,it)|0,o=(o=o+Math.imul(k,nt)|0)+Math.imul(T,it)|0,h=h+Math.imul(T,nt)|0,n=n+Math.imul(_,at)|0,o=(o=o+Math.imul(_,st)|0)+Math.imul(S,at)|0,h=h+Math.imul(S,st)|0,n=n+Math.imul(y,ht)|0,o=(o=o+Math.imul(y,ft)|0)+Math.imul(w,ht)|0,h=h+Math.imul(w,ft)|0;var Ot=(l+(n=n+Math.imul(d,ct)|0)|0)+((8191&(o=(o=o+Math.imul(d,pt)|0)+Math.imul(m,ct)|0))<<13)|0;l=((h=h+Math.imul(m,pt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(N,W),o=(o=Math.imul(N,Y))+Math.imul(j,W)|0,h=Math.imul(j,Y),n=n+Math.imul(C,X)|0,o=(o=o+Math.imul(C,$)|0)+Math.imul(P,X)|0,h=h+Math.imul(P,$)|0,n=n+Math.imul(I,Q)|0,o=(o=o+Math.imul(I,tt)|0)+Math.imul(L,Q)|0,h=h+Math.imul(L,tt)|0,n=n+Math.imul(R,it)|0,o=(o=o+Math.imul(R,nt)|0)+Math.imul(x,it)|0,h=h+Math.imul(x,nt)|0,n=n+Math.imul(k,at)|0,o=(o=o+Math.imul(k,st)|0)+Math.imul(T,at)|0,h=h+Math.imul(T,st)|0,n=n+Math.imul(_,ht)|0,o=(o=o+Math.imul(_,ft)|0)+Math.imul(S,ht)|0,h=h+Math.imul(S,ft)|0,n=n+Math.imul(y,ct)|0,o=(o=o+Math.imul(y,pt)|0)+Math.imul(w,ct)|0,h=h+Math.imul(w,pt)|0;var It=(l+(n=n+Math.imul(d,gt)|0)|0)+((8191&(o=(o=o+Math.imul(d,vt)|0)+Math.imul(m,gt)|0))<<13)|0;l=((h=h+Math.imul(m,vt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,W),o=(o=Math.imul(U,Y))+Math.imul(K,W)|0,h=Math.imul(K,Y),n=n+Math.imul(N,X)|0,o=(o=o+Math.imul(N,$)|0)+Math.imul(j,X)|0,h=h+Math.imul(j,$)|0,n=n+Math.imul(C,Q)|0,o=(o=o+Math.imul(C,tt)|0)+Math.imul(P,Q)|0,h=h+Math.imul(P,tt)|0,n=n+Math.imul(I,it)|0,o=(o=o+Math.imul(I,nt)|0)+Math.imul(L,it)|0,h=h+Math.imul(L,nt)|0,n=n+Math.imul(R,at)|0,o=(o=o+Math.imul(R,st)|0)+Math.imul(x,at)|0,h=h+Math.imul(x,st)|0,n=n+Math.imul(k,ht)|0,o=(o=o+Math.imul(k,ft)|0)+Math.imul(T,ht)|0,h=h+Math.imul(T,ft)|0,n=n+Math.imul(_,ct)|0,o=(o=o+Math.imul(_,pt)|0)+Math.imul(S,ct)|0,h=h+Math.imul(S,pt)|0,n=n+Math.imul(y,gt)|0,o=(o=o+Math.imul(y,vt)|0)+Math.imul(w,gt)|0,h=h+Math.imul(w,vt)|0;var Lt=(l+(n=n+Math.imul(d,bt)|0)|0)+((8191&(o=(o=o+Math.imul(d,wt)|0)+Math.imul(m,bt)|0))<<13)|0;l=((h=h+Math.imul(m,wt)|0)+(o>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(H,W),o=(o=Math.imul(H,Y))+Math.imul(G,W)|0,h=Math.imul(G,Y),n=n+Math.imul(U,X)|0,o=(o=o+Math.imul(U,$)|0)+Math.imul(K,X)|0,h=h+Math.imul(K,$)|0,n=n+Math.imul(N,Q)|0,o=(o=o+Math.imul(N,tt)|0)+Math.imul(j,Q)|0,h=h+Math.imul(j,tt)|0,n=n+Math.imul(C,it)|0,o=(o=o+Math.imul(C,nt)|0)+Math.imul(P,it)|0,h=h+Math.imul(P,nt)|0,n=n+Math.imul(I,at)|0,o=(o=o+Math.imul(I,st)|0)+Math.imul(L,at)|0,h=h+Math.imul(L,st)|0,n=n+Math.imul(R,ht)|0,o=(o=o+Math.imul(R,ft)|0)+Math.imul(x,ht)|0,h=h+Math.imul(x,ft)|0,n=n+Math.imul(k,ct)|0,o=(o=o+Math.imul(k,pt)|0)+Math.imul(T,ct)|0,h=h+Math.imul(T,pt)|0,n=n+Math.imul(_,gt)|0,o=(o=o+Math.imul(_,vt)|0)+Math.imul(S,gt)|0,h=h+Math.imul(S,vt)|0,n=n+Math.imul(y,bt)|0,o=(o=o+Math.imul(y,wt)|0)+Math.imul(w,bt)|0,h=h+Math.imul(w,wt)|0;var Dt=(l+(n=n+Math.imul(d,_t)|0)|0)+((8191&(o=(o=o+Math.imul(d,St)|0)+Math.imul(m,_t)|0))<<13)|0;l=((h=h+Math.imul(m,St)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(H,X),o=(o=Math.imul(H,$))+Math.imul(G,X)|0,h=Math.imul(G,$),n=n+Math.imul(U,Q)|0,o=(o=o+Math.imul(U,tt)|0)+Math.imul(K,Q)|0,h=h+Math.imul(K,tt)|0,n=n+Math.imul(N,it)|0,o=(o=o+Math.imul(N,nt)|0)+Math.imul(j,it)|0,h=h+Math.imul(j,nt)|0,n=n+Math.imul(C,at)|0,o=(o=o+Math.imul(C,st)|0)+Math.imul(P,at)|0,h=h+Math.imul(P,st)|0,n=n+Math.imul(I,ht)|0,o=(o=o+Math.imul(I,ft)|0)+Math.imul(L,ht)|0,h=h+Math.imul(L,ft)|0,n=n+Math.imul(R,ct)|0,o=(o=o+Math.imul(R,pt)|0)+Math.imul(x,ct)|0,h=h+Math.imul(x,pt)|0,n=n+Math.imul(k,gt)|0,o=(o=o+Math.imul(k,vt)|0)+Math.imul(T,gt)|0,h=h+Math.imul(T,vt)|0,n=n+Math.imul(_,bt)|0,o=(o=o+Math.imul(_,wt)|0)+Math.imul(S,bt)|0,h=h+Math.imul(S,wt)|0;var Ct=(l+(n=n+Math.imul(y,_t)|0)|0)+((8191&(o=(o=o+Math.imul(y,St)|0)+Math.imul(w,_t)|0))<<13)|0;l=((h=h+Math.imul(w,St)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(H,Q),o=(o=Math.imul(H,tt))+Math.imul(G,Q)|0,h=Math.imul(G,tt),n=n+Math.imul(U,it)|0,o=(o=o+Math.imul(U,nt)|0)+Math.imul(K,it)|0,h=h+Math.imul(K,nt)|0,n=n+Math.imul(N,at)|0,o=(o=o+Math.imul(N,st)|0)+Math.imul(j,at)|0,h=h+Math.imul(j,st)|0,n=n+Math.imul(C,ht)|0,o=(o=o+Math.imul(C,ft)|0)+Math.imul(P,ht)|0,h=h+Math.imul(P,ft)|0,n=n+Math.imul(I,ct)|0,o=(o=o+Math.imul(I,pt)|0)+Math.imul(L,ct)|0,h=h+Math.imul(L,pt)|0,n=n+Math.imul(R,gt)|0,o=(o=o+Math.imul(R,vt)|0)+Math.imul(x,gt)|0,h=h+Math.imul(x,vt)|0,n=n+Math.imul(k,bt)|0,o=(o=o+Math.imul(k,wt)|0)+Math.imul(T,bt)|0,h=h+Math.imul(T,wt)|0;var Pt=(l+(n=n+Math.imul(_,_t)|0)|0)+((8191&(o=(o=o+Math.imul(_,St)|0)+Math.imul(S,_t)|0))<<13)|0;l=((h=h+Math.imul(S,St)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(H,it),o=(o=Math.imul(H,nt))+Math.imul(G,it)|0,h=Math.imul(G,nt),n=n+Math.imul(U,at)|0,o=(o=o+Math.imul(U,st)|0)+Math.imul(K,at)|0,h=h+Math.imul(K,st)|0,n=n+Math.imul(N,ht)|0,o=(o=o+Math.imul(N,ft)|0)+Math.imul(j,ht)|0,h=h+Math.imul(j,ft)|0,n=n+Math.imul(C,ct)|0,o=(o=o+Math.imul(C,pt)|0)+Math.imul(P,ct)|0,h=h+Math.imul(P,pt)|0,n=n+Math.imul(I,gt)|0,o=(o=o+Math.imul(I,vt)|0)+Math.imul(L,gt)|0,h=h+Math.imul(L,vt)|0,n=n+Math.imul(R,bt)|0,o=(o=o+Math.imul(R,wt)|0)+Math.imul(x,bt)|0,h=h+Math.imul(x,wt)|0;var Bt=(l+(n=n+Math.imul(k,_t)|0)|0)+((8191&(o=(o=o+Math.imul(k,St)|0)+Math.imul(T,_t)|0))<<13)|0;l=((h=h+Math.imul(T,St)|0)+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(H,at),o=(o=Math.imul(H,st))+Math.imul(G,at)|0,h=Math.imul(G,st),n=n+Math.imul(U,ht)|0,o=(o=o+Math.imul(U,ft)|0)+Math.imul(K,ht)|0,h=h+Math.imul(K,ft)|0,n=n+Math.imul(N,ct)|0,o=(o=o+Math.imul(N,pt)|0)+Math.imul(j,ct)|0,h=h+Math.imul(j,pt)|0,n=n+Math.imul(C,gt)|0,o=(o=o+Math.imul(C,vt)|0)+Math.imul(P,gt)|0,h=h+Math.imul(P,vt)|0,n=n+Math.imul(I,bt)|0,o=(o=o+Math.imul(I,wt)|0)+Math.imul(L,bt)|0,h=h+Math.imul(L,wt)|0;var Nt=(l+(n=n+Math.imul(R,_t)|0)|0)+((8191&(o=(o=o+Math.imul(R,St)|0)+Math.imul(x,_t)|0))<<13)|0;l=((h=h+Math.imul(x,St)|0)+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(H,ht),o=(o=Math.imul(H,ft))+Math.imul(G,ht)|0,h=Math.imul(G,ft),n=n+Math.imul(U,ct)|0,o=(o=o+Math.imul(U,pt)|0)+Math.imul(K,ct)|0,h=h+Math.imul(K,pt)|0,n=n+Math.imul(N,gt)|0,o=(o=o+Math.imul(N,vt)|0)+Math.imul(j,gt)|0,h=h+Math.imul(j,vt)|0,n=n+Math.imul(C,bt)|0,o=(o=o+Math.imul(C,wt)|0)+Math.imul(P,bt)|0,h=h+Math.imul(P,wt)|0;var jt=(l+(n=n+Math.imul(I,_t)|0)|0)+((8191&(o=(o=o+Math.imul(I,St)|0)+Math.imul(L,_t)|0))<<13)|0;l=((h=h+Math.imul(L,St)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(H,ct),o=(o=Math.imul(H,pt))+Math.imul(G,ct)|0,h=Math.imul(G,pt),n=n+Math.imul(U,gt)|0,o=(o=o+Math.imul(U,vt)|0)+Math.imul(K,gt)|0,h=h+Math.imul(K,vt)|0,n=n+Math.imul(N,bt)|0,o=(o=o+Math.imul(N,wt)|0)+Math.imul(j,bt)|0,h=h+Math.imul(j,wt)|0;var Ft=(l+(n=n+Math.imul(C,_t)|0)|0)+((8191&(o=(o=o+Math.imul(C,St)|0)+Math.imul(P,_t)|0))<<13)|0;l=((h=h+Math.imul(P,St)|0)+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,n=Math.imul(H,gt),o=(o=Math.imul(H,vt))+Math.imul(G,gt)|0,h=Math.imul(G,vt),n=n+Math.imul(U,bt)|0,o=(o=o+Math.imul(U,wt)|0)+Math.imul(K,bt)|0,h=h+Math.imul(K,wt)|0;var Ut=(l+(n=n+Math.imul(N,_t)|0)|0)+((8191&(o=(o=o+Math.imul(N,St)|0)+Math.imul(j,_t)|0))<<13)|0;l=((h=h+Math.imul(j,St)|0)+(o>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,n=Math.imul(H,bt),o=(o=Math.imul(H,wt))+Math.imul(G,bt)|0,h=Math.imul(G,wt);var qt=(l+(n=n+Math.imul(U,_t)|0)|0)+((8191&(o=(o=o+Math.imul(U,St)|0)+Math.imul(K,_t)|0))<<13)|0;l=((h=h+Math.imul(K,St)|0)+(o>>>13)|0)+(qt>>>26)|0,qt&=67108863;var Kt=(l+(n=Math.imul(H,_t))|0)+((8191&(o=(o=Math.imul(H,St))+Math.imul(G,_t)|0))<<13)|0;return l=((h=Math.imul(G,St))+(o>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,f[0]=Et,f[1]=kt,f[2]=Tt,f[3]=At,f[4]=Rt,f[5]=xt,f[6]=Ot,f[7]=It,f[8]=Lt,f[9]=Dt,f[10]=Ct,f[11]=Pt,f[12]=Bt,f[13]=Nt,f[14]=jt,f[15]=Ft,f[16]=Ut,f[17]=qt,f[18]=Kt,0!==l&&(f[19]=l,r.length++),r};function M(t,e,r){return(new _).mulp(t,e,r)}function _(t,e){this.x=t,this.y=e}Math.imul||(w=y),h.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?w(this,t,e):r<63?y(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,o=0,h=0;h<r.length-1;h++){var f=o;o=0;for(var l=67108863&n,c=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=c;d++){var i=h-d,m=(0|t.words[i])*(0|e.words[d]),v=67108863&m;l=67108863&(v=v+l|0),o+=(f=(f=f+(m/67108864|0)|0)+(v>>>26)|0)>>>26,f&=67108863}r.words[h]=l,n=f,f=o}return 0!==n?r.words[h]=n:r.length--,r.strip()}(this,t,e):M(this,t,e)},_.prototype.makeRBT=function(t){for(var e=new Array(t),r=h.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,r,t);return e},_.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},_.prototype.permute=function(t,e,r,n,o,h){for(var i=0;i<h;i++)n[i]=e[t[i]],o[i]=r[t[i]]},_.prototype.transform=function(t,e,r,n,o,h){this.permute(h,t,e,r,n,o);for(var s=1;s<o;s<<=1)for(var f=s<<1,l=Math.cos(2*Math.PI/f),c=Math.sin(2*Math.PI/f),p=0;p<o;p+=f)for(var d=l,m=c,v=0;v<s;v++){var y=r[p+v],w=n[p+v],M=r[p+v+s],_=n[p+v+s],S=d*M-m*_;_=d*_+m*M,M=S,r[p+v]=y+M,n[p+v]=w+_,r[p+v+s]=y-M,n[p+v+s]=w-_,v!==f&&(S=l*d-c*m,m=l*m+c*d,d=S)}},_.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},_.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var i=0;i<r/2;i++){var n=t[i];t[i]=t[r-i-1],t[r-i-1]=n,n=e[i],e[i]=-e[r-i-1],e[r-i-1]=-n}},_.prototype.normalize13b=function(t,e){for(var r=0,i=0;i<e/2;i++){var n=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+r;t[i]=67108863&n,r=n<67108864?0:n/67108864|0}return t},_.prototype.convert13b=function(t,e,r,o){for(var h=0,i=0;i<e;i++)h+=0|t[i],r[2*i]=8191&h,h>>>=13,r[2*i+1]=8191&h,h>>>=13;for(i=2*e;i<o;++i)r[i]=0;n(0===h),n(0==(-8192&h))},_.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},_.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(n),h=this.stub(n),f=new Array(n),l=new Array(n),c=new Array(n),d=new Array(n),m=new Array(n),v=new Array(n),y=r.words;y.length=n,this.convert13b(t.words,t.length,f,n),this.convert13b(e.words,e.length,d,n),this.transform(f,h,l,c,n,o),this.transform(d,h,m,v,n,o);for(var i=0;i<n;i++){var w=l[i]*m[i]-c[i]*v[i];c[i]=l[i]*v[i]+c[i]*m[i],l[i]=w}return this.conjugate(l,c,n),this.transform(l,c,y,h,n,o),this.conjugate(y,h,n),this.normalize13b(y,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},h.prototype.mul=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},h.prototype.mulf=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),M(this,t,e)},h.prototype.imul=function(t){return this.clone().mulTo(t,this)},h.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,i=0;i<this.length;i++){var r=(0|this.words[i])*t,o=(67108863&r)+(67108863&e);e>>=26,e+=r/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},h.prototype.muln=function(t){return this.clone().imuln(t)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,o=r%26;e[r]=(t.words[n]&1<<o)>>>o}return e}(t);if(0===e.length)return new h(1);for(var r=this,i=0;i<e.length&&0===e[i];i++,r=r.sqr());if(++i<e.length)for(var q=r.sqr();i<e.length;i++,q=q.sqr())0!==e[i]&&(r=r.mul(q));return r},h.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var i,e=t%26,s=(t-e)/26,r=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var h=this.words[i]&r,f=(0|this.words[i])-h<<e;this.words[i]=f|o,o=h>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i<s;i++)this.words[i]=0;this.length+=s}return this.strip()},h.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},h.prototype.iushrn=function(t,e,r){var o;n("number"==typeof t&&t>=0),o=e?(e-e%26)/26:0;var h=t%26,s=Math.min((t-h)/26,this.length),mask=67108863^67108863>>>h<<h,f=r;if(o-=s,o=Math.max(0,o),f){for(var i=0;i<s;i++)f.words[i]=this.words[i];f.length=s}if(0===s);else if(this.length>s)for(this.length-=s,i=0;i<this.length;i++)this.words[i]=this.words[i+s];else this.words[0]=0,this.length=1;var l=0;for(i=this.length-1;i>=0&&(0!==l||i>=o);i--){var c=0|this.words[i];this.words[i]=l<<26-h|c>>>h,l=c&mask}return f&&0!==l&&(f.words[f.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},h.prototype.shln=function(t){return this.clone().ishln(t)},h.prototype.ushln=function(t){return this.clone().iushln(t)},h.prototype.shrn=function(t){return this.clone().ishrn(t)},h.prototype.ushrn=function(t){return this.clone().iushrn(t)},h.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26,q=1<<e;return!(this.length<=s)&&!!(this.words[s]&q)},h.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==e&&s++,this.length=Math.min(s,this.length),0!==e){var mask=67108863^67108863>>>e<<e;this.words[this.length-1]&=mask}return this.strip()},h.prototype.maskn=function(t){return this.clone().imaskn(t)},h.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)},h.prototype._iaddn=function(t){this.words[0]+=t;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},h.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 i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this.strip()},h.prototype.addn=function(t){return this.clone().iaddn(t)},h.prototype.subn=function(t){return this.clone().isubn(t)},h.prototype.iabs=function(){return this.negative=0,this},h.prototype.abs=function(){return this.clone().iabs()},h.prototype._ishlnsubmul=function(t,e,r){var i,o,h=t.length+r;this._expand(h);var f=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+f;var l=(0|t.words[i])*e;f=((o-=67108863&l)>>26)-(l/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)f=(o=(0|this.words[i+r])+f)>>26,this.words[i+r]=67108863&o;if(0===f)return this.strip();for(n(-1===f),f=0,i=0;i<this.length;i++)f=(o=-(0|this.words[i])+f)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},h.prototype._wordDiv=function(t,e){var r=(this.length,t.length),a=this.clone(),b=t,n=0|b.words[b.length-1];0!==(r=26-this._countBits(n))&&(b=b.ushln(r),a.iushln(r),n=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==e){(q=new h(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i<q.length;i++)q.words[i]=0}var f=a.clone()._ishlnsubmul(b,1,o);0===f.negative&&(a=f,q&&(q.words[o]=1));for(var l=o-1;l>=0;l--){var c=67108864*(0|a.words[b.length+l])+(0|a.words[b.length+l-1]);for(c=Math.min(c/n|0,67108863),a._ishlnsubmul(b,c,l);0!==a.negative;)c--,a.negative=0,a._ishlnsubmul(b,1,l),a.isZero()||(a.negative^=1);q&&(q.words[l]=c)}return q&&q.strip(),a.strip(),"div"!==e&&0!==r&&a.iushrn(r),{div:q||null,mod:a}},h.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new h(0),mod:new h(0)}:0!==this.negative&&0===t.negative?(f=this.neg().divmod(t,e),"mod"!==e&&(div=f.div.neg()),"div"!==e&&(o=f.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:div,mod:o}):0===this.negative&&0!==t.negative?(f=this.divmod(t.neg(),e),"mod"!==e&&(div=f.div.neg()),{div:div,mod:f.mod}):0!=(this.negative&t.negative)?(f=this.neg().divmod(t.neg(),e),"div"!==e&&(o=f.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:f.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new h(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new h(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new h(this.modn(t.words[0]))}:this._wordDiv(t,e);var div,o,f},h.prototype.div=function(t){return this.divmod(t,"div",!1).div},h.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},h.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},h.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),o=t.andln(1),h=r.cmp(n);return h<0||1===o&&0===h?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},h.prototype.modn=function(t){n(t<=67108863);for(var p=(1<<26)%t,e=0,i=this.length-1;i>=0;i--)e=(p*e+(0|this.words[i]))%t;return e},h.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},h.prototype.divn=function(t){return this.clone().idivn(t)},h.prototype.egcd=function(p){n(0===p.negative),n(!p.isZero());var t=this,e=p.clone();t=0!==t.negative?t.umod(p):t.clone();for(var r=new h(1),o=new h(0),f=new h(0),l=new h(1),g=0;t.isEven()&&e.isEven();)t.iushrn(1),e.iushrn(1),++g;for(var c=e.clone(),d=t.clone();!t.isZero();){for(var i=0,m=1;0==(t.words[0]&m)&&i<26;++i,m<<=1);if(i>0)for(t.iushrn(i);i-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(c),o.isub(d)),r.iushrn(1),o.iushrn(1);for(var v=0,y=1;0==(e.words[0]&y)&&v<26;++v,y<<=1);if(v>0)for(e.iushrn(v);v-- >0;)(f.isOdd()||l.isOdd())&&(f.iadd(c),l.isub(d)),f.iushrn(1),l.iushrn(1);t.cmp(e)>=0?(t.isub(e),r.isub(f),o.isub(l)):(e.isub(t),f.isub(r),l.isub(o))}return{a:f,b:l,gcd:e.iushln(g)}},h.prototype._invmp=function(p){n(0===p.negative),n(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var t,e=new h(1),r=new h(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,f=1;0==(a.words[0]&f)&&i<26;++i,f<<=1);if(i>0)for(a.iushrn(i);i-- >0;)e.isOdd()&&e.iadd(o),e.iushrn(1);for(var l=0,c=1;0==(b.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(b.iushrn(l);l-- >0;)r.isOdd()&&r.iadd(o),r.iushrn(1);a.cmp(b)>=0?(a.isub(b),e.isub(r)):(b.isub(a),r.isub(e))}return(t=0===a.cmpn(1)?e:r).cmpn(0)<0&&t.iadd(p),t},h.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),b=t.clone();a.negative=0,b.negative=0;for(var e=0;a.isEven()&&b.isEven();e++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var r=a.cmp(b);if(r<0){var n=a;a=b,b=n}else if(0===r||0===b.cmpn(1))break;a.isub(b)}return b.iushln(e)},h.prototype.invm=function(t){return this.egcd(t).a.umod(t)},h.prototype.isEven=function(){return 0==(1&this.words[0])},h.prototype.isOdd=function(){return 1==(1&this.words[0])},h.prototype.andln=function(t){return this.words[0]&t},h.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,s=(t-e)/26,q=1<<e;if(this.length<=s)return this._expand(s+1),this.words[s]|=q,this;for(var r=q,i=s;0!==r&&i<this.length;i++){var o=0|this.words[i];r=(o+=r)>>>26,o&=67108863,this.words[i]=o}return 0!==r&&(this.words[i]=r,this.length++),this},h.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},h.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},h.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},h.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var a=0|this.words[i],b=0|t.words[i];if(a!==b){a<b?e=-1:a>b&&(e=1);break}}return e},h.prototype.gtn=function(t){return 1===this.cmpn(t)},h.prototype.gt=function(t){return 1===this.cmp(t)},h.prototype.gten=function(t){return this.cmpn(t)>=0},h.prototype.gte=function(t){return this.cmp(t)>=0},h.prototype.ltn=function(t){return-1===this.cmpn(t)},h.prototype.lt=function(t){return-1===this.cmp(t)},h.prototype.lten=function(t){return this.cmpn(t)<=0},h.prototype.lte=function(t){return this.cmp(t)<=0},h.prototype.eqn=function(t){return 0===this.cmpn(t)},h.prototype.eq=function(t){return 0===this.cmp(t)},h.red=function(t){return new x(t)},h.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)},h.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(t){return this.red=t,this},h.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},h.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},h.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},h.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},h.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},h.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},h.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},h.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},h.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var S={k256:null,p224:null,p192:null,p25519:null};function E(t,p){this.name=t,this.p=new h(p,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function k(){E.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function T(){E.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){E.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function R(){E.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"==typeof t){var e=h._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function O(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new h(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)}E.prototype._tmp=function(){var t=new h(null);return t.words=new Array(Math.ceil(this.n/13)),t},E.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},E.prototype.split=function(input,t){input.iushrn(this.n,0,t)},E.prototype.imulK=function(t){return t.imul(this.k)},o(k,E),k.prototype.split=function(input,output){for(var t=Math.min(input.length,9),i=0;i<t;i++)output.words[i]=input.words[i];if(output.length=t,input.length<=9)return input.words[0]=0,void(input.length=1);var e=input.words[9];for(output.words[output.length++]=4194303&e,i=10;i<input.length;i++){var r=0|input.words[i];input.words[i-10]=(4194303&r)<<4|e>>>22,e=r}e>>>=22,input.words[i-10]=e,0===e&&input.length>10?input.length-=10:input.length-=9},k.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(T,E),o(A,E),o(R,E),R.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=19*(0|t.words[i])+e,n=67108863&r;r>>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},h._prime=function(t){if(S[t])return S[t];var e;if("k256"===t)e=new k;else if("p224"===t)e=new T;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new R}return S[t]=e,e},x.prototype._verify1=function(a){n(0===a.negative,"red works only with positives"),n(a.red,"red works only with red numbers")},x.prototype._verify2=function(a,b){n(0==(a.negative|b.negative),"red works only with positives"),n(a.red&&a.red===b.red,"red works only with red numbers")},x.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)},x.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},x.prototype.add=function(a,b){this._verify2(a,b);var t=a.add(b);return t.cmp(this.m)>=0&&t.isub(this.m),t._forceRed(this)},x.prototype.iadd=function(a,b){this._verify2(a,b);var t=a.iadd(b);return t.cmp(this.m)>=0&&t.isub(this.m),t},x.prototype.sub=function(a,b){this._verify2(a,b);var t=a.sub(b);return t.cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},x.prototype.isub=function(a,b){this._verify2(a,b);var t=a.isub(b);return t.cmpn(0)<0&&t.iadd(this.m),t},x.prototype.shl=function(a,t){return this._verify1(a),this.imod(a.ushln(t))},x.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b))},x.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b))},x.prototype.isqr=function(a){return this.imul(a,a.clone())},x.prototype.sqr=function(a){return this.mul(a,a)},x.prototype.sqrt=function(a){if(a.isZero())return a.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var e=this.m.add(new h(1)).iushrn(2);return this.pow(a,e)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);n(!q.isZero());var r=new h(1).toRed(this),o=r.redNeg(),f=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new h(2*l*l).toRed(this);0!==this.pow(l,f).cmp(o);)l.redIAdd(o);for(var c=this.pow(l,q),d=this.pow(a,q.addn(1).iushrn(1)),m=this.pow(a,q),v=s;0!==m.cmp(r);){for(var y=m,i=0;0!==y.cmp(r);i++)y=y.redSqr();n(i<v);var b=this.pow(c,new h(1).iushln(v-i-1));d=d.redMul(b),c=b.redSqr(),m=m.redMul(c),v=i}return d},x.prototype.invm=function(a){var t=a._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},x.prototype.pow=function(a,t){if(t.isZero())return new h(1).toRed(this);if(0===t.cmpn(1))return a.clone();var e=new Array(16);e[0]=new h(1).toRed(this),e[1]=a;for(var i=2;i<e.length;i++)e[i]=this.mul(e[i-1],a);var r=e[0],n=0,o=0,f=t.bitLength()%26;for(0===f&&(f=26),i=t.length-1;i>=0;i--){for(var l=t.words[i],c=f-1;c>=0;c--){var d=l>>c&1;r!==e[0]&&(r=this.sqr(r)),0!==d||0!==n?(n<<=1,n|=d,(4===++o||0===i&&0===c)&&(r=this.mul(r,e[n]),o=0,n=0)):o=0}f=26}return r},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},h.mont=function(t){return new O(t)},o(O,x),O.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},O.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},O.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var t=a.imul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},O.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new h(0)._forceRed(this);var t=a.mul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},O.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(79)(t))},function(t,e,r){"use strict";var n={name:"ClientOnly",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(t,e){var r=e.parent,n=e.slots,o=e.props,h=n(),f=h.default;void 0===f&&(f=[]);var l=h.placeholder;return r._isMounted?f:(r.$once("hook:mounted",(function(){r.$forceUpdate()})),o.placeholderTag&&(o.placeholder||l)?t(o.placeholderTag,{class:["client-only-placeholder"]},o.placeholder||l):f.length>0?f.map((function(){return t(!1)})):t(!1))}};t.exports=n},function(t,e,r){"use strict";r.d(e,"b",(function(){return o}
2)),r.d(e,"a",(function(){return h}));var n=function(t,b){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(t[p]=b[p])})(t,b)};function o(t,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function e(){this.constructor=t}n(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}var h=function(){return(h=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t}).apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError},,function(t,e,r){t.exports={decode:r(273),verify:r(599),sign:r(602),JsonWebTokenError:r(138),NotBeforeError:r(326),TokenExpiredError:r(327)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){var n=r(169);t.exports=function(t,e){e=e||{};var r=n.decode(t,e);if(!r)return null;var o=r.payload;if("string"==typeof o)try{var h=JSON.parse(o);null!==h&&"object"==typeof h&&(o=h)}catch(t){}return!0===e.complete?{header:r.header,payload:o,signature:r.signature}:o}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){(function(e){var n=r(13).Buffer,o=r(131);function h(data){if(this.buffer=null,this.writable=!0,this.readable=!0,!data)return this.buffer=n.alloc(0),this;if("function"==typeof data.pipe)return this.buffer=n.alloc(0),data.pipe(this),this;if(data.length||"object"==typeof data)return this.buffer=data,this.writable=!1,e.nextTick(function(){this.emit("end",data),this.readable=!1,this.emit("close")}.bind(this)),this;throw new TypeError("Unexpected data type ("+typeof data+")")}r(133).inherits(h,o),h.prototype.write=function(data){this.buffer=n.concat([this.buffer,n.from(data)]),this.emit("data",data)},h.prototype.end=function(data){data&&this.write(data),this.emit("end",data),this.emit("close"),this.writable=!1,this.readable=!1},t.exports=h}).call(this,r(38))},function(t,e,r){"use strict";(function(e,n){var o=r(132);t.exports=T;var h,f=r(274);T.ReadableState=k;r(107).EventEmitter;var l=function(t,e){return t.listeners(e).length},c=r(277),d=r(171).Buffer,m=e.Uint8Array||function(){};var v=Object.create(r(108));v.inherits=r(14);var y=r(507),w=void 0;w=y&&y.debuglog?y.debuglog("stream"):function(){};var M,_=r(508),S=r(278);v.inherits(T,c);var E=["error","close","destroy","pause","resume"];function k(t,e){t=t||{};var n=e instanceof(h=h||r(78));this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var o=t.highWaterMark,f=t.readableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:n&&(f||0===f)?f:l,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new _,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(M||(M=r(109).StringDecoder),this.decoder=new M(t.encoding),this.encoding=t.encoding)}function T(t){if(h=h||r(78),!(this instanceof T))return new T(t);this._readableState=new k(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),c.call(this)}function A(t,e,r,n,o){var h,f=t._readableState;null===e?(f.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,O(t)}(t,f)):(o||(h=function(t,e){var r;n=e,d.isBuffer(n)||n instanceof m||"string"==typeof e||void 0===e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(f,e)),h?t.emit("error",h):f.objectMode||e&&e.length>0?("string"==typeof e||f.objectMode||Object.getPrototypeOf(e)===d.prototype||(e=function(t){return d.from(t)}(e)),n?f.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):R(t,f,e,!0):f.ended?t.emit("error",new Error("stream.push() after EOF")):(f.reading=!1,f.decoder&&!r?(e=f.decoder.write(e),f.objectMode||0!==e.length?R(t,f,e,!1):L(t,f)):R(t,f,e,!1))):n||(f.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(f)}function R(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&O(t)),L(t,e)}Object.defineProperty(T.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),T.prototype.destroy=S.destroy,T.prototype._undestroy=S.undestroy,T.prototype._destroy=function(t,e){this.push(null),e(t)},T.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=d.from(t,e),e=""),r=!0),A(this,t,e,!1,r)},T.prototype.unshift=function(t){return A(this,t,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(t){return M||(M=r(109).StringDecoder),this._readableState.decoder=new M(t),this._readableState.encoding=t,this};function x(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=8388608?t=8388608:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function O(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(w("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?o.nextTick(I,t):I(t))}function I(t){w("emit readable"),t.emit("readable"),B(t)}function L(t,e){e.readingMore||(e.readingMore=!0,o.nextTick(D,t,e))}function D(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(w("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function C(t){w("readable nexttick read 0"),t.read(0)}function P(t,e){e.reading||(w("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),B(t),e.flowing&&!e.reading&&t.read(0)}function B(t){var e=t._readableState;for(w("flow",e.flowing);e.flowing&&null!==t.read(););}function N(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?function(t,e){var p=e.head,r=1,n=p.data;t-=n.length;for(;p=p.next;){var o=p.data,h=t>o.length?o.length:t;if(h===o.length?n+=o:n+=o.slice(0,t),0===(t-=h)){h===o.length?(++r,p.next?e.head=p.next:e.head=e.tail
vendor: 9,645 bytes, line 2
2=null):(e.head=p,p.data=o.slice(h));break}++r}return e.length-=r,n}(t,e):function(t,e){var r=d.allocUnsafe(t),p=e.head,n=1;p.data.copy(r),t-=p.data.length;for(;p=p.next;){var o=p.data,h=t>o.length?o.length:t;if(o.copy(r,r.length-t,0,h),0===(t-=h)){h===o.length?(++n,p.next?e.head=p.next:e.head=e.tail=null):(e.head=p,p.data=o.slice(h));break}++n}return e.length-=n,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function j(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,o.nextTick(F,e,t))}function F(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function U(t,e){for(var i=0,r=t.length;i<r;i++)if(t[i]===e)return i;return-1}T.prototype.read=function(t){w("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return w("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?j(this):O(this),null;if(0===(t=x(t,e))&&e.ended)return 0===e.length&&j(this),null;var n,o=e.needReadable;return w("need readable",o),(0===e.length||e.length-t<e.highWaterMark)&&w("length less than watermark",o=!0),e.ended||e.reading?w("reading or ended",o=!1):o&&(w("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=x(r,e))),null===(n=t>0?N(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&j(this)),null!==n&&this.emit("data",n),n},T.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},T.prototype.pipe=function(t,e){var r=this,h=this._readableState;switch(h.pipesCount){case 0:h.pipes=t;break;case 1:h.pipes=[h.pipes,t];break;default:h.pipes.push(t)}h.pipesCount+=1,w("pipe count=%d opts=%j",h.pipesCount,e);var c=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?m:T;function d(e,n){w("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,w("cleanup"),t.removeListener("close",E),t.removeListener("finish",k),t.removeListener("drain",v),t.removeListener("error",S),t.removeListener("unpipe",d),r.removeListener("end",m),r.removeListener("end",T),r.removeListener("data",_),y=!0,!h.awaitDrain||t._writableState&&!t._writableState.needDrain||v())}function m(){w("onend"),t.end()}h.endEmitted?o.nextTick(c):r.once("end",c),t.on("unpipe",d);var v=function(t){return function(){var e=t._readableState;w("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&l(t,"data")&&(e.flowing=!0,B(t))}}(r);t.on("drain",v);var y=!1;var M=!1;function _(e){w("ondata"),M=!1,!1!==t.write(e)||M||((1===h.pipesCount&&h.pipes===t||h.pipesCount>1&&-1!==U(h.pipes,t))&&!y&&(w("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,M=!0),r.pause())}function S(e){w("onerror",e),T(),t.removeListener("error",S),0===l(t,"error")&&t.emit("error",e)}function E(){t.removeListener("finish",k),T()}function k(){w("onfinish"),t.removeListener("close",E),T()}function T(){w("unpipe"),r.unpipe(t)}return r.on("data",_),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?f(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",S),t.once("close",E),t.once("finish",k),t.emit("pipe",r),h.flowing||(w("pipe resume"),r.resume()),t},T.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,o=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i<o;i++)n[i].emit("unpipe",this,r);return this}var h=U(e.pipes,t);return-1===h||(e.pipes.splice(h,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},T.prototype.on=function(t,e){var r=c.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&O(this):o.nextTick(C,this))}return r},T.prototype.addListener=T.prototype.on,T.prototype.resume=function(){var t=this._readableState;return t.flowing||(w("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,o.nextTick(P,t,e))}(this,t)),this},T.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this},T.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(w("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(o){(w("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o)||(r.objectMode||o&&o.length)&&(e.push(o)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<E.length;o++)t.on(E[o],this.emit.bind(this,E[o]));return this._read=function(e){w("wrapped _read",e),n&&(n=!1,t.resume())},this},Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),T._fromList=N}).call(this,r(35),r(38))},function(t,e,r){t.exports=r(107).EventEmitter},function(t,e,r){"use strict";var n=r(132);function o(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var r=this,h=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return h||f?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||n.nextTick(o,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?(n.nextTick(o,r,t),r._writableState&&(r._writableState.errorEmitted=!0)):e&&e(t)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(t,e,r){(function(e){function r(t){try{if(!e.localStorage)return!1}catch(t){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}t.exports=function(t,e){if(r("noDeprecation"))return t;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(e);r("traceDeprecation")?console.trace(e):console.warn(e),n=!0}return t.apply(this,arguments)}}}).call(this,r(35))},function(t,e,r){"use strict";t.exports=f;var n=r(78),o=Object.create(r(108));function h(t,data){var e=this._transformState;e.transforming=!1;var r=e.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));e.writechunk=null,e.writecb=null,null!=data&&this.push(data),r(t);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function f(t){if(!(this instanceof f))return new f(t);n.call(this,t),this._transformState={afterTransform:h.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",l)}function l(){var t=this;"function"==typeof this._flush?this._flush((function(e,data){c(t,e,data)})):c(this,null,null)}function c(t,e,data){if(e)return t.emit("error",e);if(null!=data&&t.push(data),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}o.inherits=r(14),o.inherits(f,n),f.prototype.push=function(t,e){return this._transformState.needTransform=!1,n.prototype.push.call(this,t,e)},f.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")},f.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},f.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},f.prototype._destroy=function(t,e){var r=this;n.prototype._destroy.call(this,t,(function(t){e(t),r.emit("close")}))}},function(t,e,r){var n=r(517),o=r(13).Buffer,h=r(518),f=r(596),l=r(133),c="secret must be a string or buffer",d="key must be a string or a buffer",m="function"==typeof h.createPublicKey;function v(t){if(!o.isBuffer(t)&&"string"!=typeof t){if(!m)throw _(d);if("object"!=typeof t)throw _(d);if("string"!=typeof t.type)throw _(d);if("string"!=typeof t.asymmetricKeyType)throw _(d);if("function"!=typeof t.export)throw _(d)}}function y(t){if(!o.isBuffer(t)&&"string"!=typeof t&&"object"!=typeof t)throw _("key must be a string, a buffer or an object")}function w(t){return t.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function M(t){var e=4-(t=t.toString()).length%4;if(4!==e)for(var i=0;i<e;++i)t+="=";return t.replace(/\-/g,"+").replace(/_/g,"/")}
2function _(template){var t=[].slice.call(arguments,1),e=l.format.bind(l,template).apply(null,t);return new TypeError(e)}function S(t){var e;return e=t,o.isBuffer(e)||"string"==typeof e||(t=JSON.stringify(t)),t}function E(t){return function(e,r){!function(t){if(!o.isBuffer(t)){if("string"==typeof t)return t;if(!m)throw _(c);if("object"!=typeof t)throw _(c);if("secret"!==t.type)throw _(c);if("function"!=typeof t.export)throw _(c)}}(r),e=S(e);var n=h.createHmac("sha"+t,r);return w((n.update(e),n.digest("base64")))}}function k(t){return function(e,r,h){var f=E(t)(e,h);return n(o.from(r),o.from(f))}}function T(t){return function(e,r){y(r),e=S(e);var n=h.createSign("RSA-SHA"+t);return w((n.update(e),n.sign(r,"base64")))}}function A(t){return function(e,r,n){v(n),e=S(e),r=M(r);var o=h.createVerify("RSA-SHA"+t);return o.update(e),o.verify(n,r,"base64")}}function R(t){return function(e,r){y(r),e=S(e);var n=h.createSign("RSA-SHA"+t);return w((n.update(e),n.sign({key:r,padding:h.constants.RSA_PKCS1_PSS_PADDING,saltLength:h.constants.RSA_PSS_SALTLEN_DIGEST},"base64")))}}function x(t){return function(e,r,n){v(n),e=S(e),r=M(r);var o=h.createVerify("RSA-SHA"+t);return o.update(e),o.verify({key:n,padding:h.constants.RSA_PKCS1_PSS_PADDING,saltLength:h.constants.RSA_PSS_SALTLEN_DIGEST},r,"base64")}}function O(t){var e=T(t);return function(){var r=e.apply(null,arguments);return r=f.derToJose(r,"ES"+t)}}function I(t){var e=A(t);return function(r,n,o){return n=f.joseToDer(n,"ES"+t).toString("base64"),e(r,n,o)}}function L(){return function(){return""}}function D(){return function(t,e){return""===e}}m&&(d+=" or a KeyObject",c+="or a KeyObject"),t.exports=function(t){var e={hs:E,rs:T,ps:R,es:O,none:L},r={hs:k,rs:A,ps:x,es:I,none:D},n=t.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/i);if(!n)throw _('"%s" is not a valid algorithm.\n  Supported algorithms are:\n  "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".',t);var o=(n[1]||n[3]).toLowerCase(),h=n[2];return{sign:e[o](h),verify:r[o](h)}}},function(t,e,r){"use strict";var n=r(13).Buffer,o=r(283).Transform;function h(t){o.call(this),this._block=n.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(14)(h,o),h.prototype._transform=function(t,e,r){var n=null;try{this.update(t,e)}catch(t){n=t}r(n)},h.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},h.prototype.update=function(data,t){if(function(t,e){if(!n.isBuffer(t)&&"string"!=typeof t)throw new TypeError(e+" must be a string or a buffer")}(data,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(data)||(data=n.from(data,t));for(var e=this._block,r=0;this._blockOffset+data.length-r>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)e[i++]=data[r++];this._update(),this._blockOffset=0}for(;r<data.length;)e[this._blockOffset++]=data[r++];for(var o=0,h=8*data.length;h>0;++o)this._length[o]+=h,(h=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*h);return this},h.prototype._update=function(){throw new Error("_update is not implemented")},h.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var i=0;i<4;++i)this._length[i]=0;return e},h.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=h},function(t,e,r){(e=t.exports=r(284)).Stream=e,e.Readable=e,e.Writable=r(288),e.Duplex=r(88),e.Transform=r(289),e.PassThrough=r(524),e.finished=r(174),e.pipeline=r(525)},function(t,e,r){"use strict";(function(e,n){var o;t.exports=L,L.ReadableState=I;r(107).EventEmitter;var h=function(t,e){return t.listeners(e).length},f=r(285),l=r(33).Buffer,c=e.Uint8Array||function(){};var d,m=r(519);d=m&&m.debuglog?m.debuglog("stream"):function(){};var v,y,w,M=r(520),_=r(286),S=r(287).getHighWaterMark,E=r(87).codes,k=E.ERR_INVALID_ARG_TYPE,T=E.ERR_STREAM_PUSH_AFTER_EOF,A=E.ERR_METHOD_NOT_IMPLEMENTED,R=E.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(14)(L,f);var x=_.errorOrDestroy,O=["error","close","destroy","pause","resume"];function I(t,e,n){o=o||r(88),t=t||{},"boolean"!=typeof n&&(n=e instanceof o),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=S(this,t,"readableHighWaterMark",n),this.buffer=new M,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(v||(v=r(109).StringDecoder),this.decoder=new v(t.encoding),this.encoding=t.encoding)}function L(t){if(o=o||r(88),!(this instanceof L))return new L(t);var e=this instanceof o;this._readableState=new I(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),f.call(this)}function D(t,e,r,n,o){d("readableAddChunk",e);var h,f=t._readableState;if(null===e)f.reading=!1,function(t,e){if(d("onEofChunk"),e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?B(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,N(t)))}(t,f);else if(o||(h=function(t,e){var r;n=e,l.isBuffer(n)||n instanceof c||"string"==typeof e||void 0===e||t.objectMode||(r=new k("chunk",["string","Buffer","Uint8Array"],e));var n;return r}(f,e)),h)x(t,h);else if(f.objectMode||e&&e.length>0)if("string"==typeof e||f.objectMode||Object.getPrototypeOf(e)===l.prototype||(e=function(t){return l.from(t)}(e)),n)f.endEmitted?x(t,new R):C(t,f,e,!0);else if(f.ended)x(t,new T);else{if(f.destroyed)return!1;f.reading=!1,f.decoder&&!r?(e=f.decoder.write(e),f.objectMode||0!==e.length?C(t,f,e,!1):j(t,f)):C(t,f,e,!1)}else n||(f.reading=!1,j(t,f));return!f.ended&&(f.length<f.highWaterMark||0===f.length)}function C(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&B(t)),j(t,e)}Object.defineProperty(L.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),L.prototype.destroy=_.destroy,L.prototype._undestroy=_.undestroy,L.prototype._destroy=function(t,e){e(t)},L.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=l.from(t,e),e=""),r=!0),D(this,t,e,!1,r)},L.prototype.unshift=function(t){return D(this,t,null,!0,!1)},L.prototype.isPaused=function(){return!1===this._readableState.flowing},L.prototype.setEncoding=function(t){v||(v=r(109).StringDecoder);var e=new v(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;
vendor: 4,261 bytes, line 2
2for(var p=this._readableState.buffer.head,content="";null!==p;)content+=e.write(p.data),p=p.next;return this._readableState.buffer.clear(),""!==content&&this._readableState.buffer.push(content),this._readableState.length=content.length,this};function P(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=1073741824?t=1073741824:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function B(t){var e=t._readableState;d("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(d("emitReadable",e.flowing),e.emittedReadable=!0,n.nextTick(N,t))}function N(t){var e=t._readableState;d("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,H(t)}function j(t,e){e.readingMore||(e.readingMore=!0,n.nextTick(F,t,e))}function F(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var r=e.length;if(d("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function U(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function K(t){d("readable nexttick read 0"),t.read(0)}function z(t,e){d("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),H(t),e.flowing&&!e.reading&&t.read(0)}function H(t){var e=t._readableState;for(d("flow",e.flowing);e.flowing&&null!==t.read(););}function G(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function V(t){var e=t._readableState;d("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,n.nextTick(W,e,t))}function W(t,e){if(d("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function Y(t,e){for(var i=0,r=t.length;i<r;i++)if(t[i]===e)return i;return-1}L.prototype.read=function(t){d("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return d("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?V(this):B(this),null;if(0===(t=P(t,e))&&e.ended)return 0===e.length&&V(this),null;var n,o=e.needReadable;return d("need readable",o),(0===e.length||e.length-t<e.highWaterMark)&&d("length less than watermark",o=!0),e.ended||e.reading?d("reading or ended",o=!1):o&&(d("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=P(r,e))),null===(n=t>0?G(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&V(this)),null!==n&&this.emit("data",n),n},L.prototype._read=function(t){x(this,new A("_read()"))},L.prototype.pipe=function(t,e){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,d("pipe count=%d opts=%j",o.pipesCount,e);var f=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?c:S;function l(e,n){d("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,d("cleanup"),t.removeListener("close",M),t.removeListener("finish",_),t.removeListener("drain",m),t.removeListener("error",w),t.removeListener("unpipe",l),r.removeListener("end",c),r.removeListener("end",S),r.removeListener("data",y),v=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||m())}function c(){d("onend"),t.end()}o.endEmitted?n.nextTick(f):r.once("end",f),t.on("unpipe",l);var m=function(t){return function(){var e=t._readableState;d("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&h(t,"data")&&(e.flowing=!0,H(t))}}(r);t.on("drain",m);var v=!1;function y(e){d("ondata");
vendor: 6,248 bytes, line 2
2var n=t.write(e);d("dest.write",n),!1===n&&((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==Y(o.pipes,t))&&!v&&(d("false write response, pause",o.awaitDrain),o.awaitDrain++),r.pause())}function w(e){d("onerror",e),S(),t.removeListener("error",w),0===h(t,"error")&&x(t,e)}function M(){t.removeListener("finish",_),S()}function _(){d("onfinish"),t.removeListener("close",M),S()}function S(){d("unpipe"),r.unpipe(t)}return r.on("data",y),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",w),t.once("close",M),t.once("finish",_),t.emit("pipe",r),o.flowing||(d("pipe resume"),r.resume()),t},L.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,o=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i<o;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var h=Y(e.pipes,t);return-1===h||(e.pipes.splice(h,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},L.prototype.on=function(t,e){var r=f.prototype.on.call(this,t,e),o=this._readableState;return"data"===t?(o.readableListening=this.listenerCount("readable")>0,!1!==o.flowing&&this.resume()):"readable"===t&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,d("on readable",o.length,o.reading),o.length?B(this):o.reading||n.nextTick(K,this))),r},L.prototype.addListener=L.prototype.on,L.prototype.removeListener=function(t,e){var r=f.prototype.removeListener.call(this,t,e);return"readable"===t&&n.nextTick(U,this),r},L.prototype.removeAllListeners=function(t){var e=f.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||n.nextTick(U,this),e},L.prototype.resume=function(){var t=this._readableState;return t.flowing||(d("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(z,t,e))}(this,t)),t.paused=!1,this},L.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},L.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(d("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(o){(d("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o)||(r.objectMode||o&&o.length)&&(e.push(o)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<O.length;o++)t.on(O[o],this.emit.bind(this,O[o]));return this._read=function(e){d("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"==typeof Symbol&&(L.prototype[Symbol.asyncIterator]=function(){return void 0===y&&(y=r(522)),y(this)}),Object.defineProperty(L.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(L.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(L.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),L._fromList=G,Object.defineProperty(L.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(L.from=function(t,e){return void 0===w&&(w=r(523)),w(L,t,e)})}).call(this,r(35),r(38))},function(t,e,r){t.exports=r(107).EventEmitter},function(t,e,r){"use strict";(function(e){function r(t,e){o(t,e),n(t)}function n(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function o(t,e){t.emit("error",e)}t.exports={destroy:function(t,h){var f=this,l=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return l||c?(h?h(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(o,this,t)):e.nextTick(o,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!h&&t?f._writableState?f._writableState.errorEmitted?e.nextTick(n,f):(f._writableState.errorEmitted=!0,e.nextTick(r,f,t)):e.nextTick(r,f,t):h?(e.nextTick(n,f),h(t)):e.nextTick(n,f)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}}).call(this,r(38))},function(t,e,r){"use strict";var n=r(87).codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,r,o){var h=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,o,r);if(null!=h){if(!isFinite(h)||Math.floor(h)!==h||h<0)throw new n(o?r:"highWaterMark",h);return Math.floor(h)}return t.objectMode?16:16384}}},function(t,e,r){"use strict";(function(e,n){function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var o=n.callback;e.pendingcb--,o(r),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}var h;t.exports=L,L.WritableState=I;var f={deprecate:r(279)},l=r(285),c=r(33).Buffer,d=e.Uint8Array||function(){};var m,v=r(286),y=r(287).getHighWaterMark,w=r(87).codes,M=w.ERR_INVALID_ARG_TYPE,_=w.ERR_METHOD_NOT_IMPLEMENT
vendor: 6,849 bytes, line 2
2ED,S=w.ERR_MULTIPLE_CALLBACK,E=w.ERR_STREAM_CANNOT_PIPE,k=w.ERR_STREAM_DESTROYED,T=w.ERR_STREAM_NULL_VALUES,A=w.ERR_STREAM_WRITE_AFTER_END,R=w.ERR_UNKNOWN_ENCODING,x=v.errorOrDestroy;function O(){}function I(t,e,f){h=h||r(88),t=t||{},"boolean"!=typeof f&&(f=e instanceof h),this.objectMode=!!t.objectMode,f&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=y(this,t,"writableHighWaterMark",f),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===t.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,o=r.sync,h=r.writecb;if("function"!=typeof h)throw new S;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,o,h){--e.pendingcb,r?(n.nextTick(h,o),n.nextTick(j,t,e),t._writableState.errorEmitted=!0,x(t,o)):(h(o),t._writableState.errorEmitted=!0,x(t,o),j(t,e))}(t,r,o,e,h);else{var f=B(r)||t.destroyed;f||r.corked||r.bufferProcessing||!r.bufferedRequest||P(t,r),o?n.nextTick(C,t,r,f,h):C(t,r,f,h)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function L(t){var e=this instanceof(h=h||r(88));if(!e&&!m.call(L,this))return new L(t);this._writableState=new I(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),l.call(this)}function D(t,e,r,n,o,h,f){e.writelen=n,e.writecb=f,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new k("write")):r?t._writev(o,e.onwrite):t._write(o,h,e.onwrite),e.sync=!1}function C(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),j(t,e)}function P(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,h=new Array(n),f=e.corkedRequestsFree;f.entry=r;for(var l=0,c=!0;r;)h[l]=r,r.isBuf||(c=!1),r=r.next,l+=1;h.allBuffers=c,D(t,e,!0,e.length,h,"",f.finish),e.pendingcb++,e.lastBufferedRequest=null,f.next?(e.corkedRequestsFree=f.next,f.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;r;){var d=r.chunk,m=r.encoding,v=r.callback;if(D(t,e,!1,e.objectMode?1:d.length,d,m,v),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function B(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function N(t,e){t._final((function(r){e.pendingcb--,r&&x(t,r),e.prefinished=!0,t.emit("prefinish"),j(t,e)}))}function j(t,e){var r=B(e);if(r&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,n.nextTick(N,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var o=t._readableState;(!o||o.autoDestroy&&o.endEmitted)&&t.destroy()}return r}r(14)(L,l),I.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(I.prototype,"buffer",{get:f.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(m=Function.prototype[Symbol.hasInstance],Object.defineProperty(L,Symbol.hasInstance,{value:function(object){return!!m.call(this,object)||this===L&&(object&&object._writableState instanceof I)}})):m=function(object){return object instanceof this},L.prototype.pipe=function(){x(this,new E)},L.prototype.write=function(t,e,r){var o,h=this._writableState,f=!1,l=!h.objectMode&&(o=t,c.isBuffer(o)||o instanceof d);return l&&!c.isBuffer(t)&&(t=function(t){return c.from(t)}(t)),"function"==typeof e&&(r=e,e=null),l?e="buffer":e||(e=h.defaultEncoding),"function"!=typeof r&&(r=O),h.ending?function(t,e){var r=new A;x(t,r),n.nextTick(e,r)}(this,r):(l||function(t,e,r,o){var h;return null===r?h=new T:"string"==typeof r||e.objectMode||(h=new M("chunk",["string","Buffer"],r)),!h||(x(t,h),n.nextTick(o,h),!1)}(this,h,t,r))&&(h.pendingcb++,f=function(t,e,r,n,o,h){if(!r){var f=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=c.from(e,r));return e}(e,n,o);n!==f&&(r=!0,o="buffer",n=f)}var l=e.objectMode?1:n.length;e.length+=l;var d=e.length<e.highWaterMark;d||(e.needDrain=!0);if(e.writing||e.corked){var m=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:h,next:null},m?m.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else D(t,e,!1,l,n,o,h);return d}(this,h,l,t,e,r)),f},L.prototype.cork=function(){this._writableState.corked++},L.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||P(this,t))},L.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new R(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(L.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(L.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),L.prototype._write=function(t,e,r){r(new _("_write()"))},L.prototype._writev=null,L.prototype.end=function(t,e,r){var o=this._writableState;return"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),o.corked&&(o.corked=1,this.uncork()),o.ending||function(t,e,r){e.ending=!0,j(t,e),r&&(e.finished?n.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,o,r),this},Object.defineProperty(L.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(L.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),L.prototype.destroy=v.destroy,L.prototype._undestroy=v.undestroy,L.prototype._destroy=function(t,e){e(t)}}).call(this,r(35),r(38))},function(t,e,r){"use strict";
vendor: 28,846 bytes, line 2
2t.exports=m;var n=r(87).codes,o=n.ERR_METHOD_NOT_IMPLEMENTED,h=n.ERR_MULTIPLE_CALLBACK,f=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,l=n.ERR_TRANSFORM_WITH_LENGTH_0,c=r(88);function d(t,data){var e=this._transformState;e.transforming=!1;var r=e.writecb;if(null===r)return this.emit("error",new h);e.writechunk=null,e.writecb=null,null!=data&&this.push(data),r(t);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function m(t){if(!(this instanceof m))return new m(t);c.call(this,t),this._transformState={afterTransform:d.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",v)}function v(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?y(this,null,null):this._flush((function(e,data){y(t,e,data)}))}function y(t,e,data){if(e)return t.emit("error",e);if(null!=data&&t.push(data),t._writableState.length)throw new l;if(t._transformState.transforming)throw new f;return t.push(null)}r(14)(m,c),m.prototype.push=function(t,e){return this._transformState.needTransform=!1,c.prototype.push.call(this,t,e)},m.prototype._transform=function(t,e,r){r(new o("_transform()"))},m.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},m.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},m.prototype._destroy=function(t,e){c.prototype._destroy.call(this,t,(function(t){e(t)}))}},function(t,e,r){var n=r(14),o=r(89),h=r(13).Buffer,f=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],l=new Array(64);function c(){this.init(),this._w=l,o.call(this,64,56)}function d(t,e,r){return r^t&(e^r)}function m(t,e,r){return t&e|r&(t|e)}function v(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function y(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function w(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}n(c,o),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(t){for(var e,r=this._w,a=0|this._a,b=0|this._b,n=0|this._c,o=0|this._d,h=0|this._e,l=0|this._f,g=0|this._g,c=0|this._h,i=0;i<16;++i)r[i]=t.readInt32BE(4*i);for(;i<64;++i)r[i]=0|(((e=r[i-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+r[i-7]+w(r[i-15])+r[i-16];for(var M=0;M<64;++M){var _=c+y(h)+d(h,l,g)+f[M]+r[M]|0,S=v(a)+m(a,b,n)|0;c=g,g=l,l=h,h=o+_|0,o=n,n=b,b=a,a=_+S|0}this._a=a+this._a|0,this._b=b+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=h+this._e|0,this._f=l+this._f|0,this._g=g+this._g|0,this._h=c+this._h|0},c.prototype._hash=function(){var t=h.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=c},function(t,e,r){var n=r(14),o=r(89),h=r(13).Buffer,f=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],l=new Array(160);function c(){this.init(),this._w=l,o.call(this,128,112)}function d(t,e,r){return r^t&(e^r)}function m(t,e,r){return t&e|r&(t|e)}function v(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function y(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function w(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function M(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function _(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function S(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function E(a,b){return a>>>0<b>>>0?1:0}n(c,o),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(t){for(var e=this._w,r=0|this._ah,n=0|this._bh,o=0|this._ch,h=0|this._dh,l=0|this._eh,c=0|this._fh,k=0|this._gh,T=0|this._hh,A=0|this._al,R=0|this._bl,x=0|this._cl,dl=0|this._dl,O=0|this._el,I=0|this._fl,L=0|this._gl,D=0|this._hl,i=0;i<32;i+=2)e[i]=t.readInt32BE(4*i),e[i+1]=t.readInt32BE(4*i+4);for(;i<160;i+=2){var C=e[i-30],P=e[i-30+1],B=w(C,P),N=M(P,C),j=_(C=e[i-4],P=e[i-4+1]),F=S(P,C),U=e[i-14],K=e[i-14+1],z=e[i-32],H=e[i-32+1],G=N+K|0,V=B+U+E(G,N)|0;V=(V=V+j+E(G=G+F|0,F)|0)+z+E(G=G+H|0,H)|0,e[i]=V,e[i+1]=G}for(var W=0;W<160;W+=2){V=e[W],G=e[W+1];var Y=m(r,n,o),Z=m(A,R,x),X=v(r,A),$=v(A,r),J=y(l,O),Q=y(O,l),tt=f[W],et=f[W+1],it=d(l,c,k),nt=d(O,I,L),ot=D+Q|0,at=T+J+E(ot,D)|0;at=(at=(at=at+it+E(ot=ot+nt|0,nt)|0)+tt+E(ot=ot+et|0,et)|0)+V+E(ot=ot+G|0,G)|0;var st=$+Z|0,ut=X+Y+E(st,$)|0;T=k,D=L,k=c,L=I,c=l,I=O,l=h+at+E(O=dl+ot|0,dl)|0,h=o,dl=x,o=n,x=R,n=r,R=A,r=at+ut+E(A=ot+st|0,ot)|0}this._al=this._al+A|0,this._bl=this._bl+R|0,this._cl=this._cl+x|0,this._dl=this._dl+dl|0,this._el=this._el+O|0,this._fl=this._fl+I|0,this._gl=this._gl+L|0,this._hl=this._hl+D|0,this._ah=this._ah+r+E(this._al,A)|0,this._bh=this._bh+n+E(this._bl,R)|0,this._ch=this._ch+o+E(this._cl,x)|0,this._dh=this._dh+h+E(this._dl,dl)|0,this._eh=this._eh+l+E(this._el,O)|0,this._fh=this._fh+c+E(this._fl,I)|0,this._gh=this._gh+k+E(this._gl,L)|0,this._hh=this._hh+T+E(this._hl,D)|0},c.prototype._hash=function(){var t=h.allocUnsafe(64);function e(e,r,n){t.writeInt32BE(e,n),t.writeInt32BE(r,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=c},function(t,e,r){"use strict";var n=r(14),o=r(530),h=r(69),f=r(13).Buffer,l=r(293),c=r(175),d=r(176),m=f.alloc(128);function v(t,e){h.call(this,"digest"),"string"==typeof e&&(e=f.from(e));var r="sha512"===t||"sha384"===t?128:64;(this._alg=t,this._key=e,e.length>r)?e=("rmd160"===t?new c:d(t)).update(e).digest():e.length<r&&(e=f.concat([e,m],r));for(var n=this._ipad=f.allocUnsafe(r),o=this._opad=f.allocUnsafe(r),i=0;i<r;i++)n[i]=54^e[i],o[i]=92^e[i];this._hash="rmd160"===t?new c:d(t),this._hash.update(n)}n(v,h),v.prototype._update=function(data){this._hash.update(data)},v.prototype._final=function(){var t=this._hash.digest();return("rmd160"===this._alg?new c:d(this._alg)).update(this._opad).update(t).digest()},t.exports=function(t,e){return"rmd160"===(t=t.toLowerCase())||"ripemd160"===t?new v("rmd160",e):"md5"===t?new o(l,e):new v(t,e)}},function(t,e,r){var n=r(173);t.exports=function(t){return(new n).update(t).digest()}},function(t){t.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},function(t,e,r){e.pbkdf2=r(532),e.pbkdf2Sync=r(298)},function(t,e){var r=Math.pow(2,30)-1;t.exports=function(t,e){if("number"!=typeof t)throw new TypeError("Iterations not a number");if(t<0)throw new TypeError("Bad iterations");if("number"!=typeof e)throw new TypeError("Key length not a number");if(e<0||e>r||e!=e)throw new TypeError("Bad key length")}},function(t,e,r){var n;n="utf-8",t.exports=n},function(t,e,r){var n=r(293),o=r(175),h=r(176),f=r(13).Buffer,l=r(296),c=r(297),d=r(299),m=f.alloc(128),v={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function y(t,e,r){var l=function(t){function e(data){return h(t).update(data).digest()}return"rmd160"===t||"ripemd160"===t?function(data){return(new o).update(data).digest()}:"md5"===t?n:e}(t),c="sha512"===t||"sha384"===t?128:64;e.length>c?e=l(e):e.length<c&&(e=f.concat([e,m],c));for(var d=f.allocUnsafe(c+v[t]),y=f.allocUnsafe(c+v[t]),i=0;i<c;i++)d[i]=54^e[i],y[i]=92^e[i];var w=f.allocUnsafe(c+r+4);d.copy(w,0,0,c),this.ipad1=w,this.ipad2=d,this.opad=y,this.alg=t,this.blocksize=c,this.hash=l,this.size=v[t]}y.prototype.run=function(data,t){return data.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(t,e,r,n,o){l(r,n);var h=new y(o=o||"sha1",t=d(t,c,"Password"),(e=d(e,c,"Salt")).length),m=f.allocUnsafe(n),w=f.allocUnsafe(e.length+4);e.copy(w,0,0,e.length);for(var M=0,_=v[o],S=Math.ceil(n/_),i=1;i<=S;i++){w.writeUInt32BE(i,e.length);for(var E=h.run(w,h.ipad1),k=E,T=1;T<r;T++){k=h.run(k,h.ipad2);for(var A=0;A<_;A++)E[A]^=k[A]}E.copy(m,M),M+=_}return m}},function(t,e,r){var n=r(13).Buffer;t.exports=function(t,e,r){if(n.isBuffer(t))return t;if("string"==typeof t)return n.from(t,e);if(ArrayBuffer.isView(t))return n.from(t.buffer);throw new TypeError(r+" must be a string, a Buffer, a typed array or a DataView")}},function(t,e,r){"use strict";e.readUInt32BE=function(t,e){return(t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e])>>>0},e.writeUInt32BE=function(t,e,r){t[0+r]=e>>>24,t[1+r]=e>>>16&255,t[2+r]=e>>>8&255,t[3+r]=255&e},e.ip=function(t,e,r,n){for(var o=0,h=0,i=6;i>=0;i-=2){for(var f=0;f<=24;f+=8)o<<=1,o|=e>>>f+i&1;for(f=0;f<=24;f+=8)o<<=1,o|=t>>>f+i&1}for(i=6;i>=0;i-=2){for(f=1;f<=25;f+=8)h<<=1,h|=e>>>f+i&1;for(f=1;f<=25;f+=8)h<<=1,h|=t>>>f+i&1}r[n+0]=o>>>0,r[n+1]=h>>>0},e.rip=function(t,e,r,n){for(var o=0,h=0,i=0;i<4;i++)for(var f=24;f>=0;f-=8)o<<=1,o|=e>>>f+i&1,o<<=1,o|=t>>>f+i&1;for(i=4;i<8;i++)for(f=24;f>=0;f-=8)h<<=1,h|=e>>>f+i&1,h<<=1,h|=t>>>f+i&1;r[n+0]=o>>>0,r[n+1]=h>>>0},e.pc1=function(t,e,r,n){for(var o=0,h=0,i=7;i>=5;i--){for(var f=0;f<=24;f+=8)o<<=1,o|=e>>f+i&1;for(f=0;f<=24;f+=8)o<<=1,o|=t>>f+i&1}for(f=0;f<=24;f+=8)o<<=1,o|=e>>f+i&1;for(i=1;i<=3;i++){for(f=0;f<=24;f+=8)h<<=1,h|=e>>f+i&1;for(f=0;f<=24;f+=8)h<<=1,h|=t>>f+i&1}for(f=0;f<=24;f+=8)h<<=1,h|=t>>f+i&1;r[n+0]=o>>>0,r[n+1]=h>>>0},e.r28shl=function(t,e){return t<<e&268435455|t>>>28-e};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];e.pc2=function(t,e,r,o){for(var h=0,f=0,l=n.length>>>1,i=0;i<l;i++)h<<=1,h|=t>>>n[i]&1;for(i=l;i<n.length;i++)f<<=1,f|=e>>>n[i]&1;r[o+0]=h>>>0,r[o+1]=f>>>0},e.expand=function(t,e,r){var n=0,o=0;n=(1&t)<<5|t>>>27;for(var i=23;i>=15;i-=4)n<<=6,n|=t>>>i&63;for(i=11;i>=3;i-=4)o|=t>>>i&63,o<<=6;o|=(31&t)<<1|t>>>31,e[r+0]=n>>>0,e[r+1]=o>>>0};var o=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(t,e){for(var r=0,i=0;i<4;i++){r<<=4,r|=o[64*i+(t>>>18-6*i&63)]}for(i=0;i<4;i++){r<<=4,r|=o[256+64*i+(e>>>18-6*i&63)]}return r>>>0};var h=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];e.permute=function(t){for(var e=0,i=0;i<h.length;i++)e<<=1,e|=t>>>h[i]&1;return e>>>0},e.padSplit=function(t,e,r){for(var n=t.toString(2);n.length<e;)n="0"+n;for(var o=[],i=0;i<e;i+=r)o.push(n.slice(i,i+r));return o.join(" ")}},function(t,e,r){"use strict";var n=r(44),o=r(14),h=r(300),f=r(177);function l(){this.tmp=new Array(2),this.keys=null}function c(t){f.call(this,t);var e=new l;this._desState=e,this.deriveKeys(e,t.key)}o(c,f),t.exports=c,c.create=function(t){return new c(t)};var d=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];c.prototype.deriveKeys=function(t,e){t.keys=new Array(32),n.equal(e.length,this.blockSize,"Invalid key length");var r=h.readUInt32BE(e,0),o=h.readUInt32BE(e,4);h.pc1(r,o,t.tmp,0),r=t.tmp[0],o=t.tmp[1];for(var i=0;i<t.keys.length;i+=2){var f=d[i>>>1];r=h.r28shl(r,f),o=h.r28shl(o,f),h.pc2(r,o,t.keys,i)}},c.prototype._update=function(t,e,r,n){var o=this._desState,f=h.readUInt32BE(t,e),l=h.readUInt32BE(t,e+4);h.ip(f,l,o.tmp,0),f=o.tmp[0],l=o.tmp[1],"encrypt"===this.type?this._encrypt(o,f,l,o.tmp,0):this._decrypt(o,f,l,o.tmp,0),f=o.tmp[0],l=o.tmp[1],h.writeUInt32BE(r,f,n),h.writeUInt32BE(r,l,n+4)},c.prototype._pad=function(t,e){for(var r=t.length-e,i=e;i<t.length;i++)t[i]=r;return!0},c.prototype._unpad=function(t){for(var e=t[t.length-1],i=t.length-e;i<t.length;i++)n.equal(t[i],e);return t.slice(0,t.length-e)},c.prototype._encrypt=function(t,e,r,n,o){for(var f=e,l=r,i=0;i<t.keys.length;i+=2){var c=t.keys[i],d=t.keys[i+1];h.expand(l,t.tmp,0),c^=t.tmp[0],d^=t.tmp[1];var s=h.substitute(c,d),m=l;l=(f^h.permute(s))>>>0,f=m}h.rip(l,f,n,o)},c.prototype._decrypt=function(t,e,r,n,o){for(var f=r,l=e,i=t.keys.length-2;i>=0;i-=2){var c=t.keys[i],d=t.keys[i+1];h.expand(f,t.tmp,0),c^=t.tmp[0],d^=t.tmp[1];var s=h.substitute(c,d),m=f;f=(l^h.permute(s))>>>0,l=m}h.rip(f,l,n,o)}},function(t,e,r){var n=r(111),o=r(13).Buffer,h=r(303);function f(t){var e=t._cipher.encryptBlockRaw(t._prev);return h(t._prev),e}e.encrypt=function(t,e){var r=Math.ceil(e.length/16),h=t._cache.length;t._cache=o.concat([t._cache,o.allocUnsafe(16*r)]);for(var i=0;i<r;i++){var l=f(t),c=h+16*i;t._cache.writeUInt32BE(l[0],c+0),t._cache.writeUInt32BE(l[1],c+4),t._cache.writeUInt32BE(l[2],c+8),t._cache.writeUInt32BE(l[3],c+12)}var d=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),n(e,d)}},function(t,e){t.exports=function(t){for(var e,r=t.length;r--;){if(255!==(e=t.readUInt8(r))){e++,t.writeUInt8(e,r);break}t.writeUInt8(0,r)}}},function(t){t.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},function(t,e,r){var n=r(134),o=r(13).Buffer,h=r(69),f=r(14),l=r(545),c=r(111),d=r(303);function m(t,e,r,f){h.call(this);var c=o.alloc(4,0);this._cipher=new n.AES(e);var m=this._cipher.encryptBlock(c);this._ghash=new l(m),r=function(t,e,r){if(12===e.length)return t._finID=o.concat([e,o.from([0,0,0,1])]),o.concat([e,o.from([0,0,0,2])]);var n=new l(r),h=e.length,f=h%16;n.update(e),f&&(f=16-f,n.update(o.alloc(f,0))),n.update(o.alloc(8,0));var c=8*h,m=o.alloc(8);m.writeUIntBE(c,0,8),n.update(m),t._finID=n.state;var v=o.from(t._finID);return d(v),v}(this,r,m),this._prev=o.from(r),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=f,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}f(m,h),m.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=o.alloc(e,0),this._ghash.update(e))}this._called=!0;var r=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(r),this._len+=t.length,r},m.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=c(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(a,b){var t=0;a.length!==b.length&&t++;for(var e=Math.min(a.length,b.length),i=0;i<e;++i)t+=a[i]^b[i];return t}(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()},m.prototype.getAuthTag=function(){if(this._decrypt||!o.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},m.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t},m.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length},t.exports=m},function(t,e,r){var n=r(134),o=r(13).Buffer,h=r(69);function f(t,e,r,f){h.call(this),this._cipher=new n.AES(e),this._prev=o.from(r),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=f,this._mode=t}r(14)(f,h),f.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},f.prototype._final=function(){this._cipher.scrub()},t.exports=f},function(t,e,r){var n=r(86);t.exports=k,k.simpleSieve=S,k.fermatTest=E;var o=r(308),h=new o(24),f=new(r(309)),l=new o(1),c=new o(2),d=new o(5),m=(new o(16),new o(8),new o(10)),v=new o(3),y=(new o(7),new o(11)),w=new o(4),M=(new o(12),null);function _(){if(null!==M)return M;var t=[];t[0]=2;for(var i=1,e=3;e<1048576;e+=2){for(var r=Math.ceil(Math.sqrt(e)),n=0;n<i&&t[n]<=r&&e%t[n]!=0;n++);i!==n&&t[n]<=r||(t[i++]=e)}return M=t,t}function S(p){for(var t=_(),i=0;i<t.length;i++)if(0===p.modn(t[i]))return 0===p.cmpn(t[i]);return!0}function E(p){var t=o.mont(p);return 0===c.toRed(t).redPow(p.subn(1)).fromRed().cmpn(1)}function k(t,e){if(t<16)return new o(2===e||5===e?[140,123]:[140,39]);var r,M;for(e=new o(e);;){for(r=new o(n(Math.ceil(t/8)));r.bitLength()>t;)r.ishrn(1);if(r.isEven()&&r.iadd(l),r.testn(1)||r.iadd(c),e.cmp(c)){if(!e.cmp(d))for(;r.mod(m).cmp(v);)r.iadd(w)}else for(;r.mod(h).cmp(y);)r.iadd(w);if(S(M=r.shrn(1))&&S(r)&&E(M)&&E(r)&&f.test(M)&&f.test(r))return r}}},function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function h(t,base,e){if(h.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==base&&"be"!==base||(e=base,base=10),this._init(t||0,base||10,e||"be"))}var f;"object"==typeof t?t.exports=h:e.BN=h,h.BN=h,h.wordSize=26;try{f=r(549).Buffer}catch(t){}function l(t,e,r){for(var n=0,o=Math.min(t.length,r),i=e;i<o;i++){var h=t.charCodeAt(i)-48;n<<=4,n|=h>=49&&h<=54?h-49+10:h>=17&&h<=22?h-17+10:15&h}return n}function c(t,e,r,n){for(var o=0,h=Math.min(t.length,r),i=e;i<h;i++){var f=t.charCodeAt(i)-48;o*=n,o+=f>=49?f-49+10:f>=17?f-17+10:f}return o}h.isBN=function(t){return t instanceof h||null!==t&&"object"==typeof t&&t.constructor.wordSize===h.wordSize&&Array.isArray(t.words)},h.max=function(t,e){return t.cmp(e)>0?t:e},h.min=function(t,e){return t.cmp(e)<0?t:e},h.prototype._init=function(t,base,e){if("number"==typeof t)return this._initNumber(t,base,e);if("object"==typeof t)return this._initArray(t,base,e);"hex"===base&&(base=16),n(base===(0|base)&&base>=2&&base<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&r++,16===base?this._parseHex(t,r):this._parseBase(t,base,r),"-"===t[0]&&(this.negative=1),this.strip(),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initNumber=function(t,base,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(),base,e)},h.prototype._initArray=function(t,base,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 r,o,h=0;if("be"===e)for(i=t.length-1,r=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[r]|=o<<h&67108863,this.words[r+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,r++);else if("le"===e)for(i=0,r=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[r]|=o<<h&67108863,this.words[r+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,r++);return this.strip()},h.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n,o=0;for(i=t.length-6,r=0;i>=e;i-=6)n=l(t,i,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==e&&(n=l(t,e,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303),this.strip()},h.prototype._parseBase=function(t,base,e){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=base)r++;r--,n=n/base|0;for(var o=t.length-e,h=o%r,f=Math.min(o,o-h)+e,l=0,i=e;i<f;i+=r)l=c(t,i,i+r,base),this.imuln(n),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==h){var d=1;for(l=c(t,i,t.length,base),i=0;i<h;i++)d*=base;this.imuln(d),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},h.prototype.copy=function(t){t.words=new Array(this.length);for(var i=0;i<this.length;i++)t.words[i]=this.words[i];t.length=this.length,t.negative=this.negative,t.red=this.red},h.prototype.clone=function(){var t=new h(null);return this.copy(t),t},h.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},h.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var d=["","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"],m=[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],v=[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,143489
vendor: 39,380 bytes, line 2
207,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function y(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var a=0|t.words[0],b=0|e.words[0],o=a*b,h=67108863&o,f=o/67108864|0;r.words[0]=h;for(var l=1;l<n;l++){for(var c=f>>>26,d=67108863&f,m=Math.min(l,e.length-1),v=Math.max(0,l-t.length+1);v<=m;v++){var i=l-v|0;c+=(o=(a=0|t.words[i])*(b=0|e.words[v])+d)/67108864|0,d=67108863&o}r.words[l]=0|d,f=0|c}return 0!==f?r.words[l]=0|f:r.length--,r.strip()}h.prototype.toString=function(base,t){var e;if(t=0|t||1,16===(base=base||10)||"hex"===base){e="";for(var r=0,o=0,i=0;i<this.length;i++){var h=this.words[i],f=(16777215&(h<<r|o)).toString(16);e=0!==(o=h>>>24-r&16777215)||i!==this.length-1?d[6-f.length]+f+e:f+e,(r+=2)>=26&&(r-=26,i--)}for(0!==o&&(e=o.toString(16)+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(base===(0|base)&&base>=2&&base<=36){var l=m[base],c=v[base];e="";var y=this.clone();for(y.negative=0;!y.isZero();){var w=y.modn(c).toString(base);e=(y=y.idivn(c)).isZero()?w+e:d[l-w.length]+w+e}for(this.isZero()&&(e="0"+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}n(!1,"Base should be between 2 and 36")},h.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},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(t,e){return n(void 0!==f),this.toArrayLike(f,t,e)},h.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},h.prototype.toArrayLike=function(t,e,r){var o=this.byteLength(),h=r||Math.max(1,o);n(o<=h,"byte array longer than desired length"),n(h>0,"Requested array length <= 0"),this.strip();var b,i,f="le"===e,l=new t(h),q=this.clone();if(f){for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),l[i]=b;for(;i<h;i++)l[i]=0}else{for(i=0;i<h-o;i++)l[i]=0;for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),l[h-i-1]=b}return l},Math.clz32?h.prototype._countBits=function(t){return 32-Math.clz32(t)}:h.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},h.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},h.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;i<this.length;i++){var b=this._zeroBits(this.words[i]);if(t+=b,26!==b)break}return t},h.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},h.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},h.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},h.prototype.isNeg=function(){return 0!==this.negative},h.prototype.neg=function(){return this.clone().ineg()},h.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},h.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]|t.words[i];return this.strip()},h.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},h.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},h.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},h.prototype.iuand=function(t){var b;b=this.length>t.length?t:this;for(var i=0;i<b.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=b.length,this.strip()},h.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},h.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},h.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},h.prototype.iuxor=function(t){var a,b;this.length>t.length?(a=this,b=t):(a=t,b=this);for(var i=0;i<b.length;i++)this.words[i]=a.words[i]^b.words[i];if(this!==a)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=a.length,this.strip()},h.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},h.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},h.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},h.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},h.prototype.notn=function(t){return this.clone().inotn(t)},h.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,o=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<o:this.words[r]&~(1<<o),this.strip()},h.prototype.iadd=function(t){var e,a,b;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(a=this,b=t):(a=t,b=this);for(var r=0,i=0;i<b.length;i++)e=(0|a.words[i])+(0|b.words[i])+r,this.words[i]=67108863&e,r=e>>>26;for(;0!==r&&i<a.length;i++)e=(0|a.words[i])+r,this.words[i]=67108863&e,r=e>>>26;if(this.length=a.length,0!==r)this.words[this.length]=r,this.length++;else if(a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this},h.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},h.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var a,b,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(a=this,b=t):(a=t,b=this);for(var n=0,i=0;i<b.length;i++)n=(e=(0|a.words[i])-(0|b.words[i])+n)>>26,this.words[i]=67108863&e;for(;0!==n&&i<a.length;i++)n=(e=(0|a.words[i])+n)>>26,this.words[i]=67108863&e;if(0===n&&i<a.length&&a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=Math.max(this.length,i),a!==this&&(this.negative=1),this.strip()},h.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,r){var n,o,h,a=t.words,b=e.words,f=r.words,l=0,c=0|a[0],d=8191&c,m=c>>>13,v=0|a[1],y=8191&v,w=v>>>13,M=0|a[2],_=8191&M,S=M>>>13,E=0|a[3],k=8191&E,T=E>>>13,A=0|a[4],R=8191&A,x=A>>>13,O=0|a[5],I=8191&O,L=O>>>13,D=0|a[6],C=8191&D,P=D>>>13,B=0|a[7],N=8191&B,j=B>>>13,F=0|a[8],U=8191&F,K=F>>>13,z=0|a[9],H=8191&z,G=z>>>13,V=0|b[0],W=8191&V,Y=V>>>13,Z=0|b[1],X=8191&Z,$=Z>>>13,J=0|b[2],Q=8191&J,tt=J>>>13,et=0|b[3],it=8191&et,nt=et>>>13,ot=0|b[4],at=8191&ot,st=ot>>>13,ut=0|b[5],ht=8191&ut,ft=ut>>>13,lt=0|b[6],ct=8191&lt,pt=lt>>>13,mt=0|b[7],gt=8191&mt,vt=mt>>>13,yt=0|b[8],bt=8191&yt,wt=yt>>>13,Mt=0|b[9],_t=8191&Mt,St=Mt>>>13;r.negative=t.negative^e.negative,r.length=19;var Et=(l+(n=Math.imul(d,W))|0)+((8191&(o=(o=Math.imul(d,Y))+Math.imul(m,W)|0))<<13)|0;l=((h=Math.imul(m,Y))+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(y,W),o=(o=Math.imul(y,Y))+Math.imul(w,W)|0,h=Math.imul(w,Y);var kt=(l+(n=n+Math.imul(d,X)|0)|0)+((8191&(o=(o=o+Math.imul(d,$)|0)+Math.imul(m,X)|0))<<13)|0;l=((h=h+Math.imul(m,$)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(_,W),o=(o=Math.imul(_,Y))+Math.imul(S,W)|0,h=Math.imul(S,Y),n=n+Math.imul(y,X)|0,o=(o=o+Math.imul(y,$)|0)+Math.imul(w,X)|0,h=h+Math.imul(w,$)|0;var Tt=(l+(n=n+Math.imul(d,Q)|0)|0)+((8191&(o=(o=o+Math.imul(d,tt)|0)+Math.imul(m,Q)|0))<<13)|0;l=((h=h+Math.imul(m,tt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(k,W),o=(o=Math.imul(k,Y))+Math.imul(T,W)|0,h=Math.imul(T,Y),n=n+Math.imul(_,X)|0,o=(o=o+Math.imul(_,$)|0)+Math.imul(S,X)|0,h=h+Math.imul(S,$)|0,n=n+Math.imul(y,Q)|0,o=(o=o+Math.imul(y,tt)|0)+Math.imul(w,Q)|0,h=h+Math.imul(w,tt)|0;var At=(l+(n=n+Math.imul(d,it)|0)|0)+((8191&(o=(o=o+Math.imul(d,nt)|0)+Math.imul(m,it)|0))<<13)|0;l=((h=h+Math.imul(m,nt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(R,W),o=(o=Math.imul(R,Y))+Math.imul(x,W)|0,h=Math.imul(x,Y),n=n+Math.imul(k,X)|0,o=(o=o+Math.imul(k,$)|0)+Math.imul(T,X)|0,h=h+Math.imul(T,$)|0,n=n+Math.imul(_,Q)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(S,Q)|0,h=h+Math.imul(S,tt)|0,n=n+Math.imul(y,it)|0,o=(o=o+Math.imul(y,nt)|0)+Math.imul(w,it)|0,h=h+Math.imul(w,nt)|0;var Rt=(l+(n=n+Math.imul(d,at)|0)|0)+((8191&(o=(o=o+Math.imul(d,st)|0)+Math.imul(m,at)|0))<<13)|0;l=((h=h+Math.imul(m,st)|0)+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(I,W),o=(o=Math.imul(I,Y))+Math.imul(L,W)|0,h=Math.imul(L,Y),n=n+Math.imul(R,X)|0,o=(o=o+Math.imul(R,$)|0)+Math.imul(x,X)|0,h=h+Math.imul(x,$)|0,n=n+Math.imul(k,Q)|0,o=(o=o+Math.imul(k,tt)|0)+Math.imul(T,Q)|0,h=h+Math.imul(T,tt)|0,n=n+Math.imul(_,it)|0,o=(o=o+Math.imul(_,nt)|0)+Math.imul(S,it)|0,h=h+Math.imul(S,nt)|0,n=n+Math.imul(y,at)|0,o=(o=o+Math.imul(y,st)|0)+Math.imul(w,at)|0,h=h+Math.imul(w,st)|0;var xt=(l+(n=n+Math.imul(d,ht)|0)|0)+((8191&(o=(o=o+Math.imul(d,ft)|0)+Math.imul(m,ht)|0))<<13)|0;l=((h=h+Math.imul(m,ft)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(C,W),o=(o=Math.imul(C,Y))+Math.imul(P,W)|0,h=Math.imul(P,Y),n=n+Math.imul(I,X)|0,o=(o=o+Math.imul(I,$)|0)+Math.imul(L,X)|0,h=h+Math.imul(L,$)|0,n=n+Math.imul(R,Q)|0,o=(o=o+Math.imul(R,tt)|0)+Math.imul(x,Q)|0,h=h+Math.imul(x,tt)|0,n=n+Math.imul(k,it)|0,o=(o=o+Math.imul(k,nt)|0)+Math.imul(T,it)|0,h=h+Math.imul(T,nt)|0,n=n+Math.imul(_,at)|0,o=(o=o+Math.imul(_,st)|0)+Math.imul(S,at)|0,h=h+Math.imul(S,st)|0,n=n+Math.imul(y,ht)|0,o=(o=o+Math.imul(y,ft)|0)+Math.imul(w,ht)|0,h=h+Math.imul(w,ft)|0;var Ot=(l+(n=n+Math.imul(d,ct)|0)|0)+((8191&(o=(o=o+Math.imul(d,pt)|0)+Math.imul(m,ct)|0))<<13)|0;l=((h=h+Math.imul(m,pt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(N,W),o=(o=Math.imul(N,Y))+Math.imul(j,W)|0,h=Math.imul(j,Y),n=n+Math.imul(C,X)|0,o=(o=o+Math.imul(C,$)|0)+Math.imul(P,X)|0,h=h+Math.imul(P,$)|0,n=n+Math.imul(I,Q)|0,o=(o=o+Math.imul(I,tt)|0)+Math.imul(L,Q)|0,h=h+Math.imul(L,tt)|0,n=n+Math.imul(R,it)|0,o=(o=o+Math.imul(R,nt)|0)+Math.imul(x,it)|0,h=h+Math.imul(x,nt)|0,n=n+Math.imul(k,at)|0,o=(o=o+Math.imul(k,st)|0)+Math.imul(T,at)|0,h=h+Math.imul(T,st)|0,n=n+Math.imul(_,ht)|0,o=(o=o+Math.imul(_,ft)|0)+Math.imul(S,ht)|0,h=h+Math.imul(S,ft)|0,n=n+Math.imul(y,ct)|0,o=(o=o+Math.imul(y,pt)|0)+Math.imul(w,ct)|0,h=h+Math.imul(w,pt)|0;var It=(l+(n=n+Math.imul(d,gt)|0)|0)+((8191&(o=(o=o+Math.imul(d,vt)|0)+Math.imul(m,gt)|0))<<13)|0;l=((h=h+Math.imul(m,vt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,W),o=(o=Math.imul(U,Y))+Math.imul(K,W)|0,h=Math.imul(K,Y),n=n+Math.imul(N,X)|0,o=(o=o+Math.imul(N,$)|0)+Math.imul(j,X)|0,h=h+Math.imul(j,$)|0,n=n+Math.imul(C,Q)|0,o=(o=o+Math.imul(C,tt)|0)+Math.imul(P,Q)|0,h=h+Math.imul(P,tt)|0,n=n+Math.imul(I,it)|0,o=(o=o+Math.imul(I,nt)|0)+Math.imul(L,it)|0,h=h+Math.imul(L,nt)|0,n=n+Math.imul(R,at)|0,o=(o=o+Math.imul(R,st)|0)+Math.imul(x,at)|0,h=h+Math.imul(x,st)|0,n=n+Math.imul(k,ht)|0,o=(o=o+Math.imul(k,ft)|0)+Math.imul(T,ht)|0,h=h+Math.imul(T,ft)|0,n=n+Math.imul(_,ct)|0,o=(o=o+Math.imul(_,pt)|0)+Math.imul(S,ct)|0,h=h+Math.imul(S,pt)|0,n=n+Math.imul(y,gt)|0,o=(o=o+Math.imul(y,vt)|0)+Math.imul(w,gt)|0,h=h+Math.imul(w,vt)|0;var Lt=(l+(n=n+Math.imul(d,bt)|0)|0)+((8191&(o=(o=o+Math.imul(d,wt)|0)+Math.imul(m,bt)|0))<<13)|0;l=((h=h+Math.imul(m,wt)|0)+(o>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(H,W),o=(o=Math.imul(H,Y))+Math.imul(G,W)|0,h=Math.imul(G,Y),n=n+Math.imul(U,X)|0,o=(o=o+Math.imul(U,$)|0)+Math.imul(K,X)|0,h=h+Math.imul(K,$)|0,n=n+Math.imul(N,Q)|0,o=(o=o+Math.imul(N,tt)|0)+Math.imul(j,Q)|0,h=h+Math.imul(j,tt)|0,n=n+Math.imul(C,it)|0,o=(o=o+Math.imul(C,nt)|0)+Math.imul(P,it)|0,h=h+Math.imul(P,nt)|0,n=n+Math.imul(I,at)|0,o=(o=o+Math.imul(I,st)|0)+Math.imul(L,at)|0,h=h+Math.imul(L,st)|0,n=n+Math.imul(R,ht)|0,o=(o=o+Math.imul(R,ft)|0)+Math.imul(x,ht)|0,h=h+Math.imul(x,ft)|0,n=n+Math.imul(k,ct)|0,o=(o=o+Math.imul(k,pt)|0)+Math.imul(T,ct)|0,h=h+Math.imul(T,pt)|0,n=n+Math.imul(_,gt)|0,o=(o=o+Math.imul(_,vt)|0)+Math.imul(S,gt)|0,h=h+Math.imul(S,vt)|0,n=n+Math.imul(y,bt)|0,o=(o=o+Math.imul(y,wt)|0)+Math.imul(w,bt)|0,h=h+Math.imul(w,wt)|0;var Dt=(l+(n=n+Math.imul(d,_t)|0)|0)+((8191&(o=(o=o+Math.imul(d,St)|0)+Math.imul(m,_t)|0))<<13)|0;l=((h=h+Math.imul(m,St)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(H,X),o=(o=Math.imul(H,$))+Math.imul(G,X)|0,h=Math.imul(G,$),n=n+Math.imul(U,Q)|0,o=(o=o+Math.imul(U,tt)|0)+Math.imul(K,Q)|0,h=h+Math.imul(K,tt)|0,n=n+Math.imul(N,it)|0,o=(o=o+Math.imul(N,nt)|0)+Math.imul(j,it)|0,h=h+Math.imul(j,nt)|0,n=n+Math.imul(C,at)|0,o=(o=o+Math.imul(C,st)|0)+Math.imul(P,at)|0,h=h+Math.imul(P,st)|0,n=n+Math.imul(I,ht)|0,o=(o=o+Math.imul(I,ft)|0)+Math.imul(L,ht)|0,h=h+Math.imul(L,ft)|0,n=n+Math.imul(R,ct)|0,o=(o=o+Math.imul(R,pt)|0)+Math.imul(x,ct)|0,h=h+Math.imul(x,pt)|0,n=n+Math.imul(k,gt)|0,o=(o=o+Math.imul(k,vt)|0)+Math.imul(T,gt)|0,h=h+Math.imul(T,vt)|0,n=n+Math.imul(_,bt)|0,o=(o=o+Math.imul(_,wt)|0)+Math.imul(S,bt)|0,h=h+Math.imul(S,wt)|0;var Ct=(l+(n=n+Math.imul(y,_t)|0)|0)+((8191&(o=(o=o+Math.imul(y,St)|0)+Math.imul(w,_t)|0))<<13)|0;l=((h=h+Math.imul(w,St)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(H,Q),o=(o=Math.imul(H,tt))+Math.imul(G,Q)|0,h=Math.imul(G,tt),n=n+Math.imul(U,it)|0,o=(o=o+Math.imul(U,nt)|0)+Math.imul(K,it)|0,h=h+Math.imul(K,nt)|0,n=n+Math.imul(N,at)|0,o=(o=o+Math.imul(N,st)|0)+Math.imul(j,at)|0,h=h+Math.imul(j,st)|0,n=n+Math.imul(C,ht)|0,o=(o=o+Math.imul(C,ft)|0)+Math.imul(P,ht)|0,h=h+Math.imul(P,ft)|0,n=n+Math.imul(I,ct)|0,o=(o=o+Math.imul(I,pt)|0)+Math.imul(L,ct)|0,h=h+Math.imul(L,pt)|0,n=n+Math.imul(R,gt)|0,o=(o=o+Math.imul(R,vt)|0)+Math.imul(x,gt)|0,h=h+Math.imul(x,vt)|0,n=n+Math.imul(k,bt)|0,o=(o=o+Math.imul(k,wt)|0)+Math.imul(T,bt)|0,h=h+Math.imul(T,wt)|0;var Pt=(l+(n=n+Math.imul(_,_t)|0)|0)+((8191&(o=(o=o+Math.imul(_,St)|0)+Math.imul(S,_t)|0))<<13)|0;l=((h=h+Math.imul(S,St)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(H,it),o=(o=Math.imul(H,nt))+Math.imul(G,it)|0,h=Math.imul(G,nt),n=n+Math.imul(U,at)|0,o=(o=o+Math.imul(U,st)|0)+Math.imul(K,at)|0,h=h+Math.imul(K,st)|0,n=n+Math.imul(N,ht)|0,o=(o=o+Math.imul(N,ft)|0)+Math.imul(j,ht)|0,h=h+Math.imul(j,ft)|0,n=n+Math.imul(C,ct)|0,o=(o=o+Math.imul(C,pt)|0)+Math.imul(P,ct)|0,h=h+Math.imul(P,pt)|0,n=n+Math.imul(I,gt)|0,o=(o=o+Math.imul(I,vt)|0)+Math.imul(L,gt)|0,h=h+Math.imul(L,vt)|0,n=n+Math.imul(R,bt)|0,o=(o=o+Math.imul(R,wt)|0)+Math.imul(x,bt)|0,h=h+Math.imul(x,wt)|0;var Bt=(l+(n=n+Math.imul(k,_t)|0)|0)+((8191&(o=(o=o+Math.imul(k,St)|0)+Math.imul(T,_t)|0))<<13)|0;l=((h=h+Math.imul(T,St)|0)+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(H,at),o=(o=Math.imul(H,st))+Math.imul(G,at)|0,h=Math.imul(G,st),n=n+Math.imul(U,ht)|0,o=(o=o+Math.imul(U,ft)|0)+Math.imul(K,ht)|0,h=h+Math.imul(K,ft)|0,n=n+Math.imul(N,ct)|0,o=(o=o+Math.imul(N,pt)|0)+Math.imul(j,ct)|0,h=h+Math.imul(j,pt)|0,n=n+Math.imul(C,gt)|0,o=(o=o+Math.imul(C,vt)|0)+Math.imul(P,gt)|0,h=h+Math.imul(P,vt)|0,n=n+Math.imul(I,bt)|0,o=(o=o+Math.imul(I,wt)|0)+Math.imul(L,bt)|0,h=h+Math.imul(L,wt)|0;var Nt=(l+(n=n+Math.imul(R,_t)|0)|0)+((8191&(o=(o=o+Math.imul(R,St)|0)+Math.imul(x,_t)|0))<<13)|0;l=((h=h+Math.imul(x,St)|0)+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(H,ht),o=(o=Math.imul(H,ft))+Math.imul(G,ht)|0,h=Math.imul(G,ft),n=n+Math.imul(U,ct)|0,o=(o=o+Math.imul(U,pt)|0)+Math.imul(K,ct)|0,h=h+Math.imul(K,pt)|0,n=n+Math.imul(N,gt)|0,o=(o=o+Math.imul(N,vt)|0)+Math.imul(j,gt)|0,h=h+Math.imul(j,vt)|0,n=n+Math.imul(C,bt)|0,o=(o=o+Math.imul(C,wt)|0)+Math.imul(P,bt)|0,h=h+Math.imul(P,wt)|0;var jt=(l+(n=n+Math.imul(I,_t)|0)|0)+((8191&(o=(o=o+Math.imul(I,St)|0)+Math.imul(L,_t)|0))<<13)|0;l=((h=h+Math.imul(L,St)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(H,ct),o=(o=Math.imul(H,pt))+Math.imul(G,ct)|0,h=Math.imul(G,pt),n=n+Math.imul(U,gt)|0,o=(o=o+Math.imul(U,vt)|0)+Math.imul(K,gt)|0,h=h+Math.imul(K,vt)|0,n=n+Math.imul(N,bt)|0,o=(o=o+Math.imul(N,wt)|0)+Math.imul(j,bt)|0,h=h+Math.imul(j,wt)|0;var Ft=(l+(n=n+Math.imul(C,_t)|0)|0)+((8191&(o=(o=o+Math.imul(C,St)|0)+Math.imul(P,_t)|0))<<13)|0;l=((h=h+Math.imul(P,St)|0)+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,n=Math.imul(H,gt),o=(o=Math.imul(H,vt))+Math.imul(G,gt)|0,h=Math.imul(G,vt),n=n+Math.imul(U,bt)|0,o=(o=o+Math.imul(U,wt)|0)+Math.imul(K,bt)|0,h=h+Math.imul(K,wt)|0;var Ut=(l+(n=n+Math.imul(N,_t)|0)|0)+((8191&(o=(o=o+Math.imul(N,St)|0)+Math.imul(j,_t)|0))<<13)|0;l=((h=h+Math.imul(j,St)|0)+(o>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,n=Math.imul(H,bt),o=(o=Math.imul(H,wt))+Math.imul(G,bt)|0,h=Math.imul(G,wt);var qt=(l+(n=n+Math.imul(U,_t)|0)|0)+((8191&(o=(o=o+Math.imul(U,St)|0)+Math.imul(K,_t)|0))<<13)|0;l=((h=h+Math.imul(K,St)|0)+(o>>>13)|0)+(qt>>>26)|0,qt&=67108863;var Kt=(l+(n=Math.imul(H,_t))|0)+((8191&(o=(o=Math.imul(H,St))+Math.imul(G,_t)|0))<<13)|0;return l=((h=Math.imul(G,St))+(o>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,f[0]=Et,f[1]=kt,f[2]=Tt,f[3]=At,f[4]=Rt,f[5]=xt,f[6]=Ot,f[7]=It,f[8]=Lt,f[9]=Dt,f[10]=Ct,f[11]=Pt,f[12]=Bt,f[13]=Nt,f[14]=jt,f[15]=Ft,f[16]=Ut,f[17]=qt,f[18]=Kt,0!==l&&(f[19]=l,r.length++),r};function M(t,e,r){return(new _).mulp(t,e,r)}function _(t,e){this.x=t,this.y=e}Math.imul||(w=y),h.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?w(this,t,e):r<63?y(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,o=0,h=0;h<r.length-1;h++){var f=o;o=0;for(var l=67108863&n,c=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=c;d++){var i=h-d,m=(0|t.words[i])*(0|e.words[d]),v=67108863&m;l=67108863&(v=v+l|0),o+=(f=(f=f+(m/67108864|0)|0)+(v>>>26)|0)>>>26,f&=67108863}r.words[h]=l,n=f,f=o}return 0!==n?r.words[h]=n:r.length--,r.strip()}(this,t,e):M(this,t,e)},_.prototype.makeRBT=function(t){for(var e=new Array(t),r=h.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,r,t);return e},_.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},_.prototype.permute=function(t,e,r,n,o,h){for(var i=0;i<h;i++)n[i]=e[t[i]],o[i]=r[t[i]]},_.prototype.transform=function(t,e,r,n,o,h){this.permute(h,t,e,r,n,o);for(var s=1;s<o;s<<=1)for(var f=s<<1,l=Math.cos(2*Math.PI/f),c=Math.sin(2*Math.PI/f),p=0;p<o;p+=f)for(var d=l,m=c,v=0;v<s;v++){var y=r[p+v],w=n[p+v],M=r[p+v+s],_=n[p+v+s],S=d*M-m*_;_=d*_+m*M,M=S,r[p+v]=y+M,n[p+v]=w+_,r[p+v+s]=y-M,n[p+v+s]=w-_,v!==f&&(S=l*d-c*m,m=l*m+c*d,d=S)}},_.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},_.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var i=0;i<r/2;i++){var n=t[i];t[i]=t[r-i-1],t[r-i-1]=n,n=e[i],e[i]=-e[r-i-1],e[r-i-1]=-n}},_.prototype.normalize13b=function(t,e){for(var r=0,i=0;i<e/2;i++){var n=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+r;t[i]=67108863&n,r=n<67108864?0:n/67108864|0}return t},_.prototype.convert13b=function(t,e,r,o){for(var h=0,i=0;i<e;i++)h+=0|t[i],r[2*i]=8191&h,h>>>=13,r[2*i+1]=8191&h,h>>>=13;for(i=2*e;i<o;++i)r[i]=0;n(0===h),n(0==(-8192&h))},_.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},_.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(n),h=this.stub(n),f=new Array(n),l=new Array(n),c=new Array(n),d=new Array(n),m=new Array(n),v=new Array(n),y=r.words;y.length=n,this.convert13b(t.words,t.length,f,n),this.convert13b(e.words,e.length,d,n),this.transform(f,h,l,c,n,o),this.transform(d,h,m,v,n,o);for(var i=0;i<n;i++){var w=l[i]*m[i]-c[i]*v[i];c[i]=l[i]*v[i]+c[i]*m[i],l[i]=w}return this.conjugate(l,c,n),this.transform(l,c,y,h,n,o),this.conjugate(y,h,n),this.normalize13b(y,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},h.prototype.mul=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},h.prototype.mulf=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),M(this,t,e)},h.prototype.imul=function(t){return this.clone().mulTo(t,this)},h.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,i=0;i<this.length;i++){var r=(0|this.words[i])*t,o=(67108863&r)+(67108863&e);e>>=26,e+=r/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},h.prototype.muln=function(t){return this.clone().imuln(t)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,o=r%26;e[r]=(t.words[n]&1<<o)>>>o}return e}(t);if(0===e.length)return new h(1);for(var r=this,i=0;i<e.length&&0===e[i];i++,r=r.sqr());if(++i<e.length)for(var q=r.sqr();i<e.length;i++,q=q.sqr())0!==e[i]&&(r=r.mul(q));return r},h.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var i,e=t%26,s=(t-e)/26,r=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var h=this.words[i]&r,f=(0|this.words[i])-h<<e;this.words[i]=f|o,o=h>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i<s;i++)this.words[i]=0;this.length+=s}return this.strip()},h.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},h.prototype.iushrn=function(t,e,r){var o;n("number"==typeof t&&t>=0),o=e?(e-e%26)/26:0;var h=t%26,s=Math.min((t-h)/26,this.length),mask=67108863^67108863>>>h<<h,f=r;if(o-=s,o=Math.max(0,o),f){for(var i=0;i<s;i++)f.words[i]=this.words[i];f.length=s}if(0===s);else if(this.length>s)for(this.length-=s,i=0;i<this.length;i++)this.words[i]=this.words[i+s];else this.words[0]=0,this.length=1;var l=0;for(i=this.length-1;i>=0&&(0!==l||i>=o);i--){var c=0|this.words[i];this.words[i]=l<<26-h|c>>>h,l=c&mask}return f&&0!==l&&(f.words[f.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},h.prototype.shln=function(t){return this.clone().ishln(t)},h.prototype.ushln=function(t){return this.clone().iushln(t)},h.prototype.shrn=function(t){return this.clone().ishrn(t)},h.prototype.ushrn=function(t){return this.clone().iushrn(t)},h.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26,q=1<<e;return!(this.length<=s)&&!!(this.words[s]&q)},h.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==e&&s++,this.length=Math.min(s,this.length),0!==e){var mask=67108863^67108863>>>e<<e;this.words[this.length-1]&=mask}return this.strip()},h.prototype.maskn=function(t){return this.clone().imaskn(t)},h.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)},h.prototype._iaddn=function(t){this.words[0]+=t;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},h.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 i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this.strip()},h.prototype.addn=function(t){return this.clone().iaddn(t)},h.prototype.subn=function(t){return this.clone().isubn(t)},h.prototype.iabs=function(){return this.negative=0,this},h.prototype.abs=function(){return this.clone().iabs()},h.prototype._ishlnsubmul=function(t,e,r){var i,o,h=t.length+r;this._expand(h);var f=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+f;var l=(0|t.words[i])*e;f=((o-=67108863&l)>>26)-(l/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)f=(o=(0|this.words[i+r])+f)>>26,this.words[i+r]=67108863&o;if(0===f)return this.strip();for(n(-1===f),f=0,i=0;i<this.length;i++)f=(o=-(0|this.words[i])+f)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},h.prototype._wordDiv=function(t,e){var r=(this.length,t.length),a=this.clone(),b=t,n=0|b.words[b.length-1];0!==(r=26-this._countBits(n))&&(b=b.ushln(r),a.iushln(r),n=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==e){(q=new h(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i<q.length;i++)q.words[i]=0}var f=a.clone()._ishlnsubmul(b,1,o);0===f.negative&&(a=f,q&&(q.words[o]=1));for(var l=o-1;l>=0;l--){var c=67108864*(0|a.words[b.length+l])+(0|a.words[b.length+l-1]);for(c=Math.min(c/n|0,67108863),a._ishlnsubmul(b,c,l);0!==a.negative;)c--,a.negative=0,a._ishlnsubmul(b,1,l),a.isZero()||(a.negative^=1);q&&(q.words[l]=c)}return q&&q.strip(),a.strip(),"div"!==e&&0!==r&&a.iushrn(r),{div:q||null,mod:a}},h.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new h(0),mod:new h(0)}:0!==this.negative&&0===t.negative?(f=this.neg().divmod(t,e),"mod"!==e&&(div=f.div.neg()),"div"!==e&&(o=f.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:div,mod:o}):0===this.negative&&0!==t.negative?(f=this.divmod(t.neg(),e),"mod"!==e&&(div=f.div.neg()),{div:div,mod:f.mod}):0!=(this.negative&t.negative)?(f=this.neg().divmod(t.neg(),e),"div"!==e&&(o=f.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:f.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new h(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new h(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new h(this.modn(t.words[0]))}:this._wordDiv(t,e);var div,o,f},h.prototype.div=function(t){return this.divmod(t,"div",!1).div},h.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},h.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},h.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),o=t.andln(1),h=r.cmp(n);return h<0||1===o&&0===h?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},h.prototype.modn=function(t){n(t<=67108863);for(var p=(1<<26)%t,e=0,i=this.length-1;i>=0;i--)e=(p*e+(0|this.words[i]))%t;return e},h.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},h.prototype.divn=function(t){return this.clone().idivn(t)},h.prototype.egcd=function(p){n(0===p.negative),n(!p.isZero());var t=this,e=p.clone();t=0!==t.negative?t.umod(p):t.clone();for(var r=new h(1),o=new h(0),f=new h(0),l=new h(1),g=0;t.isEven()&&e.isEven();)t.iushrn(1),e.iushrn(1),++g;for(var c=e.clone(),d=t.clone();!t.isZero();){for(var i=0,m=1;0==(t.words[0]&m)&&i<26;++i,m<<=1);if(i>0)for(t.iushrn(i);i-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(c),o.isub(d)),r.iushrn(1),o.iushrn(1);for(var v=0,y=1;0==(e.words[0]&y)&&v<26;++v,y<<=1);if(v>0)for(e.iushrn(v);v-- >0;)(f.isOdd()||l.isOdd())&&(f.iadd(c),l.isub(d)),f.iushrn(1),l.iushrn(1);t.cmp(e)>=0?(t.isub(e),r.isub(f),o.isub(l)):(e.isub(t),f.isub(r),l.isub(o))}return{a:f,b:l,gcd:e.iushln(g)}},h.prototype._invmp=function(p){n(0===p.negative),n(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var t,e=new h(1),r=new h(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,f=1;0==(a.words[0]&f)&&i<26;++i,f<<=1);if(i>0)for(a.iushrn(i);i-- >0;)e.isOdd()&&e.iadd(o),e.iushrn(1);for(var l=0,c=1;0==(b.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(b.iushrn(l);l-- >0;)r.isOdd()&&r.iadd(o),r.iushrn(1);a.cmp(b)>=0?(a.isub(b),e.isub(r)):(b.isub(a),r.isub(e))}return(t=0===a.cmpn(1)?e:r).cmpn(0)<0&&t.iadd(p),t},h.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),b=t.clone();a.negative=0,b.negative=0;for(var e=0;a.isEven()&&b.isEven();e++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var r=a.cmp(b);if(r<0){var n=a;a=b,b=n}else if(0===r||0===b.cmpn(1))break;a.isub(b)}return b.iushln(e)},h.prototype.invm=function(t){return this.egcd(t).a.umod(t)},h.prototype.isEven=function(){return 0==(1&this.words[0])},h.prototype.isOdd=function(){return 1==(1&this.words[0])},h.prototype.andln=function(t){return this.words[0]&t},h.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,s=(t-e)/26,q=1<<e;if(this.length<=s)return this._expand(s+1),this.words[s]|=q,this;for(var r=q,i=s;0!==r&&i<this.length;i++){var o=0|this.words[i];r=(o+=r)>>>26,o&=67108863,this.words[i]=o}return 0!==r&&(this.words[i]=r,this.length++),this},h.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},h.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},h.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},h.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var a=0|this.words[i],b=0|t.words[i];if(a!==b){a<b?e=-1:a>b&&(e=1);break}}return e},h.prototype.gtn=function(t){return 1===this.cmpn(t)},h.prototype.gt=function(t){return 1===this.cmp(t)},h.prototype.gten=function(t){return this.cmpn(t)>=0},h.prototype.gte=function(t){return this.cmp(t)>=0},h.prototype.ltn=function(t){return-1===this.cmpn(t)},h.prototype.lt=function(t){return-1===this.cmp(t)},h.prototype.lten=function(t){return this.cmpn(t)<=0},h.prototype.lte=function(t){return this.cmp(t)<=0},h.prototype.eqn=function(t){return 0===this.cmpn(t)},h.prototype.eq=function(t){return 0===this.cmp(t)},h.red=function(t){return new x(t)},h.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)},h.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(t){return this.red=t,this},h.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},h.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},h.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},h.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},h.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},h.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},h.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},h.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},h.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var S={k256:null,p224:null,p192:null,p25519:null};function E(t,p){this.name=t,this.p=new h(p,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function k(){E.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function T(){E.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){E.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function R(){E.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"==typeof t){var e=h._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function O(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new h(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)}E.prototype._tmp=function(){var t=new h(null);return t.words=new Array(Math.ceil(this.n/13)),t},E.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},E.prototype.split=function(input,t){input.iushrn(this.n,0,t)},E.prototype.imulK=function(t){return t.imul(this.k)},o(k,E),k.prototype.split=function(input,output){for(var t=Math.min(input.length,9),i=0;i<t;i++)output.words[i]=input.words[i];if(output.length=t,input.length<=9)return input.words[0]=0,void(input.length=1);var e=input.words[9];for(output.words[output.length++]=4194303&e,i=10;i<input.length;i++){var r=0|input.words[i];input.words[i-10]=(4194303&r)<<4|e>>>22,e=r}e>>>=22,input.words[i-10]=e,0===e&&input.length>10?input.length-=10:input.length-=9},k.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(T,E),o(A,E),o(R,E),R.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=19*(0|t.words[i])+e,n=67108863&r;r>>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},h._prime=function(t){if(S[t])return S[t];var e;if("k256"===t)e=new k;else if("p224"===t)e=new T;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new R}return S[t]=e,e},x.prototype._verify1=function(a){n(0===a.negative,"red works only with positives"),n(a.red,"red works only with red numbers")},x.prototype._verify2=function(a,b){n(0==(a.negative|b.negative),"red works only with positives"),n(a.red&&a.red===b.red,"red works only with red numbers")},x.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)},x.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},x.prototype.add=function(a,b){this._verify2(a,b);var t=a.add(b);return t.cmp(this.m)>=0&&t.isub(this.m),t._forceRed(this)},x.prototype.iadd=function(a,b){this._verify2(a,b);var t=a.iadd(b);return t.cmp(this.m)>=0&&t.isub(this.m),t},x.prototype.sub=function(a,b){this._verify2(a,b);var t=a.sub(b);return t.cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},x.prototype.isub=function(a,b){this._verify2(a,b);var t=a.isub(b);return t.cmpn(0)<0&&t.iadd(this.m),t},x.prototype.shl=function(a,t){return this._verify1(a),this.imod(a.ushln(t))},x.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b))},x.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b))},x.prototype.isqr=function(a){return this.imul(a,a.clone())},x.prototype.sqr=function(a){return this.mul(a,a)},x.prototype.sqrt=function(a){if(a.isZero())return a.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var e=this.m.add(new h(1)).iushrn(2);return this.pow(a,e)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);n(!q.isZero());var r=new h(1).toRed(this),o=r.redNeg(),f=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new h(2*l*l).toRed(this);0!==this.pow(l,f).cmp(o);)l.redIAdd(o);for(var c=this.pow(l,q),d=this.pow(a,q.addn(1).iushrn(1)),m=this.pow(a,q),v=s;0!==m.cmp(r);){for(var y=m,i=0;0!==y.cmp(r);i++)y=y.redSqr();n(i<v);var b=this.pow(c,new h(1).iushln(v-i-1));d=d.redMul(b),c=b.redSqr(),m=m.redMul(c),v=i}return d},x.prototype.invm=function(a){var t=a._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},x.prototype.pow=function(a,t){if(t.isZero())return new h(1).toRed(this);if(0===t.cmpn(1))return a.clone();var e=new Array(16);e[0]=new h(1).toRed(this),e[1]=a;for(var i=2;i<e.length;i++)e[i]=this.mul(e[i-1],a);var r=e[0],n=0,o=0,f=t.bitLength()%26;for(0===f&&(f=26),i=t.length-1;i>=0;i--){for(var l=t.words[i],c=f-1;c>=0;c--){var d=l>>c&1;r!==e[0]&&(r=this.sqr(r)),0!==d||0!==n?(n<<=1,n|=d,(4===++o||0===i&&0===c)&&(r=this.mul(r,e[n]),o=0,n=0)):o=0}f=26}return r},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},h.mont=function(t){return new O(t)},o(O,x),O.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},O.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},O.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var t=a.imul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},O.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new h(0)._forceRed(this);var t=a.mul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},O.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(79)(t))},function(t,e,r){var n=r(550),o=r(180);function h(t){this.rand=t||new o.Rand}t.exports=h,h.create=function(t){return new h(t)},h.prototype._randbelow=function(t){var e=t.bitLength(),r=Math.ceil(e/8);do{var a=new n(this.rand.generate(r))}while(a.cmp(t)>=0);return a},h.prototype._randrange=function(t,e){var r=e.sub(t);return t.add(this._randbelow(r))},h.prototype.test=function(t,e,r){var o=t.bitLength(),h=n.mont(t),f=new n(1).toRed(h);e||(e=Math.max(1,o/48|0));for(var l=t.subn(1),s=0;!l.testn(s);s++);for(var c=t.shrn(s),d=l.toRed(h);e>0;e--){var a=this._randrange(new n(2),l);
vendor: 12,825 bytes, line 2
2r&&r(a);var m=a.toRed(h).redPow(c);if(0!==m.cmp(f)&&0!==m.cmp(d)){for(var i=1;i<s;i++){if(0===(m=m.redSqr()).cmp(f))return!1;if(0===m.cmp(d))break}if(i===s)return!1}}return!0},h.prototype.getDivisor=function(t,e){var r=t.bitLength(),o=n.mont(t),h=new n(1).toRed(o);e||(e=Math.max(1,r/48|0));for(var f=t.subn(1),s=0;!f.testn(s);s++);for(var l=t.shrn(s),c=f.toRed(o);e>0;e--){var a=this._randrange(new n(2),f),g=t.gcd(a);if(0!==g.cmpn(1))return g;var d=a.toRed(o).redPow(l);if(0!==d.cmp(h)&&0!==d.cmp(c)){for(var i=1;i<s;i++){if(0===(d=d.redSqr()).cmp(h))return d.fromRed().subn(1).gcd(t);if(0===d.cmp(c))break}if(i===s)return(d=d.redSqr()).fromRed().subn(1).gcd(t)}}return!1}},function(t,e,r){"use strict";var n=e;function o(t){return 1===t.length?"0"+t:t}function h(t){for(var e="",i=0;i<t.length;i++)e+=o(t[i].toString(16));return e}n.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"!=typeof t){for(var i=0;i<t.length;i++)r[i]=0|t[i];return r}if("hex"===e){(t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t);for(i=0;i<t.length;i+=2)r.push(parseInt(t[i]+t[i+1],16))}else for(i=0;i<t.length;i++){var n=t.charCodeAt(i),o=n>>8,h=255&n;o?r.push(o,h):r.push(h)}return r},n.zero2=o,n.toHex=h,n.encode=function(t,e){return"hex"===e?h(t):t}},function(t,e,r){"use strict";var n=e;n.base=r(136),n.short=r(560),n.mont=r(561),n.edwards=r(562)},function(t,e,r){"use strict";var n=r(50).rotr32;function o(t,e,r){return t&e^~t&r}function h(t,e,r){return t&e^t&r^e&r}function f(t,e,r){return t^e^r}e.ft_1=function(s,t,e,r){return 0===s?o(t,e,r):1===s||3===s?f(t,e,r):2===s?h(t,e,r):void 0},e.ch32=o,e.maj32=h,e.p32=f,e.s0_256=function(t){return n(t,2)^n(t,13)^n(t,22)},e.s1_256=function(t){return n(t,6)^n(t,11)^n(t,25)},e.g0_256=function(t){return n(t,7)^n(t,18)^t>>>3},e.g1_256=function(t){return n(t,17)^n(t,19)^t>>>10}},function(t,e,r){"use strict";var n=r(50),o=r(112),h=r(312),f=r(44),l=n.sum32,c=n.sum32_4,d=n.sum32_5,m=h.ch32,v=h.maj32,y=h.s0_256,w=h.s1_256,M=h.g0_256,_=h.g1_256,S=o.BlockHash,E=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function k(){if(!(this instanceof k))return new k;S.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=E,this.W=new Array(64)}n.inherits(k,S),t.exports=k,k.blockSize=512,k.outSize=256,k.hmacStrength=192,k.padLength=64,k.prototype._update=function(t,e){for(var r=this.W,i=0;i<16;i++)r[i]=t[e+i];for(;i<r.length;i++)r[i]=c(_(r[i-2]),r[i-7],M(r[i-15]),r[i-16]);var a=this.h[0],b=this.h[1],n=this.h[2],o=this.h[3],h=this.h[4],S=this.h[5],g=this.h[6],E=this.h[7];for(f(this.k.length===r.length),i=0;i<r.length;i++){var k=d(E,w(h),m(h,S,g),this.k[i],r[i]),T=l(y(a),v(a,b,n));E=g,g=S,S=h,h=l(o,k),o=n,n=b,b=a,a=l(k,T)}this.h[0]=l(this.h[0],a),this.h[1]=l(this.h[1],b),this.h[2]=l(this.h[2],n),this.h[3]=l(this.h[3],o),this.h[4]=l(this.h[4],h),this.h[5]=l(this.h[5],S),this.h[6]=l(this.h[6],g),this.h[7]=l(this.h[7],E)},k.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(t,e,r){"use strict";var n=r(50),o=r(112),h=r(44),f=n.rotr64_hi,l=n.rotr64_lo,c=n.shr64_hi,d=n.shr64_lo,m=n.sum64,v=n.sum64_hi,y=n.sum64_lo,w=n.sum64_4_hi,M=n.sum64_4_lo,_=n.sum64_5_hi,S=n.sum64_5_lo,E=o.BlockHash,k=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function T(){if(!(this instanceof T))return new T;E.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=k,this.W=new Array(160)}function A(t,e,r,n,o){var h=t&r^~t&o;return h<0&&(h+=4294967296),h}function R(t,e,r,n,o,h){var f=e&n^~e&h;return f<0&&(f+=4294967296),f}function x(t,e,r,n,o){var h=t&r^t&o^r&o;return h<0&&(h+=4294967296),h}function O(t,e,r,n,o,h){var f=e&n^e&h^n&h;return f<0&&(f+=4294967296),f}function I(t,e){var r=f(t,e,28)^f(e,t,2)^f(e,t,7);return r<0&&(r+=4294967296),r}function L(t,e){var r=l(t,e,28)^l(e,t,2)^l(e,t,7);return r<0&&(r+=4294967296),r}function D(t,e){var r=f(t,e,14)^f(t,e,18)^f(e,t,9);return r<0&&(r+=4294967296),r}function C(t,e){var r=l(t,e,14)^l(t,e,18)^l(e,t,9);return r<0&&(r+=4294967296),r}function P(t,e){var r=f(t,e,1)^f(t,e,8)^c(t,e,7);return r<0&&(r+=4294967296),r}function B(t,e){var r=l(t,e,1)^l(t,e,8)^d(t,e,7);return r<0&&(r+=4294967296),r}function N(t,e){var r=f(t,e,19)^f(e,t,29)^c(t,e,6);return r<0&&(r+=4294967296),r}function j(t,e){var r=l(t,e,19)^l(e,t,29)^d(t,e,6);return r<0&&(r+=4294967296),r}n.inherits(T,E),t.exports=T,T.blockSize=1024,T.outSize=512,T.hmacStrength=192,T.padLength=128,T.prototype._prepareBlock=function(t,e){for(var r=this.W,i=0;i<32;i++)r[i]=t[e+i];for(;i<r.length;i+=2){var n=N(r[i-4],r[i-3]),o=j(r[i-4],r[i-3]),h=r[i-14],f=r[i-13],l=P(r[i-30],r[i-29]),c=B(r[i-30],r[i-29]),d=r[i-32],m=r[i-31];r[i]=w(n,o,h,f,l,c,d,m),r[i+1]=M(n,o,h,f,l,c,d,m)}},T.prototype._update=function(t,e){this._prepareBlock(t,e);var r=this.W,n=this.h[0],o=this.h[1],f=this.h[2],l=this.h[3],c=this.h[4],d=this.h[5],w=this.h[6],dl=this.h[7],M=this.h[8],E=this.h[9],k=this.h[10],T=this.h[11],P=this.h[12],B=this.h[13],N=this.h[14],j=this.h[15];h(this.k.length===r.length);for(var i=0;i<r.length;i+=2){var F=N,U=j,K=D(M,E),z=C(M,E),H=A(M,E,k,T,P),G=R(M,E,k,T,P,B),V=this.k[i],W=this.k[i+1],Y=r[i],Z=r[i+1],X=_(F,U,K,z,H,G,V,W,Y,Z),$=S(F,U,K,z,H,G,V,W,Y,Z);F=I(n,o),U=L(n,o),K=x(n,o,f,l,c),z=O(n,o,f,l,c,d);var J=v(F,U,K,z),Q=y(F,U,K,z);N=P,j=B,P=k,B=T,k=M,T=E,M=v(w,dl,X,$),E=y(dl,dl,X,$),w=c,dl=d,c=f,d=l,f=n,l=o,n=v(X,$,J,Q),o=y(X,$,J,Q)}m(this.h,0,n,o),m(this.h,2,f,l),m(this.h,4,c,d),m(this.h,6,w,dl),m(this.h,8,M,E),m(this.h,10,k,T),m(this.h,12,P,B),m(this.h,14,N,j)},T.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(t,e,r){"use strict";const n=e;n.bignum=r(316),n.define=r(579).define,n.base=r(582),n.constants=r(583),n.decoders=r(319),n.encoders=r(317)},function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function h(t,base,e){if(h.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==base&&"be"!==base||(e=base,base=10),this._init(t||0,base||10,e||"be"))}var f;"object"==typeof t?t.exports=h:e.BN=h,h.BN=h,h.wordSize=26;try{f=r(578).Buffer}catch(t){}function l(t,e,r){for(var n=0,o=Math.min(t.length,r),i=e;i<o;i++){var h=t.charCodeAt(i)-48;n<<=4,n|=h>=49&&h<=54?h-49+10:h>=17&&h<=22?h-17+10:15&h}return n}function c(t,e,r,n){for(var o=0,h=Math.min(t.length,r),i=e;i<h;i++){var f=t.charCodeAt(i)-48;o*=n,o+=f>=49?f-49+10:f>=17?f-17+10:f}return o}h.isBN=function(t){return t instanceof h||null!==t&&"object"==typeof t&&t.constructor.wordSize===h.wordSize&&Array.isArray(t.words)},h.max=function(t,e){return t.cmp(e)>0?t:e},h.min=function(t,e){return t.cmp(e)<0?t:e},h.prototype._init=function(t,base,e){if("number"==typeof t)return this._initNumber(t,base,e);if("object"==typeof t)return this._initArray(t,base,e);"hex"===base&&(base=16),n(base===(0|base)&&base>=2&&base<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&r++,16===base?this._parseHex(t,r):this._parseBase(t,base,r),"-"===t[0]&&(this.negative=1),this.strip(),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initNumber=function(t,base,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(),base,e)},h.prototype._initArray=function(t,base,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 r,o,h=0;if("be"===e)for(i=t.length-1,r=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[r]|=o<<h&67108863,this.words[r+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,r++);else if("le"===e)for(i=0,r=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[r]|=o<<h&67108863,this.words[r+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,r++);return this.strip()},h.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n,o=0;for(i=t.length-6,r=0;i>=e;i-=6)n=l(t,i,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==e&&(n=l(t,e,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303),this.strip()},h.prototype._parseBase=function(t,base,e){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=base)r++;r--,n=n/base|0;for(var o=t.length-e,h=o%r,f=Math.min(o,o-h)+e,l=0,i=e;i<f;i+=r)l=c(t,i,i+r,base),this.imuln(n),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==h){var d=1;for(l=c(t,i,t.length,base),i=0;i<h;i++)d*=base;this.imuln(d),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},h.prototype.copy=function(t){t.words=new Array(this.length);for(var i=0;i<this.length;i++)t.words[i]=this.words[i];t.length=this.length,t.negative=this.negative,t.red=this.red},h.prototype.clone=function(){var t=new h(null);return this.copy(t),t},h.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},h.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var d=["","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"],m=[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],v=[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,143489
vendor: 34,272 bytes, line 2
207,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function y(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var a=0|t.words[0],b=0|e.words[0],o=a*b,h=67108863&o,f=o/67108864|0;r.words[0]=h;for(var l=1;l<n;l++){for(var c=f>>>26,d=67108863&f,m=Math.min(l,e.length-1),v=Math.max(0,l-t.length+1);v<=m;v++){var i=l-v|0;c+=(o=(a=0|t.words[i])*(b=0|e.words[v])+d)/67108864|0,d=67108863&o}r.words[l]=0|d,f=0|c}return 0!==f?r.words[l]=0|f:r.length--,r.strip()}h.prototype.toString=function(base,t){var e;if(t=0|t||1,16===(base=base||10)||"hex"===base){e="";for(var r=0,o=0,i=0;i<this.length;i++){var h=this.words[i],f=(16777215&(h<<r|o)).toString(16);e=0!==(o=h>>>24-r&16777215)||i!==this.length-1?d[6-f.length]+f+e:f+e,(r+=2)>=26&&(r-=26,i--)}for(0!==o&&(e=o.toString(16)+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(base===(0|base)&&base>=2&&base<=36){var l=m[base],c=v[base];e="";var y=this.clone();for(y.negative=0;!y.isZero();){var w=y.modn(c).toString(base);e=(y=y.idivn(c)).isZero()?w+e:d[l-w.length]+w+e}for(this.isZero()&&(e="0"+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}n(!1,"Base should be between 2 and 36")},h.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},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(t,e){return n(void 0!==f),this.toArrayLike(f,t,e)},h.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},h.prototype.toArrayLike=function(t,e,r){var o=this.byteLength(),h=r||Math.max(1,o);n(o<=h,"byte array longer than desired length"),n(h>0,"Requested array length <= 0"),this.strip();var b,i,f="le"===e,l=new t(h),q=this.clone();if(f){for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),l[i]=b;for(;i<h;i++)l[i]=0}else{for(i=0;i<h-o;i++)l[i]=0;for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),l[h-i-1]=b}return l},Math.clz32?h.prototype._countBits=function(t){return 32-Math.clz32(t)}:h.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},h.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},h.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;i<this.length;i++){var b=this._zeroBits(this.words[i]);if(t+=b,26!==b)break}return t},h.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},h.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},h.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},h.prototype.isNeg=function(){return 0!==this.negative},h.prototype.neg=function(){return this.clone().ineg()},h.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},h.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]|t.words[i];return this.strip()},h.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},h.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},h.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},h.prototype.iuand=function(t){var b;b=this.length>t.length?t:this;for(var i=0;i<b.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=b.length,this.strip()},h.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},h.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},h.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},h.prototype.iuxor=function(t){var a,b;this.length>t.length?(a=this,b=t):(a=t,b=this);for(var i=0;i<b.length;i++)this.words[i]=a.words[i]^b.words[i];if(this!==a)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=a.length,this.strip()},h.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},h.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},h.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},h.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},h.prototype.notn=function(t){return this.clone().inotn(t)},h.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,o=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<o:this.words[r]&~(1<<o),this.strip()},h.prototype.iadd=function(t){var e,a,b;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(a=this,b=t):(a=t,b=this);for(var r=0,i=0;i<b.length;i++)e=(0|a.words[i])+(0|b.words[i])+r,this.words[i]=67108863&e,r=e>>>26;for(;0!==r&&i<a.length;i++)e=(0|a.words[i])+r,this.words[i]=67108863&e,r=e>>>26;if(this.length=a.length,0!==r)this.words[this.length]=r,this.length++;else if(a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this},h.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},h.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var a,b,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(a=this,b=t):(a=t,b=this);for(var n=0,i=0;i<b.length;i++)n=(e=(0|a.words[i])-(0|b.words[i])+n)>>26,this.words[i]=67108863&e;for(;0!==n&&i<a.length;i++)n=(e=(0|a.words[i])+n)>>26,this.words[i]=67108863&e;if(0===n&&i<a.length&&a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=Math.max(this.length,i),a!==this&&(this.negative=1),this.strip()},h.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,r){var n,o,h,a=t.words,b=e.words,f=r.words,l=0,c=0|a[0],d=8191&c,m=c>>>13,v=0|a[1],y=8191&v,w=v>>>13,M=0|a[2],_=8191&M,S=M>>>13,E=0|a[3],k=8191&E,T=E>>>13,A=0|a[4],R=8191&A,x=A>>>13,O=0|a[5],I=8191&O,L=O>>>13,D=0|a[6],C=8191&D,P=D>>>13,B=0|a[7],N=8191&B,j=B>>>13,F=0|a[8],U=8191&F,K=F>>>13,z=0|a[9],H=8191&z,G=z>>>13,V=0|b[0],W=8191&V,Y=V>>>13,Z=0|b[1],X=8191&Z,$=Z>>>13,J=0|b[2],Q=8191&J,tt=J>>>13,et=0|b[3],it=8191&et,nt=et>>>13,ot=0|b[4],at=8191&ot,st=ot>>>13,ut=0|b[5],ht=8191&ut,ft=ut>>>13,lt=0|b[6],ct=8191&lt,pt=lt>>>13,mt=0|b[7],gt=8191&mt,vt=mt>>>13,yt=0|b[8],bt=8191&yt,wt=yt>>>13,Mt=0|b[9],_t=8191&Mt,St=Mt>>>13;r.negative=t.negative^e.negative,r.length=19;var Et=(l+(n=Math.imul(d,W))|0)+((8191&(o=(o=Math.imul(d,Y))+Math.imul(m,W)|0))<<13)|0;l=((h=Math.imul(m,Y))+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(y,W),o=(o=Math.imul(y,Y))+Math.imul(w,W)|0,h=Math.imul(w,Y);var kt=(l+(n=n+Math.imul(d,X)|0)|0)+((8191&(o=(o=o+Math.imul(d,$)|0)+Math.imul(m,X)|0))<<13)|0;l=((h=h+Math.imul(m,$)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(_,W),o=(o=Math.imul(_,Y))+Math.imul(S,W)|0,h=Math.imul(S,Y),n=n+Math.imul(y,X)|0,o=(o=o+Math.imul(y,$)|0)+Math.imul(w,X)|0,h=h+Math.imul(w,$)|0;var Tt=(l+(n=n+Math.imul(d,Q)|0)|0)+((8191&(o=(o=o+Math.imul(d,tt)|0)+Math.imul(m,Q)|0))<<13)|0;l=((h=h+Math.imul(m,tt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(k,W),o=(o=Math.imul(k,Y))+Math.imul(T,W)|0,h=Math.imul(T,Y),n=n+Math.imul(_,X)|0,o=(o=o+Math.imul(_,$)|0)+Math.imul(S,X)|0,h=h+Math.imul(S,$)|0,n=n+Math.imul(y,Q)|0,o=(o=o+Math.imul(y,tt)|0)+Math.imul(w,Q)|0,h=h+Math.imul(w,tt)|0;var At=(l+(n=n+Math.imul(d,it)|0)|0)+((8191&(o=(o=o+Math.imul(d,nt)|0)+Math.imul(m,it)|0))<<13)|0;l=((h=h+Math.imul(m,nt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(R,W),o=(o=Math.imul(R,Y))+Math.imul(x,W)|0,h=Math.imul(x,Y),n=n+Math.imul(k,X)|0,o=(o=o+Math.imul(k,$)|0)+Math.imul(T,X)|0,h=h+Math.imul(T,$)|0,n=n+Math.imul(_,Q)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(S,Q)|0,h=h+Math.imul(S,tt)|0,n=n+Math.imul(y,it)|0,o=(o=o+Math.imul(y,nt)|0)+Math.imul(w,it)|0,h=h+Math.imul(w,nt)|0;var Rt=(l+(n=n+Math.imul(d,at)|0)|0)+((8191&(o=(o=o+Math.imul(d,st)|0)+Math.imul(m,at)|0))<<13)|0;l=((h=h+Math.imul(m,st)|0)+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(I,W),o=(o=Math.imul(I,Y))+Math.imul(L,W)|0,h=Math.imul(L,Y),n=n+Math.imul(R,X)|0,o=(o=o+Math.imul(R,$)|0)+Math.imul(x,X)|0,h=h+Math.imul(x,$)|0,n=n+Math.imul(k,Q)|0,o=(o=o+Math.imul(k,tt)|0)+Math.imul(T,Q)|0,h=h+Math.imul(T,tt)|0,n=n+Math.imul(_,it)|0,o=(o=o+Math.imul(_,nt)|0)+Math.imul(S,it)|0,h=h+Math.imul(S,nt)|0,n=n+Math.imul(y,at)|0,o=(o=o+Math.imul(y,st)|0)+Math.imul(w,at)|0,h=h+Math.imul(w,st)|0;var xt=(l+(n=n+Math.imul(d,ht)|0)|0)+((8191&(o=(o=o+Math.imul(d,ft)|0)+Math.imul(m,ht)|0))<<13)|0;l=((h=h+Math.imul(m,ft)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(C,W),o=(o=Math.imul(C,Y))+Math.imul(P,W)|0,h=Math.imul(P,Y),n=n+Math.imul(I,X)|0,o=(o=o+Math.imul(I,$)|0)+Math.imul(L,X)|0,h=h+Math.imul(L,$)|0,n=n+Math.imul(R,Q)|0,o=(o=o+Math.imul(R,tt)|0)+Math.imul(x,Q)|0,h=h+Math.imul(x,tt)|0,n=n+Math.imul(k,it)|0,o=(o=o+Math.imul(k,nt)|0)+Math.imul(T,it)|0,h=h+Math.imul(T,nt)|0,n=n+Math.imul(_,at)|0,o=(o=o+Math.imul(_,st)|0)+Math.imul(S,at)|0,h=h+Math.imul(S,st)|0,n=n+Math.imul(y,ht)|0,o=(o=o+Math.imul(y,ft)|0)+Math.imul(w,ht)|0,h=h+Math.imul(w,ft)|0;var Ot=(l+(n=n+Math.imul(d,ct)|0)|0)+((8191&(o=(o=o+Math.imul(d,pt)|0)+Math.imul(m,ct)|0))<<13)|0;l=((h=h+Math.imul(m,pt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(N,W),o=(o=Math.imul(N,Y))+Math.imul(j,W)|0,h=Math.imul(j,Y),n=n+Math.imul(C,X)|0,o=(o=o+Math.imul(C,$)|0)+Math.imul(P,X)|0,h=h+Math.imul(P,$)|0,n=n+Math.imul(I,Q)|0,o=(o=o+Math.imul(I,tt)|0)+Math.imul(L,Q)|0,h=h+Math.imul(L,tt)|0,n=n+Math.imul(R,it)|0,o=(o=o+Math.imul(R,nt)|0)+Math.imul(x,it)|0,h=h+Math.imul(x,nt)|0,n=n+Math.imul(k,at)|0,o=(o=o+Math.imul(k,st)|0)+Math.imul(T,at)|0,h=h+Math.imul(T,st)|0,n=n+Math.imul(_,ht)|0,o=(o=o+Math.imul(_,ft)|0)+Math.imul(S,ht)|0,h=h+Math.imul(S,ft)|0,n=n+Math.imul(y,ct)|0,o=(o=o+Math.imul(y,pt)|0)+Math.imul(w,ct)|0,h=h+Math.imul(w,pt)|0;var It=(l+(n=n+Math.imul(d,gt)|0)|0)+((8191&(o=(o=o+Math.imul(d,vt)|0)+Math.imul(m,gt)|0))<<13)|0;l=((h=h+Math.imul(m,vt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,W),o=(o=Math.imul(U,Y))+Math.imul(K,W)|0,h=Math.imul(K,Y),n=n+Math.imul(N,X)|0,o=(o=o+Math.imul(N,$)|0)+Math.imul(j,X)|0,h=h+Math.imul(j,$)|0,n=n+Math.imul(C,Q)|0,o=(o=o+Math.imul(C,tt)|0)+Math.imul(P,Q)|0,h=h+Math.imul(P,tt)|0,n=n+Math.imul(I,it)|0,o=(o=o+Math.imul(I,nt)|0)+Math.imul(L,it)|0,h=h+Math.imul(L,nt)|0,n=n+Math.imul(R,at)|0,o=(o=o+Math.imul(R,st)|0)+Math.imul(x,at)|0,h=h+Math.imul(x,st)|0,n=n+Math.imul(k,ht)|0,o=(o=o+Math.imul(k,ft)|0)+Math.imul(T,ht)|0,h=h+Math.imul(T,ft)|0,n=n+Math.imul(_,ct)|0,o=(o=o+Math.imul(_,pt)|0)+Math.imul(S,ct)|0,h=h+Math.imul(S,pt)|0,n=n+Math.imul(y,gt)|0,o=(o=o+Math.imul(y,vt)|0)+Math.imul(w,gt)|0,h=h+Math.imul(w,vt)|0;var Lt=(l+(n=n+Math.imul(d,bt)|0)|0)+((8191&(o=(o=o+Math.imul(d,wt)|0)+Math.imul(m,bt)|0))<<13)|0;l=((h=h+Math.imul(m,wt)|0)+(o>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(H,W),o=(o=Math.imul(H,Y))+Math.imul(G,W)|0,h=Math.imul(G,Y),n=n+Math.imul(U,X)|0,o=(o=o+Math.imul(U,$)|0)+Math.imul(K,X)|0,h=h+Math.imul(K,$)|0,n=n+Math.imul(N,Q)|0,o=(o=o+Math.imul(N,tt)|0)+Math.imul(j,Q)|0,h=h+Math.imul(j,tt)|0,n=n+Math.imul(C,it)|0,o=(o=o+Math.imul(C,nt)|0)+Math.imul(P,it)|0,h=h+Math.imul(P,nt)|0,n=n+Math.imul(I,at)|0,o=(o=o+Math.imul(I,st)|0)+Math.imul(L,at)|0,h=h+Math.imul(L,st)|0,n=n+Math.imul(R,ht)|0,o=(o=o+Math.imul(R,ft)|0)+Math.imul(x,ht)|0,h=h+Math.imul(x,ft)|0,n=n+Math.imul(k,ct)|0,o=(o=o+Math.imul(k,pt)|0)+Math.imul(T,ct)|0,h=h+Math.imul(T,pt)|0,n=n+Math.imul(_,gt)|0,o=(o=o+Math.imul(_,vt)|0)+Math.imul(S,gt)|0,h=h+Math.imul(S,vt)|0,n=n+Math.imul(y,bt)|0,o=(o=o+Math.imul(y,wt)|0)+Math.imul(w,bt)|0,h=h+Math.imul(w,wt)|0;var Dt=(l+(n=n+Math.imul(d,_t)|0)|0)+((8191&(o=(o=o+Math.imul(d,St)|0)+Math.imul(m,_t)|0))<<13)|0;l=((h=h+Math.imul(m,St)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(H,X),o=(o=Math.imul(H,$))+Math.imul(G,X)|0,h=Math.imul(G,$),n=n+Math.imul(U,Q)|0,o=(o=o+Math.imul(U,tt)|0)+Math.imul(K,Q)|0,h=h+Math.imul(K,tt)|0,n=n+Math.imul(N,it)|0,o=(o=o+Math.imul(N,nt)|0)+Math.imul(j,it)|0,h=h+Math.imul(j,nt)|0,n=n+Math.imul(C,at)|0,o=(o=o+Math.imul(C,st)|0)+Math.imul(P,at)|0,h=h+Math.imul(P,st)|0,n=n+Math.imul(I,ht)|0,o=(o=o+Math.imul(I,ft)|0)+Math.imul(L,ht)|0,h=h+Math.imul(L,ft)|0,n=n+Math.imul(R,ct)|0,o=(o=o+Math.imul(R,pt)|0)+Math.imul(x,ct)|0,h=h+Math.imul(x,pt)|0,n=n+Math.imul(k,gt)|0,o=(o=o+Math.imul(k,vt)|0)+Math.imul(T,gt)|0,h=h+Math.imul(T,vt)|0,n=n+Math.imul(_,bt)|0,o=(o=o+Math.imul(_,wt)|0)+Math.imul(S,bt)|0,h=h+Math.imul(S,wt)|0;var Ct=(l+(n=n+Math.imul(y,_t)|0)|0)+((8191&(o=(o=o+Math.imul(y,St)|0)+Math.imul(w,_t)|0))<<13)|0;l=((h=h+Math.imul(w,St)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(H,Q),o=(o=Math.imul(H,tt))+Math.imul(G,Q)|0,h=Math.imul(G,tt),n=n+Math.imul(U,it)|0,o=(o=o+Math.imul(U,nt)|0)+Math.imul(K,it)|0,h=h+Math.imul(K,nt)|0,n=n+Math.imul(N,at)|0,o=(o=o+Math.imul(N,st)|0)+Math.imul(j,at)|0,h=h+Math.imul(j,st)|0,n=n+Math.imul(C,ht)|0,o=(o=o+Math.imul(C,ft)|0)+Math.imul(P,ht)|0,h=h+Math.imul(P,ft)|0,n=n+Math.imul(I,ct)|0,o=(o=o+Math.imul(I,pt)|0)+Math.imul(L,ct)|0,h=h+Math.imul(L,pt)|0,n=n+Math.imul(R,gt)|0,o=(o=o+Math.imul(R,vt)|0)+Math.imul(x,gt)|0,h=h+Math.imul(x,vt)|0,n=n+Math.imul(k,bt)|0,o=(o=o+Math.imul(k,wt)|0)+Math.imul(T,bt)|0,h=h+Math.imul(T,wt)|0;var Pt=(l+(n=n+Math.imul(_,_t)|0)|0)+((8191&(o=(o=o+Math.imul(_,St)|0)+Math.imul(S,_t)|0))<<13)|0;l=((h=h+Math.imul(S,St)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(H,it),o=(o=Math.imul(H,nt))+Math.imul(G,it)|0,h=Math.imul(G,nt),n=n+Math.imul(U,at)|0,o=(o=o+Math.imul(U,st)|0)+Math.imul(K,at)|0,h=h+Math.imul(K,st)|0,n=n+Math.imul(N,ht)|0,o=(o=o+Math.imul(N,ft)|0)+Math.imul(j,ht)|0,h=h+Math.imul(j,ft)|0,n=n+Math.imul(C,ct)|0,o=(o=o+Math.imul(C,pt)|0)+Math.imul(P,ct)|0,h=h+Math.imul(P,pt)|0,n=n+Math.imul(I,gt)|0,o=(o=o+Math.imul(I,vt)|0)+Math.imul(L,gt)|0,h=h+Math.imul(L,vt)|0,n=n+Math.imul(R,bt)|0,o=(o=o+Math.imul(R,wt)|0)+Math.imul(x,bt)|0,h=h+Math.imul(x,wt)|0;var Bt=(l+(n=n+Math.imul(k,_t)|0)|0)+((8191&(o=(o=o+Math.imul(k,St)|0)+Math.imul(T,_t)|0))<<13)|0;l=((h=h+Math.imul(T,St)|0)+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(H,at),o=(o=Math.imul(H,st))+Math.imul(G,at)|0,h=Math.imul(G,st),n=n+Math.imul(U,ht)|0,o=(o=o+Math.imul(U,ft)|0)+Math.imul(K,ht)|0,h=h+Math.imul(K,ft)|0,n=n+Math.imul(N,ct)|0,o=(o=o+Math.imul(N,pt)|0)+Math.imul(j,ct)|0,h=h+Math.imul(j,pt)|0,n=n+Math.imul(C,gt)|0,o=(o=o+Math.imul(C,vt)|0)+Math.imul(P,gt)|0,h=h+Math.imul(P,vt)|0,n=n+Math.imul(I,bt)|0,o=(o=o+Math.imul(I,wt)|0)+Math.imul(L,bt)|0,h=h+Math.imul(L,wt)|0;var Nt=(l+(n=n+Math.imul(R,_t)|0)|0)+((8191&(o=(o=o+Math.imul(R,St)|0)+Math.imul(x,_t)|0))<<13)|0;l=((h=h+Math.imul(x,St)|0)+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(H,ht),o=(o=Math.imul(H,ft))+Math.imul(G,ht)|0,h=Math.imul(G,ft),n=n+Math.imul(U,ct)|0,o=(o=o+Math.imul(U,pt)|0)+Math.imul(K,ct)|0,h=h+Math.imul(K,pt)|0,n=n+Math.imul(N,gt)|0,o=(o=o+Math.imul(N,vt)|0)+Math.imul(j,gt)|0,h=h+Math.imul(j,vt)|0,n=n+Math.imul(C,bt)|0,o=(o=o+Math.imul(C,wt)|0)+Math.imul(P,bt)|0,h=h+Math.imul(P,wt)|0;var jt=(l+(n=n+Math.imul(I,_t)|0)|0)+((8191&(o=(o=o+Math.imul(I,St)|0)+Math.imul(L,_t)|0))<<13)|0;l=((h=h+Math.imul(L,St)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(H,ct),o=(o=Math.imul(H,pt))+Math.imul(G,ct)|0,h=Math.imul(G,pt),n=n+Math.imul(U,gt)|0,o=(o=o+Math.imul(U,vt)|0)+Math.imul(K,gt)|0,h=h+Math.imul(K,vt)|0,n=n+Math.imul(N,bt)|0,o=(o=o+Math.imul(N,wt)|0)+Math.imul(j,bt)|0,h=h+Math.imul(j,wt)|0;var Ft=(l+(n=n+Math.imul(C,_t)|0)|0)+((8191&(o=(o=o+Math.imul(C,St)|0)+Math.imul(P,_t)|0))<<13)|0;l=((h=h+Math.imul(P,St)|0)+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,n=Math.imul(H,gt),o=(o=Math.imul(H,vt))+Math.imul(G,gt)|0,h=Math.imul(G,vt),n=n+Math.imul(U,bt)|0,o=(o=o+Math.imul(U,wt)|0)+Math.imul(K,bt)|0,h=h+Math.imul(K,wt)|0;var Ut=(l+(n=n+Math.imul(N,_t)|0)|0)+((8191&(o=(o=o+Math.imul(N,St)|0)+Math.imul(j,_t)|0))<<13)|0;l=((h=h+Math.imul(j,St)|0)+(o>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,n=Math.imul(H,bt),o=(o=Math.imul(H,wt))+Math.imul(G,bt)|0,h=Math.imul(G,wt);var qt=(l+(n=n+Math.imul(U,_t)|0)|0)+((8191&(o=(o=o+Math.imul(U,St)|0)+Math.imul(K,_t)|0))<<13)|0;l=((h=h+Math.imul(K,St)|0)+(o>>>13)|0)+(qt>>>26)|0,qt&=67108863;var Kt=(l+(n=Math.imul(H,_t))|0)+((8191&(o=(o=Math.imul(H,St))+Math.imul(G,_t)|0))<<13)|0;return l=((h=Math.imul(G,St))+(o>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,f[0]=Et,f[1]=kt,f[2]=Tt,f[3]=At,f[4]=Rt,f[5]=xt,f[6]=Ot,f[7]=It,f[8]=Lt,f[9]=Dt,f[10]=Ct,f[11]=Pt,f[12]=Bt,f[13]=Nt,f[14]=jt,f[15]=Ft,f[16]=Ut,f[17]=qt,f[18]=Kt,0!==l&&(f[19]=l,r.length++),r};function M(t,e,r){return(new _).mulp(t,e,r)}function _(t,e){this.x=t,this.y=e}Math.imul||(w=y),h.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?w(this,t,e):r<63?y(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,o=0,h=0;h<r.length-1;h++){var f=o;o=0;for(var l=67108863&n,c=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=c;d++){var i=h-d,m=(0|t.words[i])*(0|e.words[d]),v=67108863&m;l=67108863&(v=v+l|0),o+=(f=(f=f+(m/67108864|0)|0)+(v>>>26)|0)>>>26,f&=67108863}r.words[h]=l,n=f,f=o}return 0!==n?r.words[h]=n:r.length--,r.strip()}(this,t,e):M(this,t,e)},_.prototype.makeRBT=function(t){for(var e=new Array(t),r=h.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,r,t);return e},_.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},_.prototype.permute=function(t,e,r,n,o,h){for(var i=0;i<h;i++)n[i]=e[t[i]],o[i]=r[t[i]]},_.prototype.transform=function(t,e,r,n,o,h){this.permute(h,t,e,r,n,o);for(var s=1;s<o;s<<=1)for(var f=s<<1,l=Math.cos(2*Math.PI/f),c=Math.sin(2*Math.PI/f),p=0;p<o;p+=f)for(var d=l,m=c,v=0;v<s;v++){var y=r[p+v],w=n[p+v],M=r[p+v+s],_=n[p+v+s],S=d*M-m*_;_=d*_+m*M,M=S,r[p+v]=y+M,n[p+v]=w+_,r[p+v+s]=y-M,n[p+v+s]=w-_,v!==f&&(S=l*d-c*m,m=l*m+c*d,d=S)}},_.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},_.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var i=0;i<r/2;i++){var n=t[i];t[i]=t[r-i-1],t[r-i-1]=n,n=e[i],e[i]=-e[r-i-1],e[r-i-1]=-n}},_.prototype.normalize13b=function(t,e){for(var r=0,i=0;i<e/2;i++){var n=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+r;t[i]=67108863&n,r=n<67108864?0:n/67108864|0}return t},_.prototype.convert13b=function(t,e,r,o){for(var h=0,i=0;i<e;i++)h+=0|t[i],r[2*i]=8191&h,h>>>=13,r[2*i+1]=8191&h,h>>>=13;for(i=2*e;i<o;++i)r[i]=0;n(0===h),n(0==(-8192&h))},_.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},_.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(n),h=this.stub(n),f=new Array(n),l=new Array(n),c=new Array(n),d=new Array(n),m=new Array(n),v=new Array(n),y=r.words;y.length=n,this.convert13b(t.words,t.length,f,n),this.convert13b(e.words,e.length,d,n),this.transform(f,h,l,c,n,o),this.transform(d,h,m,v,n,o);for(var i=0;i<n;i++){var w=l[i]*m[i]-c[i]*v[i];c[i]=l[i]*v[i]+c[i]*m[i],l[i]=w}return this.conjugate(l,c,n),this.transform(l,c,y,h,n,o),this.conjugate(y,h,n),this.normalize13b(y,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},h.prototype.mul=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},h.prototype.mulf=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),M(this,t,e)},h.prototype.imul=function(t){return this.clone().mulTo(t,this)},h.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,i=0;i<this.length;i++){var r=(0|this.words[i])*t,o=(67108863&r)+(67108863&e);e>>=26,e+=r/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},h.prototype.muln=function(t){return this.clone().imuln(t)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,o=r%26;e[r]=(t.words[n]&1<<o)>>>o}return e}(t);if(0===e.length)return new h(1);for(var r=this,i=0;i<e.length&&0===e[i];i++,r=r.sqr());if(++i<e.length)for(var q=r.sqr();i<e.length;i++,q=q.sqr())0!==e[i]&&(r=r.mul(q));return r},h.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var i,e=t%26,s=(t-e)/26,r=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var h=this.words[i]&r,f=(0|this.words[i])-h<<e;this.words[i]=f|o,o=h>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i<s;i++)this.words[i]=0;this.length+=s}return this.strip()},h.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},h.prototype.iushrn=function(t,e,r){var o;n("number"==typeof t&&t>=0),o=e?(e-e%26)/26:0;var h=t%26,s=Math.min((t-h)/26,this.length),mask=67108863^67108863>>>h<<h,f=r;if(o-=s,o=Math.max(0,o),f){for(var i=0;i<s;i++)f.words[i]=this.words[i];f.length=s}if(0===s);else if(this.length>s)for(this.length-=s,i=0;i<this.length;i++)this.words[i]=this.words[i+s];else this.words[0]=0,this.length=1;var l=0;for(i=this.length-1;i>=0&&(0!==l||i>=o);i--){var c=0|this.words[i];this.words[i]=l<<26-h|c>>>h,l=c&mask}return f&&0!==l&&(f.words[f.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},h.prototype.shln=function(t){return this.clone().ishln(t)},h.prototype.ushln=function(t){return this.clone().iushln(t)},h.prototype.shrn=function(t){return this.clone().ishrn(t)},h.prototype.ushrn=function(t){return this.clone().iushrn(t)},h.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26,q=1<<e;return!(this.length<=s)&&!!(this.words[s]&q)},h.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==e&&s++,this.length=Math.min(s,this.length),0!==e){var mask=67108863^67108863>>>e<<e;this.words[this.length-1]&=mask}return this.strip()},h.prototype.maskn=function(t){return this.clone().imaskn(t)},h.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)},h.prototype._iaddn=function(t){this.words[0]+=t;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},h.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 i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this.strip()},h.prototype.addn=function(t){return this.clone().iaddn(t)},h.prototype.subn=function(t){return this.clone().isubn(t)},h.prototype.iabs=function(){return this.negative=0,this},h.prototype.abs=function(){return this.clone().iabs()},h.prototype._ishlnsubmul=function(t,e,r){var i,o,h=t.length+r;this._expand(h);var f=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+f;var l=(0|t.words[i])*e;f=((o-=67108863&l)>>26)-(l/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)f=(o=(0|this.words[i+r])+f)>>26,this.words[i+r]=67108863&o;if(0===f)return this.strip();for(n(-1===f),f=0,i=0;i<this.length;i++)f=(o=-(0|this.words[i])+f)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},h.prototype._wordDiv=function(t,e){var r=(this.length,t.length),a=this.clone(),b=t,n=0|b.words[b.length-1];0!==(r=26-this._countBits(n))&&(b=b.ushln(r),a.iushln(r),n=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==e){(q=new h(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i<q.length;i++)q.words[i]=0}var f=a.clone()._ishlnsubmul(b,1,o);0===f.negative&&(a=f,q&&(q.words[o]=1));for(var l=o-1;l>=0;l--){var c=67108864*(0|a.words[b.length+l])+(0|a.words[b.length+l-1]);for(c=Math.min(c/n|0,67108863),a._ishlnsubmul(b,c,l);0!==a.negative;)c--,a.negative=0,a._ishlnsubmul(b,1,l),a.isZero()||(a.negative^=1);q&&(q.words[l]=c)}return q&&q.strip(),a.strip(),"div"!==e&&0!==r&&a.iushrn(r),{div:q||null,mod:a}},h.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new h(0),mod:new h(0)}:0!==this.negative&&0===t.negative?(f=this.neg().divmod(t,e),"mod"!==e&&(div=f.div.neg()),"div"!==e&&(o=f.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:div,mod:o}):0===this.negative&&0!==t.negative?(f=this.divmod(t.neg(),e),"mod"!==e&&(div=f.div.neg()),{div:div,mod:f.mod}):0!=(this.negative&t.negative)?(f=this.neg().divmod(t.neg(),e),"div"!==e&&(o=f.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:f.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new h(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new h(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new h(this.modn(t.words[0]))}:this._wordDiv(t,e);var div,o,f},h.prototype.div=function(t){return this.divmod(t,"div",!1).div},h.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},h.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},h.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),o=t.andln(1),h=r.cmp(n);return h<0||1===o&&0===h?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},h.prototype.modn=function(t){n(t<=67108863);for(var p=(1<<26)%t,e=0,i=this.length-1;i>=0;i--)e=(p*e+(0|this.words[i]))%t;return e},h.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},h.prototype.divn=function(t){return this.clone().idivn(t)},h.prototype.egcd=function(p){n(0===p.negative),n(!p.isZero());var t=this,e=p.clone();t=0!==t.negative?t.umod(p):t.clone();for(var r=new h(1),o=new h(0),f=new h(0),l=new h(1),g=0;t.isEven()&&e.isEven();)t.iushrn(1),e.iushrn(1),++g;for(var c=e.clone(),d=t.clone();!t.isZero();){for(var i=0,m=1;0==(t.words[0]&m)&&i<26;++i,m<<=1);if(i>0)for(t.iushrn(i);i-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(c),o.isub(d)),r.iushrn(1),o.iushrn(1);for(var v=0,y=1;0==(e.words[0]&y)&&v<26;++v,y<<=1);if(v>0)for(e.iushrn(v);v-- >0;)(f.isOdd()||l.isOdd())&&(f.iadd(c),l.isub(d)),f.iushrn(1),l.iushrn(1);t.cmp(e)>=0?(t.isub(e),r.isub(f),o.isub(l)):(e.isub(t),f.isub(r),l.isub(o))}return{a:f,b:l,gcd:e.iushln(g)}},h.prototype._invmp=function(p){n(0===p.negative),n(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var t,e=new h(1),r=new h(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,f=1;0==(a.words[0]&f)&&i<26;++i,f<<=1);if(i>0)for(a.iushrn(i);i-- >0;)e.isOdd()&&e.iadd(o),e.iushrn(1);for(var l=0,c=1;0==(b.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(b.iushrn(l);l-- >0;)r.isOdd()&&r.iadd(o),r.iushrn(1);a.cmp(b)>=0?(a.isub(b),e.isub(r)):(b.isub(a),r.isub(e))}return(t=0===a.cmpn(1)?e:r).cmpn(0)<0&&t.iadd(p),t},h.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),b=t.clone();a.negative=0,b.negative=0;for(var e=0;a.isEven()&&b.isEven();e++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var r=a.cmp(b);if(r<0){var n=a;a=b,b=n}else if(0===r||0===b.cmpn(1))break;a.isub(b)}return b.iushln(e)},h.prototype.invm=function(t){return this.egcd(t).a.umod(t)},h.prototype.isEven=function(){return 0==(1&this.words[0])},h.prototype.isOdd=function(){return 1==(1&this.words[0])},h.prototype.andln=function(t){return this.words[0]&t},h.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,s=(t-e)/26,q=1<<e;if(this.length<=s)return this._expand(s+1),this.words[s]|=q,this;for(var r=q,i=s;0!==r&&i<this.length;i++){var o=0|this.words[i];r=(o+=r)>>>26,o&=67108863,this.words[i]=o}return 0!==r&&(this.words[i]=r,this.length++),this},h.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},h.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},h.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},h.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var a=0|this.words[i],b=0|t.words[i];if(a!==b){a<b?e=-1:a>b&&(e=1);break}}return e},h.prototype.gtn=function(t){return 1===this.cmpn(t)},h.prototype.gt=function(t){return 1===this.cmp(t)},h.prototype.gten=function(t){return this.cmpn(t)>=0},h.prototype.gte=function(t){return this.cmp(t)>=0},h.prototype.ltn=function(t){return-1===this.cmpn(t)},h.prototype.lt=function(t){return-1===this.cmp(t)},h.prototype.lten=function(t){return this.cmpn(t)<=0},h.prototype.lte=function(t){return this.cmp(t)<=0},h.prototype.eqn=function(t){return 0===this.cmpn(t)},h.prototype.eq=function(t){return 0===this.cmp(t)},h.red=function(t){return new x(t)},h.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)},h.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(t){return this.red=t,this},h.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},h.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},h.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},h.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},h.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},h.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},h.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},h.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},h.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var S={k256:null,p224:null,p192:null,p25519:null};function E(t,p){this.name=t,this.p=new h(p,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function k(){E.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function T(){E.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){E.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function R(){E.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"==typeof t){var e=h._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function O(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new h(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)}E.prototype._tmp=function(){var t=new h(null);return t.words=new Array(Math.ceil(this.n/13)),t},E.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},E.prototype.split=function(input,t){input.iushrn(this.n,0,t)},E.prototype.imulK=function(t){return t.imul(this.k)},o(k,E),k.prototype.split=function(input,output){for(var t=Math.min(input.length,9),i=0;i<t;i++)output.words[i]=input.words[i];if(output.length=t,input.length<=9)return input.words[0]=0,void(in
vendor: 11,017 bytes, line 2
2put.length=1);var e=input.words[9];for(output.words[output.length++]=4194303&e,i=10;i<input.length;i++){var r=0|input.words[i];input.words[i-10]=(4194303&r)<<4|e>>>22,e=r}e>>>=22,input.words[i-10]=e,0===e&&input.length>10?input.length-=10:input.length-=9},k.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(T,E),o(A,E),o(R,E),R.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=19*(0|t.words[i])+e,n=67108863&r;r>>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},h._prime=function(t){if(S[t])return S[t];var e;if("k256"===t)e=new k;else if("p224"===t)e=new T;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new R}return S[t]=e,e},x.prototype._verify1=function(a){n(0===a.negative,"red works only with positives"),n(a.red,"red works only with red numbers")},x.prototype._verify2=function(a,b){n(0==(a.negative|b.negative),"red works only with positives"),n(a.red&&a.red===b.red,"red works only with red numbers")},x.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)},x.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},x.prototype.add=function(a,b){this._verify2(a,b);var t=a.add(b);return t.cmp(this.m)>=0&&t.isub(this.m),t._forceRed(this)},x.prototype.iadd=function(a,b){this._verify2(a,b);var t=a.iadd(b);return t.cmp(this.m)>=0&&t.isub(this.m),t},x.prototype.sub=function(a,b){this._verify2(a,b);var t=a.sub(b);return t.cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},x.prototype.isub=function(a,b){this._verify2(a,b);var t=a.isub(b);return t.cmpn(0)<0&&t.iadd(this.m),t},x.prototype.shl=function(a,t){return this._verify1(a),this.imod(a.ushln(t))},x.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b))},x.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b))},x.prototype.isqr=function(a){return this.imul(a,a.clone())},x.prototype.sqr=function(a){return this.mul(a,a)},x.prototype.sqrt=function(a){if(a.isZero())return a.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var e=this.m.add(new h(1)).iushrn(2);return this.pow(a,e)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);n(!q.isZero());var r=new h(1).toRed(this),o=r.redNeg(),f=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new h(2*l*l).toRed(this);0!==this.pow(l,f).cmp(o);)l.redIAdd(o);for(var c=this.pow(l,q),d=this.pow(a,q.addn(1).iushrn(1)),m=this.pow(a,q),v=s;0!==m.cmp(r);){for(var y=m,i=0;0!==y.cmp(r);i++)y=y.redSqr();n(i<v);var b=this.pow(c,new h(1).iushln(v-i-1));d=d.redMul(b),c=b.redSqr(),m=m.redMul(c),v=i}return d},x.prototype.invm=function(a){var t=a._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},x.prototype.pow=function(a,t){if(t.isZero())return new h(1).toRed(this);if(0===t.cmpn(1))return a.clone();var e=new Array(16);e[0]=new h(1).toRed(this),e[1]=a;for(var i=2;i<e.length;i++)e[i]=this.mul(e[i-1],a);var r=e[0],n=0,o=0,f=t.bitLength()%26;for(0===f&&(f=26),i=t.length-1;i>=0;i--){for(var l=t.words[i],c=f-1;c>=0;c--){var d=l>>c&1;r!==e[0]&&(r=this.sqr(r)),0!==d||0!==n?(n<<=1,n|=d,(4===++o||0===i&&0===c)&&(r=this.mul(r,e[n]),o=0,n=0)):o=0}f=26}return r},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},h.mont=function(t){return new O(t)},o(O,x),O.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},O.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},O.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var t=a.imul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},O.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new h(0)._forceRed(this);var t=a.mul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},O.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(79)(t))},function(t,e,r){"use strict";const n=e;n.der=r(318),n.pem=r(580)},function(t,e,r){"use strict";const n=r(14),o=r(186).Buffer,h=r(187),f=r(189);function l(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new c,this.tree._init(t.body)}function c(t){h.call(this,"der",t)}function d(t){return t<10?"0"+t:t}t.exports=l,l.prototype.encode=function(data,t){return this.tree._encode(data,t).join()},n(c,h),c.prototype._encodeComposite=function(t,e,r,content){const n=function(t,e,r,n){let o;"seqof"===t?t="seq":"setof"===t&&(t="set");if(f.tagByName.hasOwnProperty(t))o=f.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return n.error("Unknown tag: "+t);o=t}if(o>=31)return n.error("Multi-octet tag encoding unsupported");e||(o|=32);return o|=f.tagClassByName[r||"universal"]<<6,o}(t,e,r,this.reporter);if(content.length<128){const header=o.alloc(2);return header[0]=n,header[1]=content.length,this._createEncoderBuffer([header,content])}let h=1;for(let i=content.length;i>=256;i>>=8)h++;const header=o.alloc(2+h);header[0]=n,header[1]=128|h;for(let i=1+h,t=content.length;t>0;i--,t>>=8)header[i]=255&t;return this._createEncoderBuffer([header,content])},c.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){const e=o.alloc(2*t.length);for(let i=0;i<t.length;i++)e.writeUInt16BE(t.charCodeAt(i),2*i);return this._createEncoderBuffer(e)}return"numstr"===e?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===e?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(e)||"objDesc"===e?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+e+" unsupported")},c.prototype._encodeObjid=function(t,e,r){if("string"==typeof t){if(!e)return this.reporter.error("string objid given, but no values map found");if(!e.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=e[t].split(/[\s.]+/g);for(let i=0;i<t.length;i++)t[i]|=0}else if(Array.isArray(t)){t=t.slice();for(let i=0;i<t.length;i++)t[i]|=0}if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!r){if(t[1]>=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}let n=0;for(let i=0;i<t.length;i++){let e=t[i];for(n++;e>=128;e>>=7)n++}const h=o.alloc(n);let f=h.length-1;for(let i=t.length-1;i>=0;i--){let e=t[i];for(h[f--]=127&e;(e>>=7)>0;)h[f--]=128|127&e}return this._createEncoderBuffer(h)},c.prototype._encodeTime=function(time,t){let e;const r=new Date(time);return"gentime"===t?e=[d(r.getUTCFullYear()),d(r.getUTCMonth()+1),d(r.getUTCDate()),d(r.getUTCHours()),d(r.getUTCMinutes()),d(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?e=[d(r.getUTCFullYear()%100),d(r.getUTCMonth()+1),d(r.getUTCDate()),d(r.getUTCHours()),d(r.getUTCMinutes()),d(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(e,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!=typeof t&&!o.isBuffer(t)){const e=t.toArray();!t.sign&&128&e[0]&&e.unshift(0),t=o.from(e)}if(o.isBuffer(t)){let e=t.length;0===t.length&&e++;const r=o.alloc(e);return t.copy(r),0===t.length&&(r[0]=0),this._createEncoderBuffer(r)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);let r=1;for(let i=t;i>=256;i>>=8)r++;const n=new Array(r);for(let i=n.length-1;i>=0;i--)n[i]=255&t,t>>=8;return 128&n[0]&&n.unshift(0),this._createEncoderBuffer(o.from(n))},c.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},c.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},c.prototype._skipDefault=function(t,e,r){const n=this._baseState;let i;if(null===n.default)return!1;const data=t.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,e,r).join()),data.length!==n.defaultBuffer.length)return!1;for(i=0;i<data.length;i++)if(data[i]!==n.defaultBuffer[i])return!1;return!0}},function(t,e,r){"use strict";const n=e;n.der=r(320),n.pem=r(581)},function(t,e,r){"use strict";const n=r(14),o=r(316),h=r(113).DecoderBuffer,f=r(187),l=r(189);function c(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new d,this.tree._init(t.body)}function d(t){f.call(this,"der",t)}function m(t,e){let r=t.readUInt8(e);if(t.isError(r))return r;const n=l.tagClass[r>>6],o=0==(32&r);if(31==(31&r)){let n=r;for(r=0;128==(128&n);){if(n=t.readUInt8(e),t.isError(n))return n;r<<=7,r|=127&n}}else r&=31;return{cls:n,primitive:o,tag:r,tagStr:l.tag[r]}}function v(t,e,r){let n=t.readUInt8(r);if(t.isError(n))return n;if(!e&&128===n)return null;if(0==(128&n))return n;const o=127&n;if(o>4)return t.error("length octect is too long");n=0;for(let i=0;i<o;i++){n<<=8;const e=t.readUInt8(r);if(t.isError(e))return e;n|=e}return n}t.exports=c,c.prototype.decode=function(data,t){return h.isDecoderBuffer(data)||(data=new h(data,t)),this.tree._decode(data,t)},n(d,f),d.prototype._peekTag=function(t,e,r){if(t.isEmpty())return!1;const n=t.save(),o=m(t,'Failed to peek tag: "'+e+'"');return t.isError(o)?o:(t.restore(n),o.tag===e||o.tagStr===e||o.tagStr+"of"===e||r)},d.prototype._decodeTag=function(t,e,r){const n=m(t,'Failed to decode tag of "'+e+'"');if(t.isError(n))return n;let o=v(t,n.primitive,'Failed to get length of "'+e+'"');if(t.isError(o))return o;if(!r&&n.tag!==e&&n.tagStr!==e&&n.tagStr+"of"!==e)return t.error('Failed to match tag: "'+e+'"');if(n.primitive||null!==o)return t.skip(o,'Failed to match body of: "'+e+'"');const h=t.save(),f=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(f)?f:(o=t.offset-h.offset,t.restore(h),t.skip(o,'Failed to match body of: "'+e+'"'))},d.prototype._skipUntilEnd=function(t,e){for(;;){const r=m(t,e);if(t.isError(r))return r;const n=v(t,r.primitive,e);if(t.isError(n))return n;let o;
2if(o=r.primitive||null!==n?t.skip(n):this._skipUntilEnd(t,e),t.isError(o))return o;if("end"===r.tagStr)break}},d.prototype._decodeList=function(t,e,r,n){const o=[];for(;!t.isEmpty();){const e=this._peekTag(t,"end");if(t.isError(e))return e;const h=r.decode(t,"der",n);if(t.isError(h)&&e)break;o.push(h)}return o},d.prototype._decodeStr=function(t,e){if("bitstr"===e){const e=t.readUInt8();return t.isError(e)?e:{unused:e,data:t.raw()}}if("bmpstr"===e){const e=t.raw();if(e.length%2==1)return t.error("Decoding of string type: bmpstr length mismatch");let r="";for(let i=0;i<e.length/2;i++)r+=String.fromCharCode(e.readUInt16BE(2*i));return r}if("numstr"===e){const e=t.raw().toString("ascii");return this._isNumstr(e)?e:t.error("Decoding of string type: numstr unsupported characters")}if("octstr"===e)return t.raw();if("objDesc"===e)return t.raw();if("printstr"===e){const e=t.raw().toString("ascii");return this._isPrintstr(e)?e:t.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(e)?t.raw().toString():t.error("Decoding of string type: "+e+" unsupported")},d.prototype._decodeObjid=function(t,e,r){let n;const o=[];let h=0,f=0;for(;!t.isEmpty();)f=t.readUInt8(),h<<=7,h|=127&f,0==(128&f)&&(o.push(h),h=0);128&f&&o.push(h);const l=o[0]/40|0,c=o[0]%40;if(n=r?o:[l,c].concat(o.slice(1)),e){let t=e[n.join(" ")];void 0===t&&(t=e[n.join(".")]),void 0!==t&&(n=t)}return n},d.prototype._decodeTime=function(t,e){const r=t.raw().toString();let n,o,h,f,l,c;if("gentime"===e)n=0|r.slice(0,4),o=0|r.slice(4,6),h=0|r.slice(6,8),f=0|r.slice(8,10),l=0|r.slice(10,12),c=0|r.slice(12,14);else{if("utctime"!==e)return t.error("Decoding "+e+" time is not supported yet");n=0|r.slice(0,2),o=0|r.slice(2,4),h=0|r.slice(4,6),f=0|r.slice(6,8),l=0|r.slice(8,10),c=0|r.slice(10,12),n=n<70?2e3+n:1900+n}return Date.UTC(n,o-1,h,f,l,c,0)},d.prototype._decodeNull=function(){return null},d.prototype._decodeBool=function(t){const e=t.readUInt8();return t.isError(e)?e:0!==e},d.prototype._decodeInt=function(t,e){const r=t.raw();let n=new o(r);return e&&(n=e[n.toString(10)]||n),n},d.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getDecoder("der").tree}},function(t){t.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},function(t,e,r){var n=r(110),o=r(13).Buffer;function h(t){var e=o.allocUnsafe(4);return e.writeUInt32BE(t,0),e}t.exports=function(t,e){for(var r,f=o.alloc(0),i=0;f.length<e;)r=h(i++),f=o.concat([f,n("sha1").update(t).update(r).digest()]);return f.slice(0,e)}},function(t,e){t.exports=function(a,b){for(var t=a.length,i=-1;++i<t;)a[i]^=b[i];return a}},function(t,e,r){var n=r(190),o=r(13).Buffer;t.exports=function(t,e){return o.from(t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed().toArray())}},function(t,e,r){var n=r(33).Buffer;t.exports=function(t){return"string"==typeof t?t:"number"==typeof t||n.isBuffer(t)?t.toString():JSON.stringify(t)}},function(t,e,r){var n=r(138),o=function(t,e){n.call(this,t),this.name="NotBeforeError",this.date=e};(o.prototype=Object.create(n.prototype)).constructor=o,t.exports=o},function(t,e,r){var n=r(138),o=function(t,e){n.call(this,t),this.name="TokenExpiredError",this.expiredAt=e};(o.prototype=Object.create(n.prototype)).constructor=o,t.exports=o},function(t,e,r){var n=r(600);t.exports=function(time,t){var e=t||Math.floor(Date.now()/1e3);if("string"==typeof time){var r=n(time);if(void 0===r)return;return Math.floor(e+r/1e3)}return"number"==typeof time?e+time:void 0}},function(t,e,r){(function(e){var n=r(601);t.exports=n.satisfies(e.version,"^6.12.0 || >=8.0.0")}).call(this,r(38))},,,,,,function(t,e,r){"use strict";e.a=function(t,e){return e=e||{},new Promise((function(r,n){var s=new XMLHttpRequest,o=[],u=[],i={},a=function(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:a,headers:{keys:function(){return o},entries:function(){return u},get:function(t){return i[t.toLowerCase()]},has:function(t){return t.toLowerCase()in i}}}};for(var h in s.open(e.method||"get",t,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(t,e,r){o.push(e=e.toLowerCase()),u.push([e,r]),i[e]=i[e]?i[e]+","+r:r})),r(a())},s.onerror=n,s.withCredentials="include"==e.credentials,e.headers)s.setRequestHeader(h,e.headers[h]);s.send(e.body||null)}))}},,function(t,e,r){"use strict";var n=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===o}(t)}(t)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function h(t,e){return!1!==e.clone&&e.isMergeableObject(t)?m((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function f(t,source,e){return t.concat(source).map((function(element){return h(element,e)}))}function l(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(symbol){return t.propertyIsEnumerable(symbol)})):[]}(t))}function c(object,t){try{return t in object}catch(t){return!1}}function d(t,source,e){var r={};return e.isMergeableObject(t)&&l(t).forEach((function(n){r[n]=h(t[n],e)})),l(source).forEach((function(n){(function(t,e){return c(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,n)||(c(t,n)&&e.isMergeableObject(source[n])?r[n]=function(t,e){if(!e.customMerge)return m;var r=e.customMerge(t);return"function"==typeof r?r:m}(n,e)(t[n],source[n],e):r[n]=h(source[n],e))})),r}function m(t,source,e){(e=e||{}).arrayMerge=e.arrayMerge||f,e.isMergeableObject=e.isMergeableObject||n,e.cloneUnlessOtherwiseSpecified=h;var r=Array.isArray(source);return r===Array.isArray(t)?r?e.arrayMerge(t,source,e):d(t,source,e):h(source,e)}m.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return m(t,r,e)}),{})};var v=m;
vendor: 3,970 bytes, line 2
2t.exports=v},,,function(t,e){t.exports=function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get: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,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,r){"use strict";var n="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},o=r(1);t.exports=function(e,r){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a="object"===("undefined"==typeof document?"undefined":n(document))&&"string"==typeof document.cookie,s="object"===(void 0===e?"undefined":n(e))&&"object"===(void 0===r?"undefined":n(r))&&void 0!==t,u=!a&&!s||a&&s,h=function(t){if(s){var n=e.headers.cookie||"";return t&&(n=(n=r.getHeaders())["set-cookie"]?n["set-cookie"].map((function(t){return t.split(";")[0]})).join(";"):""),n}if(a)return document.cookie||""},f=function(){var t=r.getHeader("Set-Cookie");return(t="string"==typeof t?[t]:t)||[]},p=function(t){return r.setHeader("Set-Cookie",t)},l=function(t,e){if(!e)return t;try{return JSON.parse(t)}catch(e){return t}},c={parseJSON:i,set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{path:"/"};if(!u)if(e="object"===(void 0===e?"undefined":n(e))?JSON.stringify(e):e,s){var i=f();i.push(o.serialize(t,e,r)),p(i)}else document.cookie=o.serialize(t,e,r)},setAll:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];u||Array.isArray(t)&&t.forEach((function(t){var e=t.name,r=void 0===e?"":e,n=t.value,o=void 0===n?"":n,i=t.opts,a=void 0===i?{path:"/"}:i;c.set(r,o,a)}))},get:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{fromRes:!1,parseJSON:c.parseJSON};if(u)return"";var r=o.parse(h(e.fromRes)),n=r[t];return l(n,e.parseJSON)},getAll:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{fromRes:!1,parseJSON:c.parseJSON};if(u)return{};var e=o.parse(h(t.fromRes));for(var r in e)e[r]=l(e[r],t.parseJSON);return e},remove:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{path:"/"};if(!u){var r=c.get(t);e.expires=new Date(0),void 0!==r&&c.set(t,"",e)}},removeAll:function(){if(!u){var t=o.parse(h());for(var e in t)c.remove(e)}},nodeCookie:o};return c}},function(t,e,r){"use strict";function i(t,e){try{return e(t)}catch(e){return t}}e.parse=function(t,e){if("string"!=typeof t)throw new TypeError("argument str must be a string");for(var r={},n=e||{},o=t.split(u),s=n.decode||a,h=0;h<o.length;h++){var f=o[h],p=f.indexOf("=");if(!(p<0)){var l=f.substr(0,p).trim(),c=f.substr(++p,f.length).trim();'"'==c[0]&&(c=c.slice(1,-1)),null==r[l]&&(r[l]=i(c,s))}}return r},e.serialize=function(t,e,r){var o=r||{},h=o.encode||s;if("function"!=typeof h)throw new TypeError("option encode is invalid");if(!n.test(t))throw new TypeError("argument name is invalid");var i=h(e);if(i&&!n.test(i))throw new TypeError("argument val is invalid");var a=t+"="+i;if(null!=o.maxAge){var u=o.maxAge-0;if(isNaN(u))throw new Error("maxAge should be a Number");a+="; Max-Age="+Math.floor(u)}if(o.domain){if(!n.test(o.domain))throw new TypeError("option domain is invalid");a+="; Domain="+o.domain}if(o.path){if(!n.test(o.path))throw new TypeError("option path is invalid");a+="; Path="+o.path}if(o.expires){if("function"!=typeof o.expires.toUTCString)throw new TypeError("option expires is invali
2d");a+="; Expires="+o.expires.toUTCString()}if(o.httpOnly&&(a+="; HttpOnly"),o.secure&&(a+="; Secure"),o.sameSite)switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return a};var a=decodeURIComponent,s=encodeURIComponent,u=/; */,n=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/}])},function(t,e,r){t.exports=function(t){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}var r={};return e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get: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,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=6)}([function(t,e,r){"use strict";function n(){f=!1}function i(t){if(t){if(t!==h){if(t.length!==c.length)throw new Error("Custom alphabet for shortid must be "+c.length+" unique characters. You submitted "+t.length+" characters: "+t);var e=t.split("").filter((function(t,e,r){return e!==r.lastIndexOf(t)}));if(e.length)throw new Error("Custom alphabet for shortid must be "+c.length+" unique characters. These characters were not unique: "+e.join(", "));h=t,n()}}else h!==c&&(h=c,n())}function o(){return f||(f=function(){h||i(c);for(var t,e=h.split(""),r=[],n=l.nextValue();e.length>0;)n=l.nextValue(),t=Math.floor(n*e.length),r.push(e.splice(t,1)[0]);return r.join("")}())}var h,p,f,l=r(19),c="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";t.exports={get:function(){return h||c},characters:function(t){return i(t),h},seed:function(t){l.seed(t),p!==t&&(n(),p=t)},lookup:function(t){return o()[t]},shuffled:o}},function(t,e,r){"use strict";var n=r(5),i=r.n(n);e.a={animateIn:function(t){i()({targets:t,translateY:"-35px",opacity:1,duration:300,easing:"easeOutCubic"})},animateOut:function(t,e){i()({targets:t,opacity:0,marginTop:"-40px",duration:300,easing:"easeOutExpo",complete:e})},animateOutBottom:function(t,e){i()({targets:t,opacity:0,marginBottom:"-40px",duration:300,easing:"easeOutExpo",complete:e})},animateReset:function(t){i()({targets:t,left:0,opacity:1,duration:300,easing:"easeOutExpo"})},animatePanning:function(t,e,r){i()({targets:t,duration:10,easing:"easeOutQuad",left:e,opacity:r})},animatePanEnd:function(t,e){i()({targets:t,opacity:0,duration:300,easing:"easeOutExpo",complete:e})},clearAnimation:function(t){var e=i.a.timeline();t.forEach((function(t){e.add({targets:t.el,opacity:0,right:"-40px",duration:300,offset:"-=150",easing:"easeOutExpo",complete:function(){t.remove()}})}))}}},function(t,e,r){"use strict";t.exports=r(16)},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(8),i=r(1),o="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},a=r(2);r(11).polyfill();var s=function t(e){var r=this;return this.id=a.generate(),this.options=e,this.cached_options={},this.global={},this.groups=[],this.toasts=[],this.container=null,f(this),u(this),this.group=function(e){e||(e={}),e.globalToasts||(e.globalToasts={}),Object.assign(e.globalToasts,r.global);var n=new t(e);return r.groups.push(n),n},this.register=function(t,e,n){return l(r,t,e,n=n||{})},this.show=function(t,e){return h(r,t,e)},this.success=function(t,e){return(e=e||{}).type="success",h(r,t,e)},this.info=function(t,e){return(e=e||{}).type="info",h(r,t,e)},this.error=function(t,e){return(e=e||{}).type="error",h(r,t,e)},this.remove=function(t){r.toasts=r.toasts.filter((function(e){return e.el.hash!==t.hash})),t.parentNode&&t.parentNode.removeChild(t)},this.clear=function(t){return i.a.clearAnimation(r.toasts,(function(){t&&t()})),r.toasts=[],!0},this},h=function(t,e,i){var a;if("object"!==(void 0===(i=i||{})?"undefined":o(i)))return console.error("Options should be a type of object. given : "+i),null;t.options.singleton&&t.toasts.length>0&&(t.cached_options=i,t.toasts[t.toasts.length-1].goAway(0));var s=Object.assign({},t.options);return Object.assign(s,i),a=r.i(n.a)(t,e,s),t.toasts.push(a),a},u=function(t){var e=t.options.globalToasts,r=function(e,r){return"string"==typeof r&&t[r]?t[r].apply(t,[e,{}]):h(t,e,r)};e&&(t.global={},Object.keys(e).forEach((function(n){t.global[n]=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e[n].apply(null,[t,r])}})))},f=function(t){var e=document.createElement("div");e.id=t.id,e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","fal
2se"),document.body.appendChild(e),t.container=e},l=function(t,e,r,n){t.options.globalToasts||(t.options.globalToasts={}),t.options.globalToasts[e]=function(t,e){var i=null;return"string"==typeof r&&(i=r),"function"==typeof r&&(i=r(t)),e(i,n)},u(t)}},function(t,e,r){r(22);var n=r(21)(null,null,null,null);t.exports=n.exports},function(t,e,r){(function(r){var n,i,o,a={scope:{}};a.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,r){if(r.get||r.set)throw new TypeError("ES3 does not support getters and setters.");t!=Array.prototype&&t!=Object.prototype&&(t[e]=r.value)},a.getGlobal=function(t){return"undefined"!=typeof window&&window===t?t:void 0!==r&&null!=r?r:t},a.global=a.getGlobal(this),a.SYMBOL_PREFIX="jscomp_symbol_",a.initSymbol=function(){a.initSymbol=function(){},a.global.Symbol||(a.global.Symbol=a.Symbol)},a.symbolCounter_=0,a.Symbol=function(t){return a.SYMBOL_PREFIX+(t||"")+a.symbolCounter_++},a.initSymbolIterator=function(){a.initSymbol();var t=a.global.Symbol.iterator;t||(t=a.global.Symbol.iterator=a.global.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&a.defineProperty(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return a.arrayIterator(this)}}),a.initSymbolIterator=function(){}},a.arrayIterator=function(t){var e=0;return a.iteratorPrototype((function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}))},a.iteratorPrototype=function(t){return a.initSymbolIterator(),(t={next:t})[a.global.Symbol.iterator]=function(){return this},t},a.array=a.array||{},a.iteratorFromArray=function(t,e){a.initSymbolIterator(),t instanceof String&&(t+="");var r=0,n={next:function(){if(r<t.length){var i=r++;return{value:e(i,t[i]),done:!1}}return n.next=function(){return{done:!0,value:void 0}},n.next()}};return n[Symbol.iterator]=function(){return n},n},a.polyfill=function(t,e,r,n){if(e){for(r=a.global,t=t.split("."),n=0;n<t.length-1;n++){var i=t[n];i in r||(r[i]={}),r=r[i]}(e=e(n=r[t=t[t.length-1]]))!=n&&null!=e&&a.defineProperty(r,t,{configurable:!0,writable:!0,value:e})}},a.polyfill("Array.prototype.keys",(function(t){return t||function(){return a.iteratorFromArray(this,(function(t){return t}))}}),"es6-impl","es3");var s=this;i=[],n=function(){function t(t){if(!C.col(t))try{return document.querySelectorAll(t)}catch(t){}}function e(t,e){for(var r=t.length,n=2<=arguments.length?arguments[1]:void 0,i=[],o=0;o<r;o++)if(o in t){var a=t[o];e.call(n,a,o,t)&&i.push(a)}return i}function r(t){return t.reduce((function(t,e){return t.concat(C.arr(e)?r(e):e)}),[])}function n(e){return C.arr(e)?e:(C.str(e)&&(e=t(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function i(t,e){return t.some((function(t){return t===e}))}function o(t){var e,r={};for(e in t)r[e]=t[e];return r}function a(t,e){var r,n=o(t);for(r in t)n[r]=e.hasOwnProperty(r)?e[r]:t[r];return n}function h(t,e){var r,n=o(t);for(r in e)n[r]=C.und(t[r])?e[r]:t[r];return n}function f(t){if(t=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t))return t[2]}function l(t,e){return C.fnc(t)?t(e.target,e.id,e.total):t}function c(t,e){if(e in t.style)return getComputedStyle(t).getPropertyValue(e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}function d(t,e){return C.dom(t)&&i(D,e)?"transform":C.dom(t)&&(t.getAttribute(e)||C.svg(t)&&t[e])?"attribute":C.dom(t)&&"transform"!==e&&c(t,e)?"css":null!=t[e]?"object":void 0}function m(t,r){var n=function(t){return-1<t.indexOf("translate")||"perspective"===t?"px":-1<t.indexOf("rotate")||-1<t.indexOf("skew")?"deg":void 0}(r);if(n=-1<r.indexOf("scale")?1:0+n,!(t=t.style.transform))return n;for(var i=[],o=[],a=[],s=/(\w+)\((.+?)\)/g;i=s.exec(t);)o.push(i[1]),a.push(i[2]);return(t=e(a,(function(t,e){return o[e]===r}))).length?t[0]:n}function g(t,e){switch(d(t,e)){case"transform":return m(t,e);case"css":return c(t,e);case"attribute":return t.getAttribute(e)}return t[e]||0}function v(t,e){var r=/^(\*=|\+=|-=)/.exec(t);if(!r)return t;var n=f(t)||0;switch(e=parseFloat(e),t=parseFloat(t.replace(r[0],"")),r[0][0]){case"+":return e+t+n;case"-":return e-t+n;case"*":return e*t+n}}function b(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function y(t){t=t.points;for(var e,r=0,n=0;n<t.numberOfItems;n++){var i=t.getItem(n);0<n&&(r+=b(e,i)),e=i}return r}function w(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return 2*Math.PI*t.getAttribute("r");
2case"rect":return 2*t.getAttribute("width")+2*t.getAttribute("height");case"line":return b({x:t.getAttribute("x1"),y:t.getAttribute("y1")},{x:t.getAttribute("x2"),y:t.getAttribute("y2")});case"polyline":return y(t);case"polygon":var e=t.points;return y(t)+b(e.getItem(e.numberOfItems-1),e.getItem(0))}}function M(t,e){function r(r){return r=void 0===r?0:r,t.el.getPointAtLength(1<=e+r?e+r:0)}var n=r(),i=r(-1),o=r(1);switch(t.property){case"x":return n.x;case"y":return n.y;case"angle":return 180*Math.atan2(o.y-i.y,o.x-i.x)/Math.PI}}function _(t,e){var r,n=/-?\d*\.?\d+/g;if(r=C.pth(t)?t.totalLength:t,C.col(r))if(C.rgb(r)){var i=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(r);r=i?"rgba("+i[1]+",1)":r}else r=C.hex(r)?function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,r,n){return e+e+r+r+n+n}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgba("+(t=parseInt(e[1],16))+","+parseInt(e[2],16)+","+(e=parseInt(e[3],16))+",1)"}(r):C.hsl(r)?function(t){function e(t,e,r){return 0>r&&(r+=1),1<r&&--r,r<1/6?t+6*(e-t)*r:.5>r?e:r<2/3?t+(e-t)*(2/3-r)*6:t}var r=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(t);t=parseInt(r[1])/360;var n=parseInt(r[2])/100,i=parseInt(r[3])/100;if(r=r[4]||1,0==n)i=n=t=i;else{var o=.5>i?i*(1+n):i+n-i*n,a=2*i-o;i=e(a,o,t+1/3),n=e(a,o,t),t=e(a,o,t-1/3)}return"rgba("+255*i+","+255*n+","+255*t+","+r+")"}(r):void 0;else i=(i=f(r))?r.substr(0,r.length-i.length):r,r=e&&!/\s/g.test(r)?i+e:i;return{original:r+="",numbers:r.match(n)?r.match(n).map(Number):[0],strings:C.str(t)||e?r.split(n):[]}}function S(t){return e(t=t?r(C.arr(t)?t.map(n):n(t)):[],(function(t,e,r){return r.indexOf(t)===e}))}function E(t,e){var r=o(e);if(C.arr(t)){var i=t.length;2!==i||C.obj(t[0])?C.fnc(e.duration)||(r.duration=e.duration/i):t={value:t}}return n(t).map((function(t,r){return r=r?0:e.delay,t=C.obj(t)&&!C.pth(t)?t:{value:t},C.und(t.delay)&&(t.delay=r),t})).map((function(t){return h(t,r)}))}function k(t,e){var r;return t.tweens.map((function(n){var i=(n=function(t,e){var r,n={};for(r in t){var i=l(t[r],e);C.arr(i)&&1===(i=i.map((function(t){return l(t,e)}))).length&&(i=i[0]),n[r]=i}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}(n,e)).value,o=g(e.target,t.name),a=r?r.to.original:o,s=(a=C.arr(i)?i[0]:a,v(C.arr(i)?i[1]:i,a));return o=f(s)||f(a)||f(o),n.from=_(a,o),n.to=_(s,o),n.start=r?r.end:t.offset,n.end=n.start+n.delay+n.duration,n.easing=function(t){return C.arr(t)?P.apply(this,t):B[t]}(n.easing),n.elasticity=(1e3-Math.min(Math.max(n.elasticity,1),999))/1e3,n.isPath=C.pth(i),n.isColor=C.col(n.from.original),n.isColor&&(n.round=1),r=n}))}function T(t,n){return e(r(t.map((function(t){return n.map((function(e){var r=d(t.target,e.name);if(r){var n=k(e,t);e={type:r,property:e.name,animatable:t,tweens:n,duration:n[n.length-1].end,delay:n[0].delay}}else e=void 0;return e}))}))),(function(t){return!C.und(t)}))}function A(t,e,r,n){var i="delay"===t;return e.length?(i?Math.min:Math.max).apply(Math,e.map((function(e){return e[t]}))):i?n.delay:r.offset+n.delay+n.duration}function R(t){var e,r=a(I,t),n=a(L,t),i=function(t){var e=S(t);return e.map((function(t,r){return{target:t,id:r,total:e.length}}))}(t.targets),o=[],s=h(r,n);for(e in t)s.hasOwnProperty(e)||"targets"===e||o.push({name:e,offset:s.offset,tweens:E(t[e],n)});return h(r,{children:[],animatables:i,animations:t=T(i,o),duration:A("duration",t,r,n),delay:A("delay",t,r,n)})}function x(t){function r(){return window.Promise&&new Promise((function(t){return l=t}))}function n(t){return d.reversed?d.duration-t:t}function i(t){for(var r=0,n={},i=d.animations,o=i.length;r<o;){var a=i[r],s=a.animatable,h=(f=a.tweens)[u=f.length-1];u&&(h=e(f,(function(e){return t<e.end}))[0]||h);for(var f=Math.min(Math.max(t-h.start-h.delay,0),h.duration)/h.duration,l=isNaN(f)?1:h.easing(f,h.elasticity),p=(f=h.to.strings,h.round),u=[],m=void 0,v=(m=h.to.numbers.length,0);v<m;v++){var g=void 0,y=(g=h.to.numbers[v],h.from.numbers[v]);g=h.isPath?M(h.value,l*g):y+l*(g-y),p&&(h.isColor&&2<v||(g=Math.round(g*p)/p)),u.push(g)}if(h=f.length)for(m=f[0],l=0;l<h;l++)p=f[l+1],v=u[l],isNaN(v)||(m=p?m+(v+p):m+(v+" "));else m=u[0];N[a.type](s.target,a.property,m,n,s.id),a.currentValue=m,r++}if(r=Object.keys(n).length)for(i=0;i<r;i++)O||(O=c(document.body,"transform")?"transform":"-webkit-transform"),d.animatables[i].target.style[O]=n[i].join(" ");d.currentTime=t,d.progress=t/d.duration*100}function o(t){d[t]&&d[t](d)}function a(){d.remaining&&!0!==d.remaining&&d.remaining--}function s(t){var e=d.duration,s=d.offset,c=s+d.delay,m=d.currentTime,v=d.reversed,g=n(t);
2if(d.children.length){var y=d.children,b=y.length;if(g>=d.currentTime)for(var w=0;w<b;w++)y[w].seek(g);else for(;b--;)y[b].seek(g)}(g>=c||!e)&&(d.began||(d.began=!0,o("begin")),o("run")),g>s&&g<e?i(g):(g<=s&&0!==m&&(i(0),v&&a()),(g>=e&&m!==e||!e)&&(i(e),v||a())),o("update"),t>=e&&(d.remaining?(u=h,"alternate"===d.direction&&(d.reversed=!d.reversed)):(d.pause(),d.completed||(d.completed=!0,o("complete"),"Promise"in window&&(l(),p=r()))),f=0)}t=void 0===t?{}:t;var h,u,f=0,l=null,p=r(),d=R(t);return d.reset=function(){var t=d.direction,e=d.loop;for(d.currentTime=0,d.progress=0,d.paused=!0,d.began=!1,d.completed=!1,d.reversed="reverse"===t,d.remaining="alternate"===t&&1===e?2:e,i(0),t=d.children.length;t--;)d.children[t].reset()},d.tick=function(t){h=t,u||(u=h),s((f+h-u)*x.speed)},d.seek=function(t){s(n(t))},d.pause=function(){var t=j.indexOf(d);-1<t&&j.splice(t,1),d.paused=!0},d.play=function(){d.paused&&(d.paused=!1,u=0,f=n(d.currentTime),j.push(d),q||F())},d.reverse=function(){d.reversed=!d.reversed,u=0,f=n(d.currentTime)},d.restart=function(){d.pause(),d.reset(),d.play()},d.finished=p,d.reset(),d.autoplay&&d.play(),d}var O,I={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},L={duration:1e3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},D="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),C={arr:function(t){return Array.isArray(t)},obj:function(t){return-1<Object.prototype.toString.call(t).indexOf("Object")},pth:function(t){return C.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},dom:function(t){return t.nodeType||C.svg(t)},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return C.hex(t)||C.rgb(t)||C.hsl(t)}},P=function(){function t(t,e,r){return(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t}return function(e,r,n,i){if(0<=e&&1>=e&&0<=n&&1>=n){var o=new Float32Array(11);if(e!==r||n!==i)for(var a=0;11>a;++a)o[a]=t(.1*a,e,n);return function(a){if(e===r&&n===i)return a;if(0===a)return 0;if(1===a)return 1;for(var s=0,h=1;10!==h&&o[h]<=a;++h)s+=.1;--h,h=s+(a-o[h])/(o[h+1]-o[h])*.1;var u=3*(1-3*n+3*e)*h*h+2*(3*n-6*e)*h+3*e;if(.001<=u){for(s=0;4>s&&0!=(u=3*(1-3*n+3*e)*h*h+2*(3*n-6*e)*h+3*e);++s){var f=t(h,e,n)-a;h-=f/u}a=h}else if(0===u)a=h;else{h=s,s+=.1;var l=0;do{0<(u=t(f=h+(s-h)/2,e,n)-a)?s=f:h=f}while(1e-7<Math.abs(u)&&10>++l);a=f}return t(a,r,i)}}}}(),B=function(){function t(t,e){return 0===t||1===t?t:-Math.pow(2,10*(t-1))*Math.sin(2*(t-1-e/(2*Math.PI)*Math.asin(1))*Math.PI/e)}var e,r="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),n={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],t],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(e,r){return 1-t(1-e,r)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(e,r){return.5>e?t(2*e,r)/2:1-t(-2*e+2,r)/2}]},i={linear:P(.25,.25,.75,.75)},o={};for(e in n)o.type=e,n[o.type].forEach(function(t){return function(e,n){i["ease"+t.type+r[n]]=C.fnc(e)?e:P.apply(s,e)}}(o)),o={type:o.type};return i}(),N={css:function(t,e,r){return t.style[e]=r},attribute:function(t,e,r){return t.setAttribute(e,r)},object:function(t,e,r){return t[e]=r},transform:function(t,e,r,n,i){n[i]||(n[i]=[]),n[i].push(e+"("+r+")")}},j=[],q=0,F=function(){function t(){q=requestAnimationFrame(e)}function e(e){var r=j.length;if(r){for(var n=0;n<r;)j[n]&&j[n].tick(e),n++;t()}else cancelAnimationFrame(q),q=0}return t}();return x.version="2.2.0",x.speed=1,x.running=j,x.remove=function(t){t=S(t);for(var e=j.length;e--;)for(var r=j[e],n=r.animations,o=n.length;o--;)i(t,n[o].animatable.target)&&(n.splice(o,1),n.length||r.pause())},x.getValue=g,x.path=function(e,r){var n=C.str(e)?t(e)[0]:e,i=r||100;return function(t){return{el:n,property:t,totalLength:w(n)*(i/100)}}},x.setDashoffset=function(t){var e=w(t);return t.setAttribute("stroke-dasharray",e),e},x.bezier=P,x.easings=B,x.timeline=function(t){var e=x(t);return e.pause(),e.duration=0,e.add=function(r){return e.children.forEac
2h((function(t){t.began=!0,t.completed=!0})),n(r).forEach((function(r){var n=h(r,a(L,t||{}));n.targets=n.targets||t.targets,r=e.duration;var i=n.offset;n.autoplay=!1,n.direction=e.direction,n.offset=C.und(i)?r:v(i,r),e.began=!0,e.completed=!0,e.seek(n.offset),(n=x(n)).began=!0,n.completed=!0,n.duration>r&&(e.duration=n.duration),e.children.push(n)})),e.seek(0),e.reset(),e.autoplay&&e.restart(),e},e},x.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},x},void 0!==(o="function"==typeof n?n.apply(e,i):n)&&(t.exports=o)}).call(e,r(25))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(3),i=r(4),o=r.n(i),a={install:function(t,e){e||(e={});var r=new n.a(e);t.component("toasted",o.a),t.toasted=t.prototype.$toasted=r}};"undefined"!=typeof window&&window.Vue&&(window.Toasted=a),e.default=a},function(t,e,r){"use strict";r.d(e,"a",(function(){return h}));var n=r(1),o="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},a=function(t,e,r){return setTimeout((function(){r.cached_options.position&&r.cached_options.position.includes("bottom")?n.a.animateOutBottom(t,(function(){r.remove(t)})):n.a.animateOut(t,(function(){r.remove(t)}))}),e),!0},h=function(t,e){var r=!1;return{el:t,text:function(e){return function(t,e){("object"===("undefined"==typeof HTMLElement?"undefined":o(HTMLElement))?e instanceof HTMLElement:e&&"object"===(void 0===e?"undefined":o(e))&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)?t.appendChild(e):t.innerHTML=e}(t,e),this},goAway:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:800;return r=!0,a(t,n,e)},remove:function(){e.remove(t)},disposed:function(){return r}}}},function(t,e,r){"use strict";var n=r(12),i=r.n(n),o=r(1),a=r(7),s="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},h=r(2);String.prototype.includes||Object.defineProperty(String.prototype,"includes",{value:function(t,e){return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}});var u={},f=null,l=function(t){return t.className=t.className||null,t.onComplete=t.onComplete||null,t.position=t.position||"top-right",t.duration=t.duration||null,t.keepOnHover=t.keepOnHover||!1,t.theme=t.theme||"toasted-primary",t.type=t.type||"default",t.containerClass=t.containerClass||null,t.fullWidth=t.fullWidth||!1,t.icon=t.icon||null,t.action=t.action||null,t.fitToScreen=t.fitToScreen||null,t.closeOnSwipe=void 0===t.closeOnSwipe||t.closeOnSwipe,t.iconPack=t.iconPack||"material",t.className&&"string"==typeof t.className&&(t.className=t.className.split(" ")),t.className||(t.className=[]),t.theme&&t.className.push(t.theme.trim()),t.type&&t.className.push(t.type),t.containerClass&&"string"==typeof t.containerClass&&(t.containerClass=t.containerClass.split(" ")),t.containerClass||(t.containerClass=[]),t.position&&t.containerClass.push(t.position.trim()),t.fullWidth&&t.containerClass.push("full-width"),t.fitToScreen&&t.containerClass.push("fit-to-screen"),u=t,t},p=function(t,e){var n=document.createElement("div");if(n.classList.add("toasted"),n.hash=h.generate(),e.className&&e.className.forEach((function(t){n.classList.add(t)})),("object"===("undefined"==typeof HTMLElement?"undefined":s(HTMLElement))?t instanceof HTMLElement:t&&"object"===(void 0===t?"undefined":s(t))&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName)?n.appendChild(t):n.innerHTML=t,c(e,n),e.closeOnSwipe){var u=new i.a(n,{prevent_default:!1});u.on("pan",(function(t){var e=t.deltaX;n.classList.contains("panning")||n.classList.add("panning");var r=1-Math.abs(e/80);r<0&&(r=0),o.a.animatePanning(n,e,r)})),u.on("panend",(function(t){var r=t.deltaX;Math.abs(r)>80?o.a.animatePanEnd(n,(function(){"function"==typeof e.onComplete&&e.onComplete(),n.parentNode&&f.remove(n)})):(n.classList.remove("panning"),o.a.animateReset(n))}))}if(Array.isArray(e.action))e.action.forEach((function(t){var e=m(t,r.i(a.a)(n,f));e&&n.appendChild(e)}));else if("object"===s(e.action)){var l=m(e.action,r.i(a.a)(n,f));l&&n.appendChild(l)}return n},c=function(t,e){if(t.icon){var r=document.createElement("i");switch(r.setAttribute("aria-hidden","true"),t.iconPack){case"fontawesome":r.classList.add("fa");var n=t.icon.name?t.icon.name:t.icon;n.includes("fa-")?r.classList.add(n.trim()):r.classList.add("fa-"+n.trim());break;case"mdi":r.classList.add("mdi");var i=t.icon.name?t.icon.name:t.icon;i.includes("mdi-")?r.classList.add(i.trim()):r.classList.add("mdi-"+i.trim());break;case"custom-class":var o=t.icon.name?t.icon.name:t.icon;"string"==typeof o?o.split(" ").forEach((function(t){r.classList.add(t)})):Array.isArray(o)&&o.forEach((function(t){r.classList.add(t.trim())}));break;case"callback":var a=t.icon&&t.icon instanceof Function?t.icon:null;a&&(r=a(r));break;default:r.classList.add("material-icons"),r.textContent=t.icon.name?t.icon.name:t.icon}t.icon.after&&r.classList.add("after"),d(t,r,e)}
2},d=function(t,e,r){t.icon&&(t.icon.after&&t.icon.name?r.appendChild(e):(t.icon.name,r.insertBefore(e,r.firstChild)))},m=function(t,e){if(!t)return null;var r=document.createElement("a");if(r.classList.add("action"),r.classList.add("ripple"),t.text&&(r.text=t.text),t.href&&(r.href=t.href),t.target&&(r.target=t.target),t.icon){r.classList.add("icon");var n=document.createElement("i");switch(u.iconPack){case"fontawesome":n.classList.add("fa"),t.icon.includes("fa-")?n.classList.add(t.icon.trim()):n.classList.add("fa-"+t.icon.trim());break;case"mdi":n.classList.add("mdi"),t.icon.includes("mdi-")?n.classList.add(t.icon.trim()):n.classList.add("mdi-"+t.icon.trim());break;case"custom-class":"string"==typeof t.icon?t.icon.split(" ").forEach((function(t){r.classList.add(t)})):Array.isArray(t.icon)&&t.icon.forEach((function(t){r.classList.add(t.trim())}));break;default:n.classList.add("material-icons"),n.textContent=t.icon}r.appendChild(n)}return t.class&&("string"==typeof t.class?t.class.split(" ").forEach((function(t){r.classList.add(t)})):Array.isArray(t.class)&&t.class.forEach((function(t){r.classList.add(t.trim())}))),t.push&&r.addEventListener("click",(function(r){r.preventDefault(),u.router?(u.router.push(t.push),t.push.dontClose||e.goAway(0)):console.warn("[vue-toasted] : Vue Router instance is not attached. please check the docs")})),t.onClick&&"function"==typeof t.onClick&&r.addEventListener("click",(function(r){t.onClick&&(r.preventDefault(),t.onClick(r,e))})),r};e.a=function(t,e,n){f=t,n=l(n);var i=f.container;n.containerClass.unshift("toasted-container"),i.className!==n.containerClass.join(" ")&&(i.className="",n.containerClass.forEach((function(t){i.classList.add(t)})));var s=p(e,n);e&&i.appendChild(s),s.style.opacity=0,o.a.animateIn(s);var h=n.duration,u=void 0;if(null!==h){var c=function(){return setInterval((function(){null===s.parentNode&&window.clearInterval(u),s.classList.contains("panning")||(h-=20),h<=0&&(o.a.animateOut(s,(function(){"function"==typeof n.onComplete&&n.onComplete(),s.parentNode&&f.remove(s)})),window.clearInterval(u))}),20)};u=c(),n.keepOnHover&&(s.addEventListener("mouseover",(function(){window.clearInterval(u)})),s.addEventListener("mouseout",(function(){u=c()})))}return r.i(a.a)(s,f)}},function(t,e,r){(t.exports=r(10)()).push([t.i,".toasted{padding:0 20px}.toasted.rounded{border-radius:24px}.toasted .primary,.toasted.toasted-primary{border-radius:2px;min-height:38px;line-height:1.1em;background-color:#353535;padding:6px 20px;font-size:15px;font-weight:300;color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.toasted .primary.success,.toasted.toasted-primary.success{background:#4caf50}.toasted .primary.error,.toasted.toasted-primary.error{background:#f44336}.toasted .primary.info,.toasted.toasted-primary.info{background:#3f51b5}.toasted .primary .action,.toasted.toasted-primary .action{color:#a1c2fa}.toasted.bubble{border-radius:30px;min-height:38px;line-height:1.1em;background-color:#ff7043;padding:0 20px;font-size:15px;font-weight:300;color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.toasted.bubble.success{background:#4caf50}.toasted.bubble.error{background:#f44336}.toasted.bubble.info{background:#3f51b5}.toasted.bubble .action{color:#8e2b0c}.toasted.outline{border-radius:30px;min-height:38px;line-height:1.1em;background-color:#fff;border:1px solid #676767;padding:0 20px;font-size:15px;color:#676767;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);font-weight:700}.toasted.outline.success{color:#4caf50;border-color:#4caf50}.toasted.outline.error{color:#f44336;border-color:#f44336}.toasted.outline.info{color:#3f51b5;border-color:#3f51b5}.toasted.outline .action{color:#607d8b}.toasted-container{position:fixed;z-index:10000}.toasted-container,.toasted-container.full-width{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.toasted-container.full-width{max-width:86%;width:100%}.toasted-container.full-width.fit-to-screen{min-width:100%}.toasted-container.full-width.fit-to-screen .toasted:first-child{margin-top:0}.toasted-container.full-width.fit-to-screen.top-right{top:0;right:0}.toasted-container.full-width.fit-to-screen.top-left{top:0;left:0}.toasted-container.full-width.fit-to-screen.top-center{top:0;left:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.full-width.fit-to-screen.bottom-right{right:0;bottom:0}.toasted-container.full-width.fit-to-screen.bottom-left{left:0;bottom:0}.toasted-container.full-width.fit-to-screen.bottom-center{left:0;bottom:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.top-right{top:10%;right:7%}.toasted-container.top-left{top:10%;left:7%}.toasted-container.top-center{top:10%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.toasted-container.bottom-right{right:5%;bottom:7%}.toasted-container.bottom-left{left:5%;bottom:7%}.toasted-container.bottom-center{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);bottom:7%}.toasted-container.bottom-left .toasted,.toasted-container.top-left .toasted{float:left}.toasted-container.bottom-right .toasted,.toasted-container.top-right .toasted{float:right}.toasted-container .toasted{top:35px;width:auto;clear:both;margin-top:10px;position:relative;max-width:100%;height:auto;word-break:normal;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;box-sizing:inherit}.toasted-container .toasted .fa,.toasted-container .toasted .fab,.toasted-container .toasted .far,.toasted-container .toasted .fas,.toasted-container .toasted .material-icons,.toasted-container .toasted .mdi{margin-right:.5rem;margin-left:-.4rem}.toasted-container .toasted .fa.after,.toasted-container .toasted .fab.after,.toasted-container .toasted .far.after,.toasted-container .toasted .fas.after,.toasted-container .toasted .material-icons.after,.toasted-container .toasted .mdi.after{margin-left:.5rem;margin-right:-.4rem}.toasted-container .toasted .action{text-decoration:none;font-size:.8rem;padding:8px;margin:5px -7px 5px 7px;border-radius:3px;text-transform:uppercase;letter-spacing:.03em;font-weight:600;cursor:pointer}.toasted-container .toasted .action.icon{padding:4px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.toasted-container .toasted .action.icon .fa,.toasted-container .toasted .action.icon .material-icons,.toasted-container .toasted .action.icon .mdi{margin-right:0;margin-left:4px}.toasted-container .toasted .action.icon:hover{text-decoration:none}.toasted-container .toasted .action:hover{text-decoration:underline}@media only screen and (max-width:600px){.toasted-container{min-width:100%}.toasted-container .toasted:first-child{margin-top:0}.toasted-container.top-right{top:0;right:0}.toasted-container.top-left{top:0;left:0}.toasted-container.top-center{top:0;left:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.bottom-right{right:0;bottom:0}.toasted-container.bottom-left{left:0;bottom:0}.toasted-container.bottom-center{left:0;bottom:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.bottom-center,.toasted-container.top-center{-ms-flex-align:stretch!important;align-items:stretch!important}.toasted-container.bottom-left .toasted,.toasted-container.bottom-right .toasted,.toasted-container.top-left .toasted,.toasted-container.top-right .toasted{float:none}.toasted-container .toasted{border-radius:0}}",""])},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var r=this[e];r[2]?t.push("@media "+r[2]+"{"+r[1]+"}"):t.push(r[1])}return t.join("")},t.i=function(e,r){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(n[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&n[a[0]]||(r&&!a[2]?a[2]=r:r&&(a[2]="("+a[2]+") and ("+r+")"),t.push(a))}},t}},function(t,e,r){"use strict";function n(t,e){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var r=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var o=Object.keys(Object(i)),a=0,s=o.length;a<s;a++){var h=o[a],u=Object.getOwnPropertyDescriptor(i,h);void 0!==u&&u.enumerable&&(r[h]=i[h])}}return r}t.exports={assign:n,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,
2configurable:!0,writable:!0,value:n})}}},function(t,e,r){var n;!function(i,o,a,s){"use strict";function h(t,e,r){return setTimeout(c(t,r),e)}function u(t,e,r){return!!Array.isArray(t)&&(f(t,r[e],r),!0)}function f(t,e,r){var n;if(t)if(t.forEach)t.forEach(e,r);else if(t.length!==s)for(n=0;n<t.length;)e.call(r,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&&e.call(r,t[n],n,t)}function l(t,e,r){var n="DEPRECATED METHOD: "+e+"\n"+r+" AT \n";return function(){var e=new Error("get-stack-trace"),r=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,n,r),t.apply(this,arguments)}}function p(t,e,r){var n,i=e.prototype;(n=t.prototype=Object.create(i)).constructor=t,n._super=i,r&&at(n,r)}function c(t,e){return function(){return t.apply(e,arguments)}}function d(t,e){return typeof t==ht?t.apply(e&&e[0]||s,e):t}function m(t,e){return t===s?e:t}function v(t,e,r){f(w(e),(function(e){t.addEventListener(e,r,!1)}))}function g(t,e,r){f(w(e),(function(e){t.removeEventListener(e,r,!1)}))}function y(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function b(t,e){return t.indexOf(e)>-1}function w(t){return t.trim().split(/\s+/g)}function M(t,e,r){if(t.indexOf&&!r)return t.indexOf(e);for(var n=0;n<t.length;){if(r&&t[n][r]==e||!r&&t[n]===e)return n;n++}return-1}function _(t){return Array.prototype.slice.call(t,0)}function S(t,e,r){for(var n=[],i=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];M(i,a)<0&&n.push(t[o]),i[o]=a,o++}return r&&(n=e?n.sort((function(t,r){return t[e]>r[e]})):n.sort()),n}function E(t,e){for(var r,n,i=e[0].toUpperCase()+e.slice(1),o=0;o<st.length;){if((n=(r=st[o])?r+i:e)in t)return n;o++}return s}function k(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||i}function T(t,e){var r=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){d(t.options.enable,[t])&&r.handler(e)},this.init()}function A(t,e,r){var n=r.pointers.length,i=r.changedPointers.length,o=e&Mt&&n-i==0,a=e&(St|Et)&&n-i==0;r.isFirst=!!o,r.isFinal=!!a,o&&(t.session={}),r.eventType=e,function(t,e){var r=t.session,n=e.pointers,i=n.length;r.firstInput||(r.firstInput=x(e)),i>1&&!r.firstMultiple?r.firstMultiple=x(e):1===i&&(r.firstMultiple=!1);var o=r.firstInput,a=r.firstMultiple,s=a?a.center:o.center,h=e.center=O(n);e.timeStamp=ct(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=C(s,h),e.distance=D(s,h),function(t,e){var r=e.center,n=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};e.eventType!==Mt&&o.eventType!==St||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=t.offsetDelta={x:r.x,y:r.y}),e.deltaX=i.x+(r.x-n.x),e.deltaY=i.y+(r.y-n.y)}(r,e),e.offsetDirection=L(e.deltaX,e.deltaY);var u=I(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=u.x,e.overallVelocityY=u.y,e.overallVelocity=lt(u.x)>lt(u.y)?u.x:u.y,e.scale=a?function(t,e){return D(e[0],e[1],Ct)/D(t[0],t[1],Ct)}(a.pointers,n):1,e.rotation=a?function(t,e){return C(e[1],e[0],Ct)+C(t[1],t[0],Ct)}(a.pointers,n):0,e.maxPointers=r.prevInput?e.pointers.length>r.prevInput.maxPointers?e.pointers.length:r.prevInput.maxPointers:e.pointers.length,R(r,e);var f=t.element;y(e.srcEvent.target,f)&&(f=e.srcEvent.target),e.target=f}(t,r),t.emit("hammer.input",r),t.recognize(r),t.session.prevInput=r}function R(t,e){var r,n,i,o,a=t.lastInterval||e,h=e.timeStamp-a.timeStamp;if(e.eventType!=Et&&(h>wt||a.velocity===s)){var u=e.deltaX-a.deltaX,f=e.deltaY-a.deltaY,l=I(h,u,f);n=l.x,i=l.y,r=lt(l.x)>lt(l.y)?l.x:l.y,o=L(u,f),t.lastInterval=e}else r=a.velocity,n=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=r,e.velocityX=n,e.velocityY=i,e.direction=o}function x(t){for(var e=[],r=0;r<t.pointers.length;)e[r]={clientX:ft(t.pointers[r].clientX),clientY:ft(t.pointers[r].clientY)},r++;return{timeStamp:ct(),pointers:e,center:O(e),deltaX:t.deltaX,deltaY:t.deltaY}}function O(t){var e=t.length;if(1===e)return{x:ft(t[0].clientX),y:ft(t[0].clientY)};for(var r=0,n=0,i=0;i<e;)r+=t[i].clientX,n+=t[i].clientY,i++;return{x:ft(r/e),y:ft(n/e)}}function I(t,e,r){return{x:e/t||0,y:r/t||0}}function L(t,e){return t===e?kt:lt(t)>
2=lt(e)?t<0?Tt:At:e<0?Rt:xt}function D(t,e,r){r||(r=Dt);var n=e[r[0]]-t[r[0]],i=e[r[1]]-t[r[1]];return Math.sqrt(n*n+i*i)}function C(t,e,r){r||(r=Dt);var n=e[r[0]]-t[r[0]],i=e[r[1]]-t[r[1]];return 180*Math.atan2(i,n)/Math.PI}function P(){this.evEl=Bt,this.evWin=Nt,this.pressed=!1,T.apply(this,arguments)}function B(){this.evEl=Ut,this.evWin=qt,T.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function q(){this.evTarget=zt,this.evWin=Ht,this.started=!1,T.apply(this,arguments)}function N(t,e){var r=_(t.touches),n=_(t.changedTouches);return e&(St|Et)&&(r=S(r.concat(n),"identifier",!0)),[r,n]}function j(){this.evTarget=Vt,this.targetIds={},T.apply(this,arguments)}function F(t,e){var r=_(t.touches),n=this.targetIds;if(e&(Mt|_t)&&1===r.length)return n[r[0].identifier]=!0,[r,r];var i,o,a=_(t.changedTouches),s=[],h=this.target;if(o=r.filter((function(t){return y(t.target,h)})),e===Mt)for(i=0;i<o.length;)n[o[i].identifier]=!0,i++;for(i=0;i<a.length;)n[a[i].identifier]&&s.push(a[i]),e&(St|Et)&&delete n[a[i].identifier],i++;return s.length?[S(o.concat(s),"identifier",!0),s]:void 0}function U(){T.apply(this,arguments);var t=c(this.handler,this);this.touch=new j(this.manager,t),this.mouse=new P(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function K(t,e){t&Mt?(this.primaryTouch=e.changedPointers[0].identifier,z.call(this,e)):t&(St|Et)&&z.call(this,e)}function z(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var r={x:e.clientX,y:e.clientY};this.lastTouches.push(r);var n=this.lastTouches;setTimeout((function(){var t=n.indexOf(r);t>-1&&n.splice(t,1)}),Wt)}}function H(t){for(var e=t.srcEvent.clientX,r=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var i=this.lastTouches[n],o=Math.abs(e-i.x),a=Math.abs(r-i.y);if(o<=Yt&&a<=Yt)return!0}return!1}function G(t,e){this.manager=t,this.set(e)}function V(t){this.options=at({},this.defaults,t||{}),this.id=gt++,this.manager=null,this.options.enable=m(this.options.enable,!0),this.state=ie,this.simultaneous={},this.requireFail=[]}function W(t){return t&ue?"cancel":t&ae?"end":t&oe?"move":t&ne?"start":""}function Y(t){return t==xt?"down":t==Rt?"up":t==Tt?"left":t==At?"right":""}function Z(t,e){var r=e.manager;return r?r.get(t):t}function rt(){V.apply(this,arguments)}function X(){rt.apply(this,arguments),this.pX=null,this.pY=null}function $(){rt.apply(this,arguments)}function J(){V.apply(this,arguments),this._timer=null,this._input=null}function Q(){rt.apply(this,arguments)}function tt(){rt.apply(this,arguments)}function et(){V.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function it(t,e){return(e=e||{}).recognizers=m(e.recognizers,it.defaults.preset),new nt(t,e)}function nt(t,e){this.options=at({},it.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=function(t){return new(t.options.inputClass||(yt?B:bt?j:vt?U:P))(t,A)}(this),this.touchAction=new G(this,this.options.touchAction),ot(this,!0),f(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function ot(t,e){var r,n=t.element;n.style&&(f(t.options.cssProps,(function(i,o){r=E(n.style,o),e?(t.oldCssProps[r]=n.style[r],n.style[r]=i):n.style[r]=t.oldCssProps[r]||""})),e||(t.oldCssProps={}))}var at,st=["","webkit","Moz","MS","ms","o"],ut=o.createElement("div"),ht="function",ft=Math.round,lt=Math.abs,ct=Date.now;at="function"!=typeof Object.assign?function(t){if(t===s||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),r=1;r<arguments.length;r++){var n=arguments[r];if(n!==s&&null!==n)for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i])}return e}:Object.assign;var pt=l((function(t,e,r){for(var n=Object.keys(e),i=0;i<n.length;)(!r||r&&t[n[i]]===s)&&(t[n[i]]=e[n[i]]),i++;return t}),"extend","Use `assign`."),mt=l((function(t,e){return pt(t,e,!0)}),"merge","Use `assign`."),gt=1,vt="ontouchstart"in i,yt=E(i,"PointerEvent")!==s,bt=vt&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),wt=25,Mt=1,_t=2,St=4,Et=8,kt=1,Tt=2,At=4,Rt=8,xt=16,Ot=Tt|At,It=Rt|xt,Lt=Ot|It,Dt=["x","y"],Ct=["clientX","clientY"];T.prototype={handler:function(){},init:function(){this.evEl&&v(this.element,this.evEl,this.domHandler),this.evTarget&&v(this.target,this.evTarget,this.domHandler),this.evWin&&v(k(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&g(this.element,this.evEl,this.domHandler),this.evTarget&&g(this.target,this.evTarget,this.domHandler),this.evWin&&g(k(this.element),this.evWin,this.domHandler)}};var Pt={mousedown:Mt,mousemove:_t,mouseup:St},Bt="mousedown",Nt="mousemove mouseup";p(P,T,{handler:function(t){var e=Pt[t.type];e&Mt&&0===t.button&&(this.pressed=!0),e&_t&&1!==t.which&&(e=St),this.pressed&&(e&St&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],
2changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var jt={pointerdown:Mt,pointermove:_t,pointerup:St,pointercancel:Et,pointerout:Et},Ft={2:"touch",3:"pen",4:"mouse",5:"kinect"},Ut="pointerdown",qt="pointermove pointerup pointercancel";i.MSPointerEvent&&!i.PointerEvent&&(Ut="MSPointerDown",qt="MSPointerMove MSPointerUp MSPointerCancel"),p(B,T,{handler:function(t){var e=this.store,r=!1,n=t.type.toLowerCase().replace("ms",""),i=jt[n],o=Ft[t.pointerType]||t.pointerType,a="touch"==o,s=M(e,t.pointerId,"pointerId");i&Mt&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):i&(St|Et)&&(r=!0),s<0||(e[s]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),r&&e.splice(s,1))}});var Kt={touchstart:Mt,touchmove:_t,touchend:St,touchcancel:Et},zt="touchstart",Ht="touchstart touchmove touchend touchcancel";p(q,T,{handler:function(t){var e=Kt[t.type];if(e===Mt&&(this.started=!0),this.started){var r=N.call(this,t,e);e&(St|Et)&&r[0].length-r[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:r[0],changedPointers:r[1],pointerType:"touch",srcEvent:t})}}});var Gt={touchstart:Mt,touchmove:_t,touchend:St,touchcancel:Et},Vt="touchstart touchmove touchend touchcancel";p(j,T,{handler:function(t){var e=Gt[t.type],r=F.call(this,t,e);r&&this.callback(this.manager,e,{pointers:r[0],changedPointers:r[1],pointerType:"touch",srcEvent:t})}});var Wt=2500,Yt=25;p(U,T,{handler:function(t,e,r){var n="touch"==r.pointerType,i="mouse"==r.pointerType;if(!(i&&r.sourceCapabilities&&r.sourceCapabilities.firesTouchEvents)){if(n)K.call(this,e,r);else if(i&&H.call(this,r))return;this.callback(t,e,r)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Zt=E(ut.style,"touchAction"),Xt=Zt!==s,$t="auto",Jt="manipulation",Qt="none",te="pan-x",ee="pan-y",re=function(){if(!Xt)return!1;var t={},e=i.CSS&&i.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(r){t[r]=!e||i.CSS.supports("touch-action",r)})),t}();G.prototype={set:function(t){"compute"==t&&(t=this.compute()),Xt&&this.manager.element.style&&re[t]&&(this.manager.element.style[Zt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return f(this.manager.recognizers,(function(e){d(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(b(t,Qt))return Qt;var e=b(t,te),r=b(t,ee);return e&&r?Qt:e||r?e?te:ee:b(t,Jt)?Jt:$t}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,r=t.offsetDirection;if(!this.manager.session.prevented){var n=this.actions,i=b(n,Qt)&&!re[Qt],o=b(n,ee)&&!re[ee],a=b(n,te)&&!re[te];if(i){var s=1===t.pointers.length,h=t.distance<2,u=t.deltaTime<250;if(s&&h&&u)return}return a&&o?void 0:i||o&&r&Ot||a&&r&It?this.preventSrc(e):void 0}e.preventDefault()},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var ie=1,ne=2,oe=4,ae=8,se=ae,ue=16;V.prototype={defaults:{},set:function(t){return at(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(u(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Z(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return u(t,"dropRecognizeWith",this)||(t=Z(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(u(t,"requireFailure",this))return this;var e=this.requireFail;return-1===M(e,t=Z(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(u(t,"dropRequireFailure",this))return this;t=Z(t,this);var e=M(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){r.manager.emit(e,t)}var r=this,n=this.state;n<ae&&e(r.options.event+W(n)),e(r.options.event),t.additionalEvent&&e(t.additionalEvent),n>=ae&&e(r.options.event+W(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|ie)))return!1;t++}return!0},recognize:function(t){var e=at({},t);if(!d(this.options.enable,[this,e]))return this.reset(),void(this.state=32);this.state&(se|ue|32)&&(this.state=ie),this.state=this.process(e),this.state&(ne|oe|ae|ue)&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},p(rt,V,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,r=t.eventType,n=e&(ne|oe),i=this.attrTest(t);return n&&(r&Et||!i)?e|ue:n||i?r&St?e|ae:e&ne?e|oe:ne:32}}),p(X,rt,{defaults:{event:"pan",threshold:10,pointers:1,direction:Lt},getTouchAction:function(){var t=this.options.direction,e=[];return t&Ot&&e.push(ee),t&It&&e.push(te),e},directionTest:function(t){var e=this.options,r=!0,n=t.distance,i=t.direction,o=t.deltaX,a=t.deltaY;
2return i&e.direction||(e.direction&Ot?(i=0===o?kt:o<0?Tt:At,r=o!=this.pX,n=Math.abs(t.deltaX)):(i=0===a?kt:a<0?Rt:xt,r=a!=this.pY,n=Math.abs(t.deltaY))),t.direction=i,r&&n>e.threshold&&i&e.direction},attrTest:function(t){return rt.prototype.attrTest.call(this,t)&&(this.state&ne||!(this.state&ne)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Y(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),p($,rt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Qt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&ne)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),p(J,V,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[$t]},process:function(t){var e=this.options,r=t.pointers.length===e.pointers,n=t.distance<e.threshold,i=t.deltaTime>e.time;if(this._input=t,!n||!r||t.eventType&(St|Et)&&!i)this.reset();else if(t.eventType&Mt)this.reset(),this._timer=h((function(){this.state=se,this.tryEmit()}),e.time,this);else if(t.eventType&St)return se;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===se&&(t&&t.eventType&St?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=ct(),this.manager.emit(this.options.event,this._input)))}}),p(Q,rt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Qt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&ne)}}),p(tt,rt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Ot|It,pointers:1},getTouchAction:function(){return X.prototype.getTouchAction.call(this)},attrTest:function(t){var e,r=this.options.direction;return r&(Ot|It)?e=t.overallVelocity:r&Ot?e=t.overallVelocityX:r&It&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&r&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&lt(e)>this.options.velocity&&t.eventType&St},emit:function(t){var e=Y(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),p(et,V,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Jt]},process:function(t){var e=this.options,r=t.pointers.length===e.pointers,n=t.distance<e.threshold,i=t.deltaTime<e.time;if(this.reset(),t.eventType&Mt&&0===this.count)return this.failTimeout();if(n&&i&&r){if(t.eventType!=St)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||D(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&o?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=h((function(){this.state=se,this.tryEmit()}),e.interval,this),ne):se}return 32},failTimeout:function(){return this._timer=h((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==se&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),it.VERSION="2.0.7",it.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Q,{enable:!1}],[$,{enable:!1},["rotate"]],[tt,{direction:Ot}],[X,{direction:Ot},["swipe"]],[et],[et,{event:"doubletap",taps:2},["tap"]],[J]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},nt.prototype={set:function(t){return at(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var r,n=this.recognizers,i=e.curRecognizer;(!i||i&&i.state&se)&&(i=e.curRecognizer=null);for(var o=0;o<n.length;)r=n[o],2===e.stopped||i&&r!=i&&!r.canRecognizeWith(i)?r.reset():r.re
2cognize(t),!i&&r.state&(ne|oe|ae)&&(i=e.curRecognizer=r),o++}},get:function(t){if(t instanceof V)return t;for(var e=this.recognizers,r=0;r<e.length;r++)if(e[r].options.event==t)return e[r];return null},add:function(t){if(u(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(u(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,r=M(e,t);-1!==r&&(e.splice(r,1),this.touchAction.update())}return this},on:function(t,e){if(t!==s&&e!==s){var r=this.handlers;return f(w(t),(function(t){r[t]=r[t]||[],r[t].push(e)})),this}},off:function(t,e){if(t!==s){var r=this.handlers;return f(w(t),(function(t){e?r[t]&&r[t].splice(M(r[t],e),1):delete r[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var r=o.createEvent("Event");r.initEvent(t,!0,!0),r.gesture=e,e.target.dispatchEvent(r)}(t,e);var r=this.handlers[t]&&this.handlers[t].slice();if(r&&r.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var n=0;n<r.length;)r[n](e),n++}},destroy:function(){this.element&&ot(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},at(it,{INPUT_START:Mt,INPUT_MOVE:_t,INPUT_END:St,INPUT_CANCEL:Et,STATE_POSSIBLE:ie,STATE_BEGAN:ne,STATE_CHANGED:oe,STATE_ENDED:ae,STATE_RECOGNIZED:se,STATE_CANCELLED:ue,STATE_FAILED:32,DIRECTION_NONE:kt,DIRECTION_LEFT:Tt,DIRECTION_RIGHT:At,DIRECTION_UP:Rt,DIRECTION_DOWN:xt,DIRECTION_HORIZONTAL:Ot,DIRECTION_VERTICAL:It,DIRECTION_ALL:Lt,Manager:nt,Input:T,TouchAction:G,TouchInput:j,MouseInput:P,PointerEventInput:B,TouchMouseInput:U,SingleTouchInput:q,Recognizer:V,AttrRecognizer:rt,Tap:et,Pan:X,Swipe:tt,Pinch:$,Rotate:Q,Press:J,on:v,off:g,each:f,merge:mt,extend:pt,assign:at,inherit:p,bindFn:c,prefixed:E}),(void 0!==i?i:"undefined"!=typeof self?self:{}).Hammer=it,(n=function(){return it}.call(e,r,e,t))!==s&&(t.exports=n)}(window,document)},function(t,e){t.exports=function(t,e,r){for(var n=(2<<Math.log(e.length-1)/Math.LN2)-1,i=-~(1.6*n*r/e.length),o="";;)for(var a=t(i),s=i;s--;)if((o+=e[a[s]&n]||"").length===+r)return o}},function(t,e,r){"use strict";var i,n,a=r(15),s=(r(0),1567752802062),o=7;t.exports=function(t){var e="",r=Math.floor(.001*(Date.now()-s));return r===n?i++:(i=0,n=r),e+=a(o),e+=a(t),i>0&&(e+=a(i)),e+a(r)}},function(t,e,r){"use strict";var i=r(0),n=r(18),a=r(13);t.exports=function(t){for(var e,r=0,o="";!e;)o+=a(n,i.get(),1),e=t<Math.pow(16,r+1),r++;return o}},function(t,e,r){"use strict";function a(){return n(o)}var s=r(0),n=r(14),u=r(17),o=r(20)||0;t.exports=a,t.exports.generate=a,t.exports.seed=function(e){return s.seed(e),t.exports},t.exports.worker=function(e){return o=e,t.exports},t.exports.characters=function(t){return void 0!==t&&s.characters(t),s.shuffled()},t.exports.isValid=u},function(t,e,r){"use strict";var i=r(0);t.exports=function(t){return!(!t||"string"!=typeof t||t.length<6||new RegExp("[^"+i.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(t))}},function(t,e,r){"use strict";var n,i="object"==typeof window&&(window.crypto||window.msCrypto);n=i&&i.getRandomValues?function(t){return i.getRandomValues(new Uint8Array(t))}:function(t){for(var e=[],r=0;r<t;r++)e.push(Math.floor(256*Math.random()));return e},t.exports=n},function(t,e,r){"use strict";var n=1;t.exports={nextValue:function(){return(n=(9301*n+49297)%233280)/233280},seed:function(t){n=t}}},function(t,e,r){"use strict";t.exports=0},function(t,e){t.exports=function(t,e,r,n){var i,o=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(i=t,o=t.default);var s="function"==typeof o?o.options:o;if(e&&(s.render=e.render,s.staticRenderFns=e.staticRenderFns),r&&(s._scopeId=r),n){var h=Object.create(s.computed||null);Object.keys(n).forEach((function(t){var e=n[t];h[t]=function(){return e}})),s.computed=h}return{esModule:i,exports:o,options:s}}},function(t,e,r){var n=r(9);"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals),r(23)("df0682cc",n,!0,{})},function(t,e,r){function n(t){for(var e=0;e<t.length;e++){var r=t[e],n=f[r.id];if(n){n.refs++;for(var i=0;i<n.parts.length;i++)n.parts[i](r.parts[i]);for(;i<r.parts.length;
2i++)n.parts.push(o(r.parts[i]));n.parts.length>r.parts.length&&(n.parts.length=r.parts.length)}else{var a=[];for(i=0;i<r.parts.length;i++)a.push(o(r.parts[i]));f[r.id]={id:r.id,refs:1,parts:a}}}}function i(){var t=document.createElement("style");return t.type="text/css",l.appendChild(t),t}function o(t){var e,r,n=document.querySelector("style["+g+'~="'+t.id+'"]');if(n){if(d)return m;n.parentNode.removeChild(n)}if(y){var o=c++;n=p||(p=i()),e=a.bind(null,n,o,!1),r=a.bind(null,n,o,!0)}else n=i(),e=s.bind(null,n),r=function(){n.parentNode.removeChild(n)};return e(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;e(t=n)}else r()}}function a(t,e,r,n){var i=r?"":n.css;if(t.styleSheet)t.styleSheet.cssText=b(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function s(t,e){var r=e.css,n=e.media,i=e.sourceMap;if(n&&t.setAttribute("media",n),v.ssrId&&t.setAttribute(g,e.id),i&&(r+="\n/*# sourceURL="+i.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var h="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!h)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var u=r(24),f={},l=h&&(document.head||document.getElementsByTagName("head")[0]),p=null,c=0,d=!1,m=function(){},v=null,g="data-vue-ssr-id",y="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,r,i){d=r,v=i||{};var o=u(t,e);return n(o),function(e){for(var r=[],i=0;i<o.length;i++){var a=o[i];(s=f[a.id]).refs--,r.push(s)}for(e?n(o=u(t,e)):o=[],i=0;i<r.length;i++){var s;if(0===(s=r[i]).refs){for(var h=0;h<s.parts.length;h++)s.parts[h]();delete f[s.id]}}}};var b=function(){var t=[];return function(e,r){return t[e]=r,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t,e){for(var r=[],n={},i=0;i<e.length;i++){var o=e[i],a=o[0],h={id:t+":"+i,css:o[1],media:o[2],sourceMap:o[3]};n[a]?n[a].parts.push(h):r.push(n[a]={id:a,parts:[h]})}return r}},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r}])},function(t,e,r){"use strict";function n(t){return(n="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)}function o(t){return null!==t&&"object"===n(t)&&!Array.isArray(t)}function h(t,e){if(!o(t))return h({},e);if(!o(e))return h(t,{});var r=Object.assign({},e);for(var n in t)if("__proto__"!==n&&"constructor"!==n){var f=t[n];null!==f&&(o(f)&&o(r[n])?r[n]=h(f,r[n]):r[n]=f)}return r}t.exports=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.reduce(h,{})}},function(t,e,r){"use strict";function n(t){return(n="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)}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function f(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?h(Object(source),!0).forEach((function(e){o(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):h(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var l=function(){};function c(t){console.warn("[vue-gtag] "+t)}function d(t){return t&&"object"===n(t)&&!Array.isArray(t)}function m(){var t,e=D(),r=e.globalObjectName;"undefined"!=typeof window&&(t=window)[r].apply(t,arguments)}var v,y,w=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=D(),o=n.config,h=n.includes;m.apply(void 0,["config",o.id].concat(e)),Array.isArray(h)&&h.forEach((function(t){m.apply(void 0,["config",t.id].concat(e))}))},M=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=D(),n=r.defaultGroupName,o=r.includes,h=e;o&&null==h.send_to&&(h.send_to=o.map((function(t){return t.id})).concat(n)),m("event",t,h)},_=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],o={};null==(o="string"==typeof n?{page_path:n,page_location:window.location.href}:n).send_page_view&&(o.send_page_view=!0),M("page_view",o)},S=function(){for(var t=D(),e=t.appName,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];var h=n[0],f={};null==(f="string"==typeof h?{screen_name:h}:h).app_name&&(f.app_name=e),null==f.send_page_view&&(f.send_page_view=!0),M("screen_view",f)},E=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=D(),r=e.includes,n=e.config;window["ga-disable-".concat(n.id)]=t,Array.isArray(r)&&r.forEach((function(e){window["ga-disable-".concat(e.id)]=t}))},k=function(){E(!0)},T={query:m,config:w,event:M,pageview:_,screenview:S,customMap:function(map){w({custom_map:map})},time:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];M.apply(void 0,["timing_complete"].concat(e))},exception:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];M.apply(void 0,["exception"].concat(e))},linker:function(t){w("linker",t)},purchase:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];M.apply(void 0,["purchase"].concat(e))},refund:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];M.apply(void 0,["refund"].concat(e))},set:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];m.apply(void 0,["set"].concat(e))},optIn:function(){E(!1)},optOut:k},A=function(){var t=P();t.$gtag=t.prototype.$gtag=T},R=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=D(),n=r.pageTrackerTemplate,o=r.pageTrackerScreenviewEnabled,h=r.appName,f=n(t,e);return f||(o?{app_name:h,screen_name:t.name}:{page_title:t.name,page_path:t.path,page_location:window.location.href})},x=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.to,r=void 0===e?{}:e,n=t.from,o=void 0===n?{}:n,h=t.params,l=void 0===h?{}:h,d=D(),m=d.pageTrackerSkipSamePath,v=d.pageTrackerScreenviewEnabled;if(!m||r.path!==o.path){var y=f(f({},R(r,o)),l);!v||y.app_name?!v||y.screen_name?v?S(y):_(y):c("To use the screenview, name your routes"):c("To use the screenview, add the appName to the plugin options")}},O=function(){var t=B();t&&function(t){var e=P(),r=D(),n=r.onBeforeTrack,o=r.onAfterTrack,h=r.config;t.onReady((function(r){e.nextTick().then((function(){T.config(h.params),x({to:r})})),t.afterEach((function(t,r){e.nextTick().then((function(){n(t,r),x({to:t,from:r}),o(t,r)}))}))}))}(t)};function I(){if("undefined"!=typeof document&&"undefined"!=typeof window){var t=D(),e=t.customResourceURL,r=t.customPreconnectOrigin,n=t.enabled,o=t.globalObjectName,h=t.globalDataLayerName,f=t.config,l=t.pageTrackerEnabled,c=t.onReady,d=t.deferScriptLoad,m=t.disableScriptLoad,v=B(),y=Boolean(l&&v);if(n||k(),null==window[o]&&(window[h]=window[h]||[],window[o]=function(){window[h].push(arguments)}),window[o]("js",new Date),y?O():T.config(f.params),!m)return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(r,n){var head=document.head||document.getElementsByTagName("head")[0],script=document.createElement("script");
2if(script.async=!0,script.src=t,script.charset="utf-8",script.defer=e.defer,e.preconnectOrigin){var link=document.createElement("link");link.href=e.preconnectOrigin,link.rel="preconnect",head.appendChild(link)}head.appendChild(script),script.onload=r,script.onerror=n}))}("".concat(e,"?id=").concat(f.id,"&l=").concat(h),{preconnectOrigin:r,defer:d}).then((function(){var t=window[o];return"function"==typeof c&&c(t),t})).catch((function(t){return t}))}}var L={customResourceURL:"https://www.googletagmanager.com/gtag/js",customPreconnectOrigin:"https://www.googletagmanager.com",pageTrackerTemplate:l,onBeforeTrack:l,onAfterTrack:l,onReady:l,enabled:!0,disableScriptLoad:!1,deferScriptLoad:!1,bootstrap:!0,globalObjectName:"gtag",globalDataLayerName:"dataLayer",pageTrackerEnabled:!0,pageTrackerScreenviewEnabled:!1,pageTrackerSkipSamePath:!0,defaultGroupName:"default",includes:null,appName:null,config:{id:null,params:{send_page_view:!1}}},D=function(){return L},C=function(t){return function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),h=1;h<r;h++)n[h-1]=arguments[h];if(!n.length)return e;var source=n.shift();if(d(e)&&d(source)){for(var f in source)d(source[f])?(e[f]||Object.assign(e,o({},f,{})),t(e[f],source[f])):Object.assign(e,o({},f,source[f]));return t.apply(void 0,[e].concat(n))}}(L,t)},P=function(){return v},B=function(){return y};e.a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;v=t,y=r,C(e),A(),L.bootstrap&&I()}},function(t,e,r){"use strict";var n=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===o}(t)}(t)},o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function h(t,e){return!1!==e.clone&&e.isMergeableObject(t)?u(Array.isArray(t)?[]:{},t,e):t}function f(t,e,r){return t.concat(e).map((function(t){return h(t,r)}))}function l(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}(t))}function c(t,e){try{return e in t}catch(t){return!1}}function u(t,i,a){(a=a||{}).arrayMerge=a.arrayMerge||f,a.isMergeableObject=a.isMergeableObject||n,a.cloneUnlessOtherwiseSpecified=h;var e=Array.isArray(i);return e===Array.isArray(t)?e?a.arrayMerge(t,i,a):function(t,e,r){var i={};return r.isMergeableObject(t)&&l(t).forEach((function(e){i[e]=h(t[e],r)})),l(e).forEach((function(n){(function(t,e){return c(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,n)||(i[n]=c(t,n)&&r.isMergeableObject(e[n])?function(t,e){if(!e.customMerge)return u;var r=e.customMerge(t);return"function"==typeof r?r:u}(n,r)(t[n],e[n],r):h(e[n],r))})),i}(t,i,a):h(i,a)}u.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return u(t,r,e)}),{})};var i=u;e.a=function(t){var e=(t=t||{}).storage||window&&window.localStorage,r=t.key||"vuex";function n(t,e){var r=e.getItem(t);try{return void 0!==r?JSON.parse(r):void 0}catch(t){}}function o(){return!0}function h(t,e,r){return r.setItem(t,JSON.stringify(e))}function u(t,e){return Array.isArray(e)?e.reduce((function(e,r){return function(t,e,r,n){return!/^(__proto__|constructor|prototype)$/.test(e)&&((e=e.split?e.split("."):e.slice(0)).slice(0,-1).reduce((function(t,e){return t[e]=t[e]||{}}),t)[e.pop()]=r),t}(e,r,(n=t,void 0===(n=((o=r).split?o.split("."):o).reduce((function(t,e){return t&&t[e]}),n))?void 0:n));var n,o}),{}):t}function a(t){return function(e){return t.subscribe(e)}}(t.assertStorage||function(){e.setItem("@@",1),e.removeItem("@@")})(e);var f,s=function(){return(t.getState||n)(r,e)};return t.fetchBeforeUse&&(f=s()),function(n){t.fetchBeforeUse||(f=s()),"object"==typeof f&&null!==f&&(n.replaceState(t.overwrite?f:i(n.state,f,{arrayMerge:t.arrayMerger||function(t,e){return e},clone:!1})),(t.rehydrated||function(){})(n)),(t.subscriber||a)(n)((function(n,i){(t.filter||o)(n)&&(t.setState||h)(r,(t.reducer||u)(i,t.paths),e)}))}}},,,,,,,,function(t,e,r){(function(t){t.installComponents=function(component,t){var e="function"==typeof component.exports?component.exports.extendOptions:component.options;for(var i in"function"==typeof component.exports&&(e.components=component.exports.options.components),e.components=e.components||{},t)e.components[i]=e.components[i]||t[i];e.functional&&function(component,t){if(component.exports._functionalComponents)return;component.exports._functionalComponents=!0;var e=component.exports.render;component.exports.render=function(r,n){return e(r,Object.assign({},n,{_c:function(e,a,b){return n._c(t[e]||e,a,b)}}))}}(component,e.components)}}).call(this,r(35))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){var n=r(13).Buffer,o=r(275),h=r(281),f=r(131),l=r(325),c=r(133);function d(t,e){return n.from(t,e).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function m(t){var header=t.header,e=t.payload,r=t.secret||t.privateKey,n=t.encoding,o=h(header.alg),f=function(header,t,e){e=e||"utf8";var r=d(l(header),"binary"),n=d(l(t),e);return c.format("%s.%s",r,n)}(header,e,n),m=o.sign(f,r);return c.format("%s.%s",f,m)}function v(t){var e=t.secret||t.privateKey||t.key,r=new o(e);this.readable=!0,this.header=t.header,this.encoding=t.encoding,this.secret=this.privateKey=this.key=r,this.payload=new o(t.payload),this.secret.once("close",function(){!this.payload.writable&&this.readable&&this.sign()}.bind(this)),this.payload.once("close",function(){!this.secret.writable&&this.readable&&this.sign()}.bind(this))}c.inherits(v,f),v.prototype.sign=function(){try{var t=m({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});
vendor: 7,365 bytes, line 2
2return this.emit("done",t),this.emit("data",t),this.emit("end"),this.readable=!1,t}catch(t){this.readable=!1,this.emit("error",t),this.emit("close")}},v.sign=m,t.exports=v},function(t,e,r){"use strict";e.byteLength=function(t){var e=l(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,i,r=l(t),n=r[0],f=r[1],c=new h(function(t,e,r){return 3*(e+r)/4-r}(0,n,f)),d=0,m=f>0?n-4:n;for(i=0;i<m;i+=4)e=o[t.charCodeAt(i)]<<18|o[t.charCodeAt(i+1)]<<12|o[t.charCodeAt(i+2)]<<6|o[t.charCodeAt(i+3)],c[d++]=e>>16&255,c[d++]=e>>8&255,c[d++]=255&e;2===f&&(e=o[t.charCodeAt(i)]<<2|o[t.charCodeAt(i+1)]>>4,c[d++]=255&e);1===f&&(e=o[t.charCodeAt(i)]<<10|o[t.charCodeAt(i+1)]<<4|o[t.charCodeAt(i+2)]>>2,c[d++]=e>>8&255,c[d++]=255&e);return c},e.fromByteArray=function(t){for(var e,r=t.length,o=r%3,h=[],i=0,f=r-o;i<f;i+=16383)h.push(c(t,i,i+16383>f?f:i+16383));1===o?(e=t[r-1],h.push(n[e>>2]+n[e<<4&63]+"==")):2===o&&(e=(t[r-2]<<8)+t[r-1],h.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return h.join("")};for(var n=[],o=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,f=code.length;i<f;++i)n[i]=code[i],o[code.charCodeAt(i)]=i;function l(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t,e,r){for(var o,h,output=[],i=e;i<r;i+=3)o=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(255&t[i+2]),output.push(n[(h=o)>>18&63]+n[h>>12&63]+n[h>>6&63]+n[63&h]);return output.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,r,n,o){var h,f,l=8*o-n-1,c=(1<<l)-1,d=c>>1,m=-7,i=r?o-1:0,v=r?-1:1,s=t[e+i];for(i+=v,h=s&(1<<-m)-1,s>>=-m,m+=l;m>0;h=256*h+t[e+i],i+=v,m-=8);for(f=h&(1<<-m)-1,h>>=-m,m+=n;m>0;f=256*f+t[e+i],i+=v,m-=8);if(0===h)h=1-d;else{if(h===c)return f?NaN:1/0*(s?-1:1);f+=Math.pow(2,n),h-=d}return(s?-1:1)*f*Math.pow(2,h-n)},e.write=function(t,e,r,n,o,h){var f,l,c,d=8*h-o-1,m=(1<<d)-1,v=m>>1,rt=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,i=n?0:h-1,y=n?1:-1,s=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,f=m):(f=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-f))<1&&(f--,c*=2),(e+=f+v>=1?rt/c:rt*Math.pow(2,1-v))*c>=2&&(f++,c/=2),f+v>=m?(l=0,f=m):f+v>=1?(l=(e*c-1)*Math.pow(2,o),f+=v):(l=e*Math.pow(2,v-1)*Math.pow(2,o),f=0));o>=8;t[r+i]=255&l,i+=y,l/=256,o-=8);for(f=f<<o|l,d+=o;d>0;t[r+i]=255&f,i+=y,f/=256,d-=8);t[r+i-y]|=128*s}},,function(t,e,r){"use strict";var n=r(171).Buffer,o=r(509);t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(s){if(0===this.length)return"";for(var p=this.head,t=""+p.data;p=p.next;)t+=s+p.data;return t},t.prototype.concat=function(t){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var e,r,o,h=n.allocUnsafe(t>>>0),p=this.head,i=0;p;)e=p.data,r=h,o=i,e.copy(r,o),i+=p.data.length,p=p.next;return h},t}(),o&&o.inspect&&o.inspect.custom&&(t.exports.prototype[o.inspect.custom]=function(){var t=o.inspect({length:this.length});return this.constructor.name+" "+t})},,function(t,e,r){"use strict";t.exports=h;var n=r(280),o=Object.create(r(108));function h(t){if(!(this instanceof h))return new h(t);n.call(this,t)}o.inherits=r(14),o.inherits(h,n),h.prototype._transform=function(t,e,r){r(null,t)}},function(t,e,r){t.exports=r(172)},function(t,e,r){t.exports=r(78)},function(t,e,r){t.exports=r(170).Transform},function(t,e,r){t.exports=r(170).PassThrough},function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},function(t,e,r){"use strict";var n=r(33).Buffer,o=r(33).SlowBuffer;function h(a,b){if(!n.isBuffer(a)||!n.isBuffer(b))return!1;if(a.length!==b.length)return!1;for(var t=0,i=0;i<a.length;i++)t|=a[i]^b[i];return 0===t}t.exports=h,h.install=function(){n.prototype.equal=o.prototype.equal=function(t){return h(this,t)}};var f=n.prototype.equal,l=o.prototype.equal;h.restore=function(){n.prototype.equal=f,o.prototype.equal=l}},function(t,e,r){"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=r(86),e.createHash=e.Hash=r(110),e.createHmac=e.Hmac=r(292);var n=r(531),o=Object.keys(n),h=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(o);e.getHashes=function(){return h};var p=r(295);e.pbkdf2=p.pbkdf2,e.pbkdf2Sync=p.pbkdf2Sync;var f=r(533);e.Cipher=f.Cipher,e.createCipher=f.createCipher,e.Cipheriv=f.Cipheriv,e.createCipheriv=f.createCipheriv,e.Decipher=f.Decipher,e.createDecipher=f.createDecipher,e.Decipheriv=f.Decipheriv,e.createDecipheriv=f.createDecipheriv,e.getCiphers=f.getCiphers,e.listCiphers=f.listCiphers;var l=r(548);e.DiffieHellmanGroup=l.DiffieHellmanGroup,e.createDiffieHellmanGroup=l.createDiffieHellmanGroup,e.getDiffieHellman=l.getDiffieHellman,e.createDiffieHellman=l.createDiffieHellman,e.DiffieHellman=l.DiffieHellman;var c=r(555);e.createSign=c.createSign,e.Sign=c.Sign,e.createVerify=c.createVerify,e.Verify=c.Verify,e.createECDH=r(588);var d=r(591);e.publicEncrypt=d.publicEncrypt,e.privateEncrypt=d.privateEncrypt,e.publicDecrypt=d.publicDecrypt,e.privateDecrypt=d.privateDecrypt;var m=r(595);e.randomFill=m.randomFill,e.randomFillSync=m.randomFillSync,e.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},,function(t,e,r){"use strict";function n(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var f=r(33).Buffer,l=r(521).inspect,c=l&&l.custom||"inspect";
vendor: 4,382 bytes, line 2
2t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e,r,d;return e=t,(r=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(s){if(0===this.length)return"";for(var p=this.head,t=""+p.data;p=p.next;)t+=s+p.data;return t}},{key:"concat",value:function(t){if(0===this.length)return f.alloc(0);for(var e,r,n,o=f.allocUnsafe(t>>>0),p=this.head,i=0;p;)e=p.data,r=o,n=i,f.prototype.copy.call(e,r,n),i+=p.data.length,p=p.next;return o}},{key:"consume",value:function(t,e){var r;return t<this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var p=this.head,e=1,r=p.data;for(t-=r.length;p=p.next;){var n=p.data,o=t>n.length?n.length:t;if(o===n.length?r+=n:r+=n.slice(0,t),0==(t-=o)){o===n.length?(++e,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=n.slice(o));break}++e}return this.length-=e,r}},{key:"_getBuffer",value:function(t){var e=f.allocUnsafe(t),p=this.head,r=1;for(p.data.copy(e),t-=p.data.length;p=p.next;){var n=p.data,o=t>n.length?n.length:t;if(n.copy(e,e.length-t,0,o),0==(t-=o)){o===n.length?(++r,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=n.slice(o));break}++r}return this.length-=r,e}},{key:c,value:function(t,e){return l(this,function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?n(Object(source),!0).forEach((function(e){o(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):n(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},e,{depth:0,customInspect:!1}))}}])&&h(e.prototype,r),d&&h(e,d),t}()},,function(t,e,r){"use strict";(function(e){var n;function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var h=r(174),f=Symbol("lastResolve"),l=Symbol("lastReject"),c=Symbol("error"),d=Symbol("ended"),m=Symbol("lastPromise"),v=Symbol("handlePromise"),y=Symbol("stream");function w(t,e){return{value:t,done:e}}function M(t){var e=t[f];if(null!==e){var data=t[y].read();null!==data&&(t[m]=null,t[f]=null,t[l]=null,e(w(data,!1)))}}function _(t){e.nextTick(M,t)}var S=Object.getPrototypeOf((function(){})),E=Object.setPrototypeOf((o(n={get stream(){return this[y]},next:function(){var t=this,r=this[c];if(null!==r)return Promise.reject(r);if(this[d])return Promise.resolve(w(void 0,!0));if(this[y].destroyed)return new Promise((function(r,n){e.nextTick((function(){t[c]?n(t[c]):r(w(void 0,!0))}))}));var n,o=this[m];if(o)n=new Promise(function(t,e){return function(r,n){t.then((function(){e[d]?r(w(void 0,!0)):e[v](r,n)}),n)}}(o,this));else{var data=this[y].read();if(null!==data)return Promise.resolve(w(data,!1));n=new Promise(this[v])}return this[m]=n,n}},Symbol.asyncIterator,(function(){return this})),o(n,"return",(function(){var t=this;return new Promise((function(e,r){t[y].destroy(null,(function(t){t?r(t):e(w(void 0,!0))}))}))})),n),S);t.exports=function(t){var e,r=Object.create(E,(o(e={},y,{value:t,writable:!0}),o(e,f,{value:null,writable:!0}),o(e,l,{value:null,writable:!0}),o(e,c,{value:null,writable:!0}),o(e,d,{value:t._readableState.endEmitted,writable:!0}),o(e,v,{value:function(t,e){var data=r[y].read();data?(r[m]=null,r[f]=null,r[l]=null,t(w(data,!1))):(r[f]=t,r[l]=e)},writable:!0}),e));return r[m]=null,h(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[l];return null!==e&&(r[m]=null,r[f]=null,r[l]=null,e(t)),void(r[c]=t)}var n=r[f];null!==n&&(r[m]=null,r[f]=null,r[l]=null,n(w(void 0,!0))),r[d]=!0})),t.on("readable",_.bind(null,r)),r}}
vendor: 21,831 bytes, line 2
2).call(this,r(38))},function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},function(t,e,r){"use strict";t.exports=o;var n=r(289);function o(t){if(!(this instanceof o))return new o(t);n.call(this,t)}r(14)(o,n),o.prototype._transform=function(t,e,r){r(null,t)}},function(t,e,r){"use strict";var n;var o=r(87).codes,h=o.ERR_MISSING_ARGS,f=o.ERR_STREAM_DESTROYED;function l(t){if(t)throw t}function c(t,e,o,h){h=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(h);var l=!1;t.on("close",(function(){l=!0})),void 0===n&&(n=r(174)),n(t,{readable:e,writable:o},(function(t){if(t)return h(t);l=!0,h()}));var c=!1;return function(e){if(!l&&!c)return c=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void h(e||new f("pipe"))}}function d(t){t()}function m(t,e){return t.pipe(e)}function v(t){return t.length?"function"!=typeof t[t.length-1]?l:t.pop():l}t.exports=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n,o=v(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new h("streams");var f=e.map((function(t,i){var r=i<e.length-1;return c(t,r,i>0,(function(t){n||(n=t),t&&f.forEach(d),r||(f.forEach(d),o(n))}))}));return e.reduce(m)}},function(t,e,r){var n=r(14),o=r(89),h=r(13).Buffer,f=[1518500249,1859775393,-1894007588,-899497514],l=new Array(80);function c(){this.init(),this._w=l,o.call(this,64,56)}function d(t){return t<<30|t>>>2}function m(s,b,t,e){return 0===s?b&t|~b&e:2===s?b&t|b&e|t&e:b^t^e}n(c,o),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(t){for(var e,r=this._w,a=0|this._a,b=0|this._b,n=0|this._c,o=0|this._d,h=0|this._e,i=0;i<16;++i)r[i]=t.readInt32BE(4*i);for(;i<80;++i)r[i]=r[i-3]^r[i-8]^r[i-14]^r[i-16];for(var l=0;l<80;++l){var s=~~(l/20),c=0|((e=a)<<5|e>>>27)+m(s,b,n,o)+h+r[l]+f[s];h=o,o=n,n=d(b),b=a,a=c}this._a=a+this._a|0,this._b=b+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=h+this._e|0},c.prototype._hash=function(){var t=h.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=c},function(t,e,r){var n=r(14),o=r(89),h=r(13).Buffer,f=[1518500249,1859775393,-1894007588,-899497514],l=new Array(80);function c(){this.init(),this._w=l,o.call(this,64,56)}function d(t){return t<<5|t>>>27}function m(t){return t<<30|t>>>2}function v(s,b,t,e){return 0===s?b&t|~b&e:2===s?b&t|b&e|t&e:b^t^e}n(c,o),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(t){for(var e,r=this._w,a=0|this._a,b=0|this._b,n=0|this._c,o=0|this._d,h=0|this._e,i=0;i<16;++i)r[i]=t.readInt32BE(4*i);for(;i<80;++i)r[i]=(e=r[i-3]^r[i-8]^r[i-14]^r[i-16])<<1|e>>>31;for(var l=0;l<80;++l){var s=~~(l/20),c=d(a)+v(s,b,n,o)+h+r[l]+f[s]|0;h=o,o=n,n=m(b),b=a,a=c}this._a=a+this._a|0,this._b=b+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=h+this._e|0},c.prototype._hash=function(){var t=h.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=c},function(t,e,r){var n=r(14),o=r(290),h=r(89),f=r(13).Buffer,l=new Array(64);function c(){this.init(),this._w=l,h.call(this,64,56)}n(c,o),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var t=f.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=c},function(t,e,r){var n=r(14),o=r(291),h=r(89),f=r(13).Buffer,l=new Array(160);function c(){this.init(),this._w=l,h.call(this,128,112)}n(c,o),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var t=f.allocUnsafe(48);function e(e,r,n){t.writeInt32BE(e,n),t.writeInt32BE(r,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=c},function(t,e,r){"use strict";var n=r(14),o=r(13).Buffer,h=r(69),f=o.alloc(128);function l(t,e){h.call(this,"digest"),"string"==typeof e&&(e=o.from(e)),this._alg=t,this._key=e,e.length>64?e=t(e):e.length<64&&(e=o.concat([e,f],64));for(var r=this._ipad=o.allocUnsafe(64),n=this._opad=o.allocUnsafe(64),i=0;i<64;i++)r[i]=54^e[i],n[i]=92^e[i];this._hash=[r]}n(l,h),l.prototype._update=function(data){this._hash.push(data)},l.prototype._final=function(){var t=this._alg(o.concat(this._hash));return this._alg(o.concat([this._opad,t]))},t.exports=l},function(t,e,r){t.exports=r(294)},function(t,e,r){(function(e,n){var o,h=r(13).Buffer,f=r(296),l=r(297),c=r(298),d=r(299),m=e.crypto&&e.crypto.subtle,v={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},y=[];function w(t,e,r,n,o){return m.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then((function(t){return m.deriveBits({name:"PBKDF2",salt:e,iterations:r,hash:{name:o}},t,n<<3)})).then((function(t){return h.from(t)}))}t.exports=function(t,r,M,_,S,E){"function"==typeof S&&(E=S,S=void 0);var k=v[(S=S||"sha1").toLowerCase()];if(!k||"function"!=typeof e.Promise)return n.nextTick((function(){var e;try{e=c(t,r,M,_,S)}catch(t){return E(t)}E(null,e)}));if(f(M,_),t=d(t,l,"Password"),r=d(r,l,"Salt"),"function"!=typeof E)throw new Error("No callback provided to pbkdf2");!function(t,e){t.then((function(t){n.nextTick((function(){e(null,t)}))}),(function(t){n.nextTick((function(){e(t)}))}))}(function(t){if(e.process&&!e.process.browser)return Promise.resolve(!1);if(!m||!m.importKey||!m.deriveBits)return Promise.resolve(!1);if(void 0!==y[t])return y[t];var r=w(o=o||h.alloc(8),o,10,128,t).then((function(){return!0})).catch((function(){return!1}));return y[t]=r,r}(k).then((function(e){return e?w(t,r,M,_,k):c(t,r,M,_,S)})),E)}}).call(this,r(35),r(38))},function(t,e,r){var n=r(534),o=r(178),h=r(179),f=r(547),l=r(135);function c(t,e,r){if(t=t.toLowerCase(),h[t])return o.createCipheriv(t,e,r);if(f[t])return new n({key:e,iv:r,mode:t});throw new TypeError("invalid suite type")}function d(t,e,r){if(t=t.toLowerCase(),h[t])return o.createDecipheriv(t,e,r);if(f[t])return new n({key:e,iv:r,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}e.createCipher=e.Cipher=function(t,e){var r,n;if(t=t.toLowerCase(),h[t])r=h[t].key,n=h[t].iv;else{if(!f[t])throw new TypeError("invalid suite type");r=8*f[t].key,n=f[t].iv}var o=l(e,!1,r,n);return c(t,o.key,o.iv)},e.createCipheriv=e.Cipheriv=c,e.createDecipher=e.Decipher=function(t,e){var r,n;if(t=t.toLowerCase(),h[t])r=h[t].key,n=h[t].iv;else{if(!f[t])throw new TypeError("invalid suite type");r=8*f[t].key,n=f[t].iv}var o=l(e,!1,r,n);return d(t,o.key,o.iv)},e.createDecipheriv=e.Decipheriv=d,e.listCiphers=e.getCiphers=function(){return Object.keys(f).concat(o.getCiphers())}},function(t,e,r){var n=r(69),o=r(535),h=r(14),f=r(13).Buffer,l={"des-ede3-cbc":o.CBC.instantiate(o.EDE),"des-ede3":o.EDE,"des-ede-cbc":o.CBC.instantiate(o.EDE),"des-ede":o.EDE,"des-cbc":o.CBC.instantiate(o.DES),"des-ecb":o.DES};function c(t){n.call(this);var e,r=t.mode.toLowerCase(),o=l[r];e=t.decrypt?"decrypt":"encrypt";var h=t.key;f.isBuffer(h)||(h=f.from(h)),"des-ede"!==r&&"des-ede-cbc"!==r||(h=f.concat([h,h.slice(0,8)]));var c=t.iv;f.isBuffer(c)||(c=f.from(c)),this._des=o.create({key:h,iv:c,type:e})}l.des=l["des-cbc"],l.des3=l["des-ede3-cbc"],t.exports=c,h(c,n),c.prototype._update=function(data){return f.from(this._des.update(data))},c.prototype._final=function(){return f.from(this._des.final())}},function(t,e,r){"use strict";e.utils=r(300),e.Cipher=r(177),e.DES=r(301),e.CBC=r(536),e.EDE=r(537)},function(t,e,r){"use strict";var n=r(44),o=r(14),h={};function f(t){n.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var i=0;i<this.iv.length;i++)this.iv[i]=t[i]}e.instantiate=function(t){function e(e){t.call(this,e),this._cbcInit()}o(e,t);for(var r=Object.keys(h),i=0;i<r.length;i++){var n=r[i];e.prototype[n]=h[n]}return e.create=function(t){return new e(t)},e},h._cbcInit=function(){var t=new f(this.options.iv);this._cbcState=t},h._update=function(t,e,r,n){var o=this._cbcState,h=this.constructor.super_.prototype,f=o.iv;if("encrypt"===this.type){for(var i=0;i<this.blockSize;i++)f[i]^=t[e+i];h._update.call(this,f,0,r,n);for(i=0;i<this.blockSize;i++)f[i]=r[n+i]}else{h._update.call(this,t,e,r,n);for(i=0;i<this.blockSize;i++)r[n+i]^=f[i];for(i=0;i<this.blockSize;i++)f[i]=t[e+i]}}},function(t,e,r){"use strict";var n=r(44),o=r(14),h=r(177),f=r(301);function l(t,e){n.equal(e.length,24,"Invalid key length");var r=e.slice(0,8),o=e.slice(8,16),h=e.slice(16,24);this.ciphers="encrypt"===t?[f.create({type:"encrypt",key:r}),f.create({type:"decrypt",key:o}),f.create({type:"encrypt",key:h})]:[f.create({type:"decrypt",key:h}),f.create({type:"encrypt",key:o}),f.create({type:"decrypt",key:r})]}function c(t){h.call(this,t);var e=new l(this.type,this.options.key);this._edeState=e}o(c,h),t.exports=c,c.create=function(t){return new c(t)},c.prototype._update=function(t,e,r,n){var o=this._edeState;o.ciphers[0]._update(t,e,r,n),o.ciphers[1]._update(r,n,r,n),o.ciphers[2]._update(r,n,r,n)},c.prototype._pad=f.prototype._pad,c.prototype._unpad=f.prototype._unpad},function(t,e,r){var n=r(179),o=r(305),h=r(13).Buffer,f=r(306),l=r(69),c=r(134),d=r(135);function m(t,e,r){l.call(this),this._cache=new y,this._cipher=new c.AES(e),this._prev=h.from(r),this._mode=t,this._autopadding=!0}r(14)(m,l),m.prototype._update=function(data){var t,e;this._cache.add(data);for(var r=[];t=this._cache.get();)e=this._mode.encrypt(this,t),r.push(e);return h.concat(r)};var v=h.alloc(16,16);function y(){this.cache=h.allocUnsafe(0)}function w(t,e,r){var l=n[t.toLowerCase()];if(!l)throw new TypeError("invalid suite type");if("string"==typeof e&&(e=h.from(e)),e.length!==l.key/8)throw new TypeError("invalid key length "+e.length);if("string"==typeof r&&(r=h.from(r)),"GCM"!==l.mode&&r.length!==l.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===l.type?new f(l.module,e,r):"auth"===l.type?new o(l.module,e,r):new m(l.module,e,r)}m.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(v))throw this._cipher.scrub(),new Error("data not multiple of block length")},m.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},y.prototype.add=function(data){this.cache=h.concat([this.cache,data])},y.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},y.prototype.flush=function(){for(var t=16-this.cache.length,e=h.allocUnsafe(t),i=-1;++i<t;)e.writeUInt8(t,i);return h.concat([this.cache,e])},e.createCipheriv=w,e.createCipher=function(t,e){var r=n[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var o=d(e,!1,r.key,r.iv);return w(t,o.key,o.iv)}},function(t,e){e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},function(t,e,r){var n=r(111);e.encrypt=function(t,e){var data=n(e,t._prev);return t._prev=t._cipher.encryptBlock(data),t._prev},e.decrypt=function(t,e){var r=t._prev;t._prev=e;var o=t._cipher.decryptBlock(e);return n(o,r)}},function(t,e,r){var n=r(13).Buffer,o=r(111);function h(t,data,e){var r=data.length,h=o(data,t._cache);return t._cache=t._cache.slice(r),t._prev=n.concat([t._prev,e?data:h]),h}e.encrypt=function(t,data,e){for(var r,o=n.allocUnsafe(0);data.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=n.allocUnsafe(0)),!(t._cache.length<=data.length)){o=n.concat([o,h(t,data,e)]);break}r=t._cache.length,o=n.concat([o,h(t,data.slice(0,r),e)]),data=data.slice(r)}return o}},function(t,e,r){var n=r(13).Buffer;function o(t,e,r){var o=t._cipher.encryptBlock(t._prev)[0]^e;return t._prev=n.concat([t._prev.slice(1),n.from([r?e:o])]),o}e.encrypt=function(t,e,r){for(var h=e.length,f=n.allocUnsafe(h),i=-1;++i<h;)f[i]=o(t,e[i],r);return f}},function(t,e,r){var n=r(13).Buffer;function o(t,e,r){for(var n,o,i=-1,f=0;++i<8;)n=e&1<<7-i?128:0,f+=(128&(o=t._cipher.encryptBlock(t._prev)[0]^n))>>i%8,t._prev=h(t._prev,r?n:o);return f}function h(t,e){var r=t.length,i=-1,o=n.allocUnsafe(t.length);for(t=n.concat([t,n.from([e])]);++i<r;)o[i]=t[i]<<1|t[i+1]>>7;return o}e.encrypt=function(t,e,r){for(var h=e.length,f=n.allocUnsafe(h),i=-1;++i<h;)f[i]=o(t,e[i],r);return f}},function(t,e,r){(function(t){var n=r(111);function o(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}e.encrypt=function(e,r){for(;e._cache.length<r.length;)e._cache=t.concat([e._cache,o(e)]);var h=e._cache.slice(0,r.length);return e._cache=e._cache.slice(r.length),n(r,h)}}).call(this,r(33).Buffer)},function(t,e,r){var n=r(13).Buffer,o=n.alloc(16,0);function h(t){var e=n.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function f(t){this.h=t,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}f.prototype.ghash=function(t){for(var i=-1;++i<t.length;)this.state[i]^=t[i];this._multiply()},f.prototype._multiply=function(){for(var t,e,r,n=[(t=this.h).readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)],o=[0,0,0,0],i=-1;++i<128;){for(0!=(this.state[~~(i/8)]&1<<7-i%8)&&(o[0]^=n[0],o[1]^=n[1],o[2]^=n[2],o[3]^=n[3]),r=0!=(1&n[3]),e=3;e>0;e--)n[e]=n[e]>>>1|(1&n[e-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=h(o)},f.prototype.update=function(t){var e;for(this.cache=n.concat([this.cache,t]);this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},f.prototype.final=function(t,e){return this.cache.length&&this.ghash(n.concat([this.cache,o],16)),this.ghash(h([0,t,0,e])),this.state},t.exports=f},function(t,e,r){var n=r(305),o=r(13).Buffer,h=r(179),f=r(306),l=r(69),c=r(134),d=r(135);function m(t,e,r){l.call(this),this._cache=new v,this._last=void 0,this._cipher=new c.AES(e),this._prev=o.from(r),this._mode=t,this._autopadding=!0}function v(){this.cache=o.allocUnsafe(0)}function y(t,e,r){var l=h[t.toLowerCase()];if(!l)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=o.from(r)),"GCM"!==l.mode&&r.length!==l.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof e&&(e=o.from(e)),e.length!==l.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===l.type?new f(l.module,e,r,!0):"auth"===l.type?new n(l.module,e,r,!0):new m(l.module,e,r)}r(14)(m,l),m.prototype._update=function(data){var t,e;this._cache.add(data);for(var r=[];t=this._cache.get(this._autopadding);)e=this._mode.decrypt(this,t),r.push(e);return o.concat(r)},m.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");var i=-1;for(;++i<e;)if(t[i+(16-e)]!==e)throw new Error("unable to decrypt data");if(16===e)return;return t.slice(0,16-e)}(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")},m.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},v.prototype.add=function(data){this.cache=o.concat([this.cache,data])},v.prototype.get=function(t){var e;if(t){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},v.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=function(t,e){var r=h[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=d(e,!1,r.key,r.iv);return y(t,n.key,n.iv)},e.createDecipheriv=y},function(t,e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},function(t,e,r){(function(t){var n=r(307),o=r(553),h=r(554);var f={binary:!0,hex:!0,base64:!0};e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=function(e){var r=new t(o[e].prime,"hex"),n=new t(o[e].gen,"hex");return new h(r,n)},e.createDiffieHellman=e.DiffieHellman=function e(r,o,l,c){return t.isBuffer(o)||void 0===f[o]?e(r,"binary",o,l):(o=o||"binary",c=c||"binary",l=l||new t([2]),t.isBuffer(l)||(l=new t(l,c)),"number"==typeof r?new h(n(r,l),l,!0):(t.isBuffer(r)||(r=new t(r,o)),new h(r,l,!0)))}}).call(this,r(33).Buffer)},,function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function h(t,base,e){if(h.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==base&&"be"!==base||(e=base,base=10),this._init(t||0,base||10,e||"be"))}var f;"object"==typeof t?t.exports=h:e.BN=h,h.BN=h,h.wordSize=26;try{f=r(551).Buffer}catch(t){}function l(t,e,r){for(var n=0,o=Math.min(t.length,r),i=e;i<o;i++){var h=t.charCodeAt(i)-48;n<<=4,n|=h>=49&&h<=54?h-49+10:h>=17&&h<=22?h-17+10:15&h}return n}function c(t,e,r,n){for(var o=0,h=Math.min(t.length,r),i=e;i<h;i++){var f=t.charCodeAt(i)-48;o*=n,o+=f>=49?f-49+10:f>=17?f-17+10:f}return o}h.isBN=function(t){return t instanceof h||null!==t&&"object"==typeof t&&t.constructor.wordSize===h.wordSize&&Array.isArray(t.words)},h.max=function(t,e){return t.cmp(e)>0?t:e},h.min=function(t,e){return t.cmp(e)<0?t:e},h.prototype._init=function(t,base,e){if("number"==typeof t)return this._initNumber(t,base,e);if("object"==typeof t)return this._initArray(t,base,e);"hex"===base&&(base=16),n(base===(0|base)&&base>=2&&base<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&r++,16===base?this._parseHex(t,r):this._parseBase(t,base,r),"-"===t[0]&&(this.negative=1),this.strip(),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initNumber=function(t,base,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(),base,e)},h.prototype._initArray=function(t,base,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 r,o,h=0;if("be"===e)for(i=t.length-1,r=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[r]|=o<<h&67108863,this.words[r+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,r++);else if("le"===e)for(i=0,r=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[r]|=o<<h&67108863,this.words[r+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,r++);return this.strip()},h.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n,o=0;for(i=t.length-6,r=0;i>=e;i-=6)n=l(t,i,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==e&&(n=l(t,e,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303),this.strip()},h.prototype._parseBase=function(t,base,e){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=base)r++;r--,n=n/base|0;for(var o=t.length-e,h=o%r,f=Math.min(o,o-h)+e,l=0,i=e;i<f;i+=r)l=c(t,i,i+r,base),this.imuln(n),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==h){var d=1;for(l=c(t,i,t.length,base),i=0;i<h;i++)d*=base;this.imuln(d),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},h.prototype.copy=function(t){t.words=new Array(this.length);for(var i=0;i<this.length;i++)t.words[i]=this.words[i];t.length=this.length,t.negative=this.negative,t.red=this.red},h.prototype.clone=function(){var t=new h(null);return this.copy(t),t},h.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},h.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var d=["","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"],m=[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],v=[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,143489
vendor: 43,531 bytes, line 2
207,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function y(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var a=0|t.words[0],b=0|e.words[0],o=a*b,h=67108863&o,f=o/67108864|0;r.words[0]=h;for(var l=1;l<n;l++){for(var c=f>>>26,d=67108863&f,m=Math.min(l,e.length-1),v=Math.max(0,l-t.length+1);v<=m;v++){var i=l-v|0;c+=(o=(a=0|t.words[i])*(b=0|e.words[v])+d)/67108864|0,d=67108863&o}r.words[l]=0|d,f=0|c}return 0!==f?r.words[l]=0|f:r.length--,r.strip()}h.prototype.toString=function(base,t){var e;if(t=0|t||1,16===(base=base||10)||"hex"===base){e="";for(var r=0,o=0,i=0;i<this.length;i++){var h=this.words[i],f=(16777215&(h<<r|o)).toString(16);e=0!==(o=h>>>24-r&16777215)||i!==this.length-1?d[6-f.length]+f+e:f+e,(r+=2)>=26&&(r-=26,i--)}for(0!==o&&(e=o.toString(16)+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(base===(0|base)&&base>=2&&base<=36){var l=m[base],c=v[base];e="";var y=this.clone();for(y.negative=0;!y.isZero();){var w=y.modn(c).toString(base);e=(y=y.idivn(c)).isZero()?w+e:d[l-w.length]+w+e}for(this.isZero()&&(e="0"+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}n(!1,"Base should be between 2 and 36")},h.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},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(t,e){return n(void 0!==f),this.toArrayLike(f,t,e)},h.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},h.prototype.toArrayLike=function(t,e,r){var o=this.byteLength(),h=r||Math.max(1,o);n(o<=h,"byte array longer than desired length"),n(h>0,"Requested array length <= 0"),this.strip();var b,i,f="le"===e,l=new t(h),q=this.clone();if(f){for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),l[i]=b;for(;i<h;i++)l[i]=0}else{for(i=0;i<h-o;i++)l[i]=0;for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),l[h-i-1]=b}return l},Math.clz32?h.prototype._countBits=function(t){return 32-Math.clz32(t)}:h.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},h.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},h.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;i<this.length;i++){var b=this._zeroBits(this.words[i]);if(t+=b,26!==b)break}return t},h.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},h.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},h.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},h.prototype.isNeg=function(){return 0!==this.negative},h.prototype.neg=function(){return this.clone().ineg()},h.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},h.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]|t.words[i];return this.strip()},h.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},h.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},h.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},h.prototype.iuand=function(t){var b;b=this.length>t.length?t:this;for(var i=0;i<b.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=b.length,this.strip()},h.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},h.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},h.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},h.prototype.iuxor=function(t){var a,b;this.length>t.length?(a=this,b=t):(a=t,b=this);for(var i=0;i<b.length;i++)this.words[i]=a.words[i]^b.words[i];if(this!==a)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=a.length,this.strip()},h.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},h.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},h.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},h.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},h.prototype.notn=function(t){return this.clone().inotn(t)},h.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,o=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<o:this.words[r]&~(1<<o),this.strip()},h.prototype.iadd=function(t){var e,a,b;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(a=this,b=t):(a=t,b=this);for(var r=0,i=0;i<b.length;i++)e=(0|a.words[i])+(0|b.words[i])+r,this.words[i]=67108863&e,r=e>>>26;for(;0!==r&&i<a.length;i++)e=(0|a.words[i])+r,this.words[i]=67108863&e,r=e>>>26;if(this.length=a.length,0!==r)this.words[this.length]=r,this.length++;else if(a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this},h.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},h.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var a,b,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(a=this,b=t):(a=t,b=this);for(var n=0,i=0;i<b.length;i++)n=(e=(0|a.words[i])-(0|b.words[i])+n)>>26,this.words[i]=67108863&e;for(;0!==n&&i<a.length;i++)n=(e=(0|a.words[i])+n)>>26,this.words[i]=67108863&e;if(0===n&&i<a.length&&a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=Math.max(this.length,i),a!==this&&(this.negative=1),this.strip()},h.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,r){var n,o,h,a=t.words,b=e.words,f=r.words,l=0,c=0|a[0],d=8191&c,m=c>>>13,v=0|a[1],y=8191&v,w=v>>>13,M=0|a[2],_=8191&M,S=M>>>13,E=0|a[3],k=8191&E,T=E>>>13,A=0|a[4],R=8191&A,x=A>>>13,O=0|a[5],I=8191&O,L=O>>>13,D=0|a[6],C=8191&D,P=D>>>13,B=0|a[7],N=8191&B,j=B>>>13,F=0|a[8],U=8191&F,K=F>>>13,z=0|a[9],H=8191&z,G=z>>>13,V=0|b[0],W=8191&V,Y=V>>>13,Z=0|b[1],X=8191&Z,$=Z>>>13,J=0|b[2],Q=8191&J,tt=J>>>13,et=0|b[3],it=8191&et,nt=et>>>13,ot=0|b[4],at=8191&ot,st=ot>>>13,ut=0|b[5],ht=8191&ut,ft=ut>>>13,lt=0|b[6],ct=8191&lt,pt=lt>>>13,mt=0|b[7],gt=8191&mt,vt=mt>>>13,yt=0|b[8],bt=8191&yt,wt=yt>>>13,Mt=0|b[9],_t=8191&Mt,St=Mt>>>13;r.negative=t.negative^e.negative,r.length=19;var Et=(l+(n=Math.imul(d,W))|0)+((8191&(o=(o=Math.imul(d,Y))+Math.imul(m,W)|0))<<13)|0;l=((h=Math.imul(m,Y))+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(y,W),o=(o=Math.imul(y,Y))+Math.imul(w,W)|0,h=Math.imul(w,Y);var kt=(l+(n=n+Math.imul(d,X)|0)|0)+((8191&(o=(o=o+Math.imul(d,$)|0)+Math.imul(m,X)|0))<<13)|0;l=((h=h+Math.imul(m,$)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(_,W),o=(o=Math.imul(_,Y))+Math.imul(S,W)|0,h=Math.imul(S,Y),n=n+Math.imul(y,X)|0,o=(o=o+Math.imul(y,$)|0)+Math.imul(w,X)|0,h=h+Math.imul(w,$)|0;var Tt=(l+(n=n+Math.imul(d,Q)|0)|0)+((8191&(o=(o=o+Math.imul(d,tt)|0)+Math.imul(m,Q)|0))<<13)|0;l=((h=h+Math.imul(m,tt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(k,W),o=(o=Math.imul(k,Y))+Math.imul(T,W)|0,h=Math.imul(T,Y),n=n+Math.imul(_,X)|0,o=(o=o+Math.imul(_,$)|0)+Math.imul(S,X)|0,h=h+Math.imul(S,$)|0,n=n+Math.imul(y,Q)|0,o=(o=o+Math.imul(y,tt)|0)+Math.imul(w,Q)|0,h=h+Math.imul(w,tt)|0;var At=(l+(n=n+Math.imul(d,it)|0)|0)+((8191&(o=(o=o+Math.imul(d,nt)|0)+Math.imul(m,it)|0))<<13)|0;l=((h=h+Math.imul(m,nt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(R,W),o=(o=Math.imul(R,Y))+Math.imul(x,W)|0,h=Math.imul(x,Y),n=n+Math.imul(k,X)|0,o=(o=o+Math.imul(k,$)|0)+Math.imul(T,X)|0,h=h+Math.imul(T,$)|0,n=n+Math.imul(_,Q)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(S,Q)|0,h=h+Math.imul(S,tt)|0,n=n+Math.imul(y,it)|0,o=(o=o+Math.imul(y,nt)|0)+Math.imul(w,it)|0,h=h+Math.imul(w,nt)|0;var Rt=(l+(n=n+Math.imul(d,at)|0)|0)+((8191&(o=(o=o+Math.imul(d,st)|0)+Math.imul(m,at)|0))<<13)|0;l=((h=h+Math.imul(m,st)|0)+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(I,W),o=(o=Math.imul(I,Y))+Math.imul(L,W)|0,h=Math.imul(L,Y),n=n+Math.imul(R,X)|0,o=(o=o+Math.imul(R,$)|0)+Math.imul(x,X)|0,h=h+Math.imul(x,$)|0,n=n+Math.imul(k,Q)|0,o=(o=o+Math.imul(k,tt)|0)+Math.imul(T,Q)|0,h=h+Math.imul(T,tt)|0,n=n+Math.imul(_,it)|0,o=(o=o+Math.imul(_,nt)|0)+Math.imul(S,it)|0,h=h+Math.imul(S,nt)|0,n=n+Math.imul(y,at)|0,o=(o=o+Math.imul(y,st)|0)+Math.imul(w,at)|0,h=h+Math.imul(w,st)|0;var xt=(l+(n=n+Math.imul(d,ht)|0)|0)+((8191&(o=(o=o+Math.imul(d,ft)|0)+Math.imul(m,ht)|0))<<13)|0;l=((h=h+Math.imul(m,ft)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(C,W),o=(o=Math.imul(C,Y))+Math.imul(P,W)|0,h=Math.imul(P,Y),n=n+Math.imul(I,X)|0,o=(o=o+Math.imul(I,$)|0)+Math.imul(L,X)|0,h=h+Math.imul(L,$)|0,n=n+Math.imul(R,Q)|0,o=(o=o+Math.imul(R,tt)|0)+Math.imul(x,Q)|0,h=h+Math.imul(x,tt)|0,n=n+Math.imul(k,it)|0,o=(o=o+Math.imul(k,nt)|0)+Math.imul(T,it)|0,h=h+Math.imul(T,nt)|0,n=n+Math.imul(_,at)|0,o=(o=o+Math.imul(_,st)|0)+Math.imul(S,at)|0,h=h+Math.imul(S,st)|0,n=n+Math.imul(y,ht)|0,o=(o=o+Math.imul(y,ft)|0)+Math.imul(w,ht)|0,h=h+Math.imul(w,ft)|0;var Ot=(l+(n=n+Math.imul(d,ct)|0)|0)+((8191&(o=(o=o+Math.imul(d,pt)|0)+Math.imul(m,ct)|0))<<13)|0;l=((h=h+Math.imul(m,pt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(N,W),o=(o=Math.imul(N,Y))+Math.imul(j,W)|0,h=Math.imul(j,Y),n=n+Math.imul(C,X)|0,o=(o=o+Math.imul(C,$)|0)+Math.imul(P,X)|0,h=h+Math.imul(P,$)|0,n=n+Math.imul(I,Q)|0,o=(o=o+Math.imul(I,tt)|0)+Math.imul(L,Q)|0,h=h+Math.imul(L,tt)|0,n=n+Math.imul(R,it)|0,o=(o=o+Math.imul(R,nt)|0)+Math.imul(x,it)|0,h=h+Math.imul(x,nt)|0,n=n+Math.imul(k,at)|0,o=(o=o+Math.imul(k,st)|0)+Math.imul(T,at)|0,h=h+Math.imul(T,st)|0,n=n+Math.imul(_,ht)|0,o=(o=o+Math.imul(_,ft)|0)+Math.imul(S,ht)|0,h=h+Math.imul(S,ft)|0,n=n+Math.imul(y,ct)|0,o=(o=o+Math.imul(y,pt)|0)+Math.imul(w,ct)|0,h=h+Math.imul(w,pt)|0;var It=(l+(n=n+Math.imul(d,gt)|0)|0)+((8191&(o=(o=o+Math.imul(d,vt)|0)+Math.imul(m,gt)|0))<<13)|0;l=((h=h+Math.imul(m,vt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,W),o=(o=Math.imul(U,Y))+Math.imul(K,W)|0,h=Math.imul(K,Y),n=n+Math.imul(N,X)|0,o=(o=o+Math.imul(N,$)|0)+Math.imul(j,X)|0,h=h+Math.imul(j,$)|0,n=n+Math.imul(C,Q)|0,o=(o=o+Math.imul(C,tt)|0)+Math.imul(P,Q)|0,h=h+Math.imul(P,tt)|0,n=n+Math.imul(I,it)|0,o=(o=o+Math.imul(I,nt)|0)+Math.imul(L,it)|0,h=h+Math.imul(L,nt)|0,n=n+Math.imul(R,at)|0,o=(o=o+Math.imul(R,st)|0)+Math.imul(x,at)|0,h=h+Math.imul(x,st)|0,n=n+Math.imul(k,ht)|0,o=(o=o+Math.imul(k,ft)|0)+Math.imul(T,ht)|0,h=h+Math.imul(T,ft)|0,n=n+Math.imul(_,ct)|0,o=(o=o+Math.imul(_,pt)|0)+Math.imul(S,ct)|0,h=h+Math.imul(S,pt)|0,n=n+Math.imul(y,gt)|0,o=(o=o+Math.imul(y,vt)|0)+Math.imul(w,gt)|0,h=h+Math.imul(w,vt)|0;var Lt=(l+(n=n+Math.imul(d,bt)|0)|0)+((8191&(o=(o=o+Math.imul(d,wt)|0)+Math.imul(m,bt)|0))<<13)|0;l=((h=h+Math.imul(m,wt)|0)+(o>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(H,W),o=(o=Math.imul(H,Y))+Math.imul(G,W)|0,h=Math.imul(G,Y),n=n+Math.imul(U,X)|0,o=(o=o+Math.imul(U,$)|0)+Math.imul(K,X)|0,h=h+Math.imul(K,$)|0,n=n+Math.imul(N,Q)|0,o=(o=o+Math.imul(N,tt)|0)+Math.imul(j,Q)|0,h=h+Math.imul(j,tt)|0,n=n+Math.imul(C,it)|0,o=(o=o+Math.imul(C,nt)|0)+Math.imul(P,it)|0,h=h+Math.imul(P,nt)|0,n=n+Math.imul(I,at)|0,o=(o=o+Math.imul(I,st)|0)+Math.imul(L,at)|0,h=h+Math.imul(L,st)|0,n=n+Math.imul(R,ht)|0,o=(o=o+Math.imul(R,ft)|0)+Math.imul(x,ht)|0,h=h+Math.imul(x,ft)|0,n=n+Math.imul(k,ct)|0,o=(o=o+Math.imul(k,pt)|0)+Math.imul(T,ct)|0,h=h+Math.imul(T,pt)|0,n=n+Math.imul(_,gt)|0,o=(o=o+Math.imul(_,vt)|0)+Math.imul(S,gt)|0,h=h+Math.imul(S,vt)|0,n=n+Math.imul(y,bt)|0,o=(o=o+Math.imul(y,wt)|0)+Math.imul(w,bt)|0,h=h+Math.imul(w,wt)|0;var Dt=(l+(n=n+Math.imul(d,_t)|0)|0)+((8191&(o=(o=o+Math.imul(d,St)|0)+Math.imul(m,_t)|0))<<13)|0;l=((h=h+Math.imul(m,St)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(H,X),o=(o=Math.imul(H,$))+Math.imul(G,X)|0,h=Math.imul(G,$),n=n+Math.imul(U,Q)|0,o=(o=o+Math.imul(U,tt)|0)+Math.imul(K,Q)|0,h=h+Math.imul(K,tt)|0,n=n+Math.imul(N,it)|0,o=(o=o+Math.imul(N,nt)|0)+Math.imul(j,it)|0,h=h+Math.imul(j,nt)|0,n=n+Math.imul(C,at)|0,o=(o=o+Math.imul(C,st)|0)+Math.imul(P,at)|0,h=h+Math.imul(P,st)|0,n=n+Math.imul(I,ht)|0,o=(o=o+Math.imul(I,ft)|0)+Math.imul(L,ht)|0,h=h+Math.imul(L,ft)|0,n=n+Math.imul(R,ct)|0,o=(o=o+Math.imul(R,pt)|0)+Math.imul(x,ct)|0,h=h+Math.imul(x,pt)|0,n=n+Math.imul(k,gt)|0,o=(o=o+Math.imul(k,vt)|0)+Math.imul(T,gt)|0,h=h+Math.imul(T,vt)|0,n=n+Math.imul(_,bt)|0,o=(o=o+Math.imul(_,wt)|0)+Math.imul(S,bt)|0,h=h+Math.imul(S,wt)|0;var Ct=(l+(n=n+Math.imul(y,_t)|0)|0)+((8191&(o=(o=o+Math.imul(y,St)|0)+Math.imul(w,_t)|0))<<13)|0;l=((h=h+Math.imul(w,St)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(H,Q),o=(o=Math.imul(H,tt))+Math.imul(G,Q)|0,h=Math.imul(G,tt),n=n+Math.imul(U,it)|0,o=(o=o+Math.imul(U,nt)|0)+Math.imul(K,it)|0,h=h+Math.imul(K,nt)|0,n=n+Math.imul(N,at)|0,o=(o=o+Math.imul(N,st)|0)+Math.imul(j,at)|0,h=h+Math.imul(j,st)|0,n=n+Math.imul(C,ht)|0,o=(o=o+Math.imul(C,ft)|0)+Math.imul(P,ht)|0,h=h+Math.imul(P,ft)|0,n=n+Math.imul(I,ct)|0,o=(o=o+Math.imul(I,pt)|0)+Math.imul(L,ct)|0,h=h+Math.imul(L,pt)|0,n=n+Math.imul(R,gt)|0,o=(o=o+Math.imul(R,vt)|0)+Math.imul(x,gt)|0,h=h+Math.imul(x,vt)|0,n=n+Math.imul(k,bt)|0,o=(o=o+Math.imul(k,wt)|0)+Math.imul(T,bt)|0,h=h+Math.imul(T,wt)|0;var Pt=(l+(n=n+Math.imul(_,_t)|0)|0)+((8191&(o=(o=o+Math.imul(_,St)|0)+Math.imul(S,_t)|0))<<13)|0;l=((h=h+Math.imul(S,St)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(H,it),o=(o=Math.imul(H,nt))+Math.imul(G,it)|0,h=Math.imul(G,nt),n=n+Math.imul(U,at)|0,o=(o=o+Math.imul(U,st)|0)+Math.imul(K,at)|0,h=h+Math.imul(K,st)|0,n=n+Math.imul(N,ht)|0,o=(o=o+Math.imul(N,ft)|0)+Math.imul(j,ht)|0,h=h+Math.imul(j,ft)|0,n=n+Math.imul(C,ct)|0,o=(o=o+Math.imul(C,pt)|0)+Math.imul(P,ct)|0,h=h+Math.imul(P,pt)|0,n=n+Math.imul(I,gt)|0,o=(o=o+Math.imul(I,vt)|0)+Math.imul(L,gt)|0,h=h+Math.imul(L,vt)|0,n=n+Math.imul(R,bt)|0,o=(o=o+Math.imul(R,wt)|0)+Math.imul(x,bt)|0,h=h+Math.imul(x,wt)|0;var Bt=(l+(n=n+Math.imul(k,_t)|0)|0)+((8191&(o=(o=o+Math.imul(k,St)|0)+Math.imul(T,_t)|0))<<13)|0;l=((h=h+Math.imul(T,St)|0)+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(H,at),o=(o=Math.imul(H,st))+Math.imul(G,at)|0,h=Math.imul(G,st),n=n+Math.imul(U,ht)|0,o=(o=o+Math.imul(U,ft)|0)+Math.imul(K,ht)|0,h=h+Math.imul(K,ft)|0,n=n+Math.imul(N,ct)|0,o=(o=o+Math.imul(N,pt)|0)+Math.imul(j,ct)|0,h=h+Math.imul(j,pt)|0,n=n+Math.imul(C,gt)|0,o=(o=o+Math.imul(C,vt)|0)+Math.imul(P,gt)|0,h=h+Math.imul(P,vt)|0,n=n+Math.imul(I,bt)|0,o=(o=o+Math.imul(I,wt)|0)+Math.imul(L,bt)|0,h=h+Math.imul(L,wt)|0;var Nt=(l+(n=n+Math.imul(R,_t)|0)|0)+((8191&(o=(o=o+Math.imul(R,St)|0)+Math.imul(x,_t)|0))<<13)|0;l=((h=h+Math.imul(x,St)|0)+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(H,ht),o=(o=Math.imul(H,ft))+Math.imul(G,ht)|0,h=Math.imul(G,ft),n=n+Math.imul(U,ct)|0,o=(o=o+Math.imul(U,pt)|0)+Math.imul(K,ct)|0,h=h+Math.imul(K,pt)|0,n=n+Math.imul(N,gt)|0,o=(o=o+Math.imul(N,vt)|0)+Math.imul(j,gt)|0,h=h+Math.imul(j,vt)|0,n=n+Math.imul(C,bt)|0,o=(o=o+Math.imul(C,wt)|0)+Math.imul(P,bt)|0,h=h+Math.imul(P,wt)|0;var jt=(l+(n=n+Math.imul(I,_t)|0)|0)+((8191&(o=(o=o+Math.imul(I,St)|0)+Math.imul(L,_t)|0))<<13)|0;l=((h=h+Math.imul(L,St)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(H,ct),o=(o=Math.imul(H,pt))+Math.imul(G,ct)|0,h=Math.imul(G,pt),n=n+Math.imul(U,gt)|0,o=(o=o+Math.imul(U,vt)|0)+Math.imul(K,gt)|0,h=h+Math.imul(K,vt)|0,n=n+Math.imul(N,bt)|0,o=(o=o+Math.imul(N,wt)|0)+Math.imul(j,bt)|0,h=h+Math.imul(j,wt)|0;var Ft=(l+(n=n+Math.imul(C,_t)|0)|0)+((8191&(o=(o=o+Math.imul(C,St)|0)+Math.imul(P,_t)|0))<<13)|0;l=((h=h+Math.imul(P,St)|0)+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,n=Math.imul(H,gt),o=(o=Math.imul(H,vt))+Math.imul(G,gt)|0,h=Math.imul(G,vt),n=n+Math.imul(U,bt)|0,o=(o=o+Math.imul(U,wt)|0)+Math.imul(K,bt)|0,h=h+Math.imul(K,wt)|0;var Ut=(l+(n=n+Math.imul(N,_t)|0)|0)+((8191&(o=(o=o+Math.imul(N,St)|0)+Math.imul(j,_t)|0))<<13)|0;l=((h=h+Math.imul(j,St)|0)+(o>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,n=Math.imul(H,bt),o=(o=Math.imul(H,wt))+Math.imul(G,bt)|0,h=Math.imul(G,wt);var qt=(l+(n=n+Math.imul(U,_t)|0)|0)+((8191&(o=(o=o+Math.imul(U,St)|0)+Math.imul(K,_t)|0))<<13)|0;l=((h=h+Math.imul(K,St)|0)+(o>>>13)|0)+(qt>>>26)|0,qt&=67108863;var Kt=(l+(n=Math.imul(H,_t))|0)+((8191&(o=(o=Math.imul(H,St))+Math.imul(G,_t)|0))<<13)|0;return l=((h=Math.imul(G,St))+(o>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,f[0]=Et,f[1]=kt,f[2]=Tt,f[3]=At,f[4]=Rt,f[5]=xt,f[6]=Ot,f[7]=It,f[8]=Lt,f[9]=Dt,f[10]=Ct,f[11]=Pt,f[12]=Bt,f[13]=Nt,f[14]=jt,f[15]=Ft,f[16]=Ut,f[17]=qt,f[18]=Kt,0!==l&&(f[19]=l,r.length++),r};function M(t,e,r){return(new _).mulp(t,e,r)}function _(t,e){this.x=t,this.y=e}Math.imul||(w=y),h.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?w(this,t,e):r<63?y(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,o=0,h=0;h<r.length-1;h++){var f=o;o=0;for(var l=67108863&n,c=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=c;d++){var i=h-d,m=(0|t.words[i])*(0|e.words[d]),v=67108863&m;l=67108863&(v=v+l|0),o+=(f=(f=f+(m/67108864|0)|0)+(v>>>26)|0)>>>26,f&=67108863}r.words[h]=l,n=f,f=o}return 0!==n?r.words[h]=n:r.length--,r.strip()}(this,t,e):M(this,t,e)},_.prototype.makeRBT=function(t){for(var e=new Array(t),r=h.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,r,t);return e},_.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},_.prototype.permute=function(t,e,r,n,o,h){for(var i=0;i<h;i++)n[i]=e[t[i]],o[i]=r[t[i]]},_.prototype.transform=function(t,e,r,n,o,h){this.permute(h,t,e,r,n,o);for(var s=1;s<o;s<<=1)for(var f=s<<1,l=Math.cos(2*Math.PI/f),c=Math.sin(2*Math.PI/f),p=0;p<o;p+=f)for(var d=l,m=c,v=0;v<s;v++){var y=r[p+v],w=n[p+v],M=r[p+v+s],_=n[p+v+s],S=d*M-m*_;_=d*_+m*M,M=S,r[p+v]=y+M,n[p+v]=w+_,r[p+v+s]=y-M,n[p+v+s]=w-_,v!==f&&(S=l*d-c*m,m=l*m+c*d,d=S)}},_.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},_.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var i=0;i<r/2;i++){var n=t[i];t[i]=t[r-i-1],t[r-i-1]=n,n=e[i],e[i]=-e[r-i-1],e[r-i-1]=-n}},_.prototype.normalize13b=function(t,e){for(var r=0,i=0;i<e/2;i++){var n=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+r;t[i]=67108863&n,r=n<67108864?0:n/67108864|0}return t},_.prototype.convert13b=function(t,e,r,o){for(var h=0,i=0;i<e;i++)h+=0|t[i],r[2*i]=8191&h,h>>>=13,r[2*i+1]=8191&h,h>>>=13;for(i=2*e;i<o;++i)r[i]=0;n(0===h),n(0==(-8192&h))},_.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},_.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(n),h=this.stub(n),f=new Array(n),l=new Array(n),c=new Array(n),d=new Array(n),m=new Array(n),v=new Array(n),y=r.words;y.length=n,this.convert13b(t.words,t.length,f,n),this.convert13b(e.words,e.length,d,n),this.transform(f,h,l,c,n,o),this.transform(d,h,m,v,n,o);for(var i=0;i<n;i++){var w=l[i]*m[i]-c[i]*v[i];c[i]=l[i]*v[i]+c[i]*m[i],l[i]=w}return this.conjugate(l,c,n),this.transform(l,c,y,h,n,o),this.conjugate(y,h,n),this.normalize13b(y,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},h.prototype.mul=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},h.prototype.mulf=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),M(this,t,e)},h.prototype.imul=function(t){return this.clone().mulTo(t,this)},h.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,i=0;i<this.length;i++){var r=(0|this.words[i])*t,o=(67108863&r)+(67108863&e);e>>=26,e+=r/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},h.prototype.muln=function(t){return this.clone().imuln(t)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,o=r%26;e[r]=(t.words[n]&1<<o)>>>o}return e}(t);if(0===e.length)return new h(1);for(var r=this,i=0;i<e.length&&0===e[i];i++,r=r.sqr());if(++i<e.length)for(var q=r.sqr();i<e.length;i++,q=q.sqr())0!==e[i]&&(r=r.mul(q));return r},h.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var i,e=t%26,s=(t-e)/26,r=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var h=this.words[i]&r,f=(0|this.words[i])-h<<e;this.words[i]=f|o,o=h>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i<s;i++)this.words[i]=0;this.length+=s}return this.strip()},h.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},h.prototype.iushrn=function(t,e,r){var o;n("number"==typeof t&&t>=0),o=e?(e-e%26)/26:0;var h=t%26,s=Math.min((t-h)/26,this.length),mask=67108863^67108863>>>h<<h,f=r;if(o-=s,o=Math.max(0,o),f){for(var i=0;i<s;i++)f.words[i]=this.words[i];f.length=s}if(0===s);else if(this.length>s)for(this.length-=s,i=0;i<this.length;i++)this.words[i]=this.words[i+s];else this.words[0]=0,this.length=1;var l=0;for(i=this.length-1;i>=0&&(0!==l||i>=o);i--){var c=0|this.words[i];this.words[i]=l<<26-h|c>>>h,l=c&mask}return f&&0!==l&&(f.words[f.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},h.prototype.shln=function(t){return this.clone().ishln(t)},h.prototype.ushln=function(t){return this.clone().iushln(t)},h.prototype.shrn=function(t){return this.clone().ishrn(t)},h.prototype.ushrn=function(t){return this.clone().iushrn(t)},h.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26,q=1<<e;return!(this.length<=s)&&!!(this.words[s]&q)},h.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==e&&s++,this.length=Math.min(s,this.length),0!==e){var mask=67108863^67108863>>>e<<e;this.words[this.length-1]&=mask}return this.strip()},h.prototype.maskn=function(t){return this.clone().imaskn(t)},h.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)},h.prototype._iaddn=function(t){this.words[0]+=t;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},h.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 i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this.strip()},h.prototype.addn=function(t){return this.clone().iaddn(t)},h.prototype.subn=function(t){return this.clone().isubn(t)},h.prototype.iabs=function(){return this.negative=0,this},h.prototype.abs=function(){return this.clone().iabs()},h.prototype._ishlnsubmul=function(t,e,r){var i,o,h=t.length+r;this._expand(h);var f=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+f;var l=(0|t.words[i])*e;f=((o-=67108863&l)>>26)-(l/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)f=(o=(0|this.words[i+r])+f)>>26,this.words[i+r]=67108863&o;if(0===f)return this.strip();for(n(-1===f),f=0,i=0;i<this.length;i++)f=(o=-(0|this.words[i])+f)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},h.prototype._wordDiv=function(t,e){var r=(this.length,t.length),a=this.clone(),b=t,n=0|b.words[b.length-1];0!==(r=26-this._countBits(n))&&(b=b.ushln(r),a.iushln(r),n=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==e){(q=new h(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i<q.length;i++)q.words[i]=0}var f=a.clone()._ishlnsubmul(b,1,o);0===f.negative&&(a=f,q&&(q.words[o]=1));for(var l=o-1;l>=0;l--){var c=67108864*(0|a.words[b.length+l])+(0|a.words[b.length+l-1]);for(c=Math.min(c/n|0,67108863),a._ishlnsubmul(b,c,l);0!==a.negative;)c--,a.negative=0,a._ishlnsubmul(b,1,l),a.isZero()||(a.negative^=1);q&&(q.words[l]=c)}return q&&q.strip(),a.strip(),"div"!==e&&0!==r&&a.iushrn(r),{div:q||null,mod:a}},h.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new h(0),mod:new h(0)}:0!==this.negative&&0===t.negative?(f=this.neg().divmod(t,e),"mod"!==e&&(div=f.div.neg()),"div"!==e&&(o=f.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:div,mod:o}):0===this.negative&&0!==t.negative?(f=this.divmod(t.neg(),e),"mod"!==e&&(div=f.div.neg()),{div:div,mod:f.mod}):0!=(this.negative&t.negative)?(f=this.neg().divmod(t.neg(),e),"div"!==e&&(o=f.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:f.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new h(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new h(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new h(this.modn(t.words[0]))}:this._wordDiv(t,e);var div,o,f},h.prototype.div=function(t){return this.divmod(t,"div",!1).div},h.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},h.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},h.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),o=t.andln(1),h=r.cmp(n);return h<0||1===o&&0===h?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},h.prototype.modn=function(t){n(t<=67108863);for(var p=(1<<26)%t,e=0,i=this.length-1;i>=0;i--)e=(p*e+(0|this.words[i]))%t;return e},h.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},h.prototype.divn=function(t){return this.clone().idivn(t)},h.prototype.egcd=function(p){n(0===p.negative),n(!p.isZero());var t=this,e=p.clone();t=0!==t.negative?t.umod(p):t.clone();for(var r=new h(1),o=new h(0),f=new h(0),l=new h(1),g=0;t.isEven()&&e.isEven();)t.iushrn(1),e.iushrn(1),++g;for(var c=e.clone(),d=t.clone();!t.isZero();){for(var i=0,m=1;0==(t.words[0]&m)&&i<26;++i,m<<=1);if(i>0)for(t.iushrn(i);i-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(c),o.isub(d)),r.iushrn(1),o.iushrn(1);for(var v=0,y=1;0==(e.words[0]&y)&&v<26;++v,y<<=1);if(v>0)for(e.iushrn(v);v-- >0;)(f.isOdd()||l.isOdd())&&(f.iadd(c),l.isub(d)),f.iushrn(1),l.iushrn(1);t.cmp(e)>=0?(t.isub(e),r.isub(f),o.isub(l)):(e.isub(t),f.isub(r),l.isub(o))}return{a:f,b:l,gcd:e.iushln(g)}},h.prototype._invmp=function(p){n(0===p.negative),n(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var t,e=new h(1),r=new h(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,f=1;0==(a.words[0]&f)&&i<26;++i,f<<=1);if(i>0)for(a.iushrn(i);i-- >0;)e.isOdd()&&e.iadd(o),e.iushrn(1);for(var l=0,c=1;0==(b.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(b.iushrn(l);l-- >0;)r.isOdd()&&r.iadd(o),r.iushrn(1);a.cmp(b)>=0?(a.isub(b),e.isub(r)):(b.isub(a),r.isub(e))}return(t=0===a.cmpn(1)?e:r).cmpn(0)<0&&t.iadd(p),t},h.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),b=t.clone();a.negative=0,b.negative=0;for(var e=0;a.isEven()&&b.isEven();e++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var r=a.cmp(b);if(r<0){var n=a;a=b,b=n}else if(0===r||0===b.cmpn(1))break;a.isub(b)}return b.iushln(e)},h.prototype.invm=function(t){return this.egcd(t).a.umod(t)},h.prototype.isEven=function(){return 0==(1&this.words[0])},h.prototype.isOdd=function(){return 1==(1&this.words[0])},h.prototype.andln=function(t){return this.words[0]&t},h.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,s=(t-e)/26,q=1<<e;if(this.length<=s)return this._expand(s+1),this.words[s]|=q,this;for(var r=q,i=s;0!==r&&i<this.length;i++){var o=0|this.words[i];r=(o+=r)>>>26,o&=67108863,this.words[i]=o}return 0!==r&&(this.words[i]=r,this.length++),this},h.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},h.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},h.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},h.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var a=0|this.words[i],b=0|t.words[i];if(a!==b){a<b?e=-1:a>b&&(e=1);break}}return e},h.prototype.gtn=function(t){return 1===this.cmpn(t)},h.prototype.gt=function(t){return 1===this.cmp(t)},h.prototype.gten=function(t){return this.cmpn(t)>=0},h.prototype.gte=function(t){return this.cmp(t)>=0},h.prototype.ltn=function(t){return-1===this.cmpn(t)},h.prototype.lt=function(t){return-1===this.cmp(t)},h.prototype.lten=function(t){return this.cmpn(t)<=0},h.prototype.lte=function(t){return this.cmp(t)<=0},h.prototype.eqn=function(t){return 0===this.cmpn(t)},h.prototype.eq=function(t){return 0===this.cmp(t)},h.red=function(t){return new x(t)},h.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)},h.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(t){return this.red=t,this},h.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},h.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},h.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},h.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},h.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},h.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},h.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},h.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},h.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var S={k256:null,p224:null,p192:null,p25519:null};function E(t,p){this.name=t,this.p=new h(p,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function k(){E.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function T(){E.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){E.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function R(){E.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"==typeof t){var e=h._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function O(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new h(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)}E.prototype._tmp=function(){var t=new h(null);return t.words=new Array(Math.ceil(this.n/13)),t},E.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},E.prototype.split=function(input,t){input.iushrn(this.n,0,t)},E.prototype.imulK=function(t){return t.imul(this.k)},o(k,E),k.prototype.split=function(input,output){for(var t=Math.min(input.length,9),i=0;i<t;i++)output.words[i]=input.words[i];if(output.length=t,input.length<=9)return input.words[0]=0,void(input.length=1);var e=input.words[9];for(output.words[output.length++]=4194303&e,i=10;i<input.length;i++){var r=0|input.words[i];input.words[i-10]=(4194303&r)<<4|e>>>22,e=r}e>>>=22,input.words[i-10]=e,0===e&&input.length>10?input.length-=10:input.length-=9},k.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(T,E),o(A,E),o(R,E),R.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=19*(0|t.words[i])+e,n=67108863&r;r>>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},h._prime=function(t){if(S[t])return S[t];var e;if("k256"===t)e=new k;else if("p224"===t)e=new T;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new R}return S[t]=e,e},x.prototype._verify1=function(a){n(0===a.negative,"red works only with positives"),n(a.red,"red works only with red numbers")},x.prototype._verify2=function(a,b){n(0==(a.negative|b.negative),"red works only with positives"),n(a.red&&a.red===b.red,"red works only with red numbers")},x.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)},x.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},x.prototype.add=function(a,b){this._verify2(a,b);var t=a.add(b);return t.cmp(this.m)>=0&&t.isub(this.m),t._forceRed(this)},x.prototype.iadd=function(a,b){this._verify2(a,b);var t=a.iadd(b);return t.cmp(this.m)>=0&&t.isub(this.m),t},x.prototype.sub=function(a,b){this._verify2(a,b);var t=a.sub(b);return t.cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},x.prototype.isub=function(a,b){this._verify2(a,b);var t=a.isub(b);return t.cmpn(0)<0&&t.iadd(this.m),t},x.prototype.shl=function(a,t){return this._verify1(a),this.imod(a.ushln(t))},x.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b))},x.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b))},x.prototype.isqr=function(a){return this.imul(a,a.clone())},x.prototype.sqr=function(a){return this.mul(a,a)},x.prototype.sqrt=function(a){if(a.isZero())return a.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var e=this.m.add(new h(1)).iushrn(2);return this.pow(a,e)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);n(!q.isZero());var r=new h(1).toRed(this),o=r.redNeg(),f=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new h(2*l*l).toRed(this);0!==this.pow(l,f).cmp(o);)l.redIAdd(o);for(var c=this.pow(l,q),d=this.pow(a,q.addn(1).iushrn(1)),m=this.pow(a,q),v=s;0!==m.cmp(r);){for(var y=m,i=0;0!==y.cmp(r);i++)y=y.redSqr();n(i<v);var b=this.pow(c,new h(1).iushln(v-i-1));d=d.redMul(b),c=b.redSqr(),m=m.redMul(c),v=i}return d},x.prototype.invm=function(a){var t=a._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},x.prototype.pow=function(a,t){if(t.isZero())return new h(1).toRed(this);if(0===t.cmpn(1))return a.clone();var e=new Array(16);e[0]=new h(1).toRed(this),e[1]=a;for(var i=2;i<e.length;i++)e[i]=this.mul(e[i-1],a);var r=e[0],n=0,o=0,f=t.bitLength()%26;for(0===f&&(f=26),i=t.length-1;i>=0;i--){for(var l=t.words[i],c=f-1;c>=0;c--){var d=l>>c&1;r!==e[0]&&(r=this.sqr(r)),0!==d||0!==n?(n<<=1,n|=d,(4===++o||0===i&&0===c)&&(r=this.mul(r,e[n]),o=0,n=0)):o=0}f=26}return r},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},h.mont=function(t){return new O(t)},o(O,x),O.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},O.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},O.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var t=a.imul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},O.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new h(0)._forceRed(this);var t=a.mul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},O.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(79)(t))},,,function(t){t.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd4
207b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},function(t,e,r){(function(e){var n=r(308),o=new(r(309)),h=new n(24),f=new n(11),l=new n(10),c=new n(3),d=new n(7),m=r(307),v=r(86);function y(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this._pub=new n(t),this}function w(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this._priv=new n(t),this}t.exports=_;var M={};function _(t,e,r){this.setGenerator(e),this.__prime=new n(t),this._prime=n.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=y,this.setPrivateKey=w):this._primeCode=8}function S(t,r){var n=new e(t.toArray());return r?n.toString(r):n}Object.defineProperty(_.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(t,e){var r=e.toString("hex"),n=[r,t.toString(16)].join("_");if(n in M)return M[n];var v,y=0;if(t.isEven()||!m.simpleSieve||!m.fermatTest(t)||!o.test(t))return y+=1,y+="02"===r||"05"===r?8:4,M[n]=y,y;switch(o.test(t.shrn(1))||(y+=2),r){case"02":t.mod(h).cmp(f)&&(y+=8);break;case"05":(v=t.mod(l)).cmp(c)&&v.cmp(d)&&(y+=8);break;default:y+=4}return M[n]=y,y}(this.__prime,this.__gen)),this._primeCode}}),_.prototype.generateKeys=function(){return this._priv||(this._priv=new n(v(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},_.prototype.computeSecret=function(t){var r=(t=(t=new n(t)).toRed(this._prime)).redPow(this._priv).fromRed(),o=new e(r.toArray()),h=this.getPrime();if(o.length<h.length){var f=new e(h.length-o.length);f.fill(0),o=e.concat([f,o])}return o},_.prototype.getPublicKey=function(t){return S(this._pub,t)},_.prototype.getPrivateKey=function(t){return S(this._priv,t)},_.prototype.getPrime=function(t){return S(this.__prime,t)},_.prototype.getGenerator=function(t){return S(this._gen,t)},_.prototype.setGenerator=function(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this.__gen=t,this._gen=new n(t),this}}).call(this,r(33).Buffer)},function(t,e,r){var n=r(13).Buffer,o=r(110),h=r(283),f=r(14),l=r(556),c=r(587),d=r(294);function m(t){h.Writable.call(this);var data=d[t];if(!data)throw new Error("Unknown message digest");this._hashType=data.hash,this._hash=o(data.hash),this._tag=data.id,this._signType=data.sign}function v(t){h.Writable.call(this);var data=d[t];if(!data)throw new Error("Unknown message digest");this._hash=o(data.hash),this._tag=data.id,this._signType=data.sign}function y(t){return new m(t)}function w(t){return new v(t)}
vendor: 4,395 bytes, line 2
2Object.keys(d).forEach((function(t){d[t].id=n.from(d[t].id,"hex"),d[t.toLowerCase()]=d[t]})),f(m,h.Writable),m.prototype._write=function(data,t,e){this._hash.update(data),e()},m.prototype.update=function(data,t){return"string"==typeof data&&(data=n.from(data,t)),this._hash.update(data),this},m.prototype.sign=function(t,e){this.end();var r=this._hash.digest(),n=l(r,t,this._hashType,this._signType,this._tag);return e?n.toString(e):n},f(v,h.Writable),v.prototype._write=function(data,t,e){this._hash.update(data),e()},v.prototype.update=function(data,t){return"string"==typeof data&&(data=n.from(data,t)),this._hash.update(data),this},v.prototype.verify=function(t,e,r){"string"==typeof e&&(e=n.from(e,r)),this.end();var o=this._hash.digest();return c(e,o,t,this._signType,this._tag)},t.exports={Sign:y,Verify:w,createSign:y,createVerify:w}},function(t,e,r){var n=r(13).Buffer,o=r(292),h=r(181),f=r(183).ec,l=r(182),c=r(137),d=r(321);function m(t,q,e,r){if((t=n.from(t.toArray())).length<q.byteLength()){var h=n.alloc(q.byteLength()-t.length);t=n.concat([h,t])}var f=e.length,l=function(t,q){t=(t=v(t,q)).mod(q);var e=n.from(t.toArray());if(e.length<q.byteLength()){var r=n.alloc(q.byteLength()-e.length);e=n.concat([r,e])}return e}(e,q),c=n.alloc(f);c.fill(1);var d=n.alloc(f);return d=o(r,d).update(c).update(n.from([0])).update(t).update(l).digest(),c=o(r,d).update(c).digest(),{k:d=o(r,d).update(c).update(n.from([1])).update(t).update(l).digest(),v:c=o(r,d).update(c).digest()}}function v(t,q){var e=new l(t),r=(t.length<<3)-q.bitLength();return r>0&&e.ishrn(r),e}function y(q,t,e){var r,h;do{for(r=n.alloc(0);8*r.length<q.bitLength();)t.v=o(e,t.k).update(t.v).digest(),r=n.concat([r,t.v]);h=v(r,q),t.k=o(e,t.k).update(t.v).update(n.from([0])).digest(),t.v=o(e,t.k).update(t.v).digest()}while(-1!==h.cmp(q));return h}function w(g,t,p,q){return g.toRed(l.mont(p)).redPow(t).fromRed().mod(q)}t.exports=function(t,e,r,o,M){var _=c(e);if(_.curve){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong private key type");return function(t,e){var r=d[e.curve.join(".")];if(!r)throw new Error("unknown curve "+e.curve.join("."));var o=new f(r).keyFromPrivate(e.privateKey).sign(t);return n.from(o.toDER())}(t,_)}if("dsa"===_.type){if("dsa"!==o)throw new Error("wrong private key type");return function(t,e,r){var o,h=e.params.priv_key,p=e.params.p,q=e.params.q,g=e.params.g,f=new l(0),c=v(t,q).mod(q),s=!1,d=m(h,q,t,r);for(;!1===s;)o=y(q,d,r),f=w(g,o,p,q),0===(s=o.invm(q).imul(c.add(h.mul(f))).mod(q)).cmpn(0)&&(s=!1,f=new l(0));return function(t,s){t=t.toArray(),s=s.toArray(),128&t[0]&&(t=[0].concat(t));128&s[0]&&(s=[0].concat(s));var e=[48,t.length+s.length+4,2,t.length];return e=e.concat(t,[2,s.length],s),n.from(e)}(f,s)}(t,_,r)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong private key type");t=n.concat([M,t]);for(var S=_.modulus.byteLength(),E=[0,1];t.length+E.length+1<S;)E.push(255);E.push(0);for(var i=-1;++i<t.length;)E.push(t[i]);return h(E,_)},t.exports.getKey=m,t.exports.makeKey=y},,function(t){t.exports=JSON.parse('{"_args":[["[email protected]","/home/httpd/podbbang/nodejs/mobileweb/releases/v1.60.8"]],"_from":"[email protected]","_id":"[email protected]","_inBundle":false,"_integrity":"sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw==","_location":"/elliptic","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"[email protected]","name":"elliptic","escapedName":"elliptic","rawSpec":"6.5.3","saveSpec":null,"fetchSpec":"6.5.3"},"_requiredBy":["/browserify-sign","/create-ecdh"],"_resolved":"https://registry.npmjs.org/elliptic/-/elliptic-6.5.3.tgz","_spec":"6.5.3","_where":"/home/httpd/podbbang/nodejs/mobileweb/releases/v1.60.8","author":{"name":"Fedor Indutny","email":"[email protected]"},"bugs":{"url":"https://github.com/indutny/elliptic/issues"},"dependencies":{"bn.js":"^4.4.0","brorand":"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0","inherits":"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},"description":"EC cryptography","devDependencies":{"brfs":"^1.4.3","coveralls":"^3.0.8","grunt":"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.2","jscs":"^3.0.7","jshint":"^2.10.3","moch
2a":"^6.2.2"},"files":["lib"],"homepage":"https://github.com/indutny/elliptic","keywords":["EC","Elliptic","curve","Cryptography"],"license":"MIT","main":"lib/elliptic.js","name":"elliptic","repository":{"type":"git","url":"git+ssh://[email protected]/indutny/elliptic.git"},"scripts":{"jscs":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","jshint":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","lint":"npm run jscs && npm run jshint","test":"npm run lint && npm run unit","unit":"istanbul test _mocha --reporter=spec test/index.js","version":"grunt dist && git add dist/"},"version":"6.5.3"}')},,function(t,e,r){"use strict";var n=r(45),o=r(54),h=r(14),f=r(136),l=n.assert;function c(t){f.call(this,"short",t),this.a=new o(t.a,16).toRed(this.red),this.b=new o(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function d(t,e,r,n){f.BasePoint.call(this,t,"affine"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new o(e,16),this.y=new o(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function m(t,e,r,n){f.BasePoint.call(this,t,"jacobian"),null===e&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new o(0)):(this.x=new o(e,16),this.y=new o(r,16),this.z=new o(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}h(c,f),t.exports=c,c.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,r;if(t.beta)e=new o(t.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);e=(e=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(t.lambda)r=new o(t.lambda,16);else{var h=this._getEndoRoots(this.n);0===this.g.mul(h[0]).x.cmp(this.g.x.redMul(e))?r=h[0]:(r=h[1],l(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}return{beta:e,lambda:r,basis:t.basis?t.basis.map((function(t){return{a:new o(t.a,16),b:new o(t.b,16)}})):this._getEndoBasis(r)}}},c.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:o.mont(t),r=new o(2).toRed(e).redInvm(),n=r.redNeg(),s=new o(3).toRed(e).redNeg().redSqrt().redMul(r);return[n.redAdd(s).fromRed(),n.redSub(s).fromRed()]},c.prototype._getEndoBasis=function(t){for(var e,r,n,h,f,l,c,d,m,v=this.n.ushrn(Math.floor(this.n.bitLength()/2)),u=t,y=this.n.clone(),w=new o(1),M=new o(0),_=new o(0),S=new o(1),i=0;0!==u.cmpn(0);){var q=y.div(u);d=y.sub(q.mul(u)),m=_.sub(q.mul(w));var E=S.sub(q.mul(M));if(!n&&d.cmp(v)<0)e=c.neg(),r=w,n=d.neg(),h=m;else if(n&&2==++i)break;c=d,y=u,u=d,_=w,w=m,S=M,M=E}f=d.neg(),l=m;var k=n.sqr().add(h.sqr());return f.sqr().add(l.sqr()).cmp(k)>=0&&(f=e,l=r),n.negative&&(n=n.neg(),h=h.neg()),f.negative&&(f=f.neg(),l=l.neg()),[{a:n,b:h},{a:f,b:l}]},c.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],o=n.b.mul(t).divRound(this.n),h=r.b.neg().mul(t).divRound(this.n),f=o.mul(r.a),l=h.mul(n.a),c=o.mul(r.b),d=h.mul(n.b);return{k1:t.sub(f).sub(l),k2:c.add(d).neg()}},c.prototype.pointFromX=function(t,e){(t=new o(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var h=n.fromRed().isOdd();return(e&&!h||!e&&h)&&(n=n.redNeg()),this.point(t,n)},c.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,n=this.a.redMul(e),o=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(o).cmpn(0)},c.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,o=this._endoWnafT2,i=0;i<t.length;i++){var h=this._endoSplit(e[i]),p=t[i],f=p._getBeta();h.k1.negative&&(h.k1.ineg(),p=p.neg(!0)),h.k2.negative&&(h.k2.ineg(),f=f.neg(!0)),n[2*i]=p,n[2*i+1]=f,o[2*i]=h.k1,o[2*i+1]=h.k2}for(var l=this._wnafMulAdd(1,n,o,2*i,r),c=0;c<2*i;c++)n[c]=null,o[c]=null;return l},h(d,f.BasePoint),c.prototype.point=function(t,e,r){return new d(this,t,e,r)},c.prototype.pointFromJSON=function(t,e){return d.fromJSON(this,t,e)},d.prototype._getBeta=function(){if(this.curve.endo){var pre=this.prec
vendor: 12,529 bytes, line 2
2omputed;if(pre&&pre.beta)return pre.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(pre){var e=this.curve,r=function(p){return e.point(p.x.redMul(e.endo.beta),p.y)};pre.beta=t,t.precomputed={beta:null,naf:pre.naf&&{wnd:pre.naf.wnd,points:pre.naf.points.map(r)},doubles:pre.doubles&&{step:pre.doubles.step,points:pre.doubles.points.map(r)}}}return t}},d.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},d.fromJSON=function(t,e,r){"string"==typeof e&&(e=JSON.parse(e));var n=t.point(e[0],e[1],r);if(!e[2])return n;function o(e){return t.point(e[0],e[1],r)}var pre=e[2];return n.precomputed={beta:null,doubles:pre.doubles&&{step:pre.doubles.step,points:[n].concat(pre.doubles.points.map(o))},naf:pre.naf&&{wnd:pre.naf.wnd,points:[n].concat(pre.naf.points.map(o))}},n},d.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},d.prototype.isInfinity=function(){return this.inf},d.prototype.add=function(p){if(this.inf)return p;if(p.inf)return this;if(this.eq(p))return this.dbl();if(this.neg().eq(p))return this.curve.point(null,null);if(0===this.x.cmp(p.x))return this.curve.point(null,null);var t=this.y.redSub(p.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(p.x).redInvm()));var e=t.redSqr().redISub(this.x).redISub(p.x),r=t.redMul(this.x.redSub(e)).redISub(this.y);return this.curve.point(e,r)},d.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var a=this.curve.a,e=this.x.redSqr(),r=t.redInvm(),n=e.redAdd(e).redIAdd(e).redIAdd(a).redMul(r),o=n.redSqr().redISub(this.x.redAdd(this.x)),h=n.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,h)},d.prototype.getX=function(){return this.x.fromRed()},d.prototype.getY=function(){return this.y.fromRed()},d.prototype.mul=function(t){return t=new o(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},d.prototype.mulAdd=function(t,e,r){var n=[this,e],o=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,o):this.curve._wnafMulAdd(1,n,o,2)},d.prototype.jmulAdd=function(t,e,r){var n=[this,e],o=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,o,!0):this.curve._wnafMulAdd(1,n,o,2,!0)},d.prototype.eq=function(p){return this===p||this.inf===p.inf&&(this.inf||0===this.x.cmp(p.x)&&0===this.y.cmp(p.y))},d.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var pre=this.precomputed,r=function(p){return p.neg()};e.precomputed={naf:pre.naf&&{wnd:pre.naf.wnd,points:pre.naf.points.map(r)},doubles:pre.doubles&&{step:pre.doubles.step,points:pre.doubles.points.map(r)}}}return e},d.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},h(m,f.BasePoint),c.prototype.jpoint=function(t,e,r){return new m(this,t,e,r)},m.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(r,n)},m.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},m.prototype.add=function(p){if(this.isInfinity())return p;if(p.isInfinity())return this;var t=p.z.redSqr(),e=this.z.redSqr(),r=this.x.redMul(t),n=p.x.redMul(e),o=this.y.redMul(t.redMul(p.z)),h=p.y.redMul(e.redMul(this.z)),f=r.redSub(n),l=o.redSub(h);if(0===f.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h2=f.redSqr(),h3=h2.redMul(f),c=r.redMul(h2),d=l.redSqr().redIAdd(h3).redISub(c).redISub(c),m=l.redMul(c.redISub(d)).redISub(o.redMul(h3)),v=this.z.redMul(p.z).redMul(f);return this.curve.jpoint(d,m,v)},m.prototype.mixedAdd=function(p){if(this.isInfinity())return p.toJ();if(p.isInfinity())return this;var t=this.z.redSqr(),e=this.x,r=p.x.redMul(t),n=this.y,o=p.y.redMul(t).redMul(this.z),h=e.redSub(r),f=n.redSub(o);if(0===h.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h2=h.redSqr(),h3=h2.redMul(h),l=e.redMul(h2),c=f.redSqr().redIAdd(h3).redISub(l).redISub(l),d=f.redMul(l.redISub(c)).redISub(n.redMul(h3)),m=this.z.redMul(h);return this.curve.jpoint(c,d,m)},m.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var e=this,i=0;i<t;i++)e=e.dbl();return e}var a=this.curve.a,r=this.curve.tinv,n=this.x,o=this.y,h=this.z,f=h.redSqr().redSqr(),l=o.redAdd(o);for(i=0;i<t;i++){var c=n.redSqr(),d=l.redSqr(),m=d.redSqr(),v=c.redAdd(c).redIAdd(c).redIAdd(a.redMul(f)),y=n.redMul(d),w=v.redSqr().redISub(y.redAdd(y)),M=y.redISub(w),_=v.redMul(M);_=_.redIAdd(_).redISub(m);var S=l.redMul(h);i+1<t&&(f=f.redMul(m)),n=w,h=S,l=_}return this.curve.jpoint(n,l.redMul(r),h)},m.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},m.prototype._zeroDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),o=this.y.redSqr(),h=o.redSqr(),s=this.x.redAdd(o).redSqr().redISub(n).redISub(h);s=s.redIAdd(s);var f=n.redAdd(n).redIAdd(n),l=f.redSqr().redISub(s).redISub(s),c=h.redIAdd(h);c=(c=c.redIAdd(c)).redIAdd(c),t=l,e=f.redMul(s.redISub(l)).redISub(c),r=this.y.redAdd(this.y)}else{var a=this.x.redSqr(),b=this.y.redSqr(),d=b.redSqr(),m=this.x.redAdd(b).redSqr().redISub(a).redISub(d);m=m.redIAdd(m);var v=a.redAdd(a).redIAdd(a),y=v.redSqr(),w=d.redIAdd(d);w=(w=w.redIAdd(w)).redIAdd(w),t=y.redISub(m).redISub(m),e=v.redMul(m.redISub(t)).redISub(w),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(t,e,r)},m.prototype._threeDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),o=this.y.redSqr(),h=o.redSqr(),s=this.x.redAdd(o).redSqr().redISub(n).redISub(h);s=s.redIAdd(s);var f=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),l=f.redSqr().redISub(s).redISub(s);t=l;var c=h.redIAdd(h);c=(c=c.redIAdd(c)).redIAdd(c),e=f.redMul(s.redISub(l)).redISub(c),r=this.y.redAdd(this.y)}else{var d=this.z.redSqr(),m=this.y.redSqr(),v=this.x.redMul(m),y=this.x.redSub(d).redMul(this.x.redAdd(d));y=y.redAdd(y).redIAdd(y);var w=v.redIAdd(v),M=(w=w.redIAdd(w)).redAdd(w);t=y.redSqr().redISub(M),r=this.y.redAdd(this.z).redSqr().redISub(m).redISub(d);var _=m.redSqr();_=(_=(_=_.redIAdd(_)).redIAdd(_)).redIAdd(_),e=y.redMul(w.redISub(t)).redISub(_)}return this.curve.jpoint(t,e,r)},m.prototype._dbl=function(){var a=this.curve.a,t=this.x,e=this.y,r=this.z,n=r.redSqr().redSqr(),o=t.redSqr(),h=e.redSqr(),f=o.redAdd(o).redIAdd(o).redIAdd(a.redMul(n)),l=t.redAdd(t),c=(l=l.redIAdd(l)).redMul(h),d=f.redSqr().redISub(c.redAdd(c)),m=c.redISub(d),v=h.redSqr();v=(v=(v=v.redIAdd(v)).redIAdd(v)).redIAdd(v);var y=f.redMul(m).redISub(v),w=e.redAdd(e).redMul(r);return this.curve.jpoint(d,y,w)},m.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr(),n=e.redSqr(),o=t.redAdd(t).redIAdd(t),h=o.redSqr(),f=this.x.redAdd(e).redSqr().redISub(t).redISub(n),l=(f=(f=(f=f.redIAdd(f)).redAdd(f).redIAdd(f)).redISub(h)).redSqr(),c=n.redIAdd(n);c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var u=o.redIAdd(f).redSqr().redISub(h).redISub(l).redISub(c),d=e.redMul(u);d=(d=d.redIAdd(d)).redIAdd(d);var m=this.x.redMul(l).redISub(d);m=(m=m.redIAdd(m)).redIAdd(m);var v=this.y.redMul(u.redMul(c.redISub(u)).redISub(f.redMul(l)));v=(v=(v=v.redIAdd(v)).redIAdd(v)).redIAdd(v);var y=this.z.redAdd(f).redSqr().redISub(r).redISub(l);return this.curve.jpoint(m,v,y)},m.prototype.mul=function(t,e){return t=new o(t,e),this.curve._wnafMul(this,t)},m.prototype.eq=function(p){if("affine"===p.type)return this.eq(p.toJ());if(this===p)return!0;var t=this.z.redSqr(),e=p.z.redSqr();if(0!==this.x.redMul(e).redISub(p.x.redMul(t)).cmpn(0))return!1;var r=t.redMul(this.z),n=e.redMul(p.z);return 0===this.y.redMul(n).redISub(p.y.redMul(r)).cmpn(0)},m.prototype.eqXToP=function(t){var e=this.z.redSqr(),r=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(r))return!0;for(var n=t.clone(),o=this.curve.redN.redMul(e);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(o),0===this.x.cmp(r))return!0}},m.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},m.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(t,e,r){"use strict";var n=r(54),o=r(14),h=r(136),f=r(45);function l(t){h.call(this,"mont",t),this.a=new n(t.a,16).toRed(this.red),this.b=new n(t.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(t,e,r){h.BasePoint.call(this,t,"projective"),null===e&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(e,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(l,h),t.exports=l,l.prototype.validate=function(t){var e=t.normalize().x,r=e.redSqr(),n=r.redMul(e).redAdd(r.redMul(this.a)).redAdd(e);return 0===n.redSqrt().redSqr().cmp(n)},o(c,h.BasePoint),l.prototype.decodePoint=function(t,e){return this.point(f.toArray(t,e),1)},l.prototype.point=function(t,e){return new c(this,t,e)},l.prototype.pointFromJSON=function(t){return c.fromJSON(this,t)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(t,e){return new c(t,e[0],e[1]||t.one)},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),r=t.redSub(e),n=t.redMul(e),o=r.redMul(e.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,o)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(p,t){var a=this.x.redAdd(this.z),b=this.x.redSub(this.z),e=p.x.redAdd(p.z),r=p.x.redSub(p.z).redMul(a),n=e.redMul(b),o=t.z.redMul(r.redAdd(n).redSqr()),h=t.x.redMul(r.redISub(n).redSqr());return this.curve.point(o,h)},c.prototype.mul=function(t){for(var e=t.clone(),a=this,b=this.curve.point(null,null),r=[];0!==e.cmpn(0);e.iushrn(1))r.push(e.andln(1));for(var i=r.length-1;i>=0;i--)0===r[i]?(a=a.diffAdd(b,this),b=b.dbl()):(b=a.diffAdd(b,this),a=a.dbl());return b},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(t,e,r){"use strict";var n=r(45),o=r(54),h=r(14),f=r(136),l=n.assert;function c(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,f.call(this,"edwards",t),this.a=new o(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),l(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function d(t,e,r,n,h){f.BasePoint.call(this,t,"projective"),null===e&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(e,16),this.y=new o(r,16),this.z=n?new o(n,16):this.curve.one,this.t=h&&new o(h,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}
vendor: 9,664 bytes, line 2
2h(c,f),t.exports=c,c.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},c.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},c.prototype.jpoint=function(t,e,r,n){return this.point(t,e,r,n)},c.prototype.pointFromX=function(t,e){(t=new o(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr(),n=this.c2.redSub(this.a.redMul(r)),h=this.one.redSub(this.c2.redMul(this.d).redMul(r)),f=n.redMul(h.redInvm()),l=f.redSqrt();if(0!==l.redSqr().redSub(f).cmp(this.zero))throw new Error("invalid point");var c=l.fromRed().isOdd();return(e&&!c||!e&&c)&&(l=l.redNeg()),this.point(t,l)},c.prototype.pointFromY=function(t,e){(t=new o(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr(),n=r.redSub(this.c2),h=r.redMul(this.d).redMul(this.c2).redSub(this.a),f=n.redMul(h.redInvm());if(0===f.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var l=f.redSqrt();if(0!==l.redSqr().redSub(f).cmp(this.zero))throw new Error("invalid point");return l.fromRed().isOdd()!==e&&(l=l.redNeg()),this.point(l,t)},c.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),r=t.y.redSqr(),n=e.redMul(this.a).redAdd(r),o=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(r)));return 0===n.cmp(o)},h(d,f.BasePoint),c.prototype.pointFromJSON=function(t){return d.fromJSON(this,t)},c.prototype.point=function(t,e,r,n){return new d(this,t,e,r,n)},d.fromJSON=function(t,e){return new d(t,e[0],e[1],e[2])},d.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},d.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},d.prototype._extDbl=function(){var a=this.x.redSqr(),b=this.y.redSqr(),t=this.z.redSqr();t=t.redIAdd(t);var e=this.curve._mulA(a),r=this.x.redAdd(this.y).redSqr().redISub(a).redISub(b),g=e.redAdd(b),n=g.redSub(t),o=e.redSub(b),h=r.redMul(n),f=g.redMul(o),l=r.redMul(o),c=n.redMul(g);return this.curve.point(h,f,c,l)},d.prototype._projDbl=function(){var t,e,r,b=this.x.redAdd(this.y).redSqr(),n=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var h=(c=this.curve._mulA(n)).redAdd(o);if(this.zOne)t=b.redSub(n).redSub(o).redMul(h.redSub(this.curve.two)),e=h.redMul(c.redSub(o)),r=h.redSqr().redSub(h).redSub(h);else{var f=this.z.redSqr(),l=h.redSub(f).redISub(f);t=b.redSub(n).redISub(o).redMul(l),e=h.redMul(c.redSub(o)),r=h.redMul(l)}}else{var c=n.redAdd(o);f=this.curve._mulC(this.z).redSqr(),l=c.redSub(f).redSub(f);t=this.curve._mulC(b.redISub(c)).redMul(l),e=this.curve._mulC(c).redMul(n.redISub(o)),r=c.redMul(l)}return this.curve.point(t,e,r)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},d.prototype._extAdd=function(p){var a=this.y.redSub(this.x).redMul(p.y.redSub(p.x)),b=this.y.redAdd(this.x).redMul(p.y.redAdd(p.x)),t=this.t.redMul(this.curve.dd).redMul(p.t),e=this.z.redMul(p.z.redAdd(p.z)),r=b.redSub(a),n=e.redSub(t),g=e.redAdd(t),o=b.redAdd(a),h=r.redMul(n),f=g.redMul(o),l=r.redMul(o),c=n.redMul(g);return this.curve.point(h,f,c,l)},d.prototype._projAdd=function(p){var t,e,a=this.z.redMul(p.z),b=a.redSqr(),r=this.x.redMul(p.x),n=this.y.redMul(p.y),o=this.curve.d.redMul(r).redMul(n),h=b.redSub(o),g=b.redAdd(o),f=this.x.redAdd(this.y).redMul(p.x.redAdd(p.y)).redISub(r).redISub(n),l=a.redMul(h).redMul(f);return this.curve.twisted?(t=a.redMul(g).redMul(n.redSub(this.curve._mulA(r))),e=h.redMul(g)):(t=a.redMul(g).redMul(n.redSub(r)),e=this.curve._mulC(h).redMul(g)),this.curve.point(l,t,e)},d.prototype.add=function(p){return this.isInfinity()?p:p.isInfinity()?this:this.curve.extended?this._extAdd(p):this._projAdd(p)},d.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},d.prototype.mulAdd=function(t,p,e){return this.curve._wnafMulAdd(1,[this,p],[t,e],2,!1)},d.prototype.jmulAdd=function(t,p,e){return this.curve._wnafMulAdd(1,[this,p],[t,e],2,!0)},d.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},d.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()},d.prototype.getY=function(){return this.normalize(),this.y.fromRed()},d.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},d.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var r=t.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(n),0===this.x.cmp(e))return!0}},d.prototype.toP=d.prototype.normalize,d.prototype.mixedAdd=d.prototype.add},function(t,e,r){"use strict";e.sha1=r(564),e.sha224=r(565),e.sha256=r(313),e.sha384=r(566),e.sha512=r(314)},function(t,e,r){"use strict";var n=r(50),o=r(112),h=r(312),f=n.rotl32,l=n.sum32,c=n.sum32_5,d=h.ft_1,m=o.BlockHash,v=[1518500249,1859775393,2400959708,3395469782];function y(){if(!(this instanceof y))return new y;m.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(y,m),t.exports=y,y.blockSize=512,y.outSize=160,y.hmacStrength=80,y.padLength=64,y.prototype._update=function(t,e){for(var r=this.W,i=0;i<16;i++)r[i]=t[e+i];for(;i<r.length;i++)r[i]=f(r[i-3]^r[i-8]^r[i-14]^r[i-16],1);var a=this.h[0],b=this.h[1],n=this.h[2],o=this.h[3],h=this.h[4];for(i=0;i<r.length;i++){var s=~~(i/20),m=c(f(a,5),d(s,b,n,o),h,r[i],v[s]);h=o,o=n,n=f(b,30),b=a,a=m}this.h[0]=l(this.h[0],a),this.h[1]=l(this.h[1],b),this.h[2]=l(this.h[2],n),this.h[3]=l(this.h[3],o),this.h[4]=l(this.h[4],h)},y.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(t,e,r){"use strict";var n=r(50),o=r(313);function h(){if(!(this instanceof h))return new h;o.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(h,o),t.exports=h,h.blockSize=512,h.outSize=224,h.hmacStrength=192,h.padLength=64,h.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},function(t,e,r){"use strict";var n=r(50),o=r(314);function h(){if(!(this instanceof h))return new h;o.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(h,o),t.exports=h,h.blockSize=1024,h.outSize=384,h.hmacStrength=192,h.padLength=128,h.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},function(t,e,r){"use strict";var n=r(50),o=r(112),h=n.rotl32,f=n.sum32,l=n.sum32_3,c=n.sum32_4,d=o.BlockHash;function m(){if(!(this instanceof m))return new m;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function v(t,e,r,n){return t<=15?e^r^n:t<=31?e&r|~e&n:t<=47?(e|~r)^n:t<=63?e&n|r&~n:e^(r|~n)}function y(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function w(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}n.inherits(m,d),e.ripemd160=m,m.blockSize=512,m.outSize=160,m.hmacStrength=192,m.padLength=64,m.prototype._update=function(t,e){for(var r=this.h[0],n=this.h[1],o=this.h[2],d=this.h[3],m=this.h[4],E=r,k=n,T=o,A=d,R=m,x=0;x<80;x++){var O=f(h(c(r,v(x,n,o,d),t[M[x]+e],y(x)),s[x]),m);r=m,m=d,d=h(o,10),o=n,n=O,O=f(h(c(E,v(79-x,k,T,A),t[_[x]+e],w(x)),S[x]),R),E=R,R=A,A=h(T,10),T=k,k=O}O=l(this.h[1],o,A),this.h[1]=l(this.h[2],d,R),this.h[2]=l(this.h[3],m,E),this.h[3]=l(this.h[4],r,k),this.h[4]=l(this.h[0],n,T),this.h[0]=O},m.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var M=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],_=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],s=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],S=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},function(t,e,r){"use strict";var n=r(50),o=r(44);function h(t,e,r){if(!(this instanceof h))return new h(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(e,r))}t.exports=h,h.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),o(t.length<=this.blockSize);for(var i=t.length;i<this.blockSize;i++)t.push(0);for(i=0;i<t.length;i++)t[i]^=54;for(this.inner=(new this.Hash).update(t),i=0;i<t.length;i++)t[i]^=106;this.outer=(new this.Hash).update(t)},h.prototype.update=function(t,e){return this.inner.update(t,e),this},h.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t
vendor: 18,422 bytes, line 2
2)}},function(t,e){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0
vendor: 7,734 bytes, line 2
2a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},
vendor: 4,195 bytes, line 2
2function(t,e,r){"use strict";var n=r(54),o=r(571),h=r(45),f=r(184),l=r(180),c=h.assert,d=r(572),m=r(573);function v(t){if(!(this instanceof v))return new v(t);"string"==typeof t&&(c(f.hasOwnProperty(t),"Unknown curve "+t),t=f[t]),t instanceof f.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}t.exports=v,v.prototype.keyPair=function(t){return new d(this,t)},v.prototype.keyFromPrivate=function(t,e){return d.fromPrivate(this,t,e)},v.prototype.keyFromPublic=function(t,e){return d.fromPublic(this,t,e)},v.prototype.genKeyPair=function(t){t||(t={});for(var e=new o({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||l(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),h=this.n.sub(new n(2));;){var f=new n(e.generate(r));if(!(f.cmp(h)>0))return f.iaddn(1),this.keyFromPrivate(f)}},v.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},v.prototype.sign=function(t,e,r,h){"object"==typeof r&&(h=r,r=null),h||(h={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new n(t,16));for(var f=this.n.byteLength(),l=e.getPrivate().toArray("be",f),c=t.toArray("be",f),d=new o({hash:this.hash,entropy:l,nonce:c,pers:h.pers,persEnc:h.persEnc||"utf8"}),v=this.n.sub(new n(1)),y=0;;y++){var w=h.k?h.k(y):new n(d.generate(this.n.byteLength()));if(!((w=this._truncateToN(w,!0)).cmpn(1)<=0||w.cmp(v)>=0)){var M=this.g.mul(w);if(!M.isInfinity()){var _=M.getX(),S=_.umod(this.n);if(0!==S.cmpn(0)){var s=w.invm(this.n).mul(S.mul(e.getPrivate()).iadd(t));if(0!==(s=s.umod(this.n)).cmpn(0)){var E=(M.getY().isOdd()?1:0)|(0!==_.cmp(S)?2:0);return h.canonical&&s.cmp(this.nh)>0&&(s=this.n.sub(s),E^=1),new m({r:S,s:s,recoveryParam:E})}}}}}},v.prototype.verify=function(t,e,r,o){t=this._truncateToN(new n(t,16)),r=this.keyFromPublic(r,o);var h=(e=new m(e,"hex")).r,s=e.s;if(h.cmpn(1)<0||h.cmp(this.n)>=0)return!1;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var p,f=s.invm(this.n),l=f.mul(t).umod(this.n),c=f.mul(h).umod(this.n);return this.curve._maxwellTrick?!(p=this.g.jmulAdd(l,r.getPublic(),c)).isInfinity()&&p.eqXToP(h):!(p=this.g.mulAdd(l,r.getPublic(),c)).isInfinity()&&0===p.getX().umod(this.n).cmp(h)},v.prototype.recoverPubKey=function(t,e,r,o){c((3&r)===r,"The recovery param is more than two bits"),e=new m(e,o);var h=this.n,f=new n(t),l=e.r,s=e.s,d=1&r,v=r>>1;if(l.cmp(this.curve.p.umod(this.curve.n))>=0&&v)throw new Error("Unable to find sencond key candinate");l=v?this.curve.pointFromX(l.add(this.curve.n),d):this.curve.pointFromX(l,d);var y=e.r.invm(h),w=h.sub(f).mul(y).umod(h),M=s.mul(y).umod(h);return this.g.mulAdd(w,l,M)},v.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new m(e,n)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(t,e,r){"use strict";var n=r(185),o=r(310),h=r(44);function f(t){if(!(this instanceof f))return new f(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=o.toArray(t.entropy,t.entropyEnc||"hex"),r=o.toArray(t.nonce,t.nonceEnc||"hex"),n=o.toArray(t.pers,t.persEnc||"hex");h(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}t.exports=f,f.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},f.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},f.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([
vendor: 11,004 bytes, line 2
21]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},f.prototype.reseed=function(t,e,r,n){"string"!=typeof e&&(n=r,r=e,e=null),t=o.toArray(t,e),r=o.toArray(r,n),h(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},f.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(n=r,r=e,e=null),r&&(r=o.toArray(r,n||"hex"),this._update(r));for(var h=[];h.length<t;)this.V=this._hmac().update(this.V).digest(),h=h.concat(this.V);var f=h.slice(0,t);return this._update(r),this._reseed++,o.encode(f,e)}},function(t,e,r){"use strict";var n=r(54),o=r(45).assert;function h(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}t.exports=h,h.fromPublic=function(t,e,r){return e instanceof h?e:new h(t,{pub:e,pubEnc:r})},h.fromPrivate=function(t,e,r){return e instanceof h?e:new h(t,{priv:e,privEnc:r})},h.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},h.prototype.getPublic=function(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},h.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},h.prototype._importPrivate=function(t,e){this.priv=new n(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},h.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?o(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||o(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},h.prototype.derive=function(t){return t.mul(this.priv).getX()},h.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},h.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},h.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(t,e,r){"use strict";var n=r(54),o=r(45),h=o.assert;function f(t,e){if(t instanceof f)return t;this._importDER(t,e)||(h(t.r&&t.s,"Signature without r or s"),this.r=new n(t.r,16),this.s=new n(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function l(){this.place=0}function c(t,p){var e=t[p.place++];if(!(128&e))return e;var r=15&e;if(0===r||r>4)return!1;for(var n=0,i=0,o=p.place;i<r;i++,o++)n<<=8,n|=t[o],n>>>=0;return!(n<=127)&&(p.place=o,n)}function d(t){for(var i=0,e=t.length-1;!t[i]&&!(128&t[i+1])&&i<e;)i++;return 0===i?t:t.slice(i)}function m(t,e){if(e<128)t.push(e);else{var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}}t.exports=f,f.prototype._importDER=function(data,t){data=o.toArray(data,t);var p=new l;if(48!==data[p.place++])return!1;var e=c(data,p);if(!1===e)return!1;if(e+p.place!==data.length)return!1;if(2!==data[p.place++])return!1;var r=c(data,p);if(!1===r)return!1;var h=data.slice(p.place,r+p.place);if(p.place+=r,2!==data[p.place++])return!1;var f=c(data,p);if(!1===f)return!1;if(data.length!==f+p.place)return!1;var s=data.slice(p.place,f+p.place);if(0===h[0]){if(!(128&h[1]))return!1;h=h.slice(1)}if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}return this.r=new n(h),this.s=new n(s),this.recoveryParam=null,!0},f.prototype.toDER=function(t){var e=this.r.toArray(),s=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&s[0]&&(s=[0].concat(s)),e=d(e),s=d(s);!(s[0]||128&s[1]);)s=s.slice(1);var r=[2];m(r,e.length),(r=r.concat(e)).push(2),m(r,s.length);var n=r.concat(s),h=[48];return m(h,n.length),h=h.concat(n),o.encode(h,t)}},function(t,e,r){"use strict";var n=r(185),o=r(184),h=r(45),f=h.assert,l=h.parseBytes,c=r(575),d=r(576);function m(t){if(f("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof m))return new m(t);t=o[t].curve;this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=n.sha512}t.exports=m,m.prototype.sign=function(t,e){t=l(t);var r=this.keyFromSecret(e),n=this.hashInt(r.messagePrefix(),t),o=this.g.mul(n),h=this.encodePoint(o),f=this.hashInt(h,r.pubBytes(),t).mul(r.priv()),c=n.add(f).umod(this.curve.n);return this.makeSignature({R:o,S:c,Rencoded:h})},m.prototype.verify=function(t,e,r){t=l(t),e=this.makeSignature(e);var n=this.keyFromPublic(r),o=this.hashInt(e.Rencoded(),n.pubBytes(),t),h=this.g.mul(e.S());return e.R().add(n.pub().mul(o)).eq(h)},m.prototype.hashInt=function(){for(var t=this.hash(),i=0;i<arguments.length;i++)t.update(arguments[i]);return h.intFromLE(t.digest()).umod(this.curve.n)},m.prototype.keyFromPublic=function(t){return c.fromPublic(this,t)},m.prototype.keyFromSecret=function(t){return c.fromSecret(this,t)},m.prototype.makeSignature=function(t){return t instanceof d?t:new d(this,t)},m.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},m.prototype.decodePoint=function(t){var e=(t=h.parseBytes(t)).length-1,r=t.slice(0,e).concat(-129&t[e]),n=0!=(128&t[e]),o=h.intFromLE(r);return this.curve.pointFromY(o,n)},m.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},m.prototype.decodeInt=function(t){return h.intFromLE(t)},m.prototype.isPoint=function(t){return t instanceof this.pointClass}},function(t,e,r){"use strict";var n=r(45),o=n.assert,h=n.parseBytes,f=n.cachedProperty;function l(t,e){this.eddsa=t,this._secret=h(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=h(e.pub)}l.fromPublic=function(t,e){return e instanceof l?e:new l(t,{pub:e})},l.fromSecret=function(t,e){return e instanceof l?e:new l(t,{secret:e})},l.prototype.secret=function(){return this._secret},f(l,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),f(l,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),f(l,"privBytes",(function(){var t=this.eddsa,e=this.hash(),r=t.encodingLength-1,a=e.slice(0,t.encodingLength);return a[0]&=248,a[r]&=127,a[r]|=64,a})),f(l,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),f(l,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),f(l,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),l.prototype.sign=function(t){return o(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},l.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},l.prototype.getSecret=function(t){return o(this._secret,"KeyPair is public only"),n.encode(this.secret(),t)},l.prototype.getPublic=function(t){return n.encode(this.pubBytes(),t)},t.exports=l},function(t,e,r){"use strict";var n=r(54),o=r(45),h=o.assert,f=o.cachedProperty,l=o.parseBytes;function c(t,e){this.eddsa=t,"object"!=typeof e&&(e=l(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),h(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof n&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}f(c,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),f(c,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),f(c,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),f(c,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return o.encode(this.toBytes(),"hex").toUpperCase()},t.exports=c},function(t,e,r){"use strict";var n=r(315);e.certificate=r(584);var o=n.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));e.RSAPrivateKey=o;var h=n.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));e.RSAPublicKey=h;var f=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(l),this.key("subjectPublicKey").bitstr())}));e.PublicKey=f;var l=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),c=n.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(l),this.key("subjectPrivateKey").octstr())}));e.PrivateKey=c;var d=n.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));e.EncryptedPrivateKey=d;var m=n.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));e.DSAPrivateKey=m,e.DSAparam=n.define("DSAparam",(function(){this.int()}));var v=n.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(y),this.key("publicKey").optional().explicit(1).bitstr())}));e.ECPrivateKey=v;var y=n.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));e.signature=n.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},,function(t,e,r){"use strict";const n=r(317),o=r(319),h=r(14);function f(t,body){this.name=t,this.body=body,this.decoders={},this.encoders={}}e.define=function(t,body){return new f(t,body)},f.prototype._createNamed=function(t){const e=this.name;function r(t){this._initNamed(t,e)}return h(r,t),r.prototype._initNamed=function(e,r){t.call(this,e,r)},new r(this)},f.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(o[t])),this.decoders[t]},f.prototype.decode=function(data,t,e){return this._getDecoder(t).decode(data,e)},f.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(n[t])),this.encoders[t]},f.prototype.encode=function(data,t,e){return this._getEncoder(t).encode(d
vendor: 11,785 bytes, line 2
2ata,e)}},function(t,e,r){"use strict";const n=r(14),o=r(318);function h(t){o.call(this,t),this.enc="pem"}n(h,o),t.exports=h,h.prototype.encode=function(data,t){const p=o.prototype.encode.call(this,data).toString("base64"),e=["-----BEGIN "+t.label+"-----"];for(let i=0;i<p.length;i+=64)e.push(p.slice(i,i+64));return e.push("-----END "+t.label+"-----"),e.join("\n")}},function(t,e,r){"use strict";const n=r(14),o=r(186).Buffer,h=r(320);function f(t){h.call(this,t),this.enc="pem"}n(f,h),t.exports=f,f.prototype.decode=function(data,t){const e=data.toString().split(/[\r\n]+/g),label=t.label.toUpperCase(),r=/^-----(BEGIN|END) ([^-]+)-----$/;let n=-1,f=-1;for(let i=0;i<e.length;i++){const t=e[i].match(r);if(null!==t&&t[2]===label){if(-1!==n){if("END"!==t[1])break;f=i;break}if("BEGIN"!==t[1])break;n=i}}if(-1===n||-1===f)throw new Error("PEM section not found for: "+label);const l=e.slice(n+1,f).join("");l.replace(/[^a-z0-9+/=]+/gi,"");const input=o.from(l,"base64");return h.prototype.decode.call(this,input,t)}},function(t,e,r){"use strict";const base=e;base.Reporter=r(188).Reporter,base.DecoderBuffer=r(113).DecoderBuffer,base.EncoderBuffer=r(113).EncoderBuffer,base.Node=r(187)},function(t,e,r){"use strict";const n=e;n._reverse=function(map){const t={};return Object.keys(map).forEach((function(e){(0|e)==e&&(e|=0);const r=map[e];t[r]=e})),t},n.der=r(189)},function(t,e,r){"use strict";var n=r(315),o=n.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),h=n.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),f=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),l=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(f),this.key("subjectPublicKey").bitstr())})),c=n.define("RelativeDistinguishedName",(function(){this.setof(h)})),d=n.define("RDNSequence",(function(){this.seqof(c)})),m=n.define("Name",(function(){this.choice({rdnSequence:this.use(d)})})),v=n.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(o),this.key("notAfter").use(o))})),y=n.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),w=n.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(f),this.key("issuer").use(m),this.key("validity").use(v),this.key("subject").use(m),this.key("subjectPublicKeyInfo").use(l),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(y).optional())})),M=n.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(w),this.key("signatureAlgorithm").use(f),this.key("signatureValue").bitstr())}));t.exports=M},function(t){t.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},function(t,e,r){var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,h=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,f=r(135),l=r(178),c=r(13).Buffer;t.exports=function(t,e){var r,d=t.toString(),m=d.match(n);if(m){var v="aes"+m[1],y=c.from(m[2],"hex"),w=c.from(m[3].replace(/[\r\n]/g,""),"base64"),M=f(e,y.slice(0,8),parseInt(m[1],10)).key,_=[],S=l.createDecipheriv(v,M,y);_.push(S.update(w)),_.push(S.final()),r=c.concat(_)}else{var E=d.match(h);r=c.from(E[2].replace(/[\r\n]/g,""),"base64")}return{tag:d.match(o)[1],data:r}}},function(t,e,r){var n=r(13).Buffer,o=r(182),h=r(183).ec,f=r(137),l=r(321);function c(b,q){if(b.cmpn(0)<=0)throw new Error("invalid sig");if(b.cmp(q)>=q)throw new Error("invalid sig")}t.exports=function(t,e,r,d,m){var v=f(r);if("ec"===v.type){if("ecdsa"!==d&&"ecdsa/rsa"!==d)throw new Error("wrong public key type");return function(t,e,r){var n=l[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var o=new h(n),f=r.data.subjectPrivateKey.data;return o.verify(e,t,f)}(t,e,v)}if("dsa"===v.type){if("dsa"!==d)throw new Error("wrong public key type");return function(t,e,r){var p=r.data.p,q=r.data.q,g=r.data.g,n=r.data.pub_key,h=f.signature.decode(t,"der"),s=h.s,l=h.r;c(s,q),c(l,q);var d=o.mont(p),m=s.invm(q);return 0===g.toRed(d).redPow(new o(e).mul(m).mod(q)).fromRed().mul(n.toRed(d).redPow(l.mul(m).mod(q)).fromRed()).mod(p).mod(q).cmp(l)}(t,e,v)}if("rsa"!==d&&"ecdsa/rsa"!==d)throw new Error("wrong public key type");e=n.concat([m,e]);for(var y=v.modulus.byteLength(),w=[1],M=0;e.length+w.length+2<y;)w.push(255),M++;w.push(0);for(var i=-1;++i<e.length;)w.push(e[i]);w=n.from(w);var _=o.mont(v.modulus);t=(t=new o(t).toRed(_)).redPow(new o(v.publicExponent)),t=n.from(t.fromRed().toArray());var S=M<8?1:0;for(y=Math.min(t.length,w.length),t.length!==w.length&&(S=1),i=-1;++i<y;)S|=t[i]^w[i];return 0===S}},function(t,e,r){(function(e){var n=r(183),o=r(589);t.exports=function(t){return new f(t)};var h={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function f(t){this.curveType=h[t],this.curveType||(this.curveType={name:t}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function l(t,r,n){Array.isArray(t)||(t=t.toArray());var o=new e(t);if(n&&o.length<n){var h=new e(n-o.length);h.fill(0),o=e.concat([h,o])}return r?o.toString(r):o}h.p224=h.secp224r1,h.p256=h.secp256r1=h.prime256v1,h.p192=h.secp192r1=h.prime192v1,h.p384=h.secp384r1,h.p521=h.secp521r1,f.prototype.generateKeys=function(t,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(t,e)},f.prototype.computeSecret=function(t,r,n){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),l(this.curve.keyFromPublic(t).getPublic().mul(this.keys.getPrivate()).getX(),n,this.curveType.byteLength)},f.prototype.getPublicKey=function(t,e){var r=this.keys.getPublic("compressed"===e,!0);return"hybrid"===e&&(r[r.length-1]%2?r[0]=7:r[0]=6),l(r,t)},f.prototype.getPrivateKey=function(t){return l(this.keys.getPrivate(),t)},f.prototype.setPublicKey=function(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this.keys._importPublic(t),this},f.prototype.setPrivateKey=function(t,r){r=r||"utf8",e.isBuffer(t)||(t=new e(t,r));var n=new o(t);return n=n.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(n),this}}).call(this,r(33).Buffer)},function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function h(t,base,e){if(h.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==base&&"be"!==base||(e=base,base=10),this._init(t||0,base||10,e||"be"))}var f;"object"==typeof t?t.exports=h:e.BN=h,h.BN=h,h.wordSize=26;try{f=r(590).Buffer}catch(t){}function l(t,e,r){for(var n=0,o=Math.min(t.length,r),i=e;i<o;i++){var h=t.charCodeAt(i)-48;n<<=4,n|=h>=49&&h<=54?h-49+10:h>=17&&h<=22?h-17+10:15&h}return n}function c(t,e,r,n){for(var o=0,h=Math.min(t.length,r),i=e;i<h;i++){var f=t.charCodeAt(i)-48;o*=n,o+=f>=49?f-49+10:f>=17?f-17+10:f}return o}h.isBN=function(t){return t instanceof h||null!==t&&"object"==typeof t&&t.constructor.wordSize===h.wordSize&&Array.isArray(t.words)},h.max=function(t,e){return t.cmp(e)>0?t:e},h.min=function(t,e){return t.cmp(e)<0?t:e},h.prototype._init=function(t,base,e){if("number"==typeof t)return this._initNumber(t,base,e);if("object"==typeof t)return this._initArray(t,base,e);"hex"===base&&(base=16),n(base===(0|base)&&base>=2&&base<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&r++,16===base?this._parseHex(t,r):this._parseBase(t,base,r),"-"===t[0]&&(this.negative=1),this.strip(),"le"===e&&this._initArray(this.toArray(),base,e)},h.prototype._initNumber=function(t,base,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(),base,e)},h.prototype._initArray=function(t,base,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 r,o,h=0;if("be"===e)for(i=t.length-1,r=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[r]|=o<<h&67108863,this.words[r+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,r++);else if("le"===e)for(i=0,r=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[r]|=o<<h&67108863,this.words[r+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,r++);return this.strip()},h.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n,o=0;for(i=t.length-6,r=0;i>=e;i-=6)n=l(t,i,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==e&&(n=l(t,e,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303),this.strip()},h.prototype._parseBase=function(t,base,e){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=base)r++;r--,n=n/base|0;for(var o=t.length-e,h=o%r,f=Math.min(o,o-h)+e,l=0,i=e;i<f;i+=r)l=c(t,i,i+r,base),this.imuln(n),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==h){var d=1;for(l=c(t,i,t.length,base),i=0;i<h;i++)d*=base;this.imuln(d),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},h.prototype.copy=function(t){t.words=new Array(this.length);for(var i=0;i<this.length;i++)t.words[i]=this.words[i];t.length=this.length,t.negative=this.negative,t.red=this.red},h.prototype.clone=function(){var t=new h(null);return this.copy(t),t},h.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},h.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var d=["","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"],m=[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],v=[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,143489
vendor: 43,007 bytes, line 2
207,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function y(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var a=0|t.words[0],b=0|e.words[0],o=a*b,h=67108863&o,f=o/67108864|0;r.words[0]=h;for(var l=1;l<n;l++){for(var c=f>>>26,d=67108863&f,m=Math.min(l,e.length-1),v=Math.max(0,l-t.length+1);v<=m;v++){var i=l-v|0;c+=(o=(a=0|t.words[i])*(b=0|e.words[v])+d)/67108864|0,d=67108863&o}r.words[l]=0|d,f=0|c}return 0!==f?r.words[l]=0|f:r.length--,r.strip()}h.prototype.toString=function(base,t){var e;if(t=0|t||1,16===(base=base||10)||"hex"===base){e="";for(var r=0,o=0,i=0;i<this.length;i++){var h=this.words[i],f=(16777215&(h<<r|o)).toString(16);e=0!==(o=h>>>24-r&16777215)||i!==this.length-1?d[6-f.length]+f+e:f+e,(r+=2)>=26&&(r-=26,i--)}for(0!==o&&(e=o.toString(16)+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(base===(0|base)&&base>=2&&base<=36){var l=m[base],c=v[base];e="";var y=this.clone();for(y.negative=0;!y.isZero();){var w=y.modn(c).toString(base);e=(y=y.idivn(c)).isZero()?w+e:d[l-w.length]+w+e}for(this.isZero()&&(e="0"+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}n(!1,"Base should be between 2 and 36")},h.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},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(t,e){return n(void 0!==f),this.toArrayLike(f,t,e)},h.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},h.prototype.toArrayLike=function(t,e,r){var o=this.byteLength(),h=r||Math.max(1,o);n(o<=h,"byte array longer than desired length"),n(h>0,"Requested array length <= 0"),this.strip();var b,i,f="le"===e,l=new t(h),q=this.clone();if(f){for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),l[i]=b;for(;i<h;i++)l[i]=0}else{for(i=0;i<h-o;i++)l[i]=0;for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),l[h-i-1]=b}return l},Math.clz32?h.prototype._countBits=function(t){return 32-Math.clz32(t)}:h.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},h.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},h.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;i<this.length;i++){var b=this._zeroBits(this.words[i]);if(t+=b,26!==b)break}return t},h.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},h.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},h.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},h.prototype.isNeg=function(){return 0!==this.negative},h.prototype.neg=function(){return this.clone().ineg()},h.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},h.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]|t.words[i];return this.strip()},h.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},h.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},h.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},h.prototype.iuand=function(t){var b;b=this.length>t.length?t:this;for(var i=0;i<b.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=b.length,this.strip()},h.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},h.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},h.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},h.prototype.iuxor=function(t){var a,b;this.length>t.length?(a=this,b=t):(a=t,b=this);for(var i=0;i<b.length;i++)this.words[i]=a.words[i]^b.words[i];if(this!==a)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=a.length,this.strip()},h.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},h.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},h.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},h.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},h.prototype.notn=function(t){return this.clone().inotn(t)},h.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,o=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<o:this.words[r]&~(1<<o),this.strip()},h.prototype.iadd=function(t){var e,a,b;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(a=this,b=t):(a=t,b=this);for(var r=0,i=0;i<b.length;i++)e=(0|a.words[i])+(0|b.words[i])+r,this.words[i]=67108863&e,r=e>>>26;for(;0!==r&&i<a.length;i++)e=(0|a.words[i])+r,this.words[i]=67108863&e,r=e>>>26;if(this.length=a.length,0!==r)this.words[this.length]=r,this.length++;else if(a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this},h.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},h.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var a,b,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(a=this,b=t):(a=t,b=this);for(var n=0,i=0;i<b.length;i++)n=(e=(0|a.words[i])-(0|b.words[i])+n)>>26,this.words[i]=67108863&e;for(;0!==n&&i<a.length;i++)n=(e=(0|a.words[i])+n)>>26,this.words[i]=67108863&e;if(0===n&&i<a.length&&a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=Math.max(this.length,i),a!==this&&(this.negative=1),this.strip()},h.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,r){var n,o,h,a=t.words,b=e.words,f=r.words,l=0,c=0|a[0],d=8191&c,m=c>>>13,v=0|a[1],y=8191&v,w=v>>>13,M=0|a[2],_=8191&M,S=M>>>13,E=0|a[3],k=8191&E,T=E>>>13,A=0|a[4],R=8191&A,x=A>>>13,O=0|a[5],I=8191&O,L=O>>>13,D=0|a[6],C=8191&D,P=D>>>13,B=0|a[7],N=8191&B,j=B>>>13,F=0|a[8],U=8191&F,K=F>>>13,z=0|a[9],H=8191&z,G=z>>>13,V=0|b[0],W=8191&V,Y=V>>>13,Z=0|b[1],X=8191&Z,$=Z>>>13,J=0|b[2],Q=8191&J,tt=J>>>13,et=0|b[3],it=8191&et,nt=et>>>13,ot=0|b[4],at=8191&ot,st=ot>>>13,ut=0|b[5],ht=8191&ut,ft=ut>>>13,lt=0|b[6],ct=8191&lt,pt=lt>>>13,mt=0|b[7],gt=8191&mt,vt=mt>>>13,yt=0|b[8],bt=8191&yt,wt=yt>>>13,Mt=0|b[9],_t=8191&Mt,St=Mt>>>13;r.negative=t.negative^e.negative,r.length=19;var Et=(l+(n=Math.imul(d,W))|0)+((8191&(o=(o=Math.imul(d,Y))+Math.imul(m,W)|0))<<13)|0;l=((h=Math.imul(m,Y))+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(y,W),o=(o=Math.imul(y,Y))+Math.imul(w,W)|0,h=Math.imul(w,Y);var kt=(l+(n=n+Math.imul(d,X)|0)|0)+((8191&(o=(o=o+Math.imul(d,$)|0)+Math.imul(m,X)|0))<<13)|0;l=((h=h+Math.imul(m,$)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(_,W),o=(o=Math.imul(_,Y))+Math.imul(S,W)|0,h=Math.imul(S,Y),n=n+Math.imul(y,X)|0,o=(o=o+Math.imul(y,$)|0)+Math.imul(w,X)|0,h=h+Math.imul(w,$)|0;var Tt=(l+(n=n+Math.imul(d,Q)|0)|0)+((8191&(o=(o=o+Math.imul(d,tt)|0)+Math.imul(m,Q)|0))<<13)|0;l=((h=h+Math.imul(m,tt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(k,W),o=(o=Math.imul(k,Y))+Math.imul(T,W)|0,h=Math.imul(T,Y),n=n+Math.imul(_,X)|0,o=(o=o+Math.imul(_,$)|0)+Math.imul(S,X)|0,h=h+Math.imul(S,$)|0,n=n+Math.imul(y,Q)|0,o=(o=o+Math.imul(y,tt)|0)+Math.imul(w,Q)|0,h=h+Math.imul(w,tt)|0;var At=(l+(n=n+Math.imul(d,it)|0)|0)+((8191&(o=(o=o+Math.imul(d,nt)|0)+Math.imul(m,it)|0))<<13)|0;l=((h=h+Math.imul(m,nt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(R,W),o=(o=Math.imul(R,Y))+Math.imul(x,W)|0,h=Math.imul(x,Y),n=n+Math.imul(k,X)|0,o=(o=o+Math.imul(k,$)|0)+Math.imul(T,X)|0,h=h+Math.imul(T,$)|0,n=n+Math.imul(_,Q)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(S,Q)|0,h=h+Math.imul(S,tt)|0,n=n+Math.imul(y,it)|0,o=(o=o+Math.imul(y,nt)|0)+Math.imul(w,it)|0,h=h+Math.imul(w,nt)|0;var Rt=(l+(n=n+Math.imul(d,at)|0)|0)+((8191&(o=(o=o+Math.imul(d,st)|0)+Math.imul(m,at)|0))<<13)|0;l=((h=h+Math.imul(m,st)|0)+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(I,W),o=(o=Math.imul(I,Y))+Math.imul(L,W)|0,h=Math.imul(L,Y),n=n+Math.imul(R,X)|0,o=(o=o+Math.imul(R,$)|0)+Math.imul(x,X)|0,h=h+Math.imul(x,$)|0,n=n+Math.imul(k,Q)|0,o=(o=o+Math.imul(k,tt)|0)+Math.imul(T,Q)|0,h=h+Math.imul(T,tt)|0,n=n+Math.imul(_,it)|0,o=(o=o+Math.imul(_,nt)|0)+Math.imul(S,it)|0,h=h+Math.imul(S,nt)|0,n=n+Math.imul(y,at)|0,o=(o=o+Math.imul(y,st)|0)+Math.imul(w,at)|0,h=h+Math.imul(w,st)|0;var xt=(l+(n=n+Math.imul(d,ht)|0)|0)+((8191&(o=(o=o+Math.imul(d,ft)|0)+Math.imul(m,ht)|0))<<13)|0;l=((h=h+Math.imul(m,ft)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(C,W),o=(o=Math.imul(C,Y))+Math.imul(P,W)|0,h=Math.imul(P,Y),n=n+Math.imul(I,X)|0,o=(o=o+Math.imul(I,$)|0)+Math.imul(L,X)|0,h=h+Math.imul(L,$)|0,n=n+Math.imul(R,Q)|0,o=(o=o+Math.imul(R,tt)|0)+Math.imul(x,Q)|0,h=h+Math.imul(x,tt)|0,n=n+Math.imul(k,it)|0,o=(o=o+Math.imul(k,nt)|0)+Math.imul(T,it)|0,h=h+Math.imul(T,nt)|0,n=n+Math.imul(_,at)|0,o=(o=o+Math.imul(_,st)|0)+Math.imul(S,at)|0,h=h+Math.imul(S,st)|0,n=n+Math.imul(y,ht)|0,o=(o=o+Math.imul(y,ft)|0)+Math.imul(w,ht)|0,h=h+Math.imul(w,ft)|0;var Ot=(l+(n=n+Math.imul(d,ct)|0)|0)+((8191&(o=(o=o+Math.imul(d,pt)|0)+Math.imul(m,ct)|0))<<13)|0;l=((h=h+Math.imul(m,pt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(N,W),o=(o=Math.imul(N,Y))+Math.imul(j,W)|0,h=Math.imul(j,Y),n=n+Math.imul(C,X)|0,o=(o=o+Math.imul(C,$)|0)+Math.imul(P,X)|0,h=h+Math.imul(P,$)|0,n=n+Math.imul(I,Q)|0,o=(o=o+Math.imul(I,tt)|0)+Math.imul(L,Q)|0,h=h+Math.imul(L,tt)|0,n=n+Math.imul(R,it)|0,o=(o=o+Math.imul(R,nt)|0)+Math.imul(x,it)|0,h=h+Math.imul(x,nt)|0,n=n+Math.imul(k,at)|0,o=(o=o+Math.imul(k,st)|0)+Math.imul(T,at)|0,h=h+Math.imul(T,st)|0,n=n+Math.imul(_,ht)|0,o=(o=o+Math.imul(_,ft)|0)+Math.imul(S,ht)|0,h=h+Math.imul(S,ft)|0,n=n+Math.imul(y,ct)|0,o=(o=o+Math.imul(y,pt)|0)+Math.imul(w,ct)|0,h=h+Math.imul(w,pt)|0;var It=(l+(n=n+Math.imul(d,gt)|0)|0)+((8191&(o=(o=o+Math.imul(d,vt)|0)+Math.imul(m,gt)|0))<<13)|0;l=((h=h+Math.imul(m,vt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,W),o=(o=Math.imul(U,Y))+Math.imul(K,W)|0,h=Math.imul(K,Y),n=n+Math.imul(N,X)|0,o=(o=o+Math.imul(N,$)|0)+Math.imul(j,X)|0,h=h+Math.imul(j,$)|0,n=n+Math.imul(C,Q)|0,o=(o=o+Math.imul(C,tt)|0)+Math.imul(P,Q)|0,h=h+Math.imul(P,tt)|0,n=n+Math.imul(I,it)|0,o=(o=o+Math.imul(I,nt)|0)+Math.imul(L,it)|0,h=h+Math.imul(L,nt)|0,n=n+Math.imul(R,at)|0,o=(o=o+Math.imul(R,st)|0)+Math.imul(x,at)|0,h=h+Math.imul(x,st)|0,n=n+Math.imul(k,ht)|0,o=(o=o+Math.imul(k,ft)|0)+Math.imul(T,ht)|0,h=h+Math.imul(T,ft)|0,n=n+Math.imul(_,ct)|0,o=(o=o+Math.imul(_,pt)|0)+Math.imul(S,ct)|0,h=h+Math.imul(S,pt)|0,n=n+Math.imul(y,gt)|0,o=(o=o+Math.imul(y,vt)|0)+Math.imul(w,gt)|0,h=h+Math.imul(w,vt)|0;var Lt=(l+(n=n+Math.imul(d,bt)|0)|0)+((8191&(o=(o=o+Math.imul(d,wt)|0)+Math.imul(m,bt)|0))<<13)|0;l=((h=h+Math.imul(m,wt)|0)+(o>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(H,W),o=(o=Math.imul(H,Y))+Math.imul(G,W)|0,h=Math.imul(G,Y),n=n+Math.imul(U,X)|0,o=(o=o+Math.imul(U,$)|0)+Math.imul(K,X)|0,h=h+Math.imul(K,$)|0,n=n+Math.imul(N,Q)|0,o=(o=o+Math.imul(N,tt)|0)+Math.imul(j,Q)|0,h=h+Math.imul(j,tt)|0,n=n+Math.imul(C,it)|0,o=(o=o+Math.imul(C,nt)|0)+Math.imul(P,it)|0,h=h+Math.imul(P,nt)|0,n=n+Math.imul(I,at)|0,o=(o=o+Math.imul(I,st)|0)+Math.imul(L,at)|0,h=h+Math.imul(L,st)|0,n=n+Math.imul(R,ht)|0,o=(o=o+Math.imul(R,ft)|0)+Math.imul(x,ht)|0,h=h+Math.imul(x,ft)|0,n=n+Math.imul(k,ct)|0,o=(o=o+Math.imul(k,pt)|0)+Math.imul(T,ct)|0,h=h+Math.imul(T,pt)|0,n=n+Math.imul(_,gt)|0,o=(o=o+Math.imul(_,vt)|0)+Math.imul(S,gt)|0,h=h+Math.imul(S,vt)|0,n=n+Math.imul(y,bt)|0,o=(o=o+Math.imul(y,wt)|0)+Math.imul(w,bt)|0,h=h+Math.imul(w,wt)|0;var Dt=(l+(n=n+Math.imul(d,_t)|0)|0)+((8191&(o=(o=o+Math.imul(d,St)|0)+Math.imul(m,_t)|0))<<13)|0;l=((h=h+Math.imul(m,St)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(H,X),o=(o=Math.imul(H,$))+Math.imul(G,X)|0,h=Math.imul(G,$),n=n+Math.imul(U,Q)|0,o=(o=o+Math.imul(U,tt)|0)+Math.imul(K,Q)|0,h=h+Math.imul(K,tt)|0,n=n+Math.imul(N,it)|0,o=(o=o+Math.imul(N,nt)|0)+Math.imul(j,it)|0,h=h+Math.imul(j,nt)|0,n=n+Math.imul(C,at)|0,o=(o=o+Math.imul(C,st)|0)+Math.imul(P,at)|0,h=h+Math.imul(P,st)|0,n=n+Math.imul(I,ht)|0,o=(o=o+Math.imul(I,ft)|0)+Math.imul(L,ht)|0,h=h+Math.imul(L,ft)|0,n=n+Math.imul(R,ct)|0,o=(o=o+Math.imul(R,pt)|0)+Math.imul(x,ct)|0,h=h+Math.imul(x,pt)|0,n=n+Math.imul(k,gt)|0,o=(o=o+Math.imul(k,vt)|0)+Math.imul(T,gt)|0,h=h+Math.imul(T,vt)|0,n=n+Math.imul(_,bt)|0,o=(o=o+Math.imul(_,wt)|0)+Math.imul(S,bt)|0,h=h+Math.imul(S,wt)|0;var Ct=(l+(n=n+Math.imul(y,_t)|0)|0)+((8191&(o=(o=o+Math.imul(y,St)|0)+Math.imul(w,_t)|0))<<13)|0;l=((h=h+Math.imul(w,St)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(H,Q),o=(o=Math.imul(H,tt))+Math.imul(G,Q)|0,h=Math.imul(G,tt),n=n+Math.imul(U,it)|0,o=(o=o+Math.imul(U,nt)|0)+Math.imul(K,it)|0,h=h+Math.imul(K,nt)|0,n=n+Math.imul(N,at)|0,o=(o=o+Math.imul(N,st)|0)+Math.imul(j,at)|0,h=h+Math.imul(j,st)|0,n=n+Math.imul(C,ht)|0,o=(o=o+Math.imul(C,ft)|0)+Math.imul(P,ht)|0,h=h+Math.imul(P,ft)|0,n=n+Math.imul(I,ct)|0,o=(o=o+Math.imul(I,pt)|0)+Math.imul(L,ct)|0,h=h+Math.imul(L,pt)|0,n=n+Math.imul(R,gt)|0,o=(o=o+Math.imul(R,vt)|0)+Math.imul(x,gt)|0,h=h+Math.imul(x,vt)|0,n=n+Math.imul(k,bt)|0,o=(o=o+Math.imul(k,wt)|0)+Math.imul(T,bt)|0,h=h+Math.imul(T,wt)|0;var Pt=(l+(n=n+Math.imul(_,_t)|0)|0)+((8191&(o=(o=o+Math.imul(_,St)|0)+Math.imul(S,_t)|0))<<13)|0;l=((h=h+Math.imul(S,St)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(H,it),o=(o=Math.imul(H,nt))+Math.imul(G,it)|0,h=Math.imul(G,nt),n=n+Math.imul(U,at)|0,o=(o=o+Math.imul(U,st)|0)+Math.imul(K,at)|0,h=h+Math.imul(K,st)|0,n=n+Math.imul(N,ht)|0,o=(o=o+Math.imul(N,ft)|0)+Math.imul(j,ht)|0,h=h+Math.imul(j,ft)|0,n=n+Math.imul(C,ct)|0,o=(o=o+Math.imul(C,pt)|0)+Math.imul(P,ct)|0,h=h+Math.imul(P,pt)|0,n=n+Math.imul(I,gt)|0,o=(o=o+Math.imul(I,vt)|0)+Math.imul(L,gt)|0,h=h+Math.imul(L,vt)|0,n=n+Math.imul(R,bt)|0,o=(o=o+Math.imul(R,wt)|0)+Math.imul(x,bt)|0,h=h+Math.imul(x,wt)|0;var Bt=(l+(n=n+Math.imul(k,_t)|0)|0)+((8191&(o=(o=o+Math.imul(k,St)|0)+Math.imul(T,_t)|0))<<13)|0;l=((h=h+Math.imul(T,St)|0)+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(H,at),o=(o=Math.imul(H,st))+Math.imul(G,at)|0,h=Math.imul(G,st),n=n+Math.imul(U,ht)|0,o=(o=o+Math.imul(U,ft)|0)+Math.imul(K,ht)|0,h=h+Math.imul(K,ft)|0,n=n+Math.imul(N,ct)|0,o=(o=o+Math.imul(N,pt)|0)+Math.imul(j,ct)|0,h=h+Math.imul(j,pt)|0,n=n+Math.imul(C,gt)|0,o=(o=o+Math.imul(C,vt)|0)+Math.imul(P,gt)|0,h=h+Math.imul(P,vt)|0,n=n+Math.imul(I,bt)|0,o=(o=o+Math.imul(I,wt)|0)+Math.imul(L,bt)|0,h=h+Math.imul(L,wt)|0;var Nt=(l+(n=n+Math.imul(R,_t)|0)|0)+((8191&(o=(o=o+Math.imul(R,St)|0)+Math.imul(x,_t)|0))<<13)|0;l=((h=h+Math.imul(x,St)|0)+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(H,ht),o=(o=Math.imul(H,ft))+Math.imul(G,ht)|0,h=Math.imul(G,ft),n=n+Math.imul(U,ct)|0,o=(o=o+Math.imul(U,pt)|0)+Math.imul(K,ct)|0,h=h+Math.imul(K,pt)|0,n=n+Math.imul(N,gt)|0,o=(o=o+Math.imul(N,vt)|0)+Math.imul(j,gt)|0,h=h+Math.imul(j,vt)|0,n=n+Math.imul(C,bt)|0,o=(o=o+Math.imul(C,wt)|0)+Math.imul(P,bt)|0,h=h+Math.imul(P,wt)|0;var jt=(l+(n=n+Math.imul(I,_t)|0)|0)+((8191&(o=(o=o+Math.imul(I,St)|0)+Math.imul(L,_t)|0))<<13)|0;l=((h=h+Math.imul(L,St)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(H,ct),o=(o=Math.imul(H,pt))+Math.imul(G,ct)|0,h=Math.imul(G,pt),n=n+Math.imul(U,gt)|0,o=(o=o+Math.imul(U,vt)|0)+Math.imul(K,gt)|0,h=h+Math.imul(K,vt)|0,n=n+Math.imul(N,bt)|0,o=(o=o+Math.imul(N,wt)|0)+Math.imul(j,bt)|0,h=h+Math.imul(j,wt)|0;var Ft=(l+(n=n+Math.imul(C,_t)|0)|0)+((8191&(o=(o=o+Math.imul(C,St)|0)+Math.imul(P,_t)|0))<<13)|0;l=((h=h+Math.imul(P,St)|0)+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,n=Math.imul(H,gt),o=(o=Math.imul(H,vt))+Math.imul(G,gt)|0,h=Math.imul(G,vt),n=n+Math.imul(U,bt)|0,o=(o=o+Math.imul(U,wt)|0)+Math.imul(K,bt)|0,h=h+Math.imul(K,wt)|0;var Ut=(l+(n=n+Math.imul(N,_t)|0)|0)+((8191&(o=(o=o+Math.imul(N,St)|0)+Math.imul(j,_t)|0))<<13)|0;l=((h=h+Math.imul(j,St)|0)+(o>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,n=Math.imul(H,bt),o=(o=Math.imul(H,wt))+Math.imul(G,bt)|0,h=Math.imul(G,wt);var qt=(l+(n=n+Math.imul(U,_t)|0)|0)+((8191&(o=(o=o+Math.imul(U,St)|0)+Math.imul(K,_t)|0))<<13)|0;l=((h=h+Math.imul(K,St)|0)+(o>>>13)|0)+(qt>>>26)|0,qt&=67108863;var Kt=(l+(n=Math.imul(H,_t))|0)+((8191&(o=(o=Math.imul(H,St))+Math.imul(G,_t)|0))<<13)|0;return l=((h=Math.imul(G,St))+(o>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,f[0]=Et,f[1]=kt,f[2]=Tt,f[3]=At,f[4]=Rt,f[5]=xt,f[6]=Ot,f[7]=It,f[8]=Lt,f[9]=Dt,f[10]=Ct,f[11]=Pt,f[12]=Bt,f[13]=Nt,f[14]=jt,f[15]=Ft,f[16]=Ut,f[17]=qt,f[18]=Kt,0!==l&&(f[19]=l,r.length++),r};function M(t,e,r){return(new _).mulp(t,e,r)}function _(t,e){this.x=t,this.y=e}Math.imul||(w=y),h.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?w(this,t,e):r<63?y(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,o=0,h=0;h<r.length-1;h++){var f=o;o=0;for(var l=67108863&n,c=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=c;d++){var i=h-d,m=(0|t.words[i])*(0|e.words[d]),v=67108863&m;l=67108863&(v=v+l|0),o+=(f=(f=f+(m/67108864|0)|0)+(v>>>26)|0)>>>26,f&=67108863}r.words[h]=l,n=f,f=o}return 0!==n?r.words[h]=n:r.length--,r.strip()}(this,t,e):M(this,t,e)},_.prototype.makeRBT=function(t){for(var e=new Array(t),r=h.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,r,t);return e},_.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},_.prototype.permute=function(t,e,r,n,o,h){for(var i=0;i<h;i++)n[i]=e[t[i]],o[i]=r[t[i]]},_.prototype.transform=function(t,e,r,n,o,h){this.permute(h,t,e,r,n,o);for(var s=1;s<o;s<<=1)for(var f=s<<1,l=Math.cos(2*Math.PI/f),c=Math.sin(2*Math.PI/f),p=0;p<o;p+=f)for(var d=l,m=c,v=0;v<s;v++){var y=r[p+v],w=n[p+v],M=r[p+v+s],_=n[p+v+s],S=d*M-m*_;_=d*_+m*M,M=S,r[p+v]=y+M,n[p+v]=w+_,r[p+v+s]=y-M,n[p+v+s]=w-_,v!==f&&(S=l*d-c*m,m=l*m+c*d,d=S)}},_.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},_.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var i=0;i<r/2;i++){var n=t[i];t[i]=t[r-i-1],t[r-i-1]=n,n=e[i],e[i]=-e[r-i-1],e[r-i-1]=-n}},_.prototype.normalize13b=function(t,e){for(var r=0,i=0;i<e/2;i++){var n=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+r;t[i]=67108863&n,r=n<67108864?0:n/67108864|0}return t},_.prototype.convert13b=function(t,e,r,o){for(var h=0,i=0;i<e;i++)h+=0|t[i],r[2*i]=8191&h,h>>>=13,r[2*i+1]=8191&h,h>>>=13;for(i=2*e;i<o;++i)r[i]=0;n(0===h),n(0==(-8192&h))},_.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e},_.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(n),h=this.stub(n),f=new Array(n),l=new Array(n),c=new Array(n),d=new Array(n),m=new Array(n),v=new Array(n),y=r.words;y.length=n,this.convert13b(t.words,t.length,f,n),this.convert13b(e.words,e.length,d,n),this.transform(f,h,l,c,n,o),this.transform(d,h,m,v,n,o);for(var i=0;i<n;i++){var w=l[i]*m[i]-c[i]*v[i];c[i]=l[i]*v[i]+c[i]*m[i],l[i]=w}return this.conjugate(l,c,n),this.transform(l,c,y,h,n,o),this.conjugate(y,h,n),this.normalize13b(y,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},h.prototype.mul=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},h.prototype.mulf=function(t){var e=new h(null);return e.words=new Array(this.length+t.length),M(this,t,e)},h.prototype.imul=function(t){return this.clone().mulTo(t,this)},h.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,i=0;i<this.length;i++){var r=(0|this.words[i])*t,o=(67108863&r)+(67108863&e);e>>=26,e+=r/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},h.prototype.muln=function(t){return this.clone().imuln(t)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,o=r%26;e[r]=(t.words[n]&1<<o)>>>o}return e}(t);if(0===e.length)return new h(1);for(var r=this,i=0;i<e.length&&0===e[i];i++,r=r.sqr());if(++i<e.length)for(var q=r.sqr();i<e.length;i++,q=q.sqr())0!==e[i]&&(r=r.mul(q));return r},h.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var i,e=t%26,s=(t-e)/26,r=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var h=this.words[i]&r,f=(0|this.words[i])-h<<e;this.words[i]=f|o,o=h>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i<s;i++)this.words[i]=0;this.length+=s}return this.strip()},h.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},h.prototype.iushrn=function(t,e,r){var o;n("number"==typeof t&&t>=0),o=e?(e-e%26)/26:0;var h=t%26,s=Math.min((t-h)/26,this.length),mask=67108863^67108863>>>h<<h,f=r;if(o-=s,o=Math.max(0,o),f){for(var i=0;i<s;i++)f.words[i]=this.words[i];f.length=s}if(0===s);else if(this.length>s)for(this.length-=s,i=0;i<this.length;i++)this.words[i]=this.words[i+s];else this.words[0]=0,this.length=1;var l=0;for(i=this.length-1;i>=0&&(0!==l||i>=o);i--){var c=0|this.words[i];this.words[i]=l<<26-h|c>>>h,l=c&mask}return f&&0!==l&&(f.words[f.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},h.prototype.shln=function(t){return this.clone().ishln(t)},h.prototype.ushln=function(t){return this.clone().iushln(t)},h.prototype.shrn=function(t){return this.clone().ishrn(t)},h.prototype.ushrn=function(t){return this.clone().iushrn(t)},h.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26,q=1<<e;return!(this.length<=s)&&!!(this.words[s]&q)},h.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==e&&s++,this.length=Math.min(s,this.length),0!==e){var mask=67108863^67108863>>>e<<e;this.words[this.length-1]&=mask}return this.strip()},h.prototype.maskn=function(t){return this.clone().imaskn(t)},h.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)},h.prototype._iaddn=function(t){this.words[0]+=t;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},h.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 i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this.strip()},h.prototype.addn=function(t){return this.clone().iaddn(t)},h.prototype.subn=function(t){return this.clone().isubn(t)},h.prototype.iabs=function(){return this.negative=0,this},h.prototype.abs=function(){return this.clone().iabs()},h.prototype._ishlnsubmul=function(t,e,r){var i,o,h=t.length+r;this._expand(h);var f=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+f;var l=(0|t.words[i])*e;f=((o-=67108863&l)>>26)-(l/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)f=(o=(0|this.words[i+r])+f)>>26,this.words[i+r]=67108863&o;if(0===f)return this.strip();for(n(-1===f),f=0,i=0;i<this.length;i++)f=(o=-(0|this.words[i])+f)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},h.prototype._wordDiv=function(t,e){var r=(this.length,t.length),a=this.clone(),b=t,n=0|b.words[b.length-1];0!==(r=26-this._countBits(n))&&(b=b.ushln(r),a.iushln(r),n=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==e){(q=new h(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i<q.length;i++)q.words[i]=0}var f=a.clone()._ishlnsubmul(b,1,o);0===f.negative&&(a=f,q&&(q.words[o]=1));for(var l=o-1;l>=0;l--){var c=67108864*(0|a.words[b.length+l])+(0|a.words[b.length+l-1]);for(c=Math.min(c/n|0,67108863),a._ishlnsubmul(b,c,l);0!==a.negative;)c--,a.negative=0,a._ishlnsubmul(b,1,l),a.isZero()||(a.negative^=1);q&&(q.words[l]=c)}return q&&q.strip(),a.strip(),"div"!==e&&0!==r&&a.iushrn(r),{div:q||null,mod:a}},h.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new h(0),mod:new h(0)}:0!==this.negative&&0===t.negative?(f=this.neg().divmod(t,e),"mod"!==e&&(div=f.div.neg()),"div"!==e&&(o=f.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:div,mod:o}):0===this.negative&&0!==t.negative?(f=this.divmod(t.neg(),e),"mod"!==e&&(div=f.div.neg()),{div:div,mod:f.mod}):0!=(this.negative&t.negative)?(f=this.neg().divmod(t.neg(),e),"div"!==e&&(o=f.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:f.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new h(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new h(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new h(this.modn(t.words[0]))}:this._wordDiv(t,e);var div,o,f},h.prototype.div=function(t){return this.divmod(t,"div",!1).div},h.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},h.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},h.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),o=t.andln(1),h=r.cmp(n);return h<0||1===o&&0===h?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},h.prototype.modn=function(t){n(t<=67108863);for(var p=(1<<26)%t,e=0,i=this.length-1;i>=0;i--)e=(p*e+(0|this.words[i]))%t;return e},h.prototype.idivn=function(t){n(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},h.prototype.divn=function(t){return this.clone().idivn(t)},h.prototype.egcd=function(p){n(0===p.negative),n(!p.isZero());var t=this,e=p.clone();t=0!==t.negative?t.umod(p):t.clone();for(var r=new h(1),o=new h(0),f=new h(0),l=new h(1),g=0;t.isEven()&&e.isEven();)t.iushrn(1),e.iushrn(1),++g;for(var c=e.clone(),d=t.clone();!t.isZero();){for(var i=0,m=1;0==(t.words[0]&m)&&i<26;++i,m<<=1);if(i>0)for(t.iushrn(i);i-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(c),o.isub(d)),r.iushrn(1),o.iushrn(1);for(var v=0,y=1;0==(e.words[0]&y)&&v<26;++v,y<<=1);if(v>0)for(e.iushrn(v);v-- >0;)(f.isOdd()||l.isOdd())&&(f.iadd(c),l.isub(d)),f.iushrn(1),l.iushrn(1);t.cmp(e)>=0?(t.isub(e),r.isub(f),o.isub(l)):(e.isub(t),f.isub(r),l.isub(o))}return{a:f,b:l,gcd:e.iushln(g)}},h.prototype._invmp=function(p){n(0===p.negative),n(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var t,e=new h(1),r=new h(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,f=1;0==(a.words[0]&f)&&i<26;++i,f<<=1);if(i>0)for(a.iushrn(i);i-- >0;)e.isOdd()&&e.iadd(o),e.iushrn(1);for(var l=0,c=1;0==(b.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(b.iushrn(l);l-- >0;)r.isOdd()&&r.iadd(o),r.iushrn(1);a.cmp(b)>=0?(a.isub(b),e.isub(r)):(b.isub(a),r.isub(e))}return(t=0===a.cmpn(1)?e:r).cmpn(0)<0&&t.iadd(p),t},h.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),b=t.clone();a.negative=0,b.negative=0;for(var e=0;a.isEven()&&b.isEven();e++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var r=a.cmp(b);if(r<0){var n=a;a=b,b=n}else if(0===r||0===b.cmpn(1))break;a.isub(b)}return b.iushln(e)},h.prototype.invm=function(t){return this.egcd(t).a.umod(t)},h.prototype.isEven=function(){return 0==(1&this.words[0])},h.prototype.isOdd=function(){return 1==(1&this.words[0])},h.prototype.andln=function(t){return this.words[0]&t},h.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,s=(t-e)/26,q=1<<e;if(this.length<=s)return this._expand(s+1),this.words[s]|=q,this;for(var r=q,i=s;0!==r&&i<this.length;i++){var o=0|this.words[i];r=(o+=r)>>>26,o&=67108863,this.words[i]=o}return 0!==r&&(this.words[i]=r,this.length++),this},h.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},h.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},h.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},h.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var a=0|this.words[i],b=0|t.words[i];if(a!==b){a<b?e=-1:a>b&&(e=1);break}}return e},h.prototype.gtn=function(t){return 1===this.cmpn(t)},h.prototype.gt=function(t){return 1===this.cmp(t)},h.prototype.gten=function(t){return this.cmpn(t)>=0},h.prototype.gte=function(t){return this.cmp(t)>=0},h.prototype.ltn=function(t){return-1===this.cmpn(t)},h.prototype.lt=function(t){return-1===this.cmp(t)},h.prototype.lten=function(t){return this.cmpn(t)<=0},h.prototype.lte=function(t){return this.cmp(t)<=0},h.prototype.eqn=function(t){return 0===this.cmpn(t)},h.prototype.eq=function(t){return 0===this.cmp(t)},h.red=function(t){return new x(t)},h.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)},h.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(t){return this.red=t,this},h.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},h.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},h.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},h.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},h.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},h.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},h.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},h.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},h.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var S={k256:null,p224:null,p192:null,p25519:null};function E(t,p){this.name=t,this.p=new h(p,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function k(){E.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function T(){E.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){E.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function R(){E.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"==typeof t){var e=h._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function O(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new h(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)}E.prototype._tmp=function(){var t=new h(null);return t.words=new Array(Math.ceil(this.n/13)),t},E.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},E.prototype.split=function(input,t){input.iushrn(this.n,0,t)},E.prototype.imulK=function(t){return t.imul(this.k)},o(k,E),k.prototype.split=function(input,output){for(var t=Math.min(input.length,9),i=0;i<t;i++)output.words[i]=input.words[i];if(output.length=t,input.length<=9)return input.words[0]=0,void(input.length=1);var e=input.words[9];for(output.words[output.length++]=4194303&e,i=10;i<input.length;i++){var r=0|input.words[i];input.words[i-10]=(4194303&r)<<4|e>>>22,e=r}e>>>=22,input.words[i-10]=e,0===e&&input.length>10?input.length-=10:input.length-=9},k.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(T,E),o(A,E),o(R,E),R.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=19*(0|t.words[i])+e,n=67108863&r;r>>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},h._prime=function(t){if(S[t])return S[t];var e;if("k256"===t)e=new k;else if("p224"===t)e=new T;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new R}return S[t]=e,e},x.prototype._verify1=function(a){n(0===a.negative,"red works only with positives"),n(a.red,"red works only with red numbers")},x.prototype._verify2=function(a,b){n(0==(a.negative|b.negative),"red works only with positives"),n(a.red&&a.red===b.red,"red works only with red numbers")},x.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)},x.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},x.prototype.add=function(a,b){this._verify2(a,b);var t=a.add(b);return t.cmp(this.m)>=0&&t.isub(this.m),t._forceRed(this)},x.prototype.iadd=function(a,b){this._verify2(a,b);var t=a.iadd(b);return t.cmp(this.m)>=0&&t.isub(this.m),t},x.prototype.sub=function(a,b){this._verify2(a,b);var t=a.sub(b);return t.cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},x.prototype.isub=function(a,b){this._verify2(a,b);var t=a.isub(b);return t.cmpn(0)<0&&t.iadd(this.m),t},x.prototype.shl=function(a,t){return this._verify1(a),this.imod(a.ushln(t))},x.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b))},x.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b))},x.prototype.isqr=function(a){return this.imul(a,a.clone())},x.prototype.sqr=function(a){return this.mul(a,a)},x.prototype.sqrt=function(a){if(a.isZero())return a.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var e=this.m.add(new h(1)).iushrn(2);return this.pow(a,e)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);n(!q.isZero());var r=new h(1).toRed(this),o=r.redNeg(),f=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new h(2*l*l).toRed(this);0!==this.pow(l,f).cmp(o);)l.redIAdd(o);for(var c=this.pow(l,q),d=this.pow(a,q.addn(1).iushrn(1)),m=this.pow(a,q),v=s;0!==m.cmp(r);){for(var y=m,i=0;0!==y.cmp(r);i++)y=y.redSqr();n(i<v);var b=this.pow(c,new h(1).iushln(v-i-1));d=d.redMul(b),c=b.redSqr(),m=m.redMul(c),v=i}return d},x.prototype.invm=function(a){var t=a._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},x.prototype.pow=function(a,t){if(t.isZero())return new h(1).toRed(this);if(0===t.cmpn(1))return a.clone();var e=new Array(16);e[0]=new h(1).toRed(this),e[1]=a;for(var i=2;i<e.length;i++)e[i]=this.mul(e[i-1],a);var r=e[0],n=0,o=0,f=t.bitLength()%26;for(0===f&&(f=26),i=t.length-1;i>=0;i--){for(var l=t.words[i],c=f-1;c>=0;c--){var d=l>>c&1;r!==e[0]&&(r=this.sqr(r)),0!==d||0!==n?(n<<=1,n|=d,(4===++o||0===i&&0===c)&&(r=this.mul(r,e[n]),o=0,n=0)):o=0}f=26}return r},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},h.mont=function(t){return new O(t)},o(O,x),O.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},O.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},O.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var t=a.imul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},O.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new h(0)._forceRed(this);var t=a.mul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},O.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(79)(t))},,function(t,e,r){e.publicEncrypt=r(592),e.privateDecrypt=r(594),e.privateEncrypt=function(t,r){return e.publicEncrypt(t,r,!0)},e.publicDecrypt=function(t,r){return e.privateDecrypt(t,r,!0)}},function(t,e,r){var n=r(137),o=r(86),h=r(110),f=r(322),l=r(323),c=r(190),d=r(324),m=r(181),v=r(13).Buffer;t.exports=function(t,e,r){var y;y=t.padding?t.padding:r?1:4;var w,M=n(t);if(4===y)w=function(t,e){var r=t.modulus.byteLength(),n=e.length,d=h("sha1").update(v.alloc(0)).digest(),m=d.length,y=2*m;if(n>r-y-2)throw new Error("message too long");var w=v.alloc(r-n-y-2),M=r-m-1,_=o(m),S=l(v.concat([d,w,v.alloc(1,1),e],M),f(_,M)),E=l(_,f(S,m));return new c(v.concat([v.alloc(1),E,S],r))}(M,e);else if(1===y)w=function(t,e,r){var n,h=e.length,f=t.modulus.byteLength();if(h>f-11)throw new Error("message too long");n=r?v.alloc(f-h-3,255):function(t){var e,r=v.allocUnsafe(t),i=0,n=o(2*t),h=0;for(;i<t;)h===n.length&&(n=o(2*t),h=0),(e=n[h++])&&(r[i++]=e);return r}(f-h-3);return new c(v.concat([v.from([0,r?1:2]),n,v.alloc(1),e],f))}(M,e,r);else{if(3!==y)throw new Error("unknown padding");if((w=new c(e)).cmp(M.modulus)>=0)throw new Error("data too long for modulus")}return r?m(w,M):d(w,M)}},,function(t,e,r){var n=r(137),o=r(322),h=r(323),f=r(190),l=r(181),c=r(110),d=r(324),m=r(13).Buffer;t.exports=function(t,e,r){var v;v=t.padding?t.padding:r?1:4;var y,w=n(t),M=w.modulus.byteLength();if(e.length>M||new f(e).cmp(w.modulus)>=0)throw new Error("decryption error");y=r?d(new f(e),w):l(e,w);var _=m.alloc(M-y.length);if(y=m.concat([_,y],M),4===v)return function(t,e){var r=t.modulus.byteLength(),n=c("sha1").update(m.alloc(0)).digest(),f=n.length;if(0!==e[0])throw new Error("decryption error");var l=e.slice(1,f+1),d=e.slice(f+1),v=h(l,o(d,f)),y=h(d,o(v,r-f-1));if(function(a,b){a=m.from(a),b=m.from(b);var t=0,e=a.length;a.length!==b.length&&(t++,e=Math.min(a.length,b.length));var i=-1;for(;++i<e;)t+=a[i]^b[i];return t}(n,y.slice(0,f)))throw new Error("decryption error");var i=f;for(;0===y[i];)i++;if(1!==y[i++])throw new Error("decryption error");return y.slice(i)}(w,y);if(1===v)return function(t,e,r){var n=e.slice(0,2),i=2,o=0;for(;0!==e[i++];)if(i>=e.length){o++;break}var h=e.slice(2,i-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++;h.length<8&&o++;if(o)throw new Error("decryption error");return e.slice(i)}(0,y,r);if(3===v)return y;throw new Error("unknown padding")}},function(t,e,r){"use strict";(function(t,n){function o(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var h=r(13),f=(r(86),h.Buffer),l=h.kMaxLength,c=t.crypto||t.msCrypto,d=Math.pow(2,32)-1;function m(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(t>d||t<0)throw new TypeError("offset must be a uint32");if(t>l||t>e)throw new RangeError("offset out of range")}function v(t,e,r){if("number"!=typeof t||t!=t)throw new TypeError("size must be a number");if(t>d||t<0)throw new TypeError("size must be a uint32");if(t+e>r||t>l)throw new RangeError("buffer too small")}function y(t,e,r,o){var h=t.buffer,f=new Uint8Array(h,e,r);return c.getRandomValues(f),o?void n.nextTick((function(){o(null,t)})):t}c&&c.getRandomValues?(e.randomFill=function(e,r,n,o){if(!(f.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)o=r,r=0,n=e.length;else if("function"==typeof n)o=n,n=e.length-r;else if("function"!=typeof o)throw new TypeError('"cb" argument must be a function');return m(r,e.length),v(n,r,e.length),y(e,r,n,o)},e.randomFillSync=function(e,r,n){void 0===r&&(r=0);if(!(f.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');m(r,e.length),void 0===n&&(n=e.length-r);return v(n,r,e.length),y(e,r,n)}):(e.randomFill=o,e.randomFillSync=o)}).call(this,r(35),r(38))},function(t,e,r){"use strict";var n=r(13).Buffer,o=r(597);function h(t){if(n.isBuffer(t))return t;if("string"==typeof t)return n.from(t,"base64");throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}function f(t,e,r){for(var n=0;e+n<r&&0===t[e+n];)++n;return t[e+n]>=128&&--n,n}
2t.exports={derToJose:function(t,e){t=h(t);var r=o(e),f=r+1,l=t.length,c=0;if(48!==t[c++])throw new Error('Could not find expected "seq"');var d=t[c++];if(129===d&&(d=t[c++]),l-c<d)throw new Error('"seq" specified length of "'+d+'", only "'+(l-c)+'" remaining');if(2!==t[c++])throw new Error('Could not find expected "int" for "r"');var m=t[c++];if(l-c-2<m)throw new Error('"r" specified length of "'+m+'", only "'+(l-c-2)+'" available');if(f<m)throw new Error('"r" specified length of "'+m+'", max of "'+f+'" is acceptable');var v=c;if(c+=m,2!==t[c++])throw new Error('Could not find expected "int" for "s"');var y=t[c++];if(l-c!==y)throw new Error('"s" specified length of "'+y+'", expected "'+(l-c)+'"');if(f<y)throw new Error('"s" specified length of "'+y+'", max of "'+f+'" is acceptable');var w=c;if((c+=y)!==l)throw new Error('Expected to consume entire buffer, but "'+(l-c)+'" bytes remain');var M=r-m,_=r-y,S=n.allocUnsafe(M+m+_+y);for(c=0;c<M;++c)S[c]=0;t.copy(S,c,v+Math.max(-M,0),v+m);for(var E=c=r;c<E+_;++c)S[c]=0;return t.copy(S,c,w+Math.max(-_,0),w+y),S=(S=S.toString("base64")).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},joseToDer:function(t,e){t=h(t);var r=o(e),l=t.length;if(l!==2*r)throw new TypeError('"'+e+'" signatures must be "'+2*r+'" bytes, saw "'+l+'"');var c=f(t,0,r),d=f(t,r,t.length),m=r-c,v=r-d,y=2+m+1+1+v,w=y<128,M=n.allocUnsafe((w?2:3)+y),_=0;return M[_++]=48,w?M[_++]=y:(M[_++]=129,M[_++]=255&y),M[_++]=2,M[_++]=m,c<0?(M[_++]=0,_+=t.copy(M,_,0,r)):_+=t.copy(M,_,c,r),M[_++]=2,M[_++]=v,d<0?(M[_++]=0,t.copy(M,_,r)):t.copy(M,_,r+d),M}}},function(t,e,r){"use strict";function n(t){return(t/8|0)+(t%8==0?0:1)}var o={ES256:n(256),ES384:n(384),ES512:n(521)};t.exports=function(t){var e=o[t];if(e)return e;throw new Error('Unknown algorithm "'+t+'"')}},function(t,e,r){var n=r(13).Buffer,o=r(275),h=r(281),f=r(131),l=r(325),c=r(133),d=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function m(t){if(function(t){return"[object Object]"===Object.prototype.toString.call(t)}(t))return t;try{return JSON.parse(t)}catch(t){return}}function v(t){var e=t.split(".",1)[0];return m(n.from(e,"base64").toString("binary"))}function y(t){return t.split(".")[2]}function w(t){return d.test(t)&&!!v(t)}function M(t,e,r){if(!e){var n=new Error("Missing algorithm parameter for jws.verify");throw n.code="MISSING_ALGORITHM",n}var o=y(t=l(t)),f=function(t){return t.split(".",2).join(".")}(t);return h(e).verify(f,o,r)}function _(t,e){if(e=e||{},!w(t=l(t)))return null;var header=v(t);if(!header)return null;var r=function(t,e){e=e||"utf8";var r=t.split(".")[1];return n.from(r,"base64").toString(e)}(t);return("JWT"===header.typ||e.json)&&(r=JSON.parse(r,e.encoding)),{header:header,payload:r,signature:y(t)}}function S(t){var e=(t=t||{}).secret||t.publicKey||t.key,r=new o(e);this.readable=!0,this.algorithm=t.algorithm,this.encoding=t.encoding,this.secret=this.publicKey=this.key=r,this.signature=new o(t.signature),this.secret.once("close",function(){!this.signature.writable&&this.readable&&this.verify()}.bind(this)),this.signature.once("close",function(){!this.secret.writable&&this.readable&&this.verify()}.bind(this))}c.inherits(S,f),S.prototype.verify=function(){try{var t=M(this.signature.buffer,this.algorithm,this.key.buffer),e=_(this.signature.buffer,this.encoding);return this.emit("done",t,e),this.emit("data",t),this.emit("end"),this.readable=!1,t}catch(t){this.readable=!1,this.emit("error",t),this.emit("close")}},S.decode=_,S.isValid=w,S.verify=M,t.exports=S},function(t,e,r){var n=r(138),o=r(326),h=r(327),f=r(273),l=r(328),c=r(329),d=r(169),m=["RS256","RS384","RS512","ES256","ES384","ES512"],v=["RS256","RS384","RS512"],y=["HS256","HS384","HS512"];c&&(m.splice(3,0,"PS256","PS384","PS512"),v.splice(3,0,"PS256","PS384","PS512")),t.exports=function(t,e,r,c){var w;if("function"!=typeof r||c||(c=r,r={}),r||(r={}),r=Object.assign({},r),w=c||function(t,data){if(t)throw t;return data},r.clockTimestamp&&"number"!=typeof r.clockTimestamp)return w(new n("clockTimestamp must be a number"));if(void 0!==r.nonce&&("string"!=typeof r.nonce||""===r.nonce.trim()))return w(new n("nonce must be a non-empty string"));var M=r.clockTimestamp||Math.floor(Date.now()/1e3);if(!t)return w(new n("jwt must be provided"));if("string"!=typeof t)return w(new n("jwt must be a string"));var _,S=t.split(".");if(3!==S.length)return w(new n("jwt malformed"));try{_=f(t,{complete:!0})}catch(t){return w(t)}if(!_)return w(new n("invalid token"));var E,header=_.header;if("function"==typeof e){if(!c)return w(new n("verify must be called asynchronous if secret or public key is provided as a callback"));E=e}else E=function(header,t){return t(null,e)};return E(header,(function(e,f){if(e)return w(new n("error in secret or public key callback: "+e.message));var c,E=""!==S[2].trim();if(!E&&f)return w(new n("jwt signature is required"));if(E&&!f)return w(new n("secret or public key must be provided"));if(E||r.algorithms||(r.algorithms=["none"]),r.algorithms||(r.algorithms=~f.toString().indexOf("BEGIN CERTIFICATE")||~f.toString().indexOf("BEGIN PUBLIC KEY")?m:~f.toString().indexOf("BEGIN RSA PUBLIC KEY")?v:y),!~r.algorithms.indexOf(_.header.alg))return w(new n("invalid algorithm"));try{c=d.verify(t,_.header.alg,f)}catch(t){return w(t)}if(!c)return w(new n("invalid signature"));var k=_.payload;if(void 0!==k.nbf&&!r.ignoreNotBefore){if("number"!=typeof k.nbf)return w(new n("invalid nbf value"));if(k.nbf>M+(r.clockTolerance||0))return w(new o("jwt not active",new Date(1e3*k.nbf)))}if(void 0!==k.exp&&!r.ignoreExpiration){if("number"!=typeof k.exp)return w(new n("invalid exp value"));if(M>=k.exp+(r.clockTolerance||0))return w(new h("jwt expired",new Date(1e3*k.exp)))}
2if(r.audience){var T=Array.isArray(r.audience)?r.audience:[r.audience];if(!(Array.isArray(k.aud)?k.aud:[k.aud]).some((function(t){return T.some((function(e){return e instanceof RegExp?e.test(t):e===t}))})))return w(new n("jwt audience invalid. expected: "+T.join(" or ")))}if(r.issuer&&("string"==typeof r.issuer&&k.iss!==r.issuer||Array.isArray(r.issuer)&&-1===r.issuer.indexOf(k.iss)))return w(new n("jwt issuer invalid. expected: "+r.issuer));if(r.subject&&k.sub!==r.subject)return w(new n("jwt subject invalid. expected: "+r.subject));if(r.jwtid&&k.jti!==r.jwtid)return w(new n("jwt jwtid invalid. expected: "+r.jwtid));if(r.nonce&&k.nonce!==r.nonce)return w(new n("jwt nonce invalid. expected: "+r.nonce));if(r.maxAge){if("number"!=typeof k.iat)return w(new n("iat required when maxAge is specified"));var A=l(r.maxAge,k.iat);if(void 0===A)return w(new n('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));if(M>=A+(r.clockTolerance||0))return w(new h("maxAge exceeded",new Date(1e3*A)))}if(!0===r.complete){var R=_.signature;return w(null,{header:header,payload:k,signature:R})}return w(null,k)}))}},function(t,e){var s=1e3,r=6e4,n=60*r,o=24*n;function h(t,e,r,n){var o=e>=1.5*r;return Math.round(t/r)+" "+n+(o?"s":"")}t.exports=function(t,e){e=e||{};var f=typeof t;if("string"===f&&t.length>0)return function(t){if((t=String(t)).length>100)return;var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!e)return;var h=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*h;case"weeks":case"week":case"w":return 6048e5*h;case"days":case"day":case"d":return h*o;case"hours":case"hour":case"hrs":case"hr":case"h":return h*n;case"minutes":case"minute":case"mins":case"min":case"m":return h*r;case"seconds":case"second":case"secs":case"sec":case"s":return h*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}(t);if("number"===f&&isFinite(t))return e.long?function(t){var e=Math.abs(t);if(e>=o)return h(t,e,o,"day");if(e>=n)return h(t,e,n,"hour");if(e>=r)return h(t,e,r,"minute");if(e>=s)return h(t,e,s,"second");return t+" ms"}(t):function(t){var e=Math.abs(t);if(e>=o)return Math.round(t/o)+"d";if(e>=n)return Math.round(t/n)+"h";if(e>=r)return Math.round(t/r)+"m";if(e>=s)return Math.round(t/s)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,r){(function(r){var n;e=t.exports=tt,n="object"==typeof r&&r.env&&r.env.NODE_DEBUG&&/\bsemver\b/i.test(r.env.NODE_DEBUG)?function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)}:function(){},e.SEMVER_SPEC_VERSION="2.0.0";var o=Number.MAX_SAFE_INTEGER||9007199254740991,h=e.re=[],f=e.src=[],l=0,c=l++;f[c]="0|[1-9]\\d*";var d=l++;f[d]="[0-9]+";var m=l++;f[m]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var v=l++;f[v]="("+f[c]+")\\.("+f[c]+")\\.("+f[c]+")";var y=l++;f[y]="("+f[d]+")\\.("+f[d]+")\\.("+f[d]+")";var w=l++;f[w]="(?:"+f[c]+"|"+f[m]+")";var M=l++;f[M]="(?:"+f[d]+"|"+f[m]+")";var _=l++;f[_]="(?:-("+f[w]+"(?:\\."+f[w]+")*))";var S=l++;f[S]="(?:-?("+f[M]+"(?:\\."+f[M]+")*))";var E=l++;f[E]="[0-9A-Za-z-]+";var k=l++;f[k]="(?:\\+("+f[E]+"(?:\\."+f[E]+")*))";var T=l++,A="v?"+f[v]+f[_]+"?"+f[k]+"?";f[T]="^"+A+"$";var R="[v=\\s]*"+f[y]+f[S]+"?"+f[k]+"?",x=l++;f[x]="^"+R+"$";var O=l++;f[O]="((?:<|>)?=?)";var I=l++;f[I]=f[d]+"|x|X|\\*";var L=l++;f[L]=f[c]+"|x|X|\\*";var D=l++;f[D]="[v=\\s]*("+f[L]+")(?:\\.("+f[L]+")(?:\\.("+f[L]+")(?:"+f[_]+")?"+f[k]+"?)?)?";var C=l++;f[C]="[v=\\s]*("+f[I]+")(?:\\.("+f[I]+")(?:\\.("+f[I]+")(?:"+f[S]+")?"+f[k]+"?)?)?";var P=l++;f[P]="^"+f[O]+"\\s*"+f[D]+"$";var B=l++;f[B]="^"+f[O]+"\\s*"+f[C]+"$";var N=l++;f[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var j=l++;f[j]="(?:~>?)";var F=l++;f[F]="(\\s*)"+f[j]+"\\s+",h[F]=new RegExp(f[F],"g");var U=l++;f[U]="^"+f[j]+f[D]+"$";var K=l++;f[K]="^"+f[j]+f[C]+"$";var z=l++;f[z]="(?:\\^)";var H=l++;f[H]="(\\s*)"+f[z]+"\\s+",h[H]=new RegExp(f[H],"g");var G=l++;f[G]="^"+f[z]+f[D]+"$";var V=l++;f[V]="^"+f[z]+f[C]+"$";var W=l++;f[W]="^"+f[O]+"\\s*("+R+")$|^$";var Y=l++;f[Y]="^"+f[O]+"\\s*("+A+")$|^$";var Z=l++;f[Z]="(\\s*)"+f[O]+"\\s*("+R+"|"+f[D]+")",h[Z]=new RegExp(f[Z],"g");var X=l++;f[X]="^\\s*("+f[D]+")\\s+-\\s+("+f[D]+")\\s*$";var $=l++;f[$]="^\\s*("+f[C]+")\\s+-\\s+("+f[C]+")\\s*$";var J=l++;f[J]="(<|>)?=?\\s*\\*";
vendor: 13,750 bytes, line 2
2for(var i=0;i<35;i++)n(i,f[i]),h[i]||(h[i]=new RegExp(f[i]));function Q(t,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),t instanceof tt)return t;if("string"!=typeof t)return null;if(t.length>256)return null;if(!(e.loose?h[x]:h[T]).test(t))return null;try{return new tt(t,e)}catch(t){return null}}function tt(t,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),t instanceof tt){if(t.loose===e.loose)return t;t=t.version}else if("string"!=typeof t)throw new TypeError("Invalid Version: "+t);if(t.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof tt))return new tt(t,e);n("SemVer",t,e),this.options=e,this.loose=!!e.loose;var r=t.trim().match(e.loose?h[x]:h[T]);if(!r)throw new TypeError("Invalid Version: "+t);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((function(t){if(/^[0-9]+$/.test(t)){var e=+t;if(e>=0&&e<o)return e}return t})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}e.parse=Q,e.valid=function(t,e){var r=Q(t,e);return r?r.version:null},e.clean=function(t,e){var s=Q(t.trim().replace(/^[=v]+/,""),e);return s?s.version:null},e.SemVer=tt,tt.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},tt.prototype.toString=function(){return this.version},tt.prototype.compare=function(t){return n("SemVer.compare",this.version,this.options,t),t instanceof tt||(t=new tt(t,this.options)),this.compareMain(t)||this.comparePre(t)},tt.prototype.compareMain=function(t){return t instanceof tt||(t=new tt(t,this.options)),it(this.major,t.major)||it(this.minor,t.minor)||it(this.patch,t.patch)},tt.prototype.comparePre=function(t){if(t instanceof tt||(t=new tt(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;var i=0;do{var a=this.prerelease[i],b=t.prerelease[i];if(n("prerelease compare",i,a,b),void 0===a&&void 0===b)return 0;if(void 0===b)return 1;if(void 0===a)return-1;if(a!==b)return it(a,b)}while(++i)},tt.prototype.inc=function(t,e){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e),this.inc("pre",e);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e),this.inc("pre",e);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var i=this.prerelease.length;--i>=0;)"number"==typeof this.prerelease[i]&&(this.prerelease[i]++,i=-2);-1===i&&this.prerelease.push(0)}e&&(this.prerelease[0]===e?isNaN(this.prerelease[1])&&(this.prerelease=[e,0]):this.prerelease=[e,0]);break;default:throw new Error("invalid increment argument: "+t)}return this.format(),this.raw=this.version,this},e.inc=function(t,e,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new tt(t,r).inc(e,n).version}catch(t){return null}},e.diff=function(t,e){if(st(t,e))return null;var r=Q(t),n=Q(e),o="";if(r.prerelease.length||n.prerelease.length){o="pre";var h="prerelease"}for(var f in r)if(("major"===f||"minor"===f||"patch"===f)&&r[f]!==n[f])return o+f;return h},e.compareIdentifiers=it;var et=/^[0-9]+$/;function it(a,b){var t=et.test(a),e=et.test(b);return t&&e&&(a=+a,b=+b),a===b?0:t&&!e?-1:e&&!t?1:a<b?-1:1}function nt(a,b,t){return new tt(a,t).compare(new tt(b,t))}function ot(a,b,t){return nt(a,b,t)>0}function at(a,b,t){return nt(a,b,t)<0}function st(a,b,t){return 0===nt(a,b,t)}function ut(a,b,t){return 0!==nt(a,b,t)}function ht(a,b,t){return nt(a,b,t)>=0}function ft(a,b,t){return nt(a,b,t)<=0}function lt(a,t,b,e){switch(t){case"===":return"object"==typeof a&&(a=a.version),"object"==typeof b&&(b=b.version),a===b;case"!==":return"object"==typeof a&&(a=a.version),"object"==typeof b&&(b=b.version),a!==b;case"":case"=":case"==":return st(a,b,e);case"!=":return ut(a,b,e);case">":return ot(a,b,e);case">=":return ht(a,b,e);case"<":return at(a,b,e);case"<=":return ft(a,b,e);default:throw new TypeError("Invalid operator: "+t)}}function ct(t,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),t instanceof ct){if(t.loose===!!e.loose)return t;t=t.value}if(!(this instanceof ct))return new ct(t,e);n("comparator",t,e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===pt?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}e.rcompareIdentifiers=function(a,b){return it(b,a)},e.major=function(a,t){return new tt(a,t).major},e.minor=function(a,t){return new tt(a,t).minor},e.patch=function(a,t){return new tt(a,t).patch},e.compare=nt,e.compareLoose=function(a,b){return nt(a,b,!0)},e.rcompare=function(a,b,t){return nt(b,a,t)},e.sort=function(t,r){return t.sort((function(a,b){return e.compare(a,b,r)}))},e.rsort=function(t,r){return t.sort((function(a,b){return e.rcompare(a,b,r)}))},e.gt=ot,e.lt=at,e.eq=st,e.neq=ut,e.gte=ht,e.lte=ft,e.cmp=lt,e.Comparator=ct;var pt={};function mt(t,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),t instanceof mt)return t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease?t:new mt(t.raw,e);if(t instanceof ct)return new mt(t.value,e);if(!(this instanceof mt))return new mt(t,e);if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=t,this.set=t.split(/\s*\|\|\s*/).map((function(t){return this.parseRange(t.trim())}),this).filter((function(t){return t.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+t);this.format()}function gt(t){return!t||"x"===t.toLowerCase()||"*"===t}function vt(t,e,r,n,o,h,f,l,c,d,m,v,y){return((e=gt(r)?"":gt(n)?">="+r+".0.0":gt(o)?">="+r+"."+n+".0":">="+e)+" "+(l=gt(c)?"":gt(d)?"<"+(+c+1)+".0.0":gt(m)?"<"+c+"."+(+d+1)+".0":v?"<="+c+"."+d+"."+m+"-"+v:"<="+l)).trim()}function yt(t,e,r){for(var i=0;i<t.length;i++)if(!t[i].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(i=0;i<t.length;i++)if(n(t[i].semver),t[i].semver!==pt&&t[i].semver.prerelease.length>0){var o=t[i].semver;if(o.major===e.major&&o.minor===e.minor&&o.patch===e.patch)return!0}return!1}return!0}function bt(t,e,r){try{e=new mt(e,r)}catch(t){return!1}return e.test(t)}function wt(t,e,r,n){var o,h,f,l,c;switch(t=new tt(t,n),e=new mt(e,n),r){case">":o=ot,h=ft,f=at,l=">",c=">=";break;case"<":o=at,h=ht,f=ot,l="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(bt(t,e,n))return!1;for(var i=0;i<e.set.length;++i){var d=e.set[i],m=null,v=null;if(d.forEach((function(t){t.semver===pt&&(t=new ct(">=0.0.0")),m=m||t,v=v||t,o(t.semver,m.semver,n)?m=t:f(t.semver,v.semver,n)&&(v=t)})),m.operator===l||m.operator===c)return!1;if((!v.operator||v.operator===l)&&h(t,v.semver))return!1;if(v.operator===c&&f(t,v.semver))return!1}return!0}ct.prototype.parse=function(t){var e=this.options.loose?h[W]:h[Y],r=t.match(e);if(!r)throw new TypeError("Invalid comparator: "+t);this.operator=r[1],"="===this.operator&&(this.operator=""),r[2]?this.semver=new tt(r[2],this.options.loose):this.semver=pt},ct.prototype.toString=function(){return this.value},ct.prototype.test=function(t){return n("Comparator.test",t,this.options.loose),this.semver===pt||("string"==typeof t&&(t=new tt(t,this.options)),lt(t,this.operator,this.semver,this.options))},ct.prototype.intersects=function(t,e){if(!(t instanceof ct))throw new TypeError("a Comparator is required");var r;if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),""===this.operator)return r=new mt(t.value,e),bt(this.value,r,e);if(""===t.operator)return r=new mt(this.value,e),bt(t.semver,r,e);var n=!(">="!==this.operator&&">"!==this.operator||">="!==t.operator&&">"!==t.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==t.operator&&"<"!==t.operator),h=this.semver.version===t.semver.version,f=!(">="!==this.operator&&"<="!==this.operator||">="!==t.operator&&"<="!==t.operator),l=lt(this.semver,"<",t.semver,e)&&(">="===this.operator||">"===this.operator)&&("<="===t.operator||"<"===t.operator),c=lt(this.semver,">",t.semver,e)&&("<="===this.operator||"<"===this.operator)&&(">="===t.operator||">"===t.operator);return n||o||h&&f||l||c},e.Range=mt,mt.prototype.format=function(){return this.range=this.set.map((function(t){return t.join(" ").trim()})).join("||").trim(),this.range},mt.prototype.toString=function(){return this.range},mt.prototype.parseRange=function(t){var e=this.options.loose;t=t.trim();var hr=e?h[$]:h[X];t=t.replace(hr,vt),n("hyphen replace",t),t=t.replace(h[Z],"$1$2$3"),n("comparator trim",t,h[Z]),t=(t=(t=t.replace(h[F],"$1~")).replace(h[H],"$1^")).split(/\s+/).join(" ");var r=e?h[W]:h[Y],o=t.split(" ").map((function(t){return function(t,e){return n("comp",t,e),t=function(t,e){return t.trim().split(/\s+/).map((function(t){return function(t,e){n("caret",t,e);var r=e.loose?h[V]:h[G];return t.replace(r,(function(e,r,o,p,h){var f;return n("caret",t,e,r,o,p,h),gt(r)?f="":gt(o)?f=">="+r+".0.0 <"+(+r+1)+".0.0":gt(p)?f="0"===r?">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":">="+r+"."+o+".0 <"+(+r+1)+".0.0":h?(n("replaceCaret pr",h),f="0"===r?"0"===o?">="+r+"."+o+"."+p+"-"+h+" <"+r+"."+o+"."+(+p+1):">="+r+"."+o+"."+p+"-"+h+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+p+"-"+h+" <"+(+r+1)+".0.0"):(n("no pr"),f="0"===r?"0"===o?">="+r+"."+o+"."+p+" <"+r+"."+o+"."+(+p+1):">="+r+"."+o+"."+p+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+p+" <"+(+r+1)+".0.0"),n("caret return",f),f}))}(t,e)})).join(" ")}(t,e),n("caret",t),t=function(t,e){return t.trim().split(/\s+/).map((function(t){return function(t,e){var r=e.loose?h[K]:h[U];return t.replace(r,(function(e,r,o,p,h){var f;return n("tilde",t,e,r,o,p,h),gt(r)?f="":gt(o)?f=">="+r+".0.0 <"+(+r+1)+".0.0":gt(p)?f=">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":h?(n("replaceTilde pr",h),f=">="+r+"."+o+"."+p+"-"+h+" <"+r+"."+(+o+1)+".0"):f=">="+r+"."+o+"."+p+" <"+r+"."+(+o+1)+".0",n("tilde return",f),f}))}(t,e)})).join(" ")}(t,e),n("tildes",t),t=function(t,e){return n("replaceXRanges",t,e),t.split(/\s+/).map((function(t){return function(t,e){t=t.trim();var r=e.loose?h[B]:h[P];return t.replace(r,(function(e,r,o,h,p,f){n("xRange",t,e,r,o,h,p,f);var l=gt(o),c=l||gt(h),d=c||gt(p);return"="===r&&d&&(r=""),l?e=">"===r||"<"===r?"<0.0.0":"*":r&&d?(c&&(h=0),p=0,">"===r?(r=">=",c?(o=+o+1,h=0,p=0):(h=+h+1,p=0)):"<="===r&&(r="<",c?o=+o+1:h=+h+1),e=r+o+"."+h+"."+p):c?e=">="+o+".0.0 <"+(+o+1)+".0.0":d&&(e=">="+o+"."+h+".0 <"+o+"."+(+h+1)+".0"),n("xRange return",e),e}))}(t,e)})).join(" ")}(t,e),n("xrange",t),t=function(t,e){return n("replaceStars",t,e),t.trim().replace(h[J],"")}(t,e),n("stars",t),t}(t,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(o=o.filter((function(t){return!!t.match(r)}))),o=o.map((function(t){return new ct(t,this.options)}),this)},mt.prototype.intersects=function(t,e){if(!(t instanceof mt))throw new TypeError("a Range is required");return this.set.some((function(r){return r.every((function(r){return t.set.some((function(t){return t.every((function(t){return r.intersects(t,e)}))}))}))}))},e.toComparators=function(t,e){return new mt(t,e).set.map((function(t){return t.map((function(t){return t.value})).join(" ").trim().split(" ")}))},mt.prototype.test=function(t){if(!t)return!1;"string"==typeof t&&(t=new tt(t,this.options));for(var i=0;i<this.set.length;i++)if(yt(this.set[i],t,this.options))return!0;return!1},e.satisfies=bt,e.maxSatisfying=function(t,e,r){var n=null,o=null;try{var h=new mt(e,r)}catch(t){return null}return t.forEach((function(t){h.test(t)&&(n&&-1!==o.compare(t)||(o=new tt(n=t,r)))})),n},e.minSatisfying=function(t,e,r){var n=null,o=null;try{var h=new mt(e,r)}catch(t){return null}return t.forEach((function(t){h.test(t)&&(n&&1!==o.compare(t)||(o=new tt(n=t,r)))})),n},e.minVersion=function(t,e){t=new mt(t,e);var r=new tt("0.0.0");if(t.test(r))return r;if(r=new tt("0.0.0-0"),t.test(r))return r;r=null;for(var i=0;i<t.set.length;++i){t.set[i].forEach((function(t){var e=new tt(t.semver.version);switch(t.operator){case">":0===e.prerelease.length?e.patch++:e.prerelease.push(0),e.raw=e.format();case"":case">=":r&&!ot(r,e)||(r=e);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+t.operator)}}))}if(r&&t.test(r))return r;return null},e.validRange=function(t,e){try{return new mt(t,e).range||"*"}catch(t){return null}},e.ltr=function(t,e,r){return wt(t,e,"<",r)},e.gtr=function(t,e,r){return wt(t,e,">",r)},e.outside=wt,e.prerelease=function(t,e){var r=Q(t,e);return r&&r.prerelease.length?r.prerelease:null},e.intersects=function(t,e,r){return t=new mt(t,r),e=new mt(e,r),t.intersects(e)},e.coerce=function(t){if(t instanceof tt)return t;if("string"!=typeof t)return null;var e=t.match(h[N]);if(null==e)return null;return Q(e[1]+"."+(e[2]||"0")+"."+(e[3]||"0"))}}).call(this,r(38))},function(t,e,r){(function(e){var n=r(328),o=r(329),h=r(169),f=r(603),l=r(604),c=r(605),d=r(606),m=r(607),v=r(608),y=r(609),w=["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512","none"];o&&w.splice(3,0,"PS256","PS384","PS512");
2var M={expiresIn:{isValid:function(t){return c(t)||v(t)&&t},message:'"expiresIn" should be a number of seconds or string representing a timespan'},notBefore:{isValid:function(t){return c(t)||v(t)&&t},message:'"notBefore" should be a number of seconds or string representing a timespan'},audience:{isValid:function(t){return v(t)||Array.isArray(t)},message:'"audience" must be a string or array'},algorithm:{isValid:f.bind(null,w),message:'"algorithm" must be a valid string enum value'},header:{isValid:m,message:'"header" must be an object'},encoding:{isValid:v,message:'"encoding" must be a string'},issuer:{isValid:v,message:'"issuer" must be a string'},subject:{isValid:v,message:'"subject" must be a string'},jwtid:{isValid:v,message:'"jwtid" must be a string'},noTimestamp:{isValid:l,message:'"noTimestamp" must be a boolean'},keyid:{isValid:v,message:'"keyid" must be a string'},mutatePayload:{isValid:l,message:'"mutatePayload" must be a boolean'}},_={iat:{isValid:d,message:'"iat" should be a number of seconds'},exp:{isValid:d,message:'"exp" should be a number of seconds'},nbf:{isValid:d,message:'"nbf" should be a number of seconds'}};function S(t,e,object,r){if(!m(object))throw new Error('Expected "'+r+'" to be a plain object.');Object.keys(object).forEach((function(n){var o=t[n];if(o){if(!o.isValid(object[n]))throw new Error(o.message)}else if(!e)throw new Error('"'+n+'" is not allowed in "'+r+'"')}))}var E={audience:"aud",issuer:"iss",subject:"sub",jwtid:"jti"},k=["expiresIn","notBefore","noTimestamp","audience","issuer","subject","jwtid"];t.exports=function(t,r,o,f){"function"==typeof o?(f=o,o={}):o=o||{};var l="object"==typeof t&&!e.isBuffer(t),header=Object.assign({alg:o.algorithm||"HS256",typ:l?"JWT":void 0,kid:o.keyid},o.header);function c(t){if(f)return f(t);throw t}if(!r&&"none"!==o.algorithm)return c(new Error("secretOrPrivateKey must have a value"));if(void 0===t)return c(new Error("payload is required"));if(l){try{!function(t){S(_,!0,t,"payload")}(t)}catch(t){return c(t)}o.mutatePayload||(t=Object.assign({},t))}else{var d=k.filter((function(t){return void 0!==o[t]}));if(d.length>0)return c(new Error("invalid "+d.join(",")+" option for "+typeof t+" payload"))}if(void 0!==t.exp&&void 0!==o.expiresIn)return c(new Error('Bad "options.expiresIn" option the payload already has an "exp" property.'));if(void 0!==t.nbf&&void 0!==o.notBefore)return c(new Error('Bad "options.notBefore" option the payload already has an "nbf" property.'));try{!function(t){S(M,!1,t,"options")}(o)}catch(t){return c(t)}var m=t.iat||Math.floor(Date.now()/1e3);if(o.noTimestamp?delete t.iat:l&&(t.iat=m),void 0!==o.notBefore){try{t.nbf=n(o.notBefore,m)}catch(t){return c(t)}if(void 0===t.nbf)return c(new Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}if(void 0!==o.expiresIn&&"object"==typeof t){try{t.exp=n(o.expiresIn,m)}catch(t){return c(t)}if(void 0===t.exp)return c(new Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}
2Object.keys(E).forEach((function(e){var r=E[e];if(void 0!==o[e]){if(void 0!==t[r])return c(new Error('Bad "options.'+e+'" option. The payload already has an "'+r+'" property.'));t[r]=o[e]}}));var v=o.encoding||"utf8";if("function"!=typeof f)return h.sign({header:header,payload:t,secret:r,encoding:v});f=f&&y(f),h.createSign({header:header,privateKey:r,payload:t,encoding:v}).once("error",f).once("done",(function(t){f(null,t)}))}}).call(this,r(33).Buffer)},function(t,e){var r=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,h=/^0o[0-7]+$/i,f=/^(?:0|[1-9]\d*)$/,l=parseInt;function c(t){return t!=t}function d(object,t){return function(t,e){for(var r=-1,n=t?t.length:0,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}(t,(function(t){return object[t]}))}var m,v,y=Object.prototype,w=y.hasOwnProperty,M=y.toString,_=y.propertyIsEnumerable,S=(m=Object.keys,v=Object,function(t){return m(v(t))}),E=Math.max;function k(t,e){var r=R(t)||function(t){return function(t){return I(t)&&x(t)}(t)&&w.call(t,"callee")&&(!_.call(t,"callee")||"[object Arguments]"==M.call(t))}(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,o=!!n;for(var h in t)!e&&!w.call(t,h)||o&&("length"==h||A(h,n))||r.push(h);return r}function T(object){if(e=(t=object)&&t.constructor,r="function"==typeof e&&e.prototype||y,t!==r)return S(object);var t,e,r,n=[];for(var o in Object(object))w.call(object,o)&&"constructor"!=o&&n.push(o);return n}function A(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||f.test(t))&&t>-1&&t%1==0&&t<e}var R=Array.isArray;function x(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}(t.length)&&!function(t){var e=O(t)?M.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}(t)}function O(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function I(t){return!!t&&"object"==typeof t}t.exports=function(t,e,f,m){var object;t=x(t)?t:(object=t)?d(object,function(object){return x(object)?k(object):T(object)}(object)):[],f=f&&!m?function(t){var e=function(t){if(!t)return 0===t?t:0;if((t=function(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||I(t)&&"[object Symbol]"==M.call(t)}(t))return NaN;if(O(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=O(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(r,"");var f=o.test(t);return f||h.test(t)?l(t.slice(2),f?2:8):n.test(t)?NaN:+t}(t))===1/0||t===-1/0){return 17976931348623157e292*(t<0?-1:1)}return t==t?t:0}(t),f=e%1;return e==e?f?e-f:e:0}(f):0;var v=t.length;return f<0&&(f=E(v+f,0)),function(t){return"string"==typeof t||!R(t)&&I(t)&&"[object String]"==M.call(t)}(t)?f<=v&&t.indexOf(e,f)>-1:!!v&&function(t,e,r){if(e!=e)return function(t,e,r,n){for(var o=t.length,h=r+(n?1:-1);n?h--:++h<o;)if(e(t[h],h,t))return h;return-1}(t,c,r);for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}(t,e,f)>-1}},function(t,e){var r=Object.prototype.toString;t.exports=function(t){return!0===t||!1===t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Boolean]"==r.call(t)}},function(t,e){var r=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,h=/^0o[0-7]+$/i,f=parseInt,l=Object.prototype.toString;function c(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=function(t){return"number"==typeof t&&t==function(t){var e=function(t){if(!t)return 0===t?t:0;if((t=function(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==l.call(t)}(t))return NaN;if(c(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=c(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(r,"");var d=o.test(t);return d||h.test(t)?f(t.slice(2),d?2:8):n.test(t)?NaN:+t}(t))===1/0||t===-1/0){return 17976931348623157e292*(t<0?-1:1)}return t==t?t:0}(t),d=e%1;return e==e?d?e-d:e:0}(t)}},function(t,e){var r=Object.prototype.toString;t.exports=function(t){return"number"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Number]"==r.call(t)}},function(t,e){var r,n,o=Function.prototype,h=Object.prototype,f=o.toString,l=h.hasOwnProperty,c=f.call(Object),d=h.toString,m=(r=Object.getPrototypeOf,n=Object,function(t){return r(n(t))});t.exports=function(t){if(!function(t){return!!t&&"object"==typeof t}(t)||"[object Object]"!=d.call(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t))return!1;var e=m(t);if(null===e)return!0;var r=l.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&f.call(r)==c}},function(t,e){var r=Object.prototype.toString,n=Array.isArray;t.exports=function(t){return"string"==typeof t||!n(t)&&function(t){return!!t&&"object"==typeof t}(t)&&"[object String]"==r.call(t)}},function(t,e){var r=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,h=/^0o[0-7]+$/i,f=parseInt,l=Object.prototype.toString;function c(t,e){var c;if("function"!=typeof e)throw new TypeError("Expected a function");return t=function(t){var e=function(t){if(!t)return 0===t?t:0;if((t=function(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==l.call(t)}(t))return NaN;if(d(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=d(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(r,"");var c=o.test(t);return c||h.test(t)?f(t.slice(2),c?2:8):n.test(t)?NaN:+t}(t))===1/0||t===-1/0){return 17976931348623157e292*(t<0?-1:1)}return t==t?t:0}(t),c=e%1;return e==e?c?e-c:e:0}(t),function(){return--t>0&&(c=e.apply(this,arguments)),t<=1&&(e=void 0),c}}function d(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=function(t){return c(2,t)}},function(t,e,r){"use strict";var n=r(55),o=r(56);
2var h=function(){return(h=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t}).apply(this,arguments)};function f(t,e,r,n){return new(r||(r=Promise))((function(o,h){function f(t){try{c(n.next(t))}catch(t){h(t)}}function l(t){try{c(n.throw(t))}catch(t){h(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(f,l)}c((n=n.apply(t,e||[])).next())}))}function l(t,body){var e,r,n,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},g=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return g.next=h(0),g.throw=h(1),g.return=h(2),"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(f){return function(h){if(e)throw new TypeError("Generator is already executing.");for(;g&&(g=0,h[0]&&(o=0)),o;)try{if(e=1,r&&(n=2&h[0]?r.return:h[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,h[1])).done)return n;switch(r=0,n&&(h=[2&h[0],n.value]),h[0]){case 0:case 1:n=h;break;case 4:return o.label++,{value:h[1],done:!1};case 5:o.label++,r=h[1],h=[0];continue;case 7:h=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==h[0]&&2!==h[0])){o=0;continue}if(3===h[0]&&(!n||h[1]>n[0]&&h[1]<n[3])){o.label=h[1];break}if(6===h[0]&&o.label<n[1]){o.label=n[1],n=h;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(h);break}n[2]&&o.ops.pop(),o.trys.pop();continue}h=body.call(t,o)}catch(t){h=[6,t],r=0}finally{e=n=0}if(5&h[0])throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}([h,f])}}}Object.create;function c(t){var s="function"==typeof Symbol&&Symbol.iterator,e=s&&t[s],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),h=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)h.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return h}function m(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var v,y=r(30),w=r(70),M=((v={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',v["not-registered"]="Firebase Installation is not registered.",v["installation-not-found"]="Firebase Installation not found.",v["request-failed"]='{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',v["app-offline"]="Could not process request. Application offline.",v["delete-pending-registration"]="Can't delete installation while there is a pending registration request.",v),_=new y.b("installations","Installations",M);function S(t){return t instanceof y.c&&t.code.includes("request-failed")}function E(t){return"https://firebaseinstallations.googleapis.com/v1/projects/"+t.projectId+"/installations"}function k(t){return{token:t.token,requestStatus:2,expiresIn:(e=t.expiresIn,Number(e.replace("s","000"))),creationTime:Date.now()};var e}function T(t,e){return f(this,void 0,void 0,(function(){var r,n;return l(this,(function(o){switch(o.label){case 0:return[4,e.json()];case 1:return r=o.sent(),n=r.error,[2,_.create("request-failed",{requestName:t,serverCode:n.code,serverMessage:n.message,serverStatus:n.status})]}}))}))}function A(t){var e=t.apiKey;return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function R(t,e){var r=e.refreshToken,n=A(t);return n.append("Authorization",function(t){return"FIS_v2 "+t}(r)),n}function x(t){return f(this,void 0,void 0,(function(){var e;return l(this,(function(r){switch(r.label){case 0:return[4,t()];case 1:return(e=r.sent()).status>=500&&e.status<600?[2,t()]:[2,e]}}))}))}function O(t,e){var r=e.fid;return f(this,void 0,void 0,(function(){var e,n,body,o,h,f;return l(this,(function(l){switch(l.label){case 0:return e=E(t),n=A(t),body={f
2id:r,authVersion:"FIS_v2",appId:t.appId,sdkVersion:"w:0.4.32"},o={method:"POST",headers:n,body:JSON.stringify(body)},[4,x((function(){return fetch(e,o)}))];case 1:return(h=l.sent()).ok?[4,h.json()]:[3,3];case 2:return f=l.sent(),[2,{fid:f.fid||r,registrationStatus:2,refreshToken:f.refreshToken,authToken:k(f.authToken)}];case 3:return[4,T("Create Installation",h)];case 4:throw l.sent()}}))}))}function I(t){return new Promise((function(e){setTimeout(e,t)}))}var L=/^[cdef][\w-]{21}$/;function D(){try{var t=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(t),t[0]=112+t[0]%16;var e=function(t){return(e=t,btoa(String.fromCharCode.apply(String,m([],d(e)))).replace(/\+/g,"-").replace(/\//g,"_")).substr(0,22);var e}(t);return L.test(e)?e:""}catch(t){return""}}function C(t){return t.appName+"!"+t.appId}var P=new Map;function B(t,e){var r=C(t);N(r,e),function(t,e){var r=F();r&&r.postMessage({key:t,fid:e});U()}(r,e)}function N(t,e){var r,n,o=P.get(t);if(o)try{for(var h=c(o),f=h.next();!f.done;f=h.next()){(0,f.value)(e)}}catch(t){r={error:t}}finally{try{f&&!f.done&&(n=h.return)&&n.call(h)}finally{if(r)throw r.error}}}var j=null;function F(){return!j&&"BroadcastChannel"in self&&((j=new BroadcastChannel("[Firebase] FID Change")).onmessage=function(t){N(t.data.key,t.data.fid)}),j}function U(){0===P.size&&j&&(j.close(),j=null)}var K,z="firebase-installations-store",H=null;function G(){return H||(H=Object(w.openDb)("firebase-installations-database",1,(function(t){switch(t.oldVersion){case 0:t.createObjectStore(z)}}))),H}function V(t,e){return f(this,void 0,void 0,(function(){var r,n,o,h,f;return l(this,(function(l){switch(l.label){case 0:return r=C(t),[4,G()];case 1:return n=l.sent(),o=n.transaction(z,"readwrite"),[4,(h=o.objectStore(z)).get(r)];case 2:return f=l.sent(),[4,h.put(e,r)];case 3:return l.sent(),[4,o.complete];case 4:return l.sent(),f&&f.fid===e.fid||B(t,e.fid),[2,e]}}))}))}function W(t){return f(this,void 0,void 0,(function(){var e,r,n;return l(this,(function(o){switch(o.label){case 0:return e=C(t),[4,G()];case 1:return r=o.sent(),[4,(n=r.transaction(z,"readwrite")).objectStore(z).delete(e)];case 2:return o.sent(),[4,n.complete];case 3:return o.sent(),[2]}}))}))}function Y(t,e){return f(this,void 0,void 0,(function(){var r,n,o,h,f,c;return l(this,(function(l){switch(l.label){case 0:return r=C(t),[4,G()];case 1:return n=l.sent(),o=n.transaction(z,"readwrite"),[4,(h=o.objectStore(z)).get(r)];case 2:return f=l.sent(),void 0!==(c=e(f))?[3,4]:[4,h.delete(r)];case 3:return l.sent(),[3,6];case 4:return[4,h.put(c,r)];case 5:l.sent(),l.label=6;case 6:return[4,o.complete];case 7:return l.sent(),!c||f&&f.fid===c.fid||B(t,c.fid),[2,c]}}))}))}function Z(t){return f(this,void 0,void 0,(function(){var e,r,n;return l(this,(function(o){switch(o.label){case 0:return[4,Y(t,(function(r){var n=function(t){return J(t||{fid:D(),registrationStatus:0})}(r),o=function(t,e){if(0===e.registrationStatus){if(!navigator.onLine){var r=Promise.reject(_.create("app-offline"));return{installationEntry:e,registrationPromise:r}}var n={fid:e.fid,registrationStatus:1,registrationTime:Date.now()},o=function(t,e){return f(this,void 0,void 0,(function(){var r,n;return l(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,7]),[4,O(t,e)];case 1:return r=o.sent(),[2,V(t,r)];case 2:return S(n=o.sent())&&409===n.customData.serverCode?[4,W(t)]:[3,4];case 3:return o.sent(),[3,6];case 4:return[4,V(t,{fid:e.fid,registrationStatus:0})];case 5:o.sent(),o.label=6;case 6:throw n;case 7:return[2]}}
2))}))}(t,n);return{installationEntry:n,registrationPromise:o}}return 1===e.registrationStatus?{installationEntry:e,registrationPromise:X(t)}:{installationEntry:e}}(t,n);return e=o.registrationPromise,o.installationEntry}))];case 1:return""!==(r=o.sent()).fid?[3,3]:(n={},[4,e]);case 2:return[2,(n.installationEntry=o.sent(),n)];case 3:return[2,{installationEntry:r,registrationPromise:e}]}}))}))}function X(t){return f(this,void 0,void 0,(function(){var e,r,n,o;return l(this,(function(h){switch(h.label){case 0:return[4,$(t)];case 1:e=h.sent(),h.label=2;case 2:return 1!==e.registrationStatus?[3,5]:[4,I(100)];case 3:return h.sent(),[4,$(t)];case 4:return e=h.sent(),[3,2];case 5:return 0!==e.registrationStatus?[3,7]:[4,Z(t)];case 6:return r=h.sent(),n=r.installationEntry,(o=r.registrationPromise)?[2,o]:[2,n];case 7:return[2,e]}}))}))}function $(t){return Y(t,(function(t){if(!t)throw _.create("installation-not-found");return J(t)}))}function J(t){return 1===(e=t).registrationStatus&&e.registrationTime+1e4<Date.now()?{fid:t.fid,registrationStatus:0}:t;var e}function Q(t,e){var r=t.appConfig,n=t.platformLoggerProvider;return f(this,void 0,void 0,(function(){var t,o,h,body,f,c,d;return l(this,(function(l){switch(l.label){case 0:return t=function(t,e){var r=e.fid;return E(t)+"/"+r+"/authTokens:generate"}(r,e),o=R(r,e),(h=n.getImmediate({optional:!0}))&&o.append("x-firebase-client",h.getPlatformInfoString()),body={installation:{sdkVersion:"w:0.4.32"}},f={method:"POST",headers:o,body:JSON.stringify(body)},[4,x((function(){return fetch(t,f)}))];case 1:return(c=l.sent()).ok?[4,c.json()]:[3,3];case 2:return d=l.sent(),[2,k(d)];case 3:return[4,T("Generate Auth Token",c)];case 4:throw l.sent()}}))}))}function tt(t,e){return void 0===e&&(e=!1),f(this,void 0,void 0,(function(){var r,n,o;return l(this,(function(c){switch(c.label){case 0:return[4,Y(t.appConfig,(function(n){if(!it(n))throw _.create("not-registered");var o=n.authToken;if(!e&&function(t){return 2===t.requestStatus&&!function(t){var e=Date.now();return e<t.creationTime||t.creationTime+t.expiresIn<e+36e5}(t)}(o))return n;if(1===o.requestStatus)return r=function(t,e){return f(this,void 0,void 0,(function(){var r,n;return l(this,(function(o){switch(o.label){case 0:return[4,et(t.appConfig)];case 1:r=o.sent(),o.label=2;case 2:return 1!==r.authToken.requestStatus?[3,5]:[4,I(100)];case 3:return o.sent(),[4,et(t.appConfig)];case 4:return r=o.sent(),[3,2];case 5:return 0===(n=r.authToken).requestStatus?[2,tt(t,e)]:[2,n]}}))}))}(t,e),n;if(!navigator.onLine)throw _.create("app-offline");var c=function(t){var e={requestStatus:1,requestTime:Date.now()};return h(h({},t),{authToken:e})}(n);return r=function(t,e){return f(this,void 0,void 0,(function(){var r,n,o;return l(this,(function(f){switch(f.label){case 0:return f.trys.push([0,3,,8]),[4,Q(t,e)];case 1:return r=f.sent(),o=h(h({},e),{authToken:r}),[4,V(t.appConfig,o)];case 2:return f.sent(),[2,r];case 3:return!S(n=f.sent())||401!==n.customData.serverCode&&404!==n.customData.serverCode?[3,5]:[4,W(t.appConfig)];case 4:return f.sent(),[3,7];case 5:return o=h(h({},e),{authToken:{requestStatus:0}}),[4,V(t.appConfig,o)];case 6:f.sent(),f.label=7;case 7:throw n;case 8:return[2]}}
2))}))}(t,c),c}))];case 1:return n=c.sent(),r?[4,r]:[3,3];case 2:return o=c.sent(),[3,4];case 3:o=n.authToken,c.label=4;case 4:return[2,o]}}))}))}function et(t){return Y(t,(function(t){if(!it(t))throw _.create("not-registered");var e,r=t.authToken;return 1===(e=r).requestStatus&&e.requestTime+1e4<Date.now()?h(h({},t),{authToken:{requestStatus:0}}):t}))}function it(t){return void 0!==t&&2===t.registrationStatus}function nt(t){return f(this,void 0,void 0,(function(){var e;return l(this,(function(r){switch(r.label){case 0:return[4,Z(t)];case 1:return(e=r.sent().registrationPromise)?[4,e]:[3,3];case 2:r.sent(),r.label=3;case 3:return[2]}}))}))}function ot(t,e){return f(this,void 0,void 0,(function(){var r,n,o,h;return l(this,(function(f){switch(f.label){case 0:return r=function(t,e){var r=e.fid;return E(t)+"/"+r}(t,e),n=R(t,e),o={method:"DELETE",headers:n},[4,x((function(){return fetch(r,o)}))];case 1:return(h=f.sent()).ok?[3,3]:[4,T("Delete Installation",h)];case 2:throw f.sent();case 3:return[2]}}))}))}function at(t,e){var r=t.appConfig;return function(t,e){F();var r=C(t),n=P.get(r);n||(n=new Set,P.set(r,n)),n.add(e)}(r,e),function(){!function(t,e){var r=C(t),n=P.get(r);n&&(n.delete(e),0===n.size&&P.delete(r),U())}(r,e)}}function st(t){return _.create("missing-app-config-values",{valueName:t})}(K=n.a).INTERNAL.registerComponent(new o.a("installations",(function(t){var e=t.getProvider("app").getImmediate(),r={appConfig:function(t){var e,r;if(!t||!t.options)throw st("App Configuration");if(!t.name)throw st("App Name");try{for(var n=c(["projectId","apiKey","appId"]),o=n.next();!o.done;o=n.next()){var h=o.value;if(!t.options[h])throw st(h)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return{appName:t.name,projectId:t.options.projectId,apiKey:t.options.apiKey,appId:t.options.appId}}(e),platformLoggerProvider:t.getProvider("platform-logger")};return{app:e,getId:function(){return function(t){return f(this,void 0,void 0,(function(){var e,r,n;return l(this,(function(o){switch(o.label){case 0:return[4,Z(t.appConfig)];case 1:return e=o.sent(),r=e.installationEntry,(n=e.registrationPromise)?n.catch(console.error):tt(t).catch(console.error),[2,r.fid]}}))}))}(r)},getToken:function(t){return function(t,e){return void 0===e&&(e=!1),f(this,void 0,void 0,(function(){return l(this,(function(r){switch(r.label){case 0:return[4,nt(t.appConfig)];case 1:return r.sent(),[4,tt(t,e)];case 2:return[2,r.sent().token]}}))}))}(r,t)},delete:function(){return function(t){return f(this,void 0,void 0,(function(){var e,r;return l(this,(function(n){switch(n.label){case 0:return[4,Y(e=t.appConfig,(function(t){if(!t||0!==t.registrationStatus)return t}))];case 1:if(!(r=n.sent()))return[3,6];if(1!==r.registrationStatus)return[3,2];throw _.create("delete-pending-registration");case 2:if(2!==r.registrationStatus)return[3,6];if(navigator.onLine)return[3,3];throw _.create("app-offline");case 3:return[4,ot(e,r)];case 4:return n.sent(),[4,W(e)];case 5:n.sent(),n.label=6;case 6:return[2]}}
vendor: 4,105 bytes, line 2
2))}))}(r)},onIdChange:function(t){return at(r,t)}}}),"PUBLIC")),K.registerVersion("@firebase/installations","0.4.32");var ut=function(){return(ut=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t}).apply(this,arguments)};function ht(t,e,r,n){return new(r||(r=Promise))((function(o,h){function f(t){try{c(n.next(t))}catch(t){h(t)}}function l(t){try{c(n.throw(t))}catch(t){h(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(f,l)}c((n=n.apply(t,e||[])).next())}))}function ft(t,body){var e,r,n,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},g=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return g.next=h(0),g.throw=h(1),g.return=h(2),"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(f){return function(h){if(e)throw new TypeError("Generator is already executing.");for(;g&&(g=0,h[0]&&(o=0)),o;)try{if(e=1,r&&(n=2&h[0]?r.return:h[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,h[1])).done)return n;switch(r=0,n&&(h=[2&h[0],n.value]),h[0]){case 0:case 1:n=h;break;case 4:return o.label++,{value:h[1],done:!1};case 5:o.label++,r=h[1],h=[0];continue;case 7:h=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==h[0]&&2!==h[0])){o=0;continue}if(3===h[0]&&(!n||h[1]>n[0]&&h[1]<n[3])){o.label=h[1];break}if(6===h[0]&&o.label<n[1]){o.label=n[1],n=h;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(h);break}n[2]&&o.ops.pop(),o.trys.pop();continue}h=body.call(t,o)}catch(t){h=[6,t],r=0}finally{e=n=0}if(5&h[0])throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}([h,f])}}}Object.create;function lt(t){var s="function"==typeof Symbol&&Symbol.iterator,e=s&&t[s],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function ct(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),h=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)h.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return h}function pt(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var mt,gt,vt=((mt={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',mt["only-available-in-window"]="This method is available in a Window context.",mt["only-available-in-sw"]="This method is available in a service worker context.",mt["permission-default"]="The notification permission was not granted and dismissed instead.",mt["permission-blocked"]="The notification permission was not granted and blocked instead.",mt["unsupported-browser"]="This browser doesn't support the API's required to use the firebase SDK.",mt["failed-service-worker-registration"]="We are unable to register the default service worker. {$browserErrorMessage}",mt["token-subscribe-failed"]="A problem occurred while subscribing the user to FCM: {$errorInfo}",mt["token-subscribe-no-token"]="FCM returned no token when subscribing the user to push.",mt["token-unsubscribe-failed"]="A problem occurred while unsubscribing the user from FCM: {$errorInfo}",mt["token-update-failed"]="A problem occurred while updating the user from FCM: {$errorInfo}",mt["token-update-no-token"]="FCM returned no token when updating the user to push.",mt["use-sw-after-get-token"]="The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.",mt["invalid-sw-registration"]="The input to useServiceWorker() must be a ServiceWorkerRegistration.",mt["invalid-bg-handler"]="The input to setBackgroun
2dMessageHandler() must be a function.",mt["invalid-vapid-key"]="The public VAPID key must be a string.",mt["use-vapid-key-after-get-token"]="The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used.",mt),yt=new y.b("messaging","Messaging",vt),bt="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4";function wt(t){var e=new Uint8Array(t);return btoa(String.fromCharCode.apply(String,pt([],ct(e)))).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Mt(t){for(var e=(t+"=".repeat((4-t.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),r=atob(e),n=new Uint8Array(r.length),i=0;i<r.length;++i)n[i]=r.charCodeAt(i);return n}!function(t){t.PUSH_RECEIVED="push-received",t.NOTIFICATION_CLICKED="notification-clicked"}(gt||(gt={}));function _t(t){return ht(this,void 0,void 0,(function(){var e,r,n=this;return ft(this,(function(o){switch(o.label){case 0:return"databases"in indexedDB?[4,indexedDB.databases()]:[3,2];case 1:if(e=o.sent(),!e.map((function(t){return t.name})).includes("fcm_token_details_db"))return[2,null];o.label=2;case 2:return r=null,[4,Object(w.openDb)("fcm_token_details_db",5,(function(e){return ht(n,void 0,void 0,(function(){var n,o,h,f;return ft(this,(function(l){switch(l.label){case 0:return e.oldVersion<2?[2]:e.objectStoreNames.contains("fcm_token_object_Store")?[4,(n=e.transaction.objectStore("fcm_token_object_Store")).index("fcmSenderId").get(t)]:[2];case 1:return o=l.sent(),[4,n.clear()];case 2:if(l.sent(),!o)return[2];if(2===e.oldVersion){if(!(h=o).auth||!h.p256dh||!h.endpoint)return[2];r={token:h.fcmToken,createTime:null!==(f=h.createTime)&&void 0!==f?f:Date.now(),subscriptionOptions:{auth:h.auth,p256dh:h.p256dh,endpoint:h.endpoint,swScope:h.swScope,vapidKey:"string"==typeof h.vapidKey?h.vapidKey:wt(h.vapidKey)}}}else(3===e.oldVersion||4===e.oldVersion)&&(r={token:(h=o).fcmToken,createTime:h.createTime,subscriptionOptions:{auth:wt(h.auth),p256dh:wt(h.p256dh),endpoint:h.endpoint,swScope:h.swScope,vapidKey:wt(h.vapidKey)}});return[2]}}))}))}))];case 3:return o.sent().close(),[4,Object(w.deleteDb)("fcm_token_details_db")];case 4:return o.sent(),[4,Object(w.deleteDb)("fcm_vapid_details_db")];case 5:return o.sent(),[4,Object(w.deleteDb)("undefined")];case 6:return o.sent(),[2,St(r)?r:null]}}))}))}function St(t){if(!t||!t.subscriptionOptions)return!1;var e=t.subscriptionOptions;return"number"==typeof t.createTime&&t.createTime>0&&"string"==typeof t.token&&t.token.length>0&&"string"==typeof e.auth&&e.auth.length>0&&"string"==typeof e.p256dh&&e.p256dh.length>0&&"string"==typeof e.endpoint&&e.endpoint.length>0&&"string"==typeof e.swScope&&e.swScope.length>0&&"string"==typeof e.vapidKey&&e.vapidKey.length>0}var Et=null;function kt(){return Et||(Et=Object(w.openDb)("firebase-messaging-database",1,(function(t){switch(t.oldVersion){case 0:t.createObjectStore("firebase-messaging-store")}}))),Et}function Tt(t){return ht(this,void 0,void 0,(function(){var e,r,n;return ft(this,(function(o){switch(o.label){case 0:return e=xt(t),[4,kt()];case 1:return[4,o.sent().transaction("firebase-messaging-store").objectStore("firebase-messaging-store").get(e)];case 2:return(r=o.sent())?[2,r]:[3,3];case 3:return[4,_t(t.appConfig.senderId)];case 4:return(n=o.sent())?[4,At(t,n)]:[3,6];case 5:return o.sent(),[2,n];case 6:return[2]}}
2))}))}function At(t,e){return ht(this,void 0,void 0,(function(){var r,n,o;return ft(this,(function(h){switch(h.label){case 0:return r=xt(t),[4,kt()];case 1:return n=h.sent(),[4,(o=n.transaction("firebase-messaging-store","readwrite")).objectStore("firebase-messaging-store").put(e,r)];case 2:return h.sent(),[4,o.complete];case 3:return h.sent(),[2,e]}}))}))}function Rt(t){return ht(this,void 0,void 0,(function(){var e,r,n;return ft(this,(function(o){switch(o.label){case 0:return e=xt(t),[4,kt()];case 1:return r=o.sent(),[4,(n=r.transaction("firebase-messaging-store","readwrite")).objectStore("firebase-messaging-store").delete(e)];case 2:return o.sent(),[4,n.complete];case 3:return o.sent(),[2]}}))}))}function xt(t){return t.appConfig.appId}function Ot(t,e){return ht(this,void 0,void 0,(function(){var r,body,n,o,h,f;return ft(this,(function(l){switch(l.label){case 0:return[4,Ct(t)];case 1:r=l.sent(),body=Pt(e),n={method:"POST",headers:r,body:JSON.stringify(body)},l.label=2;case 2:return l.trys.push([2,5,,6]),[4,fetch(Dt(t.appConfig),n)];case 3:return[4,l.sent().json()];case 4:return o=l.sent(),[3,6];case 5:throw h=l.sent(),yt.create("token-subscribe-failed",{errorInfo:h});case 6:if(o.error)throw f=o.error.message,yt.create("token-subscribe-failed",{errorInfo:f});if(!o.token)throw yt.create("token-subscribe-no-token");return[2,o.token]}}))}))}function It(t,e){return ht(this,void 0,void 0,(function(){var r,body,n,o,h,f;return ft(this,(function(l){switch(l.label){case 0:return[4,Ct(t)];case 1:r=l.sent(),body=Pt(e.subscriptionOptions),n={method:"PATCH",headers:r,body:JSON.stringify(body)},l.label=2;case 2:return l.trys.push([2,5,,6]),[4,fetch(Dt(t.appConfig)+"/"+e.token,n)];case 3:return[4,l.sent().json()];case 4:return o=l.sent(),[3,6];case 5:throw h=l.sent(),yt.create("token-update-failed",{errorInfo:h});case 6:if(o.error)throw f=o.error.message,yt.create("token-update-failed",{errorInfo:f});if(!o.token)throw yt.create("token-update-no-token");return[2,o.token]}}))}))}function Lt(t,e){return ht(this,void 0,void 0,(function(){var r,n,o,h,f;return ft(this,(function(l){switch(l.label){case 0:return[4,Ct(t)];case 1:r=l.sent(),n={method:"DELETE",headers:r},l.label=2;case 2:return l.trys.push([2,5,,6]),[4,fetch(Dt(t.appConfig)+"/"+e,n)];case 3:return[4,l.sent().json()];case 4:if((o=l.sent()).error)throw h=o.error.message,yt.create("token-unsubscribe-failed",{errorInfo:h});return[3,6];case 5:throw f=l.sent(),yt.create("token-unsubscribe-failed",{errorInfo:f});case 6:return[2]}}
2))}))}function Dt(t){return"https://fcmregistrations.googleapis.com/v1/projects/"+t.projectId+"/registrations"}function Ct(t){var e=t.appConfig,r=t.installations;return ht(this,void 0,void 0,(function(){var t;return ft(this,(function(n){switch(n.label){case 0:return[4,r.getToken()];case 1:return t=n.sent(),[2,new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":"FIS "+t})]}}))}))}function Pt(t){var e=t.p256dh,r=t.auth,n=t.endpoint,o=t.vapidKey,body={web:{endpoint:n,auth:r,p256dh:e}};return o!==bt&&(body.web.applicationPubKey=o),body}function Bt(t,e,r){return ht(this,void 0,void 0,(function(){var n,o,h,f;return ft(this,(function(l){switch(l.label){case 0:if("granted"!==Notification.permission)throw yt.create("permission-blocked");return[4,Ut(e,r)];case 1:return n=l.sent(),[4,Tt(t)];case 2:return o=l.sent(),h={vapidKey:r,swScope:e.scope,endpoint:n.endpoint,auth:wt(n.getKey("auth")),p256dh:wt(n.getKey("p256dh"))},o?[3,3]:[2,Ft(t,h)];case 3:if(c=o.subscriptionOptions,m=(d=h).vapidKey===c.vapidKey,v=d.endpoint===c.endpoint,y=d.auth===c.auth,w=d.p256dh===c.p256dh,m&&v&&y&&w)return[3,8];l.label=4;case 4:return l.trys.push([4,6,,7]),[4,Lt(t,o.token)];case 5:return l.sent(),[3,7];case 6:return f=l.sent(),console.warn(f),[3,7];case 7:return[2,Ft(t,h)];case 8:return Date.now()>=o.createTime+6048e5?[2,jt({token:o.token,createTime:Date.now(),subscriptionOptions:h},t,e)]:[2,o.token];case 9:return[2]}var c,d,m,v,y,w}))}))}function Nt(t,e){return ht(this,void 0,void 0,(function(){var r,n;return ft(this,(function(o){switch(o.label){case 0:return[4,Tt(t)];case 1:return(r=o.sent())?[4,Lt(t,r.token)]:[3,4];case 2:return o.sent(),[4,Rt(t)];case 3:o.sent(),o.label=4;case 4:return[4,e.pushManager.getSubscription()];case 5:return(n=o.sent())?[2,n.unsubscribe()]:[2,!0]}}))}))}function jt(t,e,r){return ht(this,void 0,void 0,(function(){var n,o,h;return ft(this,(function(f){switch(f.label){case 0:return f.trys.push([0,3,,5]),[4,It(e,t)];case 1:return n=f.sent(),o=ut(ut({},t),{token:n,createTime:Date.now()}),[4,At(e,o)];case 2:return f.sent(),[2,n];case 3:return h=f.sent(),[4,Nt(e,r)];case 4:throw f.sent(),h;case 5:return[2]}}
2))}))}function Ft(t,e){return ht(this,void 0,void 0,(function(){var r,n;return ft(this,(function(o){switch(o.label){case 0:return[4,Ot(t,e)];case 1:return r=o.sent(),n={token:r,createTime:Date.now(),subscriptionOptions:e},[4,At(t,n)];case 2:return o.sent(),[2,n.token]}}))}))}function Ut(t,e){return ht(this,void 0,void 0,(function(){var r;return ft(this,(function(n){switch(n.label){case 0:return[4,t.pushManager.getSubscription()];case 1:return(r=n.sent())?[2,r]:[2,t.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:Mt(e)})]}}))}))}function qt(data){return"object"==typeof data&&!!data&&"google.c.a.c_id"in data}function Kt(t){return new Promise((function(e){setTimeout(e,t)}))}var zt=function(){function t(t){var e=this;this.firebaseDependencies=t,this.isOnBackgroundMessageUsed=null,this.vapidKey=null,this.bgMessageHandler=null,self.addEventListener("push",(function(t){t.waitUntil(e.onPush(t))})),self.addEventListener("pushsubscriptionchange",(function(t){t.waitUntil(e.onSubChange(t))})),self.addEventListener("notificationclick",(function(t){t.waitUntil(e.onNotificationClick(t))}))}return Object.defineProperty(t.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!1,configurable:!0}),t.prototype.setBackgroundMessageHandler=function(t){if(this.isOnBackgroundMessageUsed=!1,!t||"function"!=typeof t)throw yt.create("invalid-bg-handler");this.bgMessageHandler=t},t.prototype.onBackgroundMessage=function(t){var e=this;return this.isOnBackgroundMessageUsed=!0,this.bgMessageHandler=t,function(){e.bgMessageHandler=null}},t.prototype.getToken=function(){var t,e;return ht(this,void 0,void 0,(function(){var r;return ft(this,(function(n){switch(n.label){case 0:return this.vapidKey?[3,2]:[4,Tt(this.firebaseDependencies)];case 1:r=n.sent(),this.vapidKey=null!==(e=null===(t=null==r?void 0:r.subscriptionOptions)||void 0===t?void 0:t.vapidKey)&&void 0!==e?e:bt,n.label=2;case 2:return[2,Bt(this.firebaseDependencies,self.registration,this.vapidKey)]}}))}))},t.prototype.deleteToken=function(){return Nt(this.firebaseDependencies,self.registration)},t.prototype.requestPermission=function(){throw yt.create("only-available-in-window")},t.prototype.usePublicVapidKey=function(t){if(null!==this.vapidKey)throw yt.create("use-vapid-key-after-get-token");if("string"!=typeof t||0===t.length)throw yt.create("invalid-vapid-key");this.vapidKey=t},t.prototype.useServiceWorker=function(){throw yt.create("only-available-in-window")},t.prototype.onMessage=function(){throw yt.create("only-available-in-window")},t.prototype.onTokenRefresh=function(){throw yt.create("only-available-in-window")},t.prototype.onPush=function(t){return ht(this,void 0,void 0,(function(){var e,r,n,o;return ft(this,(function(h){switch(h.label){case 0:return(e=function(t){var data=t.data;if(!data)return null;try{return data.json()}catch(t){return null}}(t))?[4,Wt()]:(console.debug("FirebaseMessaging: failed to get parsed MessagePayload from the PushEvent. Skip handling the push."),[2]);case 1:return function(t){return t.some((function(t){return"visible"===t.visibilityState&&!t.url.startsWith("chrome-extension://")}))}(r=h.sent())?[2,Vt(r,e)]:(n=!1,e.notification?[4,Yt(Ht(e))]:[3,3]);case 2:h.sent(),n=!0,h.label=3;case 3:return!0===n&&!1===this.isOnBackgroundMessageUsed?[2]:(this.bgMessageHandler&&(o=function(t){var e={from:t.from,collapseKey:t.collapse_key,messageId:t.fcm_message_id};return function(t,e){if(!e.notification)return;t.notification={};var title=e.notification.title;title&&(t.notification.title=title);var body=e.notification.body;body&&(t.notification.body=body);var image=e.notification.image;image&&(t.notification.image=image)}(e,t),function(t,e){if(!e.data)return;t.data=e.data}(e,t),function(t,e){if(!e.fcmOptions)return;t.fcmOptions={};var link=e.fcmOptions.link;link&&(t.fcmOptions.link=link);var r=e.fcmOptions.analytics_label;r&&(t.fcmOptions.analyticsLabel=r)}(e,t),e}(e),"function"==typeof this.bgMessageHandler?this.bgMessageHandler(o):this.bgMessageHandler.next(o)),[4,Kt(1e3)]);case 4:return h.sent(),[2]}}))}))},t.prototype.onSubChange=function(t){var e,r;return ht(this,void 0,void 0,(function(){var n;return ft(this,(function(o){switch(o.label){case 0:return t.newSubscription?[3,2]:[4,Nt(this.firebaseDependencies,self.registration)];case 1:return o.sent(),[2];case 2:return[4,Tt(this.firebaseDependencies)];case 3:return n=o.sent(),[4,Nt(this.firebaseDependencies,self.registration)];case 4:return o.sent(),[4,Bt(this.firebaseDependencies,self.registration,null!==(r=null===(e=null==n?void 0:n.subscriptionOptions)||void 0===e?void 0:e.vapidKey)&&void 0!==r?r:bt)];case 5:return o.sent(),[2]}}))}))},t.prototype.onNotificationClick=function(t){var e,r;return ht(this,void 0,void 0,(function(){var n,link,o,h,f;return ft(this,(function(l){switch(l.label){case 0:return(n=null===(r=null===(e=t.notification)||void 0===e?void 0:e.data)||void 0===r?void 0:r.FCM_MSG)?t.action?[2]:(t.stopImmediatePropagation(),t.notification.close(),(link=function(t){var e,r,n,link=null!==(r=null===(e=t.fcmOptions)||void 0===e?void 0:e.link)&&void 0!==r?r:null===(n=t.notification)||void 0===n?void 0:n.click_action;if(link)return link;return qt(t.data)?self.location.origin:null}(n))?(o=new URL(link,self.location.href),h=new URL(self.location.origin),o.host!==h.host?[2]:[4,Gt(o)]):[2]):[2];case 1:return(f=l.sent())?[3,4]:[4,self.clients.openWindow(link)];case 2:return f=l.sent(),[4,Kt(3e3)];case 3:return l.sent(),[3,6];case 4:return[4,f.focus()];case 5:f=l.sent(),l.label=6;case 6:return f?(n.messageType=gt.NOTIFICATION_CLICKED,n.isFirebaseMessaging=!0,[2,f.postMessage(n)]):[2]}}))}))},t}();function Ht(t){var e,r=ut({},t.notification);return r.data=((e={}).FCM_MSG=t,e),r}function Gt(t){return ht(this,void 0,void 0,(function(){var e,r,n,o,h,f,l;return ft(this,(function(c){switch(c.label){case 0:return[4,Wt()];case 1:e=c.sent();try{for(r=lt(e),n=r.next();!n.done;n=r.next())if(o=n.value,h=new URL(o.url,self.location.href),t.host===h.host)return[2,o]}catch(t){f={error:t}}finally{try{n&&!n.done&&(l=r.return)&&l.call(r)}finally{if(f)throw f.error}}return[2,null]}}))}))}function Vt(t,e){var r,n;e.isFirebaseMessaging=!0,e.messageType=gt.PUSH_RECEIVED;try{for(var o=lt(t),h=o.next();!h.done;h=o.next()){h.value.postMessage(e)}}catch(t){r={error:t}}finally{try{h&&!h.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}function Wt(){return self.clients.matchAll({type:"window",includeUncontrolled:!0})}function Yt(t){var e,r=t.actions,n=Notification.maxActions;return r&&n&&r.length>n&&console.warn("This browser only supports "+n+" actions. The remaining actions will not be displayed."),self.registration.showNotification(null!==(e=t.title)&&void 0!==e?e:"",t)}var Zt=function(){function t(t){var e=this;this.firebaseDependencies=t,this.vapidKey=null,this.onMessageCallback=null,navigator.serviceWorker.addEventListener("message",(function(t){return e.messageEventListener(t)}))}return Object.defineProperty(t.prototype,"app",{get:function(){return this.firebaseDependencies.app}
2,enumerable:!1,configurable:!0}),t.prototype.messageEventListener=function(t){return ht(this,void 0,void 0,(function(){var e,r;return ft(this,(function(n){switch(n.label){case 0:return(e=t.data).isFirebaseMessaging?(this.onMessageCallback&&e.messageType===gt.PUSH_RECEIVED&&("function"==typeof this.onMessageCallback?this.onMessageCallback(function(t){return delete t.messageType,delete t.isFirebaseMessaging,t}(Object.assign({},e))):this.onMessageCallback.next(Object.assign({},e))),qt(r=e.data)&&"1"===r["google.c.a.e"]?[4,this.logEvent(e.messageType,r)]:[3,2]):[2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},t.prototype.getVapidKey=function(){return this.vapidKey},t.prototype.getSwReg=function(){return this.swRegistration},t.prototype.getToken=function(t){return ht(this,void 0,void 0,(function(){return ft(this,(function(e){switch(e.label){case 0:return"default"!==Notification.permission?[3,2]:[4,Notification.requestPermission()];case 1:e.sent(),e.label=2;case 2:if("granted"!==Notification.permission)throw yt.create("permission-blocked");return[4,this.updateVapidKey(null==t?void 0:t.vapidKey)];case 3:return e.sent(),[4,this.updateSwReg(null==t?void 0:t.serviceWorkerRegistration)];case 4:return e.sent(),[2,Bt(this.firebaseDependencies,this.swRegistration,this.vapidKey)]}}))}))},t.prototype.updateVapidKey=function(t){return ht(this,void 0,void 0,(function(){return ft(this,(function(e){return t?this.vapidKey=t:this.vapidKey||(this.vapidKey=bt),[2]}))}))},t.prototype.updateSwReg=function(t){return ht(this,void 0,void 0,(function(){return ft(this,(function(e){switch(e.label){case 0:return t||this.swRegistration?[3,2]:[4,this.registerDefaultSw()];case 1:e.sent(),e.label=2;case 2:if(!t&&this.swRegistration)return[2];if(!(t instanceof ServiceWorkerRegistration))throw yt.create("invalid-sw-registration");return this.swRegistration=t,[2]}}))}))},t.prototype.registerDefaultSw=function(){return ht(this,void 0,void 0,(function(){var t,e;return ft(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),t=this,[4,navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"})];case 1:return t.swRegistration=r.sent(),this.swRegistration.update().catch((function(){})),[3,3];case 2:throw e=r.sent(),yt.create("failed-service-worker-registration",{browserErrorMessage:e.message});case 3:return[2]}}
2))}))},t.prototype.deleteToken=function(){return ht(this,void 0,void 0,(function(){return ft(this,(function(t){switch(t.label){case 0:return this.swRegistration?[3,2]:[4,this.registerDefaultSw()];case 1:t.sent(),t.label=2;case 2:return[2,Nt(this.firebaseDependencies,this.swRegistration)]}}))}))},t.prototype.requestPermission=function(){return ht(this,void 0,void 0,(function(){var t;return ft(this,(function(e){switch(e.label){case 0:return"granted"===Notification.permission?[2]:[4,Notification.requestPermission()];case 1:if("granted"===(t=e.sent()))return[2];throw"denied"===t?yt.create("permission-blocked"):yt.create("permission-default")}}))}))},t.prototype.usePublicVapidKey=function(t){if(null!==this.vapidKey)throw yt.create("use-vapid-key-after-get-token");if("string"!=typeof t||0===t.length)throw yt.create("invalid-vapid-key");this.vapidKey=t},t.prototype.useServiceWorker=function(t){if(!(t instanceof ServiceWorkerRegistration))throw yt.create("invalid-sw-registration");if(this.swRegistration)throw yt.create("use-sw-after-get-token");this.swRegistration=t},t.prototype.onMessage=function(t){var e=this;return this.onMessageCallback=t,function(){e.onMessageCallback=null}},t.prototype.setBackgroundMessageHandler=function(){throw yt.create("only-available-in-sw")},t.prototype.onBackgroundMessage=function(){throw yt.create("only-available-in-sw")},t.prototype.onTokenRefresh=function(){return function(){}},t.prototype.logEvent=function(t,data){return ht(this,void 0,void 0,(function(){var e;return ft(this,(function(r){switch(r.label){case 0:return e=function(t){switch(t){case gt.NOTIFICATION_CLICKED:return"notification_open";case gt.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}(t),[4,this.firebaseDependencies.analyticsProvider.get()];case 1:return r.sent().logEvent(e,{message_id:data["google.c.a.c_id"],message_name:data["google.c.a.c_l"],message_time:data["google.c.a.ts"],message_device_time:Math.floor(Date.now()/1e3)}),[2]}}))}))},t}();function Xt(t){return yt.create("missing-app-config-values",{valueName:t})}var $t={isSupported:Jt};function Jt(){return self&&"ServiceWorkerGlobalScope"in self?"indexedDB"in self&&null!==indexedDB&&"PushManager"in self&&"Notification"in self&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey"):"indexedDB"in window&&null!==indexedDB&&navigator.cookieEnabled&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}n.a.INTERNAL.registerComponent(new o.a("messaging",(function(t){var e=t.getProvider("app").getImmediate(),r={app:e,appConfig:function(t){var e,r;if(!t||!t.options)throw Xt("App Configuration Object");if(!t.name)throw Xt("App Name");var n=t.options;try{for(var o=lt(["projectId","apiKey","appId","messagingSenderId"]),h=o.next();!h.done;h=o.next()){var f=h.value;if(!n[f])throw Xt(f)}}catch(t){e={error:t}}finally{try{h&&!h.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return{appName:t.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}(e),installations:t.getProvider("installations").getImmediate(),analyticsProvider:t.getProvider("analytics-internal")};if(!Jt())throw yt.create("unsupported-browser");return self&&"ServiceWorkerGlobalScope"in self?new zt(r):new Zt(r)}),"PUBLIC").setServiceProps($t))}]]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.