rtcEngine.min.js 1.2 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("dns-over-https")):"function"==typeof define&&define.amd?define(["dns-over-https"],e):"object"==typeof exports?exports.rtc_sdk=e(require("dns-over-https")):t.rtc_sdk=e(t["dns-over-https"])}(this,(__WEBPACK_EXTERNAL_MODULE__379__=>(()=>{var __webpack_modules__=[,(t,e,r)=>{"use strict";r.r(e),r.d(e,{customAlphabet:()=>a,customRandom:()=>s,nanoid:()=>o,random:()=>i,urlAlphabet:()=>n.urlAlphabet});var n=r(2);let i=t=>crypto.getRandomValues(new Uint8Array(t)),s=(t,e,r)=>{let n=(2<<Math.log(t.length-1)/Math.LN2)-1,i=-~(1.6*n*e/t.length);return(s=e)=>{let a="";for(;;){let e=r(i),o=i;for(;o--;)if(a+=t[e[o]&n]||"",a.length===s)return a}}},a=(t,e=21)=>s(t,e,i),o=(t=21)=>{let e="",r=crypto.getRandomValues(new Uint8Array(t));for(;t--;)e+=n.urlAlphabet[63&r[t]];return e}},(t,e,r)=>{"use strict";r.r(e),r.d(e,{urlAlphabet:()=>n});const n="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"},function(t,e,r){t=r.nmd(t);var n=r(4);
  2. //! moment.js
  3. //! version : 2.30.1
  4. //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
  5. //! license : MIT
  6. //! momentjs.com
  7. t.exports=function(){"use strict";var e,i;function s(){return e.apply(null,arguments)}function a(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function u(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function h(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(u(t,e))return!1;return!0}function c(t){return void 0===t}function d(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function l(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function f(t,e){var r,n=[],i=t.length;for(r=0;r<i;++r)n.push(e(t[r],r));return n}function m(t,e){for(var r in e)u(e,r)&&(t[r]=e[r]);return u(e,"toString")&&(t.toString=e.toString),u(e,"valueOf")&&(t.valueOf=e.valueOf),t}function p(t,e,r,n){return Ie(t,e,r,n,!0).utc()}function _(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function y(t){var e=null,r=!1,n=t._d&&!isNaN(t._d.getTime());return n&&(e=_(t),r=i.call(e.parsedDateParts,(function(t){return null!=t})),n=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&r),t._strict&&(n=n&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)),null!=Object.isFrozen&&Object.isFrozen(t)?n:(t._isValid=n,t._isValid)}function v(t){var e=p(NaN);return null!=t?m(_(e),t):_(e).userInvalidated=!0,e}i=Array.prototype.some?Array.prototype.some:function(t){var e,r=Object(this),n=r.length>>>0;for(e=0;e<n;e++)if(e in r&&t.call(this,r[e],e,r))return!0;return!1};var g=s.momentProperties=[],b=!1;function M(t,e){var r,n,i,s=g.length;if(c(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),c(e._i)||(t._i=e._i),c(e._f)||(t._f=e._f),c(e._l)||(t._l=e._l),c(e._strict)||(t._strict=e._strict),c(e._tzm)||(t._tzm=e._tzm),c(e._isUTC)||(t._isUTC=e._isUTC),c(e._offset)||(t._offset=e._offset),c(e._pf)||(t._pf=_(e)),c(e._locale)||(t._locale=e._locale),s>0)for(r=0;r<s;r++)c(i=e[n=g[r]])||(t[n]=i);return t}function w(t){M(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,s.updateOffset(this),b=!1)}function k(t){return t instanceof w||null!=t&&null!=t._isAMomentObject}function L(t){!1===s.suppressDeprecationWarnings&&void 0!==n&&n.warn&&n.warn("Deprecation warning: "+t)}function S(t,e){var r=!0;return m((function(){if(null!=s.deprecationHandler&&s.deprecationHandler(null,t),r){var n,i,a,o=[],h=arguments.length;for(i=0;i<h;i++){if(n="","object"==typeof arguments[i]){for(a in n+="\n["+i+"] ",arguments[0])u(arguments[0],a)&&(n+=a+": "+arguments[0][a]+", ");n=n.slice(0,-2)}else n=arguments[i];o.push(n)}L(t+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),r=!1}return e.apply(this,arguments)}),e)}var x,Y={};function T(t,e){null!=s.deprecationHandler&&s.deprecationHandler(t,e),Y[t]||(L(e),Y[t]=!0)}function D(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function E(t,e){var r,n=m({},t);for(r in e)u(e,r)&&(o(t[r])&&o(e[r])?(n[r]={},m(n[r],t[r]),m(n[r],e[r])):null!=e[r]?n[r]=e[r]:delete n[r]);for(r in t)u(t,r)&&!u(e,r)&&o(t[r])&&(n[r]=m({},n[r]));return n}function j(t){null!=t&&this.set(t)}s.suppressDeprecationWarnings=!1,s.deprecationHandler=null,x=Object.keys?Object.keys:function(t){var e,r=[];for(e in t)u(t,e)&&r.push(e);return r};function A(t,e,r){var n=""+Math.abs(t),i=e-n.length;return(t>=0?r?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+n}var O=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,P=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},H={};function I(t,e,r,n){var i=n;"string"==typeof n&&(i=function(){return this[n]()}),t&&(H[t]=i),e&&(H[e[0]]=function(){return A(i.apply(this,arguments),e[1],e[2])}),r&&(H[r]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function C(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function N(t,e){return t.isValid()?(e=B(e,t.localeData()),R[e]=R[e]||function(t){var e,r,n=t.match(O);for(e=0,r=n.length;e<r;e++)H[n[e]]?n[e]=H[n[e]]:n[e]=C(n[e]);return function(e){var i,s="";for(i=0;i<r;i++)s+=D(n[i])?n[i].call(e,t):n[i];return s}}(e),R[e](t)):t.localeData().invalidDate()}function B(t,e){var r=5;function n(t){return e.longDateFormat(t)||t}for(P.lastIndex=0;r>=0&&P.test(t);)t=t.replace(P,n),P.lastIndex=0,r-=1;return t}var q={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function F(t){return"string"==typeof t?q[t]||q[t.toLowerCase()]:void 0}function U(t){var e,r,n={};for(r in t)u(t,r)&&(e=F(r))&&(n[e]=t[r]);return n}var z={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var W,J=/\d/,G=/\d\d/,K=/\d{3}/,V=/\d{4}/,Z=/[+-]?\d{6}/,$=/\d\d?/,X=/\d\d\d\d?/,Q=/\d\d\d\d\d\d?/,tt=/\d{1,3}/,et=/\d{1,4}/,rt=/[+-]?\d{1,6}/,nt=/\d+/,it=/[+-]?\d+/,st=/Z|[+-]\d\d:?\d\d/gi,at=/Z|[+-]\d\d(?::?\d\d)?/gi,ot=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ut=/^[1-9]\d?/,ht=/^([1-9]\d|\d)/;function ct(t,e,r){W[t]=D(e)?e:function(t,n){return t&&r?r:e}}function dt(t,e){return u(W,t)?W[t](e._strict,e._locale):new RegExp(function(t){return lt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,r,n,i){return e||r||n||i})))}(t))}function lt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ft(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function mt(t){var e=+t,r=0;return 0!==e&&isFinite(e)&&(r=ft(e)),r}W={};var pt={};function _t(t,e){var r,n,i=e;for("string"==typeof t&&(t=[t]),d(e)&&(i=function(t,r){r[e]=mt(t)}),n=t.length,r=0;r<n;r++)pt[t[r]]=i}function yt(t,e){_t(t,(function(t,r,n,i){n._w=n._w||{},e(t,n._w,n,i)}))}function vt(t,e,r){null!=e&&u(pt,t)&&pt[t](e,r._a,r,t)}function gt(t){return t%4==0&&t%100!=0||t%400==0}var bt=0,Mt=1,wt=2,kt=3,Lt=4,St=5,xt=6,Yt=7,Tt=8;function Dt(t){return gt(t)?366:365}I("Y",0,0,(function(){var t=this.year();return t<=9999?A(t,4):"+"+t})),I(0,["YY",2],0,(function(){return this.year()%100})),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),ct("Y",it),ct("YY",$,G),ct("YYYY",et,V),ct("YYYYY",rt,Z),ct("YYYYYY",rt,Z),_t(["YYYYY","YYYYYY"],bt),_t("YYYY",(function(t,e){e[bt]=2===t.length?s.parseTwoDigitYear(t):mt(t)})),_t("YY",(function(t,e){e[bt]=s.parseTwoDigitYear(t)})),_t("Y",(function(t,e){e[bt]=parseInt(t,10)})),s.parseTwoDigitYear=function(t){return mt(t)+(mt(t)>68?1900:2e3)};var Et,jt=At("FullYear",!0);function At(t,e){return function(r){return null!=r?(Pt(this,t,r),s.updateOffset(this,e),this):Ot(this,t)}}function Ot(t,e){if(!t.isValid())return NaN;var r=t._d,n=t._isUTC;switch(e){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function Pt(t,e,r){var n,i,s,a,o;if(t.isValid()&&!isNaN(r)){switch(n=t._d,i=t._isUTC,e){case"Milliseconds":return void(i?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(i?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(i?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(i?n.setUTCHours(r):n.setHours(r));case"Date":return void(i?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}s=r,a=t.month(),o=29!==(o=t.date())||1!==a||gt(s)?o:28,i?n.setUTCFullYear(s,a,o):n.setFullYear(s,a,o)}}function Rt(t,e){if(isNaN(t)||isNaN(e))return NaN;var r=function(t,e){return(t%e+e)%e}(e,12);return t+=(e-r)/12,1===r?gt(t)?29:28:31-r%7%2}Et=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},I("M",["MM",2],"Mo",(function(){return this.month()+1})),I("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),I("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),ct("M",$,ut),ct("MM",$,G),ct("MMM",(function(t,e){return e.monthsShortRegex(t)})),ct("MMMM",(function(t,e){return e.monthsRegex(t)})),_t(["M","MM"],(function(t,e){e[Mt]=mt(t)-1})),_t(["MMM","MMMM"],(function(t,e,r,n){var i=r._locale.monthsParse(t,n,r._strict);null!=i?e[Mt]=i:_(r).invalidMonth=t}));var Ht="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),It="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ct=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Nt=ot,Bt=ot;function qt(t,e,r){var n,i,s,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)s=p([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(s,"").toLocaleLowerCase();return r?"MMM"===e?-1!==(i=Et.call(this._shortMonthsParse,a))?i:null:-1!==(i=Et.call(this._longMonthsParse,a))?i:null:"MMM"===e?-1!==(i=Et.call(this._shortMonthsParse,a))||-1!==(i=Et.call(this._longMonthsParse,a))?i:null:-1!==(i=Et.call(this._longMonthsParse,a))||-1!==(i=Et.call(this._shortMonthsParse,a))?i:null}function Ft(t,e){if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=mt(e);else if(!d(e=t.localeData().monthsParse(e)))return t;var r=e,n=t.date();return n=n<29?n:Math.min(n,Rt(t.year(),r)),t._isUTC?t._d.setUTCMonth(r,n):t._d.setMonth(r,n),t}function Ut(t){return null!=t?(Ft(this,t),s.updateOffset(this,!0),this):Ot(this,"Month")}function zt(){function t(t,e){return e.length-t.length}var e,r,n,i,s=[],a=[],o=[];for(e=0;e<12;e++)r=p([2e3,e]),n=lt(this.monthsShort(r,"")),i=lt(this.months(r,"")),s.push(n),a.push(i),o.push(i),o.push(n);s.sort(t),a.sort(t),o.sort(t),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Wt(t,e,r,n,i,s,a){var o;return t<100&&t>=0?(o=new Date(t+400,e,r,n,i,s,a),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,e,r,n,i,s,a),o}function Jt(t){var e,r;return t<100&&t>=0?((r=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,r)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Gt(t,e,r){var n=7+e-r;return-(7+Jt(t,0,n).getUTCDay()-e)%7+n-1}function Kt(t,e,r,n,i){var s,a,o=1+7*(e-1)+(7+r-n)%7+Gt(t,n,i);return o<=0?a=Dt(s=t-1)+o:o>Dt(t)?(s=t+1,a=o-Dt(t)):(s=t,a=o),{year:s,dayOfYear:a}}function Vt(t,e,r){var n,i,s=Gt(t.year(),e,r),a=Math.floor((t.dayOfYear()-s-1)/7)+1;return a<1?n=a+Zt(i=t.year()-1,e,r):a>Zt(t.year(),e,r)?(n=a-Zt(t.year(),e,r),i=t.year()+1):(i=t.year(),n=a),{week:n,year:i}}function Zt(t,e,r){var n=Gt(t,e,r),i=Gt(t+1,e,r);return(Dt(t)-n+i)/7}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),ct("w",$,ut),ct("ww",$,G),ct("W",$,ut),ct("WW",$,G),yt(["w","ww","W","WW"],(function(t,e,r,n){e[n.substr(0,1)]=mt(t)}));function $t(t,e){return t.slice(e,7).concat(t.slice(0,e))}I("d",0,"do","day"),I("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),I("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),I("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),ct("d",$),ct("e",$),ct("E",$),ct("dd",(function(t,e){return e.weekdaysMinRegex(t)})),ct("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),ct("dddd",(function(t,e){return e.weekdaysRegex(t)})),yt(["dd","ddd","dddd"],(function(t,e,r,n){var i=r._locale.weekdaysParse(t,n,r._strict);null!=i?e.d=i:_(r).invalidWeekday=t})),yt(["d","e","E"],(function(t,e,r,n){e[n]=mt(t)}));var Xt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Qt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),te="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ee=ot,re=ot,ne=ot;function ie(t,e,r){var n,i,s,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)s=p([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(s,"").toLocaleLowerCase();return r?"dddd"===e?-1!==(i=Et.call(this._weekdaysParse,a))?i:null:"ddd"===e?-1!==(i=Et.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Et.call(this._minWeekdaysParse,a))?i:null:"dddd"===e?-1!==(i=Et.call(this._weekdaysParse,a))||-1!==(i=Et.call(this._shortWeekdaysParse,a))||-1!==(i=Et.call(this._minWeekdaysParse,a))?i:null:"ddd"===e?-1!==(i=Et.call(this._shortWeekdaysParse,a))||-1!==(i=Et.call(this._weekdaysParse,a))||-1!==(i=Et.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Et.call(this._minWeekdaysParse,a))||-1!==(i=Et.call(this._weekdaysParse,a))||-1!==(i=Et.call(this._shortWeekdaysParse,a))?i:null}function se(){function t(t,e){return e.length-t.length}var e,r,n,i,s,a=[],o=[],u=[],h=[];for(e=0;e<7;e++)r=p([2e3,1]).day(e),n=lt(this.weekdaysMin(r,"")),i=lt(this.weekdaysShort(r,"")),s=lt(this.weekdays(r,"")),a.push(n),o.push(i),u.push(s),h.push(n),h.push(i),h.push(s);a.sort(t),o.sort(t),u.sort(t),h.sort(t),this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ae(){return this.hours()%12||12}function oe(t,e){I(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function ue(t,e){return e._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,ae),I("k",["kk",2],0,(function(){return this.hours()||24})),I("hmm",0,0,(function(){return""+ae.apply(this)+A(this.minutes(),2)})),I("hmmss",0,0,(function(){return""+ae.apply(this)+A(this.minutes(),2)+A(this.seconds(),2)})),I("Hmm",0,0,(function(){return""+this.hours()+A(this.minutes(),2)})),I("Hmmss",0,0,(function(){return""+this.hours()+A(this.minutes(),2)+A(this.seconds(),2)})),oe("a",!0),oe("A",!1),ct("a",ue),ct("A",ue),ct("H",$,ht),ct("h",$,ut),ct("k",$,ut),ct("HH",$,G),ct("hh",$,G),ct("kk",$,G),ct("hmm",X),ct("hmmss",Q),ct("Hmm",X),ct("Hmmss",Q),_t(["H","HH"],kt),_t(["k","kk"],(function(t,e,r){var n=mt(t);e[kt]=24===n?0:n})),_t(["a","A"],(function(t,e,r){r._isPm=r._locale.isPM(t),r._meridiem=t})),_t(["h","hh"],(function(t,e,r){e[kt]=mt(t),_(r).bigHour=!0})),_t("hmm",(function(t,e,r){var n=t.length-2;e[kt]=mt(t.substr(0,n)),e[Lt]=mt(t.substr(n)),_(r).bigHour=!0})),_t("hmmss",(function(t,e,r){var n=t.length-4,i=t.length-2;e[kt]=mt(t.substr(0,n)),e[Lt]=mt(t.substr(n,2)),e[St]=mt(t.substr(i)),_(r).bigHour=!0})),_t("Hmm",(function(t,e,r){var n=t.length-2;e[kt]=mt(t.substr(0,n)),e[Lt]=mt(t.substr(n))})),_t("Hmmss",(function(t,e,r){var n=t.length-4,i=t.length-2;e[kt]=mt(t.substr(0,n)),e[Lt]=mt(t.substr(n,2)),e[St]=mt(t.substr(i))}));var he=At("Hours",!0);var ce,de={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ht,monthsShort:It,week:{dow:0,doy:6},weekdays:Xt,weekdaysMin:te,weekdaysShort:Qt,meridiemParse:/[ap]\.?m?\.?/i},le={},fe={};function me(t,e){var r,n=Math.min(t.length,e.length);for(r=0;r<n;r+=1)if(t[r]!==e[r])return r;return n}function pe(t){return t?t.toLowerCase().replace("_","-"):t}function _e(e){var n=null;if(void 0===le[e]&&t&&t.exports&&function(t){return!(!t||!t.match("^[^/\\\\]*$"))}(e))try{n=ce._abbr,r(58)("./"+e),ye(n)}catch(t){le[e]=null}return le[e]}function ye(t,e){var r;return t&&((r=c(e)?ge(t):ve(t,e))?ce=r:void 0!==n&&n.warn&&n.warn("Locale "+t+" not found. Did you forget to load it?")),ce._abbr}function ve(t,e){if(null!==e){var r,n=de;if(e.abbr=t,null!=le[t])T("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=le[t]._config;else if(null!=e.parentLocale)if(null!=le[e.parentLocale])n=le[e.parentLocale]._config;else{if(null==(r=_e(e.parentLocale)))return fe[e.parentLocale]||(fe[e.parentLocale]=[]),fe[e.parentLocale].push({name:t,config:e}),null;n=r._config}return le[t]=new j(E(n,e)),fe[t]&&fe[t].forEach((function(t){ve(t.name,t.config)})),ye(t),le[t]}return delete le[t],null}function ge(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ce;if(!a(t)){if(e=_e(t))return e;t=[t]}return function(t){for(var e,r,n,i,s=0;s<t.length;){for(e=(i=pe(t[s]).split("-")).length,r=(r=pe(t[s+1]))?r.split("-"):null;e>0;){if(n=_e(i.slice(0,e).join("-")))return n;if(r&&r.length>=e&&me(i,r)>=e-1)break;e--}s++}return ce}(t)}function be(t){var e,r=t._a;return r&&-2===_(t).overflow&&(e=r[Mt]<0||r[Mt]>11?Mt:r[wt]<1||r[wt]>Rt(r[bt],r[Mt])?wt:r[kt]<0||r[kt]>24||24===r[kt]&&(0!==r[Lt]||0!==r[St]||0!==r[xt])?kt:r[Lt]<0||r[Lt]>59?Lt:r[St]<0||r[St]>59?St:r[xt]<0||r[xt]>999?xt:-1,_(t)._overflowDayOfYear&&(e<bt||e>wt)&&(e=wt),_(t)._overflowWeeks&&-1===e&&(e=Yt),_(t)._overflowWeekday&&-1===e&&(e=Tt),_(t).overflow=e),t}var Me=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,we=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ke=/Z|[+-]\d\d(?::?\d\d)?/,Le=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Se=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],xe=/^\/?Date\((-?\d+)/i,Ye=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Te={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function De(t){var e,r,n,i,s,a,o=t._i,u=Me.exec(o)||we.exec(o),h=Le.length,c=Se.length;if(u){for(_(t).iso=!0,e=0,r=h;e<r;e++)if(Le[e][1].exec(u[1])){i=Le[e][0],n=!1!==Le[e][2];break}if(null==i)return void(t._isValid=!1);if(u[3]){for(e=0,r=c;e<r;e++)if(Se[e][1].exec(u[3])){s=(u[2]||" ")+Se[e][0];break}if(null==s)return void(t._isValid=!1)}if(!n&&null!=s)return void(t._isValid=!1);if(u[4]){if(!ke.exec(u[4]))return void(t._isValid=!1);a="Z"}t._f=i+(s||"")+(a||""),Re(t)}else t._isValid=!1}function Ee(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function je(t){var e,r=Ye.exec(function(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(t._i));if(r){if(e=function(t,e,r,n,i,s){var a=[Ee(t),It.indexOf(e),parseInt(r,10),parseInt(n,10),parseInt(i,10)];return s&&a.push(parseInt(s,10)),a}(r[4],r[3],r[2],r[5],r[6],r[7]),!function(t,e,r){return!t||Qt.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(_(r).weekdayMismatch=!0,r._isValid=!1,!1)}(r[1],e,t))return;t._a=e,t._tzm=function(t,e,r){if(t)return Te[t];if(e)return 0;var n=parseInt(r,10),i=n%100;return(n-i)/100*60+i}(r[8],r[9],r[10]),t._d=Jt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),_(t).rfc2822=!0}else t._isValid=!1}function Ae(t,e,r){return null!=t?t:null!=e?e:r}function Oe(t){var e=new Date(s.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function Pe(t){var e,r,n,i,s,a=[];if(!t._d){for(n=Oe(t),t._w&&null==t._a[wt]&&null==t._a[Mt]&&function(t){var e,r,n,i,s,a,o,u,h;null!=(e=t._w).GG||null!=e.W||null!=e.E?(s=1,a=4,r=Ae(e.GG,t._a[bt],Vt(Ce(),1,4).year),n=Ae(e.W,1),((i=Ae(e.E,1))<1||i>7)&&(u=!0)):(s=t._locale._week.dow,a=t._locale._week.doy,h=Vt(Ce(),s,a),r=Ae(e.gg,t._a[bt],h.year),n=Ae(e.w,h.week),null!=e.d?((i=e.d)<0||i>6)&&(u=!0):null!=e.e?(i=e.e+s,(e.e<0||e.e>6)&&(u=!0)):i=s),n<1||n>Zt(r,s,a)?_(t)._overflowWeeks=!0:null!=u?_(t)._overflowWeekday=!0:(o=Kt(r,n,i,s,a),t._a[bt]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(s=Ae(t._a[bt],n[bt]),(t._dayOfYear>Dt(s)||0===t._dayOfYear)&&(_(t)._overflowDayOfYear=!0),r=Jt(s,0,t._dayOfYear),t._a[Mt]=r.getUTCMonth(),t._a[wt]=r.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=n[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[kt]&&0===t._a[Lt]&&0===t._a[St]&&0===t._a[xt]&&(t._nextDay=!0,t._a[kt]=0),t._d=(t._useUTC?Jt:Wt).apply(null,a),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[kt]=24),t._w&&void 0!==t._w.d&&t._w.d!==i&&(_(t).weekdayMismatch=!0)}}function Re(t){if(t._f!==s.ISO_8601)if(t._f!==s.RFC_2822){t._a=[],_(t).empty=!0;var e,r,n,i,a,o,u,h=""+t._i,c=h.length,d=0;for(u=(n=B(t._f,t._locale).match(O)||[]).length,e=0;e<u;e++)i=n[e],(r=(h.match(dt(i,t))||[])[0])&&((a=h.substr(0,h.indexOf(r))).length>0&&_(t).unusedInput.push(a),h=h.slice(h.indexOf(r)+r.length),d+=r.length),H[i]?(r?_(t).empty=!1:_(t).unusedTokens.push(i),vt(i,r,t)):t._strict&&!r&&_(t).unusedTokens.push(i);_(t).charsLeftOver=c-d,h.length>0&&_(t).unusedInput.push(h),t._a[kt]<=12&&!0===_(t).bigHour&&t._a[kt]>0&&(_(t).bigHour=void 0),_(t).parsedDateParts=t._a.slice(0),_(t).meridiem=t._meridiem,t._a[kt]=function(t,e,r){var n;return null==r?e:null!=t.meridiemHour?t.meridiemHour(e,r):null!=t.isPM?((n=t.isPM(r))&&e<12&&(e+=12),n||12!==e||(e=0),e):e}(t._locale,t._a[kt],t._meridiem),null!==(o=_(t).era)&&(t._a[bt]=t._locale.erasConvertYear(o,t._a[bt])),Pe(t),be(t)}else je(t);else De(t)}function He(t){var e=t._i,r=t._f;return t._locale=t._locale||ge(t._l),null===e||void 0===r&&""===e?v({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),k(e)?new w(be(e)):(l(e)?t._d=e:a(r)?function(t){var e,r,n,i,s,a,o=!1,u=t._f.length;if(0===u)return _(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;i<u;i++)s=0,a=!1,e=M({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],Re(e),y(e)&&(a=!0),s+=_(e).charsLeftOver,s+=10*_(e).unusedTokens.length,_(e).score=s,o?s<n&&(n=s,r=e):(null==n||s<n||a)&&(n=s,r=e,a&&(o=!0));m(t,r||e)}(t):r?Re(t):function(t){var e=t._i;c(e)?t._d=new Date(s.now()):l(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=xe.exec(t._i);null===e?(De(t),!1===t._isValid&&(delete t._isValid,je(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:s.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):a(e)?(t._a=f(e.slice(0),(function(t){return parseInt(t,10)})),Pe(t)):o(e)?function(t){if(!t._d){var e=U(t._i),r=void 0===e.day?e.date:e.day;t._a=f([e.year,e.month,r,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),Pe(t)}}(t):d(e)?t._d=new Date(e):s.createFromInputFallback(t)}(t),y(t)||(t._d=null),t))}function Ie(t,e,r,n,i){var s={};return!0!==e&&!1!==e||(n=e,e=void 0),!0!==r&&!1!==r||(n=r,r=void 0),(o(t)&&h(t)||a(t)&&0===t.length)&&(t=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=r,s._i=t,s._f=e,s._strict=n,function(t){var e=new w(be(He(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}(s)}function Ce(t,e,r,n){return Ie(t,e,r,n,!1)}s.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),s.ISO_8601=function(){},s.RFC_2822=function(){};var Ne=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Ce.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:v()})),Be=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Ce.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:v()}));function qe(t,e){var r,n;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return Ce();for(r=e[0],n=1;n<e.length;++n)e[n].isValid()&&!e[n][t](r)||(r=e[n]);return r}var Fe=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ue(t){var e,r,n=!1,i=Fe.length;for(e in t)if(u(t,e)&&(-1===Et.call(Fe,e)||null!=t[e]&&isNaN(t[e])))return!1;for(r=0;r<i;++r)if(t[Fe[r]]){if(n)return!1;parseFloat(t[Fe[r]])!==mt(t[Fe[r]])&&(n=!0)}return!0}function ze(t){var e=U(t),r=e.year||0,n=e.quarter||0,i=e.month||0,s=e.week||e.isoWeek||0,a=e.day||0,o=e.hour||0,u=e.minute||0,h=e.second||0,c=e.millisecond||0;this._isValid=Ue(e),this._milliseconds=+c+1e3*h+6e4*u+1e3*o*60*60,this._days=+a+7*s,this._months=+i+3*n+12*r,this._data={},this._locale=ge(),this._bubble()}function We(t){return t instanceof ze}function Je(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ge(t,e){I(t,0,0,(function(){var t=this.utcOffset(),r="+";return t<0&&(t=-t,r="-"),r+A(~~(t/60),2)+e+A(~~t%60,2)}))}Ge("Z",":"),Ge("ZZ",""),ct("Z",at),ct("ZZ",at),_t(["Z","ZZ"],(function(t,e,r){r._useUTC=!0,r._tzm=Ve(at,t)}));var Ke=/([\+\-]|\d\d)/gi;function Ve(t,e){var r,n,i=(e||"").match(t);return null===i?null:0===(n=60*(r=((i[i.length-1]||[])+"").match(Ke)||["-",0,0])[1]+mt(r[2]))?0:"+"===r[0]?n:-n}function Ze(t,e){var r,n;return e._isUTC?(r=e.clone(),n=(k(t)||l(t)?t.valueOf():Ce(t).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),s.updateOffset(r,!1),r):Ce(t).local()}function $e(t){return-Math.round(t._d.getTimezoneOffset())}function Xe(){return!!this.isValid()&&this._isUTC&&0===this._offset}s.updateOffset=function(){};var Qe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,tr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function er(t,e){var r,n,i,s=t,a=null;return We(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:d(t)||!isNaN(+t)?(s={},e?s[e]=+t:s.milliseconds=+t):(a=Qe.exec(t))?(r="-"===a[1]?-1:1,s={y:0,d:mt(a[wt])*r,h:mt(a[kt])*r,m:mt(a[Lt])*r,s:mt(a[St])*r,ms:mt(Je(1e3*a[xt]))*r}):(a=tr.exec(t))?(r="-"===a[1]?-1:1,s={y:rr(a[2],r),M:rr(a[3],r),w:rr(a[4],r),d:rr(a[5],r),h:rr(a[6],r),m:rr(a[7],r),s:rr(a[8],r)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(i=function(t,e){var r;return t.isValid()&&e.isValid()?(e=Ze(e,t),t.isBefore(e)?r=nr(t,e):((r=nr(e,t)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}(Ce(s.from),Ce(s.to)),(s={}).ms=i.milliseconds,s.M=i.months),n=new ze(s),We(t)&&u(t,"_locale")&&(n._locale=t._locale),We(t)&&u(t,"_isValid")&&(n._isValid=t._isValid),n}function rr(t,e){var r=t&&parseFloat(t.replace(",","."));return(isNaN(r)?0:r)*e}function nr(t,e){var r={};return r.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(r.months,"M").isAfter(e)&&--r.months,r.milliseconds=+e-+t.clone().add(r.months,"M"),r}function ir(t,e){return function(r,n){var i;return null===n||isNaN(+n)||(T(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),sr(this,er(r,n),t),this}}function sr(t,e,r,n){var i=e._milliseconds,a=Je(e._days),o=Je(e._months);t.isValid()&&(n=null==n||n,o&&Ft(t,Ot(t,"Month")+o*r),a&&Pt(t,"Date",Ot(t,"Date")+a*r),i&&t._d.setTime(t._d.valueOf()+i*r),n&&s.updateOffset(t,a||o))}er.fn=ze.prototype,er.invalid=function(){return er(NaN)};var ar=ir(1,"add"),or=ir(-1,"subtract");function ur(t){return"string"==typeof t||t instanceof String}function hr(t){return k(t)||l(t)||ur(t)||d(t)||function(t){var e=a(t),r=!1;return e&&(r=0===t.filter((function(e){return!d(e)&&ur(t)})).length),e&&r}(t)||function(t){var e,r,n=o(t)&&!h(t),i=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a=s.length;for(e=0;e<a;e+=1)r=s[e],i=i||u(t,r);return n&&i}(t)||null==t}function cr(t,e){if(t.date()<e.date())return-cr(e,t);var r=12*(e.year()-t.year())+(e.month()-t.month()),n=t.clone().add(r,"months");return-(r+(e-n<0?(e-n)/(n-t.clone().add(r-1,"months")):(e-n)/(t.clone().add(r+1,"months")-n)))||0}function dr(t){var e;return void 0===t?this._locale._abbr:(null!=(e=ge(t))&&(this._locale=e),this)}s.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",s.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var lr=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function fr(){return this._locale}var mr=1e3,pr=6e4,_r=60*pr,yr=3506328*_r;function vr(t,e){return(t%e+e)%e}function gr(t,e,r){return t<100&&t>=0?new Date(t+400,e,r)-yr:new Date(t,e,r).valueOf()}function br(t,e,r){return t<100&&t>=0?Date.UTC(t+400,e,r)-yr:Date.UTC(t,e,r)}function Mr(t,e){return e.erasAbbrRegex(t)}function wr(){var t,e,r,n,i,s=[],a=[],o=[],u=[],h=this.eras();for(t=0,e=h.length;t<e;++t)r=lt(h[t].name),n=lt(h[t].abbr),i=lt(h[t].narrow),a.push(r),s.push(n),o.push(i),u.push(r),u.push(n),u.push(i);this._erasRegex=new RegExp("^("+u.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function kr(t,e){I(0,[t,t.length],0,e)}function Lr(t,e,r,n,i){var s;return null==t?Vt(this,n,i).year:(e>(s=Zt(t,n,i))&&(e=s),Sr.call(this,t,e,r,n,i))}function Sr(t,e,r,n,i){var s=Kt(t,e,r,n,i),a=Jt(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}I("N",0,0,"eraAbbr"),I("NN",0,0,"eraAbbr"),I("NNN",0,0,"eraAbbr"),I("NNNN",0,0,"eraName"),I("NNNNN",0,0,"eraNarrow"),I("y",["y",1],"yo","eraYear"),I("y",["yy",2],0,"eraYear"),I("y",["yyy",3],0,"eraYear"),I("y",["yyyy",4],0,"eraYear"),ct("N",Mr),ct("NN",Mr),ct("NNN",Mr),ct("NNNN",(function(t,e){return e.erasNameRegex(t)})),ct("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),_t(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,r,n){var i=r._locale.erasParse(t,n,r._strict);i?_(r).era=i:_(r).invalidEra=t})),ct("y",nt),ct("yy",nt),ct("yyy",nt),ct("yyyy",nt),ct("yo",(function(t,e){return e._eraYearOrdinalRegex||nt})),_t(["y","yy","yyy","yyyy"],bt),_t(["yo"],(function(t,e,r,n){var i;r._locale._eraYearOrdinalRegex&&(i=t.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?e[bt]=r._locale.eraYearOrdinalParse(t,i):e[bt]=parseInt(t,10)})),I(0,["gg",2],0,(function(){return this.weekYear()%100})),I(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),kr("gggg","weekYear"),kr("ggggg","weekYear"),kr("GGGG","isoWeekYear"),kr("GGGGG","isoWeekYear"),ct("G",it),ct("g",it),ct("GG",$,G),ct("gg",$,G),ct("GGGG",et,V),ct("gggg",et,V),ct("GGGGG",rt,Z),ct("ggggg",rt,Z),yt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,r,n){e[n.substr(0,2)]=mt(t)})),yt(["gg","GG"],(function(t,e,r,n){e[n]=s.parseTwoDigitYear(t)})),I("Q",0,"Qo","quarter"),ct("Q",J),_t("Q",(function(t,e){e[Mt]=3*(mt(t)-1)})),I("D",["DD",2],"Do","date"),ct("D",$,ut),ct("DD",$,G),ct("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),_t(["D","DD"],wt),_t("Do",(function(t,e){e[wt]=mt(t.match($)[0])}));var xr=At("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),ct("DDD",tt),ct("DDDD",K),_t(["DDD","DDDD"],(function(t,e,r){r._dayOfYear=mt(t)})),I("m",["mm",2],0,"minute"),ct("m",$,ht),ct("mm",$,G),_t(["m","mm"],Lt);var Yr=At("Minutes",!1);I("s",["ss",2],0,"second"),ct("s",$,ht),ct("ss",$,G),_t(["s","ss"],St);var Tr,Dr,Er=At("Seconds",!1);for(I("S",0,0,(function(){return~~(this.millisecond()/100)})),I(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),I(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),I(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),I(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),I(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),I(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ct("S",tt,J),ct("SS",tt,G),ct("SSS",tt,K),Tr="SSSS";Tr.length<=9;Tr+="S")ct(Tr,nt);function jr(t,e){e[xt]=mt(1e3*("0."+t))}for(Tr="S";Tr.length<=9;Tr+="S")_t(Tr,jr);Dr=At("Milliseconds",!1),I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var Ar=w.prototype;function Or(t){return t}Ar.add=ar,Ar.calendar=function(t,e){1===arguments.length&&(arguments[0]?hr(arguments[0])?(t=arguments[0],e=void 0):function(t){var e,r=o(t)&&!h(t),n=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<i.length;e+=1)n=n||u(t,i[e]);return r&&n}(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var r=t||Ce(),n=Ze(r,this).startOf("day"),i=s.calendarFormat(this,n)||"sameElse",a=e&&(D(e[i])?e[i].call(this,r):e[i]);return this.format(a||this.localeData().calendar(i,this,Ce(r)))},Ar.clone=function(){return new w(this)},Ar.diff=function(t,e,r){var n,i,s;if(!this.isValid())return NaN;if(!(n=Ze(t,this)).isValid())return NaN;switch(i=6e4*(n.utcOffset()-this.utcOffset()),e=F(e)){case"year":s=cr(this,n)/12;break;case"month":s=cr(this,n);break;case"quarter":s=cr(this,n)/3;break;case"second":s=(this-n)/1e3;break;case"minute":s=(this-n)/6e4;break;case"hour":s=(this-n)/36e5;break;case"day":s=(this-n-i)/864e5;break;case"week":s=(this-n-i)/6048e5;break;default:s=this-n}return r?s:ft(s)},Ar.endOf=function(t){var e,r;if(void 0===(t=F(t))||"millisecond"===t||!this.isValid())return this;switch(r=this._isUTC?br:gr,t){case"year":e=r(this.year()+1,0,1)-1;break;case"quarter":e=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=r(this.year(),this.month()+1,1)-1;break;case"week":e=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=_r-vr(e+(this._isUTC?0:this.utcOffset()*pr),_r)-1;break;case"minute":e=this._d.valueOf(),e+=pr-vr(e,pr)-1;break;case"second":e=this._d.valueOf(),e+=mr-vr(e,mr)-1}return this._d.setTime(e),s.updateOffset(this,!0),this},Ar.format=function(t){t||(t=this.isUtc()?s.defaultFormatUtc:s.defaultFormat);var e=N(this,t);return this.localeData().postformat(e)},Ar.from=function(t,e){return this.isValid()&&(k(t)&&t.isValid()||Ce(t).isValid())?er({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Ar.fromNow=function(t){return this.from(Ce(),t)},Ar.to=function(t,e){return this.isValid()&&(k(t)&&t.isValid()||Ce(t).isValid())?er({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Ar.toNow=function(t){return this.to(Ce(),t)},Ar.get=function(t){return D(this[t=F(t)])?this[t]():this},Ar.invalidAt=function(){return _(this).overflow},Ar.isAfter=function(t,e){var r=k(t)?t:Ce(t);return!(!this.isValid()||!r.isValid())&&("millisecond"===(e=F(e)||"millisecond")?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(e).valueOf())},Ar.isBefore=function(t,e){var r=k(t)?t:Ce(t);return!(!this.isValid()||!r.isValid())&&("millisecond"===(e=F(e)||"millisecond")?this.valueOf()<r.valueOf():this.clone().endOf(e).valueOf()<r.valueOf())},Ar.isBetween=function(t,e,r,n){var i=k(t)?t:Ce(t),s=k(e)?e:Ce(e);return!!(this.isValid()&&i.isValid()&&s.isValid())&&("("===(n=n||"()")[0]?this.isAfter(i,r):!this.isBefore(i,r))&&(")"===n[1]?this.isBefore(s,r):!this.isAfter(s,r))},Ar.isSame=function(t,e){var r,n=k(t)?t:Ce(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=F(e)||"millisecond")?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(e).valueOf()<=r&&r<=this.clone().endOf(e).valueOf()))},Ar.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},Ar.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},Ar.isValid=function(){return y(this)},Ar.lang=lr,Ar.locale=dr,Ar.localeData=fr,Ar.max=Be,Ar.min=Ne,Ar.parsingFlags=function(){return m({},_(this))},Ar.set=function(t,e){if("object"==typeof t){var r,n=function(t){var e,r=[];for(e in t)u(t,e)&&r.push({unit:e,priority:z[e]});return r.sort((function(t,e){return t.priority-e.priority})),r}(t=U(t)),i=n.length;for(r=0;r<i;r++)this[n[r].unit](t[n[r].unit])}else if(D(this[t=F(t)]))return this[t](e);return this},Ar.startOf=function(t){var e,r;if(void 0===(t=F(t))||"millisecond"===t||!this.isValid())return this;switch(r=this._isUTC?br:gr,t){case"year":e=r(this.year(),0,1);break;case"quarter":e=r(this.year(),this.month()-this.month()%3,1);break;case"month":e=r(this.year(),this.month(),1);break;case"week":e=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=r(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=vr(e+(this._isUTC?0:this.utcOffset()*pr),_r);break;case"minute":e=this._d.valueOf(),e-=vr(e,pr);break;case"second":e=this._d.valueOf(),e-=vr(e,mr)}return this._d.setTime(e),s.updateOffset(this,!0),this},Ar.subtract=or,Ar.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Ar.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},Ar.toDate=function(){return new Date(this.valueOf())},Ar.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,r=e?this.clone().utc():this;return r.year()<0||r.year()>9999?N(r,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):D(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",N(r,"Z")):N(r,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Ar.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,r,n="moment",i="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),t="["+n+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r=i+'[")]',this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+r)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Ar[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Ar.toJSON=function(){return this.isValid()?this.toISOString():null},Ar.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Ar.unix=function(){return Math.floor(this.valueOf()/1e3)},Ar.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Ar.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Ar.eraName=function(){var t,e,r,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(r=this.clone().startOf("day").valueOf(),n[t].since<=r&&r<=n[t].until)return n[t].name;if(n[t].until<=r&&r<=n[t].since)return n[t].name}return""},Ar.eraNarrow=function(){var t,e,r,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(r=this.clone().startOf("day").valueOf(),n[t].since<=r&&r<=n[t].until)return n[t].narrow;if(n[t].until<=r&&r<=n[t].since)return n[t].narrow}return""},Ar.eraAbbr=function(){var t,e,r,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(r=this.clone().startOf("day").valueOf(),n[t].since<=r&&r<=n[t].until)return n[t].abbr;if(n[t].until<=r&&r<=n[t].since)return n[t].abbr}return""},Ar.eraYear=function(){var t,e,r,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t)if(r=i[t].since<=i[t].until?1:-1,n=this.clone().startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until||i[t].until<=n&&n<=i[t].since)return(this.year()-s(i[t].since).year())*r+i[t].offset;return this.year()},Ar.year=jt,Ar.isLeapYear=function(){return gt(this.year())},Ar.weekYear=function(t){return Lr.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},Ar.isoWeekYear=function(t){return Lr.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Ar.quarter=Ar.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Ar.month=Ut,Ar.daysInMonth=function(){return Rt(this.year(),this.month())},Ar.week=Ar.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},Ar.isoWeek=Ar.isoWeeks=function(t){var e=Vt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},Ar.weeksInYear=function(){var t=this.localeData()._week;return Zt(this.year(),t.dow,t.doy)},Ar.weeksInWeekYear=function(){var t=this.localeData()._week;return Zt(this.weekYear(),t.dow,t.doy)},Ar.isoWeeksInYear=function(){return Zt(this.year(),1,4)},Ar.isoWeeksInISOWeekYear=function(){return Zt(this.isoWeekYear(),1,4)},Ar.date=xr,Ar.day=Ar.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=Ot(this,"Day");return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},Ar.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},Ar.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},Ar.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},Ar.hour=Ar.hours=he,Ar.minute=Ar.minutes=Yr,Ar.second=Ar.seconds=Er,Ar.millisecond=Ar.milliseconds=Dr,Ar.utcOffset=function(t,e,r){var n,i=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Ve(at,t)))return this}else Math.abs(t)<16&&!r&&(t*=60);return!this._isUTC&&e&&(n=$e(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),i!==t&&(!e||this._changeInProgress?sr(this,er(t-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,s.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:$e(this)},Ar.utc=function(t){return this.utcOffset(0,t)},Ar.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract($e(this),"m")),this},Ar.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Ve(st,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},Ar.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Ce(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Ar.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Ar.isLocal=function(){return!!this.isValid()&&!this._isUTC},Ar.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Ar.isUtc=Xe,Ar.isUTC=Xe,Ar.zoneAbbr=function(){return this._isUTC?"UTC":""},Ar.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Ar.dates=S("dates accessor is deprecated. Use date instead.",xr),Ar.months=S("months accessor is deprecated. Use month instead",Ut),Ar.years=S("years accessor is deprecated. Use year instead",jt),Ar.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),Ar.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!c(this._isDSTShifted))return this._isDSTShifted;var t,e={};return M(e,this),(e=He(e))._a?(t=e._isUTC?p(e._a):Ce(e._a),this._isDSTShifted=this.isValid()&&function(t,e,r){var n,i=Math.min(t.length,e.length),s=Math.abs(t.length-e.length),a=0;for(n=0;n<i;n++)(r&&t[n]!==e[n]||!r&&mt(t[n])!==mt(e[n]))&&a++;return a+s}(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Pr=j.prototype;function Rr(t,e,r,n){var i=ge(),s=p().set(n,e);return i[r](s,t)}function Hr(t,e,r){if(d(t)&&(e=t,t=void 0),t=t||"",null!=e)return Rr(t,e,r,"month");var n,i=[];for(n=0;n<12;n++)i[n]=Rr(t,n,r,"month");return i}function Ir(t,e,r,n){"boolean"==typeof t?(d(e)&&(r=e,e=void 0),e=e||""):(r=e=t,t=!1,d(e)&&(r=e,e=void 0),e=e||"");var i,s=ge(),a=t?s._week.dow:0,o=[];if(null!=r)return Rr(e,(r+a)%7,n,"day");for(i=0;i<7;i++)o[i]=Rr(e,(i+a)%7,n,"day");return o}Pr.calendar=function(t,e,r){var n=this._calendar[t]||this._calendar.sameElse;return D(n)?n.call(e,r):n},Pr.longDateFormat=function(t){var e=this._longDateFormat[t],r=this._longDateFormat[t.toUpperCase()];return e||!r?e:(this._longDateFormat[t]=r.match(O).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},Pr.invalidDate=function(){return this._invalidDate},Pr.ordinal=function(t){return this._ordinal.replace("%d",t)},Pr.preparse=Or,Pr.postformat=Or,Pr.relativeTime=function(t,e,r,n){var i=this._relativeTime[r];return D(i)?i(t,e,r,n):i.replace(/%d/i,t)},Pr.pastFuture=function(t,e){var r=this._relativeTime[t>0?"future":"past"];return D(r)?r(e):r.replace(/%s/i,e)},Pr.set=function(t){var e,r;for(r in t)u(t,r)&&(D(e=t[r])?this[r]=e:this["_"+r]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Pr.eras=function(t,e){var r,n,i,a=this._eras||ge("en")._eras;for(r=0,n=a.length;r<n;++r)switch("string"==typeof a[r].since&&(i=s(a[r].since).startOf("day"),a[r].since=i.valueOf()),typeof a[r].until){case"undefined":a[r].until=1/0;break;case"string":i=s(a[r].until).startOf("day").valueOf(),a[r].until=i.valueOf()}return a},Pr.erasParse=function(t,e,r){var n,i,s,a,o,u=this.eras();for(t=t.toUpperCase(),n=0,i=u.length;n<i;++n)if(s=u[n].name.toUpperCase(),a=u[n].abbr.toUpperCase(),o=u[n].narrow.toUpperCase(),r)switch(e){case"N":case"NN":case"NNN":if(a===t)return u[n];break;case"NNNN":if(s===t)return u[n];break;case"NNNNN":if(o===t)return u[n]}else if([s,a,o].indexOf(t)>=0)return u[n]},Pr.erasConvertYear=function(t,e){var r=t.since<=t.until?1:-1;return void 0===e?s(t.since).year():s(t.since).year()+(e-t.offset)*r},Pr.erasAbbrRegex=function(t){return u(this,"_erasAbbrRegex")||wr.call(this),t?this._erasAbbrRegex:this._erasRegex},Pr.erasNameRegex=function(t){return u(this,"_erasNameRegex")||wr.call(this),t?this._erasNameRegex:this._erasRegex},Pr.erasNarrowRegex=function(t){return u(this,"_erasNarrowRegex")||wr.call(this),t?this._erasNarrowRegex:this._erasRegex},Pr.months=function(t,e){return t?a(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Ct).test(e)?"format":"standalone"][t.month()]:a(this._months)?this._months:this._months.standalone},Pr.monthsShort=function(t,e){return t?a(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Ct.test(e)?"format":"standalone"][t.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Pr.monthsParse=function(t,e,r){var n,i,s;if(this._monthsParseExact)return qt.call(this,t,e,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(i=p([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),r||this._monthsParse[n]||(s="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[n]=new RegExp(s.replace(".",""),"i")),r&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(r&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!r&&this._monthsParse[n].test(t))return n}},Pr.monthsRegex=function(t){return this._monthsParseExact?(u(this,"_monthsRegex")||zt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=Bt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Pr.monthsShortRegex=function(t){return this._monthsParseExact?(u(this,"_monthsRegex")||zt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=Nt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Pr.week=function(t){return Vt(t,this._week.dow,this._week.doy).week},Pr.firstDayOfYear=function(){return this._week.doy},Pr.firstDayOfWeek=function(){return this._week.dow},Pr.weekdays=function(t,e){var r=a(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?$t(r,this._week.dow):t?r[t.day()]:r},Pr.weekdaysMin=function(t){return!0===t?$t(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Pr.weekdaysShort=function(t){return!0===t?$t(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Pr.weekdaysParse=function(t,e,r){var n,i,s;if(this._weekdaysParseExact)return ie.call(this,t,e,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(i=p([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(s="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[n]=new RegExp(s.replace(".",""),"i")),r&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(r&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(r&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!r&&this._weekdaysParse[n].test(t))return n}},Pr.weekdaysRegex=function(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||se.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=ee),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Pr.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||se.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=re),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Pr.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||se.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ne),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Pr.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Pr.meridiem=function(t,e,r){return t>11?r?"pm":"PM":r?"am":"AM"},ye("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===mt(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),s.lang=S("moment.lang is deprecated. Use moment.locale instead.",ye),s.langData=S("moment.langData is deprecated. Use moment.localeData instead.",ge);var Cr=Math.abs;function Nr(t,e,r,n){var i=er(e,r);return t._milliseconds+=n*i._milliseconds,t._days+=n*i._days,t._months+=n*i._months,t._bubble()}function Br(t){return t<0?Math.floor(t):Math.ceil(t)}function qr(t){return 4800*t/146097}function Fr(t){return 146097*t/4800}function Ur(t){return function(){return this.as(t)}}var zr=Ur("ms"),Wr=Ur("s"),Jr=Ur("m"),Gr=Ur("h"),Kr=Ur("d"),Vr=Ur("w"),Zr=Ur("M"),$r=Ur("Q"),Xr=Ur("y"),Qr=zr;function tn(t){return function(){return this.isValid()?this._data[t]:NaN}}var en=tn("milliseconds"),rn=tn("seconds"),nn=tn("minutes"),sn=tn("hours"),an=tn("days"),on=tn("months"),un=tn("years");var hn=Math.round,cn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function dn(t,e,r,n,i){return i.relativeTime(e||1,!!r,t,n)}var ln=Math.abs;function fn(t){return(t>0)-(t<0)||+t}function mn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,r,n,i,s,a,o,u=ln(this._milliseconds)/1e3,h=ln(this._days),c=ln(this._months),d=this.asSeconds();return d?(t=ft(u/60),e=ft(t/60),u%=60,t%=60,r=ft(c/12),c%=12,n=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",s=fn(this._months)!==fn(d)?"-":"",a=fn(this._days)!==fn(d)?"-":"",o=fn(this._milliseconds)!==fn(d)?"-":"",i+"P"+(r?s+r+"Y":"")+(c?s+c+"M":"")+(h?a+h+"D":"")+(e||t||u?"T":"")+(e?o+e+"H":"")+(t?o+t+"M":"")+(u?o+n+"S":"")):"P0D"}var pn=ze.prototype;return pn.isValid=function(){return this._isValid},pn.abs=function(){var t=this._data;return this._milliseconds=Cr(this._milliseconds),this._days=Cr(this._days),this._months=Cr(this._months),t.milliseconds=Cr(t.milliseconds),t.seconds=Cr(t.seconds),t.minutes=Cr(t.minutes),t.hours=Cr(t.hours),t.months=Cr(t.months),t.years=Cr(t.years),this},pn.add=function(t,e){return Nr(this,t,e,1)},pn.subtract=function(t,e){return Nr(this,t,e,-1)},pn.as=function(t){if(!this.isValid())return NaN;var e,r,n=this._milliseconds;if("month"===(t=F(t))||"quarter"===t||"year"===t)switch(e=this._days+n/864e5,r=this._months+qr(e),t){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(e=this._days+Math.round(Fr(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}},pn.asMilliseconds=zr,pn.asSeconds=Wr,pn.asMinutes=Jr,pn.asHours=Gr,pn.asDays=Kr,pn.asWeeks=Vr,pn.asMonths=Zr,pn.asQuarters=$r,pn.asYears=Xr,pn.valueOf=Qr,pn._bubble=function(){var t,e,r,n,i,s=this._milliseconds,a=this._days,o=this._months,u=this._data;return s>=0&&a>=0&&o>=0||s<=0&&a<=0&&o<=0||(s+=864e5*Br(Fr(o)+a),a=0,o=0),u.milliseconds=s%1e3,t=ft(s/1e3),u.seconds=t%60,e=ft(t/60),u.minutes=e%60,r=ft(e/60),u.hours=r%24,a+=ft(r/24),o+=i=ft(qr(a)),a-=Br(Fr(i)),n=ft(o/12),o%=12,u.days=a,u.months=o,u.years=n,this},pn.clone=function(){return er(this)},pn.get=function(t){return t=F(t),this.isValid()?this[t+"s"]():NaN},pn.milliseconds=en,pn.seconds=rn,pn.minutes=nn,pn.hours=sn,pn.days=an,pn.weeks=function(){return ft(this.days()/7)},pn.months=on,pn.years=un,pn.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var r,n,i=!1,s=cn;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(i=t),"object"==typeof e&&(s=Object.assign({},cn,e),null!=e.s&&null==e.ss&&(s.ss=e.s-1)),n=function(t,e,r,n){var i=er(t).abs(),s=hn(i.as("s")),a=hn(i.as("m")),o=hn(i.as("h")),u=hn(i.as("d")),h=hn(i.as("M")),c=hn(i.as("w")),d=hn(i.as("y")),l=s<=r.ss&&["s",s]||s<r.s&&["ss",s]||a<=1&&["m"]||a<r.m&&["mm",a]||o<=1&&["h"]||o<r.h&&["hh",o]||u<=1&&["d"]||u<r.d&&["dd",u];return null!=r.w&&(l=l||c<=1&&["w"]||c<r.w&&["ww",c]),(l=l||h<=1&&["M"]||h<r.M&&["MM",h]||d<=1&&["y"]||["yy",d])[2]=e,l[3]=+t>0,l[4]=n,dn.apply(null,l)}(this,!i,s,r=this.localeData()),i&&(n=r.pastFuture(+this,n)),r.postformat(n)},pn.toISOString=mn,pn.toString=mn,pn.toJSON=mn,pn.locale=dr,pn.localeData=fr,pn.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",mn),pn.lang=lr,I("X",0,0,"unix"),I("x",0,0,"valueOf"),ct("x",it),ct("X",/[+-]?\d+(\.\d{1,3})?/),_t("X",(function(t,e,r){r._d=new Date(1e3*parseFloat(t))})),_t("x",(function(t,e,r){r._d=new Date(mt(t))})),
  8. //! moment.js
  9. s.version="2.30.1",function(t){e=t}(Ce),s.fn=Ar,s.min=function(){return qe("isBefore",[].slice.call(arguments,0))},s.max=function(){return qe("isAfter",[].slice.call(arguments,0))},s.now=function(){return Date.now?Date.now():+new Date},s.utc=p,s.unix=function(t){return Ce(1e3*t)},s.months=function(t,e){return Hr(t,e,"months")},s.isDate=l,s.locale=ye,s.invalid=v,s.duration=er,s.isMoment=k,s.weekdays=function(t,e,r){return Ir(t,e,r,"weekdays")},s.parseZone=function(){return Ce.apply(null,arguments).parseZone()},s.localeData=ge,s.isDuration=We,s.monthsShort=function(t,e){return Hr(t,e,"monthsShort")},s.weekdaysMin=function(t,e,r){return Ir(t,e,r,"weekdaysMin")},s.defineLocale=ve,s.updateLocale=function(t,e){if(null!=e){var r,n,i=de;null!=le[t]&&null!=le[t].parentLocale?le[t].set(E(le[t]._config,e)):(null!=(n=_e(t))&&(i=n._config),e=E(i,e),null==n&&(e.abbr=t),(r=new j(e)).parentLocale=le[t],le[t]=r),ye(t)}else null!=le[t]&&(null!=le[t].parentLocale?(le[t]=le[t].parentLocale,t===ye()&&ye(t)):null!=le[t]&&delete le[t]);return le[t]},s.locales=function(){return x(le)},s.weekdaysShort=function(t,e,r){return Ir(t,e,r,"weekdaysShort")},s.normalizeUnits=F,s.relativeTimeRounding=function(t){return void 0===t?hn:"function"==typeof t&&(hn=t,!0)},s.relativeTimeThreshold=function(t,e){return void 0!==cn[t]&&(void 0===e?cn[t]:(cn[t]=e,"s"===t&&(cn.ss=e-1),!0))},s.calendarFormat=function(t,e){var r=t.diff(e,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"},s.prototype=Ar,s.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},s}()},(t,e,r)=>{var n=r(5),i=r(40);function s(){return(new Date).getTime()}var a,o=Array.prototype.slice,u={};a=void 0!==r.g&&r.g.console?r.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var h=[[function(){},"log"],[function(){a.log.apply(a,arguments)},"info"],[function(){a.log.apply(a,arguments)},"warn"],[function(){a.warn.apply(a,arguments)},"error"],[function(t){u[t]=s()},"time"],[function(t){if(!u[t])throw new Error("No such label: "+t);delete u[t],s()},"timeEnd"],[function(){var t=new Error;t.name="Trace",t.message=n.format.apply(null,arguments),a.error(t.stack)},"trace"],[function(t){n.inspect(t)},"dir"],[function(t){if(!t){var e=o.call(arguments,1);i.ok(!1,n.format.apply(null,e))}},"assert"]],c=0;c<h.length;c++){var d=h[c],l=d[0],f=d[1];a[f]||(a[f]=l)}t.exports=a},(t,e,r)=>{var n=r(6),i=r(4),s=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++)r[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return r},a=/%[sdj%]/g;e.format=function(t){if(!b(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(c(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,i=n.length,s=String(t).replace(a,(function(t){if("%%"===t)return"%";if(r>=i)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),o=n[r];r<i;o=n[++r])v(o)||!k(o)?s+=" "+o:s+=" "+c(o);return s},e.deprecate=function(t,r){if(void 0!==n&&!0===n.noDeprecation)return t;if(void 0===n)return function(){return e.deprecate(t,r).apply(this,arguments)};var s=!1;return function(){if(!s){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?i.trace(r):i.error(r),s=!0}return t.apply(this,arguments)}};var o={},u=/^$/;if(n.env.NODE_DEBUG){var h=n.env.NODE_DEBUG;h=h.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),u=new RegExp("^"+h+"$","i")}function c(t,r){var n={seen:[],stylize:l};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),y(r)?n.showHidden=r:r&&e._extend(n,r),M(n.showHidden)&&(n.showHidden=!1),M(n.depth)&&(n.depth=2),M(n.colors)&&(n.colors=!1),M(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=d),f(n,t,n.depth)}function d(t,e){var r=c.styles[e];return r?"["+c.colors[r][0]+"m"+t+"["+c.colors[r][1]+"m":t}function l(t,e){return t}function f(t,r,n){if(t.customInspect&&r&&x(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return b(i)||(i=f(t,i,n)),i}var s=function(t,e){if(M(e))return t.stylize("undefined","undefined");if(b(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return g(e)?t.stylize(""+e,"number"):y(e)?t.stylize(""+e,"boolean"):v(e)?t.stylize("null","null"):void 0}(t,r);if(s)return s;var a=Object.keys(r),o=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(r)),S(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return m(r);if(0===a.length){if(x(r)){var u=r.name?": "+r.name:"";return t.stylize("[Function"+u+"]","special")}if(w(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(L(r))return t.stylize(Date.prototype.toString.call(r),"date");if(S(r))return m(r)}var h,c="",d=!1,l=["{","}"];return _(r)&&(d=!0,l=["[","]"]),x(r)&&(c=" [Function"+(r.name?": "+r.name:"")+"]"),w(r)&&(c=" "+RegExp.prototype.toString.call(r)),L(r)&&(c=" "+Date.prototype.toUTCString.call(r)),S(r)&&(c=" "+m(r)),0!==a.length||d&&0!=r.length?n<0?w(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),h=d?function(t,e,r,n,i){for(var s=[],a=0,o=e.length;a<o;++a)E(e,String(a))?s.push(p(t,e,r,n,String(a),!0)):s.push("");return i.forEach((function(i){i.match(/^\d+$/)||s.push(p(t,e,r,n,i,!0))})),s}(t,r,n,o,a):a.map((function(e){return p(t,r,n,o,e,d)})),t.seen.pop(),function(t,e,r){var n=t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return n>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(h,c,l)):l[0]+c+l[1]}function m(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,r,n,i,s){var a,o,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?o=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(o=t.stylize("[Setter]","special")),E(n,i)||(a="["+i+"]"),o||(t.seen.indexOf(u.value)<0?(o=v(r)?f(t,u.value,null):f(t,u.value,r-1)).indexOf("\n")>-1&&(o=s?o.split("\n").map((function(t){return" "+t})).join("\n").slice(2):"\n"+o.split("\n").map((function(t){return" "+t})).join("\n")):o=t.stylize("[Circular]","special")),M(a)){if(s&&i.match(/^\d+$/))return o;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+o}function _(t){return Array.isArray(t)}function y(t){return"boolean"==typeof t}function v(t){return null===t}function g(t){return"number"==typeof t}function b(t){return"string"==typeof t}function M(t){return void 0===t}function w(t){return k(t)&&"[object RegExp]"===Y(t)}function k(t){return"object"==typeof t&&null!==t}function L(t){return k(t)&&"[object Date]"===Y(t)}function S(t){return k(t)&&("[object Error]"===Y(t)||t instanceof Error)}function x(t){return"function"==typeof t}function Y(t){return Object.prototype.toString.call(t)}function T(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!o[t])if(u.test(t)){var r=n.pid;o[t]=function(){var n=e.format.apply(e,arguments);i.error("%s %d: %s",t,r,n)}}else o[t]=function(){};return o[t]},e.inspect=c,c.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]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=r(7),e.isArray=_,e.isBoolean=y,e.isNull=v,e.isNullOrUndefined=function(t){return null==t},e.isNumber=g,e.isString=b,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=M,e.isRegExp=w,e.types.isRegExp=w,e.isObject=k,e.isDate=L,e.types.isDate=L,e.isError=S,e.types.isNativeError=S,e.isFunction=x,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(38);var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,r;r=[T((t=new Date).getHours()),T(t.getMinutes()),T(t.getSeconds())].join(":"),[t.getDate(),D[t.getMonth()],r].join(" "),e.format.apply(e,arguments)},e.inherits=r(39),e._extend=function(t,e){if(!e||!k(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var j="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function A(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(j&&t[j]){var e;if("function"!=typeof(e=t[j]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,j,{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})),i=[],s=0;s<arguments.length;s++)i.push(arguments[s]);i.push((function(t,n){t?r(t):e(n)}));try{t.apply(this,i)}catch(t){r(t)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),j&&Object.defineProperty(e,j,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,s(t))},e.promisify.custom=j,e.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function e(){for(var e=[],r=0;r<arguments.length;r++)e.push(arguments[r]);var i=e.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var s=this,a=function(){return i.apply(s,arguments)};t.apply(this,e).then((function(t){n.nextTick(a.bind(null,null,t))}),(function(t){n.nextTick(A.bind(null,t,a))}))}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,s(t)),e}},t=>{var e,r,n=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var o,u=[],h=!1,c=-1;function d(){h&&o&&(h=!1,o.length?u=o.concat(u):c=-1,u.length&&l())}function l(){if(!h){var t=a(d);h=!0;for(var e=u.length;e;){for(o=u,u=[];++c<e;)o&&o[c].run();c=-1,e=u.length}o=null,h=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{return r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function m(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];u.push(new f(t,e)),1!==u.length||h||a(l)},f.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=m,n.addListener=m,n.once=m,n.off=m,n.removeListener=m,n.removeAllListeners=m,n.emit=m,n.prependListener=m,n.prependOnceListener=m,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},(t,e,r)=>{"use strict";var n=r(8),i=r(31),s=r(32),a=r(37);function o(t){return t.call.bind(t)}var u="undefined"!=typeof BigInt,h="undefined"!=typeof Symbol,c=o(Object.prototype.toString),d=o(Number.prototype.valueOf),l=o(String.prototype.valueOf),f=o(Boolean.prototype.valueOf);if(u)var m=o(BigInt.prototype.valueOf);if(h)var p=o(Symbol.prototype.valueOf);function _(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function y(t){return"[object Map]"===c(t)}function v(t){return"[object Set]"===c(t)}function g(t){return"[object WeakMap]"===c(t)}function b(t){return"[object WeakSet]"===c(t)}function M(t){return"[object ArrayBuffer]"===c(t)}function w(t){return"undefined"!=typeof ArrayBuffer&&(M.working?M(t):t instanceof ArrayBuffer)}function k(t){return"[object DataView]"===c(t)}function L(t){return"undefined"!=typeof DataView&&(k.working?k(t):t instanceof DataView)}e.isArgumentsObject=n,e.isGeneratorFunction=i,e.isTypedArray=a,e.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):a(t)||L(t)},e.isUint8Array=function(t){return"Uint8Array"===s(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===s(t)},e.isUint16Array=function(t){return"Uint16Array"===s(t)},e.isUint32Array=function(t){return"Uint32Array"===s(t)},e.isInt8Array=function(t){return"Int8Array"===s(t)},e.isInt16Array=function(t){return"Int16Array"===s(t)},e.isInt32Array=function(t){return"Int32Array"===s(t)},e.isFloat32Array=function(t){return"Float32Array"===s(t)},e.isFloat64Array=function(t){return"Float64Array"===s(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===s(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===s(t)},y.working="undefined"!=typeof Map&&y(new Map),e.isMap=function(t){return"undefined"!=typeof Map&&(y.working?y(t):t instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),e.isSet=function(t){return"undefined"!=typeof Set&&(v.working?v(t):t instanceof Set)},g.working="undefined"!=typeof WeakMap&&g(new WeakMap),e.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(g.working?g(t):t instanceof WeakMap)},b.working="undefined"!=typeof WeakSet&&b(new WeakSet),e.isWeakSet=function(t){return b(t)},M.working="undefined"!=typeof ArrayBuffer&&M(new ArrayBuffer),e.isArrayBuffer=w,k.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&k(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=L;var S="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function x(t){return"[object SharedArrayBuffer]"===c(t)}function Y(t){return void 0!==S&&(void 0===x.working&&(x.working=x(new S)),x.working?x(t):t instanceof S)}function T(t){return _(t,d)}function D(t){return _(t,l)}function E(t){return _(t,f)}function j(t){return u&&_(t,m)}function A(t){return h&&_(t,p)}e.isSharedArrayBuffer=Y,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===c(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===c(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===c(t)},e.isGeneratorObject=function(t){return"[object Generator]"===c(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===c(t)},e.isNumberObject=T,e.isStringObject=D,e.isBooleanObject=E,e.isBigIntObject=j,e.isSymbolObject=A,e.isBoxedPrimitive=function(t){return T(t)||D(t)||E(t)||j(t)||A(t)},e.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(w(t)||Y(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},(t,e,r)=>{"use strict";var n=r(9)(),i=r(11)("Object.prototype.toString"),s=function(t){return!(n&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===i(t)},a=function(t){return!!s(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==i(t)&&"[object Function]"===i(t.callee)},o=function(){return s(arguments)}();s.isLegacyArguments=a,t.exports=o?s:a},(t,e,r)=>{"use strict";var n=r(10);t.exports=function(){return n()&&!!Symbol.toStringTag}},t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},(t,e,r)=>{"use strict";var n=r(12),i=r(25),s=i(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&s(t,".prototype.")>-1?i(r):r}},(t,e,r)=>{"use strict";var n,i=r(13),s=r(14),a=r(15),o=r(16),u=r(17),h=r(18),c=r(19),d=Function,l=function(t){try{return d('"use strict"; return ('+t+").constructor;")()}catch(t){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(t){f=null}var m=function(){throw new h},p=f?function(){try{return m}catch(t){try{return f(arguments,"callee").get}catch(t){return m}}}():m,_=r(20)(),y=r(21)(),v=Object.getPrototypeOf||(y?function(t){return t.__proto__}:null),g={},b="undefined"!=typeof Uint8Array&&v?v(Uint8Array):n,M={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":_&&v?v([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":g,"%AsyncGenerator%":g,"%AsyncGeneratorFunction%":g,"%AsyncIteratorPrototype%":g,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":s,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":g,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_&&v?v(v([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&_&&v?v((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":o,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&_&&v?v((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_&&v?v(""[Symbol.iterator]()):n,"%Symbol%":_?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":p,"%TypedArray%":b,"%TypeError%":h,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(v)try{null.error}catch(t){var w=v(v(t));M["%Error.prototype%"]=w}var k=function t(e){var r;if("%AsyncFunction%"===e)r=l("async function () {}");else if("%GeneratorFunction%"===e)r=l("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=l("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&v&&(r=v(i.prototype))}return M[e]=r,r},L={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},S=r(22),x=r(24),Y=S.call(Function.call,Array.prototype.concat),T=S.call(Function.apply,Array.prototype.splice),D=S.call(Function.call,String.prototype.replace),E=S.call(Function.call,String.prototype.slice),j=S.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,P=function(t,e){var r,n=t;if(x(L,n)&&(n="%"+(r=L[n])[0]+"%"),x(M,n)){var i=M[n];if(i===g&&(i=k(n)),void 0===i&&!e)throw new h("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new u("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new h("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new h('"allowMissing" argument must be a boolean');if(null===j(/^%?[^%]*%?$/,t))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=E(t,0,1),r=E(t,-1);if("%"===e&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return D(t,A,(function(t,e,r,i){n[n.length]=r?D(i,O,"$1"):e||t})),n}(t),n=r.length>0?r[0]:"",i=P("%"+n+"%",e),s=i.name,a=i.value,o=!1,c=i.alias;c&&(n=c[0],T(r,Y([0,1],c)));for(var d=1,l=!0;d<r.length;d+=1){var m=r[d],p=E(m,0,1),_=E(m,-1);if(('"'===p||"'"===p||"`"===p||'"'===_||"'"===_||"`"===_)&&p!==_)throw new u("property names with quotes must have matching quotes");if("constructor"!==m&&l||(o=!0),x(M,s="%"+(n+="."+m)+"%"))a=M[s];else if(null!=a){if(!(m in a)){if(!e)throw new h("base intrinsic for "+t+" exists, but the property is not available.");return}if(f&&d+1>=r.length){var y=f(a,m);a=(l=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[m]}else l=x(a,m),a=a[m];l&&!o&&(M[s]=a)}}return a}},t=>{"use strict";t.exports=Error},t=>{"use strict";t.exports=EvalError},t=>{"use strict";t.exports=RangeError},t=>{"use strict";t.exports=ReferenceError},t=>{"use strict";t.exports=SyntaxError},t=>{"use strict";t.exports=TypeError},t=>{"use strict";t.exports=URIError},(t,e,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(10);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},t=>{"use strict";var e={__proto__:null,foo:{}},r=Object;t.exports=function(){return{__proto__:e}.foo===e.foo&&!(e instanceof r)}},(t,e,r)=>{"use strict";var n=r(23);t.exports=Function.prototype.bind||n},t=>{"use strict";var e=Object.prototype.toString,r=Math.max,n=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var i=0;i<e.length;i+=1)r[i+t.length]=e[i];return r};t.exports=function(t){var i=this;if("function"!=typeof i||"[object Function]"!==e.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var s,a=function(t){for(var e=[],r=1,n=0;r<t.length;r+=1,n+=1)e[n]=t[r];return e}(arguments),o=r(0,i.length-a.length),u=[],h=0;h<o;h++)u[h]="$"+h;if(s=Function("binder","return function ("+function(t){for(var e="",r=0;r<t.length;r+=1)e+=t[r],r+1<t.length&&(e+=",");return e}(u)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof s){var e=i.apply(this,n(a,arguments));return Object(e)===e?e:this}return i.apply(t,n(a,arguments))})),i.prototype){var c=function(){};c.prototype=i.prototype,s.prototype=new c,c.prototype=null}return s}},(t,e,r)=>{"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,s=r(22);t.exports=s.call(n,i)},(t,e,r)=>{"use strict";var n=r(22),i=r(12),s=r(26),a=r(18),o=i("%Function.prototype.apply%"),u=i("%Function.prototype.call%"),h=i("%Reflect.apply%",!0)||n.call(u,o),c=r(28),d=i("%Math.max%");t.exports=function(t){if("function"!=typeof t)throw new a("a function is required");var e=h(n,u,arguments);return s(e,1+d(0,t.length-(arguments.length-1)),!0)};var l=function(){return h(n,o,arguments)};c?c(t.exports,"apply",{value:l}):t.exports.apply=l},(t,e,r)=>{"use strict";var n=r(12),i=r(27),s=r(30)(),a=r(29),o=r(18),u=n("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new o("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||u(e)!==e)throw new o("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,h=!0;if("length"in t&&a){var c=a(t,"length");c&&!c.configurable&&(n=!1),c&&!c.writable&&(h=!1)}return(n||h||!r)&&(s?i(t,"length",e,!0,!0):i(t,"length",e)),t}},(t,e,r)=>{"use strict";var n=r(28),i=r(17),s=r(18),a=r(29);t.exports=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new s("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new s("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,h=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],d=!!a&&a(t,e);if(n)n(t,e,{configurable:null===h&&d?d.configurable:!h,enumerable:null===o&&d?d.enumerable:!o,value:r,writable:null===u&&d?d.writable:!u});else{if(!c&&(o||u||h))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},(t,e,r)=>{"use strict";var n=r(12)("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch(t){n=!1}t.exports=n},(t,e,r)=>{"use strict";var n=r(12)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},(t,e,r)=>{"use strict";var n=r(28),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=i},(t,e,r)=>{"use strict";var n,i=Object.prototype.toString,s=Function.prototype.toString,a=/^\s*(?:function)?\*/,o=r(9)(),u=Object.getPrototypeOf;t.exports=function(t){if("function"!=typeof t)return!1;if(a.test(s.call(t)))return!0;if(!o)return"[object GeneratorFunction]"===i.call(t);if(!u)return!1;if(void 0===n){var e=function(){if(!o)return!1;try{return Function("return function*() {}")()}catch(t){}}();n=!!e&&u(e)}return u(t)===n}},(t,e,r)=>{"use strict";var n=r(33),i=r(35),s=r(25),a=r(11),o=r(29),u=a("Object.prototype.toString"),h=r(9)(),c="undefined"==typeof globalThis?r.g:globalThis,d=i(),l=a("String.prototype.slice"),f=Object.getPrototypeOf,m=a("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r<t.length;r+=1)if(t[r]===e)return r;return-1},p={__proto__:null};n(d,h&&o&&f?function(t){var e=new c[t];if(Symbol.toStringTag in e){var r=f(e),n=o(r,Symbol.toStringTag);if(!n){var i=f(r);n=o(i,Symbol.toStringTag)}p["$"+t]=s(n.get)}}:function(t){var e=new c[t],r=e.slice||e.set;r&&(p["$"+t]=s(r))}),t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!h){var e=l(u(t),8,-1);return m(d,e)>-1?e:"Object"===e&&function(t){var e=!1;return n(p,(function(r,n){if(!e)try{r(t),e=l(n,1)}catch(t){}})),e}(t)}return o?function(t){var e=!1;return n(p,(function(r,n){if(!e)try{"$"+r(t)===n&&(e=l(n,1))}catch(t){}})),e}(t):null}},(t,e,r)=>{"use strict";var n=r(34),i=Object.prototype.toString,s=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){if(!n(e))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=r),"[object Array]"===i.call(t)?function(t,e,r){for(var n=0,i=t.length;n<i;n++)s.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))}(t,e,a):"string"==typeof t?function(t,e,r){for(var n=0,i=t.length;n<i;n++)null==r?e(t.charAt(n),n,t):e.call(r,t.charAt(n),n,t)}(t,e,a):function(t,e,r){for(var n in t)s.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))}(t,e,a)}},t=>{"use strict";var e,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,e)}catch(t){t!==r&&(i=null)}else i=null;var s=/^\s*class\b/,a=function(t){try{var e=n.call(t);return s.test(e)}catch(t){return!1}},o=function(t){try{return!a(t)&&(n.call(t),!0)}catch(t){return!1}},u=Object.prototype.toString,h="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),d=function(){return!1};if("object"==typeof document){var l=document.all;u.call(l)===u.call(document.all)&&(d=function(t){if((c||!t)&&(void 0===t||"object"==typeof t))try{var e=u.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=i?function(t){if(d(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{i(t,null,e)}catch(t){if(t!==r)return!1}return!a(t)&&o(t)}:function(t){if(d(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(h)return o(t);if(a(t))return!1;var e=u.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&o(t)}},(t,e,r)=>{"use strict";var n=r(36),i="undefined"==typeof globalThis?r.g:globalThis;t.exports=function(){for(var t=[],e=0;e<n.length;e++)"function"==typeof i[n[e]]&&(t[t.length]=n[e]);return t}},t=>{"use strict";t.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},(t,e,r)=>{"use strict";var n=r(32);t.exports=function(t){return!!n(t)}},t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},t=>{"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}}},(t,e,r)=>{"use strict";var n=r(6),i=r(4);function s(t){return 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},s(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,i=function(t){if("object"!==s(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===s(i)?i:String(i)),n)}var i}var o,u,h=r(41).codes,c=h.ERR_AMBIGUOUS_ARGUMENT,d=h.ERR_INVALID_ARG_TYPE,l=h.ERR_INVALID_ARG_VALUE,f=h.ERR_INVALID_RETURN_VALUE,m=h.ERR_MISSING_ARGS,p=r(42),_=r(5).inspect,y=r(5).types,v=y.isPromise,g=y.isRegExp,b=r(43)(),M=r(48)(),w=r(11)("RegExp.prototype.test");function k(){var t=r(50);o=t.isDeepEqual,u=t.isDeepStrictEqual}new Map;var L=!1,S=t.exports=D,x={};function Y(t){if(t.message instanceof Error)throw t.message;throw new p(t)}function T(t,e,r,n){if(!r){var i=!1;if(0===e)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var s=new p({actual:r,expected:!0,message:n,operator:"==",stackStartFn:t});throw s.generatedMessage=i,s}}function D(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];T.apply(void 0,[D,e.length].concat(e))}S.fail=function t(e,r,s,a,o){var u,h=arguments.length;if(0===h?u="Failed":1===h?(s=e,e=void 0):(!1===L&&(L=!0,(n.emitWarning?n.emitWarning:i.warn.bind(i))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===h&&(a="!=")),s instanceof Error)throw s;var c={actual:e,expected:r,operator:void 0===a?"fail":a,stackStartFn:o||t};void 0!==s&&(c.message=s);var d=new p(c);throw u&&(d.message=u,d.generatedMessage=!0),d},S.AssertionError=p,S.ok=D,S.equal=function t(e,r,n){if(arguments.length<2)throw new m("actual","expected");e!=r&&Y({actual:e,expected:r,message:n,operator:"==",stackStartFn:t})},S.notEqual=function t(e,r,n){if(arguments.length<2)throw new m("actual","expected");e==r&&Y({actual:e,expected:r,message:n,operator:"!=",stackStartFn:t})},S.deepEqual=function t(e,r,n){if(arguments.length<2)throw new m("actual","expected");void 0===o&&k(),o(e,r)||Y({actual:e,expected:r,message:n,operator:"deepEqual",stackStartFn:t})},S.notDeepEqual=function t(e,r,n){if(arguments.length<2)throw new m("actual","expected");void 0===o&&k(),o(e,r)&&Y({actual:e,expected:r,message:n,operator:"notDeepEqual",stackStartFn:t})},S.deepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new m("actual","expected");void 0===o&&k(),u(e,r)||Y({actual:e,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:t})},S.notDeepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new m("actual","expected");void 0===o&&k(),u(e,r)&&Y({actual:e,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:t})},S.strictEqual=function t(e,r,n){if(arguments.length<2)throw new m("actual","expected");M(e,r)||Y({actual:e,expected:r,message:n,operator:"strictEqual",stackStartFn:t})},S.notStrictEqual=function t(e,r,n){if(arguments.length<2)throw new m("actual","expected");M(e,r)&&Y({actual:e,expected:r,message:n,operator:"notStrictEqual",stackStartFn:t})};var E=function(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(e,r,n){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),r.forEach((function(t){t in e&&(void 0!==n&&"string"==typeof n[t]&&g(e[t])&&w(e[t],n[t])?i[t]=n[t]:i[t]=e[t])}))}));function j(t,e,r,n){if("function"!=typeof e){if(g(e))return w(e,t);if(2===arguments.length)throw new d("expected",["Function","RegExp"],e);if("object"!==s(t)||null===t){var i=new p({actual:t,expected:e,message:r,operator:"deepStrictEqual",stackStartFn:n});throw i.operator=n.name,i}var a=Object.keys(e);if(e instanceof Error)a.push("name","message");else if(0===a.length)throw new l("error",e,"may not be an empty object");return void 0===o&&k(),a.forEach((function(i){"string"==typeof t[i]&&g(e[i])&&w(e[i],t[i])||function(t,e,r,n,i,s){if(!(r in t)||!u(t[r],e[r])){if(!n){var a=new E(t,i),o=new E(e,i,t),h=new p({actual:a,expected:o,operator:"deepStrictEqual",stackStartFn:s});throw h.actual=t,h.expected=e,h.operator=s.name,h}Y({actual:t,expected:e,message:n,operator:s.name,stackStartFn:s})}}(t,e,i,r,a,n)})),!0}return void 0!==e.prototype&&t instanceof e||!Error.isPrototypeOf(e)&&!0===e.call({},t)}function A(t){if("function"!=typeof t)throw new d("fn","Function",t);try{t()}catch(t){return t}return x}function O(t){return v(t)||null!==t&&"object"===s(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function P(t){return Promise.resolve().then((function(){var e;if("function"==typeof t){if(!O(e=t()))throw new f("instance of Promise","promiseFn",e)}else{if(!O(t))throw new d("promiseFn",["Function","Promise"],t);e=t}return Promise.resolve().then((function(){return e})).then((function(){return x})).catch((function(t){return t}))}))}function R(t,e,r,n){if("string"==typeof r){if(4===arguments.length)throw new d("error",["Object","Error","Function","RegExp"],r);if("object"===s(e)&&null!==e){if(e.message===r)throw new c("error/message",'The error message "'.concat(e.message,'" is identical to the message.'))}else if(e===r)throw new c("error/message",'The error "'.concat(e,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==s(r)&&"function"!=typeof r)throw new d("error",["Object","Error","Function","RegExp"],r);if(e===x){var i="";r&&r.name&&(i+=" (".concat(r.name,")")),i+=n?": ".concat(n):".";var a="rejects"===t.name?"rejection":"exception";Y({actual:void 0,expected:r,operator:t.name,message:"Missing expected ".concat(a).concat(i),stackStartFn:t})}if(r&&!j(e,r,n,t))throw e}function H(t,e,r,n){if(e!==x){if("string"==typeof r&&(n=r,r=void 0),!r||j(e,r)){var i=n?": ".concat(n):".",s="doesNotReject"===t.name?"rejection":"exception";Y({actual:e,expected:r,operator:t.name,message:"Got unwanted ".concat(s).concat(i,"\n")+'Actual message: "'.concat(e&&e.message,'"'),stackStartFn:t})}throw e}}function I(t,e,r,n,i){if(!g(e))throw new d("regexp","RegExp",e);var a="match"===i;if("string"!=typeof t||w(e,t)!==a){if(r instanceof Error)throw r;var o=!r;r=r||("string"!=typeof t?'The "string" argument must be of type string. Received type '+"".concat(s(t)," (").concat(_(t),")"):(a?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(_(e),". Input:\n\n").concat(_(t),"\n"));var u=new p({actual:t,expected:e,message:r,operator:i,stackStartFn:n});throw u.generatedMessage=o,u}}function C(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];T.apply(void 0,[C,e.length].concat(e))}S.throws=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];R.apply(void 0,[t,A(e)].concat(n))},S.rejects=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return P(e).then((function(e){return R.apply(void 0,[t,e].concat(n))}))},S.doesNotThrow=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];H.apply(void 0,[t,A(e)].concat(n))},S.doesNotReject=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return P(e).then((function(e){return H.apply(void 0,[t,e].concat(n))}))},S.ifError=function t(e){if(null!=e){var r="ifError got unwanted exception: ";"object"===s(e)&&"string"==typeof e.message?0===e.message.length&&e.constructor?r+=e.constructor.name:r+=e.message:r+=_(e);var n=new p({actual:e,expected:null,operator:"ifError",message:r,stackStartFn:t}),i=e.stack;if("string"==typeof i){var a=i.split("\n");a.shift();for(var o=n.stack.split("\n"),u=0;u<a.length;u++){var h=o.indexOf(a[u]);if(-1!==h){o=o.slice(0,h);break}}n.stack="".concat(o.join("\n"),"\n").concat(a.join("\n"))}throw n}},S.match=function t(e,r,n){I(e,r,n,t,"match")},S.doesNotMatch=function t(e,r,n){I(e,r,n,t,"doesNotMatch")},S.strict=b(C,S,{equal:S.strictEqual,deepEqual:S.deepStrictEqual,notEqual:S.notStrictEqual,notDeepEqual:S.notDeepStrictEqual}),S.strict.strict=S.strict},(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},n(t)}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,i=a(t);if(e){var s=a(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return function(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var o,u,h={};function c(t,e,r){r||(r=Error);var n=function(r){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(o,r);var n,a=s(o);function o(r,n,i){var s;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),s=a.call(this,function(t,r,n){return"string"==typeof e?e:e(t,r,n)}(r,n,i)),s.code=t,s}return n=o,Object.defineProperty(n,"prototype",{writable:!1}),n}(r);h[t]=n}function d(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),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))}c("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),c("ERR_INVALID_ARG_TYPE",(function(t,e,i){var s,a,u;if(void 0===o&&(o=r(40)),o("string"==typeof t,"'name' must be a string"),"string"==typeof e&&(a="not ",e.substr(0,4)===a)?(s="must not be",e=e.replace(/^not /,"")):s="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-9,r)===e}(t," argument"))u="The ".concat(t," ").concat(s," ").concat(d(e,"type"));else{var h=function(t,e,r){return"number"!=typeof r&&(r=0),!(r+1>t.length)&&-1!==t.indexOf(".",r)}(t)?"property":"argument";u='The "'.concat(t,'" ').concat(h," ").concat(s," ").concat(d(e,"type"))}return u+". Received type ".concat(n(i))}),TypeError),c("ERR_INVALID_ARG_VALUE",(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===u&&(u=r(5));var i=u.inspect(e);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(n,". Received ").concat(i)}),TypeError,RangeError),c("ERR_INVALID_RETURN_VALUE",(function(t,e,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(i,".")}),TypeError),c("ERR_MISSING_ARGS",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];void 0===o&&(o=r(40)),o(e.length>0,"At least one arg needs to be specified");var i="The ",s=e.length;switch(e=e.map((function(t){return'"'.concat(t,'"')})),s){case 1:i+="".concat(e[0]," argument");break;case 2:i+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:i+=e.slice(0,s-1).join(", "),i+=", and ".concat(e[s-1]," arguments")}return"".concat(i," must be specified")}),TypeError),t.exports.codes=h},(t,e,r)=>{"use strict";var n=r(6);function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function a(t,e,r){return(e=u(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t){if("object"!==_(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===_(e)?e:String(e)}function h(t,e){if(e&&("object"===_(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return c(t)}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){var e="function"==typeof Map?new Map:void 0;return d=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return l(t,arguments,p(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),m(n,t)},d(t)}function l(t,e,r){return l=f()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&m(i,r.prototype),i},l.apply(null,arguments)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function _(t){return _="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)}var y=r(5).inspect,v=r(41).codes.ERR_INVALID_ARG_TYPE;function g(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}var b="",M="",w="",k="",L={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function S(t){var e=Object.keys(t),r=Object.create(Object.getPrototypeOf(t));return e.forEach((function(e){r[e]=t[e]})),Object.defineProperty(r,"message",{value:t.message}),r}function x(t){return y(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function Y(t,e,r){var i="",s="",a=0,o="",u=!1,h=x(t),c=h.split("\n"),d=x(e).split("\n"),l=0,f="";if("strictEqual"===r&&"object"===_(t)&&"object"===_(e)&&null!==t&&null!==e&&(r="strictEqualObject"),1===c.length&&1===d.length&&c[0]!==d[0]){var m=c[0].length+d[0].length;if(m<=10){if(!("object"===_(t)&&null!==t||"object"===_(e)&&null!==e||0===t&&0===e))return"".concat(L[r],"\n\n")+"".concat(c[0]," !== ").concat(d[0],"\n")}else if("strictEqualObject"!==r&&m<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;c[0][l]===d[0][l];)l++;l>2&&(f="\n ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var r=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,r-t.length)}(" ",l),"^"),l=0)}}for(var p=c[c.length-1],y=d[d.length-1];p===y&&(l++<2?o="\n ".concat(p).concat(o):i=p,c.pop(),d.pop(),0!==c.length&&0!==d.length);)p=c[c.length-1],y=d[d.length-1];var v=Math.max(c.length,d.length);if(0===v){var S=h.split("\n");if(S.length>30)for(S[26]="".concat(b,"...").concat(k);S.length>27;)S.pop();return"".concat(L.notIdentical,"\n\n").concat(S.join("\n"),"\n")}l>3&&(o="\n".concat(b,"...").concat(k).concat(o),u=!0),""!==i&&(o="\n ".concat(i).concat(o),i="");var Y=0,T=L[r]+"\n".concat(M,"+ actual").concat(k," ").concat(w,"- expected").concat(k),D=" ".concat(b,"...").concat(k," Lines skipped");for(l=0;l<v;l++){var E=l-a;if(c.length<l+1)E>1&&l>2&&(E>4?(s+="\n".concat(b,"...").concat(k),u=!0):E>3&&(s+="\n ".concat(d[l-2]),Y++),s+="\n ".concat(d[l-1]),Y++),a=l,i+="\n".concat(w,"-").concat(k," ").concat(d[l]),Y++;else if(d.length<l+1)E>1&&l>2&&(E>4?(s+="\n".concat(b,"...").concat(k),u=!0):E>3&&(s+="\n ".concat(c[l-2]),Y++),s+="\n ".concat(c[l-1]),Y++),a=l,s+="\n".concat(M,"+").concat(k," ").concat(c[l]),Y++;else{var j=d[l],A=c[l],O=A!==j&&(!g(A,",")||A.slice(0,-1)!==j);O&&g(j,",")&&j.slice(0,-1)===A&&(O=!1,A+=","),O?(E>1&&l>2&&(E>4?(s+="\n".concat(b,"...").concat(k),u=!0):E>3&&(s+="\n ".concat(c[l-2]),Y++),s+="\n ".concat(c[l-1]),Y++),a=l,s+="\n".concat(M,"+").concat(k," ").concat(A),i+="\n".concat(w,"-").concat(k," ").concat(j),Y+=2):(s+=i,i="",1!==E&&0!==l||(s+="\n ".concat(A),Y++))}if(Y>20&&l<v-2)return"".concat(T).concat(D,"\n").concat(s,"\n").concat(b,"...").concat(k).concat(i,"\n")+"".concat(b,"...").concat(k)}return"".concat(T).concat(u?D:"","\n").concat(s).concat(i).concat(o).concat(f)}var T=function(t,e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}(l,t);var r,i,a,u,d=(r=l,i=f(),function(){var t,e=p(r);if(i){var n=p(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return h(this,t)});function l(t){var e;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),"object"!==_(t)||null===t)throw new v("options","Object",t);var r=t.message,i=t.operator,s=t.stackStartFn,a=t.actual,o=t.expected,u=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=r)e=d.call(this,String(r));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(b="",M="",k="",w=""):(b="",M="",k="",w="")),"object"===_(a)&&null!==a&&"object"===_(o)&&null!==o&&"stack"in a&&a instanceof Error&&"stack"in o&&o instanceof Error&&(a=S(a),o=S(o)),"deepStrictEqual"===i||"strictEqual"===i)e=d.call(this,Y(a,o,i));else if("notDeepStrictEqual"===i||"notStrictEqual"===i){var f=L[i],m=x(a).split("\n");if("notStrictEqual"===i&&"object"===_(a)&&null!==a&&(f=L.notStrictEqualObject),m.length>30)for(m[26]="".concat(b,"...").concat(k);m.length>27;)m.pop();e=1===m.length?d.call(this,"".concat(f," ").concat(m[0])):d.call(this,"".concat(f,"\n\n").concat(m.join("\n"),"\n"))}else{var p=x(a),y="",g=L[i];"notDeepEqual"===i||"notEqual"===i?(p="".concat(L[i],"\n\n").concat(p)).length>1024&&(p="".concat(p.slice(0,1021),"...")):(y="".concat(x(o)),p.length>512&&(p="".concat(p.slice(0,509),"...")),y.length>512&&(y="".concat(y.slice(0,509),"...")),"deepEqual"===i||"equal"===i?p="".concat(g,"\n\n").concat(p,"\n\nshould equal\n\n"):y=" ".concat(i," ").concat(y)),e=d.call(this,"".concat(p).concat(y))}return Error.stackTraceLimit=u,e.generatedMessage=!r,Object.defineProperty(c(e),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),e.code="ERR_ASSERTION",e.actual=a,e.expected=o,e.operator=i,Error.captureStackTrace&&Error.captureStackTrace(c(e),s),e.stack,e.name="AssertionError",h(e)}return a=l,(u=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:e,value:function(t,e){return y(this,s(s({},e),{},{customInspect:!1,depth:0}))}}])&&o(a.prototype,u),Object.defineProperty(a,"prototype",{writable:!1}),l}(d(Error),y.custom);t.exports=T},(t,e,r)=>{"use strict";var n=r(44);t.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),r={},n=0;n<e.length;++n)r[e[n]]=e[n];var i=Object.assign({},r),s="";for(var a in i)s+=a;return t!==s}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,"xy")}catch(e){return"y"===t[1]}return!1}()?n:Object.assign:n}},(t,e,r)=>{"use strict";var n=r(45),i=r(10)(),s=r(11),a=Object,o=s("Array.prototype.push"),u=s("Object.prototype.propertyIsEnumerable"),h=i?Object.getOwnPropertySymbols:null;t.exports=function(t,e){if(null==t)throw new TypeError("target must be an object");var r=a(t);if(1===arguments.length)return r;for(var s=1;s<arguments.length;++s){var c=a(arguments[s]),d=n(c),l=i&&(Object.getOwnPropertySymbols||h);if(l)for(var f=l(c),m=0;m<f.length;++m){var p=f[m];u(c,p)&&o(d,p)}for(var _=0;_<d.length;++_){var y=d[_];if(u(c,y)){var v=c[y];r[y]=v}}}return r}},(t,e,r)=>{"use strict";var n=Array.prototype.slice,i=r(46),s=Object.keys,a=s?function(t){return s(t)}:r(47),o=Object.keys;a.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return i(t)?o(n.call(t)):o(t)})}else Object.keys=a;return Object.keys||a},t.exports=a},t=>{"use strict";var e=Object.prototype.toString;t.exports=function(t){var r=e.call(t),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),n}},(t,e,r)=>{"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,s=Object.prototype.toString,a=r(46),o=Object.prototype.propertyIsEnumerable,u=!o.call({toString:null},"toString"),h=o.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(t){var e=t.constructor;return e&&e.prototype===t},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!l["$"+t]&&i.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{d(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();n=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===s.call(t),n=a(t),o=e&&"[object String]"===s.call(t),l=[];if(!e&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var m=h&&r;if(o&&t.length>0&&!i.call(t,0))for(var p=0;p<t.length;++p)l.push(String(p));if(n&&t.length>0)for(var _=0;_<t.length;++_)l.push(String(_));else for(var y in t)m&&"prototype"===y||!i.call(t,y)||l.push(String(y));if(u)for(var v=function(t){if("undefined"==typeof window||!f)return d(t);try{return d(t)}catch(t){return!1}}(t),g=0;g<c.length;++g)v&&"constructor"===c[g]||!i.call(t,c[g])||l.push(c[g]);return l}}t.exports=n},(t,e,r)=>{"use strict";var n=r(49);t.exports=function(){return"function"==typeof Object.is?Object.is:n}},t=>{"use strict";var e=function(t){return t!=t};t.exports=function(t,r){return 0===t&&0===r?1/t==1/r:t===r||!(!e(t)||!e(r))}},(t,e,r)=>{"use strict";function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,s,a,o=[],u=!0,h=!1;try{if(s=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=s.call(r)).done)&&(o.push(n.value),o.length!==e);u=!0);}catch(t){h=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(h)throw i}}return o}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function s(t){return 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},s(t)}var a=void 0!==/a/g.flags,o=function(t){var e=[];return t.forEach((function(t){return e.push(t)})),e},u=function(t){var e=[];return t.forEach((function(t,r){return e.push([r,t])})),e},h=Object.is?Object.is:r(51),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},d=Number.isNaN?Number.isNaN:r(54);function l(t){return t.call.bind(t)}var f=l(Object.prototype.hasOwnProperty),m=l(Object.prototype.propertyIsEnumerable),p=l(Object.prototype.toString),_=r(5).types,y=_.isAnyArrayBuffer,v=_.isArrayBufferView,g=_.isDate,b=_.isMap,M=_.isRegExp,w=_.isSet,k=_.isNativeError,L=_.isBoxedPrimitive,S=_.isNumberObject,x=_.isStringObject,Y=_.isBooleanObject,T=_.isBigIntObject,D=_.isSymbolObject,E=_.isFloat32Array,j=_.isFloat64Array;function A(t){if(0===t.length||t.length>10)return!0;for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(r<48||r>57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function O(t){return Object.keys(t).filter(A).concat(c(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}
  10. /*!
  11. * The buffer module from node.js, for the browser.
  12. *
  13. * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
  14. * @license MIT
  15. */function P(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,s=Math.min(r,n);i<s;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0}var R=0,H=1,I=2,C=3;function N(t,e,r,n){if(t===e)return 0!==t||!r||h(t,e);if(r){if("object"!==s(t))return"number"==typeof t&&d(t)&&d(e);if("object"!==s(e)||null===t||null===e)return!1;if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1}else{if(null===t||"object"!==s(t))return(null===e||"object"!==s(e))&&t==e;if(null===e||"object"!==s(e))return!1}var i,o,u,c,l=p(t);if(l!==p(e))return!1;if(Array.isArray(t)){if(t.length!==e.length)return!1;var f=O(t),m=O(e);return f.length===m.length&&q(t,e,r,n,H,f)}if("[object Object]"===l&&(!b(t)&&b(e)||!w(t)&&w(e)))return!1;if(g(t)){if(!g(e)||Date.prototype.getTime.call(t)!==Date.prototype.getTime.call(e))return!1}else if(M(t)){if(!M(e)||(u=t,c=e,!(a?u.source===c.source&&u.flags===c.flags:RegExp.prototype.toString.call(u)===RegExp.prototype.toString.call(c))))return!1}else if(k(t)||t instanceof Error){if(t.message!==e.message||t.name!==e.name)return!1}else{if(v(t)){if(r||!E(t)&&!j(t)){if(!function(t,e){return t.byteLength===e.byteLength&&0===P(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}(t,e))return!1}else if(!function(t,e){if(t.byteLength!==e.byteLength)return!1;for(var r=0;r<t.byteLength;r++)if(t[r]!==e[r])return!1;return!0}(t,e))return!1;var _=O(t),A=O(e);return _.length===A.length&&q(t,e,r,n,R,_)}if(w(t))return!(!w(e)||t.size!==e.size)&&q(t,e,r,n,I);if(b(t))return!(!b(e)||t.size!==e.size)&&q(t,e,r,n,C);if(y(t)){if(o=e,(i=t).byteLength!==o.byteLength||0!==P(new Uint8Array(i),new Uint8Array(o)))return!1}else if(L(t)&&!function(t,e){return S(t)?S(e)&&h(Number.prototype.valueOf.call(t),Number.prototype.valueOf.call(e)):x(t)?x(e)&&String.prototype.valueOf.call(t)===String.prototype.valueOf.call(e):Y(t)?Y(e)&&Boolean.prototype.valueOf.call(t)===Boolean.prototype.valueOf.call(e):T(t)?T(e)&&BigInt.prototype.valueOf.call(t)===BigInt.prototype.valueOf.call(e):D(e)&&Symbol.prototype.valueOf.call(t)===Symbol.prototype.valueOf.call(e)}(t,e))return!1}return q(t,e,r,n,R)}function B(t,e){return e.filter((function(e){return m(t,e)}))}function q(t,e,r,i,a,h){if(5===arguments.length){h=Object.keys(t);var d=Object.keys(e);if(h.length!==d.length)return!1}for(var l=0;l<h.length;l++)if(!f(e,h[l]))return!1;if(r&&5===arguments.length){var p=c(t);if(0!==p.length){var _=0;for(l=0;l<p.length;l++){var y=p[l];if(m(t,y)){if(!m(e,y))return!1;h.push(y),_++}else if(m(e,y))return!1}var v=c(e);if(p.length!==v.length&&B(e,v).length!==_)return!1}else{var g=c(e);if(0!==g.length&&0!==B(e,g).length)return!1}}if(0===h.length&&(a===R||a===H&&0===t.length||0===t.size))return!0;if(void 0===i)i={val1:new Map,val2:new Map,position:0};else{var b=i.val1.get(t);if(void 0!==b){var M=i.val2.get(e);if(void 0!==M)return b===M}i.position++}i.val1.set(t,i.position),i.val2.set(e,i.position);var w=function(t,e,r,i,a,h){var c=0;if(h===I){if(!function(t,e,r,n){for(var i=null,a=o(t),u=0;u<a.length;u++){var h=a[u];if("object"===s(h)&&null!==h)null===i&&(i=new Set),i.add(h);else if(!e.has(h)){if(r)return!1;if(!z(t,e,h))return!1;null===i&&(i=new Set),i.add(h)}}if(null!==i){for(var c=o(e),d=0;d<c.length;d++){var l=c[d];if("object"===s(l)&&null!==l){if(!F(i,l,r,n))return!1}else if(!r&&!t.has(l)&&!F(i,l,r,n))return!1}return 0===i.size}return!0}(t,e,r,a))return!1}else if(h===C){if(!function(t,e,r,i){for(var a=null,o=u(t),h=0;h<o.length;h++){var c=n(o[h],2),d=c[0],l=c[1];if("object"===s(d)&&null!==d)null===a&&(a=new Set),a.add(d);else{var f=e.get(d);if(void 0===f&&!e.has(d)||!N(l,f,r,i)){if(r)return!1;if(!W(t,e,d,l,i))return!1;null===a&&(a=new Set),a.add(d)}}}if(null!==a){for(var m=u(e),p=0;p<m.length;p++){var _=n(m[p],2),y=_[0],v=_[1];if("object"===s(y)&&null!==y){if(!J(a,t,y,v,r,i))return!1}else if(!(r||t.has(y)&&N(t.get(y),v,!1,i)||J(a,t,y,v,!1,i)))return!1}return 0===a.size}return!0}(t,e,r,a))return!1}else if(h===H)for(;c<t.length;c++){if(!f(t,c)){if(f(e,c))return!1;for(var d=Object.keys(t);c<d.length;c++){var l=d[c];if(!f(e,l)||!N(t[l],e[l],r,a))return!1}return d.length===Object.keys(e).length}if(!f(e,c)||!N(t[c],e[c],r,a))return!1}for(c=0;c<i.length;c++){var m=i[c];if(!N(t[m],e[m],r,a))return!1}return!0}(t,e,r,h,i,a);return i.val1.delete(t),i.val2.delete(e),w}function F(t,e,r,n){for(var i=o(t),s=0;s<i.length;s++){var a=i[s];if(N(e,a,r,n))return t.delete(a),!0}return!1}function U(t){switch(s(t)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":t=+t;case"number":if(d(t))return!1}return!0}function z(t,e,r){var n=U(r);return null!=n?n:e.has(n)&&!t.has(n)}function W(t,e,r,n,i){var s=U(r);if(null!=s)return s;var a=e.get(s);return!(void 0===a&&!e.has(s)||!N(n,a,!1,i))&&!t.has(s)&&N(n,a,!1,i)}function J(t,e,r,n,i,s){for(var a=o(t),u=0;u<a.length;u++){var h=a[u];if(N(r,h,i,s)&&N(n,e.get(h),i,s))return t.delete(h),!0}return!1}t.exports={isDeepEqual:function(t,e){return N(t,e,!1)},isDeepStrictEqual:function(t,e){return N(t,e,!0)}}},(t,e,r)=>{"use strict";var n=r(52),i=r(25),s=r(49),a=r(48),o=r(53),u=i(a(),Object);n(u,{getPolyfill:a,implementation:s,shim:o}),t.exports=u},(t,e,r)=>{"use strict";var n=r(45),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),s=Object.prototype.toString,a=Array.prototype.concat,o=r(27),u=r(30)(),h=function(t,e,r,n){if(e in t)if(!0===n){if(t[e]===r)return}else if("function"!=typeof(i=n)||"[object Function]"!==s.call(i)||!n())return;var i;u?o(t,e,r,!0):o(t,e,r)},c=function(t,e){var r=arguments.length>2?arguments[2]:{},s=n(e);i&&(s=a.call(s,Object.getOwnPropertySymbols(e)));for(var o=0;o<s.length;o+=1)h(t,s[o],e[s[o]],r[s[o]])};c.supportsDescriptors=!!u,t.exports=c},(t,e,r)=>{"use strict";var n=r(48),i=r(52);t.exports=function(){var t=n();return i(Object,{is:t},{is:function(){return Object.is!==t}}),t}},(t,e,r)=>{"use strict";var n=r(25),i=r(52),s=r(55),a=r(56),o=r(57),u=n(a(),Number);i(u,{getPolyfill:a,implementation:s,shim:o}),t.exports=u},t=>{"use strict";t.exports=function(t){return t!=t}},(t,e,r)=>{"use strict";var n=r(55);t.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},(t,e,r)=>{"use strict";var n=r(52),i=r(56);t.exports=function(){var t=i();return n(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}},(t,e,r)=>{var n={"./af":59,"./af.js":59,"./ar":60,"./ar-dz":61,"./ar-dz.js":61,"./ar-kw":62,"./ar-kw.js":62,"./ar-ly":63,"./ar-ly.js":63,"./ar-ma":64,"./ar-ma.js":64,"./ar-ps":65,"./ar-ps.js":65,"./ar-sa":66,"./ar-sa.js":66,"./ar-tn":67,"./ar-tn.js":67,"./ar.js":60,"./az":68,"./az.js":68,"./be":69,"./be.js":69,"./bg":70,"./bg.js":70,"./bm":71,"./bm.js":71,"./bn":72,"./bn-bd":73,"./bn-bd.js":73,"./bn.js":72,"./bo":74,"./bo.js":74,"./br":75,"./br.js":75,"./bs":76,"./bs.js":76,"./ca":77,"./ca.js":77,"./cs":78,"./cs.js":78,"./cv":79,"./cv.js":79,"./cy":80,"./cy.js":80,"./da":81,"./da.js":81,"./de":82,"./de-at":83,"./de-at.js":83,"./de-ch":84,"./de-ch.js":84,"./de.js":82,"./dv":85,"./dv.js":85,"./el":86,"./el.js":86,"./en-au":87,"./en-au.js":87,"./en-ca":88,"./en-ca.js":88,"./en-gb":89,"./en-gb.js":89,"./en-ie":90,"./en-ie.js":90,"./en-il":91,"./en-il.js":91,"./en-in":92,"./en-in.js":92,"./en-nz":93,"./en-nz.js":93,"./en-sg":94,"./en-sg.js":94,"./eo":95,"./eo.js":95,"./es":96,"./es-do":97,"./es-do.js":97,"./es-mx":98,"./es-mx.js":98,"./es-us":99,"./es-us.js":99,"./es.js":96,"./et":100,"./et.js":100,"./eu":101,"./eu.js":101,"./fa":102,"./fa.js":102,"./fi":103,"./fi.js":103,"./fil":104,"./fil.js":104,"./fo":105,"./fo.js":105,"./fr":106,"./fr-ca":107,"./fr-ca.js":107,"./fr-ch":108,"./fr-ch.js":108,"./fr.js":106,"./fy":109,"./fy.js":109,"./ga":110,"./ga.js":110,"./gd":111,"./gd.js":111,"./gl":112,"./gl.js":112,"./gom-deva":113,"./gom-deva.js":113,"./gom-latn":114,"./gom-latn.js":114,"./gu":115,"./gu.js":115,"./he":116,"./he.js":116,"./hi":117,"./hi.js":117,"./hr":118,"./hr.js":118,"./hu":119,"./hu.js":119,"./hy-am":120,"./hy-am.js":120,"./id":121,"./id.js":121,"./is":122,"./is.js":122,"./it":123,"./it-ch":124,"./it-ch.js":124,"./it.js":123,"./ja":125,"./ja.js":125,"./jv":126,"./jv.js":126,"./ka":127,"./ka.js":127,"./kk":128,"./kk.js":128,"./km":129,"./km.js":129,"./kn":130,"./kn.js":130,"./ko":131,"./ko.js":131,"./ku":132,"./ku-kmr":133,"./ku-kmr.js":133,"./ku.js":132,"./ky":134,"./ky.js":134,"./lb":135,"./lb.js":135,"./lo":136,"./lo.js":136,"./lt":137,"./lt.js":137,"./lv":138,"./lv.js":138,"./me":139,"./me.js":139,"./mi":140,"./mi.js":140,"./mk":141,"./mk.js":141,"./ml":142,"./ml.js":142,"./mn":143,"./mn.js":143,"./mr":144,"./mr.js":144,"./ms":145,"./ms-my":146,"./ms-my.js":146,"./ms.js":145,"./mt":147,"./mt.js":147,"./my":148,"./my.js":148,"./nb":149,"./nb.js":149,"./ne":150,"./ne.js":150,"./nl":151,"./nl-be":152,"./nl-be.js":152,"./nl.js":151,"./nn":153,"./nn.js":153,"./oc-lnc":154,"./oc-lnc.js":154,"./pa-in":155,"./pa-in.js":155,"./pl":156,"./pl.js":156,"./pt":157,"./pt-br":158,"./pt-br.js":158,"./pt.js":157,"./ro":159,"./ro.js":159,"./ru":160,"./ru.js":160,"./sd":161,"./sd.js":161,"./se":162,"./se.js":162,"./si":163,"./si.js":163,"./sk":164,"./sk.js":164,"./sl":165,"./sl.js":165,"./sq":166,"./sq.js":166,"./sr":167,"./sr-cyrl":168,"./sr-cyrl.js":168,"./sr.js":167,"./ss":169,"./ss.js":169,"./sv":170,"./sv.js":170,"./sw":171,"./sw.js":171,"./ta":172,"./ta.js":172,"./te":173,"./te.js":173,"./tet":174,"./tet.js":174,"./tg":175,"./tg.js":175,"./th":176,"./th.js":176,"./tk":177,"./tk.js":177,"./tl-ph":178,"./tl-ph.js":178,"./tlh":179,"./tlh.js":179,"./tr":180,"./tr.js":180,"./tzl":181,"./tzl.js":181,"./tzm":182,"./tzm-latn":183,"./tzm-latn.js":183,"./tzm.js":182,"./ug-cn":184,"./ug-cn.js":184,"./uk":185,"./uk.js":185,"./ur":186,"./ur.js":186,"./uz":187,"./uz-latn":188,"./uz-latn.js":188,"./uz.js":187,"./vi":189,"./vi.js":189,"./x-pseudo":190,"./x-pseudo.js":190,"./yo":191,"./yo.js":191,"./zh-cn":192,"./zh-cn.js":192,"./zh-hk":193,"./zh-hk.js":193,"./zh-mo":194,"./zh-mo.js":194,"./zh-tw":195,"./zh-tw.js":195};function i(t){var e=s(t);return r(e)}function s(t){if(!r.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}i.keys=function(){return Object.keys(n)},i.resolve=s,t.exports=i,i.id=58},function(t,e,r){!function(t){"use strict";
  16. //! moment.js locale configuration
  17. t.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(t){return/^nm$/i.test(t)},meridiem:function(t,e,r){return t<12?r?"vm":"VM":r?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  18. //! moment.js locale configuration
  19. var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},r={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},n=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},s=function(t){return function(e,r,s,a){var o=n(e),u=i[t][n(e)];return 2===o&&(u=u[r?0:1]),u.replace(/%d/i,e)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];t.defineLocale("ar",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,r){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:s("s"),ss:s("s"),m:s("m"),mm:s("m"),h:s("h"),hh:s("h"),d:s("d"),dd:s("d"),M:s("M"),MM:s("M"),y:s("y"),yy:s("y")},preparse:function(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(t){return r[t]})).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(r(3))},function(t,e,r){!function(t){"use strict";
  20. //! moment.js locale configuration
  21. var e=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},n=function(t){return function(n,i,s,a){var o=e(n),u=r[t][e(n)];return 2===o&&(u=u[i?0:1]),u.replace(/%d/i,n)}},i=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];t.defineLocale("ar-dz",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,r){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:n("s"),ss:n("s"),m:n("m"),mm:n("m"),h:n("h"),hh:n("h"),d:n("d"),dd:n("d"),M:n("M"),MM:n("M"),y:n("y"),yy:n("y")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:0,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  22. //! moment.js locale configuration
  23. t.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(r(3))},function(t,e,r){!function(t){"use strict";
  24. //! moment.js locale configuration
  25. var e={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},r=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(t){return function(e,i,s,a){var o=r(e),u=n[t][r(e)];return 2===o&&(u=u[i?0:1]),u.replace(/%d/i,e)}},s=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];t.defineLocale("ar-ly",{months:s,monthsShort:s,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,r){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(r(3))},function(t,e,r){!function(t){"use strict";
  26. //! moment.js locale configuration
  27. t.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  28. //! moment.js locale configuration
  29. var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},r={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};t.defineLocale("ar-ps",{months:"كانون الثاني_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_تشري الأوّل_تشرين الثاني_كانون الأوّل".split("_"),monthsShort:"ك٢_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_ت١_ت٢_ك١".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,r){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(t){return t.replace(/[٣٤٥٦٧٨٩٠]/g,(function(t){return r[t]})).split("").reverse().join("").replace(/[١٢](?![\u062a\u0643])/g,(function(t){return r[t]})).split("").reverse().join("").replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict";
  30. //! moment.js locale configuration
  31. var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},r={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};t.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,r){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(t){return r[t]})).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict";
  32. //! moment.js locale configuration
  33. t.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  34. //! moment.js locale configuration
  35. var e={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};t.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(t){return/^(gündüz|axşam)$/.test(t)},meridiem:function(t,e,r){return t<4?"gecə":t<12?"səhər":t<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(t){if(0===t)return t+"-ıncı";var r=t%10;return t+(e[r]||e[t%100-r]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict";
  36. //! moment.js locale configuration
  37. function e(t,e,r){return"m"===r?e?"хвіліна":"хвіліну":"h"===r?e?"гадзіна":"гадзіну":t+" "+function(t,e){var r=t.split("_");return e%10==1&&e%100!=11?r[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?r[1]:r[2]}({ss:e?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:e?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:e?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[r],+t)}t.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:e,mm:e,h:e,hh:e,d:"дзень",dd:e,M:"месяц",MM:e,y:"год",yy:e},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(t){return/^(дня|вечара)$/.test(t)},meridiem:function(t,e,r){return t<4?"ночы":t<12?"раніцы":t<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t%10!=2&&t%10!=3||t%100==12||t%100==13?t+"-ы":t+"-і";case"D":return t+"-га";default:return t}},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict";
  38. //! moment.js locale configuration
  39. t.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(t){var e=t%10,r=t%100;return 0===t?t+"-ев":0===r?t+"-ен":r>10&&r<20?t+"-ти":1===e?t+"-ви":2===e?t+"-ри":7===e||8===e?t+"-ми":t+"-ти"},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict";
  40. //! moment.js locale configuration
  41. t.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  42. //! moment.js locale configuration
  43. var e={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},r={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};t.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(t){return t.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(t){return r[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(t,e){return 12===t&&(t=0),"রাত"===e&&t>=4||"দুপুর"===e&&t<5||"বিকাল"===e?t+12:t},meridiem:function(t,e,r){return t<4?"রাত":t<10?"সকাল":t<17?"দুপুর":t<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict";
  44. //! moment.js locale configuration
  45. var e={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},r={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};t.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(t){return t.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(t){return r[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(t,e){return 12===t&&(t=0),"রাত"===e?t<4?t:t+12:"ভোর"===e||"সকাল"===e?t:"দুপুর"===e?t>=3?t:t+12:"বিকাল"===e||"সন্ধ্যা"===e?t+12:void 0},meridiem:function(t,e,r){return t<4?"রাত":t<6?"ভোর":t<12?"সকাল":t<15?"দুপুর":t<18?"বিকাল":t<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict";
  46. //! moment.js locale configuration
  47. var e={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},r={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};t.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(t){return t.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(t){return r[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(t,e){return 12===t&&(t=0),"མཚན་མོ"===e&&t>=4||"ཉིན་གུང"===e&&t<5||"དགོང་དག"===e?t+12:t},meridiem:function(t,e,r){return t<4?"མཚན་མོ":t<10?"ཞོགས་ཀས":t<17?"ཉིན་གུང":t<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict";
  48. //! moment.js locale configuration
  49. function e(t,e,r){return t+" "+function(t,e){return 2===e?function(t){var e={m:"v",b:"v",d:"z"};return void 0===e[t.charAt(0)]?t:e[t.charAt(0)]+t.substring(1)}(t):t}({mm:"munutenn",MM:"miz",dd:"devezh"}[r],t)}function r(t){return t>9?r(t%10):t}var n=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],i=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,s=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];t.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:s,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:s,monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:e,h:"un eur",hh:"%d eur",d:"un devezh",dd:e,M:"ur miz",MM:e,y:"ur bloaz",yy:function(t){switch(r(t)){case 1:case 3:case 4:case 5:case 9:return t+" bloaz";default:return t+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(t){return t+(1===t?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(t){return"g.m."===t},meridiem:function(t,e,r){return t<12?"a.m.":"g.m."}})}(r(3))},function(t,e,r){!function(t){"use strict";
  50. //! moment.js locale configuration
  51. function e(t,e,r){var n=t+" ";switch(r){case"ss":return n+(1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi");case"mm":return n+(1===t?"minuta":2===t||3===t||4===t?"minute":"minuta");case"h":return"jedan sat";case"hh":return n+(1===t?"sat":2===t||3===t||4===t?"sata":"sati");case"dd":return n+(1===t?"dan":"dana");case"MM":return n+(1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci");case"yy":return n+(1===t?"godina":2===t||3===t||4===t?"godine":"godina")}}t.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:e,m:function(t,e,r,n){if("m"===r)return e?"jedna minuta":n?"jednu minutu":"jedne minute"},mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict";
  52. //! moment.js locale configuration
  53. t.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(t,e){var r=1===t?"r":2===t?"n":3===t?"r":4===t?"t":"è";return"w"!==e&&"W"!==e||(r="a"),t+r},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  54. //! moment.js locale configuration
  55. var e={standalone:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),format:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},r="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),n=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],i=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function s(t){return t>1&&t<5&&1!=~~(t/10)}function a(t,e,r,n){var i=t+" ";switch(r){case"s":return e||n?"pár sekund":"pár sekundami";case"ss":return e||n?i+(s(t)?"sekundy":"sekund"):i+"sekundami";case"m":return e?"minuta":n?"minutu":"minutou";case"mm":return e||n?i+(s(t)?"minuty":"minut"):i+"minutami";case"h":return e?"hodina":n?"hodinu":"hodinou";case"hh":return e||n?i+(s(t)?"hodiny":"hodin"):i+"hodinami";case"d":return e||n?"den":"dnem";case"dd":return e||n?i+(s(t)?"dny":"dní"):i+"dny";case"M":return e||n?"měsíc":"měsícem";case"MM":return e||n?i+(s(t)?"měsíce":"měsíců"):i+"měsíci";case"y":return e||n?"rok":"rokem";case"yy":return e||n?i+(s(t)?"roky":"let"):i+"lety"}}t.defineLocale("cs",{months:e,monthsShort:r,monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  56. //! moment.js locale configuration
  57. t.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(t){return t+(/сехет$/i.exec(t)?"рен":/ҫул$/i.exec(t)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict";
  58. //! moment.js locale configuration
  59. t.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(t){var e="";return t>20?e=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(e=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][t]),t+e},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  60. //! moment.js locale configuration
  61. t.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  62. //! moment.js locale configuration
  63. function e(t,e,r,n){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?i[r][0]:i[r][1]}t.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,w:e,ww:"%d Wochen",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  64. //! moment.js locale configuration
  65. function e(t,e,r,n){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?i[r][0]:i[r][1]}t.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,w:e,ww:"%d Wochen",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  66. //! moment.js locale configuration
  67. function e(t,e,r,n){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?i[r][0]:i[r][1]}t.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,w:e,ww:"%d Wochen",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  68. //! moment.js locale configuration
  69. var e=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],r=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];t.defineLocale("dv",{months:e,monthsShort:e,weekdays:r,weekdaysShort:r,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(t){return"މފ"===t},meridiem:function(t,e,r){return t<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:7,doy:12}})}(r(3))},function(t,e,r){!function(t){"use strict";
  70. //! moment.js locale configuration
  71. t.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(t,e){return t?"string"==typeof e&&/D/.test(e.substring(0,e.indexOf("MMMM")))?this._monthsGenitiveEl[t.month()]:this._monthsNominativeEl[t.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(t,e,r){return t>11?r?"μμ":"ΜΜ":r?"πμ":"ΠΜ"},isPM:function(t){return"μ"===(t+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){return 6===this.day()?"[το προηγούμενο] dddd [{}] LT":"[την προηγούμενη] dddd [{}] LT"},sameElse:"L"},calendar:function(t,e){var r=this._calendarEl[t],n=e&&e.hours();return function(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}(r)&&(r=r.apply(e)),r.replace("{}",n%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  72. //! moment.js locale configuration
  73. t.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:0,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  74. //! moment.js locale configuration
  75. t.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(r(3))},function(t,e,r){!function(t){"use strict";
  76. //! moment.js locale configuration
  77. t.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  78. //! moment.js locale configuration
  79. t.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  80. //! moment.js locale configuration
  81. t.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(r(3))},function(t,e,r){!function(t){"use strict";
  82. //! moment.js locale configuration
  83. t.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict";
  84. //! moment.js locale configuration
  85. t.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  86. //! moment.js locale configuration
  87. t.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  88. //! moment.js locale configuration
  89. t.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(t){return"p"===t.charAt(0).toLowerCase()},meridiem:function(t,e,r){return t>11?r?"p.t.m.":"P.T.M.":r?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict";
  90. //! moment.js locale configuration
  91. var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),r="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?r[t.month()]:e[t.month()]:e},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"})}(r(3))},function(t,e,r){!function(t){"use strict";
  92. //! moment.js locale configuration
  93. var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),r="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?r[t.month()]:e[t.month()]:e},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  94. //! moment.js locale configuration
  95. var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),r="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?r[t.month()]:e[t.month()]:e},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(r(3))},function(t,e,r){!function(t){"use strict";
  96. //! moment.js locale configuration
  97. var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),r="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?r[t.month()]:e[t.month()]:e},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict";
  98. //! moment.js locale configuration
  99. function e(t,e,r,n){var i={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[t+"sekundi",t+"sekundit"],m:["ühe minuti","üks minut"],mm:[t+" minuti",t+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[t+" tunni",t+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[t+" kuu",t+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[t+" aasta",t+" aastat"]};return e?i[r][2]?i[r][2]:i[r][1]:n?i[r][0]:i[r][1]}t.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:"%d päeva",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  100. //! moment.js locale configuration
  101. t.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict";
  102. //! moment.js locale configuration
  103. var e={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},r={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};t.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(t){return/بعد از ظهر/.test(t)},meridiem:function(t,e,r){return t<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(t){return t.replace(/[۰-۹]/g,(function(t){return r[t]})).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(r(3))},function(t,e,r){!function(t){"use strict";
  104. //! moment.js locale configuration
  105. var e="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),r=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",e[7],e[8],e[9]];function n(t,e,r,n){var s="";switch(r){case"s":return n?"muutaman sekunnin":"muutama sekunti";case"ss":s=n?"sekunnin":"sekuntia";break;case"m":return n?"minuutin":"minuutti";case"mm":s=n?"minuutin":"minuuttia";break;case"h":return n?"tunnin":"tunti";case"hh":s=n?"tunnin":"tuntia";break;case"d":return n?"päivän":"päivä";case"dd":s=n?"päivän":"päivää";break;case"M":return n?"kuukauden":"kuukausi";case"MM":s=n?"kuukauden":"kuukautta";break;case"y":return n?"vuoden":"vuosi";case"yy":s=n?"vuoden":"vuotta"}return i(t,n)+" "+s}function i(t,n){return t<10?n?r[t]:e[t]:t}t.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  106. //! moment.js locale configuration
  107. t.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  108. //! moment.js locale configuration
  109. t.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  110. //! moment.js locale configuration
  111. var e=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,r=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];t.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:e,monthsShortRegex:e,monthsStrictRegex:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,monthsShortStrictRegex:/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(t,e){switch(e){case"D":return t+(1===t?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  112. //! moment.js locale configuration
  113. t.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}}})}(r(3))},function(t,e,r){!function(t){"use strict";
  114. //! moment.js locale configuration
  115. t.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  116. //! moment.js locale configuration
  117. var e="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),r="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");t.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?r[t.month()]:e[t.month()]:e},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  118. //! moment.js locale configuration
  119. t.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],weekdaysShort:["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],weekdaysMin:["Do","Lu","Má","Cé","Dé","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){return t+(1===t?"d":t%10==2?"na":"mh")},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  120. //! moment.js locale configuration
  121. t.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){return t+(1===t?"d":t%10==2?"na":"mh")},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  122. //! moment.js locale configuration
  123. t.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(t){return 0===t.indexOf("un")?"n"+t:"en "+t},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  124. //! moment.js locale configuration
  125. function e(t,e,r,n){var i={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[t+" सॅकंडांनी",t+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[t+" मिणटांनी",t+" मिणटां"],h:["एका वरान","एक वर"],hh:[t+" वरांनी",t+" वरां"],d:["एका दिसान","एक दीस"],dd:[t+" दिसांनी",t+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[t+" म्हयन्यानी",t+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[t+" वर्सांनी",t+" वर्सां"]};return n?i[r][0]:i[r][1]}t.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(t,e){return"D"===e?t+"वेर":t},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(t,e){return 12===t&&(t=0),"राती"===e?t<4?t:t+12:"सकाळीं"===e?t:"दनपारां"===e?t>12?t:t+12:"सांजे"===e?t+12:void 0},meridiem:function(t,e,r){return t<4?"राती":t<12?"सकाळीं":t<16?"दनपारां":t<20?"सांजे":"राती"}})}(r(3))},function(t,e,r){!function(t){"use strict";
  126. //! moment.js locale configuration
  127. function e(t,e,r,n){var i={s:["thoddea sekondamni","thodde sekond"],ss:[t+" sekondamni",t+" sekond"],m:["eka mintan","ek minut"],mm:[t+" mintamni",t+" mintam"],h:["eka voran","ek vor"],hh:[t+" voramni",t+" voram"],d:["eka disan","ek dis"],dd:[t+" disamni",t+" dis"],M:["eka mhoinean","ek mhoino"],MM:[t+" mhoineamni",t+" mhoine"],y:["eka vorsan","ek voros"],yy:[t+" vorsamni",t+" vorsam"]};return n?i[r][0]:i[r][1]}t.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(t,e){return"D"===e?t+"er":t},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(t,e){return 12===t&&(t=0),"rati"===e?t<4?t:t+12:"sokallim"===e?t:"donparam"===e?t>12?t:t+12:"sanje"===e?t+12:void 0},meridiem:function(t,e,r){return t<4?"rati":t<12?"sokallim":t<16?"donparam":t<20?"sanje":"rati"}})}(r(3))},function(t,e,r){!function(t){"use strict";
  128. //! moment.js locale configuration
  129. var e={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},r={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};t.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(t){return t.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(t){return r[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(t,e){return 12===t&&(t=0),"રાત"===e?t<4?t:t+12:"સવાર"===e?t:"બપોર"===e?t>=10?t:t+12:"સાંજ"===e?t+12:void 0},meridiem:function(t,e,r){return t<4?"રાત":t<10?"સવાર":t<17?"બપોર":t<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict";
  130. //! moment.js locale configuration
  131. t.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(t){return 2===t?"שעתיים":t+" שעות"},d:"יום",dd:function(t){return 2===t?"יומיים":t+" ימים"},M:"חודש",MM:function(t){return 2===t?"חודשיים":t+" חודשים"},y:"שנה",yy:function(t){return 2===t?"שנתיים":t%10==0&&10!==t?t+" שנה":t+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(t){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(t)},meridiem:function(t,e,r){return t<5?"לפנות בוקר":t<10?"בבוקר":t<12?r?'לפנה"צ':"לפני הצהריים":t<18?r?'אחה"צ':"אחרי הצהריים":"בערב"}})}(r(3))},function(t,e,r){!function(t){"use strict";
  132. //! moment.js locale configuration
  133. var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},r={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},n=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i];t.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:n,longMonthsParse:n,shortMonthsParse:[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i],monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,(function(t){return r[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(t,e){return 12===t&&(t=0),"रात"===e?t<4?t:t+12:"सुबह"===e?t:"दोपहर"===e?t>=10?t:t+12:"शाम"===e?t+12:void 0},meridiem:function(t,e,r){return t<4?"रात":t<10?"सुबह":t<17?"दोपहर":t<20?"शाम":"रात"},week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict";
  134. //! moment.js locale configuration
  135. function e(t,e,r){var n=t+" ";switch(r){case"ss":return n+(1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi");case"m":return e?"jedna minuta":"jedne minute";case"mm":return n+(1===t?"minuta":2===t||3===t||4===t?"minute":"minuta");case"h":return e?"jedan sat":"jednog sata";case"hh":return n+(1===t?"sat":2===t||3===t||4===t?"sata":"sati");case"dd":return n+(1===t?"dan":"dana");case"MM":return n+(1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci");case"yy":return n+(1===t?"godina":2===t||3===t||4===t?"godine":"godina")}}t.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict";
  136. //! moment.js locale configuration
  137. var e="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function r(t,e,r,n){var i=t;switch(r){case"s":return n||e?"néhány másodperc":"néhány másodperce";case"ss":return i+(n||e)?" másodperc":" másodperce";case"m":return"egy"+(n||e?" perc":" perce");case"mm":return i+(n||e?" perc":" perce");case"h":return"egy"+(n||e?" óra":" órája");case"hh":return i+(n||e?" óra":" órája");case"d":return"egy"+(n||e?" nap":" napja");case"dd":return i+(n||e?" nap":" napja");case"M":return"egy"+(n||e?" hónap":" hónapja");case"MM":return i+(n||e?" hónap":" hónapja");case"y":return"egy"+(n||e?" év":" éve");case"yy":return i+(n||e?" év":" éve")}return""}function n(t){return(t?"":"[múlt] ")+"["+e[this.day()]+"] LT[-kor]"}t.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(t){return"u"===t.charAt(1).toLowerCase()},meridiem:function(t,e,r){return t<12?!0===r?"de":"DE":!0===r?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return n.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return n.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  138. //! moment.js locale configuration
  139. t.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(t){return/^(ցերեկվա|երեկոյան)$/.test(t)},meridiem:function(t){return t<4?"գիշերվա":t<12?"առավոտվա":t<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(t,e){switch(e){case"DDD":case"w":case"W":case"DDDo":return 1===t?t+"-ին":t+"-րդ";default:return t}},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict";
  140. //! moment.js locale configuration
  141. t.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"siang"===e?t>=11?t:t+12:"sore"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,r){return t<11?"pagi":t<15?"siang":t<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict";
  142. //! moment.js locale configuration
  143. function e(t){return t%100==11||t%10!=1}function r(t,r,n,i){var s=t+" ";switch(n){case"s":return r||i?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return e(t)?s+(r||i?"sekúndur":"sekúndum"):s+"sekúnda";case"m":return r?"mínúta":"mínútu";case"mm":return e(t)?s+(r||i?"mínútur":"mínútum"):r?s+"mínúta":s+"mínútu";case"hh":return e(t)?s+(r||i?"klukkustundir":"klukkustundum"):s+"klukkustund";case"d":return r?"dagur":i?"dag":"degi";case"dd":return e(t)?r?s+"dagar":s+(i?"daga":"dögum"):r?s+"dagur":s+(i?"dag":"degi");case"M":return r?"mánuður":i?"mánuð":"mánuði";case"MM":return e(t)?r?s+"mánuðir":s+(i?"mánuði":"mánuðum"):r?s+"mánuður":s+(i?"mánuð":"mánuði");case"y":return r||i?"ár":"ári";case"yy":return e(t)?s+(r||i?"ár":"árum"):s+(r||i?"ár":"ári")}}t.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:r,ss:r,m:r,mm:r,h:"klukkustund",hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  144. //! moment.js locale configuration
  145. t.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  146. //! moment.js locale configuration
  147. t.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  148. //! moment.js locale configuration
  149. t.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(t,e){return"元"===e[1]?1:parseInt(e[1]||t,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(t){return"午後"===t},meridiem:function(t,e,r){return t<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(t){return t.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(t){return this.week()!==t.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(t,e){switch(e){case"y":return 1===t?"元年":t+"年";case"d":case"D":case"DDD":return t+"日";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(r(3))},function(t,e,r){!function(t){"use strict";
  150. //! moment.js locale configuration
  151. t.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(t,e){return 12===t&&(t=0),"enjing"===e?t:"siyang"===e?t>=11?t:t+12:"sonten"===e||"ndalu"===e?t+12:void 0},meridiem:function(t,e,r){return t<11?"enjing":t<15?"siyang":t<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict";
  152. //! moment.js locale configuration
  153. t.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(t){return t.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(t,e,r){return"ი"===r?e+"ში":e+r+"ში"}))},past:function(t){return/(წამი|წუთი|საათი|დღე|თვე)/.test(t)?t.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(t)?t.replace(/წელი$/,"წლის წინ"):t},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(t){return 0===t?t:1===t?t+"-ლი":t<20||t<=100&&t%20==0||t%100==0?"მე-"+t:t+"-ე"},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict";
  154. //! moment.js locale configuration
  155. var e={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};t.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict";
  156. //! moment.js locale configuration
  157. var e={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},r={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};t.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(t){return"ល្ងាច"===t},meridiem:function(t,e,r){return t<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(t){return t.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(t){return r[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  158. //! moment.js locale configuration
  159. var e={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},r={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};t.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(t){return t.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(t){return r[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(t,e){return 12===t&&(t=0),"ರಾತ್ರಿ"===e?t<4?t:t+12:"ಬೆಳಿಗ್ಗೆ"===e?t:"ಮಧ್ಯಾಹ್ನ"===e?t>=10?t:t+12:"ಸಂಜೆ"===e?t+12:void 0},meridiem:function(t,e,r){return t<4?"ರಾತ್ರಿ":t<10?"ಬೆಳಿಗ್ಗೆ":t<17?"ಮಧ್ಯಾಹ್ನ":t<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(t){return t+"ನೇ"},week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict";
  160. //! moment.js locale configuration
  161. t.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"일";case"M":return t+"월";case"w":case"W":return t+"주";default:return t}},meridiemParse:/오전|오후/,isPM:function(t){return"오후"===t},meridiem:function(t,e,r){return t<12?"오전":"오후"}})}(r(3))},function(t,e,r){!function(t){"use strict";
  162. //! moment.js locale configuration
  163. var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},r={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},n=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];t.defineLocale("ku",{months:n,monthsShort:n,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(t){return/ئێواره‌/.test(t)},meridiem:function(t,e,r){return t<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(t){return r[t]})).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(r(3))},function(t,e,r){!function(t){"use strict";
  164. //! moment.js locale configuration
  165. function e(t,e,r,n){var i={s:["çend sanîye","çend sanîyeyan"],ss:[t+" sanîye",t+" sanîyeyan"],m:["deqîqeyek","deqîqeyekê"],mm:[t+" deqîqe",t+" deqîqeyan"],h:["saetek","saetekê"],hh:[t+" saet",t+" saetan"],d:["rojek","rojekê"],dd:[t+" roj",t+" rojan"],w:["hefteyek","hefteyekê"],ww:[t+" hefte",t+" hefteyan"],M:["mehek","mehekê"],MM:[t+" meh",t+" mehan"],y:["salek","salekê"],yy:[t+" sal",t+" salan"]};return e?i[r][0]:i[r][1]}t.defineLocale("ku-kmr",{months:"Rêbendan_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"Rêb_Sib_Ada_Nîs_Gul_Hez_Tîr_Teb_Îlo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yekşem_Duşem_Sêşem_Çarşem_Pêncşem_În_Şemî".split("_"),weekdaysShort:"Yek_Du_Sê_Çar_Pên_În_Şem".split("_"),weekdaysMin:"Ye_Du_Sê_Ça_Pê_În_Şe".split("_"),meridiem:function(t,e,r){return t<12?r?"bn":"BN":r?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[Îro di saet] LT [de]",nextDay:"[Sibê di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a borî di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"berî %s",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,w:e,ww:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}(?:yê|ê|\.)/,ordinal:function(t,e){var r=e.toLowerCase();return r.includes("w")||r.includes("m")?t+".":t+function(t){var e=(t=""+t).substring(t.length-1),r=t.length>1?t.substring(t.length-2):"";return 12==r||13==r||"2"!=e&&"3"!=e&&"50"!=r&&"70"!=e&&"80"!=e?"ê":"yê"}(t)},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  166. //! moment.js locale configuration
  167. var e={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};t.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict";
  168. //! moment.js locale configuration
  169. function e(t,e,r,n){var i={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return e?i[r][0]:i[r][1]}function r(t){if(t=parseInt(t,10),isNaN(t))return!1;if(t<0)return!0;if(t<10)return 4<=t&&t<=7;if(t<100){var e=t%10;return r(0===e?t/10:e)}if(t<1e4){for(;t>=10;)t/=10;return r(t)}return r(t/=1e3)}t.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(t){return r(t.substr(0,t.indexOf(" ")))?"a "+t:"an "+t},past:function(t){return r(t.substr(0,t.indexOf(" ")))?"viru "+t:"virun "+t},s:"e puer Sekonnen",ss:"%d Sekonnen",m:e,mm:"%d Minutten",h:e,hh:"%d Stonnen",d:e,dd:"%d Deeg",M:e,MM:"%d Méint",y:e,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  170. //! moment.js locale configuration
  171. t.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(t){return"ຕອນແລງ"===t},meridiem:function(t,e,r){return t<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(t){return"ທີ່"+t}})}(r(3))},function(t,e,r){!function(t){"use strict";
  172. //! moment.js locale configuration
  173. var e={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function r(t,e,r,n){return e?i(r)[0]:n?i(r)[1]:i(r)[2]}function n(t){return t%10==0||t>10&&t<20}function i(t){return e[t].split("_")}function s(t,e,s,a){var o=t+" ";return 1===t?o+r(0,e,s[0],a):e?o+(n(t)?i(s)[1]:i(s)[0]):a?o+i(s)[1]:o+(n(t)?i(s)[1]:i(s)[2])}t.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(t,e,r,n){return e?"kelios sekundės":n?"kelių sekundžių":"kelias sekundes"},ss:s,m:r,mm:s,h:r,hh:s,d:r,dd:s,M:r,MM:s,y:r,yy:s},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(t){return t+"-oji"},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  174. //! moment.js locale configuration
  175. var e={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function r(t,e,r){return r?e%10==1&&e%100!=11?t[2]:t[3]:e%10==1&&e%100!=11?t[0]:t[1]}function n(t,n,i){return t+" "+r(e[i],t,n)}function i(t,n,i){return r(e[i],t,n)}t.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(t,e){return e?"dažas sekundes":"dažām sekundēm"},ss:n,m:i,mm:n,h:i,hh:n,d:i,dd:n,M:i,MM:n,y:i,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  176. //! moment.js locale configuration
  177. var e={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,r,n){var i=e.words[n];return 1===n.length?r?i[0]:i[1]:t+" "+e.correctGrammaticalCase(t,i)}};t.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mjesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict";
  178. //! moment.js locale configuration
  179. t.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  180. //! moment.js locale configuration
  181. t.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(t){var e=t%10,r=t%100;return 0===t?t+"-ев":0===r?t+"-ен":r>10&&r<20?t+"-ти":1===e?t+"-ви":2===e?t+"-ри":7===e||8===e?t+"-ми":t+"-ти"},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict";
  182. //! moment.js locale configuration
  183. t.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(t,e){return 12===t&&(t=0),"രാത്രി"===e&&t>=4||"ഉച്ച കഴിഞ്ഞ്"===e||"വൈകുന്നേരം"===e?t+12:t},meridiem:function(t,e,r){return t<4?"രാത്രി":t<12?"രാവിലെ":t<17?"ഉച്ച കഴിഞ്ഞ്":t<20?"വൈകുന്നേരം":"രാത്രി"}})}(r(3))},function(t,e,r){!function(t){"use strict";
  184. //! moment.js locale configuration
  185. function e(t,e,r,n){switch(r){case"s":return e?"хэдхэн секунд":"хэдхэн секундын";case"ss":return t+(e?" секунд":" секундын");case"m":case"mm":return t+(e?" минут":" минутын");case"h":case"hh":return t+(e?" цаг":" цагийн");case"d":case"dd":return t+(e?" өдөр":" өдрийн");case"M":case"MM":return t+(e?" сар":" сарын");case"y":case"yy":return t+(e?" жил":" жилийн");default:return t}}t.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(t){return"ҮХ"===t},meridiem:function(t,e,r){return t<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+" өдөр";default:return t}}})}(r(3))},function(t,e,r){!function(t){"use strict";
  186. //! moment.js locale configuration
  187. var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},r={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function n(t,e,r,n){var i="";if(e)switch(r){case"s":i="काही सेकंद";break;case"ss":i="%d सेकंद";break;case"m":i="एक मिनिट";break;case"mm":i="%d मिनिटे";break;case"h":i="एक तास";break;case"hh":i="%d तास";break;case"d":i="एक दिवस";break;case"dd":i="%d दिवस";break;case"M":i="एक महिना";break;case"MM":i="%d महिने";break;case"y":i="एक वर्ष";break;case"yy":i="%d वर्षे"}else switch(r){case"s":i="काही सेकंदां";break;case"ss":i="%d सेकंदां";break;case"m":i="एका मिनिटा";break;case"mm":i="%d मिनिटां";break;case"h":i="एका तासा";break;case"hh":i="%d तासां";break;case"d":i="एका दिवसा";break;case"dd":i="%d दिवसां";break;case"M":i="एका महिन्या";break;case"MM":i="%d महिन्यां";break;case"y":i="एका वर्षा";break;case"yy":i="%d वर्षां"}return i.replace(/%d/i,t)}t.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,(function(t){return r[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(t,e){return 12===t&&(t=0),"पहाटे"===e||"सकाळी"===e?t:"दुपारी"===e||"सायंकाळी"===e||"रात्री"===e?t>=12?t:t+12:void 0},meridiem:function(t,e,r){return t>=0&&t<6?"पहाटे":t<12?"सकाळी":t<17?"दुपारी":t<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict";
  188. //! moment.js locale configuration
  189. t.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,r){return t<11?"pagi":t<15?"tengahari":t<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict";
  190. //! moment.js locale configuration
  191. t.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,r){return t<11?"pagi":t<15?"tengahari":t<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict";
  192. //! moment.js locale configuration
  193. t.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  194. //! moment.js locale configuration
  195. var e={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},r={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};t.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(t){return t.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(t){return r[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  196. //! moment.js locale configuration
  197. t.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"én time",hh:"%d timer",d:"én dag",dd:"%d dager",w:"én uke",ww:"%d uker",M:"én måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  198. //! moment.js locale configuration
  199. var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},r={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};t.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,(function(t){return r[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(t,e){return 12===t&&(t=0),"राति"===e?t<4?t:t+12:"बिहान"===e?t:"दिउँसो"===e?t>=10?t:t+12:"साँझ"===e?t+12:void 0},meridiem:function(t,e,r){return t<3?"राति":t<12?"बिहान":t<16?"दिउँसो":t<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict";
  200. //! moment.js locale configuration
  201. var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),r="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?r[t.month()]:e[t.month()]:e},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  202. //! moment.js locale configuration
  203. var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),r="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;t.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?r[t.month()]:e[t.month()]:e},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  204. //! moment.js locale configuration
  205. t.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  206. //! moment.js locale configuration
  207. t.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(t,e){var r=1===t?"r":2===t?"n":3===t?"r":4===t?"t":"è";return"w"!==e&&"W"!==e||(r="a"),t+r},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  208. //! moment.js locale configuration
  209. var e={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},r={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};t.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(t){return t.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(t){return r[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(t,e){return 12===t&&(t=0),"ਰਾਤ"===e?t<4?t:t+12:"ਸਵੇਰ"===e?t:"ਦੁਪਹਿਰ"===e?t>=10?t:t+12:"ਸ਼ਾਮ"===e?t+12:void 0},meridiem:function(t,e,r){return t<4?"ਰਾਤ":t<10?"ਸਵੇਰ":t<17?"ਦੁਪਹਿਰ":t<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict";
  210. //! moment.js locale configuration
  211. var e="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),r="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),n=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function i(t){return t%10<5&&t%10>1&&~~(t/10)%10!=1}function s(t,e,r){var n=t+" ";switch(r){case"ss":return n+(i(t)?"sekundy":"sekund");case"m":return e?"minuta":"minutę";case"mm":return n+(i(t)?"minuty":"minut");case"h":return e?"godzina":"godzinę";case"hh":return n+(i(t)?"godziny":"godzin");case"ww":return n+(i(t)?"tygodnie":"tygodni");case"MM":return n+(i(t)?"miesiące":"miesięcy");case"yy":return n+(i(t)?"lata":"lat")}}t.defineLocale("pl",{months:function(t,n){return t?/D MMMM/.test(n)?r[t.month()]:e[t.month()]:e},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:s,m:s,mm:s,h:s,hh:s,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:s,M:"miesiąc",MM:s,y:"rok",yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  212. //! moment.js locale configuration
  213. t.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  214. //! moment.js locale configuration
  215. t.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"})}(r(3))},function(t,e,r){!function(t){"use strict";
  216. //! moment.js locale configuration
  217. function e(t,e,r){var n=" ";return(t%100>=20||t>=100&&t%100==0)&&(n=" de "),t+n+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[r]}t.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:e,m:"un minut",mm:e,h:"o oră",hh:e,d:"o zi",dd:e,w:"o săptămână",ww:e,M:"o lună",MM:e,y:"un an",yy:e},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict";
  218. //! moment.js locale configuration
  219. function e(t,e,r){return"m"===r?e?"минута":"минуту":t+" "+function(t,e){var r=t.split("_");return e%10==1&&e%100!=11?r[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?r[1]:r[2]}({ss:e?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:e?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[r],+t)}var r=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];t.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:e,m:e,mm:e,h:"час",hh:e,d:"день",dd:e,w:"неделя",ww:e,M:"месяц",MM:e,y:"год",yy:e},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(t){return/^(дня|вечера)$/.test(t)},meridiem:function(t,e,r){return t<4?"ночи":t<12?"утра":t<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":return t+"-й";case"D":return t+"-го";case"w":case"W":return t+"-я";default:return t}},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  220. //! moment.js locale configuration
  221. var e=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],r=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];t.defineLocale("sd",{months:e,monthsShort:e,weekdays:r,weekdaysShort:r,weekdaysMin:r,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(t){return"شام"===t},meridiem:function(t,e,r){return t<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  222. //! moment.js locale configuration
  223. t.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  224. //! moment.js locale configuration
  225. t.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(t){return t+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(t){return"ප.ව."===t||"පස් වරු"===t},meridiem:function(t,e,r){return t>11?r?"ප.ව.":"පස් වරු":r?"පෙ.ව.":"පෙර වරු"}})}(r(3))},function(t,e,r){!function(t){"use strict";
  226. //! moment.js locale configuration
  227. var e="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),r="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function n(t){return t>1&&t<5}function i(t,e,r,i){var s=t+" ";switch(r){case"s":return e||i?"pár sekúnd":"pár sekundami";case"ss":return e||i?s+(n(t)?"sekundy":"sekúnd"):s+"sekundami";case"m":return e?"minúta":i?"minútu":"minútou";case"mm":return e||i?s+(n(t)?"minúty":"minút"):s+"minútami";case"h":return e?"hodina":i?"hodinu":"hodinou";case"hh":return e||i?s+(n(t)?"hodiny":"hodín"):s+"hodinami";case"d":return e||i?"deň":"dňom";case"dd":return e||i?s+(n(t)?"dni":"dní"):s+"dňami";case"M":return e||i?"mesiac":"mesiacom";case"MM":return e||i?s+(n(t)?"mesiace":"mesiacov"):s+"mesiacmi";case"y":return e||i?"rok":"rokom";case"yy":return e||i?s+(n(t)?"roky":"rokov"):s+"rokmi"}}t.defineLocale("sk",{months:e,monthsShort:r,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:case 4:case 5:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  228. //! moment.js locale configuration
  229. function e(t,e,r,n){var i=t+" ";switch(r){case"s":return e||n?"nekaj sekund":"nekaj sekundami";case"ss":return i+(1===t?e?"sekundo":"sekundi":2===t?e||n?"sekundi":"sekundah":t<5?e||n?"sekunde":"sekundah":"sekund");case"m":return e?"ena minuta":"eno minuto";case"mm":return i+(1===t?e?"minuta":"minuto":2===t?e||n?"minuti":"minutama":t<5?e||n?"minute":"minutami":e||n?"minut":"minutami");case"h":return e?"ena ura":"eno uro";case"hh":return i+(1===t?e?"ura":"uro":2===t?e||n?"uri":"urama":t<5?e||n?"ure":"urami":e||n?"ur":"urami");case"d":return e||n?"en dan":"enim dnem";case"dd":return i+(1===t?e||n?"dan":"dnem":2===t?e||n?"dni":"dnevoma":e||n?"dni":"dnevi");case"M":return e||n?"en mesec":"enim mesecem";case"MM":return i+(1===t?e||n?"mesec":"mesecem":2===t?e||n?"meseca":"mesecema":t<5?e||n?"mesece":"meseci":e||n?"mesecev":"meseci");case"y":return e||n?"eno leto":"enim letom";case"yy":return i+(1===t?e||n?"leto":"letom":2===t?e||n?"leti":"letoma":t<5?e||n?"leta":"leti":e||n?"let":"leti")}}t.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict";
  230. //! moment.js locale configuration
  231. t.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(t){return"M"===t.charAt(0)},meridiem:function(t,e,r){return t<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  232. //! moment.js locale configuration
  233. var e={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(t,e){return t%10>=1&&t%10<=4&&(t%100<10||t%100>=20)?t%10==1?e[0]:e[1]:e[2]},translate:function(t,r,n,i){var s,a=e.words[n];return 1===n.length?"y"===n&&r?"jedna godina":i||r?a[0]:a[1]:(s=e.correctGrammaticalCase(t,a),"yy"===n&&r&&"godinu"===s?t+" godina":t+" "+s)}};t.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:e.translate,dd:e.translate,M:e.translate,MM:e.translate,y:e.translate,yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict";
  234. //! moment.js locale configuration
  235. var e={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(t,e){return t%10>=1&&t%10<=4&&(t%100<10||t%100>=20)?t%10==1?e[0]:e[1]:e[2]},translate:function(t,r,n,i){var s,a=e.words[n];return 1===n.length?"y"===n&&r?"једна година":i||r?a[0]:a[1]:(s=e.correctGrammaticalCase(t,a),"yy"===n&&r&&"годину"===s?t+" година":t+" "+s)}};t.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:e.translate,dd:e.translate,M:e.translate,MM:e.translate,y:e.translate,yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict";
  236. //! moment.js locale configuration
  237. t.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(t,e,r){return t<11?"ekuseni":t<15?"emini":t<19?"entsambama":"ebusuku"},meridiemHour:function(t,e){return 12===t&&(t=0),"ekuseni"===e?t:"emini"===e?t>=11?t:t+12:"entsambama"===e||"ebusuku"===e?0===t?0:t+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  238. //! moment.js locale configuration
  239. t.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?":e":1===e||2===e?":a":":e")},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  240. //! moment.js locale configuration
  241. t.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict";
  242. //! moment.js locale configuration
  243. var e={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},r={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};t.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(t){return t+"வது"},preparse:function(t){return t.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(t){return r[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(t,e,r){return t<2?" யாமம்":t<6?" வைகறை":t<10?" காலை":t<14?" நண்பகல்":t<18?" எற்பாடு":t<22?" மாலை":" யாமம்"},meridiemHour:function(t,e){return 12===t&&(t=0),"யாமம்"===e?t<2?t:t+12:"வைகறை"===e||"காலை"===e||"நண்பகல்"===e&&t>=10?t:t+12},week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict";
  244. //! moment.js locale configuration
  245. t.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(t,e){return 12===t&&(t=0),"రాత్రి"===e?t<4?t:t+12:"ఉదయం"===e?t:"మధ్యాహ్నం"===e?t>=10?t:t+12:"సాయంత్రం"===e?t+12:void 0},meridiem:function(t,e,r){return t<4?"రాత్రి":t<10?"ఉదయం":t<17?"మధ్యాహ్నం":t<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(r(3))},function(t,e,r){!function(t){"use strict";
  246. //! moment.js locale configuration
  247. t.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  248. //! moment.js locale configuration
  249. var e={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};t.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(t,e){return 12===t&&(t=0),"шаб"===e?t<4?t:t+12:"субҳ"===e?t:"рӯз"===e?t>=11?t:t+12:"бегоҳ"===e?t+12:void 0},meridiem:function(t,e,r){return t<4?"шаб":t<11?"субҳ":t<16?"рӯз":t<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict";
  250. //! moment.js locale configuration
  251. t.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(t){return"หลังเที่ยง"===t},meridiem:function(t,e,r){return t<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(r(3))},function(t,e,r){!function(t){"use strict";
  252. //! moment.js locale configuration
  253. var e={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};t.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(t,r){switch(r){case"d":case"D":case"Do":case"DD":return t;default:if(0===t)return t+"'unjy";var n=t%10;return t+(e[n]||e[t%100-n]||e[t>=100?100:null])}},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict";
  254. //! moment.js locale configuration
  255. t.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  256. //! moment.js locale configuration
  257. var e="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function r(t,e,r,i){var s=n(t);switch(r){case"ss":return s+" lup";case"mm":return s+" tup";case"hh":return s+" rep";case"dd":return s+" jaj";case"MM":return s+" jar";case"yy":return s+" DIS"}}function n(t){var r=Math.floor(t%1e3/100),n=Math.floor(t%100/10),i=t%10,s="";return r>0&&(s+=e[r]+"vatlh"),n>0&&(s+=(""!==s?" ":"")+e[n]+"maH"),i>0&&(s+=(""!==s?" ":"")+e[i]),""===s?"pagh":s}t.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(t){var e=t;return-1!==t.indexOf("jaj")?e.slice(0,-3)+"leS":-1!==t.indexOf("jar")?e.slice(0,-3)+"waQ":-1!==t.indexOf("DIS")?e.slice(0,-3)+"nem":e+" pIq"},past:function(t){var e=t;return-1!==t.indexOf("jaj")?e.slice(0,-3)+"Hu’":-1!==t.indexOf("jar")?e.slice(0,-3)+"wen":-1!==t.indexOf("DIS")?e.slice(0,-3)+"ben":e+" ret"},s:"puS lup",ss:r,m:"wa’ tup",mm:r,h:"wa’ rep",hh:r,d:"wa’ jaj",dd:r,M:"wa’ jar",MM:r,y:"wa’ DIS",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  258. //! moment.js locale configuration
  259. var e={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};t.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(t,e,r){return t<12?r?"öö":"ÖÖ":r?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(t){return"ös"===t||"ÖS"===t},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(t,r){switch(r){case"d":case"D":case"Do":case"DD":return t;default:if(0===t)return t+"'ıncı";var n=t%10;return t+(e[n]||e[t%100-n]||e[t>=100?100:null])}},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict";
  260. //! moment.js locale configuration
  261. function e(t,e,r,n){var i={s:["viensas secunds","'iensas secunds"],ss:[t+" secunds",t+" secunds"],m:["'n míut","'iens míut"],mm:[t+" míuts",t+" míuts"],h:["'n þora","'iensa þora"],hh:[t+" þoras",t+" þoras"],d:["'n ziua","'iensa ziua"],dd:[t+" ziuas",t+" ziuas"],M:["'n mes","'iens mes"],MM:[t+" mesen",t+" mesen"],y:["'n ar","'iens ar"],yy:[t+" ars",t+" ars"]};return n||e?i[r][0]:i[r][1]}t.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(t){return"d'o"===t.toLowerCase()},meridiem:function(t,e,r){return t>11?r?"d'o":"D'O":r?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  262. //! moment.js locale configuration
  263. t.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(r(3))},function(t,e,r){!function(t){"use strict";
  264. //! moment.js locale configuration
  265. t.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(r(3))},function(t,e,r){!function(t){"use strict";
  266. //! moment.js locale configuration
  267. t.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(t,e){return 12===t&&(t=0),"يېرىم كېچە"===e||"سەھەر"===e||"چۈشتىن بۇرۇن"===e?t:"چۈشتىن كېيىن"===e||"كەچ"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,r){var n=100*t+e;return n<600?"يېرىم كېچە":n<900?"سەھەر":n<1130?"چۈشتىن بۇرۇن":n<1230?"چۈش":n<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"-كۈنى";case"w":case"W":return t+"-ھەپتە";default:return t}},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict";
  268. //! moment.js locale configuration
  269. function e(t,e,r){return"m"===r?e?"хвилина":"хвилину":"h"===r?e?"година":"годину":t+" "+function(t,e){var r=t.split("_");return e%10==1&&e%100!=11?r[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?r[1]:r[2]}({ss:e?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:e?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:e?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[r],+t)}function r(t){return function(){return t+"о"+(11===this.hours()?"б":"")+"] LT"}}t.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(t,e){var r={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===t?r.nominative.slice(1,7).concat(r.nominative.slice(0,1)):t?r[/(\[[ВвУу]\]) ?dddd/.test(e)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(e)?"genitive":"nominative"][t.day()]:r.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:r("[Сьогодні "),nextDay:r("[Завтра "),lastDay:r("[Вчора "),nextWeek:r("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return r("[Минулої] dddd [").call(this);case 1:case 2:case 4:return r("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:e,m:e,mm:e,h:"годину",hh:e,d:"день",dd:e,M:"місяць",MM:e,y:"рік",yy:e},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(t){return/^(дня|вечора)$/.test(t)},meridiem:function(t,e,r){return t<4?"ночі":t<12?"ранку":t<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t+"-й";case"D":return t+"-го";default:return t}},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict";
  270. //! moment.js locale configuration
  271. var e=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],r=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];t.defineLocale("ur",{months:e,monthsShort:e,weekdays:r,weekdaysShort:r,weekdaysMin:r,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(t){return"شام"===t},meridiem:function(t,e,r){return t<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  272. //! moment.js locale configuration
  273. t.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict";
  274. //! moment.js locale configuration
  275. t.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(r(3))},function(t,e,r){!function(t){"use strict";
  276. //! moment.js locale configuration
  277. t.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(t){return/^ch$/i.test(t)},meridiem:function(t,e,r){return t<12?r?"sa":"SA":r?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  278. //! moment.js locale configuration
  279. t.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  280. //! moment.js locale configuration
  281. t.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  282. //! moment.js locale configuration
  283. t.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"下午"===e||"晚上"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,r){var n=100*t+e;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(t){return t.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(t){return this.week()!==t.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"周";default:return t}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(r(3))},function(t,e,r){!function(t){"use strict";
  284. //! moment.js locale configuration
  285. t.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,r){var n=100*t+e;return n<600?"凌晨":n<900?"早上":n<1200?"上午":1200===n?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(r(3))},function(t,e,r){!function(t){"use strict";
  286. //! moment.js locale configuration
  287. t.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,r){var n=100*t+e;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(r(3))},function(t,e,r){!function(t){"use strict";
  288. //! moment.js locale configuration
  289. t.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,r){var n=100*t+e;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(r(3))},(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>l});var n=r(197),i=r(4);function s(t){return 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},s(t)}function a(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */a=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",h=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function d(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var s=e&&e.prototype instanceof g?e:g,a=Object.create(s.prototype),o=new A(n||[]);return i(a,"_invoke",{value:T(t,r,o)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var m="suspendedStart",p="suspendedYield",_="executing",y="completed",v={};function g(){}function b(){}function M(){}var w={};d(w,u,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(O([])));L&&L!==r&&n.call(L,u)&&(w=L);var S=M.prototype=g.prototype=Object.create(w);function x(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function Y(t,e){function r(i,a,o,u){var h=f(t[i],t,a);if("throw"!==h.type){var c=h.arg,d=c.value;return d&&"object"==s(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,o,u)}),(function(t){r("throw",t,o,u)})):e.resolve(d).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,u)}))}u(h.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function T(e,r,n){var i=m;return function(s,a){if(i===_)throw Error("Generator is already running");if(i===y){if("throw"===s)throw a;return{value:t,done:!0}}for(n.method=s,n.arg=a;;){var o=n.delegate;if(o){var u=D(o,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===m)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=_;var h=f(e,r,n);if("normal"===h.type){if(i=n.done?y:p,h.arg===v)continue;return{value:h.arg,done:n.done}}"throw"===h.type&&(i=y,n.method="throw",n.arg=h.arg)}}}function D(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,D(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var s=f(i,e.iterator,r.arg);if("throw"===s.type)return r.method="throw",r.arg=s.arg,r.delegate=null,v;var a=s.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function O(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(s(e)+" is not iterable")}return b.prototype=M,i(S,"constructor",{value:M,configurable:!0}),i(M,"constructor",{value:b,configurable:!0}),b.displayName=d(M,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,M):(t.__proto__=M,d(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},x(Y.prototype),d(Y.prototype,h,(function(){return this})),e.AsyncIterator=Y,e.async=function(t,r,n,i,s){void 0===s&&(s=Promise);var a=new Y(l(t,r,n,i),s);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(S),d(S,c,"Generator"),d(S,u,(function(){return this})),d(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=O,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return o.type="throw",o.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var s=this.tryEntries.length-1;s>=0;--s){var a=this.tryEntries[s],o=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),h=n.call(a,"finallyLoc");if(u&&h){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!h)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var s=i;break}}s&&("break"===t||"continue"===t)&&s.tryLoc<=e&&e<=s.finallyLoc&&(s=null);var a=s?s.completion:{};return a.type=t,a.arg=e,s?(this.method="next",this.next=s.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:O(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function o(t,e,r,n,i,s,a){try{var o=t[s](a),u=o.value}catch(t){return void r(t)}o.done?e(u):Promise.resolve(u).then(n,i)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var s=t.apply(e,r);function a(t){o(s,n,i,a,u,"next",t)}function u(t){o(s,n,i,a,u,"throw",t)}a(void 0)}))}}function h(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,d(n.key),n)}}function c(t,e,r){return(e=d(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){var e=function(t){if("object"!=s(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==s(e)?e:e+""}const l=function(){return t=function t(e){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),c(this,"play",function(){var t=u(a().mark((function t(e,n,s,o,h,c){var d,l,f,m,p,_,y,v,g,b;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return l=[{urls:["stun:".concat(h.uri)]},{urls:["turn:".concat(h.uri)],username:h.username,credential:h.password}],r.config.iceServers=l,r.config,r.pc=new RTCPeerConnection(r.config),r.pc.ontrack=r.ontrack,r.pc.onconnectionstatechange=r.onconnectionstatechange,r.pc.ontrack=function(t){e.srcObject=t.streams[0],r.stream&&r.stream.addTrack(t.track);var n=t.streams[0].getVideoTracks()[0];if(n){var i=n.getSettings();i.width,i.height}},r.name=n,f=r,r.pc.ondatachannel=function(t){t.channel.onopen=function(e){f.dataChannelOpen=!0,f.dataChannel=t.channel},t.channel.onerror=function(t){i.error("DataChannel error:",t)},t.channel.onmessage=function(t){t.data;var e=JSON.parse(t.data);e.virDevType,e.status,e.status,f.stateCallBack("DataChannelMessage",t.data,"通道信息来了")},t.channel.onclose=function(){}},r.pc.onicecandidate=function(t){if(t.candidate){var e={action:"candidate",name:r.name,label:t.candidate.sdpMLineIndex,id:t.candidate.sdpMid,candidate:t.candidate.candidate};c(e)}},r.pc.getSenders().forEach(function(){var t=u(a().mark((function t(e){var r;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e||!e.track||"video"!==e.track.kind){t.next=7;break}return(r=e.getParameters()).degradationPreference="maintain-resolution",r.encodings.maxFramerate=20,r.encodings.maxBitrate=1024,t.next=7,e.setParameters(r);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),m=RTCRtpReceiver.getCapabilities("video"),p=m.codecs,_=p.findIndex((function(t){return"video/H264"===t.mimeType})),y=p[_],p.splice(_,1),p.unshift(y),null===(d=r.pc.getTransceivers().find((function(t){return"video"===t.receiver.track.kind})))||void 0===d||d.setCodecPreferences(p),t.next=22,r.pc.setRemoteDescription(new RTCSessionDescription({type:s,sdp:o}));case 22:return t.next=24,r.pc.createAnswer();case 24:return v=t.sent,t.next=27,r.pc.setLocalDescription(v);case 27:if(g={name:n,action:"answer",sdp:v.sdp},c(g),r.init=!0,r.cache.length>0)for(b=0;b<r.cache.length;b++)r.cache[b],r.pc.addIceCandidate(r.cache[b]);case 31:case"end":return t.stop()}}),t)})));return function(e,r,n,i,s,a){return t.apply(this,arguments)}}()),c(this,"onconnectionstatechange",(function(t){if(r.connectionstatechange(r.pc.connectionState),r.stateCallBack("rtcState",r.pc.connectionState,"rtc当前状态"),r.pc)if(r.pc.connectionState,"failed"===r.pc.connectionState);else if("connected"===r.pc.connectionState){r.heartBeatFlag=setInterval(r.heartBeat,1e3);var e,n=document.getElementById("playerVideo");r.checkDecodeState=!0;var i=r;n.addEventListener("loadedmetadata",(function(){this.videoWidth>this.videoHeight?i.stateCallBack("screenChange",0,"安卓卡横屏"):i.stateCallBack("screenChange",1,"安卓卡竖屏")})),n.onresize=function(){n.videoWidth,n.videoHeight;var t={width:n.videoWidth,height:n.videoHeight};i.stateCallBack("videoResolution",t,"视频分辨率"),n.videoWidth>n.videoHeight?i.stateCallBack("screenChange",0,"安卓卡横屏"):i.stateCallBack("screenChange",1,"安卓卡竖屏"),e&&((window.performance.now()-e).toFixed(3),e=null)}}})),c(this,"connectionstatechange",(function(t){return t})),c(this,"channelSenData",(function(t){r.dataChannelOpen&&r.dataChannel.send(t)})),c(this,"close",(function(){clearInterval(r.heartBeatFlag),r.init=!1,r.pc&&r.pc.close(),r.pc=null,r.stream=null})),c(this,"openCamera",u(a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),navigator.mediaDevices.getUserMedia,!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia){t.next=9;break}return r.constraints,t.next=6,navigator.mediaDevices.getUserMedia(r.constraints);case 6:r.stream=t.sent,r.stream.getTracks().forEach((function(t){r.pc.addTrack(t,r.stream)}));case 9:case"end":return t.stop()}}),t)})))),c(this,"openVideo",u(a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r.stream,null!=r.stream){t.next=4;break}return t.abrupt("return",!1);case 4:r.stream.getTracks().forEach((function(t){"video"===t.kind&&(t.enabled=!0),"audio"===t.kind&&(t.enabled=!0)}));case 7:case"end":return t.stop()}}),t)})))),c(this,"closeVideo",u(a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=r.stream){t.next=3;break}return t.abrupt("return",!1);case 3:r.stream.getTracks().forEach((function(t){"video"===t.kind&&(t.enabled=!1),"audio"===t.kind&&(t.enabled=!1)}));case 6:case"end":return t.stop()}}),t)})))),c(this,"closeCamera",function(){var t=u(a().mark((function t(e){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),c(this,"setCandidate",function(){var t=u(a().mark((function t(e){var n;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r.init){if(r.cache.length>0)for(n=0;n<r.cache.length;n++)r.pc.addIceCandidate(r.cache[n]);r.cache=[],r.pc.addIceCandidate(e)}else r.cache.push(e);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),this.options=e,this.dataChannelOpen=!1,this.dataChannel=null,this.name="",this.cache=[],this.config={iceTransportPlicy:"all",iceServers:[{urls:["stun:".concat(e.stunURL)]},{urls:["turn:".concat(e.turnURL)],username:e.username,credential:e.password}]},this.init=!1,this.stream=null,this.constraints={audio:!0,video:{width:{min:1280,ideal:1280},height:{min:720,ideal:720},facingMode:"user"}},this.heartBeat=this.heartBeat.bind(this),this.lastBytesReceived=0,this.lastReportTime=0,this.lastPacketsLost=0,this.lastPacketsReceived=0,this.checkDecodeState=!1,this.checkFirstDecodeState=!0,this.checkCount=0,this.decodedCount=0,this.lastDecodedCount=0,this.lastSecondDecodedCount=0,this.lostPacketCount=0,this.maxLostRate=0,this.RtcEngineSDK=window.rtc_sdk.CloudGameSdk},e=[{key:"stateCallBack",value:function(t,e,r){var n={type:t,val:e,description:r};this.engine=new window.rtc_sdk.CloudGameSdk(this.options),this.engine.listenConnection(n)}},{key:"heartBeat",value:function(){if(this.checkDecodeState&&(this.getStreamStates(),this.checkCount++,5==this.checkCount)){this.checkCount=0;var t=this.decodedCount-this.lastDecodedCount;this.lastDecodedCount=this.decodedCount,this.checkFirstDecodeState?(this.checkFirstDecodeState=!1,t<5&&this.stateCallBack("decode_failure",n.decode_Failed,"解码失败")):(t<15||this.lostPacketCount>3&&this.maxLostRate>.15)&&(this.lostPacketCount,this.maxLostRate,this.stateCallBack("weak_net_feedback",n.decode_Failed,"当前弱网")),this.lostPacketCount=0,this.maxLostRate=0}}},{key:"getStreamStates",value:function(){var t=this;this.getReceiversStats().then((function(e){var r=0,n=0,i=0,s=(new Date).getTime(),a=0,o=0,u=0,h=0;0!=t.lastReportTime&&(i=(n=(r=(e.bytesReceived-t.lastBytesReceived)/(s-t.lastReportTime)*1e3)/1024)/1024),t.lastBytesReceived=e.bytesReceived,t.lastReportTime=s,0!=t.lastPacketsLost&&((o=e.packetsLost-t.lastPacketsLost)>0&&t.lostPacketCount++,u=e.packetsReceived-t.lastPacketsReceived,o>0&&u>0&&(a=o/(u+o))>t.maxLostRate&&(t.maxLostRate=a)),t.lastPacketsLost=e.packetsLost,t.lastPacketsReceived=e.packetsReceived,t.decodedCount=e.framesDecoded,h=e.framesPerSecond,0!=t.lastSecondDecodedCount&&void 0===e.framesPerSecond&&(h=t.decodedCount-t.lastSecondDecodedCount),t.lastSecondDecodedCount=t.decodedCount;var c={framesPerSecond:h,currentRoundTripTime:e.currentRoundTripTime,lostRate:Math.floor(a),secondsBytes:Math.floor(r),secondsKBytes:Math.floor(n),secondsMBytes:Math.floor(i),pliCount:e.pliCount};t.stateCallBack("StreamStates",c,"流状态")})).catch((function(t){}))}},{key:"getReceiversStats",value:function(){var t=this.pc;return new Promise((function(e,r){t.getStats(null).then((function(t){var r=0,n=0,i=0,s=0,a=0,o=0,u=0,h=0;t.forEach((function(t){"inbound-rtp"===t.type&&"video"===t.kind&&(r=t.framesPerSecond,a+=t.bytesReceived,i+=t.packetsLost,s+=t.packetsReceived,o=t.framesDecoded,u=t.framesReceived,h=t.pliCount,h+=t.firCount),"inbound-rtp"===t.type&&"audio"===t.kind&&(a+=t.bytesReceived,i+=t.packetsLost,s+=t.packetsReceived),"candidate-pair"===t.type&&void 0===(n=t.currentRoundTripTime)&&(n=0===t.totalRoundTripTime&&0===t.responsesReceived?0:t.totalRoundTripTime/t.responsesReceived)})),null!=n?n*=1e3:n=0,e({framesPerSecond:r,currentRoundTripTime:n,packetsLost:i,packetsReceived:s,bytesReceived:a,framesDecoded:o,framesReceived:u,pliCount:h})})).catch((function(t){r(t)}))}))}}],e&&h(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},(t,e,r)=>{"use strict";r.r(e),r.d(e,{Audio_ID:()=>a,Authen_ID:()=>n,DefinitionLevel_ID:()=>f,I_Frame_ID:()=>l,Landscape_ID:()=>u,MultiLogin_ID:()=>i,Net_Disconnect:()=>m,OPEN_SUCCESS:()=>y,PPS_ID:()=>d,Porto_Header_ID:()=>o,SPS_ID:()=>c,ScreenDirection_ID:()=>s,Vertica_ID:()=>h,decode_Failed:()=>_,verify_Failed:()=>p});var n=92,i=11,s=5,a=255,o=104,u=0,h=1,c=7,d=8,l=5,f=21,m=-1e3,p=-1001,_=-1002,y=0},(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>f});var n=r(199);function i(t){return i="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},i(t)}function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",h=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function d(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,s=Object.create(i.prototype),o=new A(n||[]);return a(s,"_invoke",{value:T(t,r,o)}),s}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var m="suspendedStart",p="suspendedYield",_="executing",y="completed",v={};function g(){}function b(){}function M(){}var w={};d(w,u,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(O([])));L&&L!==r&&n.call(L,u)&&(w=L);var S=M.prototype=g.prototype=Object.create(w);function x(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function Y(t,e){function r(s,a,o,u){var h=f(t[s],t,a);if("throw"!==h.type){var c=h.arg,d=c.value;return d&&"object"==i(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,o,u)}),(function(t){r("throw",t,o,u)})):e.resolve(d).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,u)}))}u(h.arg)}var s;a(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return s=s?s.then(i,i):i()}})}function T(e,r,n){var i=m;return function(s,a){if(i===_)throw Error("Generator is already running");if(i===y){if("throw"===s)throw a;return{value:t,done:!0}}for(n.method=s,n.arg=a;;){var o=n.delegate;if(o){var u=D(o,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===m)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=_;var h=f(e,r,n);if("normal"===h.type){if(i=n.done?y:p,h.arg===v)continue;return{value:h.arg,done:n.done}}"throw"===h.type&&(i=y,n.method="throw",n.arg=h.arg)}}}function D(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,D(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var s=f(i,e.iterator,r.arg);if("throw"===s.type)return r.method="throw",r.arg=s.arg,r.delegate=null,v;var a=s.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function O(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var s=-1,a=function r(){for(;++s<e.length;)if(n.call(e,s))return r.value=e[s],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(i(e)+" is not iterable")}return b.prototype=M,a(S,"constructor",{value:M,configurable:!0}),a(M,"constructor",{value:b,configurable:!0}),b.displayName=d(M,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,M):(t.__proto__=M,d(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},x(Y.prototype),d(Y.prototype,h,(function(){return this})),e.AsyncIterator=Y,e.async=function(t,r,n,i,s){void 0===s&&(s=Promise);var a=new Y(l(t,r,n,i),s);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(S),d(S,c,"Generator"),d(S,u,(function(){return this})),d(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=O,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return o.type="throw",o.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var s=this.tryEntries.length-1;s>=0;--s){var a=this.tryEntries[s],o=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),h=n.call(a,"finallyLoc");if(u&&h){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!h)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var s=i;break}}s&&("break"===t||"continue"===t)&&s.tryLoc<=e&&e<=s.finallyLoc&&(s=null);var a=s?s.completion:{};return a.type=t,a.arg=e,s?(this.method="next",this.next=s.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:O(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function a(t,e,r,n,i,s,a){try{var o=t[s](a),u=o.value}catch(t){return void r(t)}o.done?e(u):Promise.resolve(u).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var s=t.apply(e,r);function o(t){a(s,n,i,o,u,"next",t)}function u(t){a(s,n,i,o,u,"throw",t)}o(void 0)}))}}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,c(n.key),n)}}function h(t,e,r){return(e=c(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function c(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}function d(t){var e,r,n,i=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,n=Symbol.iterator);i--;){if(r&&null!=(e=t[r]))return e.call(t);if(n&&null!=(e=t[n]))return new l(e.call(t));r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function l(t){function e(t){if(Object(t)!==t)return Promise.reject(new TypeError(t+" is not an object."));var e=t.done;return Promise.resolve(t.value).then((function(t){return{value:t,done:e}}))}return l=function(t){this.s=t,this.n=t.next},l.prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(t){var r=this.s.return;return void 0===r?Promise.resolve({value:t,done:!0}):e(r.apply(this.s,arguments))},throw:function(t){var r=this.s.return;return void 0===r?Promise.reject(t):e(r.apply(this.s,arguments))}},new l(t)}r(4);const f=function(t,e,r){return e&&u(t.prototype,e),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),h(this,"initErrorCode",(function(){for(var t in n.ErrorCode)e.errorMsg.has(n.ErrorCode[t])||e.errorMsg.set(n.ErrorCode[t],t)})),h(this,"conn",function(){var t=o(s().mark((function t(r){var i;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.config=r,t.next=4,(0,n.connect)({servers:[r.url],timeout:3e3,reconnect:!0,maxReconnectAttempts:-1,pingInterval:3e3,name:r.name,reconnectTimeWait:3e3,waitOnFirstConnect:!1,noAsyncTraces:!1,token:r.token,user:r.username,pass:r.password,noEcho:r.noEcho}).then((function(t){return t})).catch((function(t){if(t.message,!r.connectionListener)return t;var e={type:"wsState",val:"TIMEOUT"===t.message?"TIMEOUT":"failed",description:"nats当前状态"};if(r.connectionListener&&r.connectionListener(e),!r.errorListener)return t;r.errorListener&&r.errorListener(t.message)}));case 4:if(e.nc=t.sent,!(e.nc instanceof Error)){t.next=9;break}return i=e.nc,e.nc=null,t.abrupt("return",i);case 9:return r.connectionListener&&o(s().mark((function t(){var n,i,a,o,u,h;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n={type:"wsState",val:"success",description:"nats当前状态"},r.connectionListener&&r.connectionListener(n),i=!1,a=!1,t.prev=5,u=d(e.nc.status());case 7:return t.next=9,u.next();case 9:if(!(i=!(h=t.sent).done)){t.next=14;break}h.value;case 11:i=!1,t.next=7;break;case 14:t.next=20;break;case 16:t.prev=16,t.t0=t.catch(5),a=!0,o=t.t0;case 20:if(t.prev=20,t.prev=21,!i||null==u.return){t.next=25;break}return t.next=25,u.return();case 25:if(t.prev=25,!a){t.next=28;break}throw o;case 28:return t.finish(25);case 29:return t.finish(20);case 30:case"end":return t.stop()}}),t,null,[[5,16,20,30],[21,,25,29]])})))().then(),t.abrupt("return",e.nc);case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),h(this,"sub",(function(t,r){if(!e.subCache.has(t)&&e.nc){e.subCache.set(t,r),e.timer=setTimeout((function(){e.config.connectionListener&&e.config.connectionListener({type:"wsState",val:"failed",description:"ICE连接失败"})}),3e3);var n=e.nc.subscribe(t,{callback:function(t,n){clearTimeout(e.timer),e.timer=null;var i=r(e.decode(n.data),n);e.encode(i),null!=n.reply&&n.respond(e.encode(i))}});e.subscriptions.set(t,n)}})),h(this,"unsub",(function(t){e.subCache.has(t)&&e.subscriptions.has(t)&&e.subscriptions.get(t).drain().then((function(){e.subCache.delete(t)}))})),h(this,"pub",(function(t,r){e.nc&&e.nc.publish(t,e.encode(r))})),h(this,"req",function(){var t=o(s().mark((function t(r,n){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.nc){t.next=4;break}return t.next=3,e.nc.request(r,n,{timeout:1e4,noMux:!0}).then((function(t){return e.decode(t.data)})).catch((function(t){return t}));case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()),h(this,"encode",(function(t){return null===t?"":"object"===i(t)?e.codec.encode(t):e.sc.encode(t)})),h(this,"decode",(function(t){return null===t?"":e.sc.decode(t)})),h(this,"close",o(s().mark((function t(){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.isActive()){t.next=6;break}return e.subCache.clear(),e.subscriptions.clear(),t.next=5,e.nc.drain();case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)})))),h(this,"isActive",(function(){return!!e.nc&&!e.nc.isClosed()})),h(this,"error",(function(t){return t instanceof n.NatsError&&e.errorMsg.has(t.message)?new n.NatsError(e.errorMsg.get(t.message),t.code,t):new n.NatsError("UnKnownError","-1",t)})),this.subCache=new Map,this.subscriptions=new Map,this.sc=new n.StringCodec,this.codec=new n.JSONCodec,this.nc=null,this.errorMsg=new Map,this.initErrorCode(),this.timer=null,this.config=""}))},(t,e,r)=>{"use strict";r.r(e),r.d(e,{AckPolicy:()=>Rt,AdvisoryKind:()=>Nt,Bench:()=>Cr,ConsumerDebugEvents:()=>Vr,ConsumerEvents:()=>Kr,DebugEvents:()=>B,DeliverPolicy:()=>Pt,DirectMsgHeaders:()=>Ft,DiscardPolicy:()=>At,Empty:()=>A,ErrorCode:()=>q,Events:()=>N,JSONCodec:()=>gt,JsHeaders:()=>Bt,KvWatchInclude:()=>qt,Match:()=>z,Metric:()=>Ir,MsgHdrsImpl:()=>yt,NatsError:()=>V,Nuid:()=>F,ReplayPolicy:()=>Ht,RepublishHeaders:()=>Ut,RequestStrategy:()=>W,RetentionPolicy:()=>jt,ServiceError:()=>Q,ServiceErrorCodeHeader:()=>X,ServiceErrorHeader:()=>$,ServiceResponseType:()=>J,ServiceVerb:()=>et,StorageType:()=>Ot,StoreCompression:()=>It,StringCodec:()=>vt,backoff:()=>dt,buildAuthenticator:()=>wr,canonicalMIMEHeaderKey:()=>mt,checkJsError:()=>Dt,connect:()=>Cn,consumerOpts:()=>Kt,createInbox:()=>tt,credsAuthenticator:()=>br,deadline:()=>ot,deferred:()=>ut,delay:()=>at,headers:()=>pt,isFlowControlMsg:()=>Yt,isHeartbeatMsg:()=>Tt,jwtAuthenticator:()=>gr,millis:()=>ft,nanos:()=>lt,nkeyAuthenticator:()=>vr,nkeys:()=>pr,nuid:()=>U,syncIterator:()=>Z,tokenAuthenticator:()=>yr,usernamePasswordAuthenticator:()=>_r}),t=r.hmd(t);var n=r(4);function i(t){return i="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},i(t)}function s(t,e,r,n){var i=a(b(1&n?t.prototype:t),e,r);return 2&n?function(t){return i.apply(r,t)}:i}function a(){return a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=b(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},a.apply(null,arguments)}function o(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||c(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,s,a,o=[],u=!0,h=!1;try{if(s=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=s.call(r)).done)&&(o.push(n.value),o.length!==e);u=!0);}catch(t){h=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(h)throw i}}return o}}(t,e)||c(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=c(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){o=!0,s=t},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw s}}}}function c(t,e){if(t){if("string"==typeof t)return d(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */l=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,s=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",h=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),o=new A(n||[]);return s(a,"_invoke",{value:T(t,r,o)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var m="suspendedStart",p="suspendedYield",_="executing",y="completed",v={};function g(){}function b(){}function M(){}var w={};c(w,o,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(O([])));L&&L!==r&&n.call(L,o)&&(w=L);var S=M.prototype=g.prototype=Object.create(w);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function Y(t,e){function r(s,a,o,u){var h=f(t[s],t,a);if("throw"!==h.type){var c=h.arg,d=c.value;return d&&"object"==i(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,o,u)}),(function(t){r("throw",t,o,u)})):e.resolve(d).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,u)}))}u(h.arg)}var a;s(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function T(e,r,n){var i=m;return function(s,a){if(i===_)throw Error("Generator is already running");if(i===y){if("throw"===s)throw a;return{value:t,done:!0}}for(n.method=s,n.arg=a;;){var o=n.delegate;if(o){var u=D(o,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===m)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=_;var h=f(e,r,n);if("normal"===h.type){if(i=n.done?y:p,h.arg===v)continue;return{value:h.arg,done:n.done}}"throw"===h.type&&(i=y,n.method="throw",n.arg=h.arg)}}}function D(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,D(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var s=f(i,e.iterator,r.arg);if("throw"===s.type)return r.method="throw",r.arg=s.arg,r.delegate=null,v;var a=s.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function O(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var s=-1,a=function r(){for(;++s<e.length;)if(n.call(e,s))return r.value=e[s],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(i(e)+" is not iterable")}return b.prototype=M,s(S,"constructor",{value:M,configurable:!0}),s(M,"constructor",{value:b,configurable:!0}),b.displayName=c(M,h,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,M):(t.__proto__=M,c(t,h,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},x(Y.prototype),c(Y.prototype,u,(function(){return this})),e.AsyncIterator=Y,e.async=function(t,r,n,i,s){void 0===s&&(s=Promise);var a=new Y(d(t,r,n,i),s);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(S),c(S,h,"Generator"),c(S,o,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=O,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return o.type="throw",o.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var s=this.tryEntries.length-1;s>=0;--s){var a=this.tryEntries[s],o=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),h=n.call(a,"finallyLoc");if(u&&h){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!h)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var s=i;break}}s&&("break"===t||"continue"===t)&&s.tryLoc<=e&&e<=s.finallyLoc&&(s=null);var a=s?s.completion:{};return a.type=t,a.arg=e,s?(this.method="next",this.next=s.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:O(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function f(t,e,r,n,i,s,a){try{var o=t[s](a),u=o.value}catch(t){return void r(t)}o.done?e(u):Promise.resolve(u).then(n,i)}function m(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var s=t.apply(e,r);function a(t){f(s,n,i,a,o,"next",t)}function o(t){f(s,n,i,a,o,"throw",t)}a(void 0)}))}}function p(t,e,r){return e=b(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,v()?Reflect.construct(e,r||[],b(t).constructor):e.apply(t,r))}function _(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&g(t,e)}function y(t){var e="function"==typeof Map?new Map:void 0;return y=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return function(t,e,r){if(v())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));return r&&g(i,r.prototype),i}(t,arguments,b(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),g(r,t)},y(t)}function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(v=function(){return!!t})()}function g(t,e){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},g(t,e)}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},b(t)}function M(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,S(n.key),n)}}function k(t,e,r){return e&&w(t.prototype,e),r&&w(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function L(t,e,r){return(e=S(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function S(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}function x(t){var e,r,n,i=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,n=Symbol.iterator);i--;){if(r&&null!=(e=t[r]))return e.call(t);if(n&&null!=(e=t[n]))return new Y(e.call(t));r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function Y(t){function e(t){if(Object(t)!==t)return Promise.reject(new TypeError(t+" is not an object."));var e=t.done;return Promise.resolve(t.value).then((function(t){return{value:t,done:e}}))}return Y=function(t){this.s=t,this.n=t.next},Y.prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(t){var r=this.s.return;return void 0===r?Promise.resolve({value:t,done:!0}):e(r.apply(this.s,arguments))},throw:function(t){var r=this.s.return;return void 0===r?Promise.reject(t):e(r.apply(this.s,arguments))}},new Y(t)}function T(t){return new j(t,0)}function D(t){return function(){return new E(t.apply(this,arguments))}}function E(t){var e,r;function n(e,r){try{var s=t[e](r),a=s.value,o=a instanceof j;Promise.resolve(o?a.v:a).then((function(r){if(o){var u="return"===e?"return":"next";if(!a.k||r.done)return n(u,r);r=t[u](r).value}i(s.done?"return":"normal",r)}),(function(t){n("throw",t)}))}catch(t){i("throw",t)}}function i(t,i){switch(t){case"return":e.resolve({value:i,done:!0});break;case"throw":e.reject(i);break;default:e.resolve({value:i,done:!1})}(e=e.next)?n(e.key,e.arg):r=null}this._invoke=function(t,i){return new Promise((function(s,a){var o={key:t,arg:i,resolve:s,reject:a,next:null};r?r=r.next=o:(e=r=o,n(t,i))}))},"function"!=typeof t.return&&(this.return=void 0)}function j(t,e){this.v=t,this.k=e}E.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},E.prototype.next=function(t){return this._invoke("next",t)},E.prototype.throw=function(t){return this._invoke("throw",t)},E.prototype.return=function(t){return this._invoke("return",t)};var A=new Uint8Array(0),O=new TextEncoder,P=new TextDecoder;function R(){for(var t=0,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];for(var i=0;i<r.length;i++)t+=r[i].length;for(var s=new Uint8Array(t),a=0,o=0;o<r.length;o++)s.set(r[o],a),a+=r[o].length;return s}function H(){for(var t=[],e=0;e<arguments.length;e++)t.push(O.encode(e<0||arguments.length<=e?void 0:arguments[e]));return 0===t.length?A:1===t.length?t[0]:R.apply(void 0,t)}function I(t){return t&&0!==t.length?P.decode(t):""}var C="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";var N,B,q,F=k((function t(){M(this,t),L(this,"buf",void 0),L(this,"seq",void 0),L(this,"inc",void 0),L(this,"inited",void 0),this.buf=new Uint8Array(22),this.inited=!1}),[{key:"init",value:function(){this.inited=!0,this.setPre(),this.initSeqAndInc(),this.fillSeq()}},{key:"initSeqAndInc",value:function(){this.seq=Math.floor(0xcfd41b9100000*Math.random()),this.inc=Math.floor(300*Math.random()+33)}},{key:"setPre",value:function(){var t=new Uint8Array(12);!function(t){var e;null!==globalThis&&void 0!==globalThis&&null!==(e=globalThis.crypto)&&void 0!==e&&e.getRandomValues?globalThis.crypto.getRandomValues(t):function(t){for(var e=0;e<t.length;e++)t[e]=Math.floor(255*Math.random())}(t)}(t);for(var e=0;e<12;e++){var r=t[e]%36;this.buf[e]=C.charCodeAt(r)}}},{key:"fillSeq",value:function(){for(var t=this.seq,e=21;e>=12;e--)this.buf[e]=C.charCodeAt(t%36),t=Math.floor(t/36)}},{key:"next",value:function(){return this.inited||this.init(),this.seq+=this.inc,this.seq>0xcfd41b9100000&&(this.setPre(),this.initSeqAndInc()),this.fillSeq(),String.fromCharCode.apply(String,this.buf)}},{key:"reset",value:function(){this.init()}}]),U=new F;!function(t){t.Disconnect="disconnect",t.Reconnect="reconnect",t.Update="update",t.LDM="ldm",t.Error="error"}(N||(N={})),function(t){t.Reconnecting="reconnecting",t.PingTimer="pingTimer",t.StaleConnection="staleConnection",t.ClientInitiatedReconnect="client initiated reconnect"}(B||(B={})),function(t){t.ApiError="BAD API",t.BadAuthentication="BAD_AUTHENTICATION",t.BadCreds="BAD_CREDS",t.BadHeader="BAD_HEADER",t.BadJson="BAD_JSON",t.BadPayload="BAD_PAYLOAD",t.BadSubject="BAD_SUBJECT",t.Cancelled="CANCELLED",t.ConnectionClosed="CONNECTION_CLOSED",t.ConnectionDraining="CONNECTION_DRAINING",t.ConnectionRefused="CONNECTION_REFUSED",t.ConnectionTimeout="CONNECTION_TIMEOUT",t.Disconnect="DISCONNECT",t.InvalidOption="INVALID_OPTION",t.InvalidPayload="INVALID_PAYLOAD",t.MaxPayloadExceeded="MAX_PAYLOAD_EXCEEDED",t.NoResponders="503",t.NotFunction="NOT_FUNC",t.RequestError="REQUEST_ERROR",t.ServerOptionNotAvailable="SERVER_OPT_NA",t.SubClosed="SUB_CLOSED",t.SubDraining="SUB_DRAINING",t.Timeout="TIMEOUT",t.Tls="TLS",t.Unknown="UNKNOWN_ERROR",t.WssRequired="WSS_REQUIRED",t.JetStreamInvalidAck="JESTREAM_INVALID_ACK",t.JetStream404NoMessages="404",t.JetStream408RequestTimeout="408",t.JetStream409MaxAckPendingExceeded="409",t.JetStream409="409",t.JetStreamNotEnabled="503",t.JetStreamIdleHeartBeat="IDLE_HEARTBEAT",t.AuthorizationViolation="AUTHORIZATION_VIOLATION",t.AuthenticationExpired="AUTHENTICATION_EXPIRED",t.ProtocolError="NATS_PROTOCOL_ERR",t.PermissionsViolation="PERMISSIONS_VIOLATION",t.AuthenticationTimeout="AUTHENTICATION_TIMEOUT",t.AccountExpired="ACCOUNT_EXPIRED"}(q||(q={}));var z,W,J,G=k((function t(){M(this,t),L(this,"messages",void 0),this.messages=new Map,this.messages.set(q.InvalidPayload,"Invalid payload type - payloads can be 'binary', 'string', or 'json'"),this.messages.set(q.BadJson,"Bad JSON"),this.messages.set(q.WssRequired,"TLS is required, therefore a secure websocket connection is also required")}),[{key:"getMessage",value:function(t){return this.messages.get(t)||t}}],[{key:"getMessage",value:function(t){return K.getMessage(t)}}]),K=new G,V=function(t){function e(t,r,n){var i;return M(this,e),L(i=p(this,e,[t]),"name",void 0),L(i,"message",void 0),L(i,"code",void 0),L(i,"permissionContext",void 0),L(i,"chainedError",void 0),L(i,"api_error",void 0),i.name="NatsError",i.message=t,i.code=r,i.chainedError=n,i}return _(e,t),k(e,[{key:"isAuthError",value:function(){return this.code===q.AuthenticationExpired||this.code===q.AuthorizationViolation||this.code===q.AccountExpired}},{key:"isAuthTimeout",value:function(){return this.code===q.AuthenticationTimeout}},{key:"isPermissionError",value:function(){return this.code===q.PermissionsViolation}},{key:"isProtocolError",value:function(){return this.code===q.ProtocolError}},{key:"isJetStreamError",value:function(){return void 0!==this.api_error}},{key:"jsError",value:function(){return this.api_error?this.api_error:null}}],[{key:"errorForCode",value:function(t,r){return new e(G.getMessage(t),t,r)}}])}(y(Error));function Z(t){var e=t[Symbol.asyncIterator]();return{next:function(){return m(l().mark((function t(){var r;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.next();case 2:if(!(r=t.sent).done){t.next=5;break}return t.abrupt("return",Promise.resolve(null));case 5:return t.abrupt("return",Promise.resolve(r.value));case 6:case"end":return t.stop()}}),t)})))()}}}!function(t){t[t.Exact=0]="Exact",t[t.CanonicalMIME=1]="CanonicalMIME",t[t.IgnoreCase=2]="IgnoreCase"}(z||(z={})),function(t){t.Timer="timer",t.Count="count",t.JitterTimer="jitterTimer",t.SentinelMsg="sentinelMsg"}(W||(W={})),function(t){t.STATS="io.nats.micro.v1.stats_response",t.INFO="io.nats.micro.v1.info_response",t.PING="io.nats.micro.v1.ping_response"}(J||(J={}));var $="Nats-Service-Error",X="Nats-Service-Error-Code",Q=function(t){function e(t,r){var n;return M(this,e),L(n=p(this,e,[r]),"code",void 0),n.code=t,n}return _(e,t),k(e,null,[{key:"isServiceError",value:function(t){return null!==e.toServiceError(t)}},{key:"toServiceError",value:function(t){var r,n=(null==t||null===(r=t.headers)||void 0===r?void 0:r.get(X))||"";if(""!==n){var i,s=parseInt(n)||400,a=(null==t||null===(i=t.headers)||void 0===i?void 0:i.get($))||"";return new e(s,a.length?a:n)}return null}}])}(y(Error));function tt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if("string"!=typeof(t=t||"_INBOX"))throw new Error("prefix must be a string");return t.split(".").forEach((function(e){if("*"===e||">"===e)throw new Error("inbox prefixes cannot have wildcards '".concat(t,"'"))})),"".concat(t,".").concat(U.next())}var et,rt="127.0.0.1";function nt(t){for(var e=arguments,r=function(){var r=n+1<1||e.length<=n+1?void 0:e[n+1];Object.keys(r).forEach((function(e){t[e]=r[e]}))},n=0;n<(arguments.length<=1?0:arguments.length-1);n++)r();return t}function it(t){return P.decode(t).replace(/\n/g,"␊").replace(/\r/g,"␍")}function st(t){var e,r,n=arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?null:V.errorForCode(q.Timeout),i=new Promise((function(i,s){e={cancel:function(){r&&clearTimeout(r)}},r=setTimeout((function(){s(null===n?V.errorForCode(q.Timeout):n)}),t)}));return Object.assign(i,e)}function at(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=new Promise((function(r){var n=setTimeout((function(){r()}),e);t={cancel:function(){n&&clearTimeout(n)}}}));return Object.assign(r,t)}function ot(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,r=new Error("deadline exceeded"),n=ut(),i=setTimeout((function(){return n.reject(r)}),e);return Promise.race([t,n]).finally((function(){return clearTimeout(i)}))}function ut(){var t={},e=new Promise((function(e,r){t={resolve:e,reject:r}}));return Object.assign(e,t)}function ht(t){for(var e=t.length-1;e>0;e--){var r=Math.floor(Math.random()*(e+1)),n=[t[r],t[e]];t[e]=n[0],t[r]=n[1]}return t}!function(t){t.PING="PING",t.STATS="STATS",t.INFO="INFO"}(et||(et={}));var ct=k((function t(){M(this,t),L(this,"timers",void 0),L(this,"measures",void 0),this.timers=new Map,this.measures=new Map}),[{key:"mark",value:function(t){this.timers.set(t,performance.now())}},{key:"measure",value:function(t,e,r){var n=this.timers.get(e);if(void 0===n)throw new Error("".concat(e," is not defined"));var i=this.timers.get(r);if(void 0===i)throw new Error("".concat(r," is not defined"));this.measures.set(t,i-n)}},{key:"getEntries",value:function(){var t=[];return this.measures.forEach((function(e,r){t.push({name:r,duration:e})})),t}}]);function dt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[0,250,250,500,500,3e3,5e3];Array.isArray(t)||(t=[0,250,250,500,500,3e3,5e3]);var e=t.length-1;return{backoff:function(r){return 0===(n=r>e?t[e]:t[r])?0:Math.floor(n/2+Math.random()*n);var n}}}function lt(t){return 1e6*t}function ft(t){return Math.floor(t/1e6)}function mt(t){for(var e=!0,r=new Array(t.length),n=0;n<t.length;n++){var i=t.charCodeAt(n);if(58===i||i<33||i>126)throw new V("'".concat(t[n],"' is not a valid character for a header key"),q.BadHeader);e&&97<=i&&i<=122?i-=32:!e&&65<=i&&i<=90&&(i+=32),r[n]=i,e=45==i}return String.fromCharCode.apply(String,r)}function pt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(0===t&&""!==e||t>0&&""===e)throw new Error("setting status requires both code and description");return new yt(t,e)}var _t="NATS/1.0",yt=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";M(this,t),L(this,"_code",void 0),L(this,"headers",void 0),L(this,"_description",void 0),this._code=e,this._description=r,this.headers=new Map}return k(t,[{key:Symbol.iterator,value:function(){return this.headers.entries()}},{key:"size",value:function(){return this.headers.size}},{key:"equals",value:function(t){if(t&&this.headers.size===t.headers.size&&this._code===t._code){var e,r=h(this.headers);try{for(r.s();!(e=r.n()).done;){var n=u(e.value,2),i=n[0],s=n[1],a=t.values(i);if(s.length!==a.length)return!1;for(var c=o(s).sort(),d=o(a).sort(),l=0;l<c.length;l++)if(c[l]!==d[l])return!1}}catch(t){r.e(t)}finally{r.f()}return!0}return!1}},{key:"toString",value:function(){if(0===this.headers.size&&0===this._code)return"";var t=_t;this._code>0&&""!==this._description&&(t+=" ".concat(this._code," ").concat(this._description));var e,r=h(this.headers);try{for(r.s();!(e=r.n()).done;)for(var n=u(e.value,2),i=n[0],s=n[1],a=0;a<s.length;a++)t="".concat(t,"\r\n").concat(i,": ").concat(s[a])}catch(t){r.e(t)}finally{r.f()}return"".concat(t,"\r\n\r\n")}},{key:"encode",value:function(){return O.encode(this.toString())}},{key:"keys",value:function(){var t,e=[],r=h(this.headers.keys());try{for(r.s();!(t=r.n()).done;){var n=t.value;e.push(n)}}catch(t){r.e(t)}finally{r.f()}return e}},{key:"findKeys",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z.Exact,r=this.keys();switch(e){case z.Exact:return r.filter((function(e){return e===t}));case z.CanonicalMIME:return t=mt(t),r.filter((function(e){return e===t}));default:var n=t.toLowerCase();return r.filter((function(t){return n===t.toLowerCase()}))}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z.Exact,r=this.findKeys(t,e);if(r.length){var n=this.headers.get(r[0]);if(n)return Array.isArray(n)?n[0]:n}return""}},{key:"last",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z.Exact,r=this.findKeys(t,e);if(r.length){var n=this.headers.get(r[0]);if(n)return Array.isArray(n)?n[n.length-1]:n}return""}},{key:"has",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z.Exact;return this.findKeys(t,e).length>0}},{key:"set",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:z.Exact;this.delete(t,r),this.append(t,e,r)}},{key:"append",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:z.Exact,i=mt(e);n===z.CanonicalMIME&&(e=i);var s=this.findKeys(e,n);e=s.length>0?s[0]:e;var a=t.validHeaderValue(r),o=this.headers.get(e);o||(o=[],this.headers.set(e,o)),o.push(a)}},{key:"values",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z.Exact,n=[];return this.findKeys(t,r).forEach((function(t){var r=e.headers.get(t);r&&n.push.apply(n,o(r))})),n}},{key:"delete",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z.Exact;this.findKeys(t,r).forEach((function(t){e.headers.delete(t)}))}},{key:"hasError",get:function(){return this._code>=300}},{key:"status",get:function(){return"".concat(this._code," ").concat(this._description).trim()}},{key:"toRecord",value:function(){var t=this,e={};return this.keys().forEach((function(r){e[r]=t.values(r)})),e}},{key:"code",get:function(){return this._code}},{key:"description",get:function(){return this._description}}],[{key:"decode",value:function(e){var r=new t,n=P.decode(e).split("\r\n"),i=n[0];if(i!==_t){var s=i.replace(_t,"").trim();if(s.length>0){r._code=parseInt(s,10),isNaN(r._code)&&(r._code=0);var a=r._code.toString();s=s.replace(a,""),r._description=s.trim()}}return n.length>=1&&n.slice(1).map((function(t){if(t){var e=t.indexOf(":");if(e>-1){var n=t.slice(0,e),i=t.slice(e+1).trim();r.append(n,i)}}})),r}},{key:"validHeaderValue",value:function(t){if(/[\r\n]/.test(t))throw new V("invalid header value - \\r and \\n are not allowed.",q.BadHeader);return t.trim()}},{key:"fromRecord",value:function(e){var r=new t;for(var n in e)r.headers.set(n,e[n]);return r}}])}();function vt(){return{encode:function(t){return O.encode(t)},decode:function(t){return P.decode(t)}}}function gt(t){return{encode:function(t){try{return void 0===t&&(t=null),O.encode(JSON.stringify(t))}catch(t){throw V.errorForCode(q.BadJson,t)}},decode:function(e){try{return JSON.parse(P.decode(e),t)}catch(t){throw V.errorForCode(q.BadJson,t)}}}}function bt(t){var e;return t&&0===t.data.length&&503===(null===(e=t.headers)||void 0===e?void 0:e.code)?V.errorForCode(q.NoResponders):null}var Mt,wt=k((function t(e,r,n){M(this,t),L(this,"_headers",void 0),L(this,"_msg",void 0),L(this,"_rdata",void 0),L(this,"_reply",void 0),L(this,"_subject",void 0),L(this,"publisher",void 0),this._msg=e,this._rdata=r,this.publisher=n}),[{key:"subject",get:function(){return this._subject||(this._subject=P.decode(this._msg.subject)),this._subject}},{key:"reply",get:function(){return this._reply||(this._reply=P.decode(this._msg.reply)),this._reply}},{key:"sid",get:function(){return this._msg.sid}},{key:"headers",get:function(){if(this._msg.hdr>-1&&!this._headers){var t=this._rdata.subarray(0,this._msg.hdr);this._headers=yt.decode(t)}return this._headers}},{key:"data",get:function(){return this._rdata?this._msg.hdr>-1?this._rdata.subarray(this._msg.hdr):this._rdata:new Uint8Array(0)}},{key:"respond",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A,e=arguments.length>1?arguments[1]:void 0;return!!this.reply&&(this.publisher.publish(this.reply,t,e),!0)}},{key:"size",value:function(){var t;return this._msg.subject.length+((null===(t=this._msg.reply)||void 0===t?void 0:t.length)||0)+(-1===this._msg.size?0:this._msg.size)}},{key:"json",value:function(t){return gt(t).decode(this.data)}},{key:"string",value:function(){return P.decode(this.data)}},{key:"requestInfo",value:function(){var t,e=null===(t=this.headers)||void 0===t?void 0:t.get("Nats-Request-Info");return e?JSON.parse(e,(function(t,e){return"start"!==t&&"stop"!==t||""===e?e:new Date(Date.parse(e))})):null}}]);function kt(t){return St("durable",t)}function Lt(t){return St("stream",t)}function St(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(""===e)throw Error("".concat(t," name required"));return[".","*",">","/","\\"," ","\t","\n","\r"].forEach((function(r){if(-1!==e.indexOf(r)){switch(r){case"\n":r="\\n";break;case"\r":r="\\r";break;case"\t":r="\\t"}throw Error("invalid ".concat(t," name - ").concat(t," name cannot contain '").concat(r,"'"))}})),""}function xt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(""===e)throw Error("".concat(t," name required"));var r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(""===t)throw Error("name required");var e=/^[-\w]+$/g;if(null===t.match(e)){var r,n=h(t.split(""));try{for(n.s();!(r=n.n()).done;){var i=r.value;if(null===i.match(e))return"cannot contain '".concat(i,"'")}}catch(t){n.e(t)}finally{n.f()}}return""}(e);if(r.length)throw new Error("invalid ".concat(t," name - ").concat(t," name ").concat(r))}function Yt(t){if(t.data.length>0)return!1;var e=t.headers;return!!e&&e.code>=100&&e.code<200}function Tt(t){var e;return Yt(t)&&"Idle Heartbeat"===(null===(e=t.headers)||void 0===e?void 0:e.description)}function Dt(t){if(0!==t.data.length)return null;var e=t.headers;return e?Et(e.code,e.description):null}L(wt,"jc",void 0),function(t){t.MaxBatchExceeded="exceeded maxrequestbatch of",t.MaxExpiresExceeded="exceeded maxrequestexpires of",t.MaxBytesExceeded="exceeded maxrequestmaxbytes of",t.MaxMessageSizeExceeded="message size exceeds maxbytes",t.PushConsumer="consumer is push based",t.MaxWaitingExceeded="exceeded maxwaiting",t.IdleHeartbeatMissed="idle heartbeats missed",t.ConsumerDeleted="consumer deleted"}(Mt||(Mt={}));function Et(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t<300)return null;switch(e=e.toLowerCase(),t){case 404:return new V(e,q.JetStream404NoMessages);case 408:return new V(e,q.JetStream408RequestTimeout);case 409:var r=e.startsWith(Mt.IdleHeartbeatMissed)?q.JetStreamIdleHeartBeat:q.JetStream409;return new V(e,r);case 503:return V.errorForCode(q.JetStreamNotEnabled,new Error(e));default:return""===e&&(e=q.Unknown),new V(e,"".concat(t))}}var jt,At,Ot,Pt,Rt,Ht,It,Ct,Nt,Bt,qt,Ft,Ut,zt=k((function t(){M(this,t),L(this,"inflight",void 0),L(this,"processed",void 0),L(this,"received",void 0),L(this,"noIterator",void 0),L(this,"iterClosed",void 0),L(this,"done",void 0),L(this,"signal",void 0),L(this,"yields",void 0),L(this,"filtered",void 0),L(this,"pendingFiltered",void 0),L(this,"ingestionFilterFn",void 0),L(this,"protocolFilterFn",void 0),L(this,"dispatchedFn",void 0),L(this,"ctx",void 0),L(this,"_data",void 0),L(this,"err",void 0),L(this,"time",void 0),L(this,"yielding",void 0),this.inflight=0,this.filtered=0,this.pendingFiltered=0,this.processed=0,this.received=0,this.noIterator=!1,this.done=!1,this.signal=ut(),this.yields=[],this.iterClosed=ut(),this.time=0,this.yielding=!1}),[{key:Symbol.asyncIterator,value:function(){return this.iterate()}},{key:"push",value:function(t){if(!this.done){if("function"==typeof t)return this.yields.push(t),void this.signal.resolve();var e=this.ingestionFilterFn?this.ingestionFilterFn(t,this.ctx||this):{ingest:!0,protocol:!1},r=e.ingest,n=e.protocol;r&&(n&&(this.filtered++,this.pendingFiltered++),this.yields.push(t),this.signal.resolve())}}},{key:"iterate",value:function(){var t=this;return D(l().mark((function e(){var r,n,i,s;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.noIterator){e.next=2;break}throw new V("unsupported iterator",q.ApiError);case 2:if(!t.yielding){e.next=4;break}throw new V("already yielding",q.ApiError);case 4:t.yielding=!0,e.prev=5;case 6:if(0!==t.yields.length){e.next=10;break}return e.next=10,T(t.signal);case 10:if(!t.err){e.next=12;break}throw t.err;case 12:r=t.yields,t.inflight=r.length,t.yields=[],n=0;case 16:if(!(n<r.length)){e.next=44;break}if("function"!=typeof r[n]){e.next=29;break}i=r[n],e.prev=19,i(),e.next=26;break;case 23:throw e.prev=23,e.t0=e.catch(19),e.t0;case 26:if(!t.err){e.next=28;break}throw t.err;case 28:return e.abrupt("continue",41);case 29:if(t.protocolFilterFn&&!t.protocolFilterFn(r[n])){e.next=39;break}return t.processed++,s=Date.now(),e.next=35,r[n];case 35:t.time=Date.now()-s,t.dispatchedFn&&r[n]&&t.dispatchedFn(r[n]),e.next=40;break;case 39:t.pendingFiltered--;case 40:t.inflight--;case 41:n++,e.next=16;break;case 44:if(!t.done){e.next=48;break}return e.abrupt("break",51);case 48:0===t.yields.length&&(r.length=0,t.yields=r,t.signal=ut());case 49:e.next=6;break;case 51:return e.prev=51,t.stop(),e.finish(51);case 54:case"end":return e.stop()}}),e,null,[[5,,51,54],[19,23]])})))()}},{key:"stop",value:function(t){this.done||(this.err=t,this.done=!0,this.signal.resolve(),this.iterClosed.resolve(t))}},{key:"getProcessed",value:function(){return this.noIterator?this.received:this.processed}},{key:"getPending",value:function(){return this.yields.length+this.inflight-this.pendingFiltered}},{key:"getReceived",value:function(){return this.received-this.filtered}}]),Wt=k((function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{maxOut:2};M(this,t),L(this,"interval",void 0),L(this,"maxOut",void 0),L(this,"cancelAfter",void 0),L(this,"timer",void 0),L(this,"autoCancelTimer",void 0),L(this,"last",void 0),L(this,"missed",void 0),L(this,"count",void 0),L(this,"callback",void 0),this.interval=e,this.maxOut=(null==n?void 0:n.maxOut)||2,this.cancelAfter=(null==n?void 0:n.cancelAfter)||0,this.last=Date.now(),this.missed=0,this.count=0,this.callback=r,this._schedule()}),[{key:"cancel",value:function(){this.autoCancelTimer&&clearTimeout(this.autoCancelTimer),this.timer&&clearInterval(this.timer),this.timer=0,this.autoCancelTimer=0,this.missed=0}},{key:"work",value:function(){this.last=Date.now(),this.missed=0}},{key:"_change",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;this.interval=t,this.maxOut=r,this.cancelAfter=e,this.restart()}},{key:"restart",value:function(){this.cancel(),this._schedule()}},{key:"_schedule",value:function(){var t=this;this.cancelAfter>0&&(this.autoCancelTimer=setTimeout((function(){t.cancel()}),this.cancelAfter)),this.timer=setInterval((function(){if(t.count++,Date.now()-t.last>t.interval&&t.missed++,t.missed>=t.maxOut)try{!0===t.callback(t.missed)&&t.cancel()}catch(t){}}),this.interval)}}]);!function(t){t.Limits="limits",t.Interest="interest",t.Workqueue="workqueue"}(jt||(jt={})),function(t){t.Old="old",t.New="new"}(At||(At={})),function(t){t.File="file",t.Memory="memory"}(Ot||(Ot={})),function(t){t.All="all",t.Last="last",t.New="new",t.StartSequence="by_start_sequence",t.StartTime="by_start_time",t.LastPerSubject="last_per_subject"}(Pt||(Pt={})),function(t){t.None="none",t.All="all",t.Explicit="explicit",t.NotSet=""}(Rt||(Rt={})),function(t){t.Instant="instant",t.Original="original"}(Ht||(Ht={})),function(t){t.None="none",t.S2="s2"}(It||(It={})),function(t){t.CreateOrUpdate="",t.Update="update",t.Create="create"}(Ct||(Ct={})),function(t){t.API="api_audit",t.StreamAction="stream_action",t.ConsumerAction="consumer_action",t.SnapshotCreate="snapshot_create",t.SnapshotComplete="snapshot_complete",t.RestoreCreate="restore_create",t.RestoreComplete="restore_complete",t.MaxDeliver="max_deliver",t.Terminated="terminated",t.Ack="consumer_ack",t.StreamLeaderElected="stream_leader_elected",t.StreamQuorumLost="stream_quorum_lost",t.ConsumerLeaderElected="consumer_leader_elected",t.ConsumerQuorumLost="consumer_quorum_lost"}(Nt||(Nt={})),function(t){t.StreamSourceHdr="Nats-Stream-Source",t.LastConsumerSeqHdr="Nats-Last-Consumer",t.LastStreamSeqHdr="Nats-Last-Stream",t.ConsumerStalledHdr="Nats-Consumer-Stalled",t.MessageSizeHdr="Nats-Msg-Size",t.RollupHdr="Nats-Rollup",t.RollupValueSubject="sub",t.RollupValueAll="all",t.PendingMessagesHdr="Nats-Pending-Messages",t.PendingBytesHdr="Nats-Pending-Bytes"}(Bt||(Bt={})),function(t){t.LastValue="",t.AllHistory="history",t.UpdatesOnly="updates"}(qt||(qt={})),function(t){t.Stream="Nats-Stream",t.Sequence="Nats-Sequence",t.TimeStamp="Nats-Time-Stamp",t.Subject="Nats-Subject"}(Ft||(Ft={})),function(t){t.Stream="Nats-Stream",t.Subject="Nats-Subject",t.Sequence="Nats-Sequence",t.LastSequence="Nats-Last-Sequence",t.Size="Nats-Msg-Size"}(Ut||(Ut={}));var Jt="KV_",Gt=k((function t(e){M(this,t),L(this,"config",void 0),L(this,"ordered",void 0),L(this,"mack",void 0),L(this,"stream",void 0),L(this,"callbackFn",void 0),L(this,"max",void 0),L(this,"qname",void 0),L(this,"isBind",void 0),L(this,"filters",void 0),this.stream="",this.mack=!1,this.ordered=!1,this.config=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({name:t,deliver_policy:Pt.All,ack_policy:Rt.Explicit,ack_wait:lt(3e4),replay_policy:Ht.Instant},e)}("",e||{})}),[{key:"getOpts",value:function(){var t,e=this,r={};if(r.config=Object.assign({},this.config),r.config.filter_subject&&(this.filterSubject(r.config.filter_subject),r.config.filter_subject=void 0),r.config.filter_subjects&&(null===(t=r.config.filter_subjects)||void 0===t||t.forEach((function(t){e.filterSubject(t)})),r.config.filter_subjects=void 0),r.mack=this.mack,r.stream=this.stream,r.callbackFn=this.callbackFn,r.max=this.max,r.queue=this.qname,r.ordered=this.ordered,r.config.ack_policy=r.ordered?Rt.None:r.config.ack_policy,r.isBind=r.isBind||!1,this.filters)switch(this.filters.length){case 0:break;case 1:r.config.filter_subject=this.filters[0];break;default:r.config.filter_subjects=this.filters}return r}},{key:"description",value:function(t){return this.config.description=t,this}},{key:"deliverTo",value:function(t){return this.config.deliver_subject=t,this}},{key:"durable",value:function(t){return kt(t),this.config.durable_name=t,this}},{key:"startSequence",value:function(t){if(t<=0)throw new Error("sequence must be greater than 0");return this.config.deliver_policy=Pt.StartSequence,this.config.opt_start_seq=t,this}},{key:"startTime",value:function(t){return this.config.deliver_policy=Pt.StartTime,this.config.opt_start_time=t.toISOString(),this}},{key:"deliverAll",value:function(){return this.config.deliver_policy=Pt.All,this}},{key:"deliverLastPerSubject",value:function(){return this.config.deliver_policy=Pt.LastPerSubject,this}},{key:"deliverLast",value:function(){return this.config.deliver_policy=Pt.Last,this}},{key:"deliverNew",value:function(){return this.config.deliver_policy=Pt.New,this}},{key:"startAtTimeDelta",value:function(t){return this.startTime(new Date(Date.now()-t)),this}},{key:"headersOnly",value:function(){return this.config.headers_only=!0,this}},{key:"ackNone",value:function(){return this.config.ack_policy=Rt.None,this}},{key:"ackAll",value:function(){return this.config.ack_policy=Rt.All,this}},{key:"ackExplicit",value:function(){return this.config.ack_policy=Rt.Explicit,this}},{key:"ackWait",value:function(t){return this.config.ack_wait=lt(t),this}},{key:"maxDeliver",value:function(t){return this.config.max_deliver=t,this}},{key:"filterSubject",value:function(t){return this.filters=this.filters||[],this.filters.push(t),this}},{key:"replayInstantly",value:function(){return this.config.replay_policy=Ht.Instant,this}},{key:"replayOriginal",value:function(){return this.config.replay_policy=Ht.Original,this}},{key:"sample",value:function(t){if((t=Math.trunc(t))<0||t>100)throw new Error("value must be between 0-100");return this.config.sample_freq="".concat(t,"%"),this}},{key:"limit",value:function(t){return this.config.rate_limit_bps=t,this}},{key:"maxWaiting",value:function(t){return this.config.max_waiting=t,this}},{key:"maxAckPending",value:function(t){return this.config.max_ack_pending=t,this}},{key:"idleHeartbeat",value:function(t){return this.config.idle_heartbeat=lt(t),this}},{key:"flowControl",value:function(){return this.config.flow_control=!0,this}},{key:"deliverGroup",value:function(t){return this.queue(t),this}},{key:"manualAck",value:function(){return this.mack=!0,this}},{key:"maxMessages",value:function(t){return this.max=t,this}},{key:"callback",value:function(t){return this.callbackFn=t,this}},{key:"queue",value:function(t){return this.qname=t,this.config.deliver_group=t,this}},{key:"orderedConsumer",value:function(){return this.ordered=!0,this}},{key:"bind",value:function(t,e){return this.stream=t,this.config.durable_name=e,this.isBind=!0,this}},{key:"bindStream",value:function(t){return this.stream=t,this}},{key:"inactiveEphemeralThreshold",value:function(t){return this.config.inactive_threshold=lt(t),this}},{key:"maxPullBatch",value:function(t){return this.config.max_batch=t,this}},{key:"maxPullRequestExpires",value:function(t){return this.config.max_expires=lt(t),this}},{key:"memory",value:function(){return this.config.mem_storage=!0,this}},{key:"numReplicas",value:function(t){return this.config.num_replicas=t,this}},{key:"consumerName",value:function(t){return this.config.name=t,this}}]);function Kt(t){return new Gt(t)}function Vt(t){return"function"==typeof t.getOpts}var Zt=k((function t(){M(this,t)}),null,[{key:"encode",value:function(t){if("string"==typeof t)return btoa(t);var e=Array.from(t);return btoa(String.fromCharCode.apply(String,e))}},{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=atob(t);return e?Uint8Array.from(r,(function(t){return t.charCodeAt(0)})):r}}]),$t=function(){function t(){M(this,t)}return k(t,null,[{key:"encode",value:function(e){return t.toB64URLEncoding(Zt.encode(e))}},{key:"decode",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.decode(t.fromB64URLEncoding(e),r)}},{key:"toB64URLEncoding",value:function(t){return t.replace(/\+/g,"-").replace(/\//g,"_")}},{key:"fromB64URLEncoding",value:function(t){return t.replace(/_/g,"/").replace(/-/g,"+")}}])}(),Xt=k((function t(){M(this,t),L(this,"buffers",void 0),L(this,"byteLength",void 0),this.buffers=[],this.byteLength=0}),[{key:"reset",value:function(){this.buffers.length=0,this.byteLength=0}},{key:"pack",value:function(){if(this.buffers.length>1){for(var t=new Uint8Array(this.byteLength),e=0,r=0;r<this.buffers.length;r++)t.set(this.buffers[r],e),e+=this.buffers[r].length;this.buffers.length=0,this.buffers.push(t)}}},{key:"shift",value:function(){if(this.buffers.length){var t=this.buffers.shift();if(t)return this.byteLength-=t.length,t}return new Uint8Array(0)}},{key:"drain",value:function(t){if(this.buffers.length){this.pack();var e=this.buffers.pop();if(e){var r=this.byteLength;(void 0===t||t>r)&&(t=r);var n=e.subarray(0,t);return r>t&&this.buffers.push(e.subarray(t)),this.byteLength=r-t,n}}return new Uint8Array(0)}},{key:"fill",value:function(t){t&&(this.buffers.push(t),this.byteLength+=t.length);for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];for(var i=0;i<r.length;i++)r[i]&&r[i].length&&(this.buffers.push(r[i]),this.byteLength+=r[i].length)}},{key:"peek",value:function(){return this.buffers.length?(this.pack(),this.buffers[0]):new Uint8Array(0)}},{key:"size",value:function(){return this.byteLength}},{key:"length",value:function(){return this.buffers.length}}],[{key:"concat",value:function(){for(var t=0,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];for(var i=0;i<r.length;i++)t+=r[i].length;for(var s=new Uint8Array(t),a=0,o=0;o<r.length;o++)s.set(r[o],a),a+=r[o].length;return s}},{key:"fromAscii",value:function(t){return t||(t=""),O.encode(t)}},{key:"toAscii",value:function(t){return P.decode(t)}}]);function Qt(t){var e=t.length,r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}for(var te=[],ee=[],re="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",ne=0;ne<64;++ne)te[ne]=re[ne],ee[re.charCodeAt(ne)]=ne;var ie=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];function n(t,e){return Math.floor(3*(t+e)/4-e)}function i(e,r,n){for(var i,s=new Array((n-r)/3),a=r,o=0;a<n;a+=3)s[o++]=(i=(e[a]<<16)+(e[a+1]<<8)+e[a+2],t[i>>18&63]+t[i>>12&63]+t[i>>6&63]+t[63&i]);return s.join("")}return{byteLength:function(t){return n.apply(null,Qt(t))},toUint8Array:function(t){var r,i,s=u(Qt(t),2),a=s[0],o=s[1],h=new Uint8Array(n(a,o)),c=o?a-4:a,d=0;for(i=0;i<c;i+=4)r=e[t.charCodeAt(i)]<<18|e[t.charCodeAt(i+1)]<<12|e[t.charCodeAt(i+2)]<<6|e[t.charCodeAt(i+3)],h[d++]=r>>16&255,h[d++]=r>>8&255,h[d++]=255&r;return 2===o?(r=e[t.charCodeAt(i)]<<2|e[t.charCodeAt(i+1)]>>4,h[d++]=255&r):1===o&&(r=e[t.charCodeAt(i)]<<10|e[t.charCodeAt(i+1)]<<4|e[t.charCodeAt(i+2)]>>2,h[d++]=r>>8&255,h[d++]=255&r),h},fromUint8Array:function(e){for(var n,s,a=e.length,o=a%3,u=a-o,h=new Array(Math.ceil(u/16383)+(o?1:0)),c=0,d=0;d<u;d+=16383)n=d+16383,h[c++]=i(e,d,n>u?u:n);return 1===o?(s=e[u],h[c]=t[s>>2]+t[s<<4&63],r||(h[c]+="==")):2===o&&(s=e[u]<<8|255&e[u+1],h[c]=t[s>>10]+t[s>>4&63]+t[s<<2&63],r||(h[c]+="=")),h.join("")}}}(te,ee,!0),se=(ie.byteLength,ie.toUint8Array),ae=ie.fromUint8Array,oe=new TextDecoder,ue=new TextEncoder;var he,ce=k((function t(){M(this,t),L(this,"hashSize",32),L(this,"_buf",void 0),L(this,"_bufIdx",void 0),L(this,"_count",void 0),L(this,"_K",void 0),L(this,"_H",void 0),L(this,"_finalized",void 0),this._buf=new Uint8Array(64),this._K=new Uint32Array([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]),this.init()}),[{key:"init",value:function(){return this._H=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),this._bufIdx=0,this._count=new Uint32Array(2),this._buf.fill(0),this._finalized=!1,this}},{key:"update",value:function(t,e){if(null===t)throw new TypeError("msg must be a string or Uint8Array.");"string"==typeof t&&(t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8";if(/^utf-?8$/i.test(e))return ue.encode(t);if(/^base64$/i.test(e))return se(t);if(/^hex(?:adecimal)?$/i.test(e))return function(t){var e=t.length;if(e%2||!/^[0-9a-fA-F]+$/.test(t))throw new TypeError("Invalid hex string.");t=t.toLowerCase();for(var r=new Uint8Array(Math.floor(e/2)),n=e/2,i=0;i<n;++i)r[i]=parseInt(t.substr(2*i,2),16);return r}(t);throw new TypeError("Unsupported string encoding.")}(t,e));for(var r=0,n=t.length;r<n;r++)this._buf[this._bufIdx++]=t[r],64===this._bufIdx&&(this._transform(),this._bufIdx=0);var i=this._count;return(i[0]+=t.length<<3)<t.length<<3&&i[1]++,i[1]+=t.length>>>29,this}},{key:"digest",value:function(t){if(this._finalized)throw new Error("digest has already been called.");this._finalized=!0;var e=this._buf,r=this._bufIdx;for(e[r++]=128;56!==r;)64===r&&(this._transform(),r=0),e[r++]=0;var n=this._count;e[56]=n[1]>>>24&255,e[57]=n[1]>>>16&255,e[58]=n[1]>>>8&255,e[59]=n[1]>>>0&255,e[60]=n[0]>>>24&255,e[61]=n[0]>>>16&255,e[62]=n[0]>>>8&255,e[63]=n[0]>>>0&255,this._transform();for(var i=new Uint8Array(32),s=0;s<8;s++)i[0+(s<<2)]=this._H[s]>>>24&255,i[1+(s<<2)]=this._H[s]>>>16&255,i[2+(s<<2)]=this._H[s]>>>8&255,i[3+(s<<2)]=this._H[s]>>>0&255;return this.init(),t?function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8";if(/^utf-?8$/i.test(e))return oe.decode(t);if(/^base64$/i.test(e))return ae(t);if(/^hex(?:adecimal)?$/i.test(e))return function(t){return t.reduce((function(t,e){return"".concat(t).concat(e<16?"0":"").concat(e.toString(16))}),"")}(t);throw new TypeError("Unsupported string encoding.")}(i,t):i}},{key:"_transform",value:function(){var t,e=this._H,r=e[0],n=e[1],i=e[2],s=e[3],a=e[4],o=e[5],u=e[6],h=e[7],c=new Uint32Array(16);for(t=0;t<16;t++)c[t]=this._buf[3+(t<<2)]|this._buf[2+(t<<2)]<<8|this._buf[1+(t<<2)]<<16|this._buf[t<<2]<<24;for(t=0;t<64;t++){var d=void 0;if(t<16)d=c[t];else{var l=c[t+1&15],f=c[t+14&15];d=c[15&t]=(l>>>7^l>>>18^l>>>3^l<<25^l<<14)+(f>>>17^f>>>19^f>>>10^f<<15^f<<13)+c[15&t]+c[t+9&15]|0}d=d+h+(a>>>6^a>>>11^a>>>25^a<<26^a<<21^a<<7)+(u^a&(o^u))+this._K[t]|0,h=u,u=o,o=a,a=s+d,s=i,i=n,r=d+((n=r)&i^s&(n^i))+(n>>>2^n>>>13^n>>>22^n<<30^n<<19^n<<10)|0}e[0]=e[0]+r|0,e[1]=e[1]+n|0,e[2]=e[2]+i|0,e[3]=e[3]+s|0,e[4]=e[4]+a|0,e[5]=e[5]+o|0,e[6]=e[6]+u|0,e[7]=e[7]+h|0}}]),de=k((function t(e,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];M(this,t),L(this,"token",void 0),L(this,"received",void 0),L(this,"ctx",void 0),L(this,"requestSubject",void 0),L(this,"mux",void 0),this.mux=e,this.requestSubject=r,this.received=0,this.token=U.next(),n&&(this.ctx=new Error)})),le=function(t){function e(t,r){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{maxWait:1e3};if(M(this,e),L(n=p(this,e,[t,r]),"callback",void 0),L(n,"done",void 0),L(n,"timer",void 0),L(n,"max",void 0),L(n,"opts",void 0),n.opts=i,"function"!=typeof n.opts.callback)throw new Error("callback is required");return n.callback=n.opts.callback,n.max="number"==typeof i.maxMessages&&i.maxMessages>0?i.maxMessages:-1,n.done=ut(),n.done.then((function(){n.callback(null,null)})),n.timer=setTimeout((function(){n.cancel()}),i.maxWait),n}return _(e,t),k(e,[{key:"cancel",value:function(t){t&&this.callback(t,null),clearTimeout(this.timer),this.mux.cancel(this),this.done.resolve()}},{key:"resolver",value:function(t,e){var r=this;t?(this.ctx&&(t.stack+="\n\n".concat(this.ctx.stack)),this.cancel(t)):(this.callback(null,e),this.opts.strategy===W.Count&&(this.max--,0===this.max&&this.cancel()),this.opts.strategy===W.JitterTimer&&(clearTimeout(this.timer),this.timer=setTimeout((function(){r.cancel()}),this.opts.jitter||300)),this.opts.strategy===W.SentinelMsg&&e&&0===e.data.length&&this.cancel())}}])}(de),fe=function(t){function e(t,r){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{timeout:1e3},s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return M(this,e),L(n=p(this,e,[t,r,s]),"deferred",void 0),L(n,"timer",void 0),n.deferred=ut(),n.timer=st(i.timeout,s),n}return _(e,t),k(e,[{key:"resolver",value:function(t,e){this.timer&&this.timer.cancel(),t?(this.ctx&&(t.stack+="\n\n".concat(this.ctx.stack)),this.deferred.reject(t)):this.deferred.resolve(e),this.cancel()}},{key:"cancel",value:function(t){this.timer&&this.timer.cancel(),this.mux.cancel(this),this.deferred.reject(t||V.errorForCode(q.Cancelled))}}])}(de),me=function(){return k((function t(e,r){M(this,t),L(this,"nc",void 0),L(this,"opts",void 0),L(this,"prefix",void 0),L(this,"timeout",void 0),L(this,"jc",void 0),this.nc=e,this.opts=function(t){return(t=t||{}).domain&&(t.apiPrefix="$JS.".concat(t.domain,".API"),delete t.domain),nt({apiPrefix:"$JS.API",timeout:5e3},t)}(r),this._parseOpts(),this.prefix=this.opts.apiPrefix,this.timeout=this.opts.timeout,this.jc=gt()}),[{key:"getOptions",value:function(){return Object.assign({},this.opts)}},{key:"_parseOpts",value:function(){var t=this.opts.apiPrefix;if(!t||0===t.length)throw new Error("invalid empty prefix");"."===t[t.length-1]&&(t=t.substr(0,t.length-1)),this.opts.apiPrefix=t}},{key:"_request",value:(e=m(l().mark((function t(e){var r,n,i,s,a,o,u,h,c=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=c.length>1&&void 0!==c[1]?c[1]:null,(n=(n=c.length>2?c[2]:void 0)||{}).timeout=this.timeout,i=A,r&&(i=this.jc.encode(r)),s=-1===(s=(s=n.retries)||1)?Number.MAX_SAFE_INTEGER:s,a=dt(),o=0;case 11:if(!(o<s)){t.next=31;break}return t.prev=12,t.next=15,this.nc.request(e,i,n);case 15:return u=t.sent,t.abrupt("return",this.parseJsResponse(u));case 19:if(t.prev=19,t.t0=t.catch(12),"503"!==(h=t.t0).code&&h.code!==q.Timeout||!(o+1<s)){t.next=27;break}return t.next=25,at(a.backoff(o));case 25:t.next=28;break;case 27:throw t.t0;case 28:o++,t.next=11;break;case 31:case"end":return t.stop()}}),t,this,[[12,19]])}))),function(t){return e.apply(this,arguments)})},{key:"findStream",value:(t=m(l().mark((function t(e){var r,n,i;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={subject:e},t.next=3,this._request("".concat(this.prefix,".STREAM.NAMES"),r);case 3:if(n=t.sent,(i=n).streams&&1===i.streams.length){t.next=7;break}throw new Error("no stream matches subject");case 7:return t.abrupt("return",i.streams[0]);case 8:case"end":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})},{key:"getConnection",value:function(){return this.nc}},{key:"parseJsResponse",value:function(t){var e=this.jc.decode(t.data),r=e;if(r.error){var n=Et(r.error.code,r.error.description);if(null!==n)throw n.api_error=r.error,n}return e}}]);var t,e}(),pe=function(){return k((function t(e,r,n,i){if(M(this,t),L(this,"err",void 0),L(this,"offset",void 0),L(this,"pageInfo",void 0),L(this,"subject",void 0),L(this,"jsm",void 0),L(this,"filter",void 0),L(this,"payload",void 0),!e)throw new Error("subject is required");this.subject=e,this.jsm=n,this.offset=0,this.pageInfo={},this.filter=r,this.payload=i||{}}),[{key:"next",value:(t=m(l().mark((function t(){var e,r,n,i;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.err){t.next=2;break}return t.abrupt("return",[]);case 2:if(!(this.pageInfo&&this.offset>=this.pageInfo.total)){t.next=4;break}return t.abrupt("return",[]);case 4:return e={offset:this.offset},this.payload&&Object.assign(e,this.payload),t.prev=6,t.next=9,this.jsm._request(this.subject,e,{timeout:this.jsm.timeout});case 9:if(r=t.sent,this.pageInfo=r,0!==(n=this.countResponse(r))){t.next=14;break}return t.abrupt("return",[]);case 14:return this.offset+=n,i=this.filter(r),t.abrupt("return",i);case 19:throw t.prev=19,t.t0=t.catch(6),this.err=t.t0,t.t0;case 23:case"end":return t.stop()}}),t,this,[[6,19]])}))),function(){return t.apply(this,arguments)})},{key:"countResponse",value:function(t){var e,r,i;switch(null==t?void 0:t.type){case"io.nats.jetstream.api.v1.stream_names_response":case"io.nats.jetstream.api.v1.stream_list_response":return(null===(e=t.streams)||void 0===e?void 0:e.length)||0;case"io.nats.jetstream.api.v1.consumer_list_response":return(null===(r=t.consumers)||void 0===r?void 0:r.length)||0;default:return n.error("jslister.ts: unknown API response for paged output: ".concat(null==t?void 0:t.type)),(null===(i=t.streams)||void 0===i?void 0:i.length)||0}return 0}},{key:Symbol.asyncIterator,value:function(){var t=this;return D(l().mark((function e(){var r,n,i,s;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T(t.next());case 2:r=e.sent;case 3:if(!(r.length>0)){e.next=26;break}n=h(r),e.prev=5,n.s();case 7:if((i=n.n()).done){e.next=13;break}return s=i.value,e.next=11,s;case 11:e.next=7;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(5),n.e(e.t0);case 18:return e.prev=18,n.f(),e.finish(18);case 21:return e.next=23,T(t.next());case 23:r=e.sent,e.next=3;break;case 26:case"end":return e.stop()}}),e,null,[[5,15,18,21]])})))()}}]);var t}();function _e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t.match(/(\d+).(\d+).(\d+)/);if(e)return{major:parseInt(e[1]),minor:parseInt(e[2]),micro:parseInt(e[3])};throw new Error("'".concat(t,"' is not a semver value"))}function ye(t,e){return t.major<e.major?-1:t.major>e.major?1:t.minor<e.minor?-1:t.minor>e.minor?1:t.micro<e.micro?-1:t.micro>e.micro?1:0}!function(t){t.JS_KV="js_kv",t.JS_OBJECTSTORE="js_objectstore",t.JS_PULL_MAX_BYTES="js_pull_max_bytes",t.JS_NEW_CONSUMER_CREATE_API="js_new_consumer_create",t.JS_ALLOW_DIRECT="js_allow_direct",t.JS_MULTIPLE_CONSUMER_FILTER="js_multiple_consumer_filter",t.JS_SIMPLIFICATION="js_simplification",t.JS_STREAM_CONSUMER_METADATA="js_stream_consumer_metadata",t.JS_CONSUMER_FILTER_SUBJECTS="js_consumer_filter_subjects",t.JS_STREAM_FIRST_SEQ="js_stream_first_seq",t.JS_STREAM_SUBJECT_TRANSFORM="js_stream_subject_transform",t.JS_STREAM_SOURCE_SUBJECT_TRANSFORM="js_stream_source_subject_transform",t.JS_STREAM_COMPRESSION="js_stream_compression",t.JS_DEFAULT_CONSUMER_LIMITS="js_default_consumer_limits",t.JS_BATCH_DIRECT_GET="js_batch_direct_get"}(he||(he={}));var ve=k((function t(e){M(this,t),L(this,"server",void 0),L(this,"features",void 0),L(this,"disabled",void 0),this.features=new Map,this.disabled=[],this.update(e)}),[{key:"resetDisabled",value:function(){this.disabled.length=0,this.update(this.server)}},{key:"disable",value:function(t){this.disabled.push(t),this.update(this.server)}},{key:"isDisabled",value:function(t){return-1!==this.disabled.indexOf(t)}},{key:"update",value:function(t){var e=this;"string"==typeof t&&(t=_e(t)),this.server=t,this.set(he.JS_KV,"2.6.2"),this.set(he.JS_OBJECTSTORE,"2.6.3"),this.set(he.JS_PULL_MAX_BYTES,"2.8.3"),this.set(he.JS_NEW_CONSUMER_CREATE_API,"2.9.0"),this.set(he.JS_ALLOW_DIRECT,"2.9.0"),this.set(he.JS_MULTIPLE_CONSUMER_FILTER,"2.10.0"),this.set(he.JS_SIMPLIFICATION,"2.9.4"),this.set(he.JS_STREAM_CONSUMER_METADATA,"2.10.0"),this.set(he.JS_CONSUMER_FILTER_SUBJECTS,"2.10.0"),this.set(he.JS_STREAM_FIRST_SEQ,"2.10.0"),this.set(he.JS_STREAM_SUBJECT_TRANSFORM,"2.10.0"),this.set(he.JS_STREAM_SOURCE_SUBJECT_TRANSFORM,"2.10.0"),this.set(he.JS_STREAM_COMPRESSION,"2.10.0"),this.set(he.JS_DEFAULT_CONSUMER_LIMITS,"2.10.0"),this.set(he.JS_BATCH_DIRECT_GET,"2.11.0"),this.disabled.forEach((function(t){e.features.delete(t)}))}},{key:"set",value:function(t,e){this.features.set(t,{min:e,ok:ye(this.server,_e(e))>=0})}},{key:"get",value:function(t){return this.features.get(t)||{min:"unknown",ok:!1}}},{key:"supports",value:function(t){var e;return(null===(e=this.get(t))||void 0===e?void 0:e.ok)||!1}},{key:"require",value:function(t){return"string"==typeof t&&(t=_e(t)),ye(this.server,t)>=0}}]),ge=function(t){function e(t,r){return M(this,e),p(this,e,[t,r])}return _(e,t),k(e,[{key:"add",value:(s=m(l().mark((function t(e,r){var n,i,s,a,o,u,h,c,d,f,m,p,_,y,v,g,b,M,w,k,L=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=L.length>2&&void 0!==L[2]?L[2]:Ct.Create,Lt(e),!r.deliver_group||!r.flow_control){t.next=4;break}throw new Error("jetstream flow control is not supported with queue groups");case 4:if(!r.deliver_group||!r.idle_heartbeat){t.next=6;break}throw new Error("jetstream idle heartbeat is not supported with queue groups");case 6:if((i={}).config=r,i.stream_name=e,i.action=n,i.config.durable_name&&kt(i.config.durable_name),s=this.nc,a=s.features.get(he.JS_NEW_CONSUMER_CREATE_API),o=a.min,u=a.ok,!(h=""===r.name?void 0:r.name)||u){t.next=16;break}throw new Error("consumer 'name' requires server ".concat(o));case 16:if(!h){t.next=28;break}t.prev=17,St("name",h),t.next=28;break;case 21:if(t.prev=21,t.t0=t.catch(17),c=t.t0.message,-1===(d=c.indexOf("cannot contain"))){t.next=27;break}throw new Error("consumer 'name' ".concat(c.substring(d)));case 27:throw t.t0;case 28:if(m="",!Array.isArray(r.filter_subjects)){t.next=34;break}if(p=s.features.get(he.JS_MULTIPLE_CONSUMER_FILTER),_=p.min,p.ok){t.next=33;break}throw new Error("consumer 'filter_subjects' requires server ".concat(_));case 33:u=!1;case 34:if(!r.metadata){t.next=38;break}if(y=s.features.get(he.JS_STREAM_CONSUMER_METADATA),v=y.min,y.ok){t.next=38;break}throw new Error("consumer 'metadata' requires server ".concat(v));case 38:return u&&(m=null!==(g=null!==(b=r.name)&&void 0!==b?b:r.durable_name)&&void 0!==g?g:""),""!==m?(">"===(w=null!==(M=r.filter_subject)&&void 0!==M?M:void 0)&&(w=void 0),f=void 0!==w?"".concat(this.prefix,".CONSUMER.CREATE.").concat(e,".").concat(m,".").concat(w):"".concat(this.prefix,".CONSUMER.CREATE.").concat(e,".").concat(m)):f=r.durable_name?"".concat(this.prefix,".CONSUMER.DURABLE.CREATE.").concat(e,".").concat(r.durable_name):"".concat(this.prefix,".CONSUMER.CREATE.").concat(e),t.next=42,this._request(f,i);case 42:return k=t.sent,t.abrupt("return",k);case 44:case"end":return t.stop()}}),t,this,[[17,21]])}))),function(t,e){return s.apply(this,arguments)})},{key:"update",value:(i=m(l().mark((function t(e,r,n){var i,s;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.info(e,r);case 2:return i=t.sent,s=n,t.abrupt("return",this.add(e,Object.assign(i.config,s),Ct.Update));case 5:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return i.apply(this,arguments)})},{key:"info",value:(n=m(l().mark((function t(e,r){var n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Lt(e),kt(r),t.next=4,this._request("".concat(this.prefix,".CONSUMER.INFO.").concat(e,".").concat(r));case 4:return n=t.sent,t.abrupt("return",n);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"delete",value:(r=m(l().mark((function t(e,r){var n,i;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Lt(e),kt(r),t.next=4,this._request("".concat(this.prefix,".CONSUMER.DELETE.").concat(e,".").concat(r));case 4:return n=t.sent,i=n,t.abrupt("return",i.success);case 7:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"list",value:function(t){Lt(t);var e="".concat(this.prefix,".CONSUMER.LIST.").concat(t);return new pe(e,(function(t){return t.consumers}),this)}},{key:"pause",value:function(t,e,r){var n="".concat(this.prefix,".CONSUMER.PAUSE.").concat(t,".").concat(e),i={pause_until:r.toISOString()};return this._request(n,i)}},{key:"resume",value:function(t,e){return this.pause(t,e,new Date(0))}}]);var r,n,i,s}(me);function be(t,e){if(!0===(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&!t)throw V.errorForCode(q.ApiError,new Error("".concat(e," is not a function")));if(t&&"function"!=typeof t)throw V.errorForCode(q.ApiError,new Error("".concat(e," is not a function")))}var Me,we=function(t){function e(t,r,n){var i;M(this,e),L(i=p(this,e),"sub",void 0),L(i,"adapter",void 0),L(i,"subIterDone",void 0),be(n.adapter,"adapter",!0),i.adapter=n.adapter,n.callback&&be(n.callback,"callback"),i.noIterator="function"==typeof n.callback,n.ingestionFilterFn&&(be(n.ingestionFilterFn,"ingestionFilterFn"),i.ingestionFilterFn=n.ingestionFilterFn),n.protocolFilterFn&&(be(n.protocolFilterFn,"protocolFilterFn"),i.protocolFilterFn=n.protocolFilterFn),n.dispatchedFn&&(be(n.dispatchedFn,"dispatchedFn"),i.dispatchedFn=n.dispatchedFn),n.cleanupFn&&be(n.cleanupFn,"cleanupFn");var s=function(t,e){i.callback(t,e)};if(n.callback){var a=n.callback;s=function(t,e){var r=u(i.adapter(t,e),2),n=r[0],s=r[1];n?a(n,null):(i.ingestionFilterFn?i.ingestionFilterFn(s,i):{ingest:!0}).ingest&&(!i.protocolFilterFn||i.protocolFilterFn(s))&&(a(n,s),i.dispatchedFn&&s&&i.dispatchedFn(s))}}var o,h=n.max,c={queue:n.queue,timeout:n.timeout,callback:s};return h&&h>0&&(c.max=h),i.sub=t.subscribe(r,c),n.cleanupFn&&(i.sub.cleanupFn=n.cleanupFn),i.noIterator||i.iterClosed.then((function(){i.unsubscribe()})),i.subIterDone=ut(),Promise.all([i.sub.closed,i.iterClosed]).then((function(){i.subIterDone.resolve()})).catch((function(){i.subIterDone.resolve()})),(o=m(l().mark((function t(e){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.closed;case 2:i.stop();case 3:case"end":return t.stop()}}),t)}))),function(t){return o.apply(this,arguments)})(i.sub).then().catch(),i}return _(e,t),k(e,[{key:"unsubscribe",value:function(t){this.sub.unsubscribe(t)}},{key:"drain",value:function(){return this.sub.drain()}},{key:"isDraining",value:function(){return this.sub.isDraining()}},{key:"isClosed",value:function(){return this.sub.isClosed()}},{key:"callback",value:function(t,e){this.sub.cancelTimeout();var r=u(this.adapter(t,e),2),n=r[0],i=r[1];n&&this.stop(n),i&&this.push(i)}},{key:"getSubject",value:function(){return this.sub.getSubject()}},{key:"getReceived",value:function(){return this.sub.getReceived()}},{key:"getProcessed",value:function(){return this.sub.getProcessed()}},{key:"getPending",value:function(){return this.sub.getPending()}},{key:"getID",value:function(){return this.sub.getID()}},{key:"getMax",value:function(){return this.sub.getMax()}},{key:"closed",get:function(){return this.sub.closed}}])}(zt);function ke(){return void 0!==Me&&void 0!==Me.defaultPort?Me.defaultPort:4222}function Le(){return void 0!==Me&&Me.urlParseFn?Me.urlParseFn:void 0}function Se(){return void 0!==Me&&Me.dnsResolveFn?Me.dnsResolveFn:void 0}var xe="\r\n",Ye=Xt.fromAscii(xe),Te=new Uint8Array(Ye)[0],De=new Uint8Array(Ye)[1];function Ee(t){var e=function(t){for(var e=0;e<t.length;e++){var r=e+1;if(t.byteLength>r&&t[e]===Te&&t[r]===De)return r+1}return 0}(t);if(e>0){var r=new Uint8Array(t).slice(0,e);return P.decode(r)}return""}var je=4,Ae=48,Oe=65,Pe=97;function Re(t){return void 0!==function(t){for(var e=0;e<t.length;e++)switch(t[e]){case".":return He(t);case":":return Ie(t)}}(t)}function He(t){for(var e=new Uint8Array(4),r=0;r<4;r++){if(0===t.length)return;if(r>0){if("."!==t[0])return;t=t.substring(1)}var n=Ce(t),i=n.n,s=n.c;if(!n.ok||i>255)return;t=t.substring(s),e[r]=i}return function(t,e,r,n){var i=new Uint8Array(16);return[0,0,0,0,0,0,0,0,0,0,255,255].forEach((function(t,e){i[e]=t})),i[12]=t,i[13]=e,i[14]=r,i[15]=n,i}(e[0],e[1],e[2],e[3])}function Ie(t){var e=new Uint8Array(16),r=-1;if(t.length>=2&&":"===t[0]&&":"===t[1]&&(r=0,0===(t=t.substring(2)).length))return e;for(var n=0;n<16;){var i=Ne(t),s=i.n,a=i.c;if(!i.ok||s>65535)return;if(a<t.length&&"."===t[a]){if(r<0&&12!=n)return;if(n+4>16)return;var o=He(t);if(void 0===o)return;e[n]=o[12],e[n+1]=o[13],e[n+2]=o[14],e[n+3]=o[15],t="",n+=je;break}if(e[n]=s>>8,e[n+1]=s,n+=2,0===(t=t.substring(a)).length)break;if(":"!==t[0]||1==t.length)return;if(":"===(t=t.substring(1))[0]){if(r>=0)return;if(r=n,0===(t=t.substring(1)).length)break}}if(0===t.length){if(n<16){if(r<0)return;for(var u=16-n,h=n-1;h>=r;h--)e[h+u]=e[h];for(var c=r+u-1;c>=r;c--)e[c]=0}else if(r>=0)return;return e}}function Ce(t){var e=0,r=0;for(e=0;e<t.length&&48<=t.charCodeAt(e)&&t.charCodeAt(e)<=57;e++)if((r=10*r+(t.charCodeAt(e)-Ae))>=16777215)return{n:16777215,c:e,ok:!1};return 0===e?{n:0,c:0,ok:!1}:{n:r,c:e,ok:!0}}function Ne(t){var e=0,r=0;for(r=0;r<t.length;r++){if(48<=t.charCodeAt(r)&&t.charCodeAt(r)<=57)e*=16,e+=t.charCodeAt(r)-Ae;else if(97<=t.charCodeAt(r)&&t.charCodeAt(r)<=102)e*=16,e+=t.charCodeAt(r)-Pe+10;else{if(!(65<=t.charCodeAt(r)&&t.charCodeAt(r)<=70))break;e*=16,e+=t.charCodeAt(r)-Oe+10}if(e>=16777215)return{n:0,c:r,ok:!1}}return 0===r?{n:0,c:r,ok:!1}:{n:e,c:r,ok:!0}}function Be(t){return!function(t){return-1===t.indexOf("[")&&-1===t.indexOf("::")&&(-1!==t.indexOf(".")||t.split(":").length<=2)}(t)}var qe=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];M(this,t),L(this,"src",void 0),L(this,"listen",void 0),L(this,"hostname",void 0),L(this,"port",void 0),L(this,"didConnect",void 0),L(this,"reconnects",void 0),L(this,"lastConnect",void 0),L(this,"gossiped",void 0),L(this,"tlsName",void 0),L(this,"resolves",void 0),this.src=e,this.tlsName="";var n=function(t){(t=t.trim()).match(/^(.*:\/\/)(.*)/m)&&(t=t.replace(/^(.*:\/\/)(.*)/gm,"$2")),Be(t=function(t){var e=t.toUpperCase().indexOf("::FFFF:");if(-1!==e&&-1!==t.indexOf(".")){var r=t.substring(e+7);return(r=r.replace("[","")).replace("]","")}return t}(t))&&-1===t.indexOf("[")&&(t="[".concat(t,"]"));var e=Be(t)?t.match(/(]:)(\d+)/):t.match(/(:)(\d+)/),r=e&&3===e.length&&e[1]&&e[2]?parseInt(e[2]):4222,n=new URL("".concat(80===r?"https":"http","://").concat(t));n.port="".concat(r);var i=n.hostname;return"["===i.charAt(0)&&(i=i.substring(1,i.length-1)),{listen:n.host,hostname:i,port:r}}(e);this.listen=n.listen,this.hostname=n.hostname,this.port=n.port,this.didConnect=!1,this.reconnects=0,this.lastConnect=0,this.gossiped=r}return k(t,[{key:"toString",value:function(){return this.listen}},{key:"resolve",value:(e=m(l().mark((function e(r){var n,i,s,a,o,u,c,d;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.fn&&!1!==r.resolve){e.next=2;break}return e.abrupt("return",[this]);case 2:if(n=[],!Re(this.hostname)){e.next=7;break}return e.abrupt("return",[this]);case 7:return e.next=9,r.fn(this.hostname);case 9:i=e.sent,r.debug&&"resolve ".concat(this.hostname," = ").concat(i.join(",")),s=h(i);try{for(s.s();!(a=s.n()).done;)o=a.value,u=80===this.port?"https":"http",(c=new URL("".concat(u,"://").concat(Be(o)?"["+o+"]":o))).port="".concat(this.port),(d=new t(c.host,!1)).tlsName=this.hostname,n.push(d)}catch(t){s.e(t)}finally{s.f()}case 13:return r.randomize&&ht(n),this.resolves=n,e.abrupt("return",n);case 16:case"end":return e.stop()}}),e,this)}))),function(t){return e.apply(this,arguments)})}]);var e}(),Fe=k((function t(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};M(this,t),L(this,"firstSelect",void 0),L(this,"servers",void 0),L(this,"currentServer",void 0),L(this,"tlsName",void 0),L(this,"randomize",void 0),this.firstSelect=!0,this.servers=[],this.tlsName="",this.randomize=n.randomize||!1;var i=Le();r&&(r.forEach((function(t){t=i?i(t):t,e.servers.push(new qe(t))})),this.randomize&&(this.servers=ht(this.servers))),0===this.servers.length&&this.addServer("".concat(rt,":").concat(ke()),!1),this.currentServer=this.servers[0]}),[{key:"clear",value:function(){this.servers.length=0}},{key:"updateTLSName",value:function(){var t=this,e=this.getCurrentServer();Re(e.hostname)||(this.tlsName=e.hostname,this.servers.forEach((function(e){e.gossiped&&(e.tlsName=t.tlsName)})))}},{key:"getCurrentServer",value:function(){return this.currentServer}},{key:"addServer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=Le();t=r?r(t):t;var n=new qe(t,e);Re(n.hostname)&&(n.tlsName=this.tlsName),this.servers.push(n)}},{key:"selectServer",value:function(){if(this.firstSelect)return this.firstSelect=!1,this.currentServer;var t=this.servers.shift();return t&&(this.servers.push(t),this.currentServer=t),t}},{key:"removeCurrentServer",value:function(){this.removeServer(this.currentServer)}},{key:"removeServer",value:function(t){if(t){var e=this.servers.indexOf(t);this.servers.splice(e,1)}}},{key:"length",value:function(){return this.servers.length}},{key:"next",value:function(){return this.servers.length?this.servers[0]:void 0}},{key:"getServers",value:function(){return this.servers}},{key:"update",value:function(t,e){var r=this,n=[],i=[],s=Le(),a=new Map;t.connect_urls&&t.connect_urls.length>0&&t.connect_urls.forEach((function(t){t=s?s(t,e):t;var r=new qe(t,!0);a.set(t,r)}));var o=[];return this.servers.forEach((function(t,e){var n=t.listen;t.gossiped&&r.currentServer.listen!==n&&void 0===a.get(n)&&o.push(e),a.delete(n)})),o.reverse(),o.forEach((function(t){var e=r.servers.splice(t,1);i=i.concat(e[0].listen)})),a.forEach((function(t,e){r.servers.push(t),n.push(e)})),{added:n,deleted:i}}}]),Ue=k((function t(){M(this,t),L(this,"baseInbox",void 0),L(this,"reqs",void 0),this.reqs=new Map}),[{key:"size",value:function(){return this.reqs.size}},{key:"init",value:function(t){return this.baseInbox="".concat(tt(t),"."),this.baseInbox}},{key:"add",value:function(t){isNaN(t.received)||(t.received=0),this.reqs.set(t.token,t)}},{key:"get",value:function(t){return this.reqs.get(t)}},{key:"cancel",value:function(t){this.reqs.delete(t.token)}},{key:"getToken",value:function(t){var e=t.subject||"";return 0===e.indexOf(this.baseInbox)?e.substring(this.baseInbox.length):null}},{key:"all",value:function(){return Array.from(this.reqs.values())}},{key:"handleError",value:function(t,e){if(e&&e.permissionContext){if(t)return this.all().forEach((function(t){t.resolver(e,{})})),!0;var r=e.permissionContext;if("publish"===r.operation){var n=this.all().find((function(t){return t.requestSubject===r.subject}));if(n)return n.resolver(e,{}),!0}}return!1}},{key:"dispatcher",value:function(){var t=this;return function(e,r){var n=t.getToken(r);if(n){var i=t.get(n);i&&(null===e&&r.headers&&(e=bt(r)),i.resolver(e,r))}}}},{key:"close",value:function(){var t=V.errorForCode(q.Timeout);this.reqs.forEach((function(e){e.resolver(t,{})}))}}]),ze=k((function t(e,r,n){M(this,t),L(this,"ph",void 0),L(this,"interval",void 0),L(this,"maxOut",void 0),L(this,"timer",void 0),L(this,"pendings",void 0),this.ph=e,this.interval=r,this.maxOut=n,this.pendings=[]}),[{key:"start",value:function(){this.cancel(),this._schedule()}},{key:"cancel",value:function(t){this.timer&&(clearTimeout(this.timer),this.timer=void 0),this._reset(),t&&this.ph.disconnect()}},{key:"_schedule",value:function(){var t=this;this.timer=setTimeout((function(){if(t.ph.dispatchStatus({type:B.PingTimer,data:"".concat(t.pendings.length+1)}),t.pendings.length!==t.maxOut){var e=ut();t.ph.flush(e).then((function(){t._reset()})).catch((function(){t.cancel()})),t.pendings.push(e),t._schedule()}else t.cancel(!0)}),this.interval)}},{key:"_reset",value:function(){this.pendings=this.pendings.filter((function(t){return t.resolve(),!1}))}}]),We=function(t){function e(t){var r;return M(this,e),(r=p(this,e,[t])).name="AssertionError",r}return _(e,t),k(e)}(y(Error)),Je=Math.pow(2,32)-2;function Ge(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=e.byteLength-r;return t.byteLength>n&&(t=t.subarray(0,n)),e.set(t,r),t.byteLength}var Ke,Ve=k((function t(e){M(this,t),L(this,"_buf",void 0),L(this,"_off",void 0),this._off=0,this._buf=null!=e?new Uint8Array(e):new Uint8Array(0)}),[{key:"bytes",value:function(){return!1===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{copy:!0}).copy?this._buf.subarray(this._off):this._buf.slice(this._off)}},{key:"empty",value:function(){return this._buf.byteLength<=this._off}},{key:"length",get:function(){return this._buf.byteLength-this._off}},{key:"capacity",get:function(){return this._buf.buffer.byteLength}},{key:"truncate",value:function(t){if(0!==t){if(t<0||t>this.length)throw Error("bytes.Buffer: truncation out of range");this._reslice(this._off+t)}else this.reset()}},{key:"reset",value:function(){this._reslice(0),this._off=0}},{key:"_tryGrowByReslice",value:function(t){var e=this._buf.byteLength;return t<=this.capacity-e?(this._reslice(e+t),e):-1}},{key:"_reslice",value:function(t){!function(t){if(!t)throw new We(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Assertion failed.")}(t<=this._buf.buffer.byteLength),this._buf=new Uint8Array(this._buf.buffer,0,t)}},{key:"readByte",value:function(){var t=new Uint8Array(1);return this.read(t)?t[0]:null}},{key:"read",value:function(t){if(this.empty())return this.reset(),0===t.byteLength?0:null;var e=Ge(this._buf.subarray(this._off),t);return this._off+=e,e}},{key:"writeByte",value:function(t){return this.write(Uint8Array.of(t))}},{key:"writeString",value:function(t){return this.write(O.encode(t))}},{key:"write",value:function(t){var e=this._grow(t.byteLength);return Ge(t,this._buf,e)}},{key:"_grow",value:function(t){var e=this.length;0===e&&0!==this._off&&this.reset();var r=this._tryGrowByReslice(t);if(r>=0)return r;var n=this.capacity;if(t<=Math.floor(n/2)-e)Ge(this._buf.subarray(this._off),this._buf);else{if(n+t>Je)throw new Error("The buffer cannot be grown beyond the maximum size.");var i=new Uint8Array(Math.min(2*n+t,Je));Ge(this._buf.subarray(this._off),i),this._buf=i}return this._off=0,this._reslice(Math.min(e+t,Je)),e}},{key:"grow",value:function(t){if(t<0)throw Error("Buffer._grow: negative count");var e=this._grow(t);this._reslice(e)}},{key:"readFrom",value:function(t){for(var e=0,r=new Uint8Array(32768);;){var n=this.capacity-this.length<32768,i=n?r:new Uint8Array(this._buf.buffer,this.length),s=t.read(i);if(null===s)return e;n?this.write(i.subarray(0,s)):this._reslice(this.length+s),e+=s}}}]);!function(t){t[t.OK=0]="OK",t[t.ERR=1]="ERR",t[t.MSG=2]="MSG",t[t.INFO=3]="INFO",t[t.PING=4]="PING",t[t.PONG=5]="PONG"}(Ke||(Ke={}));var Ze,$e,Xe=k((function t(e){M(this,t),L(this,"dispatcher",void 0),L(this,"state",void 0),L(this,"as",void 0),L(this,"drop",void 0),L(this,"hdr",void 0),L(this,"ma",void 0),L(this,"argBuf",void 0),L(this,"msgBuf",void 0),this.dispatcher=e,this.state=Ze.OP_START,this.as=0,this.drop=0,this.hdr=0}),[{key:"parse",value:function(t){var e;for(e=0;e<t.length;e++){var r=t[e];switch(this.state){case Ze.OP_START:switch(r){case $e.M:case $e.m:this.state=Ze.OP_M,this.hdr=-1,this.ma={sid:-1,hdr:-1,size:-1};break;case $e.H:case $e.h:this.state=Ze.OP_H,this.hdr=0,this.ma={sid:-1,hdr:-1,size:-1};break;case $e.P:case $e.p:this.state=Ze.OP_P;break;case $e.PLUS:this.state=Ze.OP_PLUS;break;case $e.MINUS:this.state=Ze.OP_MINUS;break;case $e.I:case $e.i:this.state=Ze.OP_I;break;default:throw this.fail(t.subarray(e))}break;case Ze.OP_H:switch(r){case $e.M:case $e.m:this.state=Ze.OP_M;break;default:throw this.fail(t.subarray(e))}break;case Ze.OP_M:switch(r){case $e.S:case $e.s:this.state=Ze.OP_MS;break;default:throw this.fail(t.subarray(e))}break;case Ze.OP_MS:switch(r){case $e.G:case $e.g:this.state=Ze.OP_MSG;break;default:throw this.fail(t.subarray(e))}break;case Ze.OP_MSG:switch(r){case $e.SPACE:case $e.TAB:this.state=Ze.OP_MSG_SPC;break;default:throw this.fail(t.subarray(e))}break;case Ze.OP_MSG_SPC:switch(r){case $e.SPACE:case $e.TAB:continue;default:this.state=Ze.MSG_ARG,this.as=e}break;case Ze.MSG_ARG:switch(r){case $e.CR:this.drop=1;break;case $e.NL:var n=this.argBuf?this.argBuf.bytes():t.subarray(this.as,e-this.drop);this.processMsgArgs(n),this.drop=0,this.as=e+1,this.state=Ze.MSG_PAYLOAD,e=this.as+this.ma.size-1;break;default:this.argBuf&&this.argBuf.writeByte(r)}break;case Ze.MSG_PAYLOAD:if(this.msgBuf)if(this.msgBuf.length>=this.ma.size){var i=this.msgBuf.bytes({copy:!1});this.dispatcher.push({kind:Ke.MSG,msg:this.ma,data:i}),this.argBuf=void 0,this.msgBuf=void 0,this.state=Ze.MSG_END}else{var s=this.ma.size-this.msgBuf.length,a=t.length-e;a<s&&(s=a),s>0?(this.msgBuf.write(t.subarray(e,e+s)),e=e+s-1):this.msgBuf.writeByte(r)}else e-this.as>=this.ma.size&&(this.dispatcher.push({kind:Ke.MSG,msg:this.ma,data:t.subarray(this.as,e)}),this.argBuf=void 0,this.msgBuf=void 0,this.state=Ze.MSG_END);break;case Ze.MSG_END:if(r!==$e.NL)continue;this.drop=0,this.as=e+1,this.state=Ze.OP_START;break;case Ze.OP_PLUS:switch(r){case $e.O:case $e.o:this.state=Ze.OP_PLUS_O;break;default:throw this.fail(t.subarray(e))}break;case Ze.OP_PLUS_O:switch(r){case $e.K:case $e.k:this.state=Ze.OP_PLUS_OK;break;default:throw this.fail(t.subarray(e))}break;case Ze.OP_PLUS_OK:r===$e.NL&&(this.dispatcher.push({kind:Ke.OK}),this.drop=0,this.state=Ze.OP_START);break;case Ze.OP_MINUS:switch(r){case $e.E:case $e.e:this.state=Ze.OP_MINUS_E;break;default:throw this.fail(t.subarray(e))}break;case Ze.OP_MINUS_E:switch(r){case $e.R:case $e.r:this.state=Ze.OP_MINUS_ER;break;default:throw this.fail(t.subarray(e))}break;case Ze.OP_MINUS_ER:switch(r){case $e.R:case $e.r:this.state=Ze.OP_MINUS_ERR;break;default:throw this.fail(t.subarray(e))}break;case Ze.OP_MINUS_ERR:switch(r){case $e.SPACE:case $e.TAB:this.state=Ze.OP_MINUS_ERR_SPC;break;default:throw this.fail(t.subarray(e))}break;case Ze.OP_MINUS_ERR_SPC:switch(r){case $e.SPACE:case $e.TAB:continue;default:this.state=Ze.MINUS_ERR_ARG,this.as=e}break;case Ze.MINUS_ERR_ARG:switch(r){case $e.CR:this.drop=1;break;case $e.NL:var o=void 0;this.argBuf?(o=this.argBuf.bytes(),this.argBuf=void 0):o=t.subarray(this.as,e-this.drop),this.dispatcher.push({kind:Ke.ERR,data:o}),this.drop=0,this.as=e+1,this.state=Ze.OP_START;break;default:this.argBuf&&this.argBuf.write(Uint8Array.of(r))}break;case Ze.OP_P:switch(r){case $e.I:case $e.i:this.state=Ze.OP_PI;break;case $e.O:case $e.o:this.state=Ze.OP_PO;break;default:throw this.fail(t.subarray(e))}break;case Ze.OP_PO:switch(r){case $e.N:case $e.n:this.state=Ze.OP_PON;break;default:throw this.fail(t.subarray(e))}break;case Ze.OP_PON:switch(r){case $e.G:case $e.g:this.state=Ze.OP_PONG;break;default:throw this.fail(t.subarray(e))}break;case Ze.OP_PONG:r===$e.NL&&(this.dispatcher.push({kind:Ke.PONG}),this.drop=0,this.state=Ze.OP_START);break;case Ze.OP_PI:switch(r){case $e.N:case $e.n:this.state=Ze.OP_PIN;break;default:throw this.fail(t.subarray(e))}break;case Ze.OP_PIN:switch(r){case $e.G:case $e.g:this.state=Ze.OP_PING;break;default:throw this.fail(t.subarray(e))}break;case Ze.OP_PING:r===$e.NL&&(this.dispatcher.push({kind:Ke.PING}),this.drop=0,this.state=Ze.OP_START);break;case Ze.OP_I:switch(r){case $e.N:case $e.n:this.state=Ze.OP_IN;break;default:throw this.fail(t.subarray(e))}break;case Ze.OP_IN:switch(r){case $e.F:case $e.f:this.state=Ze.OP_INF;break;default:throw this.fail(t.subarray(e))}break;case Ze.OP_INF:switch(r){case $e.O:case $e.o:this.state=Ze.OP_INFO;break;default:throw this.fail(t.subarray(e))}break;case Ze.OP_INFO:switch(r){case $e.SPACE:case $e.TAB:this.state=Ze.OP_INFO_SPC;break;default:throw this.fail(t.subarray(e))}break;case Ze.OP_INFO_SPC:switch(r){case $e.SPACE:case $e.TAB:continue;default:this.state=Ze.INFO_ARG,this.as=e}break;case Ze.INFO_ARG:switch(r){case $e.CR:this.drop=1;break;case $e.NL:var u=void 0;this.argBuf?(u=this.argBuf.bytes(),this.argBuf=void 0):u=t.subarray(this.as,e-this.drop),this.dispatcher.push({kind:Ke.INFO,data:u}),this.drop=0,this.as=e+1,this.state=Ze.OP_START;break;default:this.argBuf&&this.argBuf.writeByte(r)}break;default:throw this.fail(t.subarray(e))}}this.state!==Ze.MSG_ARG&&this.state!==Ze.MINUS_ERR_ARG&&this.state!==Ze.INFO_ARG||this.argBuf||(this.argBuf=new Ve(t.subarray(this.as,e-this.drop))),this.state!==Ze.MSG_PAYLOAD||this.msgBuf||(this.argBuf||this.cloneMsgArg(),this.msgBuf=new Ve(t.subarray(this.as)))}},{key:"cloneMsgArg",value:function(){var t=this.ma.subject.length,e=this.ma.reply?this.ma.reply.length:0,r=new Uint8Array(t+e);r.set(this.ma.subject),this.ma.reply&&r.set(this.ma.reply,t),this.argBuf=new Ve(r),this.ma.subject=r.subarray(0,t),this.ma.reply&&(this.ma.reply=r.subarray(t))}},{key:"processMsgArgs",value:function(t){if(this.hdr>=0)return this.processHeaderMsgArgs(t);for(var e=[],r=-1,n=0;n<t.length;n++)switch(t[n]){case $e.SPACE:case $e.TAB:case $e.CR:case $e.NL:r>=0&&(e.push(t.subarray(r,n)),r=-1);break;default:r<0&&(r=n)}switch(r>=0&&e.push(t.subarray(r)),e.length){case 3:this.ma.subject=e[0],this.ma.sid=this.protoParseInt(e[1]),this.ma.reply=void 0,this.ma.size=this.protoParseInt(e[2]);break;case 4:this.ma.subject=e[0],this.ma.sid=this.protoParseInt(e[1]),this.ma.reply=e[2],this.ma.size=this.protoParseInt(e[3]);break;default:throw this.fail(t,"processMsgArgs Parse Error")}if(this.ma.sid<0)throw this.fail(t,"processMsgArgs Bad or Missing Sid Error");if(this.ma.size<0)throw this.fail(t,"processMsgArgs Bad or Missing Size Error")}},{key:"fail",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e=e?"".concat(e," [").concat(this.state,"]"):"parse error [".concat(this.state,"]"),new Error("".concat(e,": ").concat(P.decode(t)))}},{key:"processHeaderMsgArgs",value:function(t){for(var e=[],r=-1,n=0;n<t.length;n++)switch(t[n]){case $e.SPACE:case $e.TAB:case $e.CR:case $e.NL:r>=0&&(e.push(t.subarray(r,n)),r=-1);break;default:r<0&&(r=n)}switch(r>=0&&e.push(t.subarray(r)),e.length){case 4:this.ma.subject=e[0],this.ma.sid=this.protoParseInt(e[1]),this.ma.reply=void 0,this.ma.hdr=this.protoParseInt(e[2]),this.ma.size=this.protoParseInt(e[3]);break;case 5:this.ma.subject=e[0],this.ma.sid=this.protoParseInt(e[1]),this.ma.reply=e[2],this.ma.hdr=this.protoParseInt(e[3]),this.ma.size=this.protoParseInt(e[4]);break;default:throw this.fail(t,"processHeaderMsgArgs Parse Error")}if(this.ma.sid<0)throw this.fail(t,"processHeaderMsgArgs Bad or Missing Sid Error");if(this.ma.hdr<0||this.ma.hdr>this.ma.size)throw this.fail(t,"processHeaderMsgArgs Bad or Missing Header Size Error");if(this.ma.size<0)throw this.fail(t,"processHeaderMsgArgs Bad or Missing Size Error")}},{key:"protoParseInt",value:function(t){if(0===t.length)return-1;for(var e=0,r=0;r<t.length;r++){if(t[r]<48||t[r]>57)return-1;e=10*e+(t[r]-48)}return e}}]);!function(t){t[t.OP_START=0]="OP_START",t[t.OP_PLUS=1]="OP_PLUS",t[t.OP_PLUS_O=2]="OP_PLUS_O",t[t.OP_PLUS_OK=3]="OP_PLUS_OK",t[t.OP_MINUS=4]="OP_MINUS",t[t.OP_MINUS_E=5]="OP_MINUS_E",t[t.OP_MINUS_ER=6]="OP_MINUS_ER",t[t.OP_MINUS_ERR=7]="OP_MINUS_ERR",t[t.OP_MINUS_ERR_SPC=8]="OP_MINUS_ERR_SPC",t[t.MINUS_ERR_ARG=9]="MINUS_ERR_ARG",t[t.OP_M=10]="OP_M",t[t.OP_MS=11]="OP_MS",t[t.OP_MSG=12]="OP_MSG",t[t.OP_MSG_SPC=13]="OP_MSG_SPC",t[t.MSG_ARG=14]="MSG_ARG",t[t.MSG_PAYLOAD=15]="MSG_PAYLOAD",t[t.MSG_END=16]="MSG_END",t[t.OP_H=17]="OP_H",t[t.OP_P=18]="OP_P",t[t.OP_PI=19]="OP_PI",t[t.OP_PIN=20]="OP_PIN",t[t.OP_PING=21]="OP_PING",t[t.OP_PO=22]="OP_PO",t[t.OP_PON=23]="OP_PON",t[t.OP_PONG=24]="OP_PONG",t[t.OP_I=25]="OP_I",t[t.OP_IN=26]="OP_IN",t[t.OP_INF=27]="OP_INF",t[t.OP_INFO=28]="OP_INFO",t[t.OP_INFO_SPC=29]="OP_INFO_SPC",t[t.INFO_ARG=30]="INFO_ARG"}(Ze||(Ze={})),function(t){t[t.CR="\r".charCodeAt(0)]="CR",t[t.E="E".charCodeAt(0)]="E",t[t.e="e".charCodeAt(0)]="e",t[t.F="F".charCodeAt(0)]="F",t[t.f="f".charCodeAt(0)]="f",t[t.G="G".charCodeAt(0)]="G",t[t.g="g".charCodeAt(0)]="g",t[t.H="H".charCodeAt(0)]="H",t[t.h="h".charCodeAt(0)]="h",t[t.I="I".charCodeAt(0)]="I",t[t.i="i".charCodeAt(0)]="i",t[t.K="K".charCodeAt(0)]="K",t[t.k="k".charCodeAt(0)]="k",t[t.M="M".charCodeAt(0)]="M",t[t.m="m".charCodeAt(0)]="m",t[t.MINUS="-".charCodeAt(0)]="MINUS",t[t.N="N".charCodeAt(0)]="N",t[t.n="n".charCodeAt(0)]="n",t[t.NL="\n".charCodeAt(0)]="NL",t[t.O="O".charCodeAt(0)]="O",t[t.o="o".charCodeAt(0)]="o",t[t.P="P".charCodeAt(0)]="P",t[t.p="p".charCodeAt(0)]="p",t[t.PLUS="+".charCodeAt(0)]="PLUS",t[t.R="R".charCodeAt(0)]="R",t[t.r="r".charCodeAt(0)]="r",t[t.S="S".charCodeAt(0)]="S",t[t.s="s".charCodeAt(0)]="s",t[t.SPACE=" ".charCodeAt(0)]="SPACE",t[t.TAB="\t".charCodeAt(0)]="TAB"}($e||($e={})),function(t){var e=function(t,e){this.hi=0|t,this.lo=0|e},n=function(t){var e,r=new Float64Array(16);if(t)for(e=0;e<t.length;e++)r[e]=t[e];return r},i=function(){throw new Error("no PRNG")},s=new Uint8Array(16),a=new Uint8Array(32);a[0]=9;var o=n(),u=n([1]),h=n([56129,1]),c=n([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),d=n([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),l=n([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),f=n([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),m=n([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(t,e){return t<<e|t>>>32-e}function _(t,e){var r=255&t[e+3];return(r=(r=r<<8|255&t[e+2])<<8|255&t[e+1])<<8|255&t[e+0]}function y(t,r){var n=t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3],i=t[r+4]<<24|t[r+5]<<16|t[r+6]<<8|t[r+7];return new e(n,i)}function v(t,e,r){var n;for(n=0;n<4;n++)t[e+n]=255&r,r>>>=8}function g(t,e,r){t[e]=r.hi>>24&255,t[e+1]=r.hi>>16&255,t[e+2]=r.hi>>8&255,t[e+3]=255&r.hi,t[e+4]=r.lo>>24&255,t[e+5]=r.lo>>16&255,t[e+6]=r.lo>>8&255,t[e+7]=255&r.lo}function b(t,e,r,n,i){var s,a=0;for(s=0;s<i;s++)a|=t[e+s]^r[n+s];return(1&a-1>>>8)-1}function M(t,e,r,n){return b(t,e,r,n,16)}function w(t,e,r,n){return b(t,e,r,n,32)}function k(t,e,r,n,i){var s,a,o,u=new Uint32Array(16),h=new Uint32Array(16),c=new Uint32Array(16),d=new Uint32Array(4);for(s=0;s<4;s++)h[5*s]=_(n,4*s),h[1+s]=_(r,4*s),h[6+s]=_(e,4*s),h[11+s]=_(r,16+4*s);for(s=0;s<16;s++)c[s]=h[s];for(s=0;s<20;s++){for(a=0;a<4;a++){for(o=0;o<4;o++)d[o]=h[(5*a+4*o)%16];for(d[1]^=p(d[0]+d[3]|0,7),d[2]^=p(d[1]+d[0]|0,9),d[3]^=p(d[2]+d[1]|0,13),d[0]^=p(d[3]+d[2]|0,18),o=0;o<4;o++)u[4*a+(a+o)%4]=d[o]}for(o=0;o<16;o++)h[o]=u[o]}if(i){for(s=0;s<16;s++)h[s]=h[s]+c[s]|0;for(s=0;s<4;s++)h[5*s]=h[5*s]-_(n,4*s)|0,h[6+s]=h[6+s]-_(e,4*s)|0;for(s=0;s<4;s++)v(t,4*s,h[5*s]),v(t,16+4*s,h[6+s])}else for(s=0;s<16;s++)v(t,4*s,h[s]+c[s]|0)}function L(t,e,r,n){return k(t,e,r,n,!1),0}function S(t,e,r,n){return k(t,e,r,n,!0),0}var x=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function Y(t,e,r,n,i,s,a){var o,u,h=new Uint8Array(16),c=new Uint8Array(64);if(!i)return 0;for(u=0;u<16;u++)h[u]=0;for(u=0;u<8;u++)h[u]=s[u];for(;i>=64;){for(L(c,h,a,x),u=0;u<64;u++)t[e+u]=(r?r[n+u]:0)^c[u];for(o=1,u=8;u<16;u++)o=o+(255&h[u])|0,h[u]=255&o,o>>>=8;i-=64,e+=64,r&&(n+=64)}if(i>0)for(L(c,h,a,x),u=0;u<i;u++)t[e+u]=(r?r[n+u]:0)^c[u];return 0}function T(t,e,r,n,i){return Y(t,e,null,0,r,n,i)}function D(t,e,r,n,i){var s=new Uint8Array(32);return S(s,n,i,x),T(t,e,r,n.subarray(16),s)}function E(t,e,r,n,i,s,a){var o=new Uint8Array(32);return S(o,s,a,x),Y(t,e,r,n,i,s.subarray(16),o)}function j(t,e){var r,n=0;for(r=0;r<17;r++)n=n+(t[r]+e[r]|0)|0,t[r]=255&n,n>>>=8}var A=new Uint32Array([5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,252]);function O(t,e,r,n,i,s){var a,o,u,h,c=new Uint32Array(17),d=new Uint32Array(17),l=new Uint32Array(17),f=new Uint32Array(17),m=new Uint32Array(17);for(u=0;u<17;u++)d[u]=l[u]=0;for(u=0;u<16;u++)d[u]=s[u];for(d[3]&=15,d[4]&=252,d[7]&=15,d[8]&=252,d[11]&=15,d[12]&=252,d[15]&=15;i>0;){for(u=0;u<17;u++)f[u]=0;for(u=0;u<16&&u<i;++u)f[u]=r[n+u];for(f[u]=1,n+=u,i-=u,j(l,f),o=0;o<17;o++)for(c[o]=0,u=0;u<17;u++)c[o]=c[o]+l[u]*(u<=o?d[o-u]:320*d[o+17-u]|0)|0;for(o=0;o<17;o++)l[o]=c[o];for(h=0,u=0;u<16;u++)h=h+l[u]|0,l[u]=255&h,h>>>=8;for(h=h+l[16]|0,l[16]=3&h,h=5*(h>>>2)|0,u=0;u<16;u++)h=h+l[u]|0,l[u]=255&h,h>>>=8;h=h+l[16]|0,l[16]=h}for(u=0;u<17;u++)m[u]=l[u];for(j(l,A),a=0|-(l[16]>>>7),u=0;u<17;u++)l[u]^=a&(m[u]^l[u]);for(u=0;u<16;u++)f[u]=s[u+16];for(f[16]=0,j(l,f),u=0;u<16;u++)t[e+u]=l[u];return 0}function P(t,e,r,n,i,s){var a=new Uint8Array(16);return O(a,0,r,n,i,s),M(t,e,a,0)}function R(t,e,r,n,i){var s;if(r<32)return-1;for(E(t,0,e,0,r,n,i),O(t,16,t,32,r-32,t),s=0;s<16;s++)t[s]=0;return 0}function H(t,e,r,n,i){var s,a=new Uint8Array(32);if(r<32)return-1;if(D(a,0,32,n,i),0!==P(e,16,e,32,r-32,a))return-1;for(E(t,0,e,0,r,n,i),s=0;s<32;s++)t[s]=0;return 0}function I(t,e){var r;for(r=0;r<16;r++)t[r]=0|e[r]}function C(t){var e,r;for(r=0;r<16;r++)t[r]+=65536,e=Math.floor(t[r]/65536),t[(r+1)*(r<15?1:0)]+=e-1+37*(e-1)*(15===r?1:0),t[r]-=65536*e}function N(t,e,r){for(var n,i=~(r-1),s=0;s<16;s++)n=i&(t[s]^e[s]),t[s]^=n,e[s]^=n}function B(t,e){var r,i,s,a=n(),o=n();for(r=0;r<16;r++)o[r]=e[r];for(C(o),C(o),C(o),i=0;i<2;i++){for(a[0]=o[0]-65517,r=1;r<15;r++)a[r]=o[r]-65535-(a[r-1]>>16&1),a[r-1]&=65535;a[15]=o[15]-32767-(a[14]>>16&1),s=a[15]>>16&1,a[14]&=65535,N(o,a,1-s)}for(r=0;r<16;r++)t[2*r]=255&o[r],t[2*r+1]=o[r]>>8}function q(t,e){var r=new Uint8Array(32),n=new Uint8Array(32);return B(r,t),B(n,e),w(r,0,n,0)}function F(t){var e=new Uint8Array(32);return B(e,t),1&e[0]}function U(t,e){var r;for(r=0;r<16;r++)t[r]=e[2*r]+(e[2*r+1]<<8);t[15]&=32767}function z(t,e,r){var n;for(n=0;n<16;n++)t[n]=e[n]+r[n]|0}function W(t,e,r){var n;for(n=0;n<16;n++)t[n]=e[n]-r[n]|0}function J(t,e,r){var n,i,s=new Float64Array(31);for(n=0;n<31;n++)s[n]=0;for(n=0;n<16;n++)for(i=0;i<16;i++)s[n+i]+=e[n]*r[i];for(n=0;n<15;n++)s[n]+=38*s[n+16];for(n=0;n<16;n++)t[n]=s[n];C(t),C(t)}function G(t,e){J(t,e,e)}function K(t,e){var r,i=n();for(r=0;r<16;r++)i[r]=e[r];for(r=253;r>=0;r--)G(i,i),2!==r&&4!==r&&J(i,i,e);for(r=0;r<16;r++)t[r]=i[r]}function V(t,e){var r,i=n();for(r=0;r<16;r++)i[r]=e[r];for(r=250;r>=0;r--)G(i,i),1!==r&&J(i,i,e);for(r=0;r<16;r++)t[r]=i[r]}function Z(t,e,r){var i,s,a=new Uint8Array(32),o=new Float64Array(80),u=n(),c=n(),d=n(),l=n(),f=n(),m=n();for(s=0;s<31;s++)a[s]=e[s];for(a[31]=127&e[31]|64,a[0]&=248,U(o,r),s=0;s<16;s++)c[s]=o[s],l[s]=u[s]=d[s]=0;for(u[0]=l[0]=1,s=254;s>=0;--s)N(u,c,i=a[s>>>3]>>>(7&s)&1),N(d,l,i),z(f,u,d),W(u,u,d),z(d,c,l),W(c,c,l),G(l,f),G(m,u),J(u,d,u),J(d,c,f),z(f,u,d),W(u,u,d),G(c,u),W(d,l,m),J(u,d,h),z(u,u,l),J(d,d,u),J(u,l,m),J(l,c,o),G(c,f),N(u,c,i),N(d,l,i);for(s=0;s<16;s++)o[s+16]=u[s],o[s+32]=d[s],o[s+48]=c[s],o[s+64]=l[s];var p=o.subarray(32),_=o.subarray(16);return K(p,p),J(_,_,p),B(t,_),0}function $(t,e){return Z(t,e,a)}function X(t,e){return i(e,32),$(t,e)}function Q(t,e,r){var n=new Uint8Array(32);return Z(n,r,e),S(t,s,n,x)}var tt=R,et=H;function rt(){var t,r,n,i=0,s=0,a=0,o=0,u=65535;for(n=0;n<arguments.length;n++)i+=(t=arguments[n].lo)&u,s+=t>>>16,a+=(r=arguments[n].hi)&u,o+=r>>>16;return new e((a+=(s+=i>>>16)>>>16)&u|(o+=a>>>16)<<16,i&u|s<<16)}function nt(t,r){return new e(t.hi>>>r,t.lo>>>r|t.hi<<32-r)}function it(){var t,r=0,n=0;for(t=0;t<arguments.length;t++)r^=arguments[t].lo,n^=arguments[t].hi;return new e(n,r)}function st(t,r){var n,i,s=32-r;return r<32?(n=t.hi>>>r|t.lo<<s,i=t.lo>>>r|t.hi<<s):r<64&&(n=t.lo>>>r|t.hi<<s,i=t.hi>>>r|t.lo<<s),new e(n,i)}function at(t,r,n){var i=t.hi&r.hi^~t.hi&n.hi,s=t.lo&r.lo^~t.lo&n.lo;return new e(i,s)}function ot(t,r,n){var i=t.hi&r.hi^t.hi&n.hi^r.hi&n.hi,s=t.lo&r.lo^t.lo&n.lo^r.lo&n.lo;return new e(i,s)}function ut(t){return it(st(t,28),st(t,34),st(t,39))}function ht(t){return it(st(t,14),st(t,18),st(t,41))}function ct(t){return it(st(t,1),st(t,8),nt(t,7))}function dt(t){return it(st(t,19),st(t,61),nt(t,6))}var lt=[new e(1116352408,3609767458),new e(1899447441,602891725),new e(3049323471,3964484399),new e(3921009573,2173295548),new e(961987163,4081628472),new e(1508970993,3053834265),new e(2453635748,2937671579),new e(2870763221,3664609560),new e(3624381080,2734883394),new e(310598401,1164996542),new e(607225278,1323610764),new e(1426881987,3590304994),new e(1925078388,4068182383),new e(2162078206,991336113),new e(2614888103,633803317),new e(3248222580,3479774868),new e(3835390401,2666613458),new e(4022224774,944711139),new e(264347078,2341262773),new e(604807628,2007800933),new e(770255983,1495990901),new e(1249150122,1856431235),new e(1555081692,3175218132),new e(1996064986,2198950837),new e(2554220882,3999719339),new e(2821834349,766784016),new e(2952996808,2566594879),new e(3210313671,3203337956),new e(3336571891,1034457026),new e(3584528711,2466948901),new e(113926993,3758326383),new e(338241895,168717936),new e(666307205,1188179964),new e(773529912,1546045734),new e(1294757372,1522805485),new e(1396182291,2643833823),new e(1695183700,2343527390),new e(1986661051,1014477480),new e(2177026350,1206759142),new e(2456956037,344077627),new e(2730485921,1290863460),new e(2820302411,3158454273),new e(3259730800,3505952657),new e(3345764771,106217008),new e(3516065817,3606008344),new e(3600352804,1432725776),new e(4094571909,1467031594),new e(275423344,851169720),new e(430227734,3100823752),new e(506948616,1363258195),new e(659060556,3750685593),new e(883997877,3785050280),new e(958139571,3318307427),new e(1322822218,3812723403),new e(1537002063,2003034995),new e(1747873779,3602036899),new e(1955562222,1575990012),new e(2024104815,1125592928),new e(2227730452,2716904306),new e(2361852424,442776044),new e(2428436474,593698344),new e(2756734187,3733110249),new e(3204031479,2999351573),new e(3329325298,3815920427),new e(3391569614,3928383900),new e(3515267271,566280711),new e(3940187606,3454069534),new e(4118630271,4000239992),new e(116418474,1914138554),new e(174292421,2731055270),new e(289380356,3203993006),new e(460393269,320620315),new e(685471733,587496836),new e(852142971,1086792851),new e(1017036298,365543100),new e(1126000580,2618297676),new e(1288033470,3409855158),new e(1501505948,4234509866),new e(1607167915,987167468),new e(1816402316,1246189591)];function ft(t,e,r){var n,i,s,a=[],o=[],u=[],h=[];for(i=0;i<8;i++)a[i]=u[i]=y(t,8*i);for(var c=0;r>=128;){for(i=0;i<16;i++)h[i]=y(e,8*i+c);for(i=0;i<80;i++){for(s=0;s<8;s++)o[s]=u[s];for(n=rt(u[7],ht(u[4]),at(u[4],u[5],u[6]),lt[i],h[i%16]),o[7]=rt(n,ut(u[0]),ot(u[0],u[1],u[2])),o[3]=rt(o[3],n),s=0;s<8;s++)u[(s+1)%8]=o[s];if(i%16==15)for(s=0;s<16;s++)h[s]=rt(h[s],h[(s+9)%16],ct(h[(s+1)%16]),dt(h[(s+14)%16]))}for(i=0;i<8;i++)u[i]=rt(u[i],a[i]),a[i]=u[i];c+=128,r-=128}for(i=0;i<8;i++)g(t,8*i,a[i]);return r}var mt=new Uint8Array([106,9,230,103,243,188,201,8,187,103,174,133,132,202,167,59,60,110,243,114,254,148,248,43,165,79,245,58,95,29,54,241,81,14,82,127,173,230,130,209,155,5,104,140,43,62,108,31,31,131,217,171,251,65,189,107,91,224,205,25,19,126,33,121]);function pt(t,r,n){var i,s=new Uint8Array(64),a=new Uint8Array(256),o=n;for(i=0;i<64;i++)s[i]=mt[i];for(ft(s,r,n),n%=128,i=0;i<256;i++)a[i]=0;for(i=0;i<n;i++)a[i]=r[o-n+i];for(a[n]=128,a[(n=256-128*(n<112?1:0))-9]=0,g(a,n-8,new e(o/536870912|0,o<<3)),ft(s,a,n),i=0;i<64;i++)t[i]=s[i];return 0}function _t(t,e){var r=n(),i=n(),s=n(),a=n(),o=n(),u=n(),h=n(),c=n(),l=n();W(r,t[1],t[0]),W(l,e[1],e[0]),J(r,r,l),z(i,t[0],t[1]),z(l,e[0],e[1]),J(i,i,l),J(s,t[3],e[3]),J(s,s,d),J(a,t[2],e[2]),z(a,a,a),W(o,i,r),W(u,a,s),z(h,a,s),z(c,i,r),J(t[0],o,u),J(t[1],c,h),J(t[2],h,u),J(t[3],o,c)}function yt(t,e,r){var n;for(n=0;n<4;n++)N(t[n],e[n],r)}function vt(t,e){var r=n(),i=n(),s=n();K(s,e[2]),J(r,e[0],s),J(i,e[1],s),B(t,i),t[31]^=F(r)<<7}function gt(t,e,r){var n,i;for(I(t[0],o),I(t[1],u),I(t[2],u),I(t[3],o),i=255;i>=0;--i)yt(t,e,n=r[i/8|0]>>(7&i)&1),_t(e,t),_t(t,t),yt(t,e,n)}function bt(t,e){var r=[n(),n(),n(),n()];I(r[0],l),I(r[1],f),I(r[2],u),J(r[3],l,f),gt(t,r,e)}function Mt(t,e,r){var s,a=new Uint8Array(64),o=[n(),n(),n(),n()];for(r||i(e,32),pt(a,e,32),a[0]&=248,a[31]&=127,a[31]|=64,bt(o,a),vt(t,o),s=0;s<32;s++)e[s+32]=t[s];return 0}var wt=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function kt(t,e){var r,n,i,s;for(n=63;n>=32;--n){for(r=0,i=n-32,s=n-12;i<s;++i)e[i]+=r-16*e[n]*wt[i-(n-32)],r=Math.floor((e[i]+128)/256),e[i]-=256*r;e[i]+=r,e[n]=0}for(r=0,i=0;i<32;i++)e[i]+=r-(e[31]>>4)*wt[i],r=e[i]>>8,e[i]&=255;for(i=0;i<32;i++)e[i]-=r*wt[i];for(n=0;n<32;n++)e[n+1]+=e[n]>>8,t[n]=255&e[n]}function Lt(t){var e,r=new Float64Array(64);for(e=0;e<64;e++)r[e]=t[e];for(e=0;e<64;e++)t[e]=0;kt(t,r)}function St(t,e,r,i){var s,a,o=new Uint8Array(64),u=new Uint8Array(64),h=new Uint8Array(64),c=new Float64Array(64),d=[n(),n(),n(),n()];pt(o,i,32),o[0]&=248,o[31]&=127,o[31]|=64;var l=r+64;for(s=0;s<r;s++)t[64+s]=e[s];for(s=0;s<32;s++)t[32+s]=o[32+s];for(pt(h,t.subarray(32),r+32),Lt(h),bt(d,h),vt(t,d),s=32;s<64;s++)t[s]=i[s];for(pt(u,t,r+64),Lt(u),s=0;s<64;s++)c[s]=0;for(s=0;s<32;s++)c[s]=h[s];for(s=0;s<32;s++)for(a=0;a<32;a++)c[s+a]+=u[s]*o[a];return kt(t.subarray(32),c),l}function xt(t,e,r,i){var s,a=new Uint8Array(32),h=new Uint8Array(64),d=[n(),n(),n(),n()],l=[n(),n(),n(),n()];if(r<64)return-1;if(function(t,e){var r=n(),i=n(),s=n(),a=n(),h=n(),d=n(),l=n();return I(t[2],u),U(t[1],e),G(s,t[1]),J(a,s,c),W(s,s,t[2]),z(a,t[2],a),G(h,a),G(d,h),J(l,d,h),J(r,l,s),J(r,r,a),V(r,r),J(r,r,s),J(r,r,a),J(r,r,a),J(t[0],r,a),G(i,t[0]),J(i,i,a),q(i,s)&&J(t[0],t[0],m),G(i,t[0]),J(i,i,a),q(i,s)?-1:(F(t[0])===e[31]>>7&&W(t[0],o,t[0]),J(t[3],t[0],t[1]),0)}(l,i))return-1;for(s=0;s<r;s++)t[s]=e[s];for(s=0;s<32;s++)t[s+32]=i[s];if(pt(h,t,r),Lt(h),gt(d,l,h),bt(l,e.subarray(32)),_t(d,l),vt(a,d),r-=64,w(e,0,a,0)){for(s=0;s<r;s++)t[s]=0;return-1}for(s=0;s<r;s++)t[s]=e[s+64];return r}var Yt=64,Tt=32,Dt=64;function Et(t,e){if(32!==t.length)throw new Error("bad key size");if(24!==e.length)throw new Error("bad nonce size")}function jt(){for(var t=0;t<arguments.length;t++)if(!(arguments[t]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function At(t){for(var e=0;e<t.length;e++)t[e]=0}t.lowlevel={crypto_core_hsalsa20:S,crypto_stream_xor:E,crypto_stream:D,crypto_stream_salsa20_xor:Y,crypto_stream_salsa20:T,crypto_onetimeauth:O,crypto_onetimeauth_verify:P,crypto_verify_16:M,crypto_verify_32:w,crypto_secretbox:R,crypto_secretbox_open:H,crypto_scalarmult:Z,crypto_scalarmult_base:$,crypto_box_beforenm:Q,crypto_box_afternm:tt,crypto_box:function(t,e,r,n,i,s){var a=new Uint8Array(32);return Q(a,i,s),tt(t,e,r,n,a)},crypto_box_open:function(t,e,r,n,i,s){var a=new Uint8Array(32);return Q(a,i,s),et(t,e,r,n,a)},crypto_box_keypair:X,crypto_hash:pt,crypto_sign:St,crypto_sign_keypair:Mt,crypto_sign_open:xt,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:16,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:Yt,crypto_sign_PUBLICKEYBYTES:Tt,crypto_sign_SECRETKEYBYTES:Dt,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:n,D:c,L:wt,pack25519:B,unpack25519:U,M:J,A:z,S:G,Z:W,pow2523:V,add:_t,set25519:I,modL:kt,scalarmult:gt,scalarbase:bt},t.randomBytes=function(t){var e=new Uint8Array(t);return i(e,t),e},t.secretbox=function(t,e,r){jt(t,e,r),Et(r,e);for(var n=new Uint8Array(32+t.length),i=new Uint8Array(n.length),s=0;s<t.length;s++)n[s+32]=t[s];return R(i,n,n.length,e,r),i.subarray(16)},t.secretbox.open=function(t,e,r){jt(t,e,r),Et(r,e);for(var n=new Uint8Array(16+t.length),i=new Uint8Array(n.length),s=0;s<t.length;s++)n[s+16]=t[s];return n.length<32||0!==H(i,n,n.length,e,r)?null:i.subarray(32)},t.secretbox.keyLength=32,t.secretbox.nonceLength=24,t.secretbox.overheadLength=16,t.scalarMult=function(t,e){if(jt(t,e),32!==t.length)throw new Error("bad n size");if(32!==e.length)throw new Error("bad p size");var r=new Uint8Array(32);return Z(r,t,e),r},t.scalarMult.base=function(t){if(jt(t),32!==t.length)throw new Error("bad n size");var e=new Uint8Array(32);return $(e,t),e},t.scalarMult.scalarLength=32,t.scalarMult.groupElementLength=32,t.box=function(e,r,n,i){var s=t.box.before(n,i);return t.secretbox(e,r,s)},t.box.before=function(t,e){jt(t,e),function(t,e){if(32!==t.length)throw new Error("bad public key size");if(32!==e.length)throw new Error("bad secret key size")}(t,e);var r=new Uint8Array(32);return Q(r,t,e),r},t.box.after=t.secretbox,t.box.open=function(e,r,n,i){var s=t.box.before(n,i);return t.secretbox.open(e,r,s)},t.box.open.after=t.secretbox.open,t.box.keyPair=function(){var t=new Uint8Array(32),e=new Uint8Array(32);return X(t,e),{publicKey:t,secretKey:e}},t.box.keyPair.fromSecretKey=function(t){if(jt(t),32!==t.length)throw new Error("bad secret key size");var e=new Uint8Array(32);return $(e,t),{publicKey:e,secretKey:new Uint8Array(t)}},t.box.publicKeyLength=32,t.box.secretKeyLength=32,t.box.sharedKeyLength=32,t.box.nonceLength=24,t.box.overheadLength=t.secretbox.overheadLength,t.sign=function(t,e){if(jt(t,e),e.length!==Dt)throw new Error("bad secret key size");var r=new Uint8Array(Yt+t.length);return St(r,t,t.length,e),r},t.sign.open=function(t,e){if(jt(t,e),e.length!==Tt)throw new Error("bad public key size");var r=new Uint8Array(t.length),n=xt(r,t,t.length,e);if(n<0)return null;for(var i=new Uint8Array(n),s=0;s<i.length;s++)i[s]=r[s];return i},t.sign.detached=function(e,r){for(var n=t.sign(e,r),i=new Uint8Array(Yt),s=0;s<i.length;s++)i[s]=n[s];return i},t.sign.detached.verify=function(t,e,r){if(jt(t,e,r),e.length!==Yt)throw new Error("bad signature size");if(r.length!==Tt)throw new Error("bad public key size");var n,i=new Uint8Array(Yt+t.length),s=new Uint8Array(Yt+t.length);for(n=0;n<Yt;n++)i[n]=e[n];for(n=0;n<t.length;n++)i[n+Yt]=t[n];return xt(s,i,i.length,r)>=0},t.sign.keyPair=function(){var t=new Uint8Array(Tt),e=new Uint8Array(Dt);return Mt(t,e),{publicKey:t,secretKey:e}},t.sign.keyPair.fromSecretKey=function(t){if(jt(t),t.length!==Dt)throw new Error("bad secret key size");for(var e=new Uint8Array(Tt),r=0;r<e.length;r++)e[r]=t[32+r];return{publicKey:e,secretKey:new Uint8Array(t)}},t.sign.keyPair.fromSeed=function(t){if(jt(t),32!==t.length)throw new Error("bad seed size");for(var e=new Uint8Array(Tt),r=new Uint8Array(Dt),n=0;n<32;n++)r[n]=t[n];return Mt(e,r,!0),{publicKey:e,secretKey:r}},t.sign.publicKeyLength=Tt,t.sign.secretKeyLength=Dt,t.sign.seedLength=32,t.sign.signatureLength=Yt,t.hash=function(t){jt(t);var e=new Uint8Array(64);return pt(e,t,t.length),e},t.hash.hashLength=64,t.verify=function(t,e){return jt(t,e),0!==t.length&&0!==e.length&&t.length===e.length&&0===b(t,0,e,0,t.length)},t.setPRNG=function(t){i=t},function(){var e="undefined"!=typeof globalThis?globalThis.crypto||globalThis.msCrypto:null;e&&e.getRandomValues?t.setPRNG((function(t,r){var n,i=new Uint8Array(r);for(n=0;n<r;n+=65536)e.getRandomValues(i.subarray(n,n+Math.min(r-n,65536)));for(n=0;n<r;n++)t[n]=i[n];At(i)})):(e=r(200))&&e.randomBytes&&t.setPRNG((function(t,r){var n,i=e.randomBytes(r);for(n=0;n<r;n++)t[n]=i[n];At(i)}))}()}(t.exports?t.exports:globalThis.nacl=globalThis.nacl||{});var Qe,tr=t.exports?t.exports:globalThis.nacl,er={fromSeed:tr.sign.keyPair.fromSeed,sign:tr.sign.detached,verify:tr.sign.detached.verify,randomBytes:tr.randomBytes};function rr(){return Qe}var nr,ir,sr=new Uint16Array([0,4129,8258,12387,16516,20645,24774,28903,33032,37161,41290,45419,49548,53677,57806,61935,4657,528,12915,8786,21173,17044,29431,25302,37689,33560,45947,41818,54205,50076,62463,58334,9314,13379,1056,5121,25830,29895,17572,21637,42346,46411,34088,38153,58862,62927,50604,54669,13907,9842,5649,1584,30423,26358,22165,18100,46939,42874,38681,34616,63455,59390,55197,51132,18628,22757,26758,30887,2112,6241,10242,14371,51660,55789,59790,63919,35144,39273,43274,47403,23285,19156,31415,27286,6769,2640,14899,10770,56317,52188,64447,60318,39801,35672,47931,43802,27814,31879,19684,23749,11298,15363,3168,7233,60846,64911,52716,56781,44330,48395,36200,40265,32407,28342,24277,20212,15891,11826,7761,3696,65439,61374,57309,53244,48923,44858,40793,36728,37256,33193,45514,41451,53516,49453,61774,57711,4224,161,12482,8419,20484,16421,28742,24679,33721,37784,41979,46042,49981,54044,58239,62302,689,4752,8947,13010,16949,21012,25207,29270,46570,42443,38312,34185,62830,58703,54572,50445,13538,9411,5280,1153,29798,25671,21540,17413,42971,47098,34713,38840,59231,63358,50973,55100,9939,14066,1681,5808,26199,30326,17941,22068,55628,51565,63758,59695,39368,35305,47498,43435,22596,18533,30726,26663,6336,2273,14466,10403,52093,56156,60223,64286,35833,39896,43963,48026,19061,23124,27191,31254,2801,6864,10931,14994,64814,60687,56684,52557,48554,44427,40424,36297,31782,27655,23652,19525,15522,11395,7392,3265,61215,65342,53085,57212,44955,49082,36825,40952,28183,32310,20053,24180,11923,16050,3793,7920]),ar=function(){function t(){M(this,t)}return k(t,null,[{key:"checksum",value:function(t){for(var e=0,r=0;r<t.byteLength;r++){var n=t[r];e=e<<8&65535^sr[255&(e>>8^n)]}return e}},{key:"validate",value:function(e,r){return t.checksum(e)==r}}])}(),or="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",ur=k((function t(){M(this,t)}),null,[{key:"encode",value:function(t){for(var e=0,r=0,n=new Uint8Array(t),i=new Uint8Array(2*t.byteLength),s=0,a=0;a<n.byteLength;a++)for(r=r<<8|n[a],e+=8;e>=5;){var o=r>>>e-5&31;i[s++]=or.charAt(o).charCodeAt(0),e-=5}if(e>0){var u=r<<5-e&31;i[s++]=or.charAt(u).charCodeAt(0)}return i.slice(0,s)}},{key:"decode",value:function(t){for(var e=0,r=0,n=0,i=new Uint8Array(t),s=new Uint8Array(5*i.byteLength/8|0),a=0;a<i.byteLength;a++){var o=String.fromCharCode(i[a]),u=or.indexOf(o);if(-1===u)throw new Error("Illegal Base32 character: "+i[a]);r=r<<5|u,(e+=5)>=8&&(s[n++]=r>>>e-8&255,e-=8)}return s.slice(0,n)}}]),hr=function(t){function e(t,r){var n;return M(this,e),L(n=p(this,e,[t]),"name",void 0),L(n,"code",void 0),L(n,"chainedError",void 0),n.name="NKeysError",n.code=t,n.chainedError=r,n}return _(e,t),k(e)}(y(Error));!function(t){t.InvalidPrefixByte="nkeys: invalid prefix byte",t.InvalidKey="nkeys: invalid key",t.InvalidPublicKey="nkeys: invalid public key",t.InvalidSeedLen="nkeys: invalid seed length",t.InvalidSeed="nkeys: invalid seed",t.InvalidEncoding="nkeys: invalid encoded key",t.InvalidSignature="nkeys: signature verification failed",t.CannotSign="nkeys: cannot sign, no private key available",t.PublicKeyOnly="nkeys: no seed or private key available",t.InvalidChecksum="nkeys: invalid checksum",t.SerializationError="nkeys: serialization error",t.ApiError="nkeys: api error",t.ClearedPair="nkeys: pair is cleared"}(nr||(nr={})),function(t){t[t.Seed=144]="Seed",t[t.Private=120]="Private",t[t.Operator=112]="Operator",t[t.Server=104]="Server",t[t.Cluster=16]="Cluster",t[t.Account=0]="Account",t[t.User=160]="User"}(ir||(ir={}));var cr=k((function t(){M(this,t)}),null,[{key:"isValidPublicPrefix",value:function(t){return t==ir.Server||t==ir.Operator||t==ir.Cluster||t==ir.Account||t==ir.User}},{key:"startsWithValidPrefix",value:function(t){var e=t[0];return"S"==e||"P"==e||"O"==e||"N"==e||"C"==e||"A"==e||"U"==e}},{key:"isValidPrefix",value:function(t){return-1!=this.parsePrefix(t)}},{key:"parsePrefix",value:function(t){switch(t){case ir.Seed:return ir.Seed;case ir.Private:return ir.Private;case ir.Operator:return ir.Operator;case ir.Server:return ir.Server;case ir.Cluster:return ir.Cluster;case ir.Account:return ir.Account;case ir.User:return ir.User;default:return-1}}}]),dr=function(){function t(){M(this,t)}return k(t,null,[{key:"encode",value:function(e,r){if(!(r&&r instanceof Uint8Array))throw new hr(nr.SerializationError);if(!cr.isValidPrefix(e))throw new hr(nr.InvalidPrefixByte);return t._encode(!1,e,r)}},{key:"encodeSeed",value:function(e,r){if(!r)throw new hr(nr.ApiError);if(!cr.isValidPublicPrefix(e))throw new hr(nr.InvalidPrefixByte);if(32!==r.byteLength)throw new hr(nr.InvalidSeedLen);return t._encode(!0,e,r)}},{key:"decode",value:function(e,r){if(!cr.isValidPrefix(e))throw new hr(nr.InvalidPrefixByte);var n=t._decode(r);if(n[0]!==e)throw new hr(nr.InvalidPrefixByte);return n.slice(1)}},{key:"decodeSeed",value:function(e){var r=t._decode(e),n=t._decodePrefix(r);if(n[0]!=ir.Seed)throw new hr(nr.InvalidSeed);if(!cr.isValidPublicPrefix(n[1]))throw new hr(nr.InvalidPrefixByte);return{buf:r.slice(2),prefix:n[1]}}},{key:"_encode",value:function(e,r,n){var i=e?2:1,s=n.byteLength,a=i+s,o=new Uint8Array(i+s+2);if(e){var u=t._encodePrefix(ir.Seed,r);o.set(u)}else o[0]=r;o.set(n,i);var h=ar.checksum(o.slice(0,a));return new DataView(o.buffer).setUint16(a,h,!0),ur.encode(o)}},{key:"_decode",value:function(t){if(t.byteLength<4)throw new hr(nr.InvalidEncoding);var e;try{e=ur.decode(t)}catch(t){throw new hr(nr.InvalidEncoding,t)}var r=e.byteLength-2,n=new DataView(e.buffer).getUint16(r,!0),i=e.slice(0,r);if(!ar.validate(i,n))throw new hr(nr.InvalidChecksum);return i}},{key:"_encodePrefix",value:function(t,e){return new Uint8Array([t|e>>5,(31&e)<<3])}},{key:"_decodePrefix",value:function(t){var e=248&t[0],r=(7&t[0])<<5|(248&t[1])>>3;return new Uint8Array([e,r])}}])}(),lr=k((function t(e){M(this,t),L(this,"seed",void 0),this.seed=e}),[{key:"getRawSeed",value:function(){if(!this.seed)throw new hr(nr.ClearedPair);return dr.decodeSeed(this.seed).buf}},{key:"getSeed",value:function(){if(!this.seed)throw new hr(nr.ClearedPair);return this.seed}},{key:"getPublicKey",value:function(){if(!this.seed)throw new hr(nr.ClearedPair);var t=dr.decodeSeed(this.seed),e=rr().fromSeed(this.getRawSeed()),r=dr.encode(t.prefix,e.publicKey);return(new TextDecoder).decode(r)}},{key:"getPrivateKey",value:function(){if(!this.seed)throw new hr(nr.ClearedPair);var t=rr().fromSeed(this.getRawSeed());return dr.encode(ir.Private,t.secretKey)}},{key:"sign",value:function(t){if(!this.seed)throw new hr(nr.ClearedPair);var e=rr().fromSeed(this.getRawSeed());return rr().sign(t,e.secretKey)}},{key:"verify",value:function(t,e){if(!this.seed)throw new hr(nr.ClearedPair);var r=rr().fromSeed(this.getRawSeed());return rr().verify(t,e,r.publicKey)}},{key:"clear",value:function(){this.seed&&(this.seed.fill(0),this.seed=void 0)}}]);function fr(t){var e=rr().randomBytes(32),r=dr.encodeSeed(t,new Uint8Array(e));return new lr(r)}var mr=k((function t(e){M(this,t),L(this,"publicKey",void 0),this.publicKey=e}),[{key:"getPublicKey",value:function(){if(!this.publicKey)throw new hr(nr.ClearedPair);return(new TextDecoder).decode(this.publicKey)}},{key:"getPrivateKey",value:function(){if(!this.publicKey)throw new hr(nr.ClearedPair);throw new hr(nr.PublicKeyOnly)}},{key:"getSeed",value:function(){if(!this.publicKey)throw new hr(nr.ClearedPair);throw new hr(nr.PublicKeyOnly)}},{key:"sign",value:function(t){if(!this.publicKey)throw new hr(nr.ClearedPair);throw new hr(nr.CannotSign)}},{key:"verify",value:function(t,e){if(!this.publicKey)throw new hr(nr.ClearedPair);var r=dr._decode(this.publicKey);return rr().verify(t,e,r.slice(1))}},{key:"clear",value:function(){this.publicKey&&(this.publicKey.fill(0),this.publicKey=void 0)}}]);Qe=er;var pr={createAccount:function(){return fr(ir.Account)},createOperator:function(){return fr(ir.Operator)},createPair:fr,createUser:function(){return fr(ir.User)},fromPublic:function(t){var e=(new TextEncoder).encode(t),r=dr._decode(e),n=cr.parsePrefix(r[0]);if(cr.isValidPublicPrefix(n))return new mr(e);throw new hr(nr.InvalidPublicKey)},fromSeed:function(t){return dr.decodeSeed(t),new lr(t)},NKeysError:hr,NKeysErrorCode:nr,Prefix:ir,decode:function(t){for(var e=atob(t),r=new Uint8Array(e.length),n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r},encode:function(t){return btoa(String.fromCharCode.apply(String,o(t)))}};function _r(t,e){return function(){return{user:"function"==typeof t?t():t,pass:"function"==typeof e?e():e}}}function yr(t){return function(){return{auth_token:"function"==typeof t?t():t}}}function vr(t){return function(e){var r="function"==typeof t?t():t,n=r?pr.fromSeed(r):void 0,i=n?n.getPublicKey():"",s=O.encode(e||""),a=void 0!==n&&e?n.sign(s):void 0;return{nkey:i,sig:a?pr.encode(a):""}}}function gr(t,e){return function(r){var n="function"==typeof t?t():t,i=vr(e)(r);return{jwt:n,nkey:i.nkey,sig:i.sig}}}function br(t){var e="function"!=typeof t?function(){return t}:t,r=function(){var t=/\s*(?:(?:[-]{3,}[^\n]*[-]{3,}\n)(.+)(?:\n\s*[-]{3,}[^\n]*[-]{3,}\n))/gi,r=P.decode(e()),n=t.exec(r);if(!n)throw V.errorForCode(q.BadCreds);var i=n[1].trim();if(!(n=t.exec(r)))throw V.errorForCode(q.BadCreds);if(!n)throw V.errorForCode(q.BadCreds);return{jwt:i,seed:O.encode(n[1].trim())}};return gr((function(){return r().jwt}),(function(){return r().seed}))}var Mr=12e4;function wr(t){var e,r=[];return"function"==typeof t.authenticator&&r.push(t.authenticator),Array.isArray(t.authenticator)&&r.push.apply(r,o(t.authenticator)),t.token&&r.push(yr(t.token)),t.user&&r.push(_r(t.user,t.pass)),0===r.length?function(){}:(e=r,function(t){var r={};return e.forEach((function(e){var n=e(t)||{};r=Object.assign(r,n)})),r})}function kr(t,e){var r=t.proto,n=t.tls_required,i=t.tls_available;if((void 0===r||r<1)&&e.noEcho)throw new V("noEcho",q.ServerOptionNotAvailable);var s=n||i||!1;if(e.tls&&!s)throw new V("tls",q.ServerOptionNotAvailable)}var Lr,Sr=/^INFO\s+([^\r\n]+)\r\n/i,xr=H("PONG\r\n"),Yr=H("PING\r\n"),Tr=k((function t(e,r,n){M(this,t),L(this,"echo",void 0),L(this,"no_responders",void 0),L(this,"protocol",void 0),L(this,"verbose",void 0),L(this,"pedantic",void 0),L(this,"jwt",void 0),L(this,"nkey",void 0),L(this,"sig",void 0),L(this,"user",void 0),L(this,"pass",void 0),L(this,"auth_token",void 0),L(this,"tls_required",void 0),L(this,"name",void 0),L(this,"lang",void 0),L(this,"version",void 0),L(this,"headers",void 0),this.protocol=1,this.version=e.version,this.lang=e.lang,this.echo=!r.noEcho&&void 0,this.verbose=r.verbose,this.pedantic=r.pedantic,this.tls_required=!!r.tls||void 0,this.name=r.name,nt(this,(r&&"function"==typeof r.authenticator?r.authenticator(n):{})||{})})),Dr=function(t){function e(t,r){var n,i,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};M(this,e),L(i=p(this,e),"sid",void 0),L(i,"queue",void 0),L(i,"draining",void 0),L(i,"max",void 0),L(i,"subject",void 0),L(i,"drained",void 0),L(i,"protocol",void 0),L(i,"timer",void 0),L(i,"info",void 0),L(i,"cleanupFn",void 0),L(i,"closed",void 0),L(i,"requestSubject",void 0),nt(i,s),i.protocol=t,i.subject=r,i.draining=!1,i.noIterator="function"==typeof s.callback,i.closed=ut();var a=!(null!==(n=t.options)&&void 0!==n&&n.noAsyncTraces);return s.timeout&&(i.timer=st(s.timeout,a),i.timer.then((function(){i.timer=void 0})).catch((function(t){i.stop(t),i.noIterator&&i.callback(t,{})}))),i.noIterator||i.iterClosed.then((function(){i.closed.resolve(),i.unsubscribe()})),i}return _(e,t),k(e,[{key:"setPrePostHandlers",value:function(t){if(this.noIterator){var e=this.callback,r=t.ingestionFilterFn?t.ingestionFilterFn:function(){return{ingest:!0,protocol:!1}},n=t.protocolFilterFn?t.protocolFilterFn:function(){return!0},i=t.dispatchedFn?t.dispatchedFn:function(){};this.callback=function(t,s){r(s).ingest&&n(s)&&(e(t,s),i(s))}}else this.protocolFilterFn=t.protocolFilterFn,this.dispatchedFn=t.dispatchedFn}},{key:"callback",value:function(t,e){this.cancelTimeout(),t?this.stop(t):this.push(e)}},{key:"close",value:function(){var t=this;if(!this.isClosed()){this.cancelTimeout();var e=function(){if(t.stop(),t.cleanupFn)try{t.cleanupFn(t,t.info)}catch(t){}t.closed.resolve()};this.noIterator?e():this.push(e)}}},{key:"unsubscribe",value:function(t){this.protocol.unsubscribe(this,t)}},{key:"cancelTimeout",value:function(){this.timer&&(this.timer.cancel(),this.timer=void 0)}},{key:"drain",value:function(){var t=this;return this.protocol.isClosed()?Promise.reject(V.errorForCode(q.ConnectionClosed)):this.isClosed()?Promise.reject(V.errorForCode(q.SubClosed)):(this.drained||(this.draining=!0,this.protocol.unsub(this),this.drained=this.protocol.flush(ut()).then((function(){t.protocol.subscriptions.cancel(t)})).catch((function(){t.protocol.subscriptions.cancel(t)}))),this.drained)}},{key:"isDraining",value:function(){return this.draining}},{key:"isClosed",value:function(){return this.done}},{key:"getSubject",value:function(){return this.subject}},{key:"getMax",value:function(){return this.max}},{key:"getID",value:function(){return this.sid}}])}(zt),Er=k((function t(){M(this,t),L(this,"mux",void 0),L(this,"subs",void 0),L(this,"sidCounter",void 0),this.sidCounter=0,this.mux=null,this.subs=new Map}),[{key:"size",value:function(){return this.subs.size}},{key:"add",value:function(t){return this.sidCounter++,t.sid=this.sidCounter,this.subs.set(t.sid,t),t}},{key:"setMux",value:function(t){return this.mux=t,t}},{key:"getMux",value:function(){return this.mux}},{key:"get",value:function(t){return this.subs.get(t)}},{key:"resub",value:function(t){return this.sidCounter++,this.subs.delete(t.sid),t.sid=this.sidCounter,this.subs.set(t.sid,t),t}},{key:"all",value:function(){return Array.from(this.subs.values())}},{key:"cancel",value:function(t){t&&(t.close(),this.subs.delete(t.sid))}},{key:"handleError",value:function(t){if(t&&t.permissionContext){var e,r=t.permissionContext,n=this.all();if("subscription"===r.operation&&(e=n.find((function(t){return t.subject===r.subject&&t.queue===r.queue}))),"publish"===r.operation&&(e=n.find((function(t){return t.requestSubject===r.subject}))),e)return e.callback(t,{}),e.close(),this.subs.delete(e.sid),e!==this.mux}return!1}},{key:"close",value:function(){this.subs.forEach((function(t){t.close()}))}}]),jr=function(){function t(e,r){M(this,t),L(this,"connected",void 0),L(this,"connectedOnce",void 0),L(this,"infoReceived",void 0),L(this,"info",void 0),L(this,"muxSubscriptions",void 0),L(this,"options",void 0),L(this,"outbound",void 0),L(this,"pongs",void 0),L(this,"subscriptions",void 0),L(this,"transport",void 0),L(this,"noMorePublishing",void 0),L(this,"connectError",void 0),L(this,"publisher",void 0),L(this,"_closed",void 0),L(this,"closed",void 0),L(this,"listeners",void 0),L(this,"heartbeats",void 0),L(this,"parser",void 0),L(this,"outMsgs",void 0),L(this,"inMsgs",void 0),L(this,"outBytes",void 0),L(this,"inBytes",void 0),L(this,"pendingLimit",void 0),L(this,"lastError",void 0),L(this,"abortReconnect",void 0),L(this,"whyClosed",void 0),L(this,"servers",void 0),L(this,"server",void 0),L(this,"features",void 0),L(this,"connectPromise",void 0),this._closed=!1,this.connected=!1,this.connectedOnce=!1,this.infoReceived=!1,this.noMorePublishing=!1,this.abortReconnect=!1,this.listeners=[],this.pendingLimit=32768,this.outMsgs=0,this.inMsgs=0,this.outBytes=0,this.inBytes=0,this.options=e,this.publisher=r,this.subscriptions=new Er,this.muxSubscriptions=new Ue,this.outbound=new Xt,this.pongs=[],this.whyClosed="",this.pendingLimit=e.pendingLimit||this.pendingLimit,this.features=new ve({major:0,minor:0,micro:0}),this.connectPromise=null;var n="string"==typeof e.servers?[e.servers]:e.servers;this.servers=new Fe(n,{randomize:!e.noRandomize}),this.closed=ut(),this.parser=new Xe(this),this.heartbeats=new ze(this,this.options.pingInterval||Mr,this.options.maxPingOut||2)}return k(t,[{key:"resetOutbound",value:function(){this.outbound.reset();var t=this.pongs;this.pongs=[];var e=V.errorForCode(q.Disconnect);e.stack="",t.forEach((function(t){t.reject(e)})),this.parser=new Xe(this),this.infoReceived=!1}},{key:"dispatchStatus",value:function(t){this.listeners.forEach((function(e){e.push(t)}))}},{key:"status",value:function(){var t=new zt;return this.listeners.push(t),t}},{key:"prepare",value:function(){var t=this;this.transport&&this.transport.discard(),this.info=void 0,this.resetOutbound();var e=ut();return e.catch((function(){})),this.pongs.unshift(e),this.connectError=function(t){e.reject(t)},this.transport=function(){if(!Me||"function"!=typeof Me.factory)throw new Error("transport fn is not set");return Me.factory()}(),this.transport.closed().then(function(){var e=m(l().mark((function e(r){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.connected=!1,t.isClosed()){e.next=5;break}return e.next=4,t.disconnected(t.transport.closeError||t.lastError);case 4:return e.abrupt("return");case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e}},{key:"disconnect",value:function(){this.dispatchStatus({type:B.StaleConnection,data:""}),this.transport.disconnect()}},{key:"reconnect",value:function(){return this.connected&&(this.dispatchStatus({type:B.ClientInitiatedReconnect,data:""}),this.transport.disconnect()),Promise.resolve()}},{key:"disconnected",value:(a=m(l().mark((function t(e){var r=this;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.dispatchStatus({type:N.Disconnect,data:this.servers.getCurrentServer().toString()}),!this.options.reconnect){t.next=6;break}return t.next=4,this.dialLoop().then((function(){var t;r.dispatchStatus({type:N.Reconnect,data:r.servers.getCurrentServer().toString()}),(null===(t=r.lastError)||void 0===t?void 0:t.code)===q.AuthenticationExpired&&(r.lastError=void 0)})).catch((function(t){r._close(t)}));case 4:t.next=8;break;case 6:return t.next=8,this._close(e);case 8:case"end":return t.stop()}}),t,this)}))),function(t){return a.apply(this,arguments)})},{key:"dial",value:(s=m(l().mark((function t(e){var r,n,i,s=this;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.prepare(),t.prev=1,n=st(this.options.timeout||2e4),i=this.transport.connect(e,this.options),t.next=6,Promise.race([i,n]);case 6:m(l().mark((function t(){var e,r,n,i,a,o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.prev=0,e=!1,r=!1,t.prev=3,i=x(s.transport);case 5:return t.next=7,i.next();case 7:if(!(e=!(a=t.sent).done)){t.next=13;break}o=a.value,s.parser.parse(o);case 10:e=!1,t.next=5;break;case 13:t.next=19;break;case 15:t.prev=15,t.t0=t.catch(3),r=!0,n=t.t0;case 19:if(t.prev=19,t.prev=20,!e||null==i.return){t.next=24;break}return t.next=24,i.return();case 24:if(t.prev=24,!r){t.next=27;break}throw n;case 27:return t.finish(24);case 28:return t.finish(19);case 29:t.next=34;break;case 31:t.prev=31,t.t1=t.catch(0),t.t1;case 34:case"end":return t.stop()}}),t,null,[[0,31],[3,15,19,29],[20,,24,28]])})))().then(),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(1),r.reject(t.t0);case 12:return t.prev=12,t.next=15,Promise.race([n,r]);case 15:n&&n.cancel(),this.connected=!0,this.connectError=void 0,this.sendSubscriptions(),this.connectedOnce=!0,this.server.didConnect=!0,this.server.reconnects=0,this.flushPending(),this.heartbeats.start(),t.next=32;break;case 26:return t.prev=26,t.t1=t.catch(12),n&&n.cancel(),t.next=31,this.transport.close(t.t1);case 31:throw t.t1;case 32:case"end":return t.stop()}}),t,this,[[1,9],[12,26]])}))),function(t){return s.apply(this,arguments)})},{key:"_doDial",value:(i=m(l().mark((function t(e){var r,n,i,s,a,o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.options.resolve,t.next=3,e.resolve({fn:Se(),debug:this.options.debug,randomize:!this.options.noRandomize,resolve:r});case 3:n=t.sent,i=null,s=h(n),t.prev=6,s.s();case 8:if((a=s.n()).done){t.next=23;break}return o=a.value,t.prev=10,i=null,this.dispatchStatus({type:B.Reconnecting,data:o.toString()}),t.next=15,this.dial(o);case 15:return t.abrupt("return");case 18:t.prev=18,t.t0=t.catch(10),i=t.t0;case 21:t.next=8;break;case 23:t.next=28;break;case 25:t.prev=25,t.t1=t.catch(6),s.e(t.t1);case 28:return t.prev=28,s.f(),t.finish(28);case 31:throw i;case 32:case"end":return t.stop()}}),t,this,[[6,25,28,31],[10,18]])}))),function(t){return i.apply(this,arguments)})},{key:"dialLoop",value:function(){var t=this;return null===this.connectPromise&&(this.connectPromise=this.dodialLoop(),this.connectPromise.then((function(){})).catch((function(){})).finally((function(){t.connectPromise=null}))),this.connectPromise}},{key:"dodialLoop",value:(n=m(l().mark((function t(){var e,r,n,i,s,a;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._closed&&this.servers.clear(),r=this.options.reconnectDelayHandler?this.options.reconnectDelayHandler():2e3,n=r,(i=this.selectServer())&&!this.abortReconnect){t.next=15;break}if(!e){t.next=10;break}throw e;case 10:if(!this.lastError){t.next=14;break}throw this.lastError;case 14:throw V.errorForCode(q.ConnectionRefused);case 15:if(s=Date.now(),!(0===i.lastConnect||i.lastConnect+r<=s)){t.next=36;break}return i.lastConnect=Date.now(),t.prev=18,t.next=21,this._doDial(i);case 21:return t.abrupt("break",41);case 24:if(t.prev=24,t.t0=t.catch(18),e=t.t0,this.connectedOnce){t.next=31;break}if(!this.options.waitOnFirstConnect){t.next=30;break}return t.abrupt("continue",0);case 30:this.servers.removeCurrentServer();case 31:i.reconnects++,-1!==(a=this.options.maxReconnectAttempts||0)&&i.reconnects>=a&&this.servers.removeCurrentServer();case 34:t.next=39;break;case 36:return n=Math.min(n,i.lastConnect+r-s),t.next=39,at(n);case 39:t.next=0;break;case 41:case"end":return t.stop()}}),t,this,[[18,24]])}))),function(){return n.apply(this,arguments)})},{key:"processMsg",value:function(t,e){if(this.inMsgs++,this.inBytes+=e.length,this.subscriptions.sidCounter){var r=this.subscriptions.get(t.sid);r&&(r.received+=1,r.callback&&r.callback(null,new wt(t,e,this)),void 0!==r.max&&r.received>=r.max&&r.unsubscribe())}}},{key:"processError",value:function(e){var r=I(e),n=t.toError(r),i={type:N.Error,data:n.code};if(n.isPermissionError()){var s=!1;if(n.permissionContext){i.permissionContext=n.permissionContext;var a=this.subscriptions.getMux();s=(null==a?void 0:a.subject)===n.permissionContext.subject}this.subscriptions.handleError(n),this.muxSubscriptions.handleError(s,n),s&&this.subscriptions.setMux(null)}this.dispatchStatus(i),this.handleError(n)}},{key:"handleError",value:function(t){t.isAuthError()?this.handleAuthError(t):(t.isProtocolError()||t.isAuthTimeout())&&(this.lastError=t),t.isPermissionError()||(this.lastError=t)}},{key:"handleAuthError",value:function(t){this.lastError&&t.code===this.lastError.code&&!1===this.options.ignoreAuthErrorAbort&&(this.abortReconnect=!0),this.connectError?this.connectError(t):this.disconnect()}},{key:"processPing",value:function(){this.transport.send(xr)}},{key:"processPong",value:function(){var t=this.pongs.shift();t&&t.resolve()}},{key:"processInfo",value:function(t){var e=JSON.parse(I(t));this.info=e;var r=this.options&&this.options.ignoreClusterUpdates?void 0:this.servers.update(e,this.transport.isEncrypted());if(!this.infoReceived){this.features.update(_e(e.version)),this.infoReceived=!0,this.transport.isEncrypted()&&this.servers.updateTLSName();var n=this.transport,i=n.version,s=n.lang;try{var a=new Tr({version:i,lang:s},this.options,e.nonce);e.headers&&(a.headers=!0,a.no_responders=!0);var o=JSON.stringify(a);this.transport.send(H("CONNECT ".concat(o).concat(xe))),this.transport.send(Yr)}catch(t){this._close(t)}}r&&this.dispatchStatus({type:N.Update,data:r}),void 0!==e.ldm&&e.ldm&&this.dispatchStatus({type:N.LDM,data:this.servers.getCurrentServer().toString()})}},{key:"push",value:function(t){switch(t.kind){case Ke.MSG:var e=t.msg,r=t.data;this.processMsg(e,r);break;case Ke.OK:break;case Ke.ERR:this.processError(t.data);break;case Ke.PING:this.processPing();break;case Ke.PONG:this.processPong();break;case Ke.INFO:this.processInfo(t.data)}}},{key:"sendCommand",value:function(t){var e,r,n=this,i=this.outbound.length();r="string"==typeof t?H(t):t;for(var s=arguments.length,a=new Array(s>1?s-1:0),o=1;o<s;o++)a[o-1]=arguments[o];(e=this.outbound).fill.apply(e,[r].concat(a)),0===i?queueMicrotask((function(){n.flushPending()})):this.outbound.size()>=this.pendingLimit&&this.flushPending()}},{key:"publish",value:function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A,n=arguments.length>2?arguments[2]:void 0;if(r instanceof Uint8Array)e=r;else{if("string"!=typeof r)throw V.errorForCode(q.BadPayload);e=O.encode(r)}var i=e.length;(n=n||{}).reply=n.reply||"";var s,a=A,o=0;if(n.headers){if(this.info&&!this.info.headers)throw new V("headers",q.ServerOptionNotAvailable);o=(a=n.headers.encode()).length,i=e.length+o}if(this.info&&i>this.info.max_payload)throw V.errorForCode(q.MaxPayloadExceeded);this.outBytes+=i,this.outMsgs++,n.headers?(s=n.reply?"HPUB ".concat(t," ").concat(n.reply," ").concat(o," ").concat(i,"\r\n"):"HPUB ".concat(t," ").concat(o," ").concat(i,"\r\n"),this.sendCommand(s,a,e,Ye)):(s=n.reply?"PUB ".concat(t," ").concat(n.reply," ").concat(i,"\r\n"):"PUB ".concat(t," ").concat(i,"\r\n"),this.sendCommand(s,e,Ye))}},{key:"request",value:function(t){return this.initMux(),this.muxSubscriptions.add(t),t}},{key:"subscribe",value:function(t){return this.subscriptions.add(t),this._subunsub(t),t}},{key:"_sub",value:function(t){t.queue?this.sendCommand("SUB ".concat(t.subject," ").concat(t.queue," ").concat(t.sid,"\r\n")):this.sendCommand("SUB ".concat(t.subject," ").concat(t.sid,"\r\n"))}},{key:"_subunsub",value:function(t){return this._sub(t),t.max&&this.unsubscribe(t,t.max),t}},{key:"unsubscribe",value:function(t,e){this.unsub(t,e),(void 0===t.max||t.received>=t.max)&&this.subscriptions.cancel(t)}},{key:"unsub",value:function(t,e){t&&!this.isClosed()&&(e?this.sendCommand("UNSUB ".concat(t.sid," ").concat(e,"\r\n")):this.sendCommand("UNSUB ".concat(t.sid,"\r\n")),t.max=e)}},{key:"resub",value:function(t,e){t&&!this.isClosed()&&(this.unsub(t),t.subject=e,this.subscriptions.resub(t),this._sub(t))}},{key:"flush",value:function(t){return t||(t=ut()),this.pongs.push(t),this.outbound.fill(Yr),this.flushPending(),t}},{key:"sendSubscriptions",value:function(){var t=[];this.subscriptions.all().forEach((function(e){var r=e;r.queue?t.push("SUB ".concat(r.subject," ").concat(r.queue," ").concat(r.sid).concat(xe)):t.push("SUB ".concat(r.subject," ").concat(r.sid).concat(xe))})),t.length&&this.transport.send(H(t.join("")))}},{key:"_close",value:(r=m(l().mark((function t(e){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._closed){t.next=2;break}return t.abrupt("return");case 2:return this.whyClosed=new Error("close trace").stack||"",this.heartbeats.cancel(),this.connectError&&(this.connectError(e),this.connectError=void 0),this.muxSubscriptions.close(),this.subscriptions.close(),this.listeners.forEach((function(t){t.stop()})),this._closed=!0,t.next=11,this.transport.close(e);case 11:return t.next=13,this.closed.resolve(e);case 13:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"close",value:function(){return this._close()}},{key:"isClosed",value:function(){return this._closed}},{key:"drain",value:function(){var t=this,e=this.subscriptions.all(),r=[];return e.forEach((function(t){r.push(t.drain())})),Promise.all(r).then(m(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.noMorePublishing=!0,e.next=3,t.flush();case 3:return e.abrupt("return",t.close());case 4:case"end":return e.stop()}}),e)})))).catch((function(){}))}},{key:"flushPending",value:function(){if(this.infoReceived&&this.connected&&this.outbound.size()){var t=this.outbound.drain();this.transport.send(t)}}},{key:"initMux",value:function(){if(!this.subscriptions.getMux()){var t=this.muxSubscriptions.init(this.options.inboxPrefix),e=new Dr(this,"".concat(t,"*"));e.callback=this.muxSubscriptions.dispatcher(),this.subscriptions.setMux(e),this.subscribe(e)}}},{key:"selectServer",value:function(){var t=this.servers.selectServer();if(void 0!==t)return this.server=t,this.server}},{key:"getServer",value:function(){return this.server}}],[{key:"connect",value:(e=m(l().mark((function e(r,n){var i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new t(r,n),e.next=3,i.dialLoop();case 3:return e.abrupt("return",i);case 4:case"end":return e.stop()}}),e)}))),function(t,r){return e.apply(this,arguments)})},{key:"toError",value:function(t){var e=t?t.toLowerCase():"";if(-1!==e.indexOf("permissions violation")){var r=new V(t,q.PermissionsViolation),n=t.match(/(Publish|Subscription) to "(\S+)"/);if(n){r.permissionContext={operation:n[1].toLowerCase(),subject:n[2],queue:void 0};var i=t.match(/using queue "(\S+)"/);i&&(r.permissionContext.queue=i[1])}return r}return-1!==e.indexOf("authorization violation")?new V(t,q.AuthorizationViolation):-1!==e.indexOf("user authentication expired")?new V(t,q.AuthenticationExpired):-1!=e.indexOf("account authentication expired")?new V(t,q.AccountExpired):-1!==e.indexOf("authentication timeout")?new V(t,q.AuthenticationTimeout):new V(t,q.ProtocolError)}}]);var e,r,n,i,s,a}(),Ar=k((function t(e){M(this,t),L(this,"msg",void 0),this.msg=e}),[{key:"data",get:function(){return this.msg.data}},{key:"sid",get:function(){return this.msg.sid}},{key:"subject",get:function(){return this.msg.subject}},{key:"reply",get:function(){return this.msg.reply||""}},{key:"headers",get:function(){return this.msg.headers}},{key:"respond",value:function(t,e){return this.msg.respond(t,e)}},{key:"respondError",value:function(t,e,r,n){var i,s;return(n=n||{}).headers=n.headers||pt(),null===(i=n.headers)||void 0===i||i.set(X,"".concat(t)),null===(s=n.headers)||void 0===s||s.set($,e),this.msg.respond(r,n)}},{key:"json",value:function(t){return this.msg.json(t)}},{key:"string",value:function(){return this.msg.string()}}]),Or=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";M(this,t),L(this,"subject",void 0),L(this,"queue",void 0),L(this,"srv",void 0),""!==r&&function(t,e){if(-1!==e.indexOf(" "))throw new Error("".concat(t," cannot contain spaces: '").concat(e,"'"));e.split(".").forEach((function(r){if(">"===r)throw new Error("".concat(t," name cannot contain internal '>': '").concat(e,"'"))}))}("service group",r);var i="";if(e instanceof Pr)this.srv=e,i="";else{if(!(e instanceof t))throw new Error("unknown ServiceGroup type");var s=e;this.srv=s.srv,""===n&&""!==s.queue&&(n=s.queue),i=s.subject}this.subject=this.calcSubject(i,r),this.queue=n}return k(t,[{key:"calcSubject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return""===e?t:""!==t?"".concat(t,".").concat(e):e}},{key:"addEndpoint",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0,r="function"==typeof(e=e||{subject:t})?{handler:e,subject:t}:e;xt("endpoint",t);var n=r.subject,i=r.handler,s=r.metadata,a=r.queue;n=n||t,a=a||this.queue,function(t,e){if(""===e)throw new Error("".concat(t," cannot be empty"));if(-1!==e.indexOf(" "))throw new Error("".concat(t," cannot contain spaces: '").concat(e,"'"));var r=e.split(".");r.forEach((function(n,i){if(">"===n&&i!==r.length-1)throw new Error("".concat(t," cannot have internal '>': '").concat(e,"'"))}))}("endpoint subject",n);var o={name:t,subject:n=this.calcSubject(this.subject,n),queue:a,handler:i,metadata:s};return this.srv._addEndpoint(o)}},{key:"addGroup",value:function(){return new t(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")}}])}(),Pr=function(){function t(e){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{name:"",version:""};M(this,t),L(this,"nc",void 0),L(this,"_id",void 0),L(this,"config",void 0),L(this,"handlers",void 0),L(this,"internal",void 0),L(this,"_stopped",void 0),L(this,"_done",void 0),L(this,"started",void 0),this.nc=e,this.config=Object.assign({},n),this.config.queue||(this.config.queue="q"),xt("name",this.config.name),xt("queue",this.config.queue),_e(this.config.version),this._id=U.next(),this.internal=[],this._done=ut(),this._stopped=!1,this.handlers=[],this.started=(new Date).toISOString(),this.reset(),this.nc.closed().then((function(){r.close().catch()})).catch((function(t){r.close(t).catch()}))}return k(t,[{key:"subjects",get:function(){return this.handlers.filter((function(t){return!1===t.internal})).map((function(t){return t.subject}))}},{key:"id",get:function(){return this._id}},{key:"name",get:function(){return this.config.name}},{key:"description",get:function(){var t;return null!==(t=this.config.description)&&void 0!==t?t:""}},{key:"version",get:function(){return this.config.version}},{key:"metadata",get:function(){return this.config.metadata}},{key:"errorToHeader",value:function(t){var e=pt();if(t instanceof Q){var r=t;e.set($,r.message),e.set(X,"".concat(r.code))}else e.set($,t.message),e.set(X,"500");return e}},{key:"setupHandler",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=r?"":t.queue?t.queue:this.config.queue,i=t.name,s=t.subject,a=t.handler,o=t;o.internal=r,r&&this.internal.push(o),o.stats=new Rr(i,s,n),o.queue=n;var u=a?function(t,r){if(t)e.close(t);else{var n=Date.now();try{a(t,new Ar(r))}catch(t){o.stats.countError(t),null==r||r.respond(A,{headers:e.errorToHeader(t)})}finally{o.stats.countLatency(n)}}}:void 0;return o.sub=this.nc.subscribe(s,{callback:u,queue:n}),o.sub.closed.then((function(){e._stopped||e.close(new Error("required subscription ".concat(t.subject," stopped"))).catch()})).catch((function(r){if(!e._stopped){var n=new Error("required subscription ".concat(t.subject," errored: ").concat(r.message));n.stack=r.stack,e.close(n).catch()}})),o}},{key:"info",value:function(){return{type:J.INFO,name:this.name,id:this.id,version:this.version,description:this.description,metadata:this.metadata,endpoints:this.endpoints()}}},{key:"endpoints",value:function(){return this.handlers.map((function(t){return{subject:t.subject,metadata:t.metadata,name:t.name,queue_group:t.queue}}))}},{key:"stats",value:(e=m(l().mark((function t(){var e,r,n,i;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=[],r=h(this.handlers),t.prev=2,r.s();case 4:if((n=r.n()).done){t.next=19;break}if(i=n.value,"function"!=typeof this.config.statsHandler){t.next=16;break}return t.prev=7,t.next=10,this.config.statsHandler(i);case 10:i.stats.data=t.sent,t.next=16;break;case 13:t.prev=13,t.t0=t.catch(7),i.stats.countError(t.t0);case 16:e.push(i.stats.stats(i.qi));case 17:t.next=4;break;case 19:t.next=24;break;case 21:t.prev=21,t.t1=t.catch(2),r.e(t.t1);case 24:return t.prev=24,r.f(),t.finish(24);case 27:return t.abrupt("return",{type:J.STATS,name:this.name,id:this.id,version:this.version,started:this.started,metadata:this.metadata,endpoints:e});case 28:case"end":return t.stop()}}),t,this,[[2,21,24,27],[7,13]])}))),function(){return e.apply(this,arguments)})},{key:"addInternalHandler",value:function(t,e){var r="".concat(t).toUpperCase();this._doAddInternalHandler("".concat(r,"-all"),t,e),this._doAddInternalHandler("".concat(r,"-kind"),t,e,this.name),this._doAddInternalHandler("".concat(r),t,e,this.name,this.id)}},{key:"_doAddInternalHandler",value:function(e,r,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a={};a.name=e,a.subject=t.controlSubject(r,i,s),a.handler=n,this.setupHandler(a,!0)}},{key:"start",value:function(){var t=this,e=gt(),r=e.encode(this.ping());return this.addInternalHandler(et.PING,(function(e,n){return e?(t.close(e).then().catch(),Promise.reject(e)):(n.respond(r),Promise.resolve())})),this.addInternalHandler(et.STATS,(function(r,n){return r?(t.close(r),Promise.reject(r)):t.stats().then((function(t){return null==n||n.respond(e.encode(t)),Promise.resolve()}))})),this.addInternalHandler(et.INFO,(function(r,n){return r?(t.close(r),Promise.reject(r)):(null==n||n.respond(e.encode(t.info())),Promise.resolve())})),this.handlers.forEach((function(e){"string"==typeof e.subject&&null!==e.handler&&t.setupHandler(e)})),Promise.resolve(this)}},{key:"close",value:function(t){var e=this;if(this._stopped)return this._done;this._stopped=!0;var r=[];return this.nc.isClosed()||(r=this.handlers.concat(this.internal).map((function(t){return t.sub.drain()}))),Promise.allSettled(r).then((function(){e._done.resolve(t||null)})),this._done}},{key:"stopped",get:function(){return this._done}},{key:"isStopped",get:function(){return this._stopped}},{key:"stop",value:function(t){return this.close(t)}},{key:"ping",value:function(){return{type:J.PING,name:this.name,id:this.id,version:this.version,metadata:this.metadata}}},{key:"reset",value:function(){if(this.started=(new Date).toISOString(),this.handlers){var t,e=h(this.handlers);try{for(e.s();!(t=e.n()).done;){var r=t.value;r.stats.reset(r.qi)}}catch(t){e.e(t)}finally{e.f()}}}},{key:"addGroup",value:function(t,e){return new Or(this,t,e)}},{key:"addEndpoint",value:function(t,e){return new Or(this).addEndpoint(t,e)}},{key:"_addEndpoint",value:function(t){var e=this,r=new zt;r.noIterator="function"==typeof t.handler,r.noIterator||(t.handler=function(t,n){t?e.stop(t).catch():r.push(new Ar(n))},r.iterClosed.then((function(){e.close().catch()})));var n=this.setupHandler(t,!1);return n.qi=r,this.handlers.push(n),r}}],[{key:"controlSubject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3?arguments[3]:void 0,i=null!=n?n:"$SRV";return""===e&&""===r?"".concat(i,".").concat(t):(xt("control subject name",e),""!==r?(xt("control subject id",r),"".concat(i,".").concat(t,".").concat(e,".").concat(r)):"".concat(i,".").concat(t,".").concat(e))}}]);var e}(),Rr=k((function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";M(this,t),L(this,"name",void 0),L(this,"subject",void 0),L(this,"average_processing_time",void 0),L(this,"num_requests",void 0),L(this,"processing_time",void 0),L(this,"num_errors",void 0),L(this,"last_error",void 0),L(this,"data",void 0),L(this,"metadata",void 0),L(this,"queue",void 0),this.name=e,this.subject=r,this.average_processing_time=0,this.num_errors=0,this.num_requests=0,this.processing_time=0,this.queue=n}),[{key:"reset",value:function(t){this.num_requests=0,this.processing_time=0,this.average_processing_time=0,this.num_errors=0,this.last_error=void 0,this.data=void 0;var e=t;e&&(e.time=0,e.processed=0)}},{key:"countLatency",value:function(t){this.num_requests++,this.processing_time+=lt(Date.now()-t),this.average_processing_time=Math.round(this.processing_time/this.num_requests)}},{key:"countError",value:function(t){this.num_errors++,this.last_error=t.message}},{key:"_stats",value:function(){return{name:this.name,subject:this.subject,average_processing_time:this.average_processing_time,num_errors:this.num_errors,num_requests:this.num_requests,processing_time:this.processing_time,last_error:this.last_error,data:this.data,queue_group:this.queue}}},{key:"stats",value:function(t){var e=t;return!1===(null==e?void 0:e.noIterator)&&(this.processing_time=e.time,this.num_requests=e.processed,this.average_processing_time=this.processing_time>0&&this.num_requests>0?this.processing_time/this.num_requests:0),this._stats()}}]),Hr=function(){return k((function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{strategy:W.JitterTimer,maxWait:2e3},n=arguments.length>2?arguments[2]:void 0;M(this,t),L(this,"nc",void 0),L(this,"prefix",void 0),L(this,"opts",void 0),this.nc=e,this.prefix=n,this.opts=r}),[{key:"ping",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.q(et.PING,t,e)}},{key:"stats",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.q(et.STATS,t,e)}},{key:"info",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.q(et.INFO,t,e)}},{key:"q",value:(t=m(l().mark((function t(e){var r,n,i,s,a,o,u=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=u.length>1&&void 0!==u[1]?u[1]:"",n=u.length>2&&void 0!==u[2]?u[2]:"",i=new zt,s=gt(),a=Pr.controlSubject(e,r,n,this.prefix),t.next=7,this.nc.requestMany(a,A,this.opts);case 7:return o=t.sent,m(l().mark((function t(){var e,r,n,a,u,h;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=!1,r=!1,t.prev=2,a=l().mark((function t(){var e,r;return l().wrap((function(t){for(var n,a=function(){switch(t.prev=t.next){case 0:e=h.value;try{r=s.decode(e.data),i.push(r)}catch(t){i.push((function(){i.stop(t)}))}case 2:case"end":return{v:t.stop()}}};;)if(n=a())return n.v}),t)})),u=x(o);case 5:return t.next=7,u.next();case 7:if(!(e=!(h=t.sent).done)){t.next=12;break}return t.delegateYield(a(),"t0",9);case 9:e=!1,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t1=t.catch(2),r=!0,n=t.t1;case 18:if(t.prev=18,t.prev=19,!e||null==u.return){t.next=23;break}return t.next=23,u.return();case 23:if(t.prev=23,!r){t.next=26;break}throw n;case 26:return t.finish(23);case 27:return t.finish(18);case 28:i.push((function(){i.stop()}));case 29:case"end":return t.stop()}}),t,null,[[2,14,18,28],[19,,23,27]])})))().catch((function(t){i.stop(t)})),t.abrupt("return",i);case 10:case"end":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})}]);var t}(),Ir=k((function t(e,r){M(this,t),L(this,"name",void 0),L(this,"duration",void 0),L(this,"date",void 0),L(this,"payload",void 0),L(this,"msgs",void 0),L(this,"lang",void 0),L(this,"version",void 0),L(this,"bytes",void 0),L(this,"asyncRequests",void 0),L(this,"min",void 0),L(this,"max",void 0),this.name=e,this.duration=r,this.date=Date.now(),this.payload=0,this.msgs=0,this.bytes=0}),[{key:"toString",value:function(){var t,e,r,n=this.duration/1e3,i=Math.round(this.msgs/n),s=this.asyncRequests?"asyncRequests":"",a="";return this.max&&(a="".concat(this.min,"/").concat(this.max)),"".concat(this.name).concat(s?" [asyncRequests]":""," ").concat((r=i,r.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","))," msgs/sec - [").concat(n.toFixed(2)," secs] ~ ").concat((t=this.bytes,e=n,"".concat(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e?1e3:1024,n=e?["k","M","G","T","P","E"]:["K","M","G","T","P","E"],i=e?"iB":"B";if(t<r)return"".concat(t.toFixed(2)," ").concat(i);var s=parseInt(Math.log(t)/Math.log(r)+""),a=parseInt(s-1+"");return"".concat((t/Math.pow(r,s)).toFixed(2)," ").concat(n[a]).concat(i)}(t/e),"/sec"))," ").concat(a)}},{key:"toCsv",value:function(){return'"'.concat(this.name,'",').concat(new Date(this.date).toISOString(),",").concat(this.lang,",").concat(this.version,",").concat(this.msgs,",").concat(this.payload,",").concat(this.bytes,",").concat(this.duration,",").concat(!!this.asyncRequests&&this.asyncRequests,"\n")}}],[{key:"header",value:function(){return"Test,Date,Lang,Version,Count,MsgPayload,Bytes,Millis,Async\n"}}]),Cr=function(){return k((function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{msgs:1e5,size:128,subject:"",asyncRequests:!1,pub:!1,sub:!1,req:!1,rep:!1};if(M(this,t),L(this,"nc",void 0),L(this,"callbacks",void 0),L(this,"msgs",void 0),L(this,"size",void 0),L(this,"subject",void 0),L(this,"asyncRequests",void 0),L(this,"pub",void 0),L(this,"sub",void 0),L(this,"req",void 0),L(this,"rep",void 0),L(this,"perf",void 0),L(this,"payload",void 0),this.nc=e,this.callbacks=r.callbacks||!1,this.msgs=r.msgs||0,this.size=r.size||0,this.subject=r.subject||U.next(),this.asyncRequests=r.asyncRequests||!1,this.pub=r.pub||!1,this.sub=r.sub||!1,this.req=r.req||!1,this.rep=r.rep||!1,this.perf=new ct,this.payload=this.size?new Uint8Array(this.size):A,!(this.pub||this.sub||this.req||this.rep))throw new Error("no bench option selected")}),[{key:"run",value:(r=m(l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.nc.closed().then((function(t){if(t)throw new V("bench closed with an error: ".concat(t.message),q.Unknown,t)})),!this.callbacks){t.next=6;break}return t.next=4,this.runCallbacks();case 4:t.next=8;break;case 6:return t.next=8,this.runAsync();case 8:return t.abrupt("return",this.processMetrics());case 9:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"processMetrics",value:function(){var t=this.nc.protocol.transport,e=t.lang,r=t.version;this.pub&&this.sub&&this.perf.measure("pubsub","pubStart","subStop"),this.req&&this.rep&&this.perf.measure("reqrep","reqStart","reqStop");var n=this.perf.getEntries(),i=n.find((function(t){return"pubsub"===t.name})),s=n.find((function(t){return"reqrep"===t.name})),a=n.find((function(t){return"req"===t.name})),o=n.find((function(t){return"rep"===t.name})),u=n.find((function(t){return"pub"===t.name})),h=n.find((function(t){return"sub"===t.name})),c=this.nc.stats(),d=[];if(i){var l=i.name,f=i.duration,m=new Ir(l,f);m.msgs=2*this.msgs,m.bytes=c.inBytes+c.outBytes,m.lang=e,m.version=r,m.payload=this.payload.length,d.push(m)}if(s){var p=s.name,_=s.duration,y=new Ir(p,_);y.msgs=2*this.msgs,y.bytes=c.inBytes+c.outBytes,y.lang=e,y.version=r,y.payload=this.payload.length,d.push(y)}if(u){var v=u.name,g=u.duration,b=new Ir(v,g);b.msgs=this.msgs,b.bytes=c.outBytes,b.lang=e,b.version=r,b.payload=this.payload.length,d.push(b)}if(h){var M=h.name,w=h.duration,k=new Ir(M,w);k.msgs=this.msgs,k.bytes=c.inBytes,k.lang=e,k.version=r,k.payload=this.payload.length,d.push(k)}if(o){var L=o.name,S=o.duration,x=new Ir(L,S);x.msgs=this.msgs,x.bytes=c.inBytes+c.outBytes,x.lang=e,x.version=r,x.payload=this.payload.length,d.push(x)}if(a){var Y=a.name,T=a.duration,D=new Ir(Y,T);D.msgs=this.msgs,D.bytes=c.inBytes+c.outBytes,D.lang=e,D.version=r,D.payload=this.payload.length,d.push(D)}return d}},{key:"runCallbacks",value:(e=m(l().mark((function t(){var e,r,n,i,s,a,o,u=this;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=[],this.sub&&(r=ut(),e.push(r),n=0,this.nc.subscribe(this.subject,{max:this.msgs,callback:function(){1==++n&&u.perf.mark("subStart"),n===u.msgs&&(u.perf.mark("subStop"),u.perf.measure("sub","subStart","subStop"),r.resolve())}})),this.rep&&(i=ut(),e.push(i),s=0,this.nc.subscribe(this.subject,{max:this.msgs,callback:function(t,e){e.respond(u.payload),1==++s&&u.perf.mark("repStart"),s===u.msgs&&(u.perf.mark("repStop"),u.perf.measure("rep","repStart","repStop"),i.resolve())}})),this.pub&&(a=m(l().mark((function t(){var e;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(u.perf.mark("pubStart"),e=0;e<u.msgs;e++)u.nc.publish(u.subject,u.payload);return t.next=4,u.nc.flush();case 4:u.perf.mark("pubStop"),u.perf.measure("pub","pubStart","pubStop");case 6:case"end":return t.stop()}}),t)})))(),e.push(a)),this.req&&(o=m(l().mark((function t(){var e,r,n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!u.asyncRequests){t.next=10;break}for(u.perf.mark("reqStart"),e=[],r=0;r<u.msgs;r++)e.push(u.nc.request(u.subject,u.payload,{timeout:2e4}));return t.next=6,Promise.all(e);case 6:u.perf.mark("reqStop"),u.perf.measure("req","reqStart","reqStop"),t.next=20;break;case 10:u.perf.mark("reqStart"),n=0;case 12:if(!(n<u.msgs)){t.next=18;break}return t.next=15,u.nc.request(u.subject);case 15:n++,t.next=12;break;case 18:u.perf.mark("reqStop"),u.perf.measure("req","reqStart","reqStop");case 20:case"end":return t.stop()}}),t)})))(),e.push(o)),t.next=7,Promise.all(e);case 7:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"runAsync",value:(t=m(l().mark((function t(){var e,r,n,i,s,a,o,u,h,c=this;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=[],this.rep&&(r=!1,n=this.nc.subscribe(this.subject,{max:this.msgs}),i=m(l().mark((function t(){var e,i,s,a,o,u;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=!1,i=!1,t.prev=2,a=x(n);case 4:return t.next=6,a.next();case 6:if(!(e=!(o=t.sent).done)){t.next=13;break}u=o.value,r||(c.perf.mark("repStart"),r=!0),u.respond(c.payload);case 10:e=!1,t.next=4;break;case 13:t.next=19;break;case 15:t.prev=15,t.t0=t.catch(2),i=!0,s=t.t0;case 19:if(t.prev=19,t.prev=20,!e||null==a.return){t.next=24;break}return t.next=24,a.return();case 24:if(t.prev=24,!i){t.next=27;break}throw s;case 27:return t.finish(24);case 28:return t.finish(19);case 29:return t.next=31,c.nc.flush();case 31:c.perf.mark("repStop"),c.perf.measure("rep","repStart","repStop");case 33:case"end":return t.stop()}}),t,null,[[2,15,19,29],[20,,24,28]])})))(),e.push(i)),this.sub&&(s=!1,a=this.nc.subscribe(this.subject,{max:this.msgs}),o=m(l().mark((function t(){var e,r,n,i,o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=!1,r=!1,t.prev=2,i=x(a);case 4:return t.next=6,i.next();case 6:if(!(e=!(o=t.sent).done)){t.next=12;break}o.value,s||(c.perf.mark("subStart"),s=!0);case 9:e=!1,t.next=4;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(2),r=!0,n=t.t0;case 18:if(t.prev=18,t.prev=19,!e||null==i.return){t.next=23;break}return t.next=23,i.return();case 23:if(t.prev=23,!r){t.next=26;break}throw n;case 26:return t.finish(23);case 27:return t.finish(18);case 28:c.perf.mark("subStop"),c.perf.measure("sub","subStart","subStop");case 30:case"end":return t.stop()}}),t,null,[[2,14,18,28],[19,,23,27]])})))(),e.push(o)),this.pub&&(u=m(l().mark((function t(){var e;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(c.perf.mark("pubStart"),e=0;e<c.msgs;e++)c.nc.publish(c.subject,c.payload);return t.next=4,c.nc.flush();case 4:c.perf.mark("pubStop"),c.perf.measure("pub","pubStart","pubStop");case 6:case"end":return t.stop()}}),t)})))(),e.push(u)),this.req&&(h=m(l().mark((function t(){var e,r,n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!c.asyncRequests){t.next=10;break}for(c.perf.mark("reqStart"),e=[],r=0;r<c.msgs;r++)e.push(c.nc.request(c.subject,c.payload,{timeout:2e4}));return t.next=6,Promise.all(e);case 6:c.perf.mark("reqStop"),c.perf.measure("req","reqStart","reqStop"),t.next=20;break;case 10:c.perf.mark("reqStart"),n=0;case 12:if(!(n<c.msgs)){t.next=18;break}return t.next=15,c.nc.request(c.subject);case 15:n++,t.next=12;break;case 18:c.perf.mark("reqStop"),c.perf.measure("req","reqStart","reqStop");case 20:case"end":return t.stop()}}),t)})))(),e.push(h)),t.next=7,Promise.all(e);case 7:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})}]);var t,e,r}(),Nr="KV-Operation",Br=/^[-/=.\w]+$/,qr=/^[-/=.>*\w]+$/,Fr=/^[-\w]+$/;function Ur(t){if(t.startsWith(".")||t.endsWith(".")||!Br.test(t))throw new Error("invalid key: ".concat(t))}function zr(t){if(t.startsWith(".")||t.endsWith(".")||!qr.test(t))throw new Error("invalid key: ".concat(t))}function Wr(t){if(t.startsWith(".")||t.endsWith("."))throw new Error("invalid key: ".concat(t));for(var e=t.split("."),r=!1,n=0;n<e.length;n++)switch(e[n]){case"*":r=!0;break;case">":if(n!==e.length-1)throw new Error("invalid key: ".concat(t));r=!0}return r}function Jr(t){if(!Fr.test(t))throw new Error("invalid bucket name: ".concat(t))}!function(t){t.MsgIdHdr="Nats-Msg-Id",t.ExpectedStreamHdr="Nats-Expected-Stream",t.ExpectedLastSeqHdr="Nats-Expected-Last-Sequence",t.ExpectedLastMsgIdHdr="Nats-Expected-Last-Msg-Id",t.ExpectedLastSubjectSequenceHdr="Nats-Expected-Last-Subject-Sequence"}(Lr||(Lr={}));var Gr,Kr,Vr,Zr=function(){function t(e,r,n){M(this,t),L(this,"js",void 0),L(this,"jsm",void 0),L(this,"stream",void 0),L(this,"bucket",void 0),L(this,"direct",void 0),L(this,"codec",void 0),L(this,"prefix",void 0),L(this,"editPrefix",void 0),L(this,"useJsPrefix",void 0),L(this,"_prefixLen",void 0),L(this,"validateKey",Ur),L(this,"validateSearchKey",zr),L(this,"hasWildcards",Wr),Jr(e),this.js=r,this.jsm=n,this.bucket=e,this.prefix="$KV",this.editPrefix="",this.useJsPrefix=!1,this._prefixLen=0}return k(t,[{key:"init",value:(_=m(l().mark((function t(){var e,r,n,i,s,a,o,u,h,c,d,f,m,p,_,y,v=this,g=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=g.length>0&&void 0!==g[0]?g[0]:{},i=Object.assign({replicas:1,history:1,timeout:2e3,max_bytes:-1,maxValueSize:-1,codec:{key:{encode:function(t){return t},decode:function(t){return t}},value:{encode:function(t){return t},decode:function(t){return t}}},storage:Ot.File},n),this.codec=i.codec,s={},this.stream=s.name=null!==(e=n.streamName)&&void 0!==e?e:this.bucketName(),s.retention=jt.Limits,s.max_msgs_per_subject=i.history,i.maxBucketSize&&(i.max_bytes=i.maxBucketSize),i.max_bytes&&(s.max_bytes=i.max_bytes),s.max_msg_size=i.maxValueSize,s.storage=i.storage,(a=null!==(r=n.placementCluster)&&void 0!==r?r:"")&&(n.placement={},n.placement.cluster=a,n.placement.tags=[]),n.placement&&(s.placement=n.placement),n.republish&&(s.republish=n.republish),n.description&&(s.description=n.description),n.mirror?((o=Object.assign({},n.mirror)).name.startsWith(Jt)||(o.name="".concat(Jt).concat(o.name)),s.mirror=o,s.mirror_direct=!0):n.sources?(u=n.sources.map((function(t){var e=Object.assign({},t),r=e.name.startsWith(Jt)?e.name.substring(3):e.name;return e.name.startsWith(Jt)||(e.name="".concat(Jt).concat(e.name)),t.external||r===v.bucket||(e.subject_transforms=[{src:"$KV.".concat(r,".>"),dest:"$KV.".concat(v.bucket,".>")}]),e})),s.sources=u,s.subjects=[this.subjectForBucket()]):s.subjects=[this.subjectForBucket()],n.metadata&&(s.metadata=n.metadata),"boolean"==typeof n.compression&&(s.compression=n.compression?It.S2:It.None),h=this.js.nc,c=h.getServerVersion(),d=!!c&&ye(c,_e("2.7.2"))>=0,s.discard=d?At.New:At.Old,f=h.features.get(he.JS_ALLOW_DIRECT),m=f.ok,p=f.min,m||!0!==n.allow_direct){t.next=27;break}return _=c?"".concat(c.major,".").concat(c.minor,".").concat(c.micro):"unknown",t.abrupt("return",Promise.reject(new Error("allow_direct is not available on server version ".concat(_," - requires ").concat(p))));case 27:return n.allow_direct="boolean"==typeof n.allow_direct?n.allow_direct:m,s.allow_direct=n.allow_direct,this.direct=s.allow_direct,s.num_replicas=i.replicas,i.ttl&&(s.max_age=lt(i.ttl)),s.allow_rollup_hdrs=!0,t.prev=33,t.next=36,this.jsm.streams.info(s.name);case 36:(y=t.sent).config.allow_direct||!0!==this.direct||(this.direct=!1),t.next=49;break;case 40:if(t.prev=40,t.t0=t.catch(33),"stream not found"!==t.t0.message){t.next=48;break}return t.next=45,this.jsm.streams.add(s);case 45:y=t.sent,t.next=49;break;case 48:throw t.t0;case 49:this.initializePrefixes(y);case 50:case"end":return t.stop()}}),t,this,[[33,40]])}))),function(){return _.apply(this,arguments)})},{key:"initializePrefixes",value:function(t){this._prefixLen=0,this.prefix="$KV.".concat(this.bucket),this.useJsPrefix="$JS.API"!==this.js.apiPrefix;var e=t.config.mirror;if(e){var r=e.name;if(r.startsWith(Jt)&&(r=r.substring(3)),e.external&&""!==e.external.api){var n=e.name.substring(3);this.useJsPrefix=!1,this.prefix="$KV.".concat(n),this.editPrefix="".concat(e.external.api,".$KV.").concat(r)}else this.editPrefix=this.prefix}}},{key:"bucketName",value:function(){var t;return null!==(t=this.stream)&&void 0!==t?t:"".concat(Jt).concat(this.bucket)}},{key:"subjectForBucket",value:function(){return"".concat(this.prefix,".").concat(this.bucket,".>")}},{key:"subjectForKey",value:function(t){var e=[];return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(this.useJsPrefix&&e.push(this.js.apiPrefix),""!==this.editPrefix?e.push(this.editPrefix):e.push(this.prefix)):this.prefix&&e.push(this.prefix),e.push(t),e.join(".")}},{key:"fullKeyName",value:function(t){return""!==this.prefix?"".concat(this.prefix,".").concat(t):"".concat("$KV",".").concat(this.bucket,".").concat(t)}},{key:"prefixLen",get:function(){return 0===this._prefixLen&&(this._prefixLen=this.prefix.length+1),this._prefixLen}},{key:"encodeKey",value:function(t){var e,r=[],n=h(t.split("."));try{for(n.s();!(e=n.n()).done;){var i=e.value;switch(i){case">":case"*":r.push(i);break;default:r.push(this.codec.key.encode(i))}}}catch(t){n.e(t)}finally{n.f()}return r.join(".")}},{key:"decodeKey",value:function(t){var e,r=[],n=h(t.split("."));try{for(n.s();!(e=n.n()).done;){var i=e.value;switch(i){case">":case"*":r.push(i);break;default:r.push(this.codec.key.decode(i))}}}catch(t){n.e(t)}finally{n.f()}return r.join(".")}},{key:"close",value:function(){return Promise.resolve()}},{key:"dataLen",value:function(t,e){var r=e&&e.get(Bt.MessageSizeHdr)||"";return""!==r?parseInt(r,10):t.length}},{key:"smToEntry",value:function(t){return new Dn(this.bucket,this.prefixLen,t)}},{key:"jmToEntry",value:function(t){var e=this.decodeKey(t.subject.substring(this.prefixLen));return new En(this.bucket,e,t)}},{key:"create",value:(p=m(l().mark((function t(e,r){var n,i,s,a,o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.put(e,r,{previousSeq:0});case 3:return i=t.sent,t.abrupt("return",Promise.resolve(i));case 7:if(t.prev=7,t.t0=t.catch(0),n=t.t0,10071===(null===t.t0||void 0===t.t0||null===(s=t.t0.api_error)||void 0===s?void 0:s.err_code)){t.next=12;break}return t.abrupt("return",Promise.reject(t.t0));case 12:return a=0,t.prev=13,t.next=16,this.get(e);case 16:if("DEL"!==(null==(o=t.sent)?void 0:o.operation)&&"PURGE"!==(null==o?void 0:o.operation)){t.next=22;break}return a=null!==o?o.revision:0,t.abrupt("return",this.update(e,r,a));case 22:return t.abrupt("return",Promise.reject(n));case 23:t.next=28;break;case 25:return t.prev=25,t.t1=t.catch(13),t.abrupt("return",Promise.reject(t.t1));case 28:case"end":return t.stop()}}),t,this,[[0,7],[13,25]])}))),function(t,e){return p.apply(this,arguments)})},{key:"update",value:function(t,e,r){if(r<=0)throw new Error("version must be greater than 0");return this.put(t,e,{previousSeq:r})}},{key:"put",value:(f=m(l().mark((function t(e,r){var n,i,s,a,o,u,h,c,d=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=d.length>2&&void 0!==d[2]?d[2]:{},i=this.encodeKey(e),this.validateKey(i),s={},void 0!==n.previousSeq&&(a=pt(),s.headers=a,a.set(Lr.ExpectedLastSubjectSequenceHdr,"".concat(n.previousSeq))),t.prev=5,t.next=8,this.js.publish(this.subjectForKey(i,!0),r,s);case 8:return o=t.sent,t.abrupt("return",o.seq);case 12:if(t.prev=12,t.t0=t.catch(5),!(u=t.t0).isJetStreamError()){t.next=19;break}return u.message=null===(h=u.api_error)||void 0===h?void 0:h.description,u.code="".concat(null===(c=u.api_error)||void 0===c?void 0:c.code),t.abrupt("return",Promise.reject(u));case 19:return t.abrupt("return",Promise.reject(t.t0));case 20:case"end":return t.stop()}}),t,this,[[5,12]])}))),function(t,e){return f.apply(this,arguments)})},{key:"get",value:(d=m(l().mark((function t(e,r){var n,i,s,a,o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.encodeKey(e),this.validateKey(n),i={last_by_subj:this.subjectForKey(n)},r&&r.revision>0&&(i={seq:r.revision}),t.prev=4,!this.direct){t.next=12;break}return a=this.jsm.direct,t.next=9,a.getMessage(this.bucketName(),i);case 9:s=t.sent,t.next=15;break;case 12:return t.next=14,this.jsm.streams.getMessage(this.bucketName(),i);case 14:s=t.sent;case 15:if((o=this.smToEntry(s)).key===n){t.next=18;break}return t.abrupt("return",null);case 18:return t.abrupt("return",o);case 21:if(t.prev=21,t.t0=t.catch(4),t.t0.code!==q.JetStream404NoMessages){t.next=25;break}return t.abrupt("return",null);case 25:throw t.t0;case 26:case"end":return t.stop()}}),t,this,[[4,21]])}))),function(t,e){return d.apply(this,arguments)})},{key:"purge",value:function(t,e){return this._deleteOrPurge(t,"PURGE",e)}},{key:"delete",value:function(t,e){return this._deleteOrPurge(t,"DEL",e)}},{key:"purgeDeletes",value:(c=m(l().mark((function t(){var e,r,n,i,s,a,o,u=this,h=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=h.length>0&&void 0!==h[0]?h[0]:18e5,r=ut(),n=[],t.next=5,this.watch({key:">",initializedFn:function(){r.resolve()}});case 5:return i=t.sent,m(l().mark((function t(){var e,r,s,a,o,u;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=!1,r=!1,t.prev=2,a=x(i);case 4:return t.next=6,a.next();case 6:if(!(e=!(o=t.sent).done)){t.next=12;break}"DEL"!==(u=o.value).operation&&"PURGE"!==u.operation||n.push(u);case 9:e=!1,t.next=4;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(2),r=!0,s=t.t0;case 18:if(t.prev=18,t.prev=19,!e||null==a.return){t.next=23;break}return t.next=23,a.return();case 23:if(t.prev=23,!r){t.next=26;break}throw s;case 26:return t.finish(23);case 27:return t.finish(18);case 28:case"end":return t.stop()}}),t,null,[[2,14,18,28],[19,,23,27]])})))().then(),t.next=9,r;case 9:return i.stop(),s=Date.now()-e,a=n.map((function(t){var e=u.subjectForKey(t.key);return t.created.getTime()>=s?u.jsm.streams.purge(u.stream,{filter:e,keep:1}):u.jsm.streams.purge(u.stream,{filter:e,keep:0})})),t.next=14,Promise.all(a);case 14:return(o=t.sent).unshift({success:!0,purged:0}),t.abrupt("return",o.reduce((function(t,e){return t.purged+=e.purged,t})));case 17:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)})},{key:"_deleteOrPurge",value:(u=m(l().mark((function t(e,r,n){var i,s,a,o,u,h,c,d;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.hasWildcards(e)){t.next=2;break}return t.abrupt("return",this._doDeleteOrPurge(e,r,n));case 2:return t.next=4,this.keys(e);case 4:i=t.sent,s=[],a=!1,o=!1,t.prev=8,h=x(i);case 10:return t.next=12,h.next();case 12:if(!(a=!(c=t.sent).done)){t.next=22;break}if(d=c.value,s.push(this._doDeleteOrPurge(d,r)),100!==s.length){t.next=19;break}return t.next=18,Promise.all(s);case 18:s.length=0;case 19:a=!1,t.next=10;break;case 22:t.next=28;break;case 24:t.prev=24,t.t0=t.catch(8),o=!0,u=t.t0;case 28:if(t.prev=28,t.prev=29,!a||null==h.return){t.next=33;break}return t.next=33,h.return();case 33:if(t.prev=33,!o){t.next=36;break}throw u;case 36:return t.finish(33);case 37:return t.finish(28);case 38:if(!(s.length>0)){t.next=41;break}return t.next=41,Promise.all(s);case 41:case"end":return t.stop()}}),t,this,[[8,24,28,38],[29,,33,37]])}))),function(t,e,r){return u.apply(this,arguments)})},{key:"_doDeleteOrPurge",value:(o=m(l().mark((function t(e,r,n){var i,s;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=this.encodeKey(e),this.validateKey(i),(s=pt()).set(Nr,r),"PURGE"===r&&s.set(Bt.RollupHdr,Bt.RollupValueSubject),null!=n&&n.previousSeq&&s.set(Lr.ExpectedLastSubjectSequenceHdr,"".concat(n.previousSeq)),t.next=8,this.js.publish(this.subjectForKey(i,!0),A,{headers:s});case 8:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return o.apply(this,arguments)})},{key:"_buildCC",value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=(Array.isArray(t)?t:[t]).map((function(t){var e=r.encodeKey(t);return r.validateSearchKey(t),r.fullKeyName(e)})),s=Pt.LastPerSubject;e===qt.AllHistory&&(s=Pt.All),e===qt.UpdatesOnly&&(s=Pt.New);var a=void 0;return 1===i.length&&(a=i[0],i=void 0),Object.assign({deliver_policy:s,ack_policy:Rt.None,filter_subjects:i,filter_subject:a,flow_control:!0,idle_heartbeat:lt(5e3)},n)}},{key:"remove",value:function(t){return this.purge(t)}},{key:"history",value:(a=m(l().mark((function t(){var e,r,n,i,s,a,o,u,h,c,d,f,m,p=this,_=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=null!==(e=(r=_.length>0&&void 0!==_[0]?_[0]:{}).key)&&void 0!==e?e:">",i=new zt,(s={}).headers_only=r.headers_only||!1,a=function(){i.stop()},o=0,u=this._buildCC(n,qt.AllHistory,s),h=u.filter_subject,(c=Kt(u)).bindStream(this.stream),c.orderedConsumer(),c.callback((function(t,e){if(t)i.stop(t);else if(e){var r=p.jmToEntry(e);i.push(r),i.received++,(a&&o>0&&i.received>=o||0===e.info.pending)&&(i.push(a),a=void 0)}})),t.next=15,this.js.subscribe(h,c);case 15:if(d=t.sent,a)if(f=d.info.last,0===(m=f.num_pending+f.delivered.consumer_seq)||i.received>=m)try{a()}catch(t){i.stop(t)}finally{a=void 0}else o=m;return i._data=d,i.iterClosed.then((function(){d.unsubscribe()})),d.closed.then((function(){i.stop()})).catch((function(t){i.stop(t)})),t.abrupt("return",i);case 21:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)})},{key:"canSetWatcherName",value:function(){return this.js.nc.features.get(he.JS_NEW_CONSUMER_CREATE_API).ok}},{key:"watch",value:(s=m(l().mark((function t(){var e,r,n,i,s,a,o,u,h,c,d,f,m,p,_,y=this,v=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=null!==(e=(r=v.length>0&&void 0!==v[0]?v[0]:{}).key)&&void 0!==e?e:">",i=new zt,(s={}).headers_only=r.headers_only||!1,a=qt.LastValue,r.include===qt.AllHistory?a=qt.AllHistory:r.include===qt.UpdatesOnly&&(a=qt.UpdatesOnly),o=!0===r.ignoreDeletes,u=r.initializedFn,h=0,c=this._buildCC(n,a,s),d=c.filter_subject,f=Kt(c),this.canSetWatcherName()&&f.consumerName(U.next()),f.bindStream(this.stream),r.resumeFromRevision&&r.resumeFromRevision>0&&f.startSequence(r.resumeFromRevision),f.orderedConsumer(),f.callback((function(t,e){if(t)i.stop(t);else if(e){var r=y.jmToEntry(e);if(o&&"DEL"===r.operation)return;i.push(r),i.received++,u&&(h>0&&i.received>=h||0===e.info.pending)&&(i.push(u),u=void 0)}})),t.next=20,this.js.subscribe(d,f);case 20:if(m=t.sent,u)if(p=m.info.last,0===(_=p.num_pending+p.delivered.consumer_seq)||i.received>=_)try{u()}catch(t){i.stop(t)}finally{u=void 0}else h=_;return i._data=m,i.iterClosed.then((function(){m.unsubscribe()})),m.closed.then((function(){i.stop()})).catch((function(t){i.stop(t)})),t.abrupt("return",i);case 26:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"keys",value:(i=m(l().mark((function t(){var e,r,n,i,s,a,o=this,u=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=u.length>0&&void 0!==u[0]?u[0]:">",r=new zt,n=this._buildCC(e,qt.LastValue,{headers_only:!0}),i=Array.isArray(e)?">":n.filter_subject,(s=Kt(n)).bindStream(this.stream),s.orderedConsumer(),t.next=9,this.js.subscribe(i,s);case 9:return a=t.sent,m(l().mark((function t(){var e,n,i,s,u,h,c,d,f;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=!1,n=!1,t.prev=2,s=x(a);case 4:return t.next=6,s.next();case 6:if(!(e=!(u=t.sent).done)){t.next=14;break}h=u.value,"DEL"!==(d=null===(c=h.headers)||void 0===c?void 0:c.get(Nr))&&"PURGE"!==d&&(f=o.decodeKey(h.subject.substring(o.prefixLen)),r.push(f)),0===h.info.pending&&a.unsubscribe();case 11:e=!1,t.next=4;break;case 14:t.next=20;break;case 16:t.prev=16,t.t0=t.catch(2),n=!0,i=t.t0;case 20:if(t.prev=20,t.prev=21,!e||null==s.return){t.next=25;break}return t.next=25,s.return();case 25:if(t.prev=25,!n){t.next=28;break}throw i;case 28:return t.finish(25);case 29:return t.finish(20);case 30:case"end":return t.stop()}}),t,null,[[2,16,20,30],[21,,25,29]])})))().then((function(){r.stop()})).catch((function(t){r.stop(t)})),0===a.info.last.num_pending&&a.unsubscribe(),t.abrupt("return",r);case 14:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"purgeBucket",value:function(t){return this.jsm.streams.purge(this.bucketName(),t)}},{key:"destroy",value:function(){return this.jsm.streams.delete(this.bucketName())}},{key:"status",value:(n=m(l().mark((function t(){var e,r,n,i,s,a;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.js.nc,i=null!==(e=null===(r=n.info)||void 0===r?void 0:r.cluster)&&void 0!==e?e:"",s=this.bucketName(),t.next=5,this.jsm.streams.info(s);case 5:return a=t.sent,t.abrupt("return",new $r(a,i));case 7:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})}],[{key:"create",value:(r=m(l().mark((function e(r,n){var i,s,a,o=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=o.length>2&&void 0!==o[2]?o[2]:{},Jr(n),e.next=4,r.jetstreamManager();case 4:return s=e.sent,a=new t(n,r,s),e.next=8,a.init(i);case 8:return e.abrupt("return",a);case 9:case"end":return e.stop()}}),e)}))),function(t,e){return r.apply(this,arguments)})},{key:"bind",value:(e=m(l().mark((function e(r,n){var i,s,a,o,u,h,c=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=c.length>2&&void 0!==c[2]?c[2]:{},e.next=3,r.jetstreamManager();case 3:return o=e.sent,u={config:{allow_direct:a.allow_direct}},Jr(n),h=new t(n,r,o),u.config.name=null!==(i=a.streamName)&&void 0!==i?i:h.bucketName(),Object.assign(h,u),h.stream=u.config.name,h.codec=a.codec||{key:{encode:function(t){return t},decode:function(t){return t}},value:{encode:function(t){return t},decode:function(t){return t}}},h.direct=null!==(s=u.config.allow_direct)&&void 0!==s&&s,h.initializePrefixes(u),e.abrupt("return",h);case 14:case"end":return e.stop()}}),e)}))),function(t,r){return e.apply(this,arguments)})}]);var e,r,n,i,s,a,o,u,c,d,f,p,_}(),$r=k((function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";M(this,t),L(this,"si",void 0),L(this,"cluster",void 0),this.si=e,this.cluster=r}),[{key:"bucket",get:function(){return this.si.config.name.startsWith(Jt)?this.si.config.name.substring(3):this.si.config.name}},{key:"values",get:function(){return this.si.state.messages}},{key:"history",get:function(){return this.si.config.max_msgs_per_subject}},{key:"ttl",get:function(){return ft(this.si.config.max_age)}},{key:"bucket_location",get:function(){return this.cluster}},{key:"backingStore",get:function(){return this.si.config.storage}},{key:"storage",get:function(){return this.si.config.storage}},{key:"replicas",get:function(){return this.si.config.num_replicas}},{key:"description",get:function(){var t;return null!==(t=this.si.config.description)&&void 0!==t?t:""}},{key:"maxBucketSize",get:function(){return this.si.config.max_bytes}},{key:"maxValueSize",get:function(){return this.si.config.max_msg_size}},{key:"max_bytes",get:function(){return this.si.config.max_bytes}},{key:"placement",get:function(){return this.si.config.placement||{cluster:"",tags:[]}}},{key:"placementCluster",get:function(){var t,e;return null!==(t=null===(e=this.si.config.placement)||void 0===e?void 0:e.cluster)&&void 0!==t?t:""}},{key:"republish",get:function(){var t;return null!==(t=this.si.config.republish)&&void 0!==t?t:{src:"",dest:""}}},{key:"streamInfo",get:function(){return this.si}},{key:"size",get:function(){return this.si.state.bytes}},{key:"metadata",get:function(){var t;return null!==(t=this.si.config.metadata)&&void 0!==t?t:{}}},{key:"compression",get:function(){return!!this.si.config.compression&&this.si.config.compression!==It.None}}]),Xr="OBJ_",Qr="SHA-256=",tn=k((function t(e){M(this,t),L(this,"si",void 0),L(this,"backingStore",void 0),this.si=e,this.backingStore="JetStream"}),[{key:"bucket",get:function(){return(t=this.si.config.name).startsWith(Xr)?t.substring(4):t;var t}},{key:"description",get:function(){var t;return null!==(t=this.si.config.description)&&void 0!==t?t:""}},{key:"ttl",get:function(){return this.si.config.max_age}},{key:"storage",get:function(){return this.si.config.storage}},{key:"replicas",get:function(){return this.si.config.num_replicas}},{key:"sealed",get:function(){return this.si.config.sealed}},{key:"size",get:function(){return this.si.state.bytes}},{key:"streamInfo",get:function(){return this.si}},{key:"metadata",get:function(){return this.si.config.metadata}},{key:"compression",get:function(){return!!this.si.config.compression&&this.si.config.compression!==It.None}}]);function en(t){if(void 0!==t){var e=t.domain;if(void 0===e)return t;var r=Object.assign({},t);if(delete r.domain,""===e)return r;if(r.external)throw new Error("domain and external are both set");return r.external={api:"$JS.".concat(e,".API")},r}}!function(t){t[t.Unset=-1]="Unset",t[t.Consume=0]="Consume",t[t.Fetch=1]="Fetch"}(Gr||(Gr={})),function(t){t.HeartbeatsMissed="heartbeats_missed",t.ConsumerNotFound="consumer_not_found",t.StreamNotFound="stream_not_found",t.ConsumerDeleted="consumer_deleted",t.OrderedConsumerRecreated="ordered_consumer_recreated"}(Kr||(Kr={})),function(t){t.DebugEvent="debug",t.Discard="discard",t.Reset="reset",t.Next="next"}(Vr||(Vr={}));var rn=Uint8Array.of(43,65,67,75),nn=Uint8Array.of(45,78,65,75),sn=Uint8Array.of(43,87,80,73),an=Uint8Array.of(43,78,88,84),on=Uint8Array.of(43,84,69,82,77),un=Uint8Array.of(32);function hn(t){return new Rn(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3)}var cn=function(t){function e(t,r){var n,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];M(this,e),L(n=p(this,e),"consumer",void 0),L(n,"opts",void 0),L(n,"sub",void 0),L(n,"monitor",void 0),L(n,"pending",void 0),L(n,"inbox",void 0),L(n,"refilling",void 0),L(n,"pong",void 0),L(n,"callback",void 0),L(n,"timeout",void 0),L(n,"cleanupHandler",void 0),L(n,"listeners",void 0),L(n,"statusIterator",void 0),L(n,"forOrderedConsumer",void 0),L(n,"resetHandler",void 0),L(n,"abortOnMissingResource",void 0),L(n,"bind",void 0),n.consumer=t;var s=r;return n.opts=n.parseOptions(r,i),n.callback=s.callback||null,n.noIterator="function"==typeof n.callback,n.monitor=null,n.pong=null,n.pending={msgs:0,bytes:0,requests:0},n.refilling=i,n.timeout=null,n.inbox=tt(t.api.nc.options.inboxPrefix),n.listeners=[],n.forOrderedConsumer=!1,n.abortOnMissingResource=!0===s.abort_on_missing_resource,n.bind=!0===s.bind,n.start(),n}return _(e,t),k(e,[{key:"start",value:function(){var t=this,e=this.opts,r=e.max_messages,n=e.max_bytes,i=e.idle_heartbeat,s=e.threshold_bytes,a=e.threshold_messages;this.closed().then((function(e){if(t.cleanupHandler)try{t.cleanupHandler(e)}catch(t){}}));var o=this.sub;o&&o.unsubscribe(),this.sub=this.consumer.api.nc.subscribe(this.inbox,{callback:function(e,i){var o;if(e)t.stop(e);else{if(null===(o=t.monitor)||void 0===o||o.work(),i.subject===t.inbox){var u,h;if(Tt(i))return;var c=null===(u=i.headers)||void 0===u?void 0:u.code,d=(null===(h=i.headers)||void 0===h||null===(h=h.description)||void 0===h?void 0:h.toLowerCase())||"unknown",l=t.parseDiscard(i.headers),f=l.msgsLeft,m=l.bytesLeft;if(f>0||m>0)t.pending.msgs-=f,t.pending.bytes-=m,t.pending.requests--,t.notify(Vr.Discard,{msgsLeft:f,bytesLeft:m});else{if(400===c)return void t.stop(new V(d,"".concat(c)));if(409===c&&"consumer deleted"===d){if(t.notify(Kr.ConsumerDeleted,"".concat(c," ").concat(d)),!t.refilling||t.abortOnMissingResource){var p=new V(d,"".concat(c));return void t.stop(p)}}else t.notify(Vr.DebugEvent,"".concat(c," ").concat(d))}}else t._push(hn(i,t.consumer.api.timeout)),t.received++,t.pending.msgs&&t.pending.msgs--,t.pending.bytes&&(t.pending.bytes-=i.size());if(0===t.pending.msgs&&0===t.pending.bytes&&(t.pending.requests=0),t.refilling){if(r&&t.pending.msgs<=a||n&&t.pending.bytes<=s){var _=t.pullOptions();t.pull(_)}}else 0===t.pending.requests&&t._push((function(){t.stop()}))}}}),this.sub.closed.then((function(){t.sub.draining&&t._push((function(){t.stop()}))})),i&&(this.monitor=new Wt(i,(function(e){return t.notify(Kr.HeartbeatsMissed,e),t.resetPending().then((function(){})).catch((function(){})),!1}),{maxOut:2})),m(l().mark((function e(){var r,n,i,s,a,o,u,h;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.consumer.api.nc.status(),t.statusIterator=n,i=!1,s=!1,e.prev=4,o=x(n);case 6:return e.next=8,o.next();case 8:if(!(i=!(u=e.sent).done)){e.next=20;break}h=u.value,e.t0=h.type,e.next=e.t0===N.Disconnect?13:e.t0===N.Reconnect?15:17;break;case 13:return null===(r=t.monitor)||void 0===r||r.cancel(),e.abrupt("break",17);case 15:return t.resetPending().then((function(e){var r;e&&(null===(r=t.monitor)||void 0===r||r.restart())})).catch((function(){})),e.abrupt("break",17);case 17:i=!1,e.next=6;break;case 20:e.next=26;break;case 22:e.prev=22,e.t1=e.catch(4),s=!0,a=e.t1;case 26:if(e.prev=26,e.prev=27,!i||null==o.return){e.next=31;break}return e.next=31,o.return();case 31:if(e.prev=31,!s){e.next=34;break}throw a;case 34:return e.finish(31);case 35:return e.finish(26);case 36:case"end":return e.stop()}}),e,null,[[4,22,26,36],[27,,31,35]])})))(),this.pull(this.pullOptions())}},{key:"_push",value:function(t){if(this.callback){var r="function"==typeof t?t:null;try{r?r():this.callback(t)}catch(t){this.stop(t)}}else s(e,"push",this,3)([t])}},{key:"notify",value:function(t,e){this.listeners.length>0&&this.listeners.forEach((function(r){r.done||r.push({type:t,data:e})}))}},{key:"resetPending",value:function(){return this.bind?this.resetPendingNoInfo():this.resetPendingWithInfo()}},{key:"resetPendingNoInfo",value:function(){return this.pending.msgs=0,this.pending.bytes=0,this.pending.requests=0,this.pull(this.pullOptions()),Promise.resolve(!0)}},{key:"resetPendingWithInfo",value:(r=m(l().mark((function t(){var e,r,i,s,a,o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=0,r=0,i=dt(),s=0;case 4:if(!this.done){t.next=7;break}return t.abrupt("return",!1);case 7:if(!this.consumer.api.nc.isClosed()){t.next=10;break}return n.error("aborting resetPending - connection is closed"),t.abrupt("return",!1);case 10:return t.prev=10,t.next=13,this.consumer.info();case 13:return e=0,this.pending.msgs=0,this.pending.bytes=0,this.pending.requests=0,this.pull(this.pullOptions()),t.abrupt("return",!0);case 21:if(t.prev=21,t.t0=t.catch(10),"stream not found"!==t.t0.message){t.next=31;break}if(r++,this.notify(Kr.StreamNotFound,r),this.refilling&&!this.abortOnMissingResource){t.next=29;break}return this.stop(t.t0),t.abrupt("return",!1);case 29:t.next=44;break;case 31:if("consumer not found"!==t.t0.message){t.next=42;break}if(e++,this.notify(Kr.ConsumerNotFound,e),this.resetHandler)try{this.resetHandler()}catch(t){}if(this.refilling&&!this.abortOnMissingResource){t.next=38;break}return this.stop(t.t0),t.abrupt("return",!1);case 38:if(!this.forOrderedConsumer){t.next=40;break}return t.abrupt("return",!1);case 40:t.next=44;break;case 42:e=0,r=0;case 44:return a=i.backoff(s),o=at(a),t.next=48,Promise.race([o,this.consumer.api.nc.closed()]);case 48:o.cancel(),s++;case 50:t.next=4;break;case 52:case"end":return t.stop()}}),t,this,[[10,21]])}))),function(){return r.apply(this,arguments)})},{key:"pull",value:function(t){var e,r,n=this;this.pending.bytes+=null!==(e=t.max_bytes)&&void 0!==e?e:0,this.pending.msgs+=null!==(r=t.batch)&&void 0!==r?r:0,this.pending.requests++;var i=this.consumer.api.nc;this._push((function(){i.publish("".concat(n.consumer.api.prefix,".CONSUMER.MSG.NEXT.").concat(n.consumer.stream,".").concat(n.consumer.name),n.consumer.api.jc.encode(t),{reply:n.inbox}),n.notify(Vr.Next,t)}))}},{key:"pullOptions",value:function(){return{batch:this.opts.max_messages-this.pending.msgs,max_bytes:this.opts.max_bytes-this.pending.bytes,idle_heartbeat:lt(this.opts.idle_heartbeat),expires:lt(this.opts.expires)}}},{key:"parseDiscard",value:function(t){var e={msgsLeft:0,bytesLeft:0},r=null==t?void 0:t.get(Bt.PendingMessagesHdr);r&&(e.msgsLeft=parseInt(r));var n=null==t?void 0:t.get(Bt.PendingBytesHdr);return n&&(e.bytesLeft=parseInt(n)),e}},{key:"trackTimeout",value:function(t){this.timeout=t}},{key:"close",value:function(){return this.stop(),this.iterClosed}},{key:"closed",value:function(){return this.iterClosed}},{key:"clearTimers",value:function(){var t,e;null===(t=this.monitor)||void 0===t||t.cancel(),this.monitor=null,null===(e=this.timeout)||void 0===e||e.cancel(),this.timeout=null}},{key:"setCleanupHandler",value:function(t){this.cleanupHandler=t}},{key:"stop",value:function(t){var r,n,i=this;this.done||(null===(r=this.sub)||void 0===r||r.unsubscribe(),this.clearTimers(),null===(n=this.statusIterator)||void 0===n||n.stop(),this._push((function(){s(e,"stop",i,3)([t]),i.listeners.forEach((function(t){t.stop()}))})))}},{key:"parseOptions",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t||{};if(r.max_messages=r.max_messages||0,r.max_bytes=r.max_bytes||0,0!==r.max_messages&&0!==r.max_bytes)throw new Error("only specify one of max_messages or max_bytes");if(0===r.max_messages&&(r.max_messages=100),r.expires=r.expires||3e4,r.expires<1e3)throw new Error("expires should be at least 1000ms");if(r.idle_heartbeat=r.idle_heartbeat||r.expires/2,r.idle_heartbeat=r.idle_heartbeat>3e4?3e4:r.idle_heartbeat,e){var n=Math.round(.75*r.max_messages)||1;r.threshold_messages=r.threshold_messages||n;var i=Math.round(.75*r.max_bytes)||1;r.threshold_bytes=r.threshold_bytes||i}return r}},{key:"status",value:function(){var t=new zt;return this.listeners.push(t),Promise.resolve(t)}}]);var r}(zt),dn=function(t){function e(){var t;return M(this,e),L(t=p(this,e),"src",void 0),L(t,"listeners",void 0),t.listeners=[],t}return _(e,t),k(e,[{key:"setSource",value:function(t){var e=this;this.src&&(this.src.resetHandler=void 0,this.src.setCleanupHandler(),this.src.stop()),this.src=t,this.src.setCleanupHandler((function(t){e.stop(t||void 0)})),m(l().mark((function t(){var r,n,i,s,a,o,u;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.src.status();case 2:r=t.sent,n=!1,i=!1,t.prev=5,a=x(r);case 7:return t.next=9,a.next();case 9:if(!(n=!(o=t.sent).done)){t.next=15;break}u=o.value,e.notify(u.type,u.data);case 12:n=!1,t.next=7;break;case 15:t.next=21;break;case 17:t.prev=17,t.t0=t.catch(5),i=!0,s=t.t0;case 21:if(t.prev=21,t.prev=22,!n||null==a.return){t.next=26;break}return t.next=26,a.return();case 26:if(t.prev=26,!i){t.next=29;break}throw s;case 29:return t.finish(26);case 30:return t.finish(21);case 31:case"end":return t.stop()}}),t,null,[[5,17,21,31],[22,,26,30]])})))().catch((function(){}))}},{key:"notify",value:function(t,e){this.listeners.length>0&&this.listeners.forEach((function(r){r.done||r.push({type:t,data:e})}))}},{key:"stop",value:function(t){var r;this.done||(null===(r=this.src)||void 0===r||r.stop(t),s(e,"stop",this,3)([t]),this.listeners.forEach((function(t){t.stop()})))}},{key:"close",value:function(){return this.stop(),this.iterClosed}},{key:"closed",value:function(){return this.iterClosed}},{key:"status",value:function(){var t=new zt;return this.listeners.push(t),Promise.resolve(t)}}])}(zt),ln=k((function t(e,r){M(this,t),L(this,"api",void 0),L(this,"_info",void 0),L(this,"stream",void 0),L(this,"name",void 0),this.api=e,this._info=r,this.stream=r.stream_name,this.name=r.name}),[{key:"consume",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{max_messages:100,expires:3e4};return Promise.resolve(new cn(this,t,!0))}},{key:"fetch",value:function(){var t=new cn(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{max_messages:100,expires:3e4},!1),e=st(Math.round(1.05*t.opts.expires));return t.closed().catch((function(){})).finally((function(){e.cancel()})),e.catch((function(){t.close().catch()})),t.trackTimeout(e),Promise.resolve(t)}},{key:"next",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{expires:3e4},e=ut(),r=t;r.max_messages=1;var n=new cn(this,r,!1),i=Math.round(1.05*n.opts.expires);i>=6e4&&m(l().mark((function t(){var r,i,s,a,o,u;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=!1,i=!1,t.prev=2,t.t0=x,t.next=6,n.status();case 6:t.t1=t.sent,a=(0,t.t0)(t.t1);case 8:return t.next=10,a.next();case 10:if(!(r=!(o=t.sent).done)){t.next=18;break}if(!((u=o.value).type===Kr.HeartbeatsMissed&&u.data>=2)){t.next=15;break}return e.reject(new Error("consumer missed heartbeats")),t.abrupt("break",18);case 15:r=!1,t.next=8;break;case 18:t.next=24;break;case 20:t.prev=20,t.t2=t.catch(2),i=!0,s=t.t2;case 24:if(t.prev=24,t.prev=25,!r||null==a.return){t.next=29;break}return t.next=29,a.return();case 29:if(t.prev=29,!i){t.next=32;break}throw s;case 32:return t.finish(29);case 33:return t.finish(24);case 34:case"end":return t.stop()}}),t,null,[[2,20,24,34],[25,,29,33]])})))().catch(),m(l().mark((function t(){var r,i,s,a,o,u;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=!1,i=!1,t.prev=2,a=x(n);case 4:return t.next=6,a.next();case 6:if(!(r=!(o=t.sent).done)){t.next=13;break}return u=o.value,e.resolve(u),t.abrupt("break",13);case 10:r=!1,t.next=4;break;case 13:t.next=19;break;case 15:t.prev=15,t.t0=t.catch(2),i=!0,s=t.t0;case 19:if(t.prev=19,t.prev=20,!r||null==a.return){t.next=24;break}return t.next=24,a.return();case 24:if(t.prev=24,!i){t.next=27;break}throw s;case 27:return t.finish(24);case 28:return t.finish(19);case 29:case"end":return t.stop()}}),t,null,[[2,15,19,29],[20,,24,28]])})))().catch((function(){}));var s=st(i);return n.closed().then((function(t){t?e.reject(t):e.resolve(null)})).catch((function(t){e.reject(t)})).finally((function(){s.cancel()})),s.catch((function(t){e.resolve(null),n.close().catch()})),n.trackTimeout(s),e}},{key:"delete",value:function(){var t=this._info,e=t.stream_name,r=t.name;return this.api.delete(e,r)}},{key:"info",value:function(){var t=this;if(arguments.length>0&&void 0!==arguments[0]&&arguments[0])return Promise.resolve(this._info);var e=this._info,r=e.stream_name,n=e.name;return this.api.info(r,n).then((function(e){return t._info=e,t._info}))}}]),fn=function(){return k((function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};M(this,t),L(this,"api",void 0),L(this,"consumerOpts",void 0),L(this,"consumer",void 0),L(this,"opts",void 0),L(this,"cursor",void 0),L(this,"stream",void 0),L(this,"namePrefix",void 0),L(this,"serial",void 0),L(this,"currentConsumer",void 0),L(this,"userCallback",void 0),L(this,"iter",void 0),L(this,"type",void 0),L(this,"startSeq",void 0),this.api=e,this.stream=r,this.cursor={stream_seq:1,deliver_seq:0},this.namePrefix=U.next(),"string"==typeof n.name_prefix&&(St("name_prefix",n.name_prefix),this.namePrefix=n.name_prefix+this.namePrefix),this.serial=0,this.currentConsumer=null,this.userCallback=null,this.iter=null,this.type=Gr.Unset,this.consumerOpts=n,this.startSeq=this.consumerOpts.opt_start_seq||0,this.cursor.stream_seq=this.startSeq>0?this.startSeq-1:0}),[{key:"getConsumerOpts",value:function(t){this.serial++,t=0===t?1:t;var e={name:"".concat(this.namePrefix,"_").concat(this.serial),deliver_policy:Pt.StartSequence,opt_start_seq:t,ack_policy:Rt.None,inactive_threshold:lt(3e5),num_replicas:1};return!0===this.consumerOpts.headers_only&&(e.headers_only=!0),Array.isArray(this.consumerOpts.filterSubjects)&&(e.filter_subjects=this.consumerOpts.filterSubjects),"string"==typeof this.consumerOpts.filterSubjects&&(e.filter_subject=this.consumerOpts.filterSubjects),this.consumerOpts.replay_policy&&(e.replay_policy=this.consumerOpts.replay_policy),t===this.startSeq+1&&(e.deliver_policy=this.consumerOpts.deliver_policy||Pt.StartSequence,this.consumerOpts.deliver_policy!==Pt.LastPerSubject&&this.consumerOpts.deliver_policy!==Pt.New&&this.consumerOpts.deliver_policy!==Pt.Last||(delete e.opt_start_seq,e.deliver_policy=this.consumerOpts.deliver_policy),e.deliver_policy===Pt.LastPerSubject&&void 0===e.filter_subjects&&void 0===e.filter_subject&&(e.filter_subject=">"),this.consumerOpts.opt_start_time&&(delete e.opt_start_seq,e.deliver_policy=Pt.StartTime,e.opt_start_time=this.consumerOpts.opt_start_time),this.consumerOpts.inactive_threshold&&(e.inactive_threshold=lt(this.consumerOpts.inactive_threshold))),e}},{key:"resetConsumer",value:(s=m(l().mark((function t(){var e,r,n,i,s,a,o,u,h,c=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=c.length>0&&void 0!==c[0]?c[0]:0,null===(e=this.consumer)||void 0===e||e.delete().catch((function(){})),r=0===r?1:r,this.cursor.deliver_seq=0,(n=this.getConsumerOpts(r)).max_deliver=1,n.mem_storage=!0,i=dt(),a=0;case 9:return t.prev=9,t.next=12,this.api.add(this.stream,n);case 12:return s=t.sent,null===(o=this.iter)||void 0===o||o.notify(Kr.OrderedConsumerRecreated,s.name),t.abrupt("break",33);case 17:if(t.prev=17,t.t0=t.catch(9),"stream not found"!==t.t0.message){t.next=24;break}if(null===(u=this.iter)||void 0===u||u.notify(Kr.StreamNotFound,a),this.type!==Gr.Fetch&&!0!==this.opts.abort_on_missing_resource){t.next=24;break}return null===(h=this.iter)||void 0===h||h.stop(t.t0),t.abrupt("return",Promise.reject(t.t0));case 24:if(!(0===r&&a>=30)){t.next=28;break}throw t.t0;case 28:return t.next=30,at(i.backoff(a+1));case 30:a++,t.next=9;break;case 33:return t.abrupt("return",s);case 34:case"end":return t.stop()}}),t,this,[[9,17]])}))),function(){return s.apply(this,arguments)})},{key:"internalHandler",value:function(t){var e=this;return function(r){if(e.serial===t){var n,i=r.info.deliverySequence;i===e.cursor.deliver_seq+1?(e.cursor.deliver_seq=i,e.cursor.stream_seq=r.info.streamSequence,e.userCallback?e.userCallback(r):null===(n=e.iter)||void 0===n||n.push(r)):e.notifyOrderedResetAndReset()}}}},{key:"reset",value:(i=m(l().mark((function t(){var e,r,n,i,s,a,o,u,h=this,c=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=c.length>0&&void 0!==c[0]?c[0]:{max_messages:100,expires:3e4},n=(r=(r=c.length>1?c[1]:void 0)||{}).fromFetch||!1,i=r.orderedReset||!1,this.type!==Gr.Fetch||!i){t.next=11;break}return null===(s=this.iter)||void 0===s||s.src.stop(),t.next=9,null===(a=this.iter)||void 0===a?void 0:a.closed();case 9:return this.currentConsumer=null,t.abrupt("return");case 11:if(null!==this.currentConsumer&&!i){t.next=15;break}return t.next=14,this.resetConsumer(this.cursor.stream_seq+1);case 14:this.currentConsumer=t.sent;case 15:if((null===this.iter||n)&&(this.iter=new dn),this.consumer=new ln(this.api,this.currentConsumer),e.callback=this.internalHandler(this.serial),o=null,this.type!==Gr.Fetch||!n){t.next=26;break}return t.next=23,this.consumer.fetch(e);case 23:o=t.sent,t.next=30;break;case 26:if(this.type!==Gr.Consume){t.next=30;break}return t.next=29,this.consumer.consume(e);case 29:o=t.sent;case 30:(u=o).forOrderedConsumer=!0,u.resetHandler=function(){h.notifyOrderedResetAndReset()},this.iter.setSource(u);case 34:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"notifyOrderedResetAndReset",value:function(){var t;null===(t=this.iter)||void 0===t||t.notify(Vr.Reset,""),this.reset(this.opts,{orderedReset:!0})}},{key:"consume",value:(n=m(l().mark((function t(){var e,r,n=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=n.length>0&&void 0!==n[0]?n[0]:{max_messages:100,expires:3e4}).bind){t.next=4;break}return t.abrupt("return",Promise.reject(new Error("bind is not supported")));case 4:if(this.type!==Gr.Fetch){t.next=6;break}return t.abrupt("return",Promise.reject(new Error("ordered consumer initialized as fetch")));case 6:if(this.type!==Gr.Consume){t.next=8;break}return t.abrupt("return",Promise.reject(new Error("ordered consumer doesn't support concurrent consume")));case 8:return(r=e.callback)&&(this.userCallback=r),this.type=Gr.Consume,this.opts=e,t.next=14,this.reset(e);case 14:return t.abrupt("return",this.iter);case 15:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"fetch",value:(r=m(l().mark((function t(){var e,r,n,i=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=i.length>0&&void 0!==i[0]?i[0]:{max_messages:100,expires:3e4}).bind){t.next=4;break}return t.abrupt("return",Promise.reject(new Error("bind is not supported")));case 4:if(this.type!==Gr.Consume){t.next=6;break}return t.abrupt("return",Promise.reject(new Error("ordered consumer already initialized as consume")));case 6:if(!1!==(null===(e=this.iter)||void 0===e?void 0:e.done)){t.next=8;break}return t.abrupt("return",Promise.reject(new Error("ordered consumer doesn't support concurrent fetch")));case 8:return(n=r.callback)&&(this.userCallback=n),this.type=Gr.Fetch,this.opts=r,t.next=14,this.reset(r,{fromFetch:!0});case 14:return t.abrupt("return",this.iter);case 15:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"next",value:(e=m(l().mark((function t(){var e,r,n=this,i=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=i.length>0&&void 0!==i[0]?i[0]:{expires:3e4}).bind){t.next=4;break}return t.abrupt("return",Promise.reject(new Error("bind is not supported")));case 4:return e.max_messages=1,r=ut(),e.callback=function(t){n.userCallback=null,r.resolve(t)},t.next=9,this.fetch(e);case 9:return t.sent.iterClosed.then((function(t){t&&r.reject(t),r.resolve(null)})).catch((function(t){r.reject(t)})),t.abrupt("return",r);case 12:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"delete",value:function(){var t=this;return this.currentConsumer?this.api.delete(this.stream,this.currentConsumer.name).then((function(t){return Promise.resolve(t)})).catch((function(t){return Promise.reject(t)})).finally((function(){t.currentConsumer=null})):Promise.resolve(!1)}},{key:"info",value:(t=m(l().mark((function t(e){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=this.currentConsumer){t.next=5;break}return t.next=3,this.resetConsumer(this.serial);case 3:return this.currentConsumer=t.sent,t.abrupt("return",Promise.resolve(this.currentConsumer));case 5:if(!e||!this.currentConsumer){t.next=7;break}return t.abrupt("return",Promise.resolve(this.currentConsumer));case 7:return t.abrupt("return",this.api.info(this.stream,this.currentConsumer.name));case 8:case"end":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})}]);var t,e,r,n,i,s}(),mn=function(){return k((function t(e){M(this,t),L(this,"api",void 0),L(this,"notified",void 0),this.api=e,this.notified=!1}),[{key:"checkVersion",value:function(){var t=this.api.nc.features.get(he.JS_SIMPLIFICATION);return t.ok?Promise.resolve():Promise.reject(new Error("consumers framework is only supported on servers ".concat(t.min," or better")))}},{key:"get",value:(e=m(l().mark((function t(e){var r,n=this,s=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("object"!==i(r=s.length>1&&void 0!==s[1]?s[1]:{})){t.next=3;break}return t.abrupt("return",this.ordered(e,r));case 3:return t.next=5,this.checkVersion();case 5:return t.abrupt("return",this.api.info(e,r).then((function(t){return void 0!==t.config.deliver_subject?Promise.reject(new Error("push consumer not supported")):new ln(n.api,t)})).catch((function(t){return Promise.reject(t)})));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"ordered",value:(t=m(l().mark((function t(e,r){var n,i,s=this;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.checkVersion();case 2:return n=this.api,i=new _n(n.nc,n.opts),t.abrupt("return",i.info(e).then((function(t){return Promise.resolve(new fn(s.api,e,r))})).catch((function(t){return Promise.reject(t)})));case 5:case"end":return t.stop()}}),t,this)}))),function(e,r){return t.apply(this,arguments)})}]);var t,e}(),pn=function(){function t(e,r){M(this,t),L(this,"api",void 0),L(this,"_info",void 0),this.api=e,this._info=r}return k(t,[{key:"name",get:function(){return this._info.config.name}},{key:"alternates",value:function(){return this.info().then((function(t){return t.alternates?t.alternates:[]}))}},{key:"best",value:(e=m(l().mark((function e(){var r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.info();case 2:if(!this._info.alternates){e.next=9;break}return e.next=5,this.api.info(this._info.alternates[0].name);case 5:return r=e.sent,e.abrupt("return",new t(this.api,r));case 9:return e.abrupt("return",this);case 10:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"info",value:function(){var t=this,e=arguments.length>1?arguments[1]:void 0;return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?Promise.resolve(this._info):this.api.info(this.name,e).then((function(e){return t._info=e,t._info}))}},{key:"getConsumer",value:function(t){return new mn(new ge(this.api.nc,this.api.opts)).get(this.name,t)}},{key:"getMessage",value:function(t){return this.api.getMessage(this.name,t)}},{key:"deleteMessage",value:function(t,e){return this.api.deleteMessage(this.name,t,e)}}]);var e}(),_n=function(t){function e(t,r){return M(this,e),p(this,e,[t,r])}return _(e,t),k(e,[{key:"checkStreamConfigVersions",value:function(t){var e=this.nc;if(t.metadata){var r=e.features.get(he.JS_STREAM_CONSUMER_METADATA),n=r.min;if(!r.ok)throw new Error("stream 'metadata' requires server ".concat(n))}if(t.first_seq){var i=e.features.get(he.JS_STREAM_FIRST_SEQ),s=i.min;if(!i.ok)throw new Error("stream 'first_seq' requires server ".concat(s))}if(t.subject_transform){var a=e.features.get(he.JS_STREAM_SUBJECT_TRANSFORM),o=a.min;if(!a.ok)throw new Error("stream 'subject_transform' requires server ".concat(o))}if(t.compression){var u=e.features.get(he.JS_STREAM_COMPRESSION),h=u.min;if(!u.ok)throw new Error("stream 'compression' requires server ".concat(h))}if(t.consumer_limits){var c=e.features.get(he.JS_DEFAULT_CONSUMER_LIMITS),d=c.min;if(!c.ok)throw new Error("stream 'consumer_limits' requires server ".concat(d))}function l(t,r){var n;if(((null==r||null===(n=r.subject_transforms)||void 0===n?void 0:n.length)||0)>0){var i=e.features.get(he.JS_STREAM_SOURCE_SUBJECT_TRANSFORM),s=i.min;if(!i.ok)throw new Error("".concat(t," 'subject_transforms' requires server ").concat(s))}}t.sources&&t.sources.forEach((function(t){l("stream sources",t)})),t.mirror&&l("stream mirror",t.mirror)}},{key:"add",value:(d=m(l().mark((function t(){var e,r,n,i,s=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=s.length>0&&void 0!==s[0]?s[0]:{},this.checkStreamConfigVersions(r),Lt(r.name),r.mirror=en(r.mirror),r.sources=null===(e=r.sources)||void 0===e?void 0:e.map(en),t.next=7,this._request("".concat(this.prefix,".STREAM.CREATE.").concat(r.name),r);case 7:return n=t.sent,i=n,this._fixInfo(i),t.abrupt("return",i);case 11:case"end":return t.stop()}}),t,this)}))),function(){return d.apply(this,arguments)})},{key:"delete",value:(c=m(l().mark((function t(e){var r,n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Lt(e),t.next=3,this._request("".concat(this.prefix,".STREAM.DELETE.").concat(e));case 3:return r=t.sent,n=r,t.abrupt("return",n.success);case 6:case"end":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"update",value:(h=m(l().mark((function t(e){var r,s,a,o,u,h,c,d=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s=d.length>1&&void 0!==d[1]?d[1]:{},"object"===i(e)&&(e=(a=e).name,s=a,n.trace(" >> streams.update(config: StreamConfig) api changed to streams.update(name: string, config: StreamUpdateConfig) - this shim will be removed - update your code. ")),this.checkStreamConfigVersions(s),Lt(e),t.next=6,this.info(e);case 6:return o=t.sent,(u=Object.assign(o.config,s)).mirror=en(u.mirror),u.sources=null===(r=u.sources)||void 0===r?void 0:r.map(en),t.next=12,this._request("".concat(this.prefix,".STREAM.UPDATE.").concat(e),u);case 12:return h=t.sent,c=h,this._fixInfo(c),t.abrupt("return",c);case 16:case"end":return t.stop()}}),t,this)}))),function(t){return h.apply(this,arguments)})},{key:"info",value:(u=m(l().mark((function t(e,r){var n,i,s,a,o,u,h,c,d,f,m,p,_,y;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Lt(e),n="".concat(this.prefix,".STREAM.INFO.").concat(e),t.next=4,this._request(n,r);case 4:if(i=t.sent,o=(a=s=i).total,u=a.limit,h=s.state.subjects?Object.getOwnPropertyNames(s.state.subjects).length:1,!(o&&o>h)){t.next=32;break}c=[s],d=r||{},f=0;case 12:if(!(o>h)){t.next=26;break}return f++,d.offset=u*f,t.next=17,this._request(n,d);case 17:if(m=t.sent,o=m.total,c.push(m),p=Object.getOwnPropertyNames(m.state.subjects).length,h+=p,!(p<u)){t.next=24;break}return t.abrupt("break",26);case 24:t.next=12;break;case 26:for(_={},y=0;y<c.length;y++)(s=c[y]).state.subjects&&(_=Object.assign(_,s.state.subjects));s.offset=0,s.total=0,s.limit=0,s.state.subjects=_;case 32:return this._fixInfo(s),t.abrupt("return",s);case 34:case"end":return t.stop()}}),t,this)}))),function(t,e){return u.apply(this,arguments)})},{key:"list",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=null!=e&&e.length?{subject:e}:{},n="".concat(this.prefix,".STREAM.LIST");return new pe(n,(function(e){var r=e;return r.streams.forEach((function(e){t._fixInfo(e)})),r.streams}),this,r)}},{key:"_fixInfo",value:function(t){t.config.sealed=t.config.sealed||!1,t.config.deny_delete=t.config.deny_delete||!1,t.config.deny_purge=t.config.deny_purge||!1,t.config.allow_rollup_hdrs=t.config.allow_rollup_hdrs||!1}},{key:"purge",value:(o=m(l().mark((function t(e,r){var n,i,s;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=4;break}if(n=r.keep,i=r.seq,"number"!=typeof n||"number"!=typeof i){t.next=4;break}throw new Error("can specify one of keep or seq");case 4:return Lt(e),t.next=7,this._request("".concat(this.prefix,".STREAM.PURGE.").concat(e),r);case 7:return s=t.sent,t.abrupt("return",s);case 9:case"end":return t.stop()}}),t,this)}))),function(t,e){return o.apply(this,arguments)})},{key:"deleteMessage",value:(a=m(l().mark((function t(e,r){var n,i,s,a,o=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=!(o.length>2&&void 0!==o[2])||o[2],Lt(e),i={seq:r},n||(i.no_erase=!0),t.next=6,this._request("".concat(this.prefix,".STREAM.MSG.DELETE.").concat(e),i);case 6:return s=t.sent,a=s,t.abrupt("return",a.success);case 9:case"end":return t.stop()}}),t,this)}))),function(t,e){return a.apply(this,arguments)})},{key:"getMessage",value:(s=m(l().mark((function t(e,r){var n,i;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Lt(e),t.next=3,this._request("".concat(this.prefix,".STREAM.MSG.GET.").concat(e),r);case 3:return n=t.sent,i=n,t.abrupt("return",new bn(i));case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return s.apply(this,arguments)})},{key:"find",value:function(t){return this.findStream(t)}},{key:"listKvs",value:function(){var t=this,e="".concat(this.prefix,".STREAM.LIST");return new pe(e,(function(e){var r=e.streams.filter((function(t){return t.config.name.startsWith(Jt)}));r.forEach((function(e){t._fixInfo(e)}));var n,i,s="";return r.length&&(s=null!==(n=null===(i=t.nc.info)||void 0===i?void 0:i.cluster)&&void 0!==n?n:""),r.map((function(t){return new $r(t,s)}))}),this)}},{key:"listObjectStores",value:function(){var t=this,e="".concat(this.prefix,".STREAM.LIST");return new pe(e,(function(e){var r=e.streams.filter((function(t){return t.config.name.startsWith(Xr)}));return r.forEach((function(e){t._fixInfo(e)})),r.map((function(t){return new tn(t)}))}),this)}},{key:"names",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=null!=t&&t.length?{subject:t}:{},r="".concat(this.prefix,".STREAM.NAMES");return new pe(r,(function(t){return t.streams}),this,e)}},{key:"get",value:(r=m(l().mark((function t(e){var r;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.info(e);case 2:return r=t.sent,t.abrupt("return",Promise.resolve(new pn(this,r)));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})}]);var r,s,a,o,u,h,c,d}(me),yn=function(t){function e(t,r){return M(this,e),p(this,e,[t,r])}return _(e,t),k(e,[{key:"getMessage",value:(n=m(l().mark((function t(e,r){var n,i,s,a,o,u,h,c;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Lt(e),(i=(n=r).last_by_subj)&&(n=null),s=n?this.jc.encode(n):A,a=this.opts.apiPrefix||"$JS.API",o=i?"".concat(a,".DIRECT.GET.").concat(e,".").concat(i):"".concat(a,".DIRECT.GET.").concat(e),t.next=9,this.nc.request(o,s);case 9:if(u=t.sent,!(h=Dt(u))){t.next=13;break}return t.abrupt("return",Promise.reject(h));case 13:return c=new vn(u),t.abrupt("return",Promise.resolve(c));case 15:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"getBatch",value:(r=m(l().mark((function t(e,r){var n,i,s,a,o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Lt(e),n=this.opts.apiPrefix||"$JS.API",i="".concat(n,".DIRECT.GET.").concat(e),Array.isArray(r.multi_last)&&0!==r.multi_last.length){t.next=5;break}return t.abrupt("return",Promise.reject("multi_last is required"));case 5:return s=JSON.stringify(r,(function(t,e){return"up_to_time"===t&&e instanceof Date?e.toISOString():e})),a=new zt,t.next=9,this.nc.requestMany(i,s,{strategy:W.SentinelMsg});case 9:return o=t.sent,m(l().mark((function t(){var e,r,n,i,s,u,h,c,d,f,m,p,_;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=!1,r=!1,i=!1,s=!1,t.prev=4,h=x(o);case 6:return t.next=8,h.next();case 8:if(!(i=!(c=t.sent).done)){t.next=26;break}if(d=c.value,e){t.next=20;break}if(e=!0,!(0!==(p=(null===(f=d.headers)||void 0===f?void 0:f.code)||0)&&p<200||p>299)){t.next=16;break}return n=null===(_=d.headers)||void 0===_?void 0:_.description.toLowerCase(),t.abrupt("break",26);case 16:if(""!==(null===(m=d.headers)||void 0===m?void 0:m.get("Nats-Num-Pending"))){t.next=20;break}return r=!0,t.abrupt("break",26);case 20:if(0!==d.data.length){t.next=22;break}return t.abrupt("break",26);case 22:a.push(new vn(d));case 23:i=!1,t.next=6;break;case 26:t.next=32;break;case 28:t.prev=28,t.t0=t.catch(4),s=!0,u=t.t0;case 32:if(t.prev=32,t.prev=33,!i||null==h.return){t.next=37;break}return t.next=37,h.return();case 37:if(t.prev=37,!s){t.next=40;break}throw u;case 40:return t.finish(37);case 41:return t.finish(32);case 42:a.push((function(){if(r)throw new Error("batch direct get not supported by the server");if(n)throw new Error("bad request: ".concat(n));a.stop()}));case 43:case"end":return t.stop()}}),t,null,[[4,28,32,42],[33,,37,41]])})))(),t.abrupt("return",Promise.resolve(a));case 12:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})}]);var r,n}(me),vn=k((function t(e){if(M(this,t),L(this,"data",void 0),L(this,"header",void 0),!e.headers)throw new Error("headers expected");this.data=e.data,this.header=e.headers}),[{key:"subject",get:function(){return this.header.last(Ft.Subject)}},{key:"seq",get:function(){var t=this.header.last(Ft.Sequence);return"string"==typeof t?parseInt(t):0}},{key:"time",get:function(){return new Date(Date.parse(this.timestamp))}},{key:"timestamp",get:function(){return this.header.last(Ft.TimeStamp)}},{key:"stream",get:function(){return this.header.last(Ft.Stream)}},{key:"json",value:function(t){return gt(t).decode(this.data)}},{key:"string",value:function(){return P.decode(this.data)}}]);L(vn,"jc",void 0);var gn=function(t){function e(t,r){var n;return M(this,e),L(n=p(this,e,[t,r]),"streams",void 0),L(n,"consumers",void 0),L(n,"direct",void 0),n.streams=new _n(t,r),n.consumers=new ge(t,r),n.direct=new yn(t,r),n}return _(e,t),k(e,[{key:"getAccountInfo",value:(r=m(l().mark((function t(){var e;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._request("".concat(this.prefix,".INFO"));case 2:return e=t.sent,t.abrupt("return",e);case 4:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"jetstream",value:function(){return this.nc.jetstream(this.getOptions())}},{key:"advisories",value:function(){var t=this,e=new zt;return this.nc.subscribe("$JS.EVENT.ADVISORY.>",{callback:function(r,n){if(r)throw r;try{var i=t.parseJsResponse(n),s=i.type.split("."),a=s[s.length-1];e.push({kind:a,data:i})}catch(r){e.stop(r)}}}),e}}]);var r}(me),bn=k((function t(e){M(this,t),L(this,"_header",void 0),L(this,"smr",void 0),this.smr=e}),[{key:"subject",get:function(){return this.smr.message.subject}},{key:"seq",get:function(){return this.smr.message.seq}},{key:"timestamp",get:function(){return this.smr.message.time}},{key:"time",get:function(){return new Date(Date.parse(this.timestamp))}},{key:"data",get:function(){return this.smr.message.data?this._parse(this.smr.message.data):A}},{key:"header",get:function(){if(!this._header)if(this.smr.message.hdrs){var t=this._parse(this.smr.message.hdrs);this._header=yt.decode(t)}else this._header=pt();return this._header}},{key:"_parse",value:function(t){for(var e=atob(t),r=e.length,n=new Uint8Array(r),i=0;i<r;i++)n[i]=e.charCodeAt(i);return n}},{key:"json",value:function(t){return gt(t).decode(this.data)}},{key:"string",value:function(){return P.decode(this.data)}}]);L(bn,"jc",void 0);var Mn=k((function t(e){M(this,t),L(this,"api",void 0),this.api=e}),[{key:"get",value:function(t){var e=this;return this.api.info(t).then((function(t){return new pn(e.api,t)}))}}]),wn=k((function t(e){M(this,t),L(this,"info",void 0),L(this,"hdrs",void 0),this.info=e}),[{key:"name",get:function(){return this.info.name}},{key:"description",get:function(){var t;return null!==(t=this.info.description)&&void 0!==t?t:""}},{key:"headers",get:function(){return this.hdrs||(this.hdrs=yt.fromRecord(this.info.headers||{})),this.hdrs}},{key:"options",get:function(){return this.info.options}},{key:"bucket",get:function(){return this.info.bucket}},{key:"chunks",get:function(){return this.info.chunks}},{key:"deleted",get:function(){var t;return null!==(t=this.info.deleted)&&void 0!==t&&t}},{key:"digest",get:function(){return this.info.digest}},{key:"mtime",get:function(){return this.info.mtime}},{key:"nuid",get:function(){return this.info.nuid}},{key:"size",get:function(){return this.info.size}},{key:"revision",get:function(){return this.info.revision}},{key:"metadata",get:function(){return this.info.metadata||{}}},{key:"isLink",value:function(){var t,e;return void 0!==(null===(t=this.info.options)||void 0===t?void 0:t.link)&&null!==(null===(e=this.info.options)||void 0===e?void 0:e.link)}}]);function kn(t){var e,r={name:t.name,description:null!==(e=t.description)&&void 0!==e?e:"",options:t.options,metadata:t.metadata};if(t.headers){var n=t.headers;r.headers=n.toRecord()}return r}var Ln=function(){function t(e,r,n){M(this,t),L(this,"jsm",void 0),L(this,"js",void 0),L(this,"stream",void 0),L(this,"name",void 0),this.name=e,this.jsm=r,this.js=n}return k(t,[{key:"_checkNotEmpty",value:function(t){return t&&0!==t.length?{name:t}:{name:t,error:new Error("name cannot be empty")}}},{key:"info",value:(y=m(l().mark((function t(e){var r;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.rawInfo(e);case 2:return r=t.sent,t.abrupt("return",r?new wn(r):null);case 4:case"end":return t.stop()}}),t,this)}))),function(t){return y.apply(this,arguments)})},{key:"list",value:(_=m(l().mark((function t(){var e,r,n,i,s,a,o,u;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=[],t.next=3,this.watch({ignoreDeletes:!0,includeHistory:!0});case 3:r=t.sent,n=!1,i=!1,t.prev=6,a=x(r);case 8:return t.next=10,a.next();case 10:if(!(n=!(o=t.sent).done)){t.next=18;break}if(null!==(u=o.value)){t.next=14;break}return t.abrupt("break",18);case 14:e.push(u);case 15:n=!1,t.next=8;break;case 18:t.next=24;break;case 20:t.prev=20,t.t0=t.catch(6),i=!0,s=t.t0;case 24:if(t.prev=24,t.prev=25,!n||null==a.return){t.next=29;break}return t.next=29,a.return();case 29:if(t.prev=29,!i){t.next=32;break}throw s;case 32:return t.finish(29);case 33:return t.finish(24);case 34:return t.abrupt("return",Promise.resolve(e));case 35:case"end":return t.stop()}}),t,this,[[6,20,24,34],[25,,29,33]])}))),function(){return _.apply(this,arguments)})},{key:"rawInfo",value:(p=m(l().mark((function t(e){var r,n,i,s,a,o,u;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=this._checkNotEmpty(e),n=r.name,!(i=r.error)){t.next=3;break}return t.abrupt("return",Promise.reject(i));case 3:return s=this._metaSubject(n),t.prev=4,t.next=7,this.jsm.streams.getMessage(this.stream,{last_by_subj:s});case 7:return a=t.sent,o=gt(),(u=o.decode(a.data)).revision=a.seq,t.abrupt("return",u);case 14:if(t.prev=14,t.t0=t.catch(4),"404"!==t.t0.code){t.next=18;break}return t.abrupt("return",null);case 18:return t.abrupt("return",Promise.reject(t.t0));case 19:case"end":return t.stop()}}),t,this,[[4,14]])}))),function(t){return p.apply(this,arguments)})},{key:"_si",value:(f=m(l().mark((function t(e){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.jsm.streams.info(this.stream,e);case 3:return t.abrupt("return",t.sent);case 6:if(t.prev=6,t.t0=t.catch(0),"404"!==t.t0.code){t.next=11;break}return t.abrupt("return",null);case 11:return t.abrupt("return",Promise.reject(t.t0));case 12:case"end":return t.stop()}}),t,this,[[0,6]])}))),function(t){return f.apply(this,arguments)})},{key:"seal",value:(d=m(l().mark((function t(){var e;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._si();case 2:if(null!==(e=t.sent)){t.next=5;break}return t.abrupt("return",Promise.reject(new Error("object store not found")));case 5:return e.config.sealed=!0,t.next=8,this.jsm.streams.update(this.stream,e.config);case 8:return e=t.sent,t.abrupt("return",Promise.resolve(new tn(e)));case 10:case"end":return t.stop()}}),t,this)}))),function(){return d.apply(this,arguments)})},{key:"status",value:(c=m(l().mark((function t(e){var r;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._si(e);case 2:if(null!==(r=t.sent)){t.next=5;break}return t.abrupt("return",Promise.reject(new Error("object store not found")));case 5:return t.abrupt("return",Promise.resolve(new tn(r)));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"destroy",value:function(){return this.jsm.streams.delete(this.stream)}},{key:"_put",value:(h=m(l().mark((function t(e,r,n){var i,s,a,o,u,h,c,d,f,m,p,_,y,v,g,b,M,w,k,L,S,x,Y,T,D,E,j,A,O,P,R,H;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=this.js.getOptions(),(n=n||{timeout:a.timeout}).timeout=n.timeout||a.timeout,n.previousRevision=null!==(i=n.previousRevision)&&void 0!==i?i:void 0,u=(o=n).timeout,h=o.previousRevision,c=this.js.nc.info,d=(null==c?void 0:c.max_payload)||1024,(e=e||{}).options=e.options||{},f=(f=(null===(s=e.options)||void 0===s?void 0:s.max_chunk_size)||131072)>d?d:f,e.options.max_chunk_size=f,t.next=14,this.info(e.name);case 14:if(m=t.sent,p=this._checkNotEmpty(e.name),_=p.name,!(y=p.error)){t.next=18;break}return t.abrupt("return",Promise.reject(y));case 18:v=U.next(),g=this._chunkSubject(v),b=this._metaSubject(_),M=Object.assign({bucket:this.name,nuid:v,size:0,chunks:0},kn(e)),w=ut(),k=[],L=new Xt,t.prev=25,S=r?r.getReader():null,x=new ce;case 28:if(!S){t.next=35;break}return t.next=32,S.read();case 32:t.t0=t.sent,t.next=36;break;case 35:t.t0={done:!0,value:void 0};case 36:if(Y=t.t0,T=Y.done,D=Y.value,!T){t.next=67;break}return L.size()>0&&(E=L.drain(),x.update(E),M.chunks++,M.size+=E.length,k.push(this.js.publish(g,E,{timeout:u}))),t.next=43,Promise.all(k);case 43:return k.length=0,M.mtime=(new Date).toISOString(),j=x.digest("base64"),A=j.length%3,O=A>0?"=".repeat(A):"",M.digest="".concat(Qr).concat(j).concat(O),M.deleted=!1,P=pt(),"number"==typeof h&&P.set(Lr.ExpectedLastSubjectSequenceHdr,"".concat(h)),P.set(Bt.RollupHdr,Bt.RollupValueSubject),t.next=55,this.js.publish(b,gt().encode(M),{headers:P,timeout:u});case 55:if(R=t.sent,M.revision=R.seq,!m){t.next=65;break}return t.prev=58,t.next=61,this.jsm.streams.purge(this.stream,{filter:"$O.".concat(this.name,".C.").concat(m.nuid)});case 61:t.next=65;break;case 63:t.prev=63,t.t1=t.catch(58);case 65:return w.resolve(new wn(M)),t.abrupt("break",70);case 67:if(D)for(L.fill(D);L.size()>f;)M.chunks++,M.size+=f,H=L.drain(e.options.max_chunk_size),x.update(H),k.push(this.js.publish(g,H,{timeout:u}));t.next=28;break;case 70:t.next=77;break;case 72:return t.prev=72,t.t2=t.catch(25),t.next=76,this.jsm.streams.purge(this.stream,{filter:g});case 76:w.reject(t.t2);case 77:return t.abrupt("return",w);case 78:case"end":return t.stop()}}),t,this,[[25,72],[58,63]])}))),function(t,e,r){return h.apply(this,arguments)})},{key:"putBlob",value:function(t,e,r){return null===e&&(e=new Uint8Array(0)),this.put(t,function(t){return new ReadableStream({pull:function(e){e.enqueue(t),e.close()}})}(e),r)}},{key:"put",value:function(t,e,r){var n;return null!=t&&null!==(n=t.options)&&void 0!==n&&n.link?Promise.reject(new Error("link cannot be set when putting the object in bucket")):this._put(t,e,r)}},{key:"getBlob",value:(u=m(l().mark((function t(e){var r,n,i,s;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=function(){return(n=m(l().mark((function t(e){var r,n,i,s,a;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=new Xt,n=e.getReader();case 2:return t.next=5,n.read();case 5:if(i=t.sent,s=i.done,a=i.value,!s){t.next=10;break}return t.abrupt("return",r.drain());case 10:a&&a.length&&r.fill(a),t.next=2;break;case 13:case"end":return t.stop()}}),t)})))).apply(this,arguments)},r=function(t){return n.apply(this,arguments)},t.next=4,this.get(e);case 4:if(null!==(i=t.sent)){t.next=7;break}return t.abrupt("return",Promise.resolve(null));case 7:return t.next=9,Promise.all([i.error,r(i.data)]);case 9:if(!(s=t.sent)[0]){t.next=14;break}return t.abrupt("return",Promise.reject(s[0]));case 14:return t.abrupt("return",Promise.resolve(s[1]));case 15:case"end":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:"get",value:(o=m(l().mark((function e(r){var n,i,s,a,o,u,h,c,d,f;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.rawInfo(r);case 2:if(null!==(n=e.sent)){e.next=5;break}return e.abrupt("return",Promise.resolve(null));case 5:if(!n.deleted){e.next=7;break}return e.abrupt("return",Promise.resolve(null));case 7:if(!n.options||!n.options.link){e.next=20;break}if(""!==(i=n.options.link.name||"")){e.next=11;break}throw new Error("link is a bucket");case 11:if(n.options.link.bucket===this.name){e.next=17;break}return e.next=14,t.create(this.js,n.options.link.bucket);case 14:e.t0=e.sent,e.next=18;break;case 17:e.t0=this;case 18:return s=e.t0,e.abrupt("return",s.get(i));case 20:if(a=ut(),o={info:new wn(n),error:a},0!==n.size){e.next=26;break}return o.data=new ReadableStream({pull:function(t){t.enqueue(new Uint8Array(0)),t.close()}}),a.resolve(null),e.abrupt("return",Promise.resolve(o));case 26:return(h=Kt()).orderedConsumer(),c=new ce,d="$O.".concat(this.name,".C.").concat(n.nuid),e.next=32,this.js.subscribe(d,h);case 32:return f=e.sent,m(l().mark((function t(){var e,r,i,s,a,o,h,d,m,p;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=!1,r=!1,t.prev=2,s=x(f);case 4:return t.next=6,s.next();case 6:if(!(e=!(a=t.sent).done)){t.next=13;break}(o=a.value).data.length>0&&(c.update(o.data),u.enqueue(o.data)),0===o.info.pending&&(h=c.digest("base64"),d=h.length%3,m=d>0?"=".repeat(d):"",(p="".concat(Qr).concat(h).concat(m))!==n.digest?u.error(new Error("received a corrupt object, digests do not match received: ".concat(n.digest," calculated ").concat(p))):u.close(),f.unsubscribe());case 10:e=!1,t.next=4;break;case 13:t.next=19;break;case 15:t.prev=15,t.t0=t.catch(2),r=!0,i=t.t0;case 19:if(t.prev=19,t.prev=20,!e||null==s.return){t.next=24;break}return t.next=24,s.return();case 24:if(t.prev=24,!r){t.next=27;break}throw i;case 27:return t.finish(24);case 28:return t.finish(19);case 29:case"end":return t.stop()}}),t,null,[[2,15,19,29],[20,,24,28]])})))().then((function(){a.resolve()})).catch((function(t){u.error(t),a.reject(t)})),o.data=new ReadableStream({start:function(t){u=t},cancel:function(){f.unsubscribe()}}),e.abrupt("return",o);case 36:case"end":return e.stop()}}),e,this)}))),function(t){return o.apply(this,arguments)})},{key:"linkStore",value:function(e,r){if(!(r instanceof t))return Promise.reject("bucket required");var n=r,i=this._checkNotEmpty(e),s=i.name,a=i.error;if(a)return Promise.reject(a);var o={name:s,options:{link:{bucket:n.name}}};return this._put(o,null)}},{key:"link",value:(a=m(l().mark((function t(e,r){var n,i,s,a,o,u,h;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this._checkNotEmpty(e),i=n.name,!(s=n.error)){t.next=3;break}return t.abrupt("return",Promise.reject(s));case 3:if(!r.deleted){t.next=5;break}return t.abrupt("return",Promise.reject(new Error("src object is deleted")));case 5:if(!r.isLink()){t.next=7;break}return t.abrupt("return",Promise.reject(new Error("src object is a link")));case 7:return t.next=9,this.rawInfo(e);case 9:if(null===(a=t.sent)||a.deleted){t.next=12;break}return t.abrupt("return",Promise.reject(new Error("an object already exists with that name")));case 12:return o={bucket:r.bucket,name:r.name},u={name:i,bucket:r.bucket,options:{link:o}},t.next=16,this.js.publish(this._metaSubject(e),JSON.stringify(u));case 16:return t.next=18,this.info(e);case 18:return h=t.sent,t.abrupt("return",Promise.resolve(h));case 20:case"end":return t.stop()}}),t,this)}))),function(t,e){return a.apply(this,arguments)})},{key:"delete",value:(s=m(l().mark((function t(e){var r,n,i;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.rawInfo(e);case 2:if(null!==(r=t.sent)){t.next=5;break}return t.abrupt("return",Promise.resolve({purged:0,success:!1}));case 5:return r.deleted=!0,r.size=0,r.chunks=0,r.digest="",n=gt(),(i=pt()).set(Bt.RollupHdr,Bt.RollupValueSubject),t.next=14,this.js.publish(this._metaSubject(r.name),n.encode(r),{headers:i});case 14:return t.abrupt("return",this.jsm.streams.purge(this.stream,{filter:this._chunkSubject(r.nuid)}));case 15:case"end":return t.stop()}}),t,this)}))),function(t){return s.apply(this,arguments)})},{key:"update",value:(i=m(l().mark((function t(e){var r,n,i,s,a,o,u,h,c,d=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=d.length>1&&void 0!==d[1]?d[1]:{},t.next=3,this.rawInfo(e);case 3:if(null!==(i=t.sent)){t.next=6;break}return t.abrupt("return",Promise.reject(new Error("object not found")));case 6:if(!i.deleted){t.next=8;break}return t.abrupt("return",Promise.reject(new Error("cannot update meta for a deleted object")));case 8:if(n.name=null!==(r=n.name)&&void 0!==r?r:i.name,s=this._checkNotEmpty(n.name),a=s.name,!(o=s.error)){t.next=12;break}return t.abrupt("return",Promise.reject(o));case 12:if(e===n.name){t.next=18;break}return t.next=15,this.info(n.name);case 15:if(!(u=t.sent)||u.deleted){t.next=18;break}return t.abrupt("return",Promise.reject(new Error("an object already exists with that name")));case 18:return n.name=a,h=Object.assign({},i,kn(n)),t.next=22,this.js.publish(this._metaSubject(h.name),JSON.stringify(h));case 22:if(c=t.sent,e===n.name){t.next=26;break}return t.next=26,this.jsm.streams.purge(this.stream,{filter:this._metaSubject(e)});case 26:return t.abrupt("return",Promise.resolve(c));case 27:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"watch",value:(n=m(l().mark((function t(){var e,r,n,i,s,a,o,u,h,c=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(n=c.length>0&&void 0!==c[0]?c[0]:{}).includeHistory=null!==(e=n.includeHistory)&&void 0!==e&&e,n.ignoreDeletes=null!==(r=n.ignoreDeletes)&&void 0!==r&&r,i=!1,s=new zt,a=this._metaSubjectAll(),t.prev=6,t.next=9,this.jsm.streams.getMessage(this.stream,{last_by_subj:a});case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(6),"404"===t.t0.code?(s.push(null),i=!0):s.stop(t.t0);case 14:return o=gt(),(u=Kt()).orderedConsumer(),n.includeHistory?u.deliverLastPerSubject():(i=!0,u.deliverNew()),u.callback((function(t,e){if(t)s.stop(t);else if(null!==e){var r,a=o.decode(e.data);a.deleted&&!0===n.ignoreDeletes||s.push(a),0!==(null===(r=e.info)||void 0===r?void 0:r.pending)||i||(i=!0,s.push(null))}})),t.next=21,this.js.subscribe(a,u);case 21:return h=t.sent,s._data=h,s.iterClosed.then((function(){h.unsubscribe()})),h.closed.then((function(){s.stop()})).catch((function(t){s.stop(t)})),t.abrupt("return",s);case 26:case"end":return t.stop()}}),t,this,[[6,11]])}))),function(){return n.apply(this,arguments)})},{key:"_chunkSubject",value:function(t){return"$O.".concat(this.name,".C.").concat(t)}},{key:"_metaSubject",value:function(t){return"$O.".concat(this.name,".M.").concat($t.encode(t))}},{key:"_metaSubjectAll",value:function(){return"$O.".concat(this.name,".M.>")}},{key:"init",value:(r=m(l().mark((function t(){var e,r,n,i,s=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=s.length>0&&void 0!==s[0]?s[0]:{},t.prev=1,this.stream=(Jr(a=this.name),"".concat(Xr).concat(a)),t.next=8;break;case 5:return t.prev=5,t.t0=t.catch(1),t.abrupt("return",Promise.reject(t.t0));case 8:return n=(null==r?void 0:r.ttl)||0,delete r.ttl,(i=Object.assign({max_age:n},r)).name=this.stream,i.num_replicas=null!==(e=r.replicas)&&void 0!==e?e:1,i.allow_direct=!0,i.allow_rollup_hdrs=!0,i.discard=At.New,i.subjects=["$O.".concat(this.name,".C.>"),"$O.".concat(this.name,".M.>")],r.placement&&(i.placement=r.placement),r.metadata&&(i.metadata=r.metadata),"boolean"==typeof r.compression&&(i.compression=r.compression?It.S2:It.None),t.prev=20,t.next=23,this.jsm.streams.info(i.name);case 23:t.next=30;break;case 25:if(t.prev=25,t.t1=t.catch(20),"stream not found"!==t.t1.message){t.next=30;break}return t.next=30,this.jsm.streams.add(i);case 30:case"end":return t.stop()}var a}),t,this,[[1,5],[20,25]])}))),function(){return r.apply(this,arguments)})}],[{key:"create",value:(e=m(l().mark((function e(r,n){var i,s,a,o=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=o.length>2&&void 0!==o[2]?o[2]:{},e.next=3,r.jetstreamManager();case 3:return s=e.sent,a=new t(n,s,r),e.next=7,a.init(i);case 7:return e.abrupt("return",Promise.resolve(a));case 8:case"end":return e.stop()}}),e)}))),function(t,r){return e.apply(this,arguments)})}]);var e,r,n,i,s,a,o,u,h,c,d,f,p,_,y}(),Sn=k((function t(e){M(this,t),L(this,"js",void 0),this.js=e}),[{key:"kv",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.js.nc.features.get(he.JS_KV),n=r.ok,i=r.min;return n?e.bindOnly?Zr.bind(this.js,t,e):Zr.create(this.js,t,e):Promise.reject(new Error("kv is only supported on servers ".concat(i," or better")))}},{key:"os",value:function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("function"!=typeof(null===(e=crypto)||void 0===e||null===(e=e.subtle)||void 0===e?void 0:e.digest))return Promise.reject(new Error("objectstore: unable to calculate hashes - crypto.subtle.digest with sha256 support is required"));var n=this.js.nc.features.get(he.JS_OBJECTSTORE),i=n.ok,s=n.min;return i?Ln.create(this.js,t,r):Promise.reject(new Error("objectstore is only supported on servers ".concat(s," or better")))}}]),xn=function(t){function e(t,r){var n;return M(this,e),L(n=p(this,e,[t,r]),"consumers",void 0),L(n,"streams",void 0),L(n,"consumerAPI",void 0),L(n,"streamAPI",void 0),n.consumerAPI=new ge(t,r),n.streamAPI=new _n(t,r),n.consumers=new mn(n.consumerAPI),n.streams=new Mn(n.streamAPI),n}return _(e,t),k(e,[{key:"jetstreamManager",value:function(t){void 0===t&&(t=this.opts.checkAPI);var e=Object.assign({},this.opts,{checkAPI:t});return this.nc.jetstreamManager(e)}},{key:"apiPrefix",get:function(){return this.prefix}},{key:"views",get:function(){return new Sn(this)}},{key:"publish",value:(o=m(l().mark((function t(e){var r,n,i,s,a,o,u,h,c,d,f,m,p=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=p.length>1&&void 0!==p[1]?p[1]:A,(i=(i=p.length>2?p[2]:void 0)||{}).expect=i.expect||{},s=(null===(r=i)||void 0===r?void 0:r.headers)||pt(),i&&(i.msgID&&s.set(Lr.MsgIdHdr,i.msgID),i.expect.lastMsgID&&s.set(Lr.ExpectedLastMsgIdHdr,i.expect.lastMsgID),i.expect.streamName&&s.set(Lr.ExpectedStreamHdr,i.expect.streamName),"number"==typeof i.expect.lastSequence&&s.set(Lr.ExpectedLastSeqHdr,"".concat(i.expect.lastSequence)),"number"==typeof i.expect.lastSubjectSequence&&s.set(Lr.ExpectedLastSubjectSequenceHdr,"".concat(i.expect.lastSubjectSequence))),a=i.timeout||this.timeout,o={},a&&(o.timeout=a),i&&(o.headers=s),h=(u=i).retries,c=u.retry_delay,h=h||1,c=c||250,f=0;case 14:if(!(f<h)){t.next=34;break}return t.prev=15,t.next=18,this.nc.request(e,n,o);case 18:return d=t.sent,t.abrupt("break",34);case 22:if(t.prev=22,t.t0=t.catch(15),!("503"===t.t0.code&&f+1<h)){t.next=30;break}return t.next=28,at(c);case 28:t.next=31;break;case 30:throw t.t0;case 31:f++,t.next=14;break;case 34:if(""!==(m=this.parseJsResponse(d)).stream){t.next=37;break}throw V.errorForCode(q.JetStreamInvalidAck);case 37:return m.duplicate=!!m.duplicate&&m.duplicate,t.abrupt("return",m);case 39:case"end":return t.stop()}}),t,this,[[15,22]])}))),function(t){return o.apply(this,arguments)})},{key:"pull",value:(a=m(l().mark((function t(e,r){var n,i,s,a,o,u=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=u.length>2&&void 0!==u[2]?u[2]:0,Lt(e),kt(r),i=this.timeout,n>i&&(i=n),n=n<0?0:lt(n),s={batch:1,no_wait:0===n,expires:n},t.next=9,this.nc.request("".concat(this.prefix,".CONSUMER.MSG.NEXT.").concat(e,".").concat(r),this.jc.encode(s),{noMux:!0,timeout:i});case 9:if(a=t.sent,!(o=Dt(a))){t.next=13;break}throw o;case 13:return t.abrupt("return",hn(a,this.timeout));case 14:case"end":return t.stop()}}),t,this)}))),function(t,e){return a.apply(this,arguments)})},{key:"fetch",value:function(t,e){var r,n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Lt(t),kt(e);var s=null,a=(null!==(r=i.max_bytes)&&void 0!==r?r:0)>0,o=0,u=a?i.max_bytes:0,h=null,c={};if(c.batch=i.batch||1,u){var d=this.nc.features.get(he.JS_PULL_MAX_BYTES);if(!d.ok)throw new Error("max_bytes is only supported on servers ".concat(d.min," or better"));c.max_bytes=u}c.no_wait=i.no_wait||!1,c.no_wait&&c.expires&&(c.expires=0);var f=i.expires||0;if(f&&(c.expires=lt(f)),0===f&&!1===c.no_wait)throw new Error("expires or no_wait is required");var p=i.idle_heartbeat||0;p&&(c.idle_heartbeat=lt(p),!0===i.delay_heartbeat&&(c.idle_heartbeat=lt(4*p)));var _=new zt,y=c.batch,v=0;_.protocolFilterFn=function(t){var e;return!Tt(t.msg)||(null===(e=h)||void 0===e||e.work(),!1)},_.dispatchedFn=function(t){if(t){if(a&&(o+=t.data.length),v++,s&&0===t.info.pending)return;(1===_.getPending()&&0===t.info.pending||y===v||u>0&&o>=u)&&_.stop()}};var g=tt(this.nc.options.inboxPrefix),b=this.nc.subscribe(g,{max:i.batch,callback:function(t,e){var r;null===t&&(t=Dt(e)),null!==t?(s&&(s.cancel(),s=null),function(t){return"string"==typeof t.code}(t)?_.stop(null===On(t)?void 0:t):_.stop(t)):(null===(r=h)||void 0===r||r.work(),_.received++,_.push(hn(e,n.timeout)))}});return f&&(s=st(f)).catch((function(){b.isClosed()||(b.drain().catch((function(){})),s=null),h&&h.cancel()})),m(l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{p&&(h=new Wt(p,(function(t){return _.push((function(){_.err=new V("".concat(Mt.IdleHeartbeatMissed,": ").concat(t),q.JetStreamIdleHeartBeat)})),!0})))}catch(t){}return t.next=3,b.closed;case 3:null!==s&&(s.cancel(),s=null),h&&h.cancel(),_.stop();case 6:case"end":return t.stop()}}),t)})))().catch(),this.nc.publish("".concat(this.prefix,".CONSUMER.MSG.NEXT.").concat(t,".").concat(e),this.jc.encode(c),{reply:g}),_}},{key:"pullSubscribe",value:(s=m(l().mark((function t(e){var r,n,i,s,a,o=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:Kt(),t.next=3,this._processOptions(e,r);case 3:if(!(n=t.sent).ordered){t.next=6;break}throw new Error("pull subscribers cannot be be ordered");case 6:if(!n.config.deliver_subject){t.next=8;break}throw new Error("consumer info specifies deliver_subject - pull consumers cannot have deliver_subject set");case 8:if((i=n.config.ack_policy)!==Rt.None&&i!==Rt.All){t.next=11;break}throw new Error("ack policy for pull consumers must be explicit");case 11:return s=this._buildTypedSubscriptionOpts(n),(a=new An(this,n.deliver,s)).info=n,t.prev=14,t.next=17,this._maybeCreateConsumer(n);case 17:t.next=23;break;case 19:throw t.prev=19,t.t0=t.catch(14),a.unsubscribe(),t.t0;case 23:return t.abrupt("return",a);case 24:case"end":return t.stop()}}),t,this,[[14,19]])}))),function(t){return s.apply(this,arguments)})},{key:"subscribe",value:(i=m(l().mark((function t(e){var r,n,i,s,a=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:Kt(),t.next=3,this._processOptions(e,r);case 3:if((n=t.sent).isBind||n.config.deliver_subject){t.next=6;break}throw new Error("push consumer requires deliver_subject");case 6:return i=this._buildTypedSubscriptionOpts(n),(s=new jn(this,n.deliver,i)).info=n,t.prev=9,t.next=12,this._maybeCreateConsumer(n);case 12:t.next=18;break;case 14:throw t.prev=14,t.t0=t.catch(9),s.unsubscribe(),t.t0;case 18:return s._maybeSetupHbMonitoring(),t.abrupt("return",s);case 20:case"end":return t.stop()}}),t,this,[[9,14]])}))),function(t){return i.apply(this,arguments)})},{key:"_processOptions",value:(n=m(l().mark((function t(e){var r,n,i,s,a,o,u,h=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=h.length>1&&void 0!==h[1]?h[1]:Kt(),(n=Vt(r)?r.getOpts():r).isBind=!!Vt(r)&&r.isBind,n.flow_control={heartbeat_count:0,fc_count:0,consumer_restarts:0},!n.ordered){t.next=24;break}if(n.ordered_consumer_sequence={stream_seq:0,delivery_seq:0},n.config.ack_policy===Rt.NotSet||n.config.ack_policy===Rt.None){t.next=8;break}throw new V("ordered consumer: ack_policy can only be set to 'none'",q.ApiError);case 8:if(!(n.config.durable_name&&n.config.durable_name.length>0)){t.next=10;break}throw new V("ordered consumer: durable_name cannot be set",q.ApiError);case 10:if(!(n.config.deliver_subject&&n.config.deliver_subject.length>0)){t.next=12;break}throw new V("ordered consumer: deliver_subject cannot be set",q.ApiError);case 12:if(!(void 0!==n.config.max_deliver&&n.config.max_deliver>1)){t.next=14;break}throw new V("ordered consumer: max_deliver cannot be set",q.ApiError);case 14:if(!(n.config.deliver_group&&n.config.deliver_group.length>0)){t.next=16;break}throw new V("ordered consumer: deliver_group cannot be set",q.ApiError);case 16:n.config.deliver_subject=tt(this.nc.options.inboxPrefix),n.config.ack_policy=Rt.None,n.config.max_deliver=1,n.config.flow_control=!0,n.config.idle_heartbeat=n.config.idle_heartbeat||lt(5e3),n.config.ack_wait=lt(792e5),n.config.mem_storage=!0,n.config.num_replicas=1;case 24:if(n.config.ack_policy===Rt.NotSet&&(n.config.ack_policy=Rt.All),n.api=this,n.config=n.config||{},!n.stream){t.next=31;break}t.t0=n.stream,t.next=34;break;case 31:return t.next=33,this.findStream(e);case 33:t.t0=t.sent;case 34:if(n.stream=t.t0,n.attached=!1,!n.config.durable_name){t.next=64;break}return t.prev=37,t.next=40,this.consumerAPI.info(n.stream,n.config.durable_name);case 40:if(!(i=t.sent)){t.next=58;break}if(!i.config.filter_subject||i.config.filter_subject===e){t.next=44;break}throw new Error("subject does not match consumer");case 44:if(""!==(o=null!==(s=n.config.deliver_group)&&void 0!==s?s:"")||!0!==i.push_bound){t.next=47;break}throw new Error("duplicate subscription");case 47:if(u=null!==(a=i.config.deliver_group)&&void 0!==a?a:"",o===u){t.next=54;break}if(""!==u){t.next=53;break}throw new Error("durable requires no queue group");case 53:throw new Error("durable requires queue group '".concat(u,"'"));case 54:n.last=i,n.config=i.config,n.attached=!0,n.config.durable_name||(n.name=i.name);case 58:t.next=64;break;case 60:if(t.prev=60,t.t1=t.catch(37),"404"===t.t1.code){t.next=64;break}throw t.t1;case 64:return n.attached||void 0!==n.config.filter_subject||void 0!==n.config.filter_subjects||(n.config.filter_subject=e),n.deliver=n.config.deliver_subject||tt(this.nc.options.inboxPrefix),t.abrupt("return",n);case 67:case"end":return t.stop()}}),t,this,[[37,60]])}))),function(t){return n.apply(this,arguments)})},{key:"_buildTypedSubscriptionOpts",value:function(t){var r,n,i={};return i.adapter=(r=void 0===t.callbackFn,n=this.timeout,r?function(t){return function(e,r){if(e)return[e,null];var n=Dt(r);return null!==n?[On(n),null]:[null,hn(r,t)]}}(n):function(t){return function(e,r){return e||(e=Dt(r))?[e,null]:[null,hn(r,t)]}}(n)),i.ingestionFilterFn=e.ingestionFn(t.ordered),i.protocolFilterFn=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t;return!Yt(r.msg)||(e||r.msg.respond(),!1)},t.mack||t.config.ack_policy===Rt.None||(i.dispatchedFn=Pn),t.callbackFn&&(i.callback=t.callbackFn),i.max=t.max||0,i.queue=t.queue,i}},{key:"_maybeCreateConsumer",value:(r=m(l().mark((function t(e){var r;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.attached){t.next=2;break}return t.abrupt("return");case 2:if(!e.isBind){t.next=4;break}throw new Error("unable to bind - durable consumer ".concat(e.config.durable_name," doesn't exist in ").concat(e.stream));case 4:return e.config=Object.assign({deliver_policy:Pt.All,ack_policy:Rt.Explicit,ack_wait:lt(3e4),replay_policy:Ht.Instant},e.config),t.next=7,this.consumerAPI.add(e.stream,e.config);case 7:if(r=t.sent,!Array.isArray(e.config.filter_subjects&&!Array.isArray(r.config.filter_subjects))){t.next=10;break}throw new Error("jetstream server doesn't support consumers with multiple filter subjects");case 10:e.name=r.name,e.config=r.config,e.last=r;case 13:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})}],[{key:"ingestionFn",value:function(t){return function(e,r){var n=r;if(!e)return{ingest:!1,protocol:!1};var i,s=e;if(Dt(s.msg)||null===(i=n.monitor)||void 0===i||i.work(),Tt(s.msg)){var a=!t||n._checkHbOrderConsumer(s.msg);return t||n.info.flow_control.heartbeat_count++,{ingest:a,protocol:!0}}return Yt(s.msg)?(n.info.flow_control.fc_count++,{ingest:!0,protocol:!0}):{ingest:!t||n._checkOrderedConsumer(e),protocol:!1}}}}]);var r,n,i,s,a,o}(me),Yn=function(){function t(e){M(this,t),L(this,"options",void 0),L(this,"protocol",void 0),L(this,"draining",void 0),L(this,"listeners",void 0),L(this,"_services",void 0),this.draining=!1,this.options=function(t){var e="".concat(rt,":").concat(ke());if((t=t||{servers:[e]}).servers=t.servers||[],"string"==typeof t.servers&&(t.servers=[t.servers]),t.servers.length>0&&t.port)throw new V("port and servers options are mutually exclusive",q.InvalidOption);0===t.servers.length&&t.port&&(t.servers=["".concat(rt,":").concat(t.port)]),t.servers&&0===t.servers.length&&(t.servers=[e]);var r=nt({maxPingOut:2,maxReconnectAttempts:10,noRandomize:!1,pedantic:!1,pingInterval:Mr,reconnect:!0,reconnectJitter:100,reconnectJitterTLS:1e3,reconnectTimeWait:2e3,tls:void 0,verbose:!1,waitOnFirstConnect:!1,ignoreAuthErrorAbort:!1},t);if(r.authenticator=wr(r),["reconnectDelayHandler","authenticator"].forEach((function(t){if(r[t]&&"function"!=typeof r[t])throw new V("".concat(t," option should be a function"),q.NotFunction)})),r.reconnectDelayHandler||(r.reconnectDelayHandler=function(){var t=r.tls?r.reconnectJitterTLS:r.reconnectJitter;return t&&(t++,t=Math.floor(Math.random()*t)),r.reconnectTimeWait+t}),r.inboxPrefix)try{tt(r.inboxPrefix)}catch(t){throw new V(t.message,q.ApiError)}if(void 0===r.resolve&&(r.resolve="function"==typeof Se()),r.resolve&&"function"!=typeof Se())throw new V("'resolve' is not supported on this client",q.InvalidOption);return r}(e),this.listeners=[]}return k(t,[{key:"closed",value:function(){return this.protocol.closed}},{key:"close",value:(i=m(l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.protocol.close();case 2:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"_check",value:function(t,e,r){if(this.isClosed())throw V.errorForCode(q.ConnectionClosed);if(e&&this.isDraining())throw V.errorForCode(q.ConnectionDraining);if(r&&this.protocol.noMorePublishing)throw V.errorForCode(q.ConnectionDraining);if(0===(t=t||"").length)throw V.errorForCode(q.BadSubject)}},{key:"publish",value:function(t,e,r){this._check(t,!1,!0),this.protocol.publish(t,e,r)}},{key:"publishMessage",value:function(t){return this.publish(t.subject,t.data,{reply:t.reply,headers:t.headers})}},{key:"respondMessage",value:function(t){return!!t.reply&&(this.publish(t.reply,t.data,{reply:t.reply,headers:t.headers}),!0)}},{key:"subscribe",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._check(t,!0,!1);var r=new Dr(this.protocol,t,e);return this.protocol.subscribe(r),r}},{key:"_resub",value:function(t,e,r){this._check(e,!0,!1);var n=t;n.max=r,r&&(n.max=r+n.received),this.protocol.resub(n,e)}},{key:"requestMany",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{maxWait:1e3,maxMessages:-1},n=!this.protocol.options.noAsyncTraces;try{this._check(t,!0,!0)}catch(t){return Promise.reject(t)}if(r.strategy=r.strategy||W.Timer,r.maxWait=r.maxWait||1e3,r.maxWait<1)return Promise.reject(new V("timeout",q.InvalidOption));var i=new zt;function s(t){i.push((function(){i.stop(t)}))}function a(t,e){t||null===e?s(null===t?void 0:t):i.push(e)}if(r.noMux){var o=n?(new Error).stack:null,u="number"==typeof r.maxMessages&&r.maxMessages>0?r.maxMessages:-1,h=this.subscribe(tt(this.options.inboxPrefix),{callback:function(t,e){var n,i;if(0===(null==e||null===(n=e.data)||void 0===n?void 0:n.length)&&(null==e||null===(i=e.headers)||void 0===i?void 0:i.status)===q.NoResponders&&(t=V.errorForCode(q.NoResponders)),t)return o&&(t.stack+="\n\n".concat(o)),void c(t);a(null,e),r.strategy===W.Count&&0==--u&&c(),r.strategy===W.JitterTimer&&(l(),d=setTimeout((function(){c()}),300)),r.strategy===W.SentinelMsg&&e&&0===e.data.length&&c()}});h.requestSubject=t,h.closed.then((function(){s()})).catch((function(t){i.stop(t)}));var c=function(t){t&&i.push((function(){throw t})),l(),h.drain().then((function(){s()})).catch((function(t){s()}))};i.iterClosed.then((function(){l(),null==h||h.unsubscribe()})).catch((function(t){l(),null==h||h.unsubscribe()}));try{this.publish(t,e,{reply:h.getSubject()})}catch(t){c(t)}var d=setTimeout((function(){c()}),r.maxWait),l=function(){d&&clearTimeout(d)}}else{var f=r;f.callback=a,i.iterClosed.then((function(){m.cancel()})).catch((function(t){m.cancel(t)}));var m=new le(this.protocol.muxSubscriptions,t,f);this.protocol.request(m);try{this.publish(t,e,{reply:"".concat(this.protocol.muxSubscriptions.baseInbox).concat(m.token),headers:r.headers})}catch(t){m.cancel(t)}}return Promise.resolve(i)}},{key:"request",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{timeout:1e3,noMux:!1};try{this._check(t,!0,!0)}catch(t){return Promise.reject(t)}var n=!this.protocol.options.noAsyncTraces;if(r.timeout=r.timeout||1e3,r.timeout<1)return Promise.reject(new V("timeout",q.InvalidOption));if(!r.noMux&&r.reply)return Promise.reject(new V("reply can only be used with noMux",q.InvalidOption));if(r.noMux){var i=r.reply?r.reply:tt(this.options.inboxPrefix),s=ut(),a=n?new Error:null,o=this.subscribe(i,{max:1,timeout:r.timeout,callback:function(t,e){t?(a&&t.code!==q.Timeout&&(t.stack+="\n\n".concat(a.stack)),o.unsubscribe(),s.reject(t)):(t=bt(e))?(a&&(t.stack+="\n\n".concat(a.stack)),s.reject(t)):s.resolve(e)}});return o.requestSubject=t,this.protocol.publish(t,e,{reply:i,headers:r.headers}),s}var u=new fe(this.protocol.muxSubscriptions,t,r,n);this.protocol.request(u);try{this.publish(t,e,{reply:"".concat(this.protocol.muxSubscriptions.baseInbox).concat(u.token),headers:r.headers})}catch(t){u.cancel(t)}var h=Promise.race([u.timer,u.deferred]);return h.catch((function(){u.cancel()})),h}},{key:"flush",value:function(){return this.isClosed()?Promise.reject(V.errorForCode(q.ConnectionClosed)):this.protocol.flush()}},{key:"drain",value:function(){return this.isClosed()?Promise.reject(V.errorForCode(q.ConnectionClosed)):this.isDraining()?Promise.reject(V.errorForCode(q.ConnectionDraining)):(this.draining=!0,this.protocol.drain())}},{key:"isClosed",value:function(){return this.protocol.isClosed()}},{key:"isDraining",value:function(){return this.draining}},{key:"getServer",value:function(){var t=this.protocol.getServer();return t?t.listen:""}},{key:"status",value:function(){var t=this,e=new zt;return e.iterClosed.then((function(){var r=t.listeners.indexOf(e);t.listeners.splice(r,1)})),this.listeners.push(e),e}},{key:"info",get:function(){return this.protocol.isClosed()?void 0:this.protocol.info}},{key:"context",value:(n=m(l().mark((function t(){var e;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.request("$SYS.REQ.USER.INFO");case 2:return e=t.sent,t.abrupt("return",e.json((function(t,e){return"time"===t?new Date(Date.parse(e)):e})));case 4:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"stats",value:function(){return{inBytes:this.protocol.inBytes,outBytes:this.protocol.outBytes,inMsgs:this.protocol.inMsgs,outMsgs:this.protocol.outMsgs}}},{key:"jetstreamManager",value:(r=m(l().mark((function t(){var e,r,n,i=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=new gn(this,e=i.length>0&&void 0!==i[0]?i[0]:{}),!1===e.checkAPI){t.next=13;break}return t.prev=3,t.next=6,r.getAccountInfo();case 6:t.next=13;break;case 8:throw t.prev=8,t.t0=t.catch(3),(n=t.t0).code===q.NoResponders&&(n.code=q.JetStreamNotEnabled),n;case 13:return t.abrupt("return",r);case 14:case"end":return t.stop()}}),t,this,[[3,8]])}))),function(){return r.apply(this,arguments)})},{key:"jetstream",value:function(){return new xn(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}},{key:"getServerVersion",value:function(){var t=this.info;return t?_e(t.version):void 0}},{key:"rtt",value:(e=m(l().mark((function t(){var e;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.protocol._closed||this.protocol.connected){t.next=2;break}throw V.errorForCode(q.Disconnect);case 2:return e=Date.now(),t.next=5,this.flush();case 5:return t.abrupt("return",Date.now()-e);case 6:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"features",get:function(){return this.protocol.features}},{key:"services",get:function(){return this._services||(this._services=new Tn(this)),this._services}},{key:"reconnect",value:function(){return this.isClosed()?Promise.reject(V.errorForCode(q.ConnectionClosed)):this.isDraining()?Promise.reject(V.errorForCode(q.ConnectionDraining)):this.protocol.reconnect()}}],[{key:"connect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(r,n){var i=new t(e);jr.connect(i.options,i).then((function(t){i.protocol=t,m(l().mark((function e(){var r,n,s,a,o,u;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=!1,n=!1,e.prev=2,a=l().mark((function t(){var e;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=u.value,i.listeners.forEach((function(t){t.push(e)}));case 2:case"end":return t.stop()}}),t)})),o=x(t.status());case 5:return e.next=7,o.next();case 7:if(!(r=!(u=e.sent).done)){e.next=12;break}return e.delegateYield(a(),"t0",9);case 9:r=!1,e.next=5;break;case 12:e.next=18;break;case 14:e.prev=14,e.t1=e.catch(2),n=!0,s=e.t1;case 18:if(e.prev=18,e.prev=19,!r||null==o.return){e.next=23;break}return e.next=23,o.return();case 23:if(e.prev=23,!n){e.next=26;break}throw s;case 26:return e.finish(23);case 27:return e.finish(18);case 28:case"end":return e.stop()}}),e,null,[[2,14,18,28],[19,,23,27]])})))(),r(i)})).catch((function(t){n(t)}))}))}}]);var e,r,n,i}(),Tn=k((function t(e){M(this,t),L(this,"nc",void 0),this.nc=e}),[{key:"add",value:function(t){try{return new Pr(this.nc,t).start()}catch(t){return Promise.reject(t)}}},{key:"client",value:function(t,e){return new Hr(this.nc,t,e)}}]),Dn=k((function t(e,r,n){M(this,t),L(this,"bucket",void 0),L(this,"sm",void 0),L(this,"prefixLen",void 0),this.bucket=e,this.prefixLen=r,this.sm=n}),[{key:"key",get:function(){return this.sm.subject.substring(this.prefixLen)}},{key:"value",get:function(){return this.sm.data}},{key:"delta",get:function(){return 0}},{key:"created",get:function(){return this.sm.time}},{key:"revision",get:function(){return this.sm.seq}},{key:"operation",get:function(){return this.sm.header.get(Nr)||"PUT"}},{key:"length",get:function(){var t=this.sm.header.get(Bt.MessageSizeHdr)||"";return""!==t?parseInt(t,10):this.sm.data.length}},{key:"json",value:function(){return this.sm.json()}},{key:"string",value:function(){return this.sm.string()}}]),En=k((function t(e,r,n){M(this,t),L(this,"bucket",void 0),L(this,"key",void 0),L(this,"sm",void 0),this.bucket=e,this.key=r,this.sm=n}),[{key:"value",get:function(){return this.sm.data}},{key:"created",get:function(){return new Date(ft(this.sm.info.timestampNanos))}},{key:"revision",get:function(){return this.sm.seq}},{key:"operation",get:function(){var t;return(null===(t=this.sm.headers)||void 0===t?void 0:t.get(Nr))||"PUT"}},{key:"delta",get:function(){return this.sm.info.pending}},{key:"length",get:function(){var t,e=(null===(t=this.sm.headers)||void 0===t?void 0:t.get(Bt.MessageSizeHdr))||"";return""!==e?parseInt(e,10):this.sm.data.length}},{key:"json",value:function(){return this.sm.json()}},{key:"string",value:function(){return this.sm.string()}}]),jn=function(t){function e(t,r,n){var i;return M(this,e),L(i=p(this,e,[t.nc,r,n]),"js",void 0),L(i,"monitor",void 0),i.js=t,i.monitor=null,i.sub.closed.then((function(){i.monitor&&i.monitor.cancel()})),i}return _(e,t),k(e,[{key:"info",get:function(){return this.sub.info},set:function(t){this.sub.info=t}},{key:"_resetOrderedConsumer",value:function(t){var e=this;if(null!==this.info&&!this.sub.isClosed()){var r=tt(this.js.nc.options.inboxPrefix);this.js.nc._resub(this.sub,r);var n=this.info;n.config.name=U.next(),n.ordered_consumer_sequence.delivery_seq=0,n.flow_control.heartbeat_count=0,n.flow_control.fc_count=0,n.flow_control.consumer_restarts++,n.deliver=r,n.config.deliver_subject=r,n.config.deliver_policy=Pt.StartSequence,n.config.opt_start_seq=t;var i={};i.stream_name=this.info.stream,i.config=n.config;var s="".concat(n.api.prefix,".CONSUMER.CREATE.").concat(n.stream);this.js._request(s,i,{retries:-1}).then((function(t){var r=t;e.sub.info.last=r,e.info.config=r.config,e.info.name=r.name})).catch((function(r){var i=new V("unable to recreate ordered consumer ".concat(n.stream," at seq ").concat(t),q.RequestError,r);e.sub.callback(i,{})}))}}},{key:"_maybeSetupHbMonitoring",value:function(){var t,e=(null===(t=this.info)||void 0===t||null===(t=t.config)||void 0===t?void 0:t.idle_heartbeat)||0;e&&this._setupHbMonitoring(ft(e))}},{key:"_setupHbMonitoring",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n={cancelAfter:0,maxOut:2};r&&(n.cancelAfter=r);var i=this.sub;this.monitor=new Wt(t,(function(t){var r,n=function(t,e,r){var n=pt(409,e),i=new wt({hdr:1,sid:0,size:0},A,{});return i._headers=n,i._subject=r,i}(0,"".concat(Mt.IdleHeartbeatMissed,": ").concat(t),e.sub.subject);if(null===(r=e.info)||void 0===r?void 0:r.ordered){var s,a;if(!e.js.nc.protocol.connected)return!1;var o=(null===(s=e.info)||void 0===s||null===(s=s.ordered_consumer_sequence)||void 0===s?void 0:s.stream_seq)||0;return e._resetOrderedConsumer(o+1),null===(a=e.monitor)||void 0===a||a.restart(),!1}return e.sub.callback(null,n),!i.noIterator}),n)}},{key:"_checkHbOrderConsumer",value:function(t){var e=t.headers.get(Bt.ConsumerStalledHdr);""!==e&&this.js.nc.publish(e);var r=parseInt(t.headers.get(Bt.LastConsumerSeqHdr),10),n=this.info.ordered_consumer_sequence;return this.info.flow_control.heartbeat_count++,r!==n.delivery_seq&&this._resetOrderedConsumer(n.stream_seq+1),!1}},{key:"_checkOrderedConsumer",value:function(t){var e=this.info.ordered_consumer_sequence,r=t.info.streamSequence,n=t.info.deliverySequence;return n!=e.delivery_seq+1?(this._resetOrderedConsumer(e.stream_seq+1),!1):(e.delivery_seq=n,e.stream_seq=r,!0)}},{key:"destroy",value:(n=m(l().mark((function t(){var e,r,n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.isClosed()){t.next=3;break}return t.next=3,this.drain();case 3:return e=this.sub.info,r=e.config.durable_name||e.name,n="".concat(e.api.prefix,".CONSUMER.DELETE.").concat(e.stream,".").concat(r),t.next=8,e.api._request(n);case 8:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"consumerInfo",value:(r=m(l().mark((function t(){var e,r,n,i;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.sub.info,r=e.config.durable_name||e.name,n="".concat(e.api.prefix,".CONSUMER.INFO.").concat(e.stream,".").concat(r),t.next=5,e.api._request(n);case 5:return i=t.sent,e.last=i,t.abrupt("return",i);case 8:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})}]);var r,n}(we),An=function(t){function e(t,r,n){return M(this,e),p(this,e,[t,r,n])}return _(e,t),k(e,[{key:"pull",value:function(){var t,e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{batch:1},n=this.sub.info,i=n.stream,s=n.config,a=n.name,o=null!==(t=s.durable_name)&&void 0!==t?t:a,u={};if(u.batch=r.batch||1,u.no_wait=r.no_wait||!1,(null!==(e=r.max_bytes)&&void 0!==e?e:0)>0){var h=this.js.nc.features.get(he.JS_PULL_MAX_BYTES);if(!h.ok)throw new Error("max_bytes is only supported on servers ".concat(h.min," or better"));u.max_bytes=r.max_bytes}var c=0;r.expires&&r.expires>0&&(c=r.expires,u.expires=lt(c));var d=0;if(r.idle_heartbeat&&r.idle_heartbeat>0&&(d=r.idle_heartbeat,u.idle_heartbeat=lt(d)),d&&0===c)throw new Error("idle_heartbeat requires expires");if(d>c)throw new Error("expires must be greater than idle_heartbeat");if(this.info){this.monitor&&this.monitor.cancel(),c&&d&&(this.monitor?this.monitor._change(d,c):this._setupHbMonitoring(d,c));var l=this.info.api,f="".concat(l.prefix,".CONSUMER.MSG.NEXT.").concat(i,".").concat(o),m=this.sub.subject;l.nc.publish(f,l.jc.encode(u),{reply:m})}}}])}(jn);function On(t){if(null!==t)switch(t.code){case q.JetStream404NoMessages:case q.JetStream408RequestTimeout:return null;case q.JetStream409:return function(t){if(t.code!==q.JetStream409)return!1;var e=[Mt.MaxBatchExceeded,Mt.MaxExpiresExceeded,Mt.MaxBytesExceeded,Mt.MaxMessageSizeExceeded,Mt.PushConsumer,Mt.IdleHeartbeatMissed,Mt.ConsumerDeleted];return void 0!==e.find((function(e){return-1!==t.message.indexOf(e)}))}(t)?t:null;default:return t}return null}function Pn(t){t&&t.ack()}var Rn=function(){return k((function t(e,r){M(this,t),L(this,"msg",void 0),L(this,"di",void 0),L(this,"didAck",void 0),L(this,"timeout",void 0),this.msg=e,this.didAck=!1,this.timeout=r}),[{key:"subject",get:function(){return this.msg.subject}},{key:"sid",get:function(){return this.msg.sid}},{key:"data",get:function(){return this.msg.data}},{key:"headers",get:function(){return this.msg.headers}},{key:"info",get:function(){return this.di||(this.di=function(t){var e=t.split(".");if(9===e.length&&e.splice(2,0,"_",""),e.length<11||"$JS"!==e[0]||"ACK"!==e[1])throw new Error("not js message");var r={};return r.domain="_"===e[2]?"":e[2],r.account_hash=e[3],r.stream=e[4],r.consumer=e[5],r.redeliveryCount=parseInt(e[6],10),r.redelivered=r.redeliveryCount>1,r.streamSequence=parseInt(e[7],10),r.deliverySequence=parseInt(e[8],10),r.timestampNanos=parseInt(e[9],10),r.pending=parseInt(e[10],10),r}(this.reply)),this.di}},{key:"redelivered",get:function(){return this.info.redeliveryCount>1}},{key:"reply",get:function(){return this.msg.reply||""}},{key:"seq",get:function(){return this.info.streamSequence}},{key:"doAck",value:function(t){this.didAck||(this.didAck=!this.isWIP(t),this.msg.respond(t))}},{key:"isWIP",value:function(t){return 4===t.length&&t[0]===sn[0]&&t[1]===sn[1]&&t[2]===sn[2]&&t[3]===sn[3]}},{key:"ackAck",value:(t=m(l().mark((function t(e){var r,n,i,s,a,o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((e=e||{}).timeout=e.timeout||this.timeout,r=ut(),this.didAck){t.next=27;break}if(this.didAck=!0,!this.msg.reply){t.next=24;break}i=this.msg,s=i.publisher,a=!(null!==(n=s.options)&&void 0!==n&&n.noAsyncTraces),o=new fe(s.muxSubscriptions,this.msg.reply,{timeout:e.timeout},a),s.request(o);try{s.publish(this.msg.reply,rn,{reply:"".concat(s.muxSubscriptions.baseInbox).concat(o.token)})}catch(t){o.cancel(t)}return t.prev=12,t.next=15,Promise.race([o.timer,o.deferred]);case 15:r.resolve(!0),t.next=22;break;case 18:t.prev=18,t.t0=t.catch(12),o.cancel(t.t0),r.reject(t.t0);case 22:t.next=25;break;case 24:r.resolve(!1);case 25:t.next=28;break;case 27:r.resolve(!1);case 28:return t.abrupt("return",r);case 29:case"end":return t.stop()}}),t,this,[[12,18]])}))),function(e){return t.apply(this,arguments)})},{key:"ack",value:function(){this.doAck(rn)}},{key:"nak",value:function(t){var e=nn;t&&(e=vt().encode("-NAK ".concat(JSON.stringify({delay:lt(t)})))),this.doAck(e)}},{key:"working",value:function(){this.doAck(sn)}},{key:"next",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{batch:1},r={};r.batch=e.batch||1,r.no_wait=e.no_wait||!1,e.expires&&e.expires>0&&(r.expires=lt(e.expires));var n=gt().encode(r),i=Xt.concat(an,un,n),s=t?{reply:t}:void 0;this.msg.respond(i,s)}},{key:"term",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=on;(null==t?void 0:t.length)>0&&(e=vt().encode("+TERM ".concat(t))),this.doAck(e)}},{key:"json",value:function(){return this.msg.json()}},{key:"string",value:function(){return this.msg.string()}}]);var t}(),Hn=function(){return k((function t(){M(this,t),L(this,"version",void 0),L(this,"lang",void 0),L(this,"closeError",void 0),L(this,"connected",void 0),L(this,"done",void 0),L(this,"socket",void 0),L(this,"options",void 0),L(this,"socketClosed",void 0),L(this,"encrypted",void 0),L(this,"peeked",void 0),L(this,"yields",void 0),L(this,"signal",void 0),L(this,"closedNotification",void 0),this.version="1.29.2",this.lang="nats.ws",this.connected=!1,this.done=!1,this.socketClosed=!1,this.encrypted=!1,this.peeked=!1,this.yields=[],this.signal=ut(),this.closedNotification=ut()}),[{key:"connect",value:(e=m(l().mark((function t(e,r){var i,s,a,u,h,c,d=this;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=!1,s=ut(),!r.tls){t.next=5;break}return s.reject(new V("tls",q.InvalidOption)),t.abrupt("return",s);case 5:if(this.options=r,a=e.src,!r.wsFactory){t.next=17;break}return t.next=10,r.wsFactory(e.src,r);case 10:u=t.sent,h=u.socket,c=u.encrypted,this.socket=h,this.encrypted=c,t.next=19;break;case 17:this.encrypted=0===a.indexOf("wss://"),this.socket=new WebSocket(a);case 19:return this.socket.binaryType="arraybuffer",this.socket.onopen=function(){d.isDiscarded()},this.socket.onmessage=function(t){if(!d.isDiscarded())if(d.yields.push(new Uint8Array(t.data)),d.peeked)d.signal.resolve();else{var e=Xt.concat.apply(Xt,o(d.yields)),i=Ee(e);if(""!==i){var a=Sr.exec(i);if(!a)return r.debug&&n.error("!!!",it(e)),void s.reject(new Error("unexpected response from server"));try{kr(JSON.parse(a[1]),d.options),d.peeked=!0,d.connected=!0,d.signal.resolve(),s.resolve()}catch(t){return void s.reject(t)}}}},this.socket.onclose=function(t){var e;d.isDiscarded()||(d.socketClosed=!0,d.done||(t.wasClean||(e=new Error(t.reason)),d._closed(e)))},this.socket.onerror=function(t){if(!d.isDiscarded()){var e=t,r=new V(e.message,q.Unknown,new Error(e.error));i?d._closed(r):s.reject(r)}},t.abrupt("return",s);case 25:case"end":return t.stop()}}),t,this)}))),function(t,r){return e.apply(this,arguments)})},{key:"disconnect",value:function(){this._closed(void 0,!0)}},{key:"_closed",value:(t=m(l().mark((function t(e){var r,n=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=!(n.length>1&&void 0!==n[1])||n[1],!this.isDiscarded()){t.next=3;break}return t.abrupt("return");case 3:if(this.connected){t.next=5;break}return t.abrupt("return");case 5:if(!this.done){t.next=7;break}return t.abrupt("return");case 7:if(this.closeError=e,e){t.next=14;break}case 9:if(this.socketClosed||!(this.socket.bufferedAmount>0)){t.next=14;break}return t.next=12,at(100);case 12:t.next=9;break;case 14:this.done=!0;try{this.socket.close(e?1002:1e3,e?e.message:void 0)}catch(t){}r&&this.closedNotification.resolve(e);case 17:case"end":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})},{key:"isClosed",get:function(){return this.done}},{key:Symbol.asyncIterator,value:function(){return this.iterate()}},{key:"iterate",value:function(){var t=this;return D(l().mark((function e(){var r,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.isDiscarded()){e.next=3;break}return e.abrupt("return");case 3:if(0!==t.yields.length){e.next=6;break}return e.next=6,T(t.signal);case 6:r=t.yields,t.yields=[],i=0;case 9:if(!(i<r.length)){e.next=16;break}return t.options.debug&&n.info("> ".concat(it(r[i]))),e.next=13,r[i];case 13:i++,e.next=9;break;case 16:if(!t.done){e.next=20;break}return e.abrupt("break",23);case 20:0===t.yields.length&&(r.length=0,t.yields=r,t.signal=ut());case 21:e.next=0;break;case 23:case"end":return e.stop()}}),e)})))()}},{key:"isEncrypted",value:function(){return this.connected&&this.encrypted}},{key:"send",value:function(t){if(!this.isDiscarded())try{return this.socket.send(t.buffer),void(this.options.debug&&n.info("< ".concat(it(t))))}catch(e){this.options.debug&&n.error("!!! ".concat(it(t),": ").concat(e))}}},{key:"close",value:function(t){return this._closed(t,!1)}},{key:"closed",value:function(){return this.closedNotification}},{key:"isDiscarded",value:function(){return!!this.done&&(this.discard(),!0)}},{key:"discard",value:function(){this.done=!0;try{var t;null===(t=this.socket)||void 0===t||t.close()}catch(t){}}}]);var t,e}();function In(t,e){/^(.*:\/\/)(.*)/.test(t)||(t="boolean"==typeof e?"".concat(!0===e?"https":"http","://").concat(t):"https://".concat(t));var r,n,i=new URL(t),s=i.protocol.toLowerCase();"ws:"===s&&(e=!1),"wss:"===s&&(e=!0),"https:"!==s&&"http"!==s&&(t=t.replace(/^(.*:\/\/)(.*)/gm,"$2"),i=new URL("http://".concat(t)));var a=i.hostname,o=i.pathname,u=i.search||"";switch(s){case"http:":case"ws:":case"nats:":n=i.port||"80",r="ws:";break;case"https:":case"wss:":case"tls:":n=i.port||"443",r="wss:";break;default:n=i.port||!0===e?"443":"80",r=!0===e?"wss:":"ws:"}return"".concat(r,"//").concat(a,":").concat(n).concat(o).concat(u)}function Cn(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Me={defaultPort:443,urlParseFn:In,factory:function(){return new Hn}},Yn.connect(t)}},(t,e,r)=>{"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=r(201),e.createHash=e.Hash=r(206),e.createHmac=e.Hmac=r(239);var n=r(242),i=Object.keys(n),s=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);e.getHashes=function(){return s};var a=r(244);e.pbkdf2=a.pbkdf2,e.pbkdf2Sync=a.pbkdf2Sync;var o=r(250);e.Cipher=o.Cipher,e.createCipher=o.createCipher,e.Cipheriv=o.Cipheriv,e.createCipheriv=o.createCipheriv,e.Decipher=o.Decipher,e.createDecipher=o.createDecipher,e.Decipheriv=o.Decipheriv,e.createDecipheriv=o.createDecipheriv,e.getCiphers=o.getCiphers,e.listCiphers=o.listCiphers;var u=r(279);e.DiffieHellmanGroup=u.DiffieHellmanGroup,e.createDiffieHellmanGroup=u.createDiffieHellmanGroup,e.getDiffieHellman=u.getDiffieHellman,e.createDiffieHellman=u.createDiffieHellman,e.DiffieHellman=u.DiffieHellman;var h=r(289);e.createSign=h.createSign,e.Sign=h.Sign,e.createVerify=h.createVerify,e.Verify=h.Verify,e.createECDH=r(366);var c=r(369);e.publicEncrypt=c.publicEncrypt,e.privateEncrypt=c.privateEncrypt,e.publicDecrypt=c.publicDecrypt,e.privateDecrypt=c.privateDecrypt;var d=r(377);e.randomFill=d.randomFill,e.randomFillSync=d.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}},(t,e,r)=>{"use strict";var n=r(6),i=65536,s=r(202).Buffer,a=r.g.crypto||r.g.msCrypto;a&&a.getRandomValues?t.exports=function(t,e){if(t>4294967295)throw new RangeError("requested too many random bytes");var r=s.allocUnsafe(t);if(t>0)if(t>i)for(var o=0;o<t;o+=i)a.getRandomValues(r.slice(o,o+i));else a.getRandomValues(r);return"function"==typeof e?n.nextTick((function(){e(null,r)})):r}:t.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}},(t,e,r)=>{
  290. /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
  291. var n=r(203),i=n.Buffer;function s(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(s(n,e),e.Buffer=a),a.prototype=Object.create(i.prototype),s(i,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},(t,e,r)=>{"use strict";var n=r(4);
  292. /*!
  293. * The buffer module from node.js, for the browser.
  294. *
  295. * @author Feross Aboukhadijeh <https://feross.org>
  296. * @license MIT
  297. */const i=r(204),s=r(205),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=h,e.SlowBuffer=function(t){return+t!=t&&(t=0),h.alloc(+t)},e.INSPECT_MAX_BYTES=50;const o=2147483647;function u(t){if(t>o)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,h.prototype),e}function h(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return c(t,e,r)}function c(t,e,r){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!h.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=0|_(t,e);let n=u(r);const i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(Z(t,Uint8Array)){const e=new Uint8Array(t);return m(e.buffer,e.byteOffset,e.byteLength)}return f(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Z(t,ArrayBuffer)||t&&Z(t.buffer,ArrayBuffer))return m(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(Z(t,SharedArrayBuffer)||t&&Z(t.buffer,SharedArrayBuffer)))return m(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return h.from(n,e,r);const i=function(t){if(h.isBuffer(t)){const e=0|p(t.length),r=u(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||$(t.length)?u(0):f(t):"Buffer"===t.type&&Array.isArray(t.data)?f(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return h.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function d(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return d(t),u(t<0?0:0|p(t))}function f(t){const e=t.length<0?0:0|p(t.length),r=u(e);for(let n=0;n<e;n+=1)r[n]=255&t[n];return r}function m(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),Object.setPrototypeOf(n,h.prototype),n}function p(t){if(t>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function _(t,e){if(h.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Z(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return G(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return K(t).length;default:if(i)return n?-1:G(t).length;e=(""+e).toLowerCase(),i=!0}}function y(t,e,r){let 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 j(this,e,r);case"utf8":case"utf-8":return Y(this,e,r);case"ascii":return D(this,e,r);case"latin1":case"binary":return E(this,e,r);case"base64":return x(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function v(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function g(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),$(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=h.from(e,n)),h.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):b(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,r,n,i){let s,a=1,o=t.length,u=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;a=2,o/=2,u/=2,r/=2}function h(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){let n=-1;for(s=r;s<o;s++)if(h(t,s)===h(e,-1===n?0:s-n)){if(-1===n&&(n=s),s-n+1===u)return n*a}else-1!==n&&(s-=s-n),n=-1}else for(r+u>o&&(r=o-u),s=r;s>=0;s--){let r=!0;for(let n=0;n<u;n++)if(h(t,s+n)!==h(e,n)){r=!1;break}if(r)return s}return-1}function M(t,e,r,n){r=Number(r)||0;const i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;const s=e.length;let a;for(n>s/2&&(n=s/2),a=0;a<n;++a){const n=parseInt(e.substr(2*a,2),16);if($(n))return a;t[r+a]=n}return a}function w(t,e,r,n){return V(G(e,t.length-r),t,r,n)}function k(t,e,r,n){return V(function(t){const e=[];for(let r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function L(t,e,r,n){return V(K(e),t,r,n)}function S(t,e,r,n){return V(function(t,e){let r,n,i;const s=[];for(let a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,i=r%256,s.push(i),s.push(n);return s}(e,t.length-r),t,r,n)}function x(t,e,r){return 0===e&&r===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,r))}function Y(t,e,r){r=Math.min(t.length,r);const n=[];let i=e;for(;i<r;){const e=t[i];let s=null,a=e>239?4:e>223?3:e>191?2:1;if(i+a<=r){let r,n,o,u;switch(a){case 1:e<128&&(s=e);break;case 2:r=t[i+1],128==(192&r)&&(u=(31&e)<<6|63&r,u>127&&(s=u));break;case 3:r=t[i+1],n=t[i+2],128==(192&r)&&128==(192&n)&&(u=(15&e)<<12|(63&r)<<6|63&n,u>2047&&(u<55296||u>57343)&&(s=u));break;case 4:r=t[i+1],n=t[i+2],o=t[i+3],128==(192&r)&&128==(192&n)&&128==(192&o)&&(u=(15&e)<<18|(63&r)<<12|(63&n)<<6|63&o,u>65535&&u<1114112&&(s=u))}}null===s?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|1023&s),n.push(s),i+=a}return function(t){const e=t.length;if(e<=T)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=T));return r}(n)}e.kMaxLength=o,h.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),h.TYPED_ARRAY_SUPPORT||void 0===n||"function"!=typeof n.error||n.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}}),h.poolSize=8192,h.from=function(t,e,r){return c(t,e,r)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array),h.alloc=function(t,e,r){return function(t,e,r){return d(t),t<=0?u(t):void 0!==e?"string"==typeof r?u(t).fill(e,r):u(t).fill(e):u(t)}(t,e,r)},h.allocUnsafe=function(t){return l(t)},h.allocUnsafeSlow=function(t){return l(t)},h.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==h.prototype},h.compare=function(t,e){if(Z(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),Z(e,Uint8Array)&&(e=h.from(e,e.offset,e.byteLength)),!h.isBuffer(t)||!h.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let r=t.length,n=e.length;for(let i=0,s=Math.min(r,n);i<s;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},h.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}},h.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return h.alloc(0);let r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;const n=h.allocUnsafe(e);let i=0;for(r=0;r<t.length;++r){let e=t[r];if(Z(e,Uint8Array))i+e.length>n.length?(h.isBuffer(e)||(e=h.from(e)),e.copy(n,i)):Uint8Array.prototype.set.call(n,e,i);else{if(!h.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(n,i)}i+=e.length}return n},h.byteLength=_,h.prototype._isBuffer=!0,h.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)v(this,e,e+1);return this},h.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)v(this,e,e+3),v(this,e+1,e+2);return this},h.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this},h.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?Y(this,0,t):y.apply(this,arguments)},h.prototype.toLocaleString=h.prototype.toString,h.prototype.equals=function(t){if(!h.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===h.compare(this,t)},h.prototype.inspect=function(){let t="";const r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},a&&(h.prototype[a]=h.prototype.inspect),h.prototype.compare=function(t,e,r,n,i){if(Z(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),!h.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;let s=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0);const o=Math.min(s,a),u=this.slice(n,i),c=t.slice(e,r);for(let t=0;t<o;++t)if(u[t]!==c[t]){s=u[t],a=c[t];break}return s<a?-1:a<s?1:0},h.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},h.prototype.indexOf=function(t,e,r){return g(this,t,e,r,!0)},h.prototype.lastIndexOf=function(t,e,r){return g(this,t,e,r,!1)},h.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)}const i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let s=!1;for(;;)switch(n){case"hex":return M(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":case"latin1":case"binary":return k(this,t,e,r);case"base64":return L(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,r);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const T=4096;function D(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function E(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function j(t,e,r){const n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=e;n<r;++n)i+=X[t[n]];return i}function A(t,e,r){const n=t.slice(e,r);let i="";for(let t=0;t<n.length-1;t+=2)i+=String.fromCharCode(n[t]+256*n[t+1]);return i}function O(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 P(t,e,r,n,i,s){if(!h.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<s)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function R(t,e,r,n,i){U(e,n,i,t,r,7);let s=Number(e&BigInt(4294967295));t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=a,a>>=8,t[r++]=a,a>>=8,t[r++]=a,a>>=8,t[r++]=a,r}function H(t,e,r,n,i){U(e,n,i,t,r,7);let s=Number(e&BigInt(4294967295));t[r+7]=s,s>>=8,t[r+6]=s,s>>=8,t[r+5]=s,s>>=8,t[r+4]=s;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=a,a>>=8,t[r+2]=a,a>>=8,t[r+1]=a,a>>=8,t[r]=a,r+8}function I(t,e,r,n,i,s){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function C(t,e,r,n,i){return e=+e,r>>>=0,i||I(t,0,r,4),s.write(t,e,r,n,23,4),r+4}function N(t,e,r,n,i){return e=+e,r>>>=0,i||I(t,0,r,8),s.write(t,e,r,n,52,8),r+8}h.prototype.slice=function(t,e){const r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);const n=this.subarray(t,e);return Object.setPrototypeOf(n,h.prototype),n},h.prototype.readUintLE=h.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||O(t,e,this.length);let n=this[t],i=1,s=0;for(;++s<e&&(i*=256);)n+=this[t+s]*i;return n},h.prototype.readUintBE=h.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||O(t,e,this.length);let n=this[t+--e],i=1;for(;e>0&&(i*=256);)n+=this[t+--e]*i;return n},h.prototype.readUint8=h.prototype.readUInt8=function(t,e){return t>>>=0,e||O(t,1,this.length),this[t]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(t,e){return t>>>=0,e||O(t,2,this.length),this[t]|this[t+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(t,e){return t>>>=0,e||O(t,2,this.length),this[t]<<8|this[t+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(t,e){return t>>>=0,e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(t,e){return t>>>=0,e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},h.prototype.readBigUInt64LE=Q((function(t){z(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||W(t,this.length-8);const n=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))})),h.prototype.readBigUInt64BE=Q((function(t){z(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||W(t,this.length-8);const n=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)})),h.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||O(t,e,this.length);let n=this[t],i=1,s=0;for(;++s<e&&(i*=256);)n+=this[t+s]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*e)),n},h.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||O(t,e,this.length);let n=e,i=1,s=this[t+--n];for(;n>0&&(i*=256);)s+=this[t+--n]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*e)),s},h.prototype.readInt8=function(t,e){return t>>>=0,e||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},h.prototype.readInt16LE=function(t,e){t>>>=0,e||O(t,2,this.length);const r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},h.prototype.readInt16BE=function(t,e){t>>>=0,e||O(t,2,this.length);const r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},h.prototype.readInt32LE=function(t,e){return t>>>=0,e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},h.prototype.readInt32BE=function(t,e){return t>>>=0,e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},h.prototype.readBigInt64LE=Q((function(t){z(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||W(t,this.length-8);const n=this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)})),h.prototype.readBigInt64BE=Q((function(t){z(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||W(t,this.length-8);const n=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(n)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+r)})),h.prototype.readFloatLE=function(t,e){return t>>>=0,e||O(t,4,this.length),s.read(this,t,!0,23,4)},h.prototype.readFloatBE=function(t,e){return t>>>=0,e||O(t,4,this.length),s.read(this,t,!1,23,4)},h.prototype.readDoubleLE=function(t,e){return t>>>=0,e||O(t,8,this.length),s.read(this,t,!0,52,8)},h.prototype.readDoubleBE=function(t,e){return t>>>=0,e||O(t,8,this.length),s.read(this,t,!1,52,8)},h.prototype.writeUintLE=h.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||P(this,t,e,r,Math.pow(2,8*r)-1,0);let i=1,s=0;for(this[e]=255&t;++s<r&&(i*=256);)this[e+s]=t/i&255;return e+r},h.prototype.writeUintBE=h.prototype.writeUIntBE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||P(this,t,e,r,Math.pow(2,8*r)-1,0);let i=r-1,s=1;for(this[e+i]=255&t;--i>=0&&(s*=256);)this[e+i]=t/s&255;return e+r},h.prototype.writeUint8=h.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,1,255,0),this[e]=255&t,e+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},h.prototype.writeBigUInt64LE=Q((function(t,e=0){return R(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),h.prototype.writeBigUInt64BE=Q((function(t,e=0){return H(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),h.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);P(this,t,e,r,n-1,-n)}let i=0,s=1,a=0;for(this[e]=255&t;++i<r&&(s*=256);)t<0&&0===a&&0!==this[e+i-1]&&(a=1),this[e+i]=(t/s|0)-a&255;return e+r},h.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);P(this,t,e,r,n-1,-n)}let i=r-1,s=1,a=0;for(this[e+i]=255&t;--i>=0&&(s*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/s|0)-a&255;return e+r},h.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},h.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},h.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},h.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},h.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},h.prototype.writeBigInt64LE=Q((function(t,e=0){return R(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),h.prototype.writeBigInt64BE=Q((function(t,e=0){return H(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),h.prototype.writeFloatLE=function(t,e,r){return C(this,t,e,!0,r)},h.prototype.writeFloatBE=function(t,e,r){return C(this,t,e,!1,r)},h.prototype.writeDoubleLE=function(t,e,r){return N(this,t,e,!0,r)},h.prototype.writeDoubleBE=function(t,e,r){return N(this,t,e,!1,r)},h.prototype.copy=function(t,e,r,n){if(!h.isBuffer(t))throw new TypeError("argument should be a Buffer");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("Index out of range");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);const i=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),i},h.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),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!h.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){const e=t.charCodeAt(0);("utf8"===n&&e<128||"latin1"===n)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;let 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{const s=h.isBuffer(t)?t:h.from(t,n),a=s.length;if(0===a)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=s[i%a]}return this};const B={};function q(t,e,r){B[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function F(t){let e="",r=t.length;const n="-"===t[0]?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function U(t,e,r,n,i,s){if(t>r||t<e){const n="bigint"==typeof e?"n":"";let i;throw i=s>3?0===e||e===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(s+1)}${n}`:`>= -(2${n} ** ${8*(s+1)-1}${n}) and < 2 ** ${8*(s+1)-1}${n}`:`>= ${e}${n} and <= ${r}${n}`,new B.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,r){z(e,"offset"),void 0!==t[e]&&void 0!==t[e+r]||W(e,t.length-(r+1))}(n,i,s)}function z(t,e){if("number"!=typeof t)throw new B.ERR_INVALID_ARG_TYPE(e,"number",t)}function W(t,e,r){if(Math.floor(t)!==t)throw z(t,r),new B.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new B.ERR_BUFFER_OUT_OF_BOUNDS;throw new B.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}q("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),q("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),q("ERR_OUT_OF_RANGE",(function(t,e,r){let n=`The value of "${t}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=F(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=F(i)),i+="n"),n+=` It must be ${e}. Received ${i}`,n}),RangeError);const J=/[^+/0-9A-Za-z-_]/g;function G(t,e){let r;e=e||1/0;const n=t.length;let i=null;const s=[];for(let a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&s.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;s.push(r)}else if(r<2048){if((e-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;s.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;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function K(t){return i.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(J,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function V(t,e,r,n){let i;for(i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function Z(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function $(t){return t!=t}const X=function(){const t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)e[n+i]=t[r]+t[i]}return e}();function Q(t){return"undefined"==typeof BigInt?tt:t}function tt(){throw new Error("BigInt not supported")}},(t,e)=>{"use strict";e.byteLength=function(t){var e=o(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,s=o(t),a=s[0],u=s[1],h=new i(function(t,e,r){return 3*(e+r)/4-r}(0,a,u)),c=0,d=u>0?a-4:a;for(r=0;r<d;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],h[c++]=e>>16&255,h[c++]=e>>8&255,h[c++]=255&e;return 2===u&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,h[c++]=255&e),1===u&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,h[c++]=e>>8&255,h[c++]=255&e),h},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,s=[],a=16383,o=0,h=n-i;o<h;o+=a)s.push(u(t,o,o+a>h?h:o+a));return 1===i?(e=t[n-1],s.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],s.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),s.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)r[a]=s[a],n[s.charCodeAt(a)]=a;function o(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 u(t,e,n){for(var i,s,a=[],o=e;o<n;o+=3)i=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),a.push(r[(s=i)>>18&63]+r[s>>12&63]+r[s>>6&63]+r[63&s]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},(t,e)=>{
  298. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  299. e.read=function(t,e,r,n,i){var s,a,o=8*i-n-1,u=(1<<o)-1,h=u>>1,c=-7,d=r?i-1:0,l=r?-1:1,f=t[e+d];for(d+=l,s=f&(1<<-c)-1,f>>=-c,c+=o;c>0;s=256*s+t[e+d],d+=l,c-=8);for(a=s&(1<<-c)-1,s>>=-c,c+=n;c>0;a=256*a+t[e+d],d+=l,c-=8);if(0===s)s=1-h;else{if(s===u)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,n),s-=h}return(f?-1:1)*a*Math.pow(2,s-n)},e.write=function(t,e,r,n,i,s){var a,o,u,h=8*s-i-1,c=(1<<h)-1,d=c>>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:s-1,m=n?1:-1,p=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+d>=1?l/u:l*Math.pow(2,1-d))*u>=2&&(a++,u/=2),a+d>=c?(o=0,a=c):a+d>=1?(o=(e*u-1)*Math.pow(2,i),a+=d):(o=e*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;t[r+f]=255&o,f+=m,o/=256,i-=8);for(a=a<<i|o,h+=i;h>0;t[r+f]=255&a,f+=m,a/=256,h-=8);t[r+f-m]|=128*p}},(t,e,r)=>{"use strict";var n=r(39),i=r(207),s=r(229),a=r(230),o=r(238);function u(t){o.call(this,"digest"),this._hash=t}n(u,o),u.prototype._update=function(t){this._hash.update(t)},u.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return"md5"===(t=t.toLowerCase())?new i:"rmd160"===t||"ripemd160"===t?new s:new u(a(t))}},(t,e,r)=>{"use strict";var n=r(39),i=r(208),s=r(202).Buffer,a=new Array(16);function o(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(t,e){return t<<e|t>>>32-e}function h(t,e,r,n,i,s,a){return u(t+(e&r|~e&n)+i+s|0,a)+e|0}function c(t,e,r,n,i,s,a){return u(t+(e&n|r&~n)+i+s|0,a)+e|0}function d(t,e,r,n,i,s,a){return u(t+(e^r^n)+i+s|0,a)+e|0}function l(t,e,r,n,i,s,a){return u(t+(r^(e|~n))+i+s|0,a)+e|0}n(o,i),o.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var r=this._a,n=this._b,i=this._c,s=this._d;r=h(r,n,i,s,t[0],3614090360,7),s=h(s,r,n,i,t[1],3905402710,12),i=h(i,s,r,n,t[2],606105819,17),n=h(n,i,s,r,t[3],3250441966,22),r=h(r,n,i,s,t[4],4118548399,7),s=h(s,r,n,i,t[5],1200080426,12),i=h(i,s,r,n,t[6],2821735955,17),n=h(n,i,s,r,t[7],4249261313,22),r=h(r,n,i,s,t[8],1770035416,7),s=h(s,r,n,i,t[9],2336552879,12),i=h(i,s,r,n,t[10],4294925233,17),n=h(n,i,s,r,t[11],2304563134,22),r=h(r,n,i,s,t[12],1804603682,7),s=h(s,r,n,i,t[13],4254626195,12),i=h(i,s,r,n,t[14],2792965006,17),r=c(r,n=h(n,i,s,r,t[15],1236535329,22),i,s,t[1],4129170786,5),s=c(s,r,n,i,t[6],3225465664,9),i=c(i,s,r,n,t[11],643717713,14),n=c(n,i,s,r,t[0],3921069994,20),r=c(r,n,i,s,t[5],3593408605,5),s=c(s,r,n,i,t[10],38016083,9),i=c(i,s,r,n,t[15],3634488961,14),n=c(n,i,s,r,t[4],3889429448,20),r=c(r,n,i,s,t[9],568446438,5),s=c(s,r,n,i,t[14],3275163606,9),i=c(i,s,r,n,t[3],4107603335,14),n=c(n,i,s,r,t[8],1163531501,20),r=c(r,n,i,s,t[13],2850285829,5),s=c(s,r,n,i,t[2],4243563512,9),i=c(i,s,r,n,t[7],1735328473,14),r=d(r,n=c(n,i,s,r,t[12],2368359562,20),i,s,t[5],4294588738,4),s=d(s,r,n,i,t[8],2272392833,11),i=d(i,s,r,n,t[11],1839030562,16),n=d(n,i,s,r,t[14],4259657740,23),r=d(r,n,i,s,t[1],2763975236,4),s=d(s,r,n,i,t[4],1272893353,11),i=d(i,s,r,n,t[7],4139469664,16),n=d(n,i,s,r,t[10],3200236656,23),r=d(r,n,i,s,t[13],681279174,4),s=d(s,r,n,i,t[0],3936430074,11),i=d(i,s,r,n,t[3],3572445317,16),n=d(n,i,s,r,t[6],76029189,23),r=d(r,n,i,s,t[9],3654602809,4),s=d(s,r,n,i,t[12],3873151461,11),i=d(i,s,r,n,t[15],530742520,16),r=l(r,n=d(n,i,s,r,t[2],3299628645,23),i,s,t[0],4096336452,6),s=l(s,r,n,i,t[7],1126891415,10),i=l(i,s,r,n,t[14],2878612391,15),n=l(n,i,s,r,t[5],4237533241,21),r=l(r,n,i,s,t[12],1700485571,6),s=l(s,r,n,i,t[3],2399980690,10),i=l(i,s,r,n,t[10],4293915773,15),n=l(n,i,s,r,t[1],2240044497,21),r=l(r,n,i,s,t[8],1873313359,6),s=l(s,r,n,i,t[15],4264355552,10),i=l(i,s,r,n,t[6],2734768916,15),n=l(n,i,s,r,t[13],1309151649,21),r=l(r,n,i,s,t[4],4149444226,6),s=l(s,r,n,i,t[11],3174756917,10),i=l(i,s,r,n,t[2],718787259,15),n=l(n,i,s,r,t[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+s|0},o.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=s.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=o},(t,e,r)=>{"use strict";var n=r(202).Buffer,i=r(209).Transform;function s(t){i.call(this),this._block=n.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(39)(s,i),s.prototype._transform=function(t,e,r){var n=null;try{this.update(t,e)}catch(t){n=t}r(n)},s.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},s.prototype.update=function(t,e){if(function(t){if(!n.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer")}(t),this._finalized)throw new Error("Digest already called");n.isBuffer(t)||(t=n.from(t,e));for(var r=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var s=this._blockOffset;s<this._blockSize;)r[s++]=t[i++];this._update(),this._blockOffset=0}for(;i<t.length;)r[this._blockOffset++]=t[i++];for(var a=0,o=8*t.length;o>0;++a)this._length[a]+=o,(o=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*o);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.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 r=0;r<4;++r)this._length[r]=0;return e},s.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=s},(t,e,r)=>{t.exports=i;var n=r(210).EventEmitter;function i(){n.call(this)}r(39)(i,n),i.Readable=r(211),i.Writable=r(220),i.Duplex=r(219),i.Transform=r(226),i.PassThrough=r(227),i.finished=r(224),i.pipeline=r(228),i.Stream=i,i.prototype.pipe=function(t,e){var r=this;function i(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function s(){r.readable&&r.resume&&r.resume()}r.on("data",i),t.on("drain",s),t._isStdio||e&&!1===e.end||(r.on("end",o),r.on("close",u));var a=!1;function o(){a||(a=!0,t.end())}function u(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function h(t){if(c(),0===n.listenerCount(this,"error"))throw t}function c(){r.removeListener("data",i),t.removeListener("drain",s),r.removeListener("end",o),r.removeListener("close",u),r.removeListener("error",h),t.removeListener("error",h),r.removeListener("end",c),r.removeListener("close",c),t.removeListener("close",c)}return r.on("error",h),t.on("error",h),r.on("end",c),r.on("close",c),t.on("close",c),t.emit("pipe",r),t}},(t,e,r)=>{"use strict";var n,i=r(4),s="object"==typeof Reflect?Reflect:null,a=s&&"function"==typeof s.apply?s.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};n=s&&"function"==typeof s.ownKeys?s.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function u(){u.init.call(this)}t.exports=u,t.exports.once=function(t,e){return new Promise((function(r,n){function i(r){t.removeListener(e,s),n(r)}function s(){"function"==typeof t.removeListener&&t.removeListener("error",i),r([].slice.call(arguments))}v(t,e,s,{once:!0}),"error"!==e&&function(t,e){"function"==typeof t.on&&v(t,"error",e,{once:!0})}(t,i)}))},u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var h=10;function c(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function d(t){return void 0===t._maxListeners?u.defaultMaxListeners:t._maxListeners}function l(t,e,r,n){var s,a,o,u;if(c(r),void 0===(a=t._events)?(a=t._events=Object.create(null),t._eventsCount=0):(void 0!==a.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),a=t._events),o=a[e]),void 0===o)o=a[e]=r,++t._eventsCount;else if("function"==typeof o?o=a[e]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(s=d(t))>0&&o.length>s&&!o.warned){o.warned=!0;var h=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");h.name="MaxListenersExceededWarning",h.emitter=t,h.type=e,h.count=o.length,u=h,i&&i.warn&&i.warn(u)}return t}function f(){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 m(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=f.bind(n);return i.listener=r,n.wrapFn=i,i}function p(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(i):y(i,i.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 y(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}function v(t,e,r,n){if("function"==typeof t.on)n.once?t.once(e,r):t.on(e,r);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function i(s){n.once&&t.removeEventListener(e,i),r(s)}))}}Object.defineProperty(u,"defaultMaxListeners",{enumerable:!0,get:function(){return h},set:function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");h=t}}),u.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},u.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||o(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},u.prototype.getMaxListeners=function(){return d(this)},u.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var n="error"===t,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var o=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw o.context=s,o}var u=i[t];if(void 0===u)return!1;if("function"==typeof u)a(u,this,e);else{var h=u.length,c=y(u,h);for(r=0;r<h;++r)a(c[r],this,e)}return!0},u.prototype.addListener=function(t,e){return l(this,t,e,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(t,e){return l(this,t,e,!0)},u.prototype.once=function(t,e){return c(e),this.on(t,m(this,t,e)),this},u.prototype.prependOnceListener=function(t,e){return c(e),this.prependListener(t,m(this,t,e)),this},u.prototype.removeListener=function(t,e){var r,n,i,s,a;if(c(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(i=-1,s=r.length-1;s>=0;s--)if(r[s]===e||r[s].listener===e){a=r[s].listener,i=s;break}if(i<0)return this;0===i?r.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(r,i),1===r.length&&(n[t]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",t,a||e)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(t){var e,r,n;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 i,s=Object.keys(r);for(n=0;n<s.length;++n)"removeListener"!==(i=s[n])&&this.removeAllListeners(i);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(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},u.prototype.listeners=function(t){return p(this,t,!0)},u.prototype.rawListeners=function(t){return p(this,t,!1)},u.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):_.call(t,e)},u.prototype.listenerCount=_,u.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},(t,e,r)=>{"use strict";var n,i=r(6);t.exports=S,S.ReadableState=L,r(210).EventEmitter;var s,a=function(t,e){return t.listeners(e).length},o=r(212),u=r(203).Buffer,h=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},c=r(213);s=c&&c.debuglog?c.debuglog("stream"):function(){};var d,l,f,m=r(214),p=r(216),_=r(217).getHighWaterMark,y=r(218).codes,v=y.ERR_INVALID_ARG_TYPE,g=y.ERR_STREAM_PUSH_AFTER_EOF,b=y.ERR_METHOD_NOT_IMPLEMENTED,M=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(39)(S,o);var w=p.errorOrDestroy,k=["error","close","destroy","pause","resume"];function L(t,e,i){n=n||r(219),t=t||{},"boolean"!=typeof i&&(i=e instanceof n),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=_(this,t,"readableHighWaterMark",i),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&&(d||(d=r(222).StringDecoder),this.decoder=new d(t.encoding),this.encoding=t.encoding)}function S(t){if(n=n||r(219),!(this instanceof S))return new S(t);var e=this instanceof n;this._readableState=new L(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),o.call(this)}function x(t,e,r,n,i){s("readableAddChunk",e);var a,o=t._readableState;if(null===e)o.reading=!1,function(t,e){if(s("onEofChunk"),!e.ended){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?E(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,j(t)))}}(t,o);else if(i||(a=function(t,e){var r,n;return n=e,u.isBuffer(n)||n instanceof h||"string"==typeof e||void 0===e||t.objectMode||(r=new v("chunk",["string","Buffer","Uint8Array"],e)),r}(o,e)),a)w(t,a);else if(o.objectMode||e&&e.length>0)if("string"==typeof e||o.objectMode||Object.getPrototypeOf(e)===u.prototype||(e=function(t){return u.from(t)}(e)),n)o.endEmitted?w(t,new M):Y(t,o,e,!0);else if(o.ended)w(t,new g);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(e=o.decoder.write(e),o.objectMode||0!==e.length?Y(t,o,e,!1):A(t,o)):Y(t,o,e,!1)}else n||(o.reading=!1,A(t,o));return!o.ended&&(o.length<o.highWaterMark||0===o.length)}function Y(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&&E(t)),A(t,e)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),S.prototype.destroy=p.destroy,S.prototype._undestroy=p.undestroy,S.prototype._destroy=function(t,e){e(t)},S.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=u.from(t,e),e=""),r=!0),x(this,t,e,!1,r)},S.prototype.unshift=function(t){return x(this,t,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(t){d||(d=r(222).StringDecoder);var e=new d(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=e.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var T=1073741824;function D(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>=T?t=T:(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 E(t){var e=t._readableState;s("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(s("emitReadable",e.flowing),e.emittedReadable=!0,i.nextTick(j,t))}function j(t){var e=t._readableState;s("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,I(t)}function A(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(O,t,e))}function O(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var r=e.length;if(s("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function P(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 R(t){s("readable nexttick read 0"),t.read(0)}function H(t,e){s("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),I(t),e.flowing&&!e.reading&&t.read(0)}function I(t){var e=t._readableState;for(s("flow",e.flowing);e.flowing&&null!==t.read(););}function C(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 N(t){var e=t._readableState;s("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,i.nextTick(B,e,t))}function B(t,e){if(s("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 q(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}S.prototype.read=function(t){s("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 s("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?N(this):E(this),null;if(0===(t=D(t,e))&&e.ended)return 0===e.length&&N(this),null;var n,i=e.needReadable;return s("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&s("length less than watermark",i=!0),e.ended||e.reading?s("reading or ended",i=!1):i&&(s("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=D(r,e))),null===(n=t>0?C(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&&N(this)),null!==n&&this.emit("data",n),n},S.prototype._read=function(t){w(this,new b("_read()"))},S.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,s("pipe count=%d opts=%j",n.pipesCount,e);var o=e&&!1===e.end||t===i.stdout||t===i.stderr?p:u;function u(){s("onend"),t.end()}n.endEmitted?i.nextTick(o):r.once("end",o),t.on("unpipe",(function e(i,a){s("onunpipe"),i===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,s("cleanup"),t.removeListener("close",f),t.removeListener("finish",m),t.removeListener("drain",h),t.removeListener("error",l),t.removeListener("unpipe",e),r.removeListener("end",u),r.removeListener("end",p),r.removeListener("data",d),c=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||h())}));var h=function(t){return function(){var e=t._readableState;s("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&a(t,"data")&&(e.flowing=!0,I(t))}}(r);t.on("drain",h);var c=!1;function d(e){s("ondata");var i=t.write(e);s("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==q(n.pipes,t))&&!c&&(s("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function l(e){s("onerror",e),p(),t.removeListener("error",l),0===a(t,"error")&&w(t,e)}function f(){t.removeListener("finish",m),p()}function m(){s("onfinish"),t.removeListener("close",f),p()}function p(){s("unpipe"),r.unpipe(t)}return r.on("data",d),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",l),t.once("close",f),t.once("finish",m),t.emit("pipe",r),n.flowing||(s("pipe resume"),r.resume()),t},S.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,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var a=q(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},S.prototype.on=function(t,e){var r=o.prototype.on.call(this,t,e),n=this._readableState;return"data"===t?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===t&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,s("on readable",n.length,n.reading),n.length?E(this):n.reading||i.nextTick(R,this))),r},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(t,e){var r=o.prototype.removeListener.call(this,t,e);return"readable"===t&&i.nextTick(P,this),r},S.prototype.removeAllListeners=function(t){var e=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||i.nextTick(P,this),e},S.prototype.resume=function(){var t=this._readableState;return t.flowing||(s("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(H,t,e))}(this,t)),t.paused=!1,this},S.prototype.pause=function(){return s("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(s("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(s("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){s("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(e.push(i)||(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 a=0;a<k.length;a++)t.on(k[a],this.emit.bind(this,k[a]));return this._read=function(e){s("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===l&&(l=r(223)),l(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),S._fromList=C,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(t,e){return void 0===f&&(f=r(225)),f(S,t,e)})},(t,e,r)=>{t.exports=r(210).EventEmitter},()=>{},(t,e,r)=>{"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function s(t,e,r){return(e=o(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}var u=r(203).Buffer,h=r(215).inspect,c=h&&h.custom||"inspect";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}var e,r;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(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return u.alloc(0);for(var e,r,n,i=u.allocUnsafe(t>>>0),s=this.head,a=0;s;)e=s.data,r=i,n=a,u.prototype.copy.call(e,r,n),a+=s.data.length,s=s.next;return i}},{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 e=this.head,r=1,n=e.data;for(t-=n.length;e=e.next;){var i=e.data,s=t>i.length?i.length:t;if(s===i.length?n+=i:n+=i.slice(0,t),0==(t-=s)){s===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(s));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=u.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var i=r.data,s=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,s),0==(t-=s)){s===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(s));break}++n}return this.length-=n,e}},{key:c,value:function(t,e){return h(this,i(i({},e),{},{depth:0,customInspect:!1}))}}])&&a(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}()},()=>{},(t,e,r)=>{"use strict";var n=r(6);function i(t,e){a(t,e),s(t)}function s(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function a(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var r=this,o=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return o||u?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(a,this,t)):n.nextTick(a,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?r._writableState?r._writableState.errorEmitted?n.nextTick(s,r):(r._writableState.errorEmitted=!0,n.nextTick(i,r,t)):n.nextTick(i,r,t):e?(n.nextTick(s,r),e(t)):n.nextTick(s,r)})),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)}}},(t,e,r)=>{"use strict";var n=r(218).codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,r,i){var s=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,i,r);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0)throw new n(i?r:"highWaterMark",s);return Math.floor(s)}return t.objectMode?16:16384}}},t=>{"use strict";var e={};function r(t,r,n){n||(n=Error);var i=function(t){var e,n;function i(e,n,i){return t.call(this,function(t,e,n){return"string"==typeof r?r:r(t,e,n)}(e,n,i))||this}return n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,i}(n);i.prototype.name=n.name,i.prototype.code=t,e[t]=i}function n(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),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))}r("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(t,e,r){var i,s,a;if("string"==typeof e&&(s="not ",e.substr(0,4)===s)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-9,r)===e}(t," argument"))a="The ".concat(t," ").concat(i," ").concat(n(e,"type"));else{var o=function(t,e,r){return"number"!=typeof r&&(r=0),!(r+1>t.length)&&-1!==t.indexOf(".",r)}(t)?"property":"argument";a='The "'.concat(t,'" ').concat(o," ").concat(i," ").concat(n(e,"type"))}return a+". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=e},(t,e,r)=>{"use strict";var n=r(6),i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=c;var s=r(211),a=r(220);r(39)(c,s);for(var o=i(a.prototype),u=0;u<o.length;u++){var h=o[u];c.prototype[h]||(c.prototype[h]=a.prototype[h])}function c(t){if(!(this instanceof c))return new c(t);s.call(this,t),a.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",d)))}function d(){this._writableState.ended||n.nextTick(l,this)}function l(t){t.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.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)}})},(t,e,r)=>{"use strict";var n,i=r(6);function s(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e){var r=t.entry;for(t.entry=null;r;){var n=r.callback;e.pendingcb--,n(undefined),r=r.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=S,S.WritableState=L;var a,o={deprecate:r(221)},u=r(212),h=r(203).Buffer,c=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},d=r(216),l=r(217).getHighWaterMark,f=r(218).codes,m=f.ERR_INVALID_ARG_TYPE,p=f.ERR_METHOD_NOT_IMPLEMENTED,_=f.ERR_MULTIPLE_CALLBACK,y=f.ERR_STREAM_CANNOT_PIPE,v=f.ERR_STREAM_DESTROYED,g=f.ERR_STREAM_NULL_VALUES,b=f.ERR_STREAM_WRITE_AFTER_END,M=f.ERR_UNKNOWN_ENCODING,w=d.errorOrDestroy;function k(){}function L(t,e,a){n=n||r(219),t=t||{},"boolean"!=typeof a&&(a=e instanceof n),this.objectMode=!!t.objectMode,a&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=l(this,t,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===t.decodeStrings;this.decodeStrings=!o,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,n=r.sync,s=r.writecb;if("function"!=typeof s)throw new _;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,s){--e.pendingcb,r?(i.nextTick(s,n),i.nextTick(j,t,e),t._writableState.errorEmitted=!0,w(t,n)):(s(n),t._writableState.errorEmitted=!0,w(t,n),j(t,e))}(t,r,n,e,s);else{var a=D(r)||t.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||T(t,r),n?i.nextTick(Y,t,r,a,s):Y(t,r,a,s)}}(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 s(this)}function S(t){var e=this instanceof(n=n||r(219));if(!e&&!a.call(S,this))return new S(t);this._writableState=new L(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)),u.call(this)}function x(t,e,r,n,i,s,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new v("write")):r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function Y(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 T(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),a=e.corkedRequestsFree;a.entry=r;for(var o=0,u=!0;r;)i[o]=r,r.isBuf||(u=!1),r=r.next,o+=1;i.allBuffers=u,x(t,e,!0,e.length,i,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new s(e),e.bufferedRequestCount=0}else{for(;r;){var h=r.chunk,c=r.encoding,d=r.callback;if(x(t,e,!1,e.objectMode?1:h.length,h,c,d),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function D(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function E(t,e){t._final((function(r){e.pendingcb--,r&&w(t,r),e.prefinished=!0,t.emit("prefinish"),j(t,e)}))}function j(t,e){var r=D(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,i.nextTick(E,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}r(39)(S,u),L.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(L.prototype,"buffer",{get:o.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]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(t){return!!a.call(this,t)||this===S&&t&&t._writableState instanceof L}})):a=function(t){return t instanceof this},S.prototype.pipe=function(){w(this,new y)},S.prototype.write=function(t,e,r){var n,s=this._writableState,a=!1,o=!s.objectMode&&(n=t,h.isBuffer(n)||n instanceof c);return o&&!h.isBuffer(t)&&(t=function(t){return h.from(t)}(t)),"function"==typeof e&&(r=e,e=null),o?e="buffer":e||(e=s.defaultEncoding),"function"!=typeof r&&(r=k),s.ending?function(t,e){var r=new b;w(t,r),i.nextTick(e,r)}(this,r):(o||function(t,e,r,n){var s;return null===r?s=new g:"string"==typeof r||e.objectMode||(s=new m("chunk",["string","Buffer"],r)),!s||(w(t,s),i.nextTick(n,s),!1)}(this,s,t,r))&&(s.pendingcb++,a=function(t,e,r,n,i,s){if(!r){var a=function(t,e,r){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=h.from(e,r)),e}(e,n,i);n!==a&&(r=!0,i="buffer",n=a)}var o=e.objectMode?1:n.length;e.length+=o;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else x(t,e,!1,o,n,i,s);return u}(this,s,o,t,e,r)),a},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||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 M(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(t,e,r){r(new p("_write()"))},S.prototype._writev=null,S.prototype.end=function(t,e,r){var n=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),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,e,r){e.ending=!0,j(t,e),r&&(e.finished?i.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}(this,n,r),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),S.prototype.destroy=d.destroy,S.prototype._undestroy=d.undestroy,S.prototype._destroy=function(t,e){e(t)}},(t,e,r)=>{var n=r(4);function i(t){try{if(!r.g.localStorage)return!1}catch(t){return!1}var e=r.g.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}t.exports=function(t,e){if(i("noDeprecation"))return t;var r=!1;return function(){if(!r){if(i("throwDeprecation"))throw new Error(e);i("traceDeprecation")?n.trace(e):n.warn(e),r=!0}return t.apply(this,arguments)}}},(t,e,r)=>{"use strict";var n=r(202).Buffer,i=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 s(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===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=h,e=4;break;case"utf8":this.fillLast=o,e=4;break;case"base64":this.text=c,this.end=d,e=3;break;default:return this.write=l,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function o(t){var e=this.lastTotal-this.lastNeed,r=function(t,e){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!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function h(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 c(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function d(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function l(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}e.StringDecoder=s,s.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},s.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},s.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=a(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||-2===i?0:(i=a(e[n]))>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||-2===i?0:(i=a(e[n]))>=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},s.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}},(t,e,r)=>{"use strict";var n,i=r(6);function s(t,e,r){return(e=function(t){var e=function(t){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a=r(224),o=Symbol("lastResolve"),u=Symbol("lastReject"),h=Symbol("error"),c=Symbol("ended"),d=Symbol("lastPromise"),l=Symbol("handlePromise"),f=Symbol("stream");function m(t,e){return{value:t,done:e}}function p(t){var e=t[o];if(null!==e){var r=t[f].read();null!==r&&(t[d]=null,t[o]=null,t[u]=null,e(m(r,!1)))}}function _(t){i.nextTick(p,t)}var y=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((s(n={get stream(){return this[f]},next:function(){var t=this,e=this[h];if(null!==e)return Promise.reject(e);if(this[c])return Promise.resolve(m(void 0,!0));if(this[f].destroyed)return new Promise((function(e,r){i.nextTick((function(){t[h]?r(t[h]):e(m(void 0,!0))}))}));var r,n=this[d];if(n)r=new Promise(function(t,e){return function(r,n){t.then((function(){e[c]?r(m(void 0,!0)):e[l](r,n)}),n)}}(n,this));else{var s=this[f].read();if(null!==s)return Promise.resolve(m(s,!1));r=new Promise(this[l])}return this[d]=r,r}},Symbol.asyncIterator,(function(){return this})),s(n,"return",(function(){var t=this;return new Promise((function(e,r){t[f].destroy(null,(function(t){t?r(t):e(m(void 0,!0))}))}))})),n),y);t.exports=function(t){var e,r=Object.create(v,(s(e={},f,{value:t,writable:!0}),s(e,o,{value:null,writable:!0}),s(e,u,{value:null,writable:!0}),s(e,h,{value:null,writable:!0}),s(e,c,{value:t._readableState.endEmitted,writable:!0}),s(e,l,{value:function(t,e){var n=r[f].read();n?(r[d]=null,r[o]=null,r[u]=null,t(m(n,!1))):(r[o]=t,r[u]=e)},writable:!0}),e));return r[d]=null,a(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[u];return null!==e&&(r[d]=null,r[o]=null,r[u]=null,e(t)),void(r[h]=t)}var n=r[o];null!==n&&(r[d]=null,r[o]=null,r[u]=null,n(m(void 0,!0))),r[c]=!0})),t.on("readable",_.bind(null,r)),r}},(t,e,r)=>{"use strict";var n=r(218).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function t(e,r,s){if("function"==typeof r)return t(e,null,r);r||(r={}),s=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}(s||i);var a=r.readable||!1!==r.readable&&e.readable,o=r.writable||!1!==r.writable&&e.writable,u=function(){e.writable||c()},h=e._writableState&&e._writableState.finished,c=function(){o=!1,h=!0,a||s.call(e)},d=e._readableState&&e._readableState.endEmitted,l=function(){a=!1,d=!0,o||s.call(e)},f=function(t){s.call(e,t)},m=function(){var t;return a&&!d?(e._readableState&&e._readableState.ended||(t=new n),s.call(e,t)):o&&!h?(e._writableState&&e._writableState.ended||(t=new n),s.call(e,t)):void 0},p=function(){e.req.on("finish",c)};return function(t){return t.setHeader&&"function"==typeof t.abort}(e)?(e.on("complete",c),e.on("abort",m),e.req?p():e.on("request",p)):o&&!e._writableState&&(e.on("end",u),e.on("close",u)),e.on("end",l),e.on("finish",c),!1!==r.error&&e.on("error",f),e.on("close",m),function(){e.removeListener("complete",c),e.removeListener("abort",m),e.removeListener("request",p),e.req&&e.req.removeListener("finish",c),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",c),e.removeListener("end",l),e.removeListener("error",f),e.removeListener("close",m)}}},t=>{t.exports=function(){throw new Error("Readable.from is not available in the browser")}},(t,e,r)=>{"use strict";t.exports=c;var n=r(218).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,s=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(219);function h(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new s);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(t){if(!(this instanceof c))return new c(t);u.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",d)}function d(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?l(this,null,null):this._flush((function(e,r){l(t,e,r)}))}function l(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new o;if(t._transformState.transforming)throw new a;return t.push(null)}r(39)(c,u),c.prototype.push=function(t,e){return this._transformState.needTransform=!1,u.prototype.push.call(this,t,e)},c.prototype._transform=function(t,e,r){r(new i("_transform()"))},c.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.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))},c.prototype._destroy=function(t,e){u.prototype._destroy.call(this,t,(function(t){e(t)}))}},(t,e,r)=>{"use strict";t.exports=i;var n=r(226);function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}r(39)(i,n),i.prototype._transform=function(t,e,r){r(null,t)}},(t,e,r)=>{"use strict";var n,i=r(218).codes,s=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function o(t){if(t)throw t}function u(t){t()}function h(t,e){return t.pipe(e)}t.exports=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var c,d=function(t){return t.length?"function"!=typeof t[t.length-1]?o:t.pop():o}(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new s("streams");var l=e.map((function(t,i){var s=i<e.length-1;return function(t,e,i,s){s=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(s);var o=!1;t.on("close",(function(){o=!0})),void 0===n&&(n=r(224)),n(t,{readable:e,writable:i},(function(t){if(t)return s(t);o=!0,s()}));var u=!1;return function(e){if(!o&&!u)return u=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void s(e||new a("pipe"))}}(t,s,i>0,(function(t){c||(c=t),t&&l.forEach(u),s||(l.forEach(u),d(c))}))}));return e.reduce(h)}},(t,e,r)=>{"use strict";var n=r(203).Buffer,i=r(39),s=r(208),a=new Array(16),o=[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],u=[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],h=[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],c=[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],d=[0,1518500249,1859775393,2400959708,2840853838],l=[1352829926,1548603684,1836072691,2053994217,0];function f(){s.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function m(t,e){return t<<e|t>>>32-e}function p(t,e,r,n,i,s,a,o){return m(t+(e^r^n)+s+a|0,o)+i|0}function _(t,e,r,n,i,s,a,o){return m(t+(e&r|~e&n)+s+a|0,o)+i|0}function y(t,e,r,n,i,s,a,o){return m(t+((e|~r)^n)+s+a|0,o)+i|0}function v(t,e,r,n,i,s,a,o){return m(t+(e&n|r&~n)+s+a|0,o)+i|0}function g(t,e,r,n,i,s,a,o){return m(t+(e^(r|~n))+s+a|0,o)+i|0}i(f,s),f.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var r=0|this._a,n=0|this._b,i=0|this._c,s=0|this._d,f=0|this._e,b=0|this._a,M=0|this._b,w=0|this._c,k=0|this._d,L=0|this._e,S=0;S<80;S+=1){var x,Y;S<16?(x=p(r,n,i,s,f,t[o[S]],d[0],h[S]),Y=g(b,M,w,k,L,t[u[S]],l[0],c[S])):S<32?(x=_(r,n,i,s,f,t[o[S]],d[1],h[S]),Y=v(b,M,w,k,L,t[u[S]],l[1],c[S])):S<48?(x=y(r,n,i,s,f,t[o[S]],d[2],h[S]),Y=y(b,M,w,k,L,t[u[S]],l[2],c[S])):S<64?(x=v(r,n,i,s,f,t[o[S]],d[3],h[S]),Y=_(b,M,w,k,L,t[u[S]],l[3],c[S])):(x=g(r,n,i,s,f,t[o[S]],d[4],h[S]),Y=p(b,M,w,k,L,t[u[S]],l[4],c[S])),r=f,f=s,s=m(i,10),i=n,n=x,b=L,L=k,k=m(w,10),w=M,M=Y}var T=this._b+i+k|0;this._b=this._c+s+L|0,this._c=this._d+f+b|0,this._d=this._e+r+M|0,this._e=this._a+n+w|0,this._a=T},f.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},t.exports=f},(t,e,r)=>{var n=t.exports=function(t){t=t.toLowerCase();var e=n[t];if(!e)throw new Error(t+" is not supported (we accept pull requests)");return new e};n.sha=r(231),n.sha1=r(233),n.sha224=r(234),n.sha256=r(235),n.sha384=r(236),n.sha512=r(237)},(t,e,r)=>{var n=r(39),i=r(232),s=r(202).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function u(){this.init(),this._w=o,i.call(this,64,56)}function h(t){return t<<30|t>>>2}function c(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,i=0|this._b,s=0|this._c,o=0|this._d,u=0|this._e,d=0;d<16;++d)r[d]=t.readInt32BE(4*d);for(;d<80;++d)r[d]=r[d-3]^r[d-8]^r[d-14]^r[d-16];for(var l=0;l<80;++l){var f=~~(l/20),m=0|((e=n)<<5|e>>>27)+c(f,i,s,o)+u+r[l]+a[f];u=o,o=s,s=h(i),i=n,n=m}this._a=n+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=o+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var t=s.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=u},(t,e,r)=>{var n=r(202).Buffer;function i(t,e){this._block=n.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}i.prototype.update=function(t,e){"string"==typeof t&&(e=e||"utf8",t=n.from(t,e));for(var r=this._block,i=this._blockSize,s=t.length,a=this._len,o=0;o<s;){for(var u=a%i,h=Math.min(s-o,i-u),c=0;c<h;c++)r[u+c]=t[o+c];o+=h,(a+=h)%i==0&&this._update(r)}return this._len+=s,this},i.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,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var s=this._hash();return t?s.toString(t):s},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},(t,e,r)=>{var n=r(39),i=r(232),s=r(202).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function u(){this.init(),this._w=o,i.call(this,64,56)}function h(t){return t<<5|t>>>27}function c(t){return t<<30|t>>>2}function d(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,i=0|this._b,s=0|this._c,o=0|this._d,u=0|this._e,l=0;l<16;++l)r[l]=t.readInt32BE(4*l);for(;l<80;++l)r[l]=(e=r[l-3]^r[l-8]^r[l-14]^r[l-16])<<1|e>>>31;for(var f=0;f<80;++f){var m=~~(f/20),p=h(n)+d(m,i,s,o)+u+r[f]+a[m]|0;u=o,o=s,s=c(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=o+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var t=s.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=u},(t,e,r)=>{var n=r(39),i=r(235),s=r(232),a=r(202).Buffer,o=new Array(64);function u(){this.init(),this._w=o,s.call(this,64,56)}n(u,i),u.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},u.prototype._hash=function(){var t=a.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=u},(t,e,r)=>{var n=r(39),i=r(232),s=r(202).Buffer,a=[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],o=new Array(64);function u(){this.init(),this._w=o,i.call(this,64,56)}function h(t,e,r){return r^t&(e^r)}function c(t,e,r){return t&e|r&(t|e)}function d(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function l(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function f(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}n(u,i),u.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},u.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,i=0|this._b,s=0|this._c,o=0|this._d,u=0|this._e,m=0|this._f,p=0|this._g,_=0|this._h,y=0;y<16;++y)r[y]=t.readInt32BE(4*y);for(;y<64;++y)r[y]=0|(((e=r[y-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+r[y-7]+f(r[y-15])+r[y-16];for(var v=0;v<64;++v){var g=_+l(u)+h(u,m,p)+a[v]+r[v]|0,b=d(n)+c(n,i,s)|0;_=p,p=m,m=u,u=o+g|0,o=s,s=i,i=n,n=g+b|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=o+this._d|0,this._e=u+this._e|0,this._f=m+this._f|0,this._g=p+this._g|0,this._h=_+this._h|0},u.prototype._hash=function(){var t=s.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=u},(t,e,r)=>{var n=r(39),i=r(237),s=r(232),a=r(202).Buffer,o=new Array(160);function u(){this.init(),this._w=o,s.call(this,128,112)}n(u,i),u.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},u.prototype._hash=function(){var t=a.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=u},(t,e,r)=>{var n=r(39),i=r(232),s=r(202).Buffer,a=[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],o=new Array(160);function u(){this.init(),this._w=o,i.call(this,128,112)}function h(t,e,r){return r^t&(e^r)}function c(t,e,r){return t&e|r&(t|e)}function d(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function l(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function f(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 p(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function _(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function y(t,e){return t>>>0<e>>>0?1:0}n(u,i),u.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},u.prototype._update=function(t){for(var e=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,s=0|this._dh,o=0|this._eh,u=0|this._fh,v=0|this._gh,g=0|this._hh,b=0|this._al,M=0|this._bl,w=0|this._cl,k=0|this._dl,L=0|this._el,S=0|this._fl,x=0|this._gl,Y=0|this._hl,T=0;T<32;T+=2)e[T]=t.readInt32BE(4*T),e[T+1]=t.readInt32BE(4*T+4);for(;T<160;T+=2){var D=e[T-30],E=e[T-30+1],j=f(D,E),A=m(E,D),O=p(D=e[T-4],E=e[T-4+1]),P=_(E,D),R=e[T-14],H=e[T-14+1],I=e[T-32],C=e[T-32+1],N=A+H|0,B=j+R+y(N,A)|0;B=(B=B+O+y(N=N+P|0,P)|0)+I+y(N=N+C|0,C)|0,e[T]=B,e[T+1]=N}for(var q=0;q<160;q+=2){B=e[q],N=e[q+1];var F=c(r,n,i),U=c(b,M,w),z=d(r,b),W=d(b,r),J=l(o,L),G=l(L,o),K=a[q],V=a[q+1],Z=h(o,u,v),$=h(L,S,x),X=Y+G|0,Q=g+J+y(X,Y)|0;Q=(Q=(Q=Q+Z+y(X=X+$|0,$)|0)+K+y(X=X+V|0,V)|0)+B+y(X=X+N|0,N)|0;var tt=W+U|0,et=z+F+y(tt,W)|0;g=v,Y=x,v=u,x=S,u=o,S=L,o=s+Q+y(L=k+X|0,k)|0,s=i,k=w,i=n,w=M,n=r,M=b,r=Q+et+y(b=X+tt|0,X)|0}this._al=this._al+b|0,this._bl=this._bl+M|0,this._cl=this._cl+w|0,this._dl=this._dl+k|0,this._el=this._el+L|0,this._fl=this._fl+S|0,this._gl=this._gl+x|0,this._hl=this._hl+Y|0,this._ah=this._ah+r+y(this._al,b)|0,this._bh=this._bh+n+y(this._bl,M)|0,this._ch=this._ch+i+y(this._cl,w)|0,this._dh=this._dh+s+y(this._dl,k)|0,this._eh=this._eh+o+y(this._el,L)|0,this._fh=this._fh+u+y(this._fl,S)|0,this._gh=this._gh+v+y(this._gl,x)|0,this._hh=this._hh+g+y(this._hl,Y)|0},u.prototype._hash=function(){var t=s.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=u},(t,e,r)=>{var n=r(202).Buffer,i=r(209).Transform,s=r(222).StringDecoder;function a(t){i.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(39)(a,i),a.prototype.update=function(t,e,r){"string"==typeof t&&(t=n.from(t,e));var i=this._update(t);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(t,e,r){var n;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(t){n=t}finally{r(n)}},a.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},a.prototype._finalOrDigest=function(t){var e=this.__final()||n.alloc(0);return t&&(e=this._toString(e,t,!0)),e},a.prototype._toString=function(t,e,r){if(this._decoder||(this._decoder=new s(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=a},(t,e,r)=>{"use strict";var n=r(39),i=r(240),s=r(238),a=r(202).Buffer,o=r(241),u=r(229),h=r(230),c=a.alloc(128);function d(t,e){s.call(this,"digest"),"string"==typeof e&&(e=a.from(e));var r="sha512"===t||"sha384"===t?128:64;this._alg=t,this._key=e,e.length>r?e=("rmd160"===t?new u:h(t)).update(e).digest():e.length<r&&(e=a.concat([e,c],r));for(var n=this._ipad=a.allocUnsafe(r),i=this._opad=a.allocUnsafe(r),o=0;o<r;o++)n[o]=54^e[o],i[o]=92^e[o];this._hash="rmd160"===t?new u:h(t),this._hash.update(n)}n(d,s),d.prototype._update=function(t){this._hash.update(t)},d.prototype._final=function(){var t=this._hash.digest();return("rmd160"===this._alg?new u:h(this._alg)).update(this._opad).update(t).digest()},t.exports=function(t,e){return"rmd160"===(t=t.toLowerCase())||"ripemd160"===t?new d("rmd160",e):"md5"===t?new i(o,e):new d(t,e)}},(t,e,r)=>{"use strict";var n=r(39),i=r(202).Buffer,s=r(238),a=i.alloc(128),o=64;function u(t,e){s.call(this,"digest"),"string"==typeof e&&(e=i.from(e)),this._alg=t,this._key=e,e.length>o?e=t(e):e.length<o&&(e=i.concat([e,a],o));for(var r=this._ipad=i.allocUnsafe(o),n=this._opad=i.allocUnsafe(o),u=0;u<o;u++)r[u]=54^e[u],n[u]=92^e[u];this._hash=[r]}n(u,s),u.prototype._update=function(t){this._hash.push(t)},u.prototype._final=function(){var t=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,t]))},t.exports=u},(t,e,r)=>{var n=r(207);t.exports=function(t){return(new n).update(t).digest()}},(t,e,r)=>{"use strict";t.exports=r(243)},t=>{"use strict";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"}}')},(t,e,r)=>{e.pbkdf2=r(245),e.pbkdf2Sync=r(248)},(t,e,r)=>{var n,i,s=r(202).Buffer,a=r(246),o=r(247),u=r(248),h=r(249),c=r.g.crypto&&r.g.crypto.subtle,d={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"},l=[];function f(){return i||(i=r.g.process&&r.g.process.nextTick?r.g.process.nextTick:r.g.queueMicrotask?r.g.queueMicrotask:r.g.setImmediate?r.g.setImmediate:r.g.setTimeout)}function m(t,e,r,n,i){return c.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then((function(t){return c.deriveBits({name:"PBKDF2",salt:e,iterations:r,hash:{name:i}},t,n<<3)})).then((function(t){return s.from(t)}))}t.exports=function(t,e,i,p,_,y){"function"==typeof _&&(y=_,_=void 0);var v=d[(_=_||"sha1").toLowerCase()];if(v&&"function"==typeof r.g.Promise){if(a(i,p),t=h(t,o,"Password"),e=h(e,o,"Salt"),"function"!=typeof y)throw new Error("No callback provided to pbkdf2");!function(t,e){t.then((function(t){f()((function(){e(null,t)}))}),(function(t){f()((function(){e(t)}))}))}(function(t){if(r.g.process&&!r.g.process.browser)return Promise.resolve(!1);if(!c||!c.importKey||!c.deriveBits)return Promise.resolve(!1);if(void 0!==l[t])return l[t];var e=m(n=n||s.alloc(8),n,10,128,t).then((function(){return!0})).catch((function(){return!1}));return l[t]=e,e}(v).then((function(r){return r?m(t,e,i,p,v):u(t,e,i,p,_)})),y)}else f()((function(){var r;try{r=u(t,e,i,p,_)}catch(t){return y(t)}y(null,r)}))}},t=>{var e=Math.pow(2,30)-1;t.exports=function(t,r){if("number"!=typeof t)throw new TypeError("Iterations not a number");if(t<0)throw new TypeError("Bad iterations");if("number"!=typeof r)throw new TypeError("Key length not a number");if(r<0||r>e||r!=r)throw new TypeError("Bad key length")}},(t,e,r)=>{var n,i=r(6);n=r.g.process&&r.g.process.browser?"utf-8":r.g.process&&r.g.process.version?parseInt(i.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",t.exports=n},(t,e,r)=>{var n=r(241),i=r(229),s=r(230),a=r(202).Buffer,o=r(246),u=r(247),h=r(249),c=a.alloc(128),d={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function l(t,e,r){var o=function(t){return"rmd160"===t||"ripemd160"===t?function(t){return(new i).update(t).digest()}:"md5"===t?n:function(e){return s(t).update(e).digest()}}(t),u="sha512"===t||"sha384"===t?128:64;e.length>u?e=o(e):e.length<u&&(e=a.concat([e,c],u));for(var h=a.allocUnsafe(u+d[t]),l=a.allocUnsafe(u+d[t]),f=0;f<u;f++)h[f]=54^e[f],l[f]=92^e[f];var m=a.allocUnsafe(u+r+4);h.copy(m,0,0,u),this.ipad1=m,this.ipad2=h,this.opad=l,this.alg=t,this.blocksize=u,this.hash=o,this.size=d[t]}l.prototype.run=function(t,e){return t.copy(e,this.blocksize),this.hash(e).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(t,e,r,n,i){o(r,n);var s=new l(i=i||"sha1",t=h(t,u,"Password"),(e=h(e,u,"Salt")).length),c=a.allocUnsafe(n),f=a.allocUnsafe(e.length+4);e.copy(f,0,0,e.length);for(var m=0,p=d[i],_=Math.ceil(n/p),y=1;y<=_;y++){f.writeUInt32BE(y,e.length);for(var v=s.run(f,s.ipad1),g=v,b=1;b<r;b++){g=s.run(g,s.ipad2);for(var M=0;M<p;M++)v[M]^=g[M]}v.copy(c,m),m+=p}return c}},(t,e,r)=>{var n=r(202).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")}},(t,e,r)=>{var n=r(251),i=r(259),s=r(261),a=r(278),o=r(276);function u(t,e,r){if(t=t.toLowerCase(),s[t])return i.createCipheriv(t,e,r);if(a[t])return new n({key:e,iv:r,mode:t});throw new TypeError("invalid suite type")}function h(t,e,r){if(t=t.toLowerCase(),s[t])return i.createDecipheriv(t,e,r);if(a[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(),s[t])r=s[t].key,n=s[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");r=8*a[t].key,n=a[t].iv}var i=o(e,!1,r,n);return u(t,i.key,i.iv)},e.createCipheriv=e.Cipheriv=u,e.createDecipher=e.Decipher=function(t,e){var r,n;if(t=t.toLowerCase(),s[t])r=s[t].key,n=s[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");r=8*a[t].key,n=a[t].iv}var i=o(e,!1,r,n);return h(t,i.key,i.iv)},e.createDecipheriv=e.Decipheriv=h,e.listCiphers=e.getCiphers=function(){return Object.keys(a).concat(i.getCiphers())}},(t,e,r)=>{var n=r(238),i=r(252),s=r(39),a=r(202).Buffer,o={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function u(t){n.call(this);var e,r=t.mode.toLowerCase(),i=o[r];e=t.decrypt?"decrypt":"encrypt";var s=t.key;a.isBuffer(s)||(s=a.from(s)),"des-ede"!==r&&"des-ede-cbc"!==r||(s=a.concat([s,s.slice(0,8)]));var u=t.iv;a.isBuffer(u)||(u=a.from(u)),this._des=i.create({key:s,iv:u,type:e})}o.des=o["des-cbc"],o.des3=o["des-ede3-cbc"],t.exports=u,s(u,n),u.prototype._update=function(t){return a.from(this._des.update(t))},u.prototype._final=function(){return a.from(this._des.final())}},(t,e,r)=>{"use strict";e.utils=r(253),e.Cipher=r(254),e.DES=r(256),e.CBC=r(257),e.EDE=r(258)},(t,e)=>{"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 i=0,s=0,a=6;a>=0;a-=2){for(var o=0;o<=24;o+=8)i<<=1,i|=e>>>o+a&1;for(o=0;o<=24;o+=8)i<<=1,i|=t>>>o+a&1}for(a=6;a>=0;a-=2){for(o=1;o<=25;o+=8)s<<=1,s|=e>>>o+a&1;for(o=1;o<=25;o+=8)s<<=1,s|=t>>>o+a&1}r[n+0]=i>>>0,r[n+1]=s>>>0},e.rip=function(t,e,r,n){for(var i=0,s=0,a=0;a<4;a++)for(var o=24;o>=0;o-=8)i<<=1,i|=e>>>o+a&1,i<<=1,i|=t>>>o+a&1;for(a=4;a<8;a++)for(o=24;o>=0;o-=8)s<<=1,s|=e>>>o+a&1,s<<=1,s|=t>>>o+a&1;r[n+0]=i>>>0,r[n+1]=s>>>0},e.pc1=function(t,e,r,n){for(var i=0,s=0,a=7;a>=5;a--){for(var o=0;o<=24;o+=8)i<<=1,i|=e>>o+a&1;for(o=0;o<=24;o+=8)i<<=1,i|=t>>o+a&1}for(o=0;o<=24;o+=8)i<<=1,i|=e>>o+a&1;for(a=1;a<=3;a++){for(o=0;o<=24;o+=8)s<<=1,s|=e>>o+a&1;for(o=0;o<=24;o+=8)s<<=1,s|=t>>o+a&1}for(o=0;o<=24;o+=8)s<<=1,s|=t>>o+a&1;r[n+0]=i>>>0,r[n+1]=s>>>0},e.r28shl=function(t,e){return t<<e&268435455|t>>>28-e};var r=[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,n,i){for(var s=0,a=0,o=r.length>>>1,u=0;u<o;u++)s<<=1,s|=t>>>r[u]&1;for(u=o;u<r.length;u++)a<<=1,a|=e>>>r[u]&1;n[i+0]=s>>>0,n[i+1]=a>>>0},e.expand=function(t,e,r){var n=0,i=0;n=(1&t)<<5|t>>>27;for(var s=23;s>=15;s-=4)n<<=6,n|=t>>>s&63;for(s=11;s>=3;s-=4)i|=t>>>s&63,i<<=6;i|=(31&t)<<1|t>>>31,e[r+0]=n>>>0,e[r+1]=i>>>0};var n=[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|=n[64*i+(t>>>18-6*i&63)];for(i=0;i<4;i++)r<<=4,r|=n[256+64*i+(e>>>18-6*i&63)];return r>>>0};var i=[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,r=0;r<i.length;r++)e<<=1,e|=t>>>i[r]&1;return e>>>0},e.padSplit=function(t,e,r){for(var n=t.toString(2);n.length<e;)n="0"+n;for(var i=[],s=0;s<e;s+=r)i.push(n.slice(s,s+r));return i.join(" ")}},(t,e,r)=>{"use strict";var n=r(255);function i(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=!1!==t.padding}t.exports=i,i.prototype._init=function(){},i.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},i.prototype._buffer=function(t,e){for(var r=Math.min(this.buffer.length-this.bufferOff,t.length-e),n=0;n<r;n++)this.buffer[this.bufferOff+n]=t[e+n];return this.bufferOff+=r,r},i.prototype._flushBuffer=function(t,e){return this._update(this.buffer,0,t,e),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(t){var e=0,r=0,n=(this.bufferOff+t.length)/this.blockSize|0,i=new Array(n*this.blockSize);0!==this.bufferOff&&(e+=this._buffer(t,e),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(i,r)));for(var s=t.length-(t.length-e)%this.blockSize;e<s;e+=this.blockSize)this._update(t,e,i,r),r+=this.blockSize;for(;e<t.length;e++,this.bufferOff++)this.buffer[this.bufferOff]=t[e];return i},i.prototype._updateDecrypt=function(t){for(var e=0,r=0,n=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,i=new Array(n*this.blockSize);n>0;n--)e+=this._buffer(t,e),r+=this._flushBuffer(i,r);return e+=this._buffer(t,e),i},i.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},i.prototype._pad=function(t,e){if(0===e)return!1;for(;e<t.length;)t[e++]=0;return!0},i.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},i.prototype._unpad=function(t){return t},i.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)}},t=>{function e(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=e,e.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)}},(t,e,r)=>{"use strict";var n=r(255),i=r(39),s=r(253),a=r(254);function o(){this.tmp=new Array(2),this.keys=null}function u(t){a.call(this,t);var e=new o;this._desState=e,this.deriveKeys(e,t.key)}i(u,a),t.exports=u,u.create=function(t){return new u(t)};var h=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(t,e){t.keys=new Array(32),n.equal(e.length,this.blockSize,"Invalid key length");var r=s.readUInt32BE(e,0),i=s.readUInt32BE(e,4);s.pc1(r,i,t.tmp,0),r=t.tmp[0],i=t.tmp[1];for(var a=0;a<t.keys.length;a+=2){var o=h[a>>>1];r=s.r28shl(r,o),i=s.r28shl(i,o),s.pc2(r,i,t.keys,a)}},u.prototype._update=function(t,e,r,n){var i=this._desState,a=s.readUInt32BE(t,e),o=s.readUInt32BE(t,e+4);s.ip(a,o,i.tmp,0),a=i.tmp[0],o=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,o,i.tmp,0):this._decrypt(i,a,o,i.tmp,0),a=i.tmp[0],o=i.tmp[1],s.writeUInt32BE(r,a,n),s.writeUInt32BE(r,o,n+4)},u.prototype._pad=function(t,e){if(!1===this.padding)return!1;for(var r=t.length-e,n=e;n<t.length;n++)t[n]=r;return!0},u.prototype._unpad=function(t){if(!1===this.padding)return t;for(var e=t[t.length-1],r=t.length-e;r<t.length;r++)n.equal(t[r],e);return t.slice(0,t.length-e)},u.prototype._encrypt=function(t,e,r,n,i){for(var a=e,o=r,u=0;u<t.keys.length;u+=2){var h=t.keys[u],c=t.keys[u+1];s.expand(o,t.tmp,0),h^=t.tmp[0],c^=t.tmp[1];var d=s.substitute(h,c),l=o;o=(a^s.permute(d))>>>0,a=l}s.rip(o,a,n,i)},u.prototype._decrypt=function(t,e,r,n,i){for(var a=r,o=e,u=t.keys.length-2;u>=0;u-=2){var h=t.keys[u],c=t.keys[u+1];s.expand(a,t.tmp,0),h^=t.tmp[0],c^=t.tmp[1];var d=s.substitute(h,c),l=a;a=(o^s.permute(d))>>>0,o=l}s.rip(a,o,n,i)}},(t,e,r)=>{"use strict";var n=r(255),i=r(39),s={};function a(t){n.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=t[e]}e.instantiate=function(t){function e(e){t.call(this,e),this._cbcInit()}i(e,t);for(var r=Object.keys(s),n=0;n<r.length;n++){var a=r[n];e.prototype[a]=s[a]}return e.create=function(t){return new e(t)},e},s._cbcInit=function(){var t=new a(this.options.iv);this._cbcState=t},s._update=function(t,e,r,n){var i=this._cbcState,s=this.constructor.super_.prototype,a=i.iv;if("encrypt"===this.type){for(var o=0;o<this.blockSize;o++)a[o]^=t[e+o];for(s._update.call(this,a,0,r,n),o=0;o<this.blockSize;o++)a[o]=r[n+o]}else{for(s._update.call(this,t,e,r,n),o=0;o<this.blockSize;o++)r[n+o]^=a[o];for(o=0;o<this.blockSize;o++)a[o]=t[e+o]}}},(t,e,r)=>{"use strict";var n=r(255),i=r(39),s=r(254),a=r(256);function o(t,e){n.equal(e.length,24,"Invalid key length");var r=e.slice(0,8),i=e.slice(8,16),s=e.slice(16,24);this.ciphers="encrypt"===t?[a.create({type:"encrypt",key:r}),a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:s})]:[a.create({type:"decrypt",key:s}),a.create({type:"encrypt",key:i}),a.create({type:"decrypt",key:r})]}function u(t){s.call(this,t);var e=new o(this.type,this.options.key);this._edeState=e}i(u,s),t.exports=u,u.create=function(t){return new u(t)},u.prototype._update=function(t,e,r,n){var i=this._edeState;i.ciphers[0]._update(t,e,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},u.prototype._pad=a.prototype._pad,u.prototype._unpad=a.prototype._unpad},(t,e,r)=>{var n=r(260),i=r(277),s=r(271);e.createCipher=e.Cipher=n.createCipher,e.createCipheriv=e.Cipheriv=n.createCipheriv,e.createDecipher=e.Decipher=i.createDecipher,e.createDecipheriv=e.Decipheriv=i.createDecipheriv,e.listCiphers=e.getCiphers=function(){return Object.keys(s)}},(t,e,r)=>{var n=r(261),i=r(272),s=r(202).Buffer,a=r(275),o=r(238),u=r(273),h=r(276);function c(t,e,r){o.call(this),this._cache=new l,this._cipher=new u.AES(e),this._prev=s.from(r),this._mode=t,this._autopadding=!0}r(39)(c,o),c.prototype._update=function(t){var e,r;this._cache.add(t);for(var n=[];e=this._cache.get();)r=this._mode.encrypt(this,e),n.push(r);return s.concat(n)};var d=s.alloc(16,16);function l(){this.cache=s.allocUnsafe(0)}function f(t,e,r){var o=n[t.toLowerCase()];if(!o)throw new TypeError("invalid suite type");if("string"==typeof e&&(e=s.from(e)),e.length!==o.key/8)throw new TypeError("invalid key length "+e.length);if("string"==typeof r&&(r=s.from(r)),"GCM"!==o.mode&&r.length!==o.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===o.type?new a(o.module,e,r):"auth"===o.type?new i(o.module,e,r):new c(o.module,e,r)}c.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(d))throw this._cipher.scrub(),new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},l.prototype.add=function(t){this.cache=s.concat([this.cache,t])},l.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},l.prototype.flush=function(){for(var t=16-this.cache.length,e=s.allocUnsafe(t),r=-1;++r<t;)e.writeUInt8(t,r);return s.concat([this.cache,e])},e.createCipheriv=f,e.createCipher=function(t,e){var r=n[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=h(e,!1,r.key,r.iv);return f(t,i.key,i.iv)}},(t,e,r)=>{var n={ECB:r(262),CBC:r(263),CFB:r(265),CFB8:r(266),CFB1:r(267),OFB:r(268),CTR:r(269),GCM:r(269)},i=r(271);for(var s in i)i[s].module=n[i[s].mode];t.exports=i},(t,e)=>{e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},(t,e,r)=>{var n=r(264);e.encrypt=function(t,e){var r=n(e,t._prev);return t._prev=t._cipher.encryptBlock(r),t._prev},e.decrypt=function(t,e){var r=t._prev;t._prev=e;var i=t._cipher.decryptBlock(e);return n(i,r)}},(t,e,r)=>{var n=r(203).Buffer;t.exports=function(t,e){for(var r=Math.min(t.length,e.length),i=new n(r),s=0;s<r;++s)i[s]=t[s]^e[s];return i}},(t,e,r)=>{var n=r(202).Buffer,i=r(264);function s(t,e,r){var s=e.length,a=i(e,t._cache);return t._cache=t._cache.slice(s),t._prev=n.concat([t._prev,r?e:a]),a}e.encrypt=function(t,e,r){for(var i,a=n.allocUnsafe(0);e.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=n.allocUnsafe(0)),!(t._cache.length<=e.length)){a=n.concat([a,s(t,e,r)]);break}i=t._cache.length,a=n.concat([a,s(t,e.slice(0,i),r)]),e=e.slice(i)}return a}},(t,e,r)=>{var n=r(202).Buffer;function i(t,e,r){var i=t._cipher.encryptBlock(t._prev)[0]^e;return t._prev=n.concat([t._prev.slice(1),n.from([r?e:i])]),i}e.encrypt=function(t,e,r){for(var s=e.length,a=n.allocUnsafe(s),o=-1;++o<s;)a[o]=i(t,e[o],r);return a}},(t,e,r)=>{var n=r(202).Buffer;function i(t,e,r){for(var n,i,a=-1,o=0;++a<8;)n=e&1<<7-a?128:0,o+=(128&(i=t._cipher.encryptBlock(t._prev)[0]^n))>>a%8,t._prev=s(t._prev,r?n:i);return o}function s(t,e){var r=t.length,i=-1,s=n.allocUnsafe(t.length);for(t=n.concat([t,n.from([e])]);++i<r;)s[i]=t[i]<<1|t[i+1]>>7;return s}e.encrypt=function(t,e,r){for(var s=e.length,a=n.allocUnsafe(s),o=-1;++o<s;)a[o]=i(t,e[o],r);return a}},(t,e,r)=>{var n=r(203).Buffer,i=r(264);function s(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}e.encrypt=function(t,e){for(;t._cache.length<e.length;)t._cache=n.concat([t._cache,s(t)]);var r=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),i(e,r)}},(t,e,r)=>{var n=r(264),i=r(202).Buffer,s=r(270);function a(t){var e=t._cipher.encryptBlockRaw(t._prev);return s(t._prev),e}e.encrypt=function(t,e){var r=Math.ceil(e.length/16),s=t._cache.length;t._cache=i.concat([t._cache,i.allocUnsafe(16*r)]);for(var o=0;o<r;o++){var u=a(t),h=s+16*o;t._cache.writeUInt32BE(u[0],h+0),t._cache.writeUInt32BE(u[1],h+4),t._cache.writeUInt32BE(u[2],h+8),t._cache.writeUInt32BE(u[3],h+12)}var c=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),n(e,c)}},t=>{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)}}},t=>{"use strict";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"}}')},(t,e,r)=>{var n=r(273),i=r(202).Buffer,s=r(238),a=r(39),o=r(274),u=r(264),h=r(270);function c(t,e,r,a){s.call(this);var u=i.alloc(4,0);this._cipher=new n.AES(e);var c=this._cipher.encryptBlock(u);this._ghash=new o(c),r=function(t,e,r){if(12===e.length)return t._finID=i.concat([e,i.from([0,0,0,1])]),i.concat([e,i.from([0,0,0,2])]);var n=new o(r),s=e.length,a=s%16;n.update(e),a&&(a=16-a,n.update(i.alloc(a,0))),n.update(i.alloc(8,0));var u=8*s,c=i.alloc(8);c.writeUIntBE(u,0,8),n.update(c),t._finID=n.state;var d=i.from(t._finID);return h(d),d}(this,r,c),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}a(c,s),c.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=i.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},c.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=u(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(t,e){var r=0;t.length!==e.length&&r++;for(var n=Math.min(t.length,e.length),i=0;i<n;++i)r+=t[i]^e[i];return r}(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()},c.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},c.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t},c.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=c},(t,e,r)=>{var n=r(202).Buffer;function i(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 s(t){for(;0<t.length;t++)t[0]=0}function a(t,e,r,n,i){for(var s,a,o,u,h=r[0],c=r[1],d=r[2],l=r[3],f=t[0]^e[0],m=t[1]^e[1],p=t[2]^e[2],_=t[3]^e[3],y=4,v=1;v<i;v++)s=h[f>>>24]^c[m>>>16&255]^d[p>>>8&255]^l[255&_]^e[y++],a=h[m>>>24]^c[p>>>16&255]^d[_>>>8&255]^l[255&f]^e[y++],o=h[p>>>24]^c[_>>>16&255]^d[f>>>8&255]^l[255&m]^e[y++],u=h[_>>>24]^c[f>>>16&255]^d[m>>>8&255]^l[255&p]^e[y++],f=s,m=a,p=o,_=u;return s=(n[f>>>24]<<24|n[m>>>16&255]<<16|n[p>>>8&255]<<8|n[255&_])^e[y++],a=(n[m>>>24]<<24|n[p>>>16&255]<<16|n[_>>>8&255]<<8|n[255&f])^e[y++],o=(n[p>>>24]<<24|n[_>>>16&255]<<16|n[f>>>8&255]<<8|n[255&m])^e[y++],u=(n[_>>>24]<<24|n[f>>>16&255]<<16|n[m>>>8&255]<<8|n[255&p])^e[y++],[s>>>=0,a>>>=0,o>>>=0,u>>>=0]}var o=[0,1,2,4,8,16,32,64,128,27,54],u=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=[],i=[[],[],[],[]],s=[[],[],[],[]],a=0,o=0,u=0;u<256;++u){var h=o^o<<1^o<<2^o<<3^o<<4;h=h>>>8^255&h^99,r[a]=h,n[h]=a;var c=t[a],d=t[c],l=t[d],f=257*t[h]^16843008*h;i[0][a]=f<<24|f>>>8,i[1][a]=f<<16|f>>>16,i[2][a]=f<<8|f>>>24,i[3][a]=f,f=16843009*l^65537*d^257*c^16843008*a,s[0][h]=f<<24|f>>>8,s[1][h]=f<<16|f>>>16,s[2][h]=f<<8|f>>>24,s[3][h]=f,0===a?a=o=1:(a=c^t[t[t[l^c]]],o^=t[t[o]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:s}}();function h(t){this._key=i(t),this._reset()}h.blockSize=16,h.keySize=32,h.prototype.blockSize=h.blockSize,h.prototype.keySize=h.keySize,h.prototype._reset=function(){for(var t=this._key,e=t.length,r=e+6,n=4*(r+1),i=[],s=0;s<e;s++)i[s]=t[s];for(s=e;s<n;s++){var a=i[s-1];s%e==0?(a=a<<8|a>>>24,a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a],a^=o[s/e|0]<<24):e>6&&s%e==4&&(a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a]),i[s]=i[s-e]^a}for(var h=[],c=0;c<n;c++){var d=n-c,l=i[d-(c%4?0:4)];h[c]=c<4||d<=4?l:u.INV_SUB_MIX[0][u.SBOX[l>>>24]]^u.INV_SUB_MIX[1][u.SBOX[l>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[l>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&l]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=h},h.prototype.encryptBlockRaw=function(t){return a(t=i(t),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},h.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},h.prototype.decryptBlock=function(t){var e=(t=i(t))[1];t[1]=t[3],t[3]=e;var r=a(t,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),s=n.allocUnsafe(16);return s.writeUInt32BE(r[0],0),s.writeUInt32BE(r[3],4),s.writeUInt32BE(r[2],8),s.writeUInt32BE(r[1],12),s},h.prototype.scrub=function(){s(this._keySchedule),s(this._invKeySchedule),s(this._key)},t.exports.AES=h},(t,e,r)=>{var n=r(202).Buffer,i=n.alloc(16,0);function s(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 a(t){this.h=t,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}a.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()},a.prototype._multiply=function(){for(var t,e,r,n=[(t=this.h).readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)],i=[0,0,0,0],a=-1;++a<128;){for(!!(this.state[~~(a/8)]&1<<7-a%8)&&(i[0]^=n[0],i[1]^=n[1],i[2]^=n[2],i[3]^=n[3]),r=!!(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=s(i)},a.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)},a.prototype.final=function(t,e){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(s([0,t,0,e])),this.state},t.exports=a},(t,e,r)=>{var n=r(273),i=r(202).Buffer,s=r(238);function a(t,e,r,a){s.call(this),this._cipher=new n.AES(e),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._mode=t}r(39)(a,s),a.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},t.exports=a},(t,e,r)=>{var n=r(202).Buffer,i=r(207);t.exports=function(t,e,r,s){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 a=r/8,o=n.alloc(a),u=n.alloc(s||0),h=n.alloc(0);a>0||s>0;){var c=new i;c.update(h),c.update(t),e&&c.update(e),h=c.digest();var d=0;if(a>0){var l=o.length-a;d=Math.min(a,h.length),h.copy(o,l,0,d),a-=d}if(d<h.length&&s>0){var f=u.length-s,m=Math.min(s,h.length-d);h.copy(u,f,d,d+m),s-=m}}return h.fill(0),{key:o,iv:u}}},(t,e,r)=>{var n=r(272),i=r(202).Buffer,s=r(261),a=r(275),o=r(238),u=r(273),h=r(276);function c(t,e,r){o.call(this),this._cache=new d,this._last=void 0,this._cipher=new u.AES(e),this._prev=i.from(r),this._mode=t,this._autopadding=!0}function d(){this.cache=i.allocUnsafe(0)}function l(t,e,r){var o=s[t.toLowerCase()];if(!o)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==o.mode&&r.length!==o.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof e&&(e=i.from(e)),e.length!==o.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===o.type?new a(o.module,e,r,!0):"auth"===o.type?new n(o.module,e,r,!0):new c(o.module,e,r)}r(39)(c,o),c.prototype._update=function(t){var e,r;this._cache.add(t);for(var n=[];e=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,e),n.push(r);return i.concat(n)},c.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");for(var r=-1;++r<e;)if(t[r+(16-e)]!==e)throw new Error("unable to decrypt data");if(16!==e)return t.slice(0,16-e)}(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},d.prototype.add=function(t){this.cache=i.concat([this.cache,t])},d.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},d.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=function(t,e){var r=s[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=h(e,!1,r.key,r.iv);return l(t,n.key,n.iv)},e.createDecipheriv=l},(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}},(t,e,r)=>{var n=r(203).Buffer,i=r(280),s=r(287),a=r(288),o={binary:!0,hex:!0,base64:!0};e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=function(t){var e=new n(s[t].prime,"hex"),r=new n(s[t].gen,"hex");return new a(e,r)},e.createDiffieHellman=e.DiffieHellman=function t(e,r,s,u){return n.isBuffer(r)||void 0===o[r]?t(e,"binary",r,s):(r=r||"binary",u=u||"binary",s=s||new n([2]),n.isBuffer(s)||(s=new n(s,u)),"number"==typeof e?new a(i(e,s),s,!0):(n.isBuffer(e)||(e=new n(e,r)),new a(e,s,!0)))}},(t,e,r)=>{var n=r(201);t.exports=y,y.simpleSieve=p,y.fermatTest=_;var i=r(281),s=new i(24),a=new(r(283)),o=new i(1),u=new i(2),h=new i(5),c=(new i(16),new i(8),new i(10)),d=new i(3),l=(new i(7),new i(11)),f=new i(4),m=(new i(12),null);function p(t){for(var e=function(){if(null!==m)return m;var t=[];t[0]=2;for(var e=1,r=3;r<1048576;r+=2){for(var n=Math.ceil(Math.sqrt(r)),i=0;i<e&&t[i]<=n&&r%t[i]!=0;i++);e!==i&&t[i]<=n||(t[e++]=r)}return m=t,t}(),r=0;r<e.length;r++)if(0===t.modn(e[r]))return 0===t.cmpn(e[r]);return!0}function _(t){var e=i.mont(t);return 0===u.toRed(e).redPow(t.subn(1)).fromRed().cmpn(1)}function y(t,e){if(t<16)return new i(2===e||5===e?[140,123]:[140,39]);var r,m;for(e=new i(e);;){for(r=new i(n(Math.ceil(t/8)));r.bitLength()>t;)r.ishrn(1);if(r.isEven()&&r.iadd(o),r.testn(1)||r.iadd(u),e.cmp(u)){if(!e.cmp(h))for(;r.mod(c).cmp(d);)r.iadd(f)}else for(;r.mod(s).cmp(l);)r.iadd(f);if(p(m=r.shrn(1))&&p(r)&&_(m)&&_(r)&&a.test(m)&&a.test(r))return r}}},function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function s(t,e,r){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(282).Buffer}catch(t){}function o(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function h(t,e,r,n){for(var i=0,s=Math.min(t.length,r),a=e;a<s;a++){var o=t.charCodeAt(a)-48;i*=n,i+=o>=49?o-49+10:o>=17?o-17+10:o}return i}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},s.prototype._initNumber=function(t,e,r){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"===r&&this._initArray(this.toArray(),e,r)},s.prototype._initArray=function(t,e,r){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 s,a,o=0;if("be"===r)for(i=t.length-1,s=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=a<<o&67108863,this.words[s+1]=a>>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);else if("le"===r)for(i=0,s=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[s]|=a<<o&67108863,this.words[s+1]=a>>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,s=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=u(t,e,n)<<s,this.words[a]|=67108863&i,s>=18?(s-=18,a+=1,this.words[a]|=i>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)i=u(t,e,n)<<s,this.words[a]|=67108863&i,s>=18?(s-=18,a+=1,this.words[a]|=i>>>26):s+=8;this.strip()},s.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,a=s%n,o=Math.min(s,s-a)+r,u=0,c=r;c<o;c+=n)u=h(t,c,c+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var d=1;for(u=h(t,c,t.length,e),c=0;c<a;c++)d*=e;this.imuln(d),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},s.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},s.prototype.clone=function(){var t=new s(null);return this.copy(t),t},s.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","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"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],a=i*s,o=67108863&a,u=a/67108864|0;r.words[0]=o;for(var h=1;h<n;h++){for(var c=u>>>26,d=67108863&u,l=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=l;f++){var m=h-f|0;c+=(a=(i=0|t.words[m])*(s=0|e.words[f])+d)/67108864|0,d=67108863&a}r.words[h]=0|d,u=0|c}return 0!==u?r.words[h]=0|u:r.length--,r.strip()}s.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,s=0,a=0;a<this.length;a++){var o=this.words[a],u=(16777215&(o<<i|s)).toString(16);r=0!=(s=o>>>24-i&16777215)||a!==this.length-1?c[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==s&&(r=s.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var h=d[t],f=l[t];r="";var m=this.clone();for(m.negative=0;!m.isZero();){var p=m.modn(f).toString(t);r=(m=m.idivn(f)).isZero()?p+r:c[h-p.length]+p+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.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},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==a),this.toArrayLike(a,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var a,o,u="le"===e,h=new t(s),c=this.clone();if(u){for(o=0;!c.isZero();o++)a=c.andln(255),c.iushrn(8),h[o]=a;for(;o<s;o++)h[o]=0}else{for(o=0;o<s-i;o++)h[o]=0;for(o=0;!c.isZero();o++)a=c.andln(255),c.iushrn(8),h[s-o-1]=a}return h},Math.clz32?s.prototype._countBits=function(t){return 32-Math.clz32(t)}:s.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},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 8191&e||(r+=13,e>>>=13),127&e||(r+=7,e>>>=7),15&e||(r+=4,e>>>=4),3&e||(r+=2,e>>>=2),1&e||r++,r},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},s.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},s.prototype.ior=function(t){return n(!(this.negative|t.negative)),this.iuor(t)},s.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},s.prototype.iand=function(t){return n(!(this.negative|t.negative)),this.iuand(t)},s.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},s.prototype.ixor=function(t){return n(!(this.negative|t.negative)),this.iuxor(t)},s.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.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()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},s.prototype.iadd=function(t){var e,r,n;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?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s<n.length;s++)e=(0|r.words[s])+(0|n.words[s])+i,this.words[s]=67108863&e,i=e>>>26;for(;0!==i&&s<r.length;s++)e=(0|r.words[s])+i,this.words[s]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this},s.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)},s.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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,a=0;a<n.length;a++)s=(e=(0|r.words[a])-(0|n.words[a])+s)>>26,this.words[a]=67108863&e;for(;0!==s&&a<r.length;a++)s=(e=(0|r.words[a])+s)>>26,this.words[a]=67108863&e;if(0===s&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(t){return this.clone().isub(t)};var m=function(t,e,r){var n,i,s,a=t.words,o=e.words,u=r.words,h=0,c=0|a[0],d=8191&c,l=c>>>13,f=0|a[1],m=8191&f,p=f>>>13,_=0|a[2],y=8191&_,v=_>>>13,g=0|a[3],b=8191&g,M=g>>>13,w=0|a[4],k=8191&w,L=w>>>13,S=0|a[5],x=8191&S,Y=S>>>13,T=0|a[6],D=8191&T,E=T>>>13,j=0|a[7],A=8191&j,O=j>>>13,P=0|a[8],R=8191&P,H=P>>>13,I=0|a[9],C=8191&I,N=I>>>13,B=0|o[0],q=8191&B,F=B>>>13,U=0|o[1],z=8191&U,W=U>>>13,J=0|o[2],G=8191&J,K=J>>>13,V=0|o[3],Z=8191&V,$=V>>>13,X=0|o[4],Q=8191&X,tt=X>>>13,et=0|o[5],rt=8191&et,nt=et>>>13,it=0|o[6],st=8191&it,at=it>>>13,ot=0|o[7],ut=8191&ot,ht=ot>>>13,ct=0|o[8],dt=8191&ct,lt=ct>>>13,ft=0|o[9],mt=8191&ft,pt=ft>>>13;r.negative=t.negative^e.negative,r.length=19;var _t=(h+(n=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,F))+Math.imul(l,q)|0))<<13)|0;h=((s=Math.imul(l,F))+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(m,q),i=(i=Math.imul(m,F))+Math.imul(p,q)|0,s=Math.imul(p,F);var yt=(h+(n=n+Math.imul(d,z)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(l,z)|0))<<13)|0;h=((s=s+Math.imul(l,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,q),i=(i=Math.imul(y,F))+Math.imul(v,q)|0,s=Math.imul(v,F),n=n+Math.imul(m,z)|0,i=(i=i+Math.imul(m,W)|0)+Math.imul(p,z)|0,s=s+Math.imul(p,W)|0;var vt=(h+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(l,G)|0))<<13)|0;h=((s=s+Math.imul(l,K)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(b,q),i=(i=Math.imul(b,F))+Math.imul(M,q)|0,s=Math.imul(M,F),n=n+Math.imul(y,z)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(v,z)|0,s=s+Math.imul(v,W)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,K)|0)+Math.imul(p,G)|0,s=s+Math.imul(p,K)|0;var gt=(h+(n=n+Math.imul(d,Z)|0)|0)+((8191&(i=(i=i+Math.imul(d,$)|0)+Math.imul(l,Z)|0))<<13)|0;h=((s=s+Math.imul(l,$)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(k,q),i=(i=Math.imul(k,F))+Math.imul(L,q)|0,s=Math.imul(L,F),n=n+Math.imul(b,z)|0,i=(i=i+Math.imul(b,W)|0)+Math.imul(M,z)|0,s=s+Math.imul(M,W)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(v,G)|0,s=s+Math.imul(v,K)|0,n=n+Math.imul(m,Z)|0,i=(i=i+Math.imul(m,$)|0)+Math.imul(p,Z)|0,s=s+Math.imul(p,$)|0;var bt=(h+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,tt)|0)+Math.imul(l,Q)|0))<<13)|0;h=((s=s+Math.imul(l,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,F))+Math.imul(Y,q)|0,s=Math.imul(Y,F),n=n+Math.imul(k,z)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(L,z)|0,s=s+Math.imul(L,W)|0,n=n+Math.imul(b,G)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(M,G)|0,s=s+Math.imul(M,K)|0,n=n+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(v,Z)|0,s=s+Math.imul(v,$)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(p,Q)|0,s=s+Math.imul(p,tt)|0;var Mt=(h+(n=n+Math.imul(d,rt)|0)|0)+((8191&(i=(i=i+Math.imul(d,nt)|0)+Math.imul(l,rt)|0))<<13)|0;h=((s=s+Math.imul(l,nt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,F))+Math.imul(E,q)|0,s=Math.imul(E,F),n=n+Math.imul(x,z)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(Y,z)|0,s=s+Math.imul(Y,W)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(L,G)|0,s=s+Math.imul(L,K)|0,n=n+Math.imul(b,Z)|0,i=(i=i+Math.imul(b,$)|0)+Math.imul(M,Z)|0,s=s+Math.imul(M,$)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(v,Q)|0,s=s+Math.imul(v,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(p,rt)|0,s=s+Math.imul(p,nt)|0;var wt=(h+(n=n+Math.imul(d,st)|0)|0)+((8191&(i=(i=i+Math.imul(d,at)|0)+Math.imul(l,st)|0))<<13)|0;h=((s=s+Math.imul(l,at)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,F))+Math.imul(O,q)|0,s=Math.imul(O,F),n=n+Math.imul(D,z)|0,i=(i=i+Math.imul(D,W)|0)+Math.imul(E,z)|0,s=s+Math.imul(E,W)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(Y,G)|0,s=s+Math.imul(Y,K)|0,n=n+Math.imul(k,Z)|0,i=(i=i+Math.imul(k,$)|0)+Math.imul(L,Z)|0,s=s+Math.imul(L,$)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,Q)|0,s=s+Math.imul(M,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(v,rt)|0,s=s+Math.imul(v,nt)|0,n=n+Math.imul(m,st)|0,i=(i=i+Math.imul(m,at)|0)+Math.imul(p,st)|0,s=s+Math.imul(p,at)|0;var kt=(h+(n=n+Math.imul(d,ut)|0)|0)+((8191&(i=(i=i+Math.imul(d,ht)|0)+Math.imul(l,ut)|0))<<13)|0;h=((s=s+Math.imul(l,ht)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,F))+Math.imul(H,q)|0,s=Math.imul(H,F),n=n+Math.imul(A,z)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(O,z)|0,s=s+Math.imul(O,W)|0,n=n+Math.imul(D,G)|0,i=(i=i+Math.imul(D,K)|0)+Math.imul(E,G)|0,s=s+Math.imul(E,K)|0,n=n+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,$)|0)+Math.imul(Y,Z)|0,s=s+Math.imul(Y,$)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(L,Q)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(M,rt)|0,s=s+Math.imul(M,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,at)|0)+Math.imul(v,st)|0,s=s+Math.imul(v,at)|0,n=n+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ht)|0)+Math.imul(p,ut)|0,s=s+Math.imul(p,ht)|0;var Lt=(h+(n=n+Math.imul(d,dt)|0)|0)+((8191&(i=(i=i+Math.imul(d,lt)|0)+Math.imul(l,dt)|0))<<13)|0;h=((s=s+Math.imul(l,lt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(C,q),i=(i=Math.imul(C,F))+Math.imul(N,q)|0,s=Math.imul(N,F),n=n+Math.imul(R,z)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(H,z)|0,s=s+Math.imul(H,W)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(O,G)|0,s=s+Math.imul(O,K)|0,n=n+Math.imul(D,Z)|0,i=(i=i+Math.imul(D,$)|0)+Math.imul(E,Z)|0,s=s+Math.imul(E,$)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(Y,Q)|0,s=s+Math.imul(Y,tt)|0,n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(L,rt)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(b,st)|0,i=(i=i+Math.imul(b,at)|0)+Math.imul(M,st)|0,s=s+Math.imul(M,at)|0,n=n+Math.imul(y,ut)|0,i=(i=i+Math.imul(y,ht)|0)+Math.imul(v,ut)|0,s=s+Math.imul(v,ht)|0,n=n+Math.imul(m,dt)|0,i=(i=i+Math.imul(m,lt)|0)+Math.imul(p,dt)|0,s=s+Math.imul(p,lt)|0;var St=(h+(n=n+Math.imul(d,mt)|0)|0)+((8191&(i=(i=i+Math.imul(d,pt)|0)+Math.imul(l,mt)|0))<<13)|0;h=((s=s+Math.imul(l,pt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,W))+Math.imul(N,z)|0,s=Math.imul(N,W),n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(H,G)|0,s=s+Math.imul(H,K)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(O,Z)|0,s=s+Math.imul(O,$)|0,n=n+Math.imul(D,Q)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(E,Q)|0,s=s+Math.imul(E,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(Y,rt)|0,s=s+Math.imul(Y,nt)|0,n=n+Math.imul(k,st)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,at)|0,n=n+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(M,ut)|0,s=s+Math.imul(M,ht)|0,n=n+Math.imul(y,dt)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(v,dt)|0,s=s+Math.imul(v,lt)|0;var xt=(h+(n=n+Math.imul(m,mt)|0)|0)+((8191&(i=(i=i+Math.imul(m,pt)|0)+Math.imul(p,mt)|0))<<13)|0;h=((s=s+Math.imul(p,pt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(C,G),i=(i=Math.imul(C,K))+Math.imul(N,G)|0,s=Math.imul(N,K),n=n+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(H,Z)|0,s=s+Math.imul(H,$)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(O,Q)|0,s=s+Math.imul(O,tt)|0,n=n+Math.imul(D,rt)|0,i=(i=i+Math.imul(D,nt)|0)+Math.imul(E,rt)|0,s=s+Math.imul(E,nt)|0,n=n+Math.imul(x,st)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(Y,st)|0,s=s+Math.imul(Y,at)|0,n=n+Math.imul(k,ut)|0,i=(i=i+Math.imul(k,ht)|0)+Math.imul(L,ut)|0,s=s+Math.imul(L,ht)|0,n=n+Math.imul(b,dt)|0,i=(i=i+Math.imul(b,lt)|0)+Math.imul(M,dt)|0,s=s+Math.imul(M,lt)|0;var Yt=(h+(n=n+Math.imul(y,mt)|0)|0)+((8191&(i=(i=i+Math.imul(y,pt)|0)+Math.imul(v,mt)|0))<<13)|0;h=((s=s+Math.imul(v,pt)|0)+(i>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,n=Math.imul(C,Z),i=(i=Math.imul(C,$))+Math.imul(N,Z)|0,s=Math.imul(N,$),n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(H,Q)|0,s=s+Math.imul(H,tt)|0,n=n+Math.imul(A,rt)|0,i=(i=i+Math.imul(A,nt)|0)+Math.imul(O,rt)|0,s=s+Math.imul(O,nt)|0,n=n+Math.imul(D,st)|0,i=(i=i+Math.imul(D,at)|0)+Math.imul(E,st)|0,s=s+Math.imul(E,at)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ht)|0)+Math.imul(Y,ut)|0,s=s+Math.imul(Y,ht)|0,n=n+Math.imul(k,dt)|0,i=(i=i+Math.imul(k,lt)|0)+Math.imul(L,dt)|0,s=s+Math.imul(L,lt)|0;var Tt=(h+(n=n+Math.imul(b,mt)|0)|0)+((8191&(i=(i=i+Math.imul(b,pt)|0)+Math.imul(M,mt)|0))<<13)|0;h=((s=s+Math.imul(M,pt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(C,Q),i=(i=Math.imul(C,tt))+Math.imul(N,Q)|0,s=Math.imul(N,tt),n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(H,rt)|0,s=s+Math.imul(H,nt)|0,n=n+Math.imul(A,st)|0,i=(i=i+Math.imul(A,at)|0)+Math.imul(O,st)|0,s=s+Math.imul(O,at)|0,n=n+Math.imul(D,ut)|0,i=(i=i+Math.imul(D,ht)|0)+Math.imul(E,ut)|0,s=s+Math.imul(E,ht)|0,n=n+Math.imul(x,dt)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(Y,dt)|0,s=s+Math.imul(Y,lt)|0;var Dt=(h+(n=n+Math.imul(k,mt)|0)|0)+((8191&(i=(i=i+Math.imul(k,pt)|0)+Math.imul(L,mt)|0))<<13)|0;h=((s=s+Math.imul(L,pt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(C,rt),i=(i=Math.imul(C,nt))+Math.imul(N,rt)|0,s=Math.imul(N,nt),n=n+Math.imul(R,st)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(H,st)|0,s=s+Math.imul(H,at)|0,n=n+Math.imul(A,ut)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(O,ut)|0,s=s+Math.imul(O,ht)|0,n=n+Math.imul(D,dt)|0,i=(i=i+Math.imul(D,lt)|0)+Math.imul(E,dt)|0,s=s+Math.imul(E,lt)|0;var Et=(h+(n=n+Math.imul(x,mt)|0)|0)+((8191&(i=(i=i+Math.imul(x,pt)|0)+Math.imul(Y,mt)|0))<<13)|0;h=((s=s+Math.imul(Y,pt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(C,st),i=(i=Math.imul(C,at))+Math.imul(N,st)|0,s=Math.imul(N,at),n=n+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ht)|0)+Math.imul(H,ut)|0,s=s+Math.imul(H,ht)|0,n=n+Math.imul(A,dt)|0,i=(i=i+Math.imul(A,lt)|0)+Math.imul(O,dt)|0,s=s+Math.imul(O,lt)|0;var jt=(h+(n=n+Math.imul(D,mt)|0)|0)+((8191&(i=(i=i+Math.imul(D,pt)|0)+Math.imul(E,mt)|0))<<13)|0;h=((s=s+Math.imul(E,pt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(C,ut),i=(i=Math.imul(C,ht))+Math.imul(N,ut)|0,s=Math.imul(N,ht),n=n+Math.imul(R,dt)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(H,dt)|0,s=s+Math.imul(H,lt)|0;var At=(h+(n=n+Math.imul(A,mt)|0)|0)+((8191&(i=(i=i+Math.imul(A,pt)|0)+Math.imul(O,mt)|0))<<13)|0;h=((s=s+Math.imul(O,pt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(C,dt),i=(i=Math.imul(C,lt))+Math.imul(N,dt)|0,s=Math.imul(N,lt);var Ot=(h+(n=n+Math.imul(R,mt)|0)|0)+((8191&(i=(i=i+Math.imul(R,pt)|0)+Math.imul(H,mt)|0))<<13)|0;h=((s=s+Math.imul(H,pt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863;var Pt=(h+(n=Math.imul(C,mt))|0)+((8191&(i=(i=Math.imul(C,pt))+Math.imul(N,mt)|0))<<13)|0;return h=((s=Math.imul(N,pt))+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,u[0]=_t,u[1]=yt,u[2]=vt,u[3]=gt,u[4]=bt,u[5]=Mt,u[6]=wt,u[7]=kt,u[8]=Lt,u[9]=St,u[10]=xt,u[11]=Yt,u[12]=Tt,u[13]=Dt,u[14]=Et,u[15]=jt,u[16]=At,u[17]=Ot,u[18]=Pt,0!==h&&(u[19]=h,r.length++),r};function p(t,e,r){return(new _).mulp(t,e,r)}function _(t,e){this.x=t,this.y=e}Math.imul||(m=f),s.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?m(this,t,e):n<63?f(this,t,e):n<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s<r.length-1;s++){var a=i;i=0;for(var o=67108863&n,u=Math.min(s,e.length-1),h=Math.max(0,s-t.length+1);h<=u;h++){var c=s-h,d=(0|t.words[c])*(0|e.words[h]),l=67108863&d;o=67108863&(l=l+o|0),i+=(a=(a=a+(d/67108864|0)|0)+(l>>>26)|0)>>>26,a&=67108863}r.words[s]=o,n=a,a=i}return 0!==n?r.words[s]=n:r.length--,r.strip()}(this,t,e):p(this,t,e),r},_.prototype.makeRBT=function(t){for(var e=new Array(t),r=s.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,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,i,s){for(var a=0;a<s;a++)n[a]=e[t[a]],i[a]=r[t[a]]},_.prototype.transform=function(t,e,r,n,i,s){this.permute(s,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var o=a<<1,u=Math.cos(2*Math.PI/o),h=Math.sin(2*Math.PI/o),c=0;c<i;c+=o)for(var d=u,l=h,f=0;f<a;f++){var m=r[c+f],p=n[c+f],_=r[c+f+a],y=n[c+f+a],v=d*_-l*y;y=d*y+l*_,_=v,r[c+f]=m+_,n[c+f]=p+y,r[c+f+a]=m-_,n[c+f+a]=p-y,f!==o&&(v=u*d-h*l,l=u*l+h*d,d=v)}},_.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 n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},_.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},_.prototype.convert13b=function(t,e,r,i){for(var s=0,a=0;a<e;a++)s+=0|t[a],r[2*a]=8191&s,s>>>=13,r[2*a+1]=8191&s,s>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===s),n(!(-8192&s))},_.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},_.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),s=this.stub(n),a=new Array(n),o=new Array(n),u=new Array(n),h=new Array(n),c=new Array(n),d=new Array(n),l=r.words;l.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,h,n),this.transform(a,s,o,u,n,i),this.transform(h,s,c,d,n,i);for(var f=0;f<n;f++){var m=o[f]*c[f]-u[f]*d[f];u[f]=o[f]*d[f]+u[f]*c[f],o[f]=m}return this.conjugate(o,u,n),this.transform(o,u,l,s,n,i),this.conjugate(l,s,n),this.normalize13b(l,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},s.prototype.mul=function(t){var e=new s(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},s.prototype.mulf=function(t){var e=new s(null);return e.words=new Array(this.length+t.length),p(this,t,e)},s.prototype.imul=function(t){return this.clone().mulTo(t,this)},s.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,s=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=s>>>26,this.words[r]=67108863&s}return 0!==e&&(this.words[r]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.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,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}(t);if(0===e.length)return new s(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},s.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var o=this.words[e]&s,u=(0|this.words[e])-o<<r;this.words[e]=u|a,a=o>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},s.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},s.prototype.iushrn=function(t,e,r){var i;n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var s=t%26,a=Math.min((t-s)/26,this.length),o=67108863^67108863>>>s<<s,u=r;if(i-=a,i=Math.max(0,i),u){for(var h=0;h<a;h++)u.words[h]=this.words[h];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,h=0;h<this.length;h++)this.words[h]=this.words[h+a];else this.words[0]=0,this.length=1;var c=0;for(h=this.length-1;h>=0&&(0!==c||h>=i);h--){var d=0|this.words[h];this.words[h]=c<<26-s|d>>>s,c=d&o}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r||!(this.words[r]&i))},s.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},s.prototype.maskn=function(t){return this.clone().imaskn(t)},s.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)},s.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.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 e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},s.prototype.addn=function(t){return this.clone().iaddn(t)},s.prototype.subn=function(t){return this.clone().isubn(t)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(t,e,r){var i,s,a=t.length+r;this._expand(a);var o=0;for(i=0;i<t.length;i++){s=(0|this.words[i+r])+o;var u=(0|t.words[i])*e;o=((s-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&s}for(;i<this.length-r;i++)o=(s=(0|this.words[i+r])+o)>>26,this.words[i+r]=67108863&s;if(0===o)return this.strip();for(n(-1===o),o=0,i=0;i<this.length;i++)o=(s=-(0|this.words[i])+o)>>26,this.words[i]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!=(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var o,u=n.length-i.length;if("mod"!==e){(o=new s(null)).length=u+1,o.words=new Array(o.length);for(var h=0;h<o.length;h++)o.words[h]=0}var c=n.clone()._ishlnsubmul(i,1,u);0===c.negative&&(n=c,o&&(o.words[u]=1));for(var d=u-1;d>=0;d--){var l=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,d);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);o&&(o.words[d]=l)}return o&&o.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:o||null,mod:n}},s.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(o=this.neg().divmod(t,e),"mod"!==e&&(i=o.div.neg()),"div"!==e&&(a=o.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(o=this.divmod(t.neg(),e),"mod"!==e&&(i=o.div.neg()),{div:i,mod:o.mod}):this.negative&t.negative?(o=this.neg().divmod(t.neg(),e),"div"!==e&&(a=o.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:o.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,o},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.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),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new s(1),a=new s(0),o=new s(0),u=new s(1),h=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++h;for(var c=r.clone(),d=e.clone();!e.isZero();){for(var l=0,f=1;!(e.words[0]&f)&&l<26;++l,f<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var m=0,p=1;!(r.words[0]&p)&&m<26;++m,p<<=1);if(m>0)for(r.iushrn(m);m-- >0;)(o.isOdd()||u.isOdd())&&(o.iadd(c),u.isub(d)),o.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(o),a.isub(u)):(r.isub(e),o.isub(i),u.isub(a))}return{a:o,b:u,gcd:r.iushln(h)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new s(1),o=new s(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var h=0,c=1;!(e.words[0]&c)&&h<26;++h,c<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var d=0,l=1;!(r.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(r.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(o)):(r.isub(e),o.isub(a))}return(i=0===e.cmpn(1)?a:o).cmpn(0)<0&&i.iadd(t),i},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return!(1&this.words[0])},s.prototype.isOdd=function(){return!(1&~this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var s=i,a=r;0!==s&&a<this.length;a++){var o=0|this.words[a];s=(o+=s)>>>26,o&=67108863,this.words[a]=o}return 0!==s&&(this.words[a]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.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 i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},s.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},s.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new k(t)},s.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)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"==typeof t){var e=s._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 L(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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)}v.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.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},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},i(g,v),g.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var s=t.words[9];for(e.words[e.length++]=s&r,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&r)<<4|s>>>22,s=a}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},g.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(b,v),i(M,v),i(w,v),w.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new g;else if("p224"===t)e=new b;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new w}return y[t]=e,e},k.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){n(!(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new s(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var o=new s(1).toRed(this),u=o.redNeg(),h=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new s(2*c*c).toRed(this);0!==this.pow(c,h).cmp(u);)c.redIAdd(u);for(var d=this.pow(c,i),l=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),m=a;0!==f.cmp(o);){for(var p=f,_=0;0!==p.cmp(o);_++)p=p.redSqr();n(_<m);var y=this.pow(d,new s(1).iushln(m-_-1));l=l.redMul(y),d=y.redSqr(),f=f.redMul(d),m=_}return l},k.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},k.prototype.pow=function(t,e){if(e.isZero())return new s(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new s(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,o=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var h=e.words[n],c=u-1;c>=0;c--){var d=h>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4==++o||0===n&&0===c)&&(i=this.mul(i,r[a]),o=0,a=0)):o=0}u=26}return i},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new L(t)},i(L,k),L.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},L.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},L.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},L.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},L.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},()=>{},(t,e,r)=>{var n=r(284),i=r(286);function s(t){this.rand=t||new i.Rand}t.exports=s,s.create=function(t){return new s(t)},s.prototype._randbelow=function(t){var e=t.bitLength(),r=Math.ceil(e/8);do{var i=new n(this.rand.generate(r))}while(i.cmp(t)>=0);return i},s.prototype._randrange=function(t,e){var r=e.sub(t);return t.add(this._randbelow(r))},s.prototype.test=function(t,e,r){var i=t.bitLength(),s=n.mont(t),a=new n(1).toRed(s);e||(e=Math.max(1,i/48|0));for(var o=t.subn(1),u=0;!o.testn(u);u++);for(var h=t.shrn(u),c=o.toRed(s);e>0;e--){var d=this._randrange(new n(2),o);r&&r(d);var l=d.toRed(s).redPow(h);if(0!==l.cmp(a)&&0!==l.cmp(c)){for(var f=1;f<u;f++){if(0===(l=l.redSqr()).cmp(a))return!1;if(0===l.cmp(c))break}if(f===u)return!1}}return!0},s.prototype.getDivisor=function(t,e){var r=t.bitLength(),i=n.mont(t),s=new n(1).toRed(i);e||(e=Math.max(1,r/48|0));for(var a=t.subn(1),o=0;!a.testn(o);o++);for(var u=t.shrn(o),h=a.toRed(i);e>0;e--){var c=this._randrange(new n(2),a),d=t.gcd(c);if(0!==d.cmpn(1))return d;var l=c.toRed(i).redPow(u);if(0!==l.cmp(s)&&0!==l.cmp(h)){for(var f=1;f<o;f++){if(0===(l=l.redSqr()).cmp(s))return l.fromRed().subn(1).gcd(t);if(0===l.cmp(h))break}if(f===o)return(l=l.redSqr()).fromRed().subn(1).gcd(t)}}return!1}},function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function s(t,e,r){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(285).Buffer}catch(t){}function o(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function h(t,e,r,n){for(var i=0,s=Math.min(t.length,r),a=e;a<s;a++){var o=t.charCodeAt(a)-48;i*=n,i+=o>=49?o-49+10:o>=17?o-17+10:o}return i}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},s.prototype._initNumber=function(t,e,r){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"===r&&this._initArray(this.toArray(),e,r)},s.prototype._initArray=function(t,e,r){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 s,a,o=0;if("be"===r)for(i=t.length-1,s=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=a<<o&67108863,this.words[s+1]=a>>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);else if("le"===r)for(i=0,s=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[s]|=a<<o&67108863,this.words[s+1]=a>>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,s=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=u(t,e,n)<<s,this.words[a]|=67108863&i,s>=18?(s-=18,a+=1,this.words[a]|=i>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)i=u(t,e,n)<<s,this.words[a]|=67108863&i,s>=18?(s-=18,a+=1,this.words[a]|=i>>>26):s+=8;this.strip()},s.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,a=s%n,o=Math.min(s,s-a)+r,u=0,c=r;c<o;c+=n)u=h(t,c,c+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var d=1;for(u=h(t,c,t.length,e),c=0;c<a;c++)d*=e;this.imuln(d),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},s.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},s.prototype.clone=function(){var t=new s(null);return this.copy(t),t},s.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","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"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],a=i*s,o=67108863&a,u=a/67108864|0;r.words[0]=o;for(var h=1;h<n;h++){for(var c=u>>>26,d=67108863&u,l=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=l;f++){var m=h-f|0;c+=(a=(i=0|t.words[m])*(s=0|e.words[f])+d)/67108864|0,d=67108863&a}r.words[h]=0|d,u=0|c}return 0!==u?r.words[h]=0|u:r.length--,r.strip()}s.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,s=0,a=0;a<this.length;a++){var o=this.words[a],u=(16777215&(o<<i|s)).toString(16);r=0!=(s=o>>>24-i&16777215)||a!==this.length-1?c[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==s&&(r=s.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var h=d[t],f=l[t];r="";var m=this.clone();for(m.negative=0;!m.isZero();){var p=m.modn(f).toString(t);r=(m=m.idivn(f)).isZero()?p+r:c[h-p.length]+p+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.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},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==a),this.toArrayLike(a,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var a,o,u="le"===e,h=new t(s),c=this.clone();if(u){for(o=0;!c.isZero();o++)a=c.andln(255),c.iushrn(8),h[o]=a;for(;o<s;o++)h[o]=0}else{for(o=0;o<s-i;o++)h[o]=0;for(o=0;!c.isZero();o++)a=c.andln(255),c.iushrn(8),h[s-o-1]=a}return h},Math.clz32?s.prototype._countBits=function(t){return 32-Math.clz32(t)}:s.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},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 8191&e||(r+=13,e>>>=13),127&e||(r+=7,e>>>=7),15&e||(r+=4,e>>>=4),3&e||(r+=2,e>>>=2),1&e||r++,r},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},s.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},s.prototype.ior=function(t){return n(!(this.negative|t.negative)),this.iuor(t)},s.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},s.prototype.iand=function(t){return n(!(this.negative|t.negative)),this.iuand(t)},s.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},s.prototype.ixor=function(t){return n(!(this.negative|t.negative)),this.iuxor(t)},s.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.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()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},s.prototype.iadd=function(t){var e,r,n;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?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s<n.length;s++)e=(0|r.words[s])+(0|n.words[s])+i,this.words[s]=67108863&e,i=e>>>26;for(;0!==i&&s<r.length;s++)e=(0|r.words[s])+i,this.words[s]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this},s.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)},s.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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,a=0;a<n.length;a++)s=(e=(0|r.words[a])-(0|n.words[a])+s)>>26,this.words[a]=67108863&e;for(;0!==s&&a<r.length;a++)s=(e=(0|r.words[a])+s)>>26,this.words[a]=67108863&e;if(0===s&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(t){return this.clone().isub(t)};var m=function(t,e,r){var n,i,s,a=t.words,o=e.words,u=r.words,h=0,c=0|a[0],d=8191&c,l=c>>>13,f=0|a[1],m=8191&f,p=f>>>13,_=0|a[2],y=8191&_,v=_>>>13,g=0|a[3],b=8191&g,M=g>>>13,w=0|a[4],k=8191&w,L=w>>>13,S=0|a[5],x=8191&S,Y=S>>>13,T=0|a[6],D=8191&T,E=T>>>13,j=0|a[7],A=8191&j,O=j>>>13,P=0|a[8],R=8191&P,H=P>>>13,I=0|a[9],C=8191&I,N=I>>>13,B=0|o[0],q=8191&B,F=B>>>13,U=0|o[1],z=8191&U,W=U>>>13,J=0|o[2],G=8191&J,K=J>>>13,V=0|o[3],Z=8191&V,$=V>>>13,X=0|o[4],Q=8191&X,tt=X>>>13,et=0|o[5],rt=8191&et,nt=et>>>13,it=0|o[6],st=8191&it,at=it>>>13,ot=0|o[7],ut=8191&ot,ht=ot>>>13,ct=0|o[8],dt=8191&ct,lt=ct>>>13,ft=0|o[9],mt=8191&ft,pt=ft>>>13;r.negative=t.negative^e.negative,r.length=19;var _t=(h+(n=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,F))+Math.imul(l,q)|0))<<13)|0;h=((s=Math.imul(l,F))+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(m,q),i=(i=Math.imul(m,F))+Math.imul(p,q)|0,s=Math.imul(p,F);var yt=(h+(n=n+Math.imul(d,z)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(l,z)|0))<<13)|0;h=((s=s+Math.imul(l,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,q),i=(i=Math.imul(y,F))+Math.imul(v,q)|0,s=Math.imul(v,F),n=n+Math.imul(m,z)|0,i=(i=i+Math.imul(m,W)|0)+Math.imul(p,z)|0,s=s+Math.imul(p,W)|0;var vt=(h+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(l,G)|0))<<13)|0;h=((s=s+Math.imul(l,K)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(b,q),i=(i=Math.imul(b,F))+Math.imul(M,q)|0,s=Math.imul(M,F),n=n+Math.imul(y,z)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(v,z)|0,s=s+Math.imul(v,W)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,K)|0)+Math.imul(p,G)|0,s=s+Math.imul(p,K)|0;var gt=(h+(n=n+Math.imul(d,Z)|0)|0)+((8191&(i=(i=i+Math.imul(d,$)|0)+Math.imul(l,Z)|0))<<13)|0;h=((s=s+Math.imul(l,$)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(k,q),i=(i=Math.imul(k,F))+Math.imul(L,q)|0,s=Math.imul(L,F),n=n+Math.imul(b,z)|0,i=(i=i+Math.imul(b,W)|0)+Math.imul(M,z)|0,s=s+Math.imul(M,W)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(v,G)|0,s=s+Math.imul(v,K)|0,n=n+Math.imul(m,Z)|0,i=(i=i+Math.imul(m,$)|0)+Math.imul(p,Z)|0,s=s+Math.imul(p,$)|0;var bt=(h+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,tt)|0)+Math.imul(l,Q)|0))<<13)|0;h=((s=s+Math.imul(l,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,F))+Math.imul(Y,q)|0,s=Math.imul(Y,F),n=n+Math.imul(k,z)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(L,z)|0,s=s+Math.imul(L,W)|0,n=n+Math.imul(b,G)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(M,G)|0,s=s+Math.imul(M,K)|0,n=n+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(v,Z)|0,s=s+Math.imul(v,$)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(p,Q)|0,s=s+Math.imul(p,tt)|0;var Mt=(h+(n=n+Math.imul(d,rt)|0)|0)+((8191&(i=(i=i+Math.imul(d,nt)|0)+Math.imul(l,rt)|0))<<13)|0;h=((s=s+Math.imul(l,nt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,F))+Math.imul(E,q)|0,s=Math.imul(E,F),n=n+Math.imul(x,z)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(Y,z)|0,s=s+Math.imul(Y,W)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(L,G)|0,s=s+Math.imul(L,K)|0,n=n+Math.imul(b,Z)|0,i=(i=i+Math.imul(b,$)|0)+Math.imul(M,Z)|0,s=s+Math.imul(M,$)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(v,Q)|0,s=s+Math.imul(v,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(p,rt)|0,s=s+Math.imul(p,nt)|0;var wt=(h+(n=n+Math.imul(d,st)|0)|0)+((8191&(i=(i=i+Math.imul(d,at)|0)+Math.imul(l,st)|0))<<13)|0;h=((s=s+Math.imul(l,at)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,F))+Math.imul(O,q)|0,s=Math.imul(O,F),n=n+Math.imul(D,z)|0,i=(i=i+Math.imul(D,W)|0)+Math.imul(E,z)|0,s=s+Math.imul(E,W)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(Y,G)|0,s=s+Math.imul(Y,K)|0,n=n+Math.imul(k,Z)|0,i=(i=i+Math.imul(k,$)|0)+Math.imul(L,Z)|0,s=s+Math.imul(L,$)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,Q)|0,s=s+Math.imul(M,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(v,rt)|0,s=s+Math.imul(v,nt)|0,n=n+Math.imul(m,st)|0,i=(i=i+Math.imul(m,at)|0)+Math.imul(p,st)|0,s=s+Math.imul(p,at)|0;var kt=(h+(n=n+Math.imul(d,ut)|0)|0)+((8191&(i=(i=i+Math.imul(d,ht)|0)+Math.imul(l,ut)|0))<<13)|0;h=((s=s+Math.imul(l,ht)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,F))+Math.imul(H,q)|0,s=Math.imul(H,F),n=n+Math.imul(A,z)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(O,z)|0,s=s+Math.imul(O,W)|0,n=n+Math.imul(D,G)|0,i=(i=i+Math.imul(D,K)|0)+Math.imul(E,G)|0,s=s+Math.imul(E,K)|0,n=n+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,$)|0)+Math.imul(Y,Z)|0,s=s+Math.imul(Y,$)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(L,Q)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(M,rt)|0,s=s+Math.imul(M,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,at)|0)+Math.imul(v,st)|0,s=s+Math.imul(v,at)|0,n=n+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ht)|0)+Math.imul(p,ut)|0,s=s+Math.imul(p,ht)|0;var Lt=(h+(n=n+Math.imul(d,dt)|0)|0)+((8191&(i=(i=i+Math.imul(d,lt)|0)+Math.imul(l,dt)|0))<<13)|0;h=((s=s+Math.imul(l,lt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(C,q),i=(i=Math.imul(C,F))+Math.imul(N,q)|0,s=Math.imul(N,F),n=n+Math.imul(R,z)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(H,z)|0,s=s+Math.imul(H,W)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(O,G)|0,s=s+Math.imul(O,K)|0,n=n+Math.imul(D,Z)|0,i=(i=i+Math.imul(D,$)|0)+Math.imul(E,Z)|0,s=s+Math.imul(E,$)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(Y,Q)|0,s=s+Math.imul(Y,tt)|0,n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(L,rt)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(b,st)|0,i=(i=i+Math.imul(b,at)|0)+Math.imul(M,st)|0,s=s+Math.imul(M,at)|0,n=n+Math.imul(y,ut)|0,i=(i=i+Math.imul(y,ht)|0)+Math.imul(v,ut)|0,s=s+Math.imul(v,ht)|0,n=n+Math.imul(m,dt)|0,i=(i=i+Math.imul(m,lt)|0)+Math.imul(p,dt)|0,s=s+Math.imul(p,lt)|0;var St=(h+(n=n+Math.imul(d,mt)|0)|0)+((8191&(i=(i=i+Math.imul(d,pt)|0)+Math.imul(l,mt)|0))<<13)|0;h=((s=s+Math.imul(l,pt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,W))+Math.imul(N,z)|0,s=Math.imul(N,W),n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(H,G)|0,s=s+Math.imul(H,K)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(O,Z)|0,s=s+Math.imul(O,$)|0,n=n+Math.imul(D,Q)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(E,Q)|0,s=s+Math.imul(E,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(Y,rt)|0,s=s+Math.imul(Y,nt)|0,n=n+Math.imul(k,st)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,at)|0,n=n+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(M,ut)|0,s=s+Math.imul(M,ht)|0,n=n+Math.imul(y,dt)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(v,dt)|0,s=s+Math.imul(v,lt)|0;var xt=(h+(n=n+Math.imul(m,mt)|0)|0)+((8191&(i=(i=i+Math.imul(m,pt)|0)+Math.imul(p,mt)|0))<<13)|0;h=((s=s+Math.imul(p,pt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(C,G),i=(i=Math.imul(C,K))+Math.imul(N,G)|0,s=Math.imul(N,K),n=n+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(H,Z)|0,s=s+Math.imul(H,$)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(O,Q)|0,s=s+Math.imul(O,tt)|0,n=n+Math.imul(D,rt)|0,i=(i=i+Math.imul(D,nt)|0)+Math.imul(E,rt)|0,s=s+Math.imul(E,nt)|0,n=n+Math.imul(x,st)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(Y,st)|0,s=s+Math.imul(Y,at)|0,n=n+Math.imul(k,ut)|0,i=(i=i+Math.imul(k,ht)|0)+Math.imul(L,ut)|0,s=s+Math.imul(L,ht)|0,n=n+Math.imul(b,dt)|0,i=(i=i+Math.imul(b,lt)|0)+Math.imul(M,dt)|0,s=s+Math.imul(M,lt)|0;var Yt=(h+(n=n+Math.imul(y,mt)|0)|0)+((8191&(i=(i=i+Math.imul(y,pt)|0)+Math.imul(v,mt)|0))<<13)|0;h=((s=s+Math.imul(v,pt)|0)+(i>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,n=Math.imul(C,Z),i=(i=Math.imul(C,$))+Math.imul(N,Z)|0,s=Math.imul(N,$),n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(H,Q)|0,s=s+Math.imul(H,tt)|0,n=n+Math.imul(A,rt)|0,i=(i=i+Math.imul(A,nt)|0)+Math.imul(O,rt)|0,s=s+Math.imul(O,nt)|0,n=n+Math.imul(D,st)|0,i=(i=i+Math.imul(D,at)|0)+Math.imul(E,st)|0,s=s+Math.imul(E,at)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ht)|0)+Math.imul(Y,ut)|0,s=s+Math.imul(Y,ht)|0,n=n+Math.imul(k,dt)|0,i=(i=i+Math.imul(k,lt)|0)+Math.imul(L,dt)|0,s=s+Math.imul(L,lt)|0;var Tt=(h+(n=n+Math.imul(b,mt)|0)|0)+((8191&(i=(i=i+Math.imul(b,pt)|0)+Math.imul(M,mt)|0))<<13)|0;h=((s=s+Math.imul(M,pt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(C,Q),i=(i=Math.imul(C,tt))+Math.imul(N,Q)|0,s=Math.imul(N,tt),n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(H,rt)|0,s=s+Math.imul(H,nt)|0,n=n+Math.imul(A,st)|0,i=(i=i+Math.imul(A,at)|0)+Math.imul(O,st)|0,s=s+Math.imul(O,at)|0,n=n+Math.imul(D,ut)|0,i=(i=i+Math.imul(D,ht)|0)+Math.imul(E,ut)|0,s=s+Math.imul(E,ht)|0,n=n+Math.imul(x,dt)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(Y,dt)|0,s=s+Math.imul(Y,lt)|0;var Dt=(h+(n=n+Math.imul(k,mt)|0)|0)+((8191&(i=(i=i+Math.imul(k,pt)|0)+Math.imul(L,mt)|0))<<13)|0;h=((s=s+Math.imul(L,pt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(C,rt),i=(i=Math.imul(C,nt))+Math.imul(N,rt)|0,s=Math.imul(N,nt),n=n+Math.imul(R,st)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(H,st)|0,s=s+Math.imul(H,at)|0,n=n+Math.imul(A,ut)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(O,ut)|0,s=s+Math.imul(O,ht)|0,n=n+Math.imul(D,dt)|0,i=(i=i+Math.imul(D,lt)|0)+Math.imul(E,dt)|0,s=s+Math.imul(E,lt)|0;var Et=(h+(n=n+Math.imul(x,mt)|0)|0)+((8191&(i=(i=i+Math.imul(x,pt)|0)+Math.imul(Y,mt)|0))<<13)|0;h=((s=s+Math.imul(Y,pt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(C,st),i=(i=Math.imul(C,at))+Math.imul(N,st)|0,s=Math.imul(N,at),n=n+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ht)|0)+Math.imul(H,ut)|0,s=s+Math.imul(H,ht)|0,n=n+Math.imul(A,dt)|0,i=(i=i+Math.imul(A,lt)|0)+Math.imul(O,dt)|0,s=s+Math.imul(O,lt)|0;var jt=(h+(n=n+Math.imul(D,mt)|0)|0)+((8191&(i=(i=i+Math.imul(D,pt)|0)+Math.imul(E,mt)|0))<<13)|0;h=((s=s+Math.imul(E,pt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(C,ut),i=(i=Math.imul(C,ht))+Math.imul(N,ut)|0,s=Math.imul(N,ht),n=n+Math.imul(R,dt)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(H,dt)|0,s=s+Math.imul(H,lt)|0;var At=(h+(n=n+Math.imul(A,mt)|0)|0)+((8191&(i=(i=i+Math.imul(A,pt)|0)+Math.imul(O,mt)|0))<<13)|0;h=((s=s+Math.imul(O,pt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(C,dt),i=(i=Math.imul(C,lt))+Math.imul(N,dt)|0,s=Math.imul(N,lt);var Ot=(h+(n=n+Math.imul(R,mt)|0)|0)+((8191&(i=(i=i+Math.imul(R,pt)|0)+Math.imul(H,mt)|0))<<13)|0;h=((s=s+Math.imul(H,pt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863;var Pt=(h+(n=Math.imul(C,mt))|0)+((8191&(i=(i=Math.imul(C,pt))+Math.imul(N,mt)|0))<<13)|0;return h=((s=Math.imul(N,pt))+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,u[0]=_t,u[1]=yt,u[2]=vt,u[3]=gt,u[4]=bt,u[5]=Mt,u[6]=wt,u[7]=kt,u[8]=Lt,u[9]=St,u[10]=xt,u[11]=Yt,u[12]=Tt,u[13]=Dt,u[14]=Et,u[15]=jt,u[16]=At,u[17]=Ot,u[18]=Pt,0!==h&&(u[19]=h,r.length++),r};function p(t,e,r){return(new _).mulp(t,e,r)}function _(t,e){this.x=t,this.y=e}Math.imul||(m=f),s.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?m(this,t,e):n<63?f(this,t,e):n<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s<r.length-1;s++){var a=i;i=0;for(var o=67108863&n,u=Math.min(s,e.length-1),h=Math.max(0,s-t.length+1);h<=u;h++){var c=s-h,d=(0|t.words[c])*(0|e.words[h]),l=67108863&d;o=67108863&(l=l+o|0),i+=(a=(a=a+(d/67108864|0)|0)+(l>>>26)|0)>>>26,a&=67108863}r.words[s]=o,n=a,a=i}return 0!==n?r.words[s]=n:r.length--,r.strip()}(this,t,e):p(this,t,e),r},_.prototype.makeRBT=function(t){for(var e=new Array(t),r=s.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,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,i,s){for(var a=0;a<s;a++)n[a]=e[t[a]],i[a]=r[t[a]]},_.prototype.transform=function(t,e,r,n,i,s){this.permute(s,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var o=a<<1,u=Math.cos(2*Math.PI/o),h=Math.sin(2*Math.PI/o),c=0;c<i;c+=o)for(var d=u,l=h,f=0;f<a;f++){var m=r[c+f],p=n[c+f],_=r[c+f+a],y=n[c+f+a],v=d*_-l*y;y=d*y+l*_,_=v,r[c+f]=m+_,n[c+f]=p+y,r[c+f+a]=m-_,n[c+f+a]=p-y,f!==o&&(v=u*d-h*l,l=u*l+h*d,d=v)}},_.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 n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},_.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},_.prototype.convert13b=function(t,e,r,i){for(var s=0,a=0;a<e;a++)s+=0|t[a],r[2*a]=8191&s,s>>>=13,r[2*a+1]=8191&s,s>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===s),n(!(-8192&s))},_.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},_.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),s=this.stub(n),a=new Array(n),o=new Array(n),u=new Array(n),h=new Array(n),c=new Array(n),d=new Array(n),l=r.words;l.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,h,n),this.transform(a,s,o,u,n,i),this.transform(h,s,c,d,n,i);for(var f=0;f<n;f++){var m=o[f]*c[f]-u[f]*d[f];u[f]=o[f]*d[f]+u[f]*c[f],o[f]=m}return this.conjugate(o,u,n),this.transform(o,u,l,s,n,i),this.conjugate(l,s,n),this.normalize13b(l,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},s.prototype.mul=function(t){var e=new s(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},s.prototype.mulf=function(t){var e=new s(null);return e.words=new Array(this.length+t.length),p(this,t,e)},s.prototype.imul=function(t){return this.clone().mulTo(t,this)},s.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,s=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=s>>>26,this.words[r]=67108863&s}return 0!==e&&(this.words[r]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.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,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}(t);if(0===e.length)return new s(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},s.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var o=this.words[e]&s,u=(0|this.words[e])-o<<r;this.words[e]=u|a,a=o>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},s.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},s.prototype.iushrn=function(t,e,r){var i;n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var s=t%26,a=Math.min((t-s)/26,this.length),o=67108863^67108863>>>s<<s,u=r;if(i-=a,i=Math.max(0,i),u){for(var h=0;h<a;h++)u.words[h]=this.words[h];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,h=0;h<this.length;h++)this.words[h]=this.words[h+a];else this.words[0]=0,this.length=1;var c=0;for(h=this.length-1;h>=0&&(0!==c||h>=i);h--){var d=0|this.words[h];this.words[h]=c<<26-s|d>>>s,c=d&o}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r||!(this.words[r]&i))},s.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},s.prototype.maskn=function(t){return this.clone().imaskn(t)},s.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)},s.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.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 e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},s.prototype.addn=function(t){return this.clone().iaddn(t)},s.prototype.subn=function(t){return this.clone().isubn(t)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(t,e,r){var i,s,a=t.length+r;this._expand(a);var o=0;for(i=0;i<t.length;i++){s=(0|this.words[i+r])+o;var u=(0|t.words[i])*e;o=((s-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&s}for(;i<this.length-r;i++)o=(s=(0|this.words[i+r])+o)>>26,this.words[i+r]=67108863&s;if(0===o)return this.strip();for(n(-1===o),o=0,i=0;i<this.length;i++)o=(s=-(0|this.words[i])+o)>>26,this.words[i]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!=(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var o,u=n.length-i.length;if("mod"!==e){(o=new s(null)).length=u+1,o.words=new Array(o.length);for(var h=0;h<o.length;h++)o.words[h]=0}var c=n.clone()._ishlnsubmul(i,1,u);0===c.negative&&(n=c,o&&(o.words[u]=1));for(var d=u-1;d>=0;d--){var l=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,d);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);o&&(o.words[d]=l)}return o&&o.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:o||null,mod:n}},s.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(o=this.neg().divmod(t,e),"mod"!==e&&(i=o.div.neg()),"div"!==e&&(a=o.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(o=this.divmod(t.neg(),e),"mod"!==e&&(i=o.div.neg()),{div:i,mod:o.mod}):this.negative&t.negative?(o=this.neg().divmod(t.neg(),e),"div"!==e&&(a=o.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:o.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,o},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.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),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new s(1),a=new s(0),o=new s(0),u=new s(1),h=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++h;for(var c=r.clone(),d=e.clone();!e.isZero();){for(var l=0,f=1;!(e.words[0]&f)&&l<26;++l,f<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var m=0,p=1;!(r.words[0]&p)&&m<26;++m,p<<=1);if(m>0)for(r.iushrn(m);m-- >0;)(o.isOdd()||u.isOdd())&&(o.iadd(c),u.isub(d)),o.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(o),a.isub(u)):(r.isub(e),o.isub(i),u.isub(a))}return{a:o,b:u,gcd:r.iushln(h)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new s(1),o=new s(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var h=0,c=1;!(e.words[0]&c)&&h<26;++h,c<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var d=0,l=1;!(r.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(r.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(o)):(r.isub(e),o.isub(a))}return(i=0===e.cmpn(1)?a:o).cmpn(0)<0&&i.iadd(t),i},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return!(1&this.words[0])},s.prototype.isOdd=function(){return!(1&~this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var s=i,a=r;0!==s&&a<this.length;a++){var o=0|this.words[a];s=(o+=s)>>>26,o&=67108863,this.words[a]=o}return 0!==s&&(this.words[a]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.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 i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},s.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},s.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new k(t)},s.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)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"==typeof t){var e=s._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 L(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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)}v.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.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},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},i(g,v),g.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var s=t.words[9];for(e.words[e.length++]=s&r,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&r)<<4|s>>>22,s=a}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},g.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(b,v),i(M,v),i(w,v),w.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new g;else if("p224"===t)e=new b;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new w}return y[t]=e,e},k.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){n(!(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new s(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var o=new s(1).toRed(this),u=o.redNeg(),h=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new s(2*c*c).toRed(this);0!==this.pow(c,h).cmp(u);)c.redIAdd(u);for(var d=this.pow(c,i),l=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),m=a;0!==f.cmp(o);){for(var p=f,_=0;0!==p.cmp(o);_++)p=p.redSqr();n(_<m);var y=this.pow(d,new s(1).iushln(m-_-1));l=l.redMul(y),d=y.redSqr(),f=f.redMul(d),m=_}return l},k.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},k.prototype.pow=function(t,e){if(e.isZero())return new s(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new s(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,o=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var h=e.words[n],c=u-1;c>=0;c--){var d=h>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4==++o||0===n&&0===c)&&(i=this.mul(i,r[a]),o=0,a=0)):o=0}u=26}return i},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new L(t)},i(L,k),L.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},L.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},L.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},L.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},L.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},()=>{},(t,e,r)=>{var n;function i(t){this.rand=t}if(t.exports=function(t){return n||(n=new i(null)),n.generate(t)},t.exports.Rand=i,i.prototype.generate=function(t){return this._rand(t)},i.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),r=0;r<e.length;r++)e[r]=this.rand.getByte();return e},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var s=r(200);if("function"!=typeof s.randomBytes)throw new Error("Not supported");i.prototype._rand=function(t){return s.randomBytes(t)}}catch(t){}},t=>{"use strict";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":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},(t,e,r)=>{var n=r(203).Buffer,i=r(281),s=new(r(283)),a=new i(24),o=new i(11),u=new i(10),h=new i(3),c=new i(7),d=r(280),l=r(201);function f(t,e){return e=e||"utf8",n.isBuffer(t)||(t=new n(t,e)),this._pub=new i(t),this}function m(t,e){return e=e||"utf8",n.isBuffer(t)||(t=new n(t,e)),this._priv=new i(t),this}t.exports=_;var p={};function _(t,e,r){this.setGenerator(e),this.__prime=new i(t),this._prime=i.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=f,this.setPrivateKey=m):this._primeCode=8}function y(t,e){var r=new n(t.toArray());return e?r.toString(e):r}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 p)return p[n];var i,l=0;if(t.isEven()||!d.simpleSieve||!d.fermatTest(t)||!s.test(t))return l+=1,l+="02"===r||"05"===r?8:4,p[n]=l,l;switch(s.test(t.shrn(1))||(l+=2),r){case"02":t.mod(a).cmp(o)&&(l+=8);break;case"05":(i=t.mod(u)).cmp(h)&&i.cmp(c)&&(l+=8);break;default:l+=4}return p[n]=l,l}(this.__prime,this.__gen)),this._primeCode}}),_.prototype.generateKeys=function(){return this._priv||(this._priv=new i(l(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},_.prototype.computeSecret=function(t){var e=(t=(t=new i(t)).toRed(this._prime)).redPow(this._priv).fromRed(),r=new n(e.toArray()),s=this.getPrime();if(r.length<s.length){var a=new n(s.length-r.length);a.fill(0),r=n.concat([a,r])}return r},_.prototype.getPublicKey=function(t){return y(this._pub,t)},_.prototype.getPrivateKey=function(t){return y(this._priv,t)},_.prototype.getPrime=function(t){return y(this.__prime,t)},_.prototype.getGenerator=function(t){return y(this._gen,t)},_.prototype.setGenerator=function(t,e){return e=e||"utf8",n.isBuffer(t)||(t=new n(t,e)),this.__gen=t,this._gen=new i(t),this}},(t,e,r)=>{"use strict";var n=r(202).Buffer,i=r(206),s=r(290),a=r(39),o=r(306),u=r(365),h=r(243);function c(t){s.Writable.call(this);var e=h[t];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=i(e.hash),this._tag=e.id,this._signType=e.sign}function d(t){s.Writable.call(this);var e=h[t];if(!e)throw new Error("Unknown message digest");this._hash=i(e.hash),this._tag=e.id,this._signType=e.sign}function l(t){return new c(t)}function f(t){return new d(t)}Object.keys(h).forEach((function(t){h[t].id=n.from(h[t].id,"hex"),h[t.toLowerCase()]=h[t]})),a(c,s.Writable),c.prototype._write=function(t,e,r){this._hash.update(t),r()},c.prototype.update=function(t,e){return this._hash.update("string"==typeof t?n.from(t,e):t),this},c.prototype.sign=function(t,e){this.end();var r=this._hash.digest(),n=o(r,t,this._hashType,this._signType,this._tag);return e?n.toString(e):n},a(d,s.Writable),d.prototype._write=function(t,e,r){this._hash.update(t),r()},d.prototype.update=function(t,e){return this._hash.update("string"==typeof t?n.from(t,e):t),this},d.prototype.verify=function(t,e,r){var i="string"==typeof e?n.from(e,r):e;this.end();var s=this._hash.digest();return u(i,s,t,this._signType,this._tag)},t.exports={Sign:l,Verify:f,createSign:l,createVerify:f}},(t,e,r)=>{(e=t.exports=r(291)).Stream=e,e.Readable=e,e.Writable=r(302),e.Duplex=r(301),e.Transform=r(304),e.PassThrough=r(305)},(t,e,r)=>{"use strict";var n=r(6),i=r(292);t.exports=g;var s,a=r(293);g.ReadableState=v,r(210).EventEmitter;var o=function(t,e){return t.listeners(e).length},u=r(294),h=r(295).Buffer,c=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},d=Object.create(r(296));d.inherits=r(39);var l=r(297),f=void 0;f=l&&l.debuglog?l.debuglog("stream"):function(){};var m,p=r(298),_=r(300);d.inherits(g,u);var y=["error","close","destroy","pause","resume"];function v(t,e){t=t||{};var n=e instanceof(s=s||r(301));this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,a=t.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new p,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(303).StringDecoder),this.decoder=new m(t.encoding),this.encoding=t.encoding)}function g(t){if(s=s||r(301),!(this instanceof g))return new g(t);this._readableState=new v(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),u.call(this)}function b(t,e,r,n,i){var s,a=t._readableState;return null===e?(a.reading=!1,function(t,e){if(!e.ended){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,L(t)}}(t,a)):(i||(s=function(t,e){var r,n;return n=e,h.isBuffer(n)||n instanceof c||"string"==typeof e||void 0===e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(a,e)),s?t.emit("error",s):a.objectMode||e&&e.length>0?("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===h.prototype||(e=function(t){return h.from(t)}(e)),n?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):M(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?M(t,a,e,!1):x(t,a)):M(t,a,e,!1))):n||(a.reading=!1)),function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(a)}function M(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&&L(t)),x(t,e)}Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),g.prototype.destroy=_.destroy,g.prototype._undestroy=_.undestroy,g.prototype._destroy=function(t,e){this.push(null),e(t)},g.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=h.from(t,e),e=""),r=!0),b(this,t,e,!1,r)},g.prototype.unshift=function(t){return b(this,t,null,!0,!1)},g.prototype.isPaused=function(){return!1===this._readableState.flowing},g.prototype.setEncoding=function(t){return m||(m=r(303).StringDecoder),this._readableState.decoder=new m(t),this._readableState.encoding=t,this};var w=8388608;function k(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>=w?t=w:(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 L(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(f("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(S,t):S(t))}function S(t){f("emit readable"),t.emit("readable"),E(t)}function x(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(Y,t,e))}function Y(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(f("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function T(t){f("readable nexttick read 0"),t.read(0)}function D(t,e){e.reading||(f("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),E(t),e.flowing&&!e.reading&&t.read(0)}function E(t){var e=t._readableState;for(f("flow",e.flowing);e.flowing&&null!==t.read(););}function j(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;return 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 r=e.head,n=1,i=r.data;for(t-=i.length;r=r.next;){var s=r.data,a=t>s.length?s.length:t;if(a===s.length?i+=s:i+=s.slice(0,t),0==(t-=a)){a===s.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=s.slice(a));break}++n}return e.length-=n,i}(t,e):function(t,e){var r=h.allocUnsafe(t),n=e.head,i=1;for(n.data.copy(r),t-=n.data.length;n=n.next;){var s=n.data,a=t>s.length?s.length:t;if(s.copy(r,r.length-t,0,a),0==(t-=a)){a===s.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=s.slice(a));break}++i}return e.length-=i,r}(t,e),n}(t,e.buffer,e.decoder),r);var r}function A(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,i.nextTick(O,e,t))}function O(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function P(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}g.prototype.read=function(t){f("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 f("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?A(this):L(this),null;if(0===(t=k(t,e))&&e.ended)return 0===e.length&&A(this),null;var n,i=e.needReadable;return f("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&f("length less than watermark",i=!0),e.ended||e.reading?f("reading or ended",i=!1):i&&(f("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=k(r,e))),null===(n=t>0?j(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&A(this)),null!==n&&this.emit("data",n),n},g.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},g.prototype.pipe=function(t,e){var r=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=t;break;case 1:s.pipes=[s.pipes,t];break;default:s.pipes.push(t)}s.pipesCount+=1,f("pipe count=%d opts=%j",s.pipesCount,e);var u=e&&!1===e.end||t===n.stdout||t===n.stderr?v:h;function h(){f("onend"),t.end()}s.endEmitted?i.nextTick(u):r.once("end",u),t.on("unpipe",(function e(n,i){f("onunpipe"),n===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,f("cleanup"),t.removeListener("close",_),t.removeListener("finish",y),t.removeListener("drain",c),t.removeListener("error",p),t.removeListener("unpipe",e),r.removeListener("end",h),r.removeListener("end",v),r.removeListener("data",m),d=!0,!s.awaitDrain||t._writableState&&!t._writableState.needDrain||c())}));var c=function(t){return function(){var e=t._readableState;f("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,E(t))}}(r);t.on("drain",c);var d=!1,l=!1;function m(e){f("ondata"),l=!1,!1!==t.write(e)||l||((1===s.pipesCount&&s.pipes===t||s.pipesCount>1&&-1!==P(s.pipes,t))&&!d&&(f("false write response, pause",s.awaitDrain),s.awaitDrain++,l=!0),r.pause())}function p(e){f("onerror",e),v(),t.removeListener("error",p),0===o(t,"error")&&t.emit("error",e)}function _(){t.removeListener("finish",y),v()}function y(){f("onfinish"),t.removeListener("close",_),v()}function v(){f("unpipe"),r.unpipe(t)}return r.on("data",m),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?a(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",p),t.once("close",_),t.once("finish",y),t.emit("pipe",r),s.flowing||(f("pipe resume"),r.resume()),t},g.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,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var a=P(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},g.prototype.on=function(t,e){var r=u.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&&L(this):i.nextTick(T,this))}return r},g.prototype.addListener=g.prototype.on,g.prototype.resume=function(){var t=this._readableState;return t.flowing||(f("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(D,t,e))}(this,t)),this},g.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this},g.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(f("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){f("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(e.push(i)||(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 s=0;s<y.length;s++)t.on(y[s],this.emit.bind(this,y[s]));return this._read=function(e){f("wrapped _read",e),n&&(n=!1,t.resume())},this},Object.defineProperty(g.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),g._fromList=j},(t,e,r)=>{"use strict";var n=r(6);void 0===n||!n.version||0===n.version.indexOf("v0.")||0===n.version.indexOf("v1.")&&0!==n.version.indexOf("v1.8.")?t.exports={nextTick:function(t,e,r,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var s,a,o=arguments.length;switch(o){case 0:case 1:return n.nextTick(t);case 2:return n.nextTick((function(){t.call(null,e)}));case 3:return n.nextTick((function(){t.call(null,e,r)}));case 4:return n.nextTick((function(){t.call(null,e,r,i)}));default:for(s=new Array(o-1),a=0;a<s.length;)s[a++]=arguments[a];return n.nextTick((function(){t.apply(null,s)}))}}}:t.exports=n},t=>{var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},(t,e,r)=>{t.exports=r(210).EventEmitter},(t,e,r)=>{var n=r(203),i=n.Buffer;function s(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(s(n,e),e.Buffer=a),s(i,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},(t,e,r)=>{function n(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===n(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},e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===n(t)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===n(t)},e.isError=function(t){return"[object Error]"===n(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=r(203).Buffer.isBuffer},()=>{},(t,e,r)=>{"use strict";var n=r(295).Buffer,i=r(299);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(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},t.prototype.concat=function(t){if(0===this.length)return n.alloc(0);for(var e,r,i=n.allocUnsafe(t>>>0),s=this.head,a=0;s;)e=i,r=a,s.data.copy(e,r),a+=s.data.length,s=s.next;return i},t}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+" "+t})},()=>{},(t,e,r)=>{"use strict";var n=r(292);function i(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var r=this,s=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return s||a?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,t)):n.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(i,r,t)):n.nextTick(i,r,t):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.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},(t,e,r)=>{"use strict";var n=r(292),i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=d;var s=Object.create(r(296));s.inherits=r(39);var a=r(291),o=r(302);s.inherits(d,a);for(var u=i(o.prototype),h=0;h<u.length;h++){var c=u[h];d.prototype[c]||(d.prototype[c]=o.prototype[c])}function d(t){if(!(this instanceof d))return new d(t);a.call(this,t),o.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",l)}function l(){this.allowHalfOpen||this._writableState.ended||n.nextTick(f,this)}function f(t){t.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.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)}}),d.prototype._destroy=function(t,e){this.push(null),this.end(),n.nextTick(e,t)}},(t,e,r)=>{"use strict";var n=r(6),i=r(292);function s(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e){var r=t.entry;for(t.entry=null;r;){var n=r.callback;e.pendingcb--,n(undefined),r=r.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=y;var a,o=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?setImmediate:i.nextTick;y.WritableState=_;var u=Object.create(r(296));u.inherits=r(39);var h,c={deprecate:r(221)},d=r(294),l=r(295).Buffer,f=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},m=r(300);function p(){}function _(t,e){a=a||r(301),t=t||{};var n=e instanceof a;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var u=t.highWaterMark,h=t.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=u||0===u?u:n&&(h||0===h)?h:c,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 d=!1===t.decodeStrings;this.decodeStrings=!d,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,n=r.sync,s=r.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,s){--e.pendingcb,r?(i.nextTick(s,n),i.nextTick(k,t,e),t._writableState.errorEmitted=!0,t.emit("error",n)):(s(n),t._writableState.errorEmitted=!0,t.emit("error",n),k(t,e))}(t,r,n,e,s);else{var a=M(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||b(t,r),n?o(g,t,r,a,s):g(t,r,a,s)}}(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 s(this)}function y(t){if(a=a||r(301),!(h.call(y,this)||this instanceof a))return new y(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 v(t,e,r,n,i,s,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function g(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),k(t,e)}function b(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),a=e.corkedRequestsFree;a.entry=r;for(var o=0,u=!0;r;)i[o]=r,r.isBuf||(u=!1),r=r.next,o+=1;i.allBuffers=u,v(t,e,!0,e.length,i,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new s(e),e.bufferedRequestCount=0}else{for(;r;){var h=r.chunk,c=r.encoding,d=r.callback;if(v(t,e,!1,e.objectMode?1:h.length,h,c,d),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function M(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function w(t,e){t._final((function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),k(t,e)}))}function k(t,e){var r=M(e);return r&&(function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,i.nextTick(w,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),r}u.inherits(y,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]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(t){return!!h.call(this,t)||this===y&&t&&t._writableState instanceof _}})):h=function(t){return t instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(t,e,r){var n,s=this._writableState,a=!1,o=!s.objectMode&&(n=t,l.isBuffer(n)||n instanceof f);return o&&!l.isBuffer(t)&&(t=function(t){return l.from(t)}(t)),"function"==typeof e&&(r=e,e=null),o?e="buffer":e||(e=s.defaultEncoding),"function"!=typeof r&&(r=p),s.ended?function(t,e){var r=new Error("write after end");t.emit("error",r),i.nextTick(e,r)}(this,r):(o||function(t,e,r,n){var s=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),i.nextTick(n,a),s=!1),s}(this,s,t,r))&&(s.pendingcb++,a=function(t,e,r,n,i,s){if(!r){var a=function(t,e,r){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=l.from(e,r)),e}(e,n,i);n!==a&&(r=!0,i="buffer",n=a)}var o=e.objectMode?1:n.length;e.length+=o;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var h=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},h?h.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else v(t,e,!1,o,n,i,s);return u}(this,s,o,t,e,r)),a},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||b(this,t))},y.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(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(t,e,r){var n=this._writableState;"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,e,r){e.ending=!0,k(t,e),r&&(e.finished?i.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}(this,n,r)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),y.prototype.destroy=m.destroy,y.prototype._undestroy=m.undestroy,y.prototype._destroy=function(t,e){this.end(),e(t)}},(t,e,r)=>{"use strict";var n=r(295).Buffer,i=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 s(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===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=h,e=4;break;case"utf8":this.fillLast=o,e=4;break;case"base64":this.text=c,this.end=d,e=3;break;default:return this.write=l,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function o(t){var e=this.lastTotal-this.lastNeed,r=function(t,e){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!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function h(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 c(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function d(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function l(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}e.StringDecoder=s,s.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},s.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},s.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=a(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||-2===i?0:(i=a(e[n]))>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||-2===i?0:(i=a(e[n]))>=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},s.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}},(t,e,r)=>{"use strict";t.exports=a;var n=r(301),i=Object.create(r(296));function s(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(t){if(!(this instanceof a))return new a(t);n.call(this,t),this._transformState={afterTransform:s.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",o)}function o(){var t=this;"function"==typeof this._flush?this._flush((function(e,r){u(t,e,r)})):u(this,null,null)}function u(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),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)}i.inherits=r(39),i.inherits(a,n),a.prototype.push=function(t,e){return this._transformState.needTransform=!1,n.prototype.push.call(this,t,e)},a.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")},a.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.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},a.prototype._destroy=function(t,e){var r=this;n.prototype._destroy.call(this,t,(function(t){e(t),r.emit("close")}))}},(t,e,r)=>{"use strict";t.exports=s;var n=r(304),i=Object.create(r(296));function s(t){if(!(this instanceof s))return new s(t);n.call(this,t)}i.inherits=r(39),i.inherits(s,n),s.prototype._transform=function(t,e,r){r(null,t)}},(t,e,r)=>{"use strict";var n=r(202).Buffer,i=r(239),s=r(307),a=r(310).ec,o=r(308),u=r(342),h=r(364);function c(t,e,r,s){if((t=n.from(t.toArray())).length<e.byteLength()){var a=n.alloc(e.byteLength()-t.length);t=n.concat([a,t])}var o=r.length,u=function(t,e){t=(t=d(t,e)).mod(e);var r=n.from(t.toArray());if(r.length<e.byteLength()){var i=n.alloc(e.byteLength()-r.length);r=n.concat([i,r])}return r}(r,e),h=n.alloc(o);h.fill(1);var c=n.alloc(o);return c=i(s,c).update(h).update(n.from([0])).update(t).update(u).digest(),h=i(s,c).update(h).digest(),{k:c=i(s,c).update(h).update(n.from([1])).update(t).update(u).digest(),v:h=i(s,c).update(h).digest()}}function d(t,e){var r=new o(t),n=(t.length<<3)-e.bitLength();return n>0&&r.ishrn(n),r}function l(t,e,r){var s,a;do{for(s=n.alloc(0);8*s.length<t.bitLength();)e.v=i(r,e.k).update(e.v).digest(),s=n.concat([s,e.v]);a=d(s,t),e.k=i(r,e.k).update(e.v).update(n.from([0])).digest(),e.v=i(r,e.k).update(e.v).digest()}while(-1!==a.cmp(t));return a}function f(t,e,r,n){return t.toRed(o.mont(r)).redPow(e).fromRed().mod(n)}t.exports=function(t,e,r,i,m){var p=u(e);if(p.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");return function(t,e){var r=h[e.curve.join(".")];if(!r)throw new Error("unknown curve "+e.curve.join("."));var i=new a(r).keyFromPrivate(e.privateKey).sign(t);return n.from(i.toDER())}(t,p)}if("dsa"===p.type){if("dsa"!==i)throw new Error("wrong private key type");return function(t,e,r){for(var i,s=e.params.priv_key,a=e.params.p,u=e.params.q,h=e.params.g,m=new o(0),p=d(t,u).mod(u),_=!1,y=c(s,u,t,r);!1===_;)m=f(h,i=l(u,y,r),a,u),0===(_=i.invm(u).imul(p.add(s.mul(m))).mod(u)).cmpn(0)&&(_=!1,m=new o(0));return function(t,e){t=t.toArray(),e=e.toArray(),128&t[0]&&(t=[0].concat(t)),128&e[0]&&(e=[0].concat(e));var r=[48,t.length+e.length+4,2,t.length];return r=r.concat(t,[2,e.length],e),n.from(r)}(m,_)}(t,p,r)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");if(void 0!==e.padding&&1!==e.padding)throw new Error("illegal or unsupported padding mode");t=n.concat([m,t]);for(var _=p.modulus.byteLength(),y=[0,1];t.length+y.length+1<_;)y.push(255);y.push(0);for(var v=-1;++v<t.length;)y.push(t[v]);return s(y,p)},t.exports.getKey=c,t.exports.makeKey=l},(t,e,r)=>{var n=r(203).Buffer,i=r(308),s=r(201);function a(t){var e,r=t.modulus.byteLength();do{e=new i(s(r))}while(e.cmp(t.modulus)>=0||!e.umod(t.prime1)||!e.umod(t.prime2));return e}function o(t,e){var r=function(t){var e=a(t);return{blinder:e.toRed(i.mont(t.modulus)).redPow(new i(t.publicExponent)).fromRed(),unblinder:e.invm(t.modulus)}}(e),s=e.modulus.byteLength(),o=new i(t).mul(r.blinder).umod(e.modulus),u=o.toRed(i.mont(e.prime1)),h=o.toRed(i.mont(e.prime2)),c=e.coefficient,d=e.prime1,l=e.prime2,f=u.redPow(e.exponent1).fromRed(),m=h.redPow(e.exponent2).fromRed(),p=f.isub(m).imul(c).umod(d).imul(l);return m.iadd(p).imul(r.unblinder).umod(e.modulus).toArrayLike(n,"be",s)}o.getr=a,t.exports=o},function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function s(t,e,r){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(309).Buffer}catch(t){}function o(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function u(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function h(t,e,r,i){for(var s=0,a=0,o=Math.min(t.length,r),u=e;u<o;u++){var h=t.charCodeAt(u)-48;s*=i,a=h>=49?h-49+10:h>=17?h-17+10:h,n(h>=0&&a<i,"Invalid character"),s+=a}return s}function c(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},s.prototype._initNumber=function(t,e,r){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"===r&&this._initArray(this.toArray(),e,r)},s.prototype._initArray=function(t,e,r){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 s,a,o=0;if("be"===r)for(i=t.length-1,s=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=a<<o&67108863,this.words[s+1]=a>>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);else if("le"===r)for(i=0,s=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[s]|=a<<o&67108863,this.words[s+1]=a>>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);return this._strip()},s.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,s=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=u(t,e,n)<<s,this.words[a]|=67108863&i,s>=18?(s-=18,a+=1,this.words[a]|=i>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)i=u(t,e,n)<<s,this.words[a]|=67108863&i,s>=18?(s-=18,a+=1,this.words[a]|=i>>>26):s+=8;this._strip()},s.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,a=s%n,o=Math.min(s,s-a)+r,u=0,c=r;c<o;c+=n)u=h(t,c,c+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var d=1;for(u=h(t,c,t.length,e),c=0;c<a;c++)d*=e;this.imuln(d),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},s.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},s.prototype._move=function(t){c(t,this)},s.prototype.clone=function(){var t=new s(null);return this.copy(t),t},s.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},s.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch(t){s.prototype.inspect=d}else s.prototype.inspect=d;function d(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var l=["","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"],f=[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],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],a=i*s,o=67108863&a,u=a/67108864|0;r.words[0]=o;for(var h=1;h<n;h++){for(var c=u>>>26,d=67108863&u,l=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=l;f++){var m=h-f|0;c+=(a=(i=0|t.words[m])*(s=0|e.words[f])+d)/67108864|0,d=67108863&a}r.words[h]=0|d,u=0|c}return 0!==u?r.words[h]=0|u:r.length--,r._strip()}s.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,s=0,a=0;a<this.length;a++){var o=this.words[a],u=(16777215&(o<<i|s)).toString(16);s=o>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==s||a!==this.length-1?l[6-u.length]+u+r:u+r}for(0!==s&&(r=s.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var h=f[t],c=m[t];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var p=d.modrn(c).toString(t);r=(d=d.idivn(c)).isZero()?p+r:l[h-p.length]+p+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.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},s.prototype.toJSON=function(){return this.toString(16,2)},a&&(s.prototype.toBuffer=function(t,e){return this.toArrayLike(a,t,e)}),s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,s);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,i),a},s.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,s=0;i<this.length;i++){var a=this.words[i]<<s|n;t[r++]=255&a,r<t.length&&(t[r++]=a>>8&255),r<t.length&&(t[r++]=a>>16&255),6===s?(r<t.length&&(t[r++]=a>>24&255),n=0,s=0):(n=a>>>24,s+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},s.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,s=0;i<this.length;i++){var a=this.words[i]<<s|n;t[r--]=255&a,r>=0&&(t[r--]=a>>8&255),r>=0&&(t[r--]=a>>16&255),6===s?(r>=0&&(t[r--]=a>>24&255),n=0,s=0):(n=a>>>24,s+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?s.prototype._countBits=function(t){return 32-Math.clz32(t)}:s.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},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 8191&e||(r+=13,e>>>=13),127&e||(r+=7,e>>>=7),15&e||(r+=4,e>>>=4),3&e||(r+=2,e>>>=2),1&e||r++,r},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},s.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},s.prototype.ior=function(t){return n(!(this.negative|t.negative)),this.iuor(t)},s.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},s.prototype.iand=function(t){return n(!(this.negative|t.negative)),this.iuand(t)},s.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},s.prototype.ixor=function(t){return n(!(this.negative|t.negative)),this.iuxor(t)},s.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.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()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this._strip()},s.prototype.iadd=function(t){var e,r,n;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?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s<n.length;s++)e=(0|r.words[s])+(0|n.words[s])+i,this.words[s]=67108863&e,i=e>>>26;for(;0!==i&&s<r.length;s++)e=(0|r.words[s])+i,this.words[s]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this},s.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)},s.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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,a=0;a<n.length;a++)s=(e=(0|r.words[a])-(0|n.words[a])+s)>>26,this.words[a]=67108863&e;for(;0!==s&&a<r.length;a++)s=(e=(0|r.words[a])+s)>>26,this.words[a]=67108863&e;if(0===s&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this._strip()},s.prototype.sub=function(t){return this.clone().isub(t)};var _=function(t,e,r){var n,i,s,a=t.words,o=e.words,u=r.words,h=0,c=0|a[0],d=8191&c,l=c>>>13,f=0|a[1],m=8191&f,p=f>>>13,_=0|a[2],y=8191&_,v=_>>>13,g=0|a[3],b=8191&g,M=g>>>13,w=0|a[4],k=8191&w,L=w>>>13,S=0|a[5],x=8191&S,Y=S>>>13,T=0|a[6],D=8191&T,E=T>>>13,j=0|a[7],A=8191&j,O=j>>>13,P=0|a[8],R=8191&P,H=P>>>13,I=0|a[9],C=8191&I,N=I>>>13,B=0|o[0],q=8191&B,F=B>>>13,U=0|o[1],z=8191&U,W=U>>>13,J=0|o[2],G=8191&J,K=J>>>13,V=0|o[3],Z=8191&V,$=V>>>13,X=0|o[4],Q=8191&X,tt=X>>>13,et=0|o[5],rt=8191&et,nt=et>>>13,it=0|o[6],st=8191&it,at=it>>>13,ot=0|o[7],ut=8191&ot,ht=ot>>>13,ct=0|o[8],dt=8191&ct,lt=ct>>>13,ft=0|o[9],mt=8191&ft,pt=ft>>>13;r.negative=t.negative^e.negative,r.length=19;var _t=(h+(n=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,F))+Math.imul(l,q)|0))<<13)|0;h=((s=Math.imul(l,F))+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(m,q),i=(i=Math.imul(m,F))+Math.imul(p,q)|0,s=Math.imul(p,F);var yt=(h+(n=n+Math.imul(d,z)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(l,z)|0))<<13)|0;h=((s=s+Math.imul(l,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,q),i=(i=Math.imul(y,F))+Math.imul(v,q)|0,s=Math.imul(v,F),n=n+Math.imul(m,z)|0,i=(i=i+Math.imul(m,W)|0)+Math.imul(p,z)|0,s=s+Math.imul(p,W)|0;var vt=(h+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(l,G)|0))<<13)|0;h=((s=s+Math.imul(l,K)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(b,q),i=(i=Math.imul(b,F))+Math.imul(M,q)|0,s=Math.imul(M,F),n=n+Math.imul(y,z)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(v,z)|0,s=s+Math.imul(v,W)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,K)|0)+Math.imul(p,G)|0,s=s+Math.imul(p,K)|0;var gt=(h+(n=n+Math.imul(d,Z)|0)|0)+((8191&(i=(i=i+Math.imul(d,$)|0)+Math.imul(l,Z)|0))<<13)|0;h=((s=s+Math.imul(l,$)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(k,q),i=(i=Math.imul(k,F))+Math.imul(L,q)|0,s=Math.imul(L,F),n=n+Math.imul(b,z)|0,i=(i=i+Math.imul(b,W)|0)+Math.imul(M,z)|0,s=s+Math.imul(M,W)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(v,G)|0,s=s+Math.imul(v,K)|0,n=n+Math.imul(m,Z)|0,i=(i=i+Math.imul(m,$)|0)+Math.imul(p,Z)|0,s=s+Math.imul(p,$)|0;var bt=(h+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,tt)|0)+Math.imul(l,Q)|0))<<13)|0;h=((s=s+Math.imul(l,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,F))+Math.imul(Y,q)|0,s=Math.imul(Y,F),n=n+Math.imul(k,z)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(L,z)|0,s=s+Math.imul(L,W)|0,n=n+Math.imul(b,G)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(M,G)|0,s=s+Math.imul(M,K)|0,n=n+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(v,Z)|0,s=s+Math.imul(v,$)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(p,Q)|0,s=s+Math.imul(p,tt)|0;var Mt=(h+(n=n+Math.imul(d,rt)|0)|0)+((8191&(i=(i=i+Math.imul(d,nt)|0)+Math.imul(l,rt)|0))<<13)|0;h=((s=s+Math.imul(l,nt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,F))+Math.imul(E,q)|0,s=Math.imul(E,F),n=n+Math.imul(x,z)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(Y,z)|0,s=s+Math.imul(Y,W)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(L,G)|0,s=s+Math.imul(L,K)|0,n=n+Math.imul(b,Z)|0,i=(i=i+Math.imul(b,$)|0)+Math.imul(M,Z)|0,s=s+Math.imul(M,$)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(v,Q)|0,s=s+Math.imul(v,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(p,rt)|0,s=s+Math.imul(p,nt)|0;var wt=(h+(n=n+Math.imul(d,st)|0)|0)+((8191&(i=(i=i+Math.imul(d,at)|0)+Math.imul(l,st)|0))<<13)|0;h=((s=s+Math.imul(l,at)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,F))+Math.imul(O,q)|0,s=Math.imul(O,F),n=n+Math.imul(D,z)|0,i=(i=i+Math.imul(D,W)|0)+Math.imul(E,z)|0,s=s+Math.imul(E,W)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(Y,G)|0,s=s+Math.imul(Y,K)|0,n=n+Math.imul(k,Z)|0,i=(i=i+Math.imul(k,$)|0)+Math.imul(L,Z)|0,s=s+Math.imul(L,$)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,Q)|0,s=s+Math.imul(M,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(v,rt)|0,s=s+Math.imul(v,nt)|0,n=n+Math.imul(m,st)|0,i=(i=i+Math.imul(m,at)|0)+Math.imul(p,st)|0,s=s+Math.imul(p,at)|0;var kt=(h+(n=n+Math.imul(d,ut)|0)|0)+((8191&(i=(i=i+Math.imul(d,ht)|0)+Math.imul(l,ut)|0))<<13)|0;h=((s=s+Math.imul(l,ht)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,F))+Math.imul(H,q)|0,s=Math.imul(H,F),n=n+Math.imul(A,z)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(O,z)|0,s=s+Math.imul(O,W)|0,n=n+Math.imul(D,G)|0,i=(i=i+Math.imul(D,K)|0)+Math.imul(E,G)|0,s=s+Math.imul(E,K)|0,n=n+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,$)|0)+Math.imul(Y,Z)|0,s=s+Math.imul(Y,$)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(L,Q)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(M,rt)|0,s=s+Math.imul(M,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,at)|0)+Math.imul(v,st)|0,s=s+Math.imul(v,at)|0,n=n+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ht)|0)+Math.imul(p,ut)|0,s=s+Math.imul(p,ht)|0;var Lt=(h+(n=n+Math.imul(d,dt)|0)|0)+((8191&(i=(i=i+Math.imul(d,lt)|0)+Math.imul(l,dt)|0))<<13)|0;h=((s=s+Math.imul(l,lt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(C,q),i=(i=Math.imul(C,F))+Math.imul(N,q)|0,s=Math.imul(N,F),n=n+Math.imul(R,z)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(H,z)|0,s=s+Math.imul(H,W)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(O,G)|0,s=s+Math.imul(O,K)|0,n=n+Math.imul(D,Z)|0,i=(i=i+Math.imul(D,$)|0)+Math.imul(E,Z)|0,s=s+Math.imul(E,$)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(Y,Q)|0,s=s+Math.imul(Y,tt)|0,n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(L,rt)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(b,st)|0,i=(i=i+Math.imul(b,at)|0)+Math.imul(M,st)|0,s=s+Math.imul(M,at)|0,n=n+Math.imul(y,ut)|0,i=(i=i+Math.imul(y,ht)|0)+Math.imul(v,ut)|0,s=s+Math.imul(v,ht)|0,n=n+Math.imul(m,dt)|0,i=(i=i+Math.imul(m,lt)|0)+Math.imul(p,dt)|0,s=s+Math.imul(p,lt)|0;var St=(h+(n=n+Math.imul(d,mt)|0)|0)+((8191&(i=(i=i+Math.imul(d,pt)|0)+Math.imul(l,mt)|0))<<13)|0;h=((s=s+Math.imul(l,pt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,W))+Math.imul(N,z)|0,s=Math.imul(N,W),n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(H,G)|0,s=s+Math.imul(H,K)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(O,Z)|0,s=s+Math.imul(O,$)|0,n=n+Math.imul(D,Q)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(E,Q)|0,s=s+Math.imul(E,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(Y,rt)|0,s=s+Math.imul(Y,nt)|0,n=n+Math.imul(k,st)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,at)|0,n=n+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(M,ut)|0,s=s+Math.imul(M,ht)|0,n=n+Math.imul(y,dt)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(v,dt)|0,s=s+Math.imul(v,lt)|0;var xt=(h+(n=n+Math.imul(m,mt)|0)|0)+((8191&(i=(i=i+Math.imul(m,pt)|0)+Math.imul(p,mt)|0))<<13)|0;h=((s=s+Math.imul(p,pt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(C,G),i=(i=Math.imul(C,K))+Math.imul(N,G)|0,s=Math.imul(N,K),n=n+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(H,Z)|0,s=s+Math.imul(H,$)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(O,Q)|0,s=s+Math.imul(O,tt)|0,n=n+Math.imul(D,rt)|0,i=(i=i+Math.imul(D,nt)|0)+Math.imul(E,rt)|0,s=s+Math.imul(E,nt)|0,n=n+Math.imul(x,st)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(Y,st)|0,s=s+Math.imul(Y,at)|0,n=n+Math.imul(k,ut)|0,i=(i=i+Math.imul(k,ht)|0)+Math.imul(L,ut)|0,s=s+Math.imul(L,ht)|0,n=n+Math.imul(b,dt)|0,i=(i=i+Math.imul(b,lt)|0)+Math.imul(M,dt)|0,s=s+Math.imul(M,lt)|0;var Yt=(h+(n=n+Math.imul(y,mt)|0)|0)+((8191&(i=(i=i+Math.imul(y,pt)|0)+Math.imul(v,mt)|0))<<13)|0;h=((s=s+Math.imul(v,pt)|0)+(i>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,n=Math.imul(C,Z),i=(i=Math.imul(C,$))+Math.imul(N,Z)|0,s=Math.imul(N,$),n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(H,Q)|0,s=s+Math.imul(H,tt)|0,n=n+Math.imul(A,rt)|0,i=(i=i+Math.imul(A,nt)|0)+Math.imul(O,rt)|0,s=s+Math.imul(O,nt)|0,n=n+Math.imul(D,st)|0,i=(i=i+Math.imul(D,at)|0)+Math.imul(E,st)|0,s=s+Math.imul(E,at)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ht)|0)+Math.imul(Y,ut)|0,s=s+Math.imul(Y,ht)|0,n=n+Math.imul(k,dt)|0,i=(i=i+Math.imul(k,lt)|0)+Math.imul(L,dt)|0,s=s+Math.imul(L,lt)|0;var Tt=(h+(n=n+Math.imul(b,mt)|0)|0)+((8191&(i=(i=i+Math.imul(b,pt)|0)+Math.imul(M,mt)|0))<<13)|0;h=((s=s+Math.imul(M,pt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(C,Q),i=(i=Math.imul(C,tt))+Math.imul(N,Q)|0,s=Math.imul(N,tt),n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(H,rt)|0,s=s+Math.imul(H,nt)|0,n=n+Math.imul(A,st)|0,i=(i=i+Math.imul(A,at)|0)+Math.imul(O,st)|0,s=s+Math.imul(O,at)|0,n=n+Math.imul(D,ut)|0,i=(i=i+Math.imul(D,ht)|0)+Math.imul(E,ut)|0,s=s+Math.imul(E,ht)|0,n=n+Math.imul(x,dt)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(Y,dt)|0,s=s+Math.imul(Y,lt)|0;var Dt=(h+(n=n+Math.imul(k,mt)|0)|0)+((8191&(i=(i=i+Math.imul(k,pt)|0)+Math.imul(L,mt)|0))<<13)|0;h=((s=s+Math.imul(L,pt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(C,rt),i=(i=Math.imul(C,nt))+Math.imul(N,rt)|0,s=Math.imul(N,nt),n=n+Math.imul(R,st)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(H,st)|0,s=s+Math.imul(H,at)|0,n=n+Math.imul(A,ut)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(O,ut)|0,s=s+Math.imul(O,ht)|0,n=n+Math.imul(D,dt)|0,i=(i=i+Math.imul(D,lt)|0)+Math.imul(E,dt)|0,s=s+Math.imul(E,lt)|0;var Et=(h+(n=n+Math.imul(x,mt)|0)|0)+((8191&(i=(i=i+Math.imul(x,pt)|0)+Math.imul(Y,mt)|0))<<13)|0;h=((s=s+Math.imul(Y,pt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(C,st),i=(i=Math.imul(C,at))+Math.imul(N,st)|0,s=Math.imul(N,at),n=n+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ht)|0)+Math.imul(H,ut)|0,s=s+Math.imul(H,ht)|0,n=n+Math.imul(A,dt)|0,i=(i=i+Math.imul(A,lt)|0)+Math.imul(O,dt)|0,s=s+Math.imul(O,lt)|0;var jt=(h+(n=n+Math.imul(D,mt)|0)|0)+((8191&(i=(i=i+Math.imul(D,pt)|0)+Math.imul(E,mt)|0))<<13)|0;h=((s=s+Math.imul(E,pt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(C,ut),i=(i=Math.imul(C,ht))+Math.imul(N,ut)|0,s=Math.imul(N,ht),n=n+Math.imul(R,dt)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(H,dt)|0,s=s+Math.imul(H,lt)|0;var At=(h+(n=n+Math.imul(A,mt)|0)|0)+((8191&(i=(i=i+Math.imul(A,pt)|0)+Math.imul(O,mt)|0))<<13)|0;h=((s=s+Math.imul(O,pt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(C,dt),i=(i=Math.imul(C,lt))+Math.imul(N,dt)|0,s=Math.imul(N,lt);var Ot=(h+(n=n+Math.imul(R,mt)|0)|0)+((8191&(i=(i=i+Math.imul(R,pt)|0)+Math.imul(H,mt)|0))<<13)|0;h=((s=s+Math.imul(H,pt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863;var Pt=(h+(n=Math.imul(C,mt))|0)+((8191&(i=(i=Math.imul(C,pt))+Math.imul(N,mt)|0))<<13)|0;return h=((s=Math.imul(N,pt))+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,u[0]=_t,u[1]=yt,u[2]=vt,u[3]=gt,u[4]=bt,u[5]=Mt,u[6]=wt,u[7]=kt,u[8]=Lt,u[9]=St,u[10]=xt,u[11]=Yt,u[12]=Tt,u[13]=Dt,u[14]=Et,u[15]=jt,u[16]=At,u[17]=Ot,u[18]=Pt,0!==h&&(u[19]=h,r.length++),r};function y(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s<r.length-1;s++){var a=i;i=0;for(var o=67108863&n,u=Math.min(s,e.length-1),h=Math.max(0,s-t.length+1);h<=u;h++){var c=s-h,d=(0|t.words[c])*(0|e.words[h]),l=67108863&d;o=67108863&(l=l+o|0),i+=(a=(a=a+(d/67108864|0)|0)+(l>>>26)|0)>>>26,a&=67108863}r.words[s]=o,n=a,a=i}return 0!==n?r.words[s]=n:r.length--,r._strip()}function v(t,e,r){return y(t,e,r)}function g(t,e){this.x=t,this.y=e}Math.imul||(_=p),s.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?_(this,t,e):r<63?p(this,t,e):r<1024?y(this,t,e):v(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),r=s.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},g.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},g.prototype.permute=function(t,e,r,n,i,s){for(var a=0;a<s;a++)n[a]=e[t[a]],i[a]=r[t[a]]},g.prototype.transform=function(t,e,r,n,i,s){this.permute(s,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var o=a<<1,u=Math.cos(2*Math.PI/o),h=Math.sin(2*Math.PI/o),c=0;c<i;c+=o)for(var d=u,l=h,f=0;f<a;f++){var m=r[c+f],p=n[c+f],_=r[c+f+a],y=n[c+f+a],v=d*_-l*y;y=d*y+l*_,_=v,r[c+f]=m+_,n[c+f]=p+y,r[c+f+a]=m-_,n[c+f+a]=p-y,f!==o&&(v=u*d-h*l,l=u*l+h*d,d=v)}},g.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},g.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},g.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,r,i){for(var s=0,a=0;a<e;a++)s+=0|t[a],r[2*a]=8191&s,s>>>=13,r[2*a+1]=8191&s,s>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===s),n(!(-8192&s))},g.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},g.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),s=this.stub(n),a=new Array(n),o=new Array(n),u=new Array(n),h=new Array(n),c=new Array(n),d=new Array(n),l=r.words;l.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,h,n),this.transform(a,s,o,u,n,i),this.transform(h,s,c,d,n,i);for(var f=0;f<n;f++){var m=o[f]*c[f]-u[f]*d[f];u[f]=o[f]*d[f]+u[f]*c[f],o[f]=m}return this.conjugate(o,u,n),this.transform(o,u,l,s,n,i),this.conjugate(l,s,n),this.normalize13b(l,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},s.prototype.mul=function(t){var e=new s(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},s.prototype.mulf=function(t){var e=new s(null);return e.words=new Array(this.length+t.length),v(this,t,e)},s.prototype.imul=function(t){return this.clone().mulTo(t,this)},s.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 s=(0|this.words[i])*t,a=(67108863&s)+(67108863&r);r>>=26,r+=s/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.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,i=r%26;e[r]=t.words[n]>>>i&1}return e}(t);if(0===e.length)return new s(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},s.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var o=this.words[e]&s,u=(0|this.words[e])-o<<r;this.words[e]=u|a,a=o>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},s.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},s.prototype.iushrn=function(t,e,r){var i;n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var s=t%26,a=Math.min((t-s)/26,this.length),o=67108863^67108863>>>s<<s,u=r;if(i-=a,i=Math.max(0,i),u){for(var h=0;h<a;h++)u.words[h]=this.words[h];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,h=0;h<this.length;h++)this.words[h]=this.words[h+a];else this.words[0]=0,this.length=1;var c=0;for(h=this.length-1;h>=0&&(0!==c||h>=i);h--){var d=0|this.words[h];this.words[h]=c<<26-s|d>>>s,c=d&o}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r||!(this.words[r]&i))},s.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this._strip()},s.prototype.maskn=function(t){return this.clone().imaskn(t)},s.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)},s.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.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 e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},s.prototype.addn=function(t){return this.clone().iaddn(t)},s.prototype.subn=function(t){return this.clone().isubn(t)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(t,e,r){var i,s,a=t.length+r;this._expand(a);var o=0;for(i=0;i<t.length;i++){s=(0|this.words[i+r])+o;var u=(0|t.words[i])*e;o=((s-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&s}for(;i<this.length-r;i++)o=(s=(0|this.words[i+r])+o)>>26,this.words[i+r]=67108863&s;if(0===o)return this._strip();for(n(-1===o),o=0,i=0;i<this.length;i++)o=(s=-(0|this.words[i])+o)>>26,this.words[i]=67108863&s;return this.negative=1,this._strip()},s.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!=(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var o,u=n.length-i.length;if("mod"!==e){(o=new s(null)).length=u+1,o.words=new Array(o.length);for(var h=0;h<o.length;h++)o.words[h]=0}var c=n.clone()._ishlnsubmul(i,1,u);0===c.negative&&(n=c,o&&(o.words[u]=1));for(var d=u-1;d>=0;d--){var l=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,d);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);o&&(o.words[d]=l)}return o&&o._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:o||null,mod:n}},s.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(o=this.neg().divmod(t,e),"mod"!==e&&(i=o.div.neg()),"div"!==e&&(a=o.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(o=this.divmod(t.neg(),e),"mod"!==e&&(i=o.div.neg()),{div:i,mod:o.mod}):this.negative&t.negative?(o=this.neg().divmod(t.neg(),e),"div"!==e&&(a=o.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:o.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,a,o},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.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),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,s=this.length-1;s>=0;s--)i=(r*i+(0|this.words[s]))%t;return e?-i:i},s.prototype.modn=function(t){return this.modrn(t)},s.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 s=(0|this.words[i])+67108864*r;this.words[i]=s/t|0,r=s%t}return this._strip(),e?this.ineg():this},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new s(1),a=new s(0),o=new s(0),u=new s(1),h=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++h;for(var c=r.clone(),d=e.clone();!e.isZero();){for(var l=0,f=1;!(e.words[0]&f)&&l<26;++l,f<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var m=0,p=1;!(r.words[0]&p)&&m<26;++m,p<<=1);if(m>0)for(r.iushrn(m);m-- >0;)(o.isOdd()||u.isOdd())&&(o.iadd(c),u.isub(d)),o.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(o),a.isub(u)):(r.isub(e),o.isub(i),u.isub(a))}return{a:o,b:u,gcd:r.iushln(h)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new s(1),o=new s(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var h=0,c=1;!(e.words[0]&c)&&h<26;++h,c<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var d=0,l=1;!(r.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(r.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(o)):(r.isub(e),o.isub(a))}return(i=0===e.cmpn(1)?a:o).cmpn(0)<0&&i.iadd(t),i},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return!(1&this.words[0])},s.prototype.isOdd=function(){return!(1&~this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var s=i,a=r;0!==s&&a<this.length;a++){var o=0|this.words[a];s=(o+=s)>>>26,o&=67108863,this.words[a]=o}return 0!==s&&(this.words[a]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.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 i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},s.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},s.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new x(t)},s.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)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function M(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){M.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){M.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function L(){M.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){M.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"==typeof t){var e=s._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 Y(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}M.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},M.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},M.prototype.split=function(t,e){t.iushrn(this.n,0,e)},M.prototype.imulK=function(t){return t.imul(this.k)},i(w,M),w.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var s=t.words[9];for(e.words[e.length++]=s&r,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&r)<<4|s>>>22,s=a}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(k,M),i(L,M),i(S,M),S.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new w;else if("p224"===t)e=new k;else if("p192"===t)e=new L;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new S}return b[t]=e,e},x.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){n(!(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(c(t,t.umod(this.m)._forceRed(this)),t)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},x.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new s(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var o=new s(1).toRed(this),u=o.redNeg(),h=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new s(2*c*c).toRed(this);0!==this.pow(c,h).cmp(u);)c.redIAdd(u);for(var d=this.pow(c,i),l=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),m=a;0!==f.cmp(o);){for(var p=f,_=0;0!==p.cmp(o);_++)p=p.redSqr();n(_<m);var y=this.pow(d,new s(1).iushln(m-_-1));l=l.redMul(y),d=y.redSqr(),f=f.redMul(d),m=_}return l},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new s(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new s(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,o=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var h=e.words[n],c=u-1;c>=0;c--){var d=h>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4==++o||0===n&&0===c)&&(i=this.mul(i,r[a]),o=0,a=0)):o=0}u=26}return i},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},s.mont=function(t){return new Y(t)},i(Y,x),Y.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},Y.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},Y.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},Y.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},Y.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},()=>{},(t,e,r)=>{"use strict";var n=e;n.version=r(311).version,n.utils=r(312),n.rand=r(286),n.curve=r(316),n.curves=r(321),n.ec=r(335),n.eddsa=r(339)},t=>{"use strict";t.exports=JSON.parse('{"name":"elliptic","version":"6.5.7","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny <fedor@indutny.com>","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},(t,e,r)=>{"use strict";var n=e,i=r(313),s=r(255),a=r(315);n.assert=s,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=function(t,e,r){var n,i=new Array(Math.max(t.bitLength(),r)+1);for(n=0;n<i.length;n+=1)i[n]=0;var s=1<<e+1,a=t.clone();for(n=0;n<i.length;n++){var o,u=a.andln(s-1);a.isOdd()?(o=u>(s>>1)-1?(s>>1)-u:u,a.isubn(o)):o=0,i[n]=o,a.iushrn(1)}return i},n.getJSF=function(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var n,i=0,s=0;t.cmpn(-i)>0||e.cmpn(-s)>0;){var a,o,u=t.andln(3)+i&3,h=e.andln(3)+s&3;3===u&&(u=-1),3===h&&(h=-1),a=1&u?3!=(n=t.andln(7)+i&7)&&5!==n||2!==h?u:-u:0,r[0].push(a),o=1&h?3!=(n=e.andln(7)+s&7)&&5!==n||2!==u?h:-h:0,r[1].push(o),2*i===a+1&&(i=1-i),2*s===o+1&&(s=1-s),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 i(t,"hex","le")}},function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function s(t,e,r){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(314).Buffer}catch(t){}function o(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function h(t,e,r,n){for(var i=0,s=Math.min(t.length,r),a=e;a<s;a++){var o=t.charCodeAt(a)-48;i*=n,i+=o>=49?o-49+10:o>=17?o-17+10:o}return i}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},s.prototype._initNumber=function(t,e,r){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"===r&&this._initArray(this.toArray(),e,r)},s.prototype._initArray=function(t,e,r){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 s,a,o=0;if("be"===r)for(i=t.length-1,s=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=a<<o&67108863,this.words[s+1]=a>>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);else if("le"===r)for(i=0,s=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[s]|=a<<o&67108863,this.words[s+1]=a>>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,s=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=u(t,e,n)<<s,this.words[a]|=67108863&i,s>=18?(s-=18,a+=1,this.words[a]|=i>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)i=u(t,e,n)<<s,this.words[a]|=67108863&i,s>=18?(s-=18,a+=1,this.words[a]|=i>>>26):s+=8;this.strip()},s.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,a=s%n,o=Math.min(s,s-a)+r,u=0,c=r;c<o;c+=n)u=h(t,c,c+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var d=1;for(u=h(t,c,t.length,e),c=0;c<a;c++)d*=e;this.imuln(d),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},s.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},s.prototype.clone=function(){var t=new s(null);return this.copy(t),t},s.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","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"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],a=i*s,o=67108863&a,u=a/67108864|0;r.words[0]=o;for(var h=1;h<n;h++){for(var c=u>>>26,d=67108863&u,l=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=l;f++){var m=h-f|0;c+=(a=(i=0|t.words[m])*(s=0|e.words[f])+d)/67108864|0,d=67108863&a}r.words[h]=0|d,u=0|c}return 0!==u?r.words[h]=0|u:r.length--,r.strip()}s.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,s=0,a=0;a<this.length;a++){var o=this.words[a],u=(16777215&(o<<i|s)).toString(16);r=0!=(s=o>>>24-i&16777215)||a!==this.length-1?c[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==s&&(r=s.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var h=d[t],f=l[t];r="";var m=this.clone();for(m.negative=0;!m.isZero();){var p=m.modn(f).toString(t);r=(m=m.idivn(f)).isZero()?p+r:c[h-p.length]+p+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.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},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==a),this.toArrayLike(a,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var a,o,u="le"===e,h=new t(s),c=this.clone();if(u){for(o=0;!c.isZero();o++)a=c.andln(255),c.iushrn(8),h[o]=a;for(;o<s;o++)h[o]=0}else{for(o=0;o<s-i;o++)h[o]=0;for(o=0;!c.isZero();o++)a=c.andln(255),c.iushrn(8),h[s-o-1]=a}return h},Math.clz32?s.prototype._countBits=function(t){return 32-Math.clz32(t)}:s.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},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 8191&e||(r+=13,e>>>=13),127&e||(r+=7,e>>>=7),15&e||(r+=4,e>>>=4),3&e||(r+=2,e>>>=2),1&e||r++,r},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},s.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},s.prototype.ior=function(t){return n(!(this.negative|t.negative)),this.iuor(t)},s.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},s.prototype.iand=function(t){return n(!(this.negative|t.negative)),this.iuand(t)},s.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},s.prototype.ixor=function(t){return n(!(this.negative|t.negative)),this.iuxor(t)},s.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.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()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},s.prototype.iadd=function(t){var e,r,n;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?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s<n.length;s++)e=(0|r.words[s])+(0|n.words[s])+i,this.words[s]=67108863&e,i=e>>>26;for(;0!==i&&s<r.length;s++)e=(0|r.words[s])+i,this.words[s]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this},s.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)},s.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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,a=0;a<n.length;a++)s=(e=(0|r.words[a])-(0|n.words[a])+s)>>26,this.words[a]=67108863&e;for(;0!==s&&a<r.length;a++)s=(e=(0|r.words[a])+s)>>26,this.words[a]=67108863&e;if(0===s&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(t){return this.clone().isub(t)};var m=function(t,e,r){var n,i,s,a=t.words,o=e.words,u=r.words,h=0,c=0|a[0],d=8191&c,l=c>>>13,f=0|a[1],m=8191&f,p=f>>>13,_=0|a[2],y=8191&_,v=_>>>13,g=0|a[3],b=8191&g,M=g>>>13,w=0|a[4],k=8191&w,L=w>>>13,S=0|a[5],x=8191&S,Y=S>>>13,T=0|a[6],D=8191&T,E=T>>>13,j=0|a[7],A=8191&j,O=j>>>13,P=0|a[8],R=8191&P,H=P>>>13,I=0|a[9],C=8191&I,N=I>>>13,B=0|o[0],q=8191&B,F=B>>>13,U=0|o[1],z=8191&U,W=U>>>13,J=0|o[2],G=8191&J,K=J>>>13,V=0|o[3],Z=8191&V,$=V>>>13,X=0|o[4],Q=8191&X,tt=X>>>13,et=0|o[5],rt=8191&et,nt=et>>>13,it=0|o[6],st=8191&it,at=it>>>13,ot=0|o[7],ut=8191&ot,ht=ot>>>13,ct=0|o[8],dt=8191&ct,lt=ct>>>13,ft=0|o[9],mt=8191&ft,pt=ft>>>13;r.negative=t.negative^e.negative,r.length=19;var _t=(h+(n=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,F))+Math.imul(l,q)|0))<<13)|0;h=((s=Math.imul(l,F))+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(m,q),i=(i=Math.imul(m,F))+Math.imul(p,q)|0,s=Math.imul(p,F);var yt=(h+(n=n+Math.imul(d,z)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(l,z)|0))<<13)|0;h=((s=s+Math.imul(l,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,q),i=(i=Math.imul(y,F))+Math.imul(v,q)|0,s=Math.imul(v,F),n=n+Math.imul(m,z)|0,i=(i=i+Math.imul(m,W)|0)+Math.imul(p,z)|0,s=s+Math.imul(p,W)|0;var vt=(h+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(l,G)|0))<<13)|0;h=((s=s+Math.imul(l,K)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(b,q),i=(i=Math.imul(b,F))+Math.imul(M,q)|0,s=Math.imul(M,F),n=n+Math.imul(y,z)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(v,z)|0,s=s+Math.imul(v,W)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,K)|0)+Math.imul(p,G)|0,s=s+Math.imul(p,K)|0;var gt=(h+(n=n+Math.imul(d,Z)|0)|0)+((8191&(i=(i=i+Math.imul(d,$)|0)+Math.imul(l,Z)|0))<<13)|0;h=((s=s+Math.imul(l,$)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(k,q),i=(i=Math.imul(k,F))+Math.imul(L,q)|0,s=Math.imul(L,F),n=n+Math.imul(b,z)|0,i=(i=i+Math.imul(b,W)|0)+Math.imul(M,z)|0,s=s+Math.imul(M,W)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(v,G)|0,s=s+Math.imul(v,K)|0,n=n+Math.imul(m,Z)|0,i=(i=i+Math.imul(m,$)|0)+Math.imul(p,Z)|0,s=s+Math.imul(p,$)|0;var bt=(h+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,tt)|0)+Math.imul(l,Q)|0))<<13)|0;h=((s=s+Math.imul(l,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,F))+Math.imul(Y,q)|0,s=Math.imul(Y,F),n=n+Math.imul(k,z)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(L,z)|0,s=s+Math.imul(L,W)|0,n=n+Math.imul(b,G)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(M,G)|0,s=s+Math.imul(M,K)|0,n=n+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(v,Z)|0,s=s+Math.imul(v,$)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(p,Q)|0,s=s+Math.imul(p,tt)|0;var Mt=(h+(n=n+Math.imul(d,rt)|0)|0)+((8191&(i=(i=i+Math.imul(d,nt)|0)+Math.imul(l,rt)|0))<<13)|0;h=((s=s+Math.imul(l,nt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,F))+Math.imul(E,q)|0,s=Math.imul(E,F),n=n+Math.imul(x,z)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(Y,z)|0,s=s+Math.imul(Y,W)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(L,G)|0,s=s+Math.imul(L,K)|0,n=n+Math.imul(b,Z)|0,i=(i=i+Math.imul(b,$)|0)+Math.imul(M,Z)|0,s=s+Math.imul(M,$)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(v,Q)|0,s=s+Math.imul(v,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(p,rt)|0,s=s+Math.imul(p,nt)|0;var wt=(h+(n=n+Math.imul(d,st)|0)|0)+((8191&(i=(i=i+Math.imul(d,at)|0)+Math.imul(l,st)|0))<<13)|0;h=((s=s+Math.imul(l,at)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,F))+Math.imul(O,q)|0,s=Math.imul(O,F),n=n+Math.imul(D,z)|0,i=(i=i+Math.imul(D,W)|0)+Math.imul(E,z)|0,s=s+Math.imul(E,W)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(Y,G)|0,s=s+Math.imul(Y,K)|0,n=n+Math.imul(k,Z)|0,i=(i=i+Math.imul(k,$)|0)+Math.imul(L,Z)|0,s=s+Math.imul(L,$)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,Q)|0,s=s+Math.imul(M,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(v,rt)|0,s=s+Math.imul(v,nt)|0,n=n+Math.imul(m,st)|0,i=(i=i+Math.imul(m,at)|0)+Math.imul(p,st)|0,s=s+Math.imul(p,at)|0;var kt=(h+(n=n+Math.imul(d,ut)|0)|0)+((8191&(i=(i=i+Math.imul(d,ht)|0)+Math.imul(l,ut)|0))<<13)|0;h=((s=s+Math.imul(l,ht)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,F))+Math.imul(H,q)|0,s=Math.imul(H,F),n=n+Math.imul(A,z)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(O,z)|0,s=s+Math.imul(O,W)|0,n=n+Math.imul(D,G)|0,i=(i=i+Math.imul(D,K)|0)+Math.imul(E,G)|0,s=s+Math.imul(E,K)|0,n=n+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,$)|0)+Math.imul(Y,Z)|0,s=s+Math.imul(Y,$)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(L,Q)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(M,rt)|0,s=s+Math.imul(M,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,at)|0)+Math.imul(v,st)|0,s=s+Math.imul(v,at)|0,n=n+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ht)|0)+Math.imul(p,ut)|0,s=s+Math.imul(p,ht)|0;var Lt=(h+(n=n+Math.imul(d,dt)|0)|0)+((8191&(i=(i=i+Math.imul(d,lt)|0)+Math.imul(l,dt)|0))<<13)|0;h=((s=s+Math.imul(l,lt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(C,q),i=(i=Math.imul(C,F))+Math.imul(N,q)|0,s=Math.imul(N,F),n=n+Math.imul(R,z)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(H,z)|0,s=s+Math.imul(H,W)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(O,G)|0,s=s+Math.imul(O,K)|0,n=n+Math.imul(D,Z)|0,i=(i=i+Math.imul(D,$)|0)+Math.imul(E,Z)|0,s=s+Math.imul(E,$)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(Y,Q)|0,s=s+Math.imul(Y,tt)|0,n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(L,rt)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(b,st)|0,i=(i=i+Math.imul(b,at)|0)+Math.imul(M,st)|0,s=s+Math.imul(M,at)|0,n=n+Math.imul(y,ut)|0,i=(i=i+Math.imul(y,ht)|0)+Math.imul(v,ut)|0,s=s+Math.imul(v,ht)|0,n=n+Math.imul(m,dt)|0,i=(i=i+Math.imul(m,lt)|0)+Math.imul(p,dt)|0,s=s+Math.imul(p,lt)|0;var St=(h+(n=n+Math.imul(d,mt)|0)|0)+((8191&(i=(i=i+Math.imul(d,pt)|0)+Math.imul(l,mt)|0))<<13)|0;h=((s=s+Math.imul(l,pt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,W))+Math.imul(N,z)|0,s=Math.imul(N,W),n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(H,G)|0,s=s+Math.imul(H,K)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(O,Z)|0,s=s+Math.imul(O,$)|0,n=n+Math.imul(D,Q)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(E,Q)|0,s=s+Math.imul(E,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(Y,rt)|0,s=s+Math.imul(Y,nt)|0,n=n+Math.imul(k,st)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,at)|0,n=n+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(M,ut)|0,s=s+Math.imul(M,ht)|0,n=n+Math.imul(y,dt)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(v,dt)|0,s=s+Math.imul(v,lt)|0;var xt=(h+(n=n+Math.imul(m,mt)|0)|0)+((8191&(i=(i=i+Math.imul(m,pt)|0)+Math.imul(p,mt)|0))<<13)|0;h=((s=s+Math.imul(p,pt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(C,G),i=(i=Math.imul(C,K))+Math.imul(N,G)|0,s=Math.imul(N,K),n=n+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(H,Z)|0,s=s+Math.imul(H,$)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(O,Q)|0,s=s+Math.imul(O,tt)|0,n=n+Math.imul(D,rt)|0,i=(i=i+Math.imul(D,nt)|0)+Math.imul(E,rt)|0,s=s+Math.imul(E,nt)|0,n=n+Math.imul(x,st)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(Y,st)|0,s=s+Math.imul(Y,at)|0,n=n+Math.imul(k,ut)|0,i=(i=i+Math.imul(k,ht)|0)+Math.imul(L,ut)|0,s=s+Math.imul(L,ht)|0,n=n+Math.imul(b,dt)|0,i=(i=i+Math.imul(b,lt)|0)+Math.imul(M,dt)|0,s=s+Math.imul(M,lt)|0;var Yt=(h+(n=n+Math.imul(y,mt)|0)|0)+((8191&(i=(i=i+Math.imul(y,pt)|0)+Math.imul(v,mt)|0))<<13)|0;h=((s=s+Math.imul(v,pt)|0)+(i>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,n=Math.imul(C,Z),i=(i=Math.imul(C,$))+Math.imul(N,Z)|0,s=Math.imul(N,$),n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(H,Q)|0,s=s+Math.imul(H,tt)|0,n=n+Math.imul(A,rt)|0,i=(i=i+Math.imul(A,nt)|0)+Math.imul(O,rt)|0,s=s+Math.imul(O,nt)|0,n=n+Math.imul(D,st)|0,i=(i=i+Math.imul(D,at)|0)+Math.imul(E,st)|0,s=s+Math.imul(E,at)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ht)|0)+Math.imul(Y,ut)|0,s=s+Math.imul(Y,ht)|0,n=n+Math.imul(k,dt)|0,i=(i=i+Math.imul(k,lt)|0)+Math.imul(L,dt)|0,s=s+Math.imul(L,lt)|0;var Tt=(h+(n=n+Math.imul(b,mt)|0)|0)+((8191&(i=(i=i+Math.imul(b,pt)|0)+Math.imul(M,mt)|0))<<13)|0;h=((s=s+Math.imul(M,pt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(C,Q),i=(i=Math.imul(C,tt))+Math.imul(N,Q)|0,s=Math.imul(N,tt),n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(H,rt)|0,s=s+Math.imul(H,nt)|0,n=n+Math.imul(A,st)|0,i=(i=i+Math.imul(A,at)|0)+Math.imul(O,st)|0,s=s+Math.imul(O,at)|0,n=n+Math.imul(D,ut)|0,i=(i=i+Math.imul(D,ht)|0)+Math.imul(E,ut)|0,s=s+Math.imul(E,ht)|0,n=n+Math.imul(x,dt)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(Y,dt)|0,s=s+Math.imul(Y,lt)|0;var Dt=(h+(n=n+Math.imul(k,mt)|0)|0)+((8191&(i=(i=i+Math.imul(k,pt)|0)+Math.imul(L,mt)|0))<<13)|0;h=((s=s+Math.imul(L,pt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(C,rt),i=(i=Math.imul(C,nt))+Math.imul(N,rt)|0,s=Math.imul(N,nt),n=n+Math.imul(R,st)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(H,st)|0,s=s+Math.imul(H,at)|0,n=n+Math.imul(A,ut)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(O,ut)|0,s=s+Math.imul(O,ht)|0,n=n+Math.imul(D,dt)|0,i=(i=i+Math.imul(D,lt)|0)+Math.imul(E,dt)|0,s=s+Math.imul(E,lt)|0;var Et=(h+(n=n+Math.imul(x,mt)|0)|0)+((8191&(i=(i=i+Math.imul(x,pt)|0)+Math.imul(Y,mt)|0))<<13)|0;h=((s=s+Math.imul(Y,pt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(C,st),i=(i=Math.imul(C,at))+Math.imul(N,st)|0,s=Math.imul(N,at),n=n+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ht)|0)+Math.imul(H,ut)|0,s=s+Math.imul(H,ht)|0,n=n+Math.imul(A,dt)|0,i=(i=i+Math.imul(A,lt)|0)+Math.imul(O,dt)|0,s=s+Math.imul(O,lt)|0;var jt=(h+(n=n+Math.imul(D,mt)|0)|0)+((8191&(i=(i=i+Math.imul(D,pt)|0)+Math.imul(E,mt)|0))<<13)|0;h=((s=s+Math.imul(E,pt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(C,ut),i=(i=Math.imul(C,ht))+Math.imul(N,ut)|0,s=Math.imul(N,ht),n=n+Math.imul(R,dt)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(H,dt)|0,s=s+Math.imul(H,lt)|0;var At=(h+(n=n+Math.imul(A,mt)|0)|0)+((8191&(i=(i=i+Math.imul(A,pt)|0)+Math.imul(O,mt)|0))<<13)|0;h=((s=s+Math.imul(O,pt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(C,dt),i=(i=Math.imul(C,lt))+Math.imul(N,dt)|0,s=Math.imul(N,lt);var Ot=(h+(n=n+Math.imul(R,mt)|0)|0)+((8191&(i=(i=i+Math.imul(R,pt)|0)+Math.imul(H,mt)|0))<<13)|0;h=((s=s+Math.imul(H,pt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863;var Pt=(h+(n=Math.imul(C,mt))|0)+((8191&(i=(i=Math.imul(C,pt))+Math.imul(N,mt)|0))<<13)|0;return h=((s=Math.imul(N,pt))+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,u[0]=_t,u[1]=yt,u[2]=vt,u[3]=gt,u[4]=bt,u[5]=Mt,u[6]=wt,u[7]=kt,u[8]=Lt,u[9]=St,u[10]=xt,u[11]=Yt,u[12]=Tt,u[13]=Dt,u[14]=Et,u[15]=jt,u[16]=At,u[17]=Ot,u[18]=Pt,0!==h&&(u[19]=h,r.length++),r};function p(t,e,r){return(new _).mulp(t,e,r)}function _(t,e){this.x=t,this.y=e}Math.imul||(m=f),s.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?m(this,t,e):n<63?f(this,t,e):n<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s<r.length-1;s++){var a=i;i=0;for(var o=67108863&n,u=Math.min(s,e.length-1),h=Math.max(0,s-t.length+1);h<=u;h++){var c=s-h,d=(0|t.words[c])*(0|e.words[h]),l=67108863&d;o=67108863&(l=l+o|0),i+=(a=(a=a+(d/67108864|0)|0)+(l>>>26)|0)>>>26,a&=67108863}r.words[s]=o,n=a,a=i}return 0!==n?r.words[s]=n:r.length--,r.strip()}(this,t,e):p(this,t,e),r},_.prototype.makeRBT=function(t){for(var e=new Array(t),r=s.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,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,i,s){for(var a=0;a<s;a++)n[a]=e[t[a]],i[a]=r[t[a]]},_.prototype.transform=function(t,e,r,n,i,s){this.permute(s,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var o=a<<1,u=Math.cos(2*Math.PI/o),h=Math.sin(2*Math.PI/o),c=0;c<i;c+=o)for(var d=u,l=h,f=0;f<a;f++){var m=r[c+f],p=n[c+f],_=r[c+f+a],y=n[c+f+a],v=d*_-l*y;y=d*y+l*_,_=v,r[c+f]=m+_,n[c+f]=p+y,r[c+f+a]=m-_,n[c+f+a]=p-y,f!==o&&(v=u*d-h*l,l=u*l+h*d,d=v)}},_.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 n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},_.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},_.prototype.convert13b=function(t,e,r,i){for(var s=0,a=0;a<e;a++)s+=0|t[a],r[2*a]=8191&s,s>>>=13,r[2*a+1]=8191&s,s>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===s),n(!(-8192&s))},_.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},_.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),s=this.stub(n),a=new Array(n),o=new Array(n),u=new Array(n),h=new Array(n),c=new Array(n),d=new Array(n),l=r.words;l.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,h,n),this.transform(a,s,o,u,n,i),this.transform(h,s,c,d,n,i);for(var f=0;f<n;f++){var m=o[f]*c[f]-u[f]*d[f];u[f]=o[f]*d[f]+u[f]*c[f],o[f]=m}return this.conjugate(o,u,n),this.transform(o,u,l,s,n,i),this.conjugate(l,s,n),this.normalize13b(l,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},s.prototype.mul=function(t){var e=new s(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},s.prototype.mulf=function(t){var e=new s(null);return e.words=new Array(this.length+t.length),p(this,t,e)},s.prototype.imul=function(t){return this.clone().mulTo(t,this)},s.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,s=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=s>>>26,this.words[r]=67108863&s}return 0!==e&&(this.words[r]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.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,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}(t);if(0===e.length)return new s(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},s.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var o=this.words[e]&s,u=(0|this.words[e])-o<<r;this.words[e]=u|a,a=o>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},s.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},s.prototype.iushrn=function(t,e,r){var i;n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var s=t%26,a=Math.min((t-s)/26,this.length),o=67108863^67108863>>>s<<s,u=r;if(i-=a,i=Math.max(0,i),u){for(var h=0;h<a;h++)u.words[h]=this.words[h];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,h=0;h<this.length;h++)this.words[h]=this.words[h+a];else this.words[0]=0,this.length=1;var c=0;for(h=this.length-1;h>=0&&(0!==c||h>=i);h--){var d=0|this.words[h];this.words[h]=c<<26-s|d>>>s,c=d&o}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r||!(this.words[r]&i))},s.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},s.prototype.maskn=function(t){return this.clone().imaskn(t)},s.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)},s.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.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 e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},s.prototype.addn=function(t){return this.clone().iaddn(t)},s.prototype.subn=function(t){return this.clone().isubn(t)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(t,e,r){var i,s,a=t.length+r;this._expand(a);var o=0;for(i=0;i<t.length;i++){s=(0|this.words[i+r])+o;var u=(0|t.words[i])*e;o=((s-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&s}for(;i<this.length-r;i++)o=(s=(0|this.words[i+r])+o)>>26,this.words[i+r]=67108863&s;if(0===o)return this.strip();for(n(-1===o),o=0,i=0;i<this.length;i++)o=(s=-(0|this.words[i])+o)>>26,this.words[i]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!=(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var o,u=n.length-i.length;if("mod"!==e){(o=new s(null)).length=u+1,o.words=new Array(o.length);for(var h=0;h<o.length;h++)o.words[h]=0}var c=n.clone()._ishlnsubmul(i,1,u);0===c.negative&&(n=c,o&&(o.words[u]=1));for(var d=u-1;d>=0;d--){var l=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,d);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);o&&(o.words[d]=l)}return o&&o.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:o||null,mod:n}},s.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(o=this.neg().divmod(t,e),"mod"!==e&&(i=o.div.neg()),"div"!==e&&(a=o.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(o=this.divmod(t.neg(),e),"mod"!==e&&(i=o.div.neg()),{div:i,mod:o.mod}):this.negative&t.negative?(o=this.neg().divmod(t.neg(),e),"div"!==e&&(a=o.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:o.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,o},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.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),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new s(1),a=new s(0),o=new s(0),u=new s(1),h=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++h;for(var c=r.clone(),d=e.clone();!e.isZero();){for(var l=0,f=1;!(e.words[0]&f)&&l<26;++l,f<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var m=0,p=1;!(r.words[0]&p)&&m<26;++m,p<<=1);if(m>0)for(r.iushrn(m);m-- >0;)(o.isOdd()||u.isOdd())&&(o.iadd(c),u.isub(d)),o.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(o),a.isub(u)):(r.isub(e),o.isub(i),u.isub(a))}return{a:o,b:u,gcd:r.iushln(h)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new s(1),o=new s(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var h=0,c=1;!(e.words[0]&c)&&h<26;++h,c<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var d=0,l=1;!(r.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(r.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(o)):(r.isub(e),o.isub(a))}return(i=0===e.cmpn(1)?a:o).cmpn(0)<0&&i.iadd(t),i},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return!(1&this.words[0])},s.prototype.isOdd=function(){return!(1&~this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var s=i,a=r;0!==s&&a<this.length;a++){var o=0|this.words[a];s=(o+=s)>>>26,o&=67108863,this.words[a]=o}return 0!==s&&(this.words[a]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.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 i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},s.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},s.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new k(t)},s.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)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"==typeof t){var e=s._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 L(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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)}v.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.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},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},i(g,v),g.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var s=t.words[9];for(e.words[e.length++]=s&r,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&r)<<4|s>>>22,s=a}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},g.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(b,v),i(M,v),i(w,v),w.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new g;else if("p224"===t)e=new b;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new w}return y[t]=e,e},k.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){n(!(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new s(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var o=new s(1).toRed(this),u=o.redNeg(),h=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new s(2*c*c).toRed(this);0!==this.pow(c,h).cmp(u);)c.redIAdd(u);for(var d=this.pow(c,i),l=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),m=a;0!==f.cmp(o);){for(var p=f,_=0;0!==p.cmp(o);_++)p=p.redSqr();n(_<m);var y=this.pow(d,new s(1).iushln(m-_-1));l=l.redMul(y),d=y.redSqr(),f=f.redMul(d),m=_}return l},k.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},k.prototype.pow=function(t,e){if(e.isZero())return new s(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new s(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,o=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var h=e.words[n],c=u-1;c>=0;c--){var d=h>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4==++o||0===n&&0===c)&&(i=this.mul(i,r[a]),o=0,a=0)):o=0}u=26}return i},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new L(t)},i(L,k),L.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},L.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},L.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},L.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},L.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},()=>{},(t,e)=>{"use strict";var r=e;function n(t){return 1===t.length?"0"+t:t}function i(t){for(var e="",r=0;r<t.length;r++)e+=n(t[r].toString(16));return e}r.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"!=typeof t){for(var n=0;n<t.length;n++)r[n]=0|t[n];return r}if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16));else for(n=0;n<t.length;n++){var i=t.charCodeAt(n),s=i>>8,a=255&i;s?r.push(s,a):r.push(a)}return r},r.zero2=n,r.toHex=i,r.encode=function(t,e){return"hex"===e?i(t):t}},(t,e,r)=>{"use strict";var n=e;n.base=r(317),n.short=r(318),n.mont=r(319),n.edwards=r(320)},(t,e,r)=>{"use strict";var n=r(313),i=r(312),s=i.getNAF,a=i.getJSF,o=i.assert;function u(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 h(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(t,e){o(t.precomputed);var r=t._getDoubles(),n=s(e,1,this._bitLength),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;var a,u,h=[];for(a=0;a<n.length;a+=r.step){u=0;for(var c=a+r.step-1;c>=a;c--)u=(u<<1)+n[c];h.push(u)}for(var d=this.jpoint(null,null,null),l=this.jpoint(null,null,null),f=i;f>0;f--){for(a=0;a<h.length;a++)(u=h[a])===f?l=l.mixedAdd(r.points[a]):u===-f&&(l=l.mixedAdd(r.points[a].neg()));d=d.add(l)}return d.toP()},u.prototype._wnafMul=function(t,e){var r=4,n=t._getNAFPoints(r);r=n.wnd;for(var i=n.points,a=s(e,r,this._bitLength),u=this.jpoint(null,null,null),h=a.length-1;h>=0;h--){for(var c=0;h>=0&&0===a[h];h--)c++;if(h>=0&&c++,u=u.dblp(c),h<0)break;var d=a[h];o(0!==d),u="affine"===t.type?d>0?u.mixedAdd(i[d-1>>1]):u.mixedAdd(i[-d-1>>1].neg()):d>0?u.add(i[d-1>>1]):u.add(i[-d-1>>1].neg())}return"affine"===t.type?u.toP():u},u.prototype._wnafMulAdd=function(t,e,r,n,i){var o,u,h,c=this._wnafT1,d=this._wnafT2,l=this._wnafT3,f=0;for(o=0;o<n;o++){var m=(h=e[o])._getNAFPoints(t);c[o]=m.wnd,d[o]=m.points}for(o=n-1;o>=1;o-=2){var p=o-1,_=o;if(1===c[p]&&1===c[_]){var y=[e[p],null,null,e[_]];0===e[p].y.cmp(e[_].y)?(y[1]=e[p].add(e[_]),y[2]=e[p].toJ().mixedAdd(e[_].neg())):0===e[p].y.cmp(e[_].y.redNeg())?(y[1]=e[p].toJ().mixedAdd(e[_]),y[2]=e[p].add(e[_].neg())):(y[1]=e[p].toJ().mixedAdd(e[_]),y[2]=e[p].toJ().mixedAdd(e[_].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],g=a(r[p],r[_]);for(f=Math.max(g[0].length,f),l[p]=new Array(f),l[_]=new Array(f),u=0;u<f;u++){var b=0|g[0][u],M=0|g[1][u];l[p][u]=v[3*(b+1)+(M+1)],l[_][u]=0,d[p]=y}}else l[p]=s(r[p],c[p],this._bitLength),l[_]=s(r[_],c[_],this._bitLength),f=Math.max(l[p].length,f),f=Math.max(l[_].length,f)}var w=this.jpoint(null,null,null),k=this._wnafT4;for(o=f;o>=0;o--){for(var L=0;o>=0;){var S=!0;for(u=0;u<n;u++)k[u]=0|l[u][o],0!==k[u]&&(S=!1);if(!S)break;L++,o--}if(o>=0&&L++,w=w.dblp(L),o<0)break;for(u=0;u<n;u++){var x=k[u];0!==x&&(x>0?h=d[u][x-1>>1]:x<0&&(h=d[u][-x-1>>1].neg()),w="affine"===h.type?w.mixedAdd(h):w.add(h))}}for(o=0;o<n;o++)d[o]=null;return i?w:w.toP()},u.BasePoint=h,h.prototype.eq=function(){throw new Error("Not implemented")},h.prototype.validate=function(){return this.curve.validate(this)},u.prototype.decodePoint=function(t,e){t=i.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]?o(t[t.length-1]%2==0):7===t[0]&&o(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")},h.prototype.encodeCompressed=function(t){return this.encode(t,!0)},h.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))},h.prototype.encode=function(t,e){return i.encode(this._encode(e),t)},h.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},h.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)},h.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 s=0;s<t;s++)n=n.dbl();r.push(n)}return{step:t,points:r}},h.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}},h.prototype._getBeta=function(){return null},h.prototype.dblp=function(t){for(var e=this,r=0;r<t;r++)e=e.dbl();return e}},(t,e,r)=>{"use strict";var n=r(312),i=r(313),s=r(39),a=r(317),o=n.assert;function u(t){a.call(this,"short",t),this.a=new i(t.a,16).toRed(this.red),this.b=new i(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 h(t,e,r,n){a.BasePoint.call(this,t,"affine"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(e,16),this.y=new i(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 c(t,e,r,n){a.BasePoint.call(this,t,"jacobian"),null===e&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(e,16),this.y=new i(r,16),this.z=new i(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}s(u,a),t.exports=u,u.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,r;if(t.beta)e=new i(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 i(t.lambda,16);else{var s=this._getEndoRoots(this.n);0===this.g.mul(s[0]).x.cmp(this.g.x.redMul(e))?r=s[0]:(r=s[1],o(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 i(t.a,16),b:new i(t.b,16)}})):this._getEndoBasis(r)}}},u.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:i.mont(t),r=new i(2).toRed(e).redInvm(),n=r.redNeg(),s=new i(3).toRed(e).redNeg().redSqrt().redMul(r);return[n.redAdd(s).fromRed(),n.redSub(s).fromRed()]},u.prototype._getEndoBasis=function(t){for(var e,r,n,s,a,o,u,h,c,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=t,f=this.n.clone(),m=new i(1),p=new i(0),_=new i(0),y=new i(1),v=0;0!==l.cmpn(0);){var g=f.div(l);h=f.sub(g.mul(l)),c=_.sub(g.mul(m));var b=y.sub(g.mul(p));if(!n&&h.cmp(d)<0)e=u.neg(),r=m,n=h.neg(),s=c;else if(n&&2==++v)break;u=h,f=l,l=h,_=m,m=c,y=p,p=b}a=h.neg(),o=c;var M=n.sqr().add(s.sqr());return a.sqr().add(o.sqr()).cmp(M)>=0&&(a=e,o=r),n.negative&&(n=n.neg(),s=s.neg()),a.negative&&(a=a.neg(),o=o.neg()),[{a:n,b:s},{a,b:o}]},u.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),s=r.b.neg().mul(t).divRound(this.n),a=i.mul(r.a),o=s.mul(n.a),u=i.mul(r.b),h=s.mul(n.b);return{k1:t.sub(a).sub(o),k2:u.add(h).neg()}},u.prototype.pointFromX=function(t,e){(t=new i(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 s=n.fromRed().isOdd();return(e&&!s||!e&&s)&&(n=n.redNeg()),this.point(t,n)},u.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,n=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},u.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,s=0;s<t.length;s++){var a=this._endoSplit(e[s]),o=t[s],u=o._getBeta();a.k1.negative&&(a.k1.ineg(),o=o.neg(!0)),a.k2.negative&&(a.k2.ineg(),u=u.neg(!0)),n[2*s]=o,n[2*s+1]=u,i[2*s]=a.k1,i[2*s+1]=a.k2}for(var h=this._wnafMulAdd(1,n,i,2*s,r),c=0;c<2*s;c++)n[c]=null,i[c]=null;return h},s(h,a.BasePoint),u.prototype.point=function(t,e,r){return new h(this,t,e,r)},u.prototype.pointFromJSON=function(t,e){return h.fromJSON(this,t,e)},h.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var r=this.curve,n=function(t){return r.point(t.x.redMul(r.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(n)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(n)}}}return e}},h.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]},h.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 i(e){return t.point(e[0],e[1],r)}var s=e[2];return n.precomputed={beta:null,doubles:s.doubles&&{step:s.doubles.step,points:[n].concat(s.doubles.points.map(i))},naf:s.naf&&{wnd:s.naf.wnd,points:[n].concat(s.naf.points.map(i))}},n},h.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)+">"},h.prototype.isInfinity=function(){return this.inf},h.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},h.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 e=this.curve.a,r=this.x.redSqr(),n=t.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(n),s=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(s)).redISub(this.y);return this.curve.point(s,a)},h.prototype.getX=function(){return this.x.fromRed()},h.prototype.getY=function(){return this.y.fromRed()},h.prototype.mul=function(t){return t=new i(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)},h.prototype.mulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},h.prototype.jmulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},h.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},h.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var r=this.precomputed,n=function(t){return t.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return e},h.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},s(c,a.BasePoint),u.prototype.jpoint=function(t,e,r){return new c(this,t,e,r)},c.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)},c.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},c.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(e),i=t.x.redMul(r),s=this.y.redMul(e.redMul(t.z)),a=t.y.redMul(r.redMul(this.z)),o=n.redSub(i),u=s.redSub(a);if(0===o.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h=o.redSqr(),c=h.redMul(o),d=n.redMul(h),l=u.redSqr().redIAdd(c).redISub(d).redISub(d),f=u.redMul(d.redISub(l)).redISub(s.redMul(c)),m=this.z.redMul(t.z).redMul(o);return this.curve.jpoint(l,f,m)},c.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,n=t.x.redMul(e),i=this.y,s=t.y.redMul(e).redMul(this.z),a=r.redSub(n),o=i.redSub(s);if(0===a.cmpn(0))return 0!==o.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),h=u.redMul(a),c=r.redMul(u),d=o.redSqr().redIAdd(h).redISub(c).redISub(c),l=o.redMul(c.redISub(d)).redISub(i.redMul(h)),f=this.z.redMul(a);return this.curve.jpoint(d,l,f)},c.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var r=this;for(e=0;e<t;e++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,s=this.x,a=this.y,o=this.z,u=o.redSqr().redSqr(),h=a.redAdd(a);for(e=0;e<t;e++){var c=s.redSqr(),d=h.redSqr(),l=d.redSqr(),f=c.redAdd(c).redIAdd(c).redIAdd(n.redMul(u)),m=s.redMul(d),p=f.redSqr().redISub(m.redAdd(m)),_=m.redISub(p),y=f.redMul(_);y=y.redIAdd(y).redISub(l);var v=h.redMul(o);e+1<t&&(u=u.redMul(l)),s=p,o=v,h=y}return this.curve.jpoint(s,h.redMul(i),o)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},c.prototype._zeroDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),s=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(s);a=a.redIAdd(a);var o=n.redAdd(n).redIAdd(n),u=o.redSqr().redISub(a).redISub(a),h=s.redIAdd(s);h=(h=h.redIAdd(h)).redIAdd(h),t=u,e=o.redMul(a.redISub(u)).redISub(h),r=this.y.redAdd(this.y)}else{var c=this.x.redSqr(),d=this.y.redSqr(),l=d.redSqr(),f=this.x.redAdd(d).redSqr().redISub(c).redISub(l);f=f.redIAdd(f);var m=c.redAdd(c).redIAdd(c),p=m.redSqr(),_=l.redIAdd(l);_=(_=_.redIAdd(_)).redIAdd(_),t=p.redISub(f).redISub(f),e=m.redMul(f.redISub(t)).redISub(_),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(t,e,r)},c.prototype._threeDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),s=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(s);a=a.redIAdd(a);var o=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=o.redSqr().redISub(a).redISub(a);t=u;var h=s.redIAdd(s);h=(h=h.redIAdd(h)).redIAdd(h),e=o.redMul(a.redISub(u)).redISub(h),r=this.y.redAdd(this.y)}else{var c=this.z.redSqr(),d=this.y.redSqr(),l=this.x.redMul(d),f=this.x.redSub(c).redMul(this.x.redAdd(c));f=f.redAdd(f).redIAdd(f);var m=l.redIAdd(l),p=(m=m.redIAdd(m)).redAdd(m);t=f.redSqr().redISub(p),r=this.y.redAdd(this.z).redSqr().redISub(d).redISub(c);var _=d.redSqr();_=(_=(_=_.redIAdd(_)).redIAdd(_)).redIAdd(_),e=f.redMul(m.redISub(t)).redISub(_)}return this.curve.jpoint(t,e,r)},c.prototype._dbl=function(){var t=this.curve.a,e=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),s=e.redSqr(),a=r.redSqr(),o=s.redAdd(s).redIAdd(s).redIAdd(t.redMul(i)),u=e.redAdd(e),h=(u=u.redIAdd(u)).redMul(a),c=o.redSqr().redISub(h.redAdd(h)),d=h.redISub(c),l=a.redSqr();l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var f=o.redMul(d).redISub(l),m=r.redAdd(r).redMul(n);return this.curve.jpoint(c,f,m)},c.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(),i=t.redAdd(t).redIAdd(t),s=i.redSqr(),a=this.x.redAdd(e).redSqr().redISub(t).redISub(n),o=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(s)).redSqr(),u=n.redIAdd(n);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var h=i.redIAdd(a).redSqr().redISub(s).redISub(o).redISub(u),c=e.redMul(h);c=(c=c.redIAdd(c)).redIAdd(c);var d=this.x.redMul(o).redISub(c);d=(d=d.redIAdd(d)).redIAdd(d);var l=this.y.redMul(h.redMul(u.redISub(h)).redISub(a.redMul(o)));l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var f=this.z.redAdd(a).redSqr().redISub(r).redISub(o);return this.curve.jpoint(d,l,f)},c.prototype.mul=function(t,e){return t=new i(t,e),this.curve._wnafMul(this,t)},c.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),r=t.z.redSqr();if(0!==this.x.redMul(r).redISub(t.x.redMul(e)).cmpn(0))return!1;var n=e.redMul(this.z),i=r.redMul(t.z);return 0===this.y.redMul(i).redISub(t.y.redMul(n)).cmpn(0)},c.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(),i=this.curve.redN.redMul(e);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},c.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)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},(t,e,r)=>{"use strict";var n=r(313),i=r(39),s=r(317),a=r(312);function o(t){s.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 u(t,e,r){s.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)))}i(o,s),t.exports=o,o.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)},i(u,s.BasePoint),o.prototype.decodePoint=function(t,e){return this.point(a.toArray(t,e),1)},o.prototype.point=function(t,e){return new u(this,t,e)},o.prototype.pointFromJSON=function(t){return u.fromJSON(this,t)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(t,e){return new u(t,e[0],e[1]||t.one)},u.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)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.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),i=r.redMul(e.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(t,e){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=t.x.redAdd(t.z),s=t.x.redSub(t.z).redMul(r),a=i.redMul(n),o=e.z.redMul(s.redAdd(a).redSqr()),u=e.x.redMul(s.redISub(a).redSqr());return this.curve.point(o,u)},u.prototype.mul=function(t){for(var e=t.clone(),r=this,n=this.curve.point(null,null),i=[];0!==e.cmpn(0);e.iushrn(1))i.push(e.andln(1));for(var s=i.length-1;s>=0;s--)0===i[s]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},(t,e,r)=>{"use strict";var n=r(312),i=r(313),s=r(39),a=r(317),o=n.assert;function u(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,a.call(this,"edwards",t),this.a=new i(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),o(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function h(t,e,r,n,s){a.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 i(e,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=s&&new i(s,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()))))}s(u,a),t.exports=u,u.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},u.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},u.prototype.jpoint=function(t,e,r,n){return this.point(t,e,r,n)},u.prototype.pointFromX=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr(),n=this.c2.redSub(this.a.redMul(r)),s=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(s.redInvm()),o=a.redSqrt();if(0!==o.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var u=o.fromRed().isOdd();return(e&&!u||!e&&u)&&(o=o.redNeg()),this.point(t,o)},u.prototype.pointFromY=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr(),n=r.redSub(this.c2),s=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(s.redInvm());if(0===a.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var o=a.redSqrt();if(0!==o.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return o.fromRed().isOdd()!==e&&(o=o.redNeg()),this.point(o,t)},u.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),i=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(r)));return 0===n.cmp(i)},s(h,a.BasePoint),u.prototype.pointFromJSON=function(t){return h.fromJSON(this,t)},u.prototype.point=function(t,e,r,n){return new h(this,t,e,r,n)},h.fromJSON=function(t,e){return new h(t,e[0],e[1],e[2])},h.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)+">"},h.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},h.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(t),i=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),s=n.redAdd(e),a=s.redSub(r),o=n.redSub(e),u=i.redMul(a),h=s.redMul(o),c=i.redMul(o),d=a.redMul(s);return this.curve.point(u,h,d,c)},h.prototype._projDbl=function(){var t,e,r,n,i,s,a=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),u=this.y.redSqr();if(this.curve.twisted){var h=(n=this.curve._mulA(o)).redAdd(u);this.zOne?(t=a.redSub(o).redSub(u).redMul(h.redSub(this.curve.two)),e=h.redMul(n.redSub(u)),r=h.redSqr().redSub(h).redSub(h)):(i=this.z.redSqr(),s=h.redSub(i).redISub(i),t=a.redSub(o).redISub(u).redMul(s),e=h.redMul(n.redSub(u)),r=h.redMul(s))}else n=o.redAdd(u),i=this.curve._mulC(this.z).redSqr(),s=n.redSub(i).redSub(i),t=this.curve._mulC(a.redISub(n)).redMul(s),e=this.curve._mulC(n).redMul(o.redISub(u)),r=n.redMul(s);return this.curve.point(t,e,r)},h.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},h.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),r=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),n=this.t.redMul(this.curve.dd).redMul(t.t),i=this.z.redMul(t.z.redAdd(t.z)),s=r.redSub(e),a=i.redSub(n),o=i.redAdd(n),u=r.redAdd(e),h=s.redMul(a),c=o.redMul(u),d=s.redMul(u),l=a.redMul(o);return this.curve.point(h,c,l,d)},h.prototype._projAdd=function(t){var e,r,n=this.z.redMul(t.z),i=n.redSqr(),s=this.x.redMul(t.x),a=this.y.redMul(t.y),o=this.curve.d.redMul(s).redMul(a),u=i.redSub(o),h=i.redAdd(o),c=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(s).redISub(a),d=n.redMul(u).redMul(c);return this.curve.twisted?(e=n.redMul(h).redMul(a.redSub(this.curve._mulA(s))),r=u.redMul(h)):(e=n.redMul(h).redMul(a.redSub(s)),r=this.curve._mulC(u).redMul(h)),this.curve.point(d,e,r)},h.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},h.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},h.prototype.mulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!1)},h.prototype.jmulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!0)},h.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},h.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},h.prototype.getX=function(){return this.normalize(),this.x.fromRed()},h.prototype.getY=function(){return this.normalize(),this.y.fromRed()},h.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},h.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}},h.prototype.toP=h.prototype.normalize,h.prototype.mixedAdd=h.prototype.add},(t,e,r)=>{"use strict";var n,i=e,s=r(322),a=r(316),o=r(312).assert;function u(t){"short"===t.type?this.curve=new a.short(t):"edwards"===t.type?this.curve=new a.edwards(t):this.curve=new a.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,o(this.g.validate(),"Invalid curve"),o(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function h(t,e){Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:function(){var r=new u(e);return Object.defineProperty(i,t,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,h("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:s.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),h("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:s.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),h("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:s.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),h("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:s.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"]}),h("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:s.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"]}),h("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s.sha256,gRed:!1,g:["9"]}),h("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:s.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(334)}catch(t){n=void 0}h("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:s.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},(t,e,r)=>{var n=e;n.utils=r(323),n.common=r(324),n.sha=r(325),n.ripemd=r(332),n.hmac=r(333),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},(t,e,r)=>{"use strict";var n=r(255),i=r(39);function s(t,e){return 55296==(64512&t.charCodeAt(e))&&!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1))}function a(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function o(t){return 1===t.length?"0"+t:t}function u(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=i,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 n=0,i=0;i<t.length;i++){var a=t.charCodeAt(i);a<128?r[n++]=a:a<2048?(r[n++]=a>>6|192,r[n++]=63&a|128):s(t,i)?(a=65536+((1023&a)<<10)+(1023&t.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i<t.length;i++)r[i]=0|t[i];return r},e.toHex=function(t){for(var e="",r=0;r<t.length;r++)e+=o(t[r].toString(16));return e},e.htonl=a,e.toHex32=function(t,e){for(var r="",n=0;n<t.length;n++){var i=t[n];"little"===e&&(i=a(i)),r+=u(i.toString(16))}return r},e.zero2=o,e.zero8=u,e.join32=function(t,e,r,i){var s=r-e;n(s%4==0);for(var a=new Array(s/4),o=0,u=e;o<a.length;o++,u+=4){var h;h="big"===i?t[u]<<24|t[u+1]<<16|t[u+2]<<8|t[u+3]:t[u+3]<<24|t[u+2]<<16|t[u+1]<<8|t[u],a[o]=h>>>0}return a},e.split32=function(t,e){for(var r=new Array(4*t.length),n=0,i=0;n<t.length;n++,i+=4){var s=t[n];"big"===e?(r[i]=s>>>24,r[i+1]=s>>>16&255,r[i+2]=s>>>8&255,r[i+3]=255&s):(r[i+3]=s>>>24,r[i+2]=s>>>16&255,r[i+1]=s>>>8&255,r[i]=255&s)}return r},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,r){return t+e+r>>>0},e.sum32_4=function(t,e,r,n){return t+e+r+n>>>0},e.sum32_5=function(t,e,r,n,i){return t+e+r+n+i>>>0},e.sum64=function(t,e,r,n){var i=t[e],s=n+t[e+1]>>>0,a=(s<n?1:0)+r+i;t[e]=a>>>0,t[e+1]=s},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,i,s,a,o){var u=0,h=e;return u+=(h=h+n>>>0)<e?1:0,u+=(h=h+s>>>0)<s?1:0,t+r+i+a+(u+=(h=h+o>>>0)<o?1:0)>>>0},e.sum64_4_lo=function(t,e,r,n,i,s,a,o){return e+n+s+o>>>0},e.sum64_5_hi=function(t,e,r,n,i,s,a,o,u,h){var c=0,d=e;return c+=(d=d+n>>>0)<e?1:0,c+=(d=d+s>>>0)<s?1:0,c+=(d=d+o>>>0)<o?1:0,t+r+i+a+u+(c+=(d=d+h>>>0)<h?1:0)>>>0},e.sum64_5_lo=function(t,e,r,n,i,s,a,o,u,h){return e+n+s+o+h>>>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}},(t,e,r)=>{"use strict";var n=r(323),i=r(255);function s(){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=s,s.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},s.prototype.digest=function(t){return this.update(this._pad()),i(null===this.pending),this._digest(t)},s.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 s=8;s<this.padLength;s++)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,s=8;s<this.padLength;s++)n[i++]=0;return n}},(t,e,r)=>{"use strict";e.sha1=r(326),e.sha224=r(328),e.sha256=r(329),e.sha384=r(330),e.sha512=r(331)},(t,e,r)=>{"use strict";var n=r(323),i=r(324),s=r(327),a=n.rotl32,o=n.sum32,u=n.sum32_5,h=s.ft_1,c=i.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function l(){if(!(this instanceof l))return new l;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(l,c),t.exports=l,l.blockSize=512,l.outSize=160,l.hmacStrength=80,l.padLength=64,l.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],s=this.h[1],c=this.h[2],l=this.h[3],f=this.h[4];for(n=0;n<r.length;n++){var m=~~(n/20),p=u(a(i,5),h(m,s,c,l),f,r[n],d[m]);f=l,l=c,c=a(s,30),s=i,i=p}this.h[0]=o(this.h[0],i),this.h[1]=o(this.h[1],s),this.h[2]=o(this.h[2],c),this.h[3]=o(this.h[3],l),this.h[4]=o(this.h[4],f)},l.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},(t,e,r)=>{"use strict";var n=r(323).rotr32;function i(t,e,r){return t&e^~t&r}function s(t,e,r){return t&e^t&r^e&r}function a(t,e,r){return t^e^r}e.ft_1=function(t,e,r,n){return 0===t?i(e,r,n):1===t||3===t?a(e,r,n):2===t?s(e,r,n):void 0},e.ch32=i,e.maj32=s,e.p32=a,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}},(t,e,r)=>{"use strict";var n=r(323),i=r(329);function s(){if(!(this instanceof s))return new s;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(s,i),t.exports=s,s.blockSize=512,s.outSize=224,s.hmacStrength=192,s.padLength=64,s.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},(t,e,r)=>{"use strict";var n=r(323),i=r(324),s=r(327),a=r(255),o=n.sum32,u=n.sum32_4,h=n.sum32_5,c=s.ch32,d=s.maj32,l=s.s0_256,f=s.s1_256,m=s.g0_256,p=s.g1_256,_=i.BlockHash,y=[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 v(){if(!(this instanceof v))return new v;_.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}n.inherits(v,_),t.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=u(p(r[n-2]),r[n-7],m(r[n-15]),r[n-16]);var i=this.h[0],s=this.h[1],_=this.h[2],y=this.h[3],v=this.h[4],g=this.h[5],b=this.h[6],M=this.h[7];for(a(this.k.length===r.length),n=0;n<r.length;n++){var w=h(M,f(v),c(v,g,b),this.k[n],r[n]),k=o(l(i),d(i,s,_));M=b,b=g,g=v,v=o(y,w),y=_,_=s,s=i,i=o(w,k)}this.h[0]=o(this.h[0],i),this.h[1]=o(this.h[1],s),this.h[2]=o(this.h[2],_),this.h[3]=o(this.h[3],y),this.h[4]=o(this.h[4],v),this.h[5]=o(this.h[5],g),this.h[6]=o(this.h[6],b),this.h[7]=o(this.h[7],M)},v.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},(t,e,r)=>{"use strict";var n=r(323),i=r(331);function s(){if(!(this instanceof s))return new s;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(s,i),t.exports=s,s.blockSize=1024,s.outSize=384,s.hmacStrength=192,s.padLength=128,s.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},(t,e,r)=>{"use strict";var n=r(323),i=r(324),s=r(255),a=n.rotr64_hi,o=n.rotr64_lo,u=n.shr64_hi,h=n.shr64_lo,c=n.sum64,d=n.sum64_hi,l=n.sum64_lo,f=n.sum64_4_hi,m=n.sum64_4_lo,p=n.sum64_5_hi,_=n.sum64_5_lo,y=i.BlockHash,v=[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 g(){if(!(this instanceof g))return new g;y.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=v,this.W=new Array(160)}function b(t,e,r,n,i){var s=t&r^~t&i;return s<0&&(s+=4294967296),s}function M(t,e,r,n,i,s){var a=e&n^~e&s;return a<0&&(a+=4294967296),a}function w(t,e,r,n,i){var s=t&r^t&i^r&i;return s<0&&(s+=4294967296),s}function k(t,e,r,n,i,s){var a=e&n^e&s^n&s;return a<0&&(a+=4294967296),a}function L(t,e){var r=a(t,e,28)^a(e,t,2)^a(e,t,7);return r<0&&(r+=4294967296),r}function S(t,e){var r=o(t,e,28)^o(e,t,2)^o(e,t,7);return r<0&&(r+=4294967296),r}function x(t,e){var r=a(t,e,14)^a(t,e,18)^a(e,t,9);return r<0&&(r+=4294967296),r}function Y(t,e){var r=o(t,e,14)^o(t,e,18)^o(e,t,9);return r<0&&(r+=4294967296),r}function T(t,e){var r=a(t,e,1)^a(t,e,8)^u(t,e,7);return r<0&&(r+=4294967296),r}function D(t,e){var r=o(t,e,1)^o(t,e,8)^h(t,e,7);return r<0&&(r+=4294967296),r}function E(t,e){var r=a(t,e,19)^a(e,t,29)^u(t,e,6);return r<0&&(r+=4294967296),r}function j(t,e){var r=o(t,e,19)^o(e,t,29)^h(t,e,6);return r<0&&(r+=4294967296),r}n.inherits(g,y),t.exports=g,g.blockSize=1024,g.outSize=512,g.hmacStrength=192,g.padLength=128,g.prototype._prepareBlock=function(t,e){for(var r=this.W,n=0;n<32;n++)r[n]=t[e+n];for(;n<r.length;n+=2){var i=E(r[n-4],r[n-3]),s=j(r[n-4],r[n-3]),a=r[n-14],o=r[n-13],u=T(r[n-30],r[n-29]),h=D(r[n-30],r[n-29]),c=r[n-32],d=r[n-31];r[n]=f(i,s,a,o,u,h,c,d),r[n+1]=m(i,s,a,o,u,h,c,d)}},g.prototype._update=function(t,e){this._prepareBlock(t,e);var r=this.W,n=this.h[0],i=this.h[1],a=this.h[2],o=this.h[3],u=this.h[4],h=this.h[5],f=this.h[6],m=this.h[7],y=this.h[8],v=this.h[9],g=this.h[10],T=this.h[11],D=this.h[12],E=this.h[13],j=this.h[14],A=this.h[15];s(this.k.length===r.length);for(var O=0;O<r.length;O+=2){var P=j,R=A,H=x(y,v),I=Y(y,v),C=b(y,0,g,0,D),N=M(0,v,0,T,0,E),B=this.k[O],q=this.k[O+1],F=r[O],U=r[O+1],z=p(P,R,H,I,C,N,B,q,F,U),W=_(P,R,H,I,C,N,B,q,F,U);P=L(n,i),R=S(n,i),H=w(n,0,a,0,u),I=k(0,i,0,o,0,h);var J=d(P,R,H,I),G=l(P,R,H,I);j=D,A=E,D=g,E=T,g=y,T=v,y=d(f,m,z,W),v=l(m,m,z,W),f=u,m=h,u=a,h=o,a=n,o=i,n=d(z,W,J,G),i=l(z,W,J,G)}c(this.h,0,n,i),c(this.h,2,a,o),c(this.h,4,u,h),c(this.h,6,f,m),c(this.h,8,y,v),c(this.h,10,g,T),c(this.h,12,D,E),c(this.h,14,j,A)},g.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},(t,e,r)=>{"use strict";var n=r(323),i=r(324),s=n.rotl32,a=n.sum32,o=n.sum32_3,u=n.sum32_4,h=i.BlockHash;function c(){if(!(this instanceof c))return new c;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function d(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 l(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function f(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}n.inherits(c,h),e.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(t,e){for(var r=this.h[0],n=this.h[1],i=this.h[2],h=this.h[3],c=this.h[4],v=r,g=n,b=i,M=h,w=c,k=0;k<80;k++){var L=a(s(u(r,d(k,n,i,h),t[m[k]+e],l(k)),_[k]),c);r=c,c=h,h=s(i,10),i=n,n=L,L=a(s(u(v,d(79-k,g,b,M),t[p[k]+e],f(k)),y[k]),w),v=w,w=M,M=s(b,10),b=g,g=L}L=o(this.h[1],i,M),this.h[1]=o(this.h[2],h,w),this.h[2]=o(this.h[3],c,v),this.h[3]=o(this.h[4],r,g),this.h[4]=o(this.h[0],n,b),this.h[0]=L},c.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],p=[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],_=[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],y=[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]},(t,e,r)=>{"use strict";var n=r(323),i=r(255);function s(t,e,r){if(!(this instanceof s))return new s(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=s,s.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),i(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},s.prototype.update=function(t,e){return this.inner.update(t,e),this},s.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},t=>{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"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","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"]]}}},(t,e,r)=>{"use strict";var n=r(313),i=r(336),s=r(312),a=r(321),o=r(286),u=s.assert,h=r(337),c=r(338);function d(t){if(!(this instanceof d))return new d(t);"string"==typeof t&&(u(Object.prototype.hasOwnProperty.call(a,t),"Unknown curve "+t),t=a[t]),t instanceof a.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=d,d.prototype.keyPair=function(t){return new h(this,t)},d.prototype.keyFromPrivate=function(t,e){return h.fromPrivate(this,t,e)},d.prototype.keyFromPublic=function(t,e){return h.fromPublic(this,t,e)},d.prototype.genKeyPair=function(t){t||(t={});for(var e=new i({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||o(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),s=this.n.sub(new n(2));;){var a=new n(e.generate(r));if(!(a.cmp(s)>0))return a.iaddn(1),this.keyFromPrivate(a)}},d.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},d.prototype.sign=function(t,e,r,s){"object"==typeof r&&(s=r,r=null),s||(s={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new n(t,16));for(var a=this.n.byteLength(),o=e.getPrivate().toArray("be",a),u=t.toArray("be",a),h=new i({hash:this.hash,entropy:o,nonce:u,pers:s.pers,persEnc:s.persEnc||"utf8"}),d=this.n.sub(new n(1)),l=0;;l++){var f=s.k?s.k(l):new n(h.generate(this.n.byteLength()));if(!((f=this._truncateToN(f,!0)).cmpn(1)<=0||f.cmp(d)>=0)){var m=this.g.mul(f);if(!m.isInfinity()){var p=m.getX(),_=p.umod(this.n);if(0!==_.cmpn(0)){var y=f.invm(this.n).mul(_.mul(e.getPrivate()).iadd(t));if(0!==(y=y.umod(this.n)).cmpn(0)){var v=(m.getY().isOdd()?1:0)|(0!==p.cmp(_)?2:0);return s.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),v^=1),new c({r:_,s:y,recoveryParam:v})}}}}}},d.prototype.verify=function(t,e,r,i){t=this._truncateToN(new n(t,16)),r=this.keyFromPublic(r,i);var s=(e=new c(e,"hex")).r,a=e.s;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var o,u=a.invm(this.n),h=u.mul(t).umod(this.n),d=u.mul(s).umod(this.n);return this.curve._maxwellTrick?!(o=this.g.jmulAdd(h,r.getPublic(),d)).isInfinity()&&o.eqXToP(s):!(o=this.g.mulAdd(h,r.getPublic(),d)).isInfinity()&&0===o.getX().umod(this.n).cmp(s)},d.prototype.recoverPubKey=function(t,e,r,i){u((3&r)===r,"The recovery param is more than two bits"),e=new c(e,i);var s=this.n,a=new n(t),o=e.r,h=e.s,d=1&r,l=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");o=l?this.curve.pointFromX(o.add(this.curve.n),d):this.curve.pointFromX(o,d);var f=e.r.invm(s),m=s.sub(a).mul(f).umod(s),p=h.mul(f).umod(s);return this.g.mulAdd(m,o,p)},d.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new c(e,n)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var s;try{s=this.recoverPubKey(t,e,i)}catch(t){continue}if(s.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},(t,e,r)=>{"use strict";var n=r(322),i=r(315),s=r(255);function a(t){if(!(this instanceof a))return new a(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=i.toArray(t.entropy,t.entropyEnc||"hex"),r=i.toArray(t.nonce,t.nonceEnc||"hex"),n=i.toArray(t.pers,t.persEnc||"hex");s(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}t.exports=a,a.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},a.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},a.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([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(t,e,r,n){"string"!=typeof e&&(n=r,r=e,e=null),t=i.toArray(t,e),r=i.toArray(r,n),s(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},a.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=i.toArray(r,n||"hex"),this._update(r));for(var s=[];s.length<t;)this.V=this._hmac().update(this.V).digest(),s=s.concat(this.V);var a=s.slice(0,t);return this._update(r),this._reseed++,i.encode(a,e)}},(t,e,r)=>{"use strict";var n=r(313),i=r(312).assert;function s(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=s,s.fromPublic=function(t,e,r){return e instanceof s?e:new s(t,{pub:e,pubEnc:r})},s.fromPrivate=function(t,e,r){return e instanceof s?e:new s(t,{priv:e,privEnc:r})},s.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"}},s.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},s.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},s.prototype._importPrivate=function(t,e){this.priv=new n(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},s.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?i(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(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)},s.prototype.derive=function(t){return t.validate()||i(t.validate(),"public point not validated"),t.mul(this.priv).getX()},s.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},s.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},s.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},(t,e,r)=>{"use strict";var n=r(313),i=r(312),s=i.assert;function a(t,e){if(t instanceof a)return t;this._importDER(t,e)||(s(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 o(){this.place=0}function u(t,e){var r=t[e.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;if(0===t[e.place])return!1;for(var i=0,s=0,a=e.place;s<n;s++,a++)i<<=8,i|=t[a],i>>>=0;return!(i<=127)&&(e.place=a,i)}function h(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e<r;)e++;return 0===e?t:t.slice(e)}function c(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=a,a.prototype._importDER=function(t,e){t=i.toArray(t,e);var r=new o;if(48!==t[r.place++])return!1;var s=u(t,r);if(!1===s)return!1;if(s+r.place!==t.length)return!1;if(2!==t[r.place++])return!1;var a=u(t,r);if(!1===a)return!1;if(128&t[r.place])return!1;var h=t.slice(r.place,a+r.place);if(r.place+=a,2!==t[r.place++])return!1;var c=u(t,r);if(!1===c)return!1;if(t.length!==c+r.place)return!1;if(128&t[r.place])return!1;var d=t.slice(r.place,c+r.place);if(0===h[0]){if(!(128&h[1]))return!1;h=h.slice(1)}if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}return this.r=new n(h),this.s=new n(d),this.recoveryParam=null,!0},a.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=h(e),r=h(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];c(n,e.length),(n=n.concat(e)).push(2),c(n,r.length);var s=n.concat(r),a=[48];return c(a,s.length),a=a.concat(s),i.encode(a,t)}},(t,e,r)=>{"use strict";var n=r(322),i=r(321),s=r(312),a=s.assert,o=s.parseBytes,u=r(340),h=r(341);function c(t){if(a("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof c))return new c(t);t=i[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=c,c.prototype.sign=function(t,e){t=o(t);var r=this.keyFromSecret(e),n=this.hashInt(r.messagePrefix(),t),i=this.g.mul(n),s=this.encodePoint(i),a=this.hashInt(s,r.pubBytes(),t).mul(r.priv()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:s})},c.prototype.verify=function(t,e,r){if(t=o(t),(e=this.makeSignature(e)).S().gte(e.eddsa.curve.n)||e.S().isNeg())return!1;var n=this.keyFromPublic(r),i=this.hashInt(e.Rencoded(),n.pubBytes(),t),s=this.g.mul(e.S());return e.R().add(n.pub().mul(i)).eq(s)},c.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return s.intFromLE(t.digest()).umod(this.curve.n)},c.prototype.keyFromPublic=function(t){return u.fromPublic(this,t)},c.prototype.keyFromSecret=function(t){return u.fromSecret(this,t)},c.prototype.makeSignature=function(t){return t instanceof h?t:new h(this,t)},c.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},c.prototype.decodePoint=function(t){var e=(t=s.parseBytes(t)).length-1,r=t.slice(0,e).concat(-129&t[e]),n=!!(128&t[e]),i=s.intFromLE(r);return this.curve.pointFromY(i,n)},c.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},c.prototype.decodeInt=function(t){return s.intFromLE(t)},c.prototype.isPoint=function(t){return t instanceof this.pointClass}},(t,e,r)=>{"use strict";var n=r(312),i=n.assert,s=n.parseBytes,a=n.cachedProperty;function o(t,e){this.eddsa=t,this._secret=s(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=s(e.pub)}o.fromPublic=function(t,e){return e instanceof o?e:new o(t,{pub:e})},o.fromSecret=function(t,e){return e instanceof o?e:new o(t,{secret:e})},o.prototype.secret=function(){return this._secret},a(o,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(o,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(o,"privBytes",(function(){var t=this.eddsa,e=this.hash(),r=t.encodingLength-1,n=e.slice(0,t.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n})),a(o,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(o,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(o,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),o.prototype.sign=function(t){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},o.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},o.prototype.getSecret=function(t){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),t)},o.prototype.getPublic=function(t){return n.encode(this.pubBytes(),t)},t.exports=o},(t,e,r)=>{"use strict";var n=r(313),i=r(312),s=i.assert,a=i.cachedProperty,o=i.parseBytes;function u(t,e){this.eddsa=t,"object"!=typeof e&&(e=o(e)),Array.isArray(e)&&(s(e.length===2*t.encodingLength,"Signature has invalid size"),e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),s(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}a(u,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),a(u,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),a(u,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),a(u,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},t.exports=u},(t,e,r)=>{"use strict";var n=r(343),i=r(362),s=r(363),a=r(259),o=r(244),u=r(202).Buffer;function h(t){var e;"object"!=typeof t||u.isBuffer(t)||(e=t.passphrase,t=t.key),"string"==typeof t&&(t=u.from(t));var r,h,c=s(t,e),d=c.tag,l=c.data;switch(d){case"CERTIFICATE":h=n.certificate.decode(l,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(h||(h=n.PublicKey.decode(l,"der")),r=h.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(h.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return h.subjectPrivateKey=h.subjectPublicKey,{type:"ec",data:h};case"1.2.840.10040.4.1":return h.algorithm.params.pub_key=n.DSAparam.decode(h.subjectPublicKey.data,"der"),{type:"dsa",data:h.algorithm.params};default:throw new Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":l=function(t,e){var r=t.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),s=i[t.algorithm.decrypt.cipher.algo.join(".")],h=t.algorithm.decrypt.cipher.iv,c=t.subjectPrivateKey,d=parseInt(s.split("-")[1],10)/8,l=o.pbkdf2Sync(e,r,n,d,"sha1"),f=a.createDecipheriv(s,l,h),m=[];return m.push(f.update(c)),m.push(f.final()),u.concat(m)}(l=n.EncryptedPrivateKey.decode(l,"der"),e);case"PRIVATE KEY":switch(r=(h=n.PrivateKey.decode(l,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(h.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:h.algorithm.curve,privateKey:n.ECPrivateKey.decode(h.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return h.algorithm.params.priv_key=n.DSAparam.decode(h.subjectPrivateKey,"der"),{type:"dsa",params:h.algorithm.params};default:throw new Error("unknown key id "+r)}case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(l,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(l,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(l,"der")};case"EC PRIVATE KEY":return{curve:(l=n.ECPrivateKey.decode(l,"der")).parameters.value,privateKey:l.privateKey};default:throw new Error("unknown key type "+d)}}h.signature=n.signature,t.exports=h},(t,e,r)=>{"use strict";var n=r(344);e.certificate=r(361);var i=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=i;var s=n.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));e.RSAPublicKey=s;var a=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())})),o=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}));e.PublicKey=o;var u=n.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())}));e.PrivateKey=u;var h=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=h;var c=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=c,e.DSAparam=n.define("DSAparam",(function(){this.int()}));var d=n.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})})),l=n.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())}));e.ECPrivateKey=l,e.signature=n.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},(t,e,r)=>{var n=e;n.bignum=r(345),n.define=r(347).define,n.base=r(349),n.constants=r(353),n.decoders=r(355),n.encoders=r(358)},function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function s(t,e,r){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(346).Buffer}catch(t){}function o(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function h(t,e,r,n){for(var i=0,s=Math.min(t.length,r),a=e;a<s;a++){var o=t.charCodeAt(a)-48;i*=n,i+=o>=49?o-49+10:o>=17?o-17+10:o}return i}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},s.prototype._initNumber=function(t,e,r){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"===r&&this._initArray(this.toArray(),e,r)},s.prototype._initArray=function(t,e,r){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 s,a,o=0;if("be"===r)for(i=t.length-1,s=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=a<<o&67108863,this.words[s+1]=a>>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);else if("le"===r)for(i=0,s=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[s]|=a<<o&67108863,this.words[s+1]=a>>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,s=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=u(t,e,n)<<s,this.words[a]|=67108863&i,s>=18?(s-=18,a+=1,this.words[a]|=i>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)i=u(t,e,n)<<s,this.words[a]|=67108863&i,s>=18?(s-=18,a+=1,this.words[a]|=i>>>26):s+=8;this.strip()},s.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,a=s%n,o=Math.min(s,s-a)+r,u=0,c=r;c<o;c+=n)u=h(t,c,c+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var d=1;for(u=h(t,c,t.length,e),c=0;c<a;c++)d*=e;this.imuln(d),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},s.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},s.prototype.clone=function(){var t=new s(null);return this.copy(t),t},s.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","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"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],a=i*s,o=67108863&a,u=a/67108864|0;r.words[0]=o;for(var h=1;h<n;h++){for(var c=u>>>26,d=67108863&u,l=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=l;f++){var m=h-f|0;c+=(a=(i=0|t.words[m])*(s=0|e.words[f])+d)/67108864|0,d=67108863&a}r.words[h]=0|d,u=0|c}return 0!==u?r.words[h]=0|u:r.length--,r.strip()}s.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,s=0,a=0;a<this.length;a++){var o=this.words[a],u=(16777215&(o<<i|s)).toString(16);r=0!=(s=o>>>24-i&16777215)||a!==this.length-1?c[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==s&&(r=s.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var h=d[t],f=l[t];r="";var m=this.clone();for(m.negative=0;!m.isZero();){var p=m.modn(f).toString(t);r=(m=m.idivn(f)).isZero()?p+r:c[h-p.length]+p+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.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},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==a),this.toArrayLike(a,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var a,o,u="le"===e,h=new t(s),c=this.clone();if(u){for(o=0;!c.isZero();o++)a=c.andln(255),c.iushrn(8),h[o]=a;for(;o<s;o++)h[o]=0}else{for(o=0;o<s-i;o++)h[o]=0;for(o=0;!c.isZero();o++)a=c.andln(255),c.iushrn(8),h[s-o-1]=a}return h},Math.clz32?s.prototype._countBits=function(t){return 32-Math.clz32(t)}:s.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},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 8191&e||(r+=13,e>>>=13),127&e||(r+=7,e>>>=7),15&e||(r+=4,e>>>=4),3&e||(r+=2,e>>>=2),1&e||r++,r},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},s.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},s.prototype.ior=function(t){return n(!(this.negative|t.negative)),this.iuor(t)},s.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},s.prototype.iand=function(t){return n(!(this.negative|t.negative)),this.iuand(t)},s.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},s.prototype.ixor=function(t){return n(!(this.negative|t.negative)),this.iuxor(t)},s.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.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()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},s.prototype.iadd=function(t){var e,r,n;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?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s<n.length;s++)e=(0|r.words[s])+(0|n.words[s])+i,this.words[s]=67108863&e,i=e>>>26;for(;0!==i&&s<r.length;s++)e=(0|r.words[s])+i,this.words[s]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this},s.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)},s.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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,a=0;a<n.length;a++)s=(e=(0|r.words[a])-(0|n.words[a])+s)>>26,this.words[a]=67108863&e;for(;0!==s&&a<r.length;a++)s=(e=(0|r.words[a])+s)>>26,this.words[a]=67108863&e;if(0===s&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(t){return this.clone().isub(t)};var m=function(t,e,r){var n,i,s,a=t.words,o=e.words,u=r.words,h=0,c=0|a[0],d=8191&c,l=c>>>13,f=0|a[1],m=8191&f,p=f>>>13,_=0|a[2],y=8191&_,v=_>>>13,g=0|a[3],b=8191&g,M=g>>>13,w=0|a[4],k=8191&w,L=w>>>13,S=0|a[5],x=8191&S,Y=S>>>13,T=0|a[6],D=8191&T,E=T>>>13,j=0|a[7],A=8191&j,O=j>>>13,P=0|a[8],R=8191&P,H=P>>>13,I=0|a[9],C=8191&I,N=I>>>13,B=0|o[0],q=8191&B,F=B>>>13,U=0|o[1],z=8191&U,W=U>>>13,J=0|o[2],G=8191&J,K=J>>>13,V=0|o[3],Z=8191&V,$=V>>>13,X=0|o[4],Q=8191&X,tt=X>>>13,et=0|o[5],rt=8191&et,nt=et>>>13,it=0|o[6],st=8191&it,at=it>>>13,ot=0|o[7],ut=8191&ot,ht=ot>>>13,ct=0|o[8],dt=8191&ct,lt=ct>>>13,ft=0|o[9],mt=8191&ft,pt=ft>>>13;r.negative=t.negative^e.negative,r.length=19;var _t=(h+(n=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,F))+Math.imul(l,q)|0))<<13)|0;h=((s=Math.imul(l,F))+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(m,q),i=(i=Math.imul(m,F))+Math.imul(p,q)|0,s=Math.imul(p,F);var yt=(h+(n=n+Math.imul(d,z)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(l,z)|0))<<13)|0;h=((s=s+Math.imul(l,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,q),i=(i=Math.imul(y,F))+Math.imul(v,q)|0,s=Math.imul(v,F),n=n+Math.imul(m,z)|0,i=(i=i+Math.imul(m,W)|0)+Math.imul(p,z)|0,s=s+Math.imul(p,W)|0;var vt=(h+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(l,G)|0))<<13)|0;h=((s=s+Math.imul(l,K)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(b,q),i=(i=Math.imul(b,F))+Math.imul(M,q)|0,s=Math.imul(M,F),n=n+Math.imul(y,z)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(v,z)|0,s=s+Math.imul(v,W)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,K)|0)+Math.imul(p,G)|0,s=s+Math.imul(p,K)|0;var gt=(h+(n=n+Math.imul(d,Z)|0)|0)+((8191&(i=(i=i+Math.imul(d,$)|0)+Math.imul(l,Z)|0))<<13)|0;h=((s=s+Math.imul(l,$)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(k,q),i=(i=Math.imul(k,F))+Math.imul(L,q)|0,s=Math.imul(L,F),n=n+Math.imul(b,z)|0,i=(i=i+Math.imul(b,W)|0)+Math.imul(M,z)|0,s=s+Math.imul(M,W)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(v,G)|0,s=s+Math.imul(v,K)|0,n=n+Math.imul(m,Z)|0,i=(i=i+Math.imul(m,$)|0)+Math.imul(p,Z)|0,s=s+Math.imul(p,$)|0;var bt=(h+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,tt)|0)+Math.imul(l,Q)|0))<<13)|0;h=((s=s+Math.imul(l,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,F))+Math.imul(Y,q)|0,s=Math.imul(Y,F),n=n+Math.imul(k,z)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(L,z)|0,s=s+Math.imul(L,W)|0,n=n+Math.imul(b,G)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(M,G)|0,s=s+Math.imul(M,K)|0,n=n+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(v,Z)|0,s=s+Math.imul(v,$)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(p,Q)|0,s=s+Math.imul(p,tt)|0;var Mt=(h+(n=n+Math.imul(d,rt)|0)|0)+((8191&(i=(i=i+Math.imul(d,nt)|0)+Math.imul(l,rt)|0))<<13)|0;h=((s=s+Math.imul(l,nt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,F))+Math.imul(E,q)|0,s=Math.imul(E,F),n=n+Math.imul(x,z)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(Y,z)|0,s=s+Math.imul(Y,W)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(L,G)|0,s=s+Math.imul(L,K)|0,n=n+Math.imul(b,Z)|0,i=(i=i+Math.imul(b,$)|0)+Math.imul(M,Z)|0,s=s+Math.imul(M,$)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(v,Q)|0,s=s+Math.imul(v,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(p,rt)|0,s=s+Math.imul(p,nt)|0;var wt=(h+(n=n+Math.imul(d,st)|0)|0)+((8191&(i=(i=i+Math.imul(d,at)|0)+Math.imul(l,st)|0))<<13)|0;h=((s=s+Math.imul(l,at)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,F))+Math.imul(O,q)|0,s=Math.imul(O,F),n=n+Math.imul(D,z)|0,i=(i=i+Math.imul(D,W)|0)+Math.imul(E,z)|0,s=s+Math.imul(E,W)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(Y,G)|0,s=s+Math.imul(Y,K)|0,n=n+Math.imul(k,Z)|0,i=(i=i+Math.imul(k,$)|0)+Math.imul(L,Z)|0,s=s+Math.imul(L,$)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,Q)|0,s=s+Math.imul(M,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(v,rt)|0,s=s+Math.imul(v,nt)|0,n=n+Math.imul(m,st)|0,i=(i=i+Math.imul(m,at)|0)+Math.imul(p,st)|0,s=s+Math.imul(p,at)|0;var kt=(h+(n=n+Math.imul(d,ut)|0)|0)+((8191&(i=(i=i+Math.imul(d,ht)|0)+Math.imul(l,ut)|0))<<13)|0;h=((s=s+Math.imul(l,ht)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,F))+Math.imul(H,q)|0,s=Math.imul(H,F),n=n+Math.imul(A,z)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(O,z)|0,s=s+Math.imul(O,W)|0,n=n+Math.imul(D,G)|0,i=(i=i+Math.imul(D,K)|0)+Math.imul(E,G)|0,s=s+Math.imul(E,K)|0,n=n+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,$)|0)+Math.imul(Y,Z)|0,s=s+Math.imul(Y,$)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(L,Q)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(M,rt)|0,s=s+Math.imul(M,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,at)|0)+Math.imul(v,st)|0,s=s+Math.imul(v,at)|0,n=n+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ht)|0)+Math.imul(p,ut)|0,s=s+Math.imul(p,ht)|0;var Lt=(h+(n=n+Math.imul(d,dt)|0)|0)+((8191&(i=(i=i+Math.imul(d,lt)|0)+Math.imul(l,dt)|0))<<13)|0;h=((s=s+Math.imul(l,lt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(C,q),i=(i=Math.imul(C,F))+Math.imul(N,q)|0,s=Math.imul(N,F),n=n+Math.imul(R,z)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(H,z)|0,s=s+Math.imul(H,W)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(O,G)|0,s=s+Math.imul(O,K)|0,n=n+Math.imul(D,Z)|0,i=(i=i+Math.imul(D,$)|0)+Math.imul(E,Z)|0,s=s+Math.imul(E,$)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(Y,Q)|0,s=s+Math.imul(Y,tt)|0,n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(L,rt)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(b,st)|0,i=(i=i+Math.imul(b,at)|0)+Math.imul(M,st)|0,s=s+Math.imul(M,at)|0,n=n+Math.imul(y,ut)|0,i=(i=i+Math.imul(y,ht)|0)+Math.imul(v,ut)|0,s=s+Math.imul(v,ht)|0,n=n+Math.imul(m,dt)|0,i=(i=i+Math.imul(m,lt)|0)+Math.imul(p,dt)|0,s=s+Math.imul(p,lt)|0;var St=(h+(n=n+Math.imul(d,mt)|0)|0)+((8191&(i=(i=i+Math.imul(d,pt)|0)+Math.imul(l,mt)|0))<<13)|0;h=((s=s+Math.imul(l,pt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,W))+Math.imul(N,z)|0,s=Math.imul(N,W),n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(H,G)|0,s=s+Math.imul(H,K)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(O,Z)|0,s=s+Math.imul(O,$)|0,n=n+Math.imul(D,Q)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(E,Q)|0,s=s+Math.imul(E,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(Y,rt)|0,s=s+Math.imul(Y,nt)|0,n=n+Math.imul(k,st)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,at)|0,n=n+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(M,ut)|0,s=s+Math.imul(M,ht)|0,n=n+Math.imul(y,dt)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(v,dt)|0,s=s+Math.imul(v,lt)|0;var xt=(h+(n=n+Math.imul(m,mt)|0)|0)+((8191&(i=(i=i+Math.imul(m,pt)|0)+Math.imul(p,mt)|0))<<13)|0;h=((s=s+Math.imul(p,pt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(C,G),i=(i=Math.imul(C,K))+Math.imul(N,G)|0,s=Math.imul(N,K),n=n+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(H,Z)|0,s=s+Math.imul(H,$)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(O,Q)|0,s=s+Math.imul(O,tt)|0,n=n+Math.imul(D,rt)|0,i=(i=i+Math.imul(D,nt)|0)+Math.imul(E,rt)|0,s=s+Math.imul(E,nt)|0,n=n+Math.imul(x,st)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(Y,st)|0,s=s+Math.imul(Y,at)|0,n=n+Math.imul(k,ut)|0,i=(i=i+Math.imul(k,ht)|0)+Math.imul(L,ut)|0,s=s+Math.imul(L,ht)|0,n=n+Math.imul(b,dt)|0,i=(i=i+Math.imul(b,lt)|0)+Math.imul(M,dt)|0,s=s+Math.imul(M,lt)|0;var Yt=(h+(n=n+Math.imul(y,mt)|0)|0)+((8191&(i=(i=i+Math.imul(y,pt)|0)+Math.imul(v,mt)|0))<<13)|0;h=((s=s+Math.imul(v,pt)|0)+(i>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,n=Math.imul(C,Z),i=(i=Math.imul(C,$))+Math.imul(N,Z)|0,s=Math.imul(N,$),n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(H,Q)|0,s=s+Math.imul(H,tt)|0,n=n+Math.imul(A,rt)|0,i=(i=i+Math.imul(A,nt)|0)+Math.imul(O,rt)|0,s=s+Math.imul(O,nt)|0,n=n+Math.imul(D,st)|0,i=(i=i+Math.imul(D,at)|0)+Math.imul(E,st)|0,s=s+Math.imul(E,at)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ht)|0)+Math.imul(Y,ut)|0,s=s+Math.imul(Y,ht)|0,n=n+Math.imul(k,dt)|0,i=(i=i+Math.imul(k,lt)|0)+Math.imul(L,dt)|0,s=s+Math.imul(L,lt)|0;var Tt=(h+(n=n+Math.imul(b,mt)|0)|0)+((8191&(i=(i=i+Math.imul(b,pt)|0)+Math.imul(M,mt)|0))<<13)|0;h=((s=s+Math.imul(M,pt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(C,Q),i=(i=Math.imul(C,tt))+Math.imul(N,Q)|0,s=Math.imul(N,tt),n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(H,rt)|0,s=s+Math.imul(H,nt)|0,n=n+Math.imul(A,st)|0,i=(i=i+Math.imul(A,at)|0)+Math.imul(O,st)|0,s=s+Math.imul(O,at)|0,n=n+Math.imul(D,ut)|0,i=(i=i+Math.imul(D,ht)|0)+Math.imul(E,ut)|0,s=s+Math.imul(E,ht)|0,n=n+Math.imul(x,dt)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(Y,dt)|0,s=s+Math.imul(Y,lt)|0;var Dt=(h+(n=n+Math.imul(k,mt)|0)|0)+((8191&(i=(i=i+Math.imul(k,pt)|0)+Math.imul(L,mt)|0))<<13)|0;h=((s=s+Math.imul(L,pt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(C,rt),i=(i=Math.imul(C,nt))+Math.imul(N,rt)|0,s=Math.imul(N,nt),n=n+Math.imul(R,st)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(H,st)|0,s=s+Math.imul(H,at)|0,n=n+Math.imul(A,ut)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(O,ut)|0,s=s+Math.imul(O,ht)|0,n=n+Math.imul(D,dt)|0,i=(i=i+Math.imul(D,lt)|0)+Math.imul(E,dt)|0,s=s+Math.imul(E,lt)|0;var Et=(h+(n=n+Math.imul(x,mt)|0)|0)+((8191&(i=(i=i+Math.imul(x,pt)|0)+Math.imul(Y,mt)|0))<<13)|0;h=((s=s+Math.imul(Y,pt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(C,st),i=(i=Math.imul(C,at))+Math.imul(N,st)|0,s=Math.imul(N,at),n=n+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ht)|0)+Math.imul(H,ut)|0,s=s+Math.imul(H,ht)|0,n=n+Math.imul(A,dt)|0,i=(i=i+Math.imul(A,lt)|0)+Math.imul(O,dt)|0,s=s+Math.imul(O,lt)|0;var jt=(h+(n=n+Math.imul(D,mt)|0)|0)+((8191&(i=(i=i+Math.imul(D,pt)|0)+Math.imul(E,mt)|0))<<13)|0;h=((s=s+Math.imul(E,pt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(C,ut),i=(i=Math.imul(C,ht))+Math.imul(N,ut)|0,s=Math.imul(N,ht),n=n+Math.imul(R,dt)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(H,dt)|0,s=s+Math.imul(H,lt)|0;var At=(h+(n=n+Math.imul(A,mt)|0)|0)+((8191&(i=(i=i+Math.imul(A,pt)|0)+Math.imul(O,mt)|0))<<13)|0;h=((s=s+Math.imul(O,pt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(C,dt),i=(i=Math.imul(C,lt))+Math.imul(N,dt)|0,s=Math.imul(N,lt);var Ot=(h+(n=n+Math.imul(R,mt)|0)|0)+((8191&(i=(i=i+Math.imul(R,pt)|0)+Math.imul(H,mt)|0))<<13)|0;h=((s=s+Math.imul(H,pt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863;var Pt=(h+(n=Math.imul(C,mt))|0)+((8191&(i=(i=Math.imul(C,pt))+Math.imul(N,mt)|0))<<13)|0;return h=((s=Math.imul(N,pt))+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,u[0]=_t,u[1]=yt,u[2]=vt,u[3]=gt,u[4]=bt,u[5]=Mt,u[6]=wt,u[7]=kt,u[8]=Lt,u[9]=St,u[10]=xt,u[11]=Yt,u[12]=Tt,u[13]=Dt,u[14]=Et,u[15]=jt,u[16]=At,u[17]=Ot,u[18]=Pt,0!==h&&(u[19]=h,r.length++),r};function p(t,e,r){return(new _).mulp(t,e,r)}function _(t,e){this.x=t,this.y=e}Math.imul||(m=f),s.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?m(this,t,e):n<63?f(this,t,e):n<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s<r.length-1;s++){var a=i;i=0;for(var o=67108863&n,u=Math.min(s,e.length-1),h=Math.max(0,s-t.length+1);h<=u;h++){var c=s-h,d=(0|t.words[c])*(0|e.words[h]),l=67108863&d;o=67108863&(l=l+o|0),i+=(a=(a=a+(d/67108864|0)|0)+(l>>>26)|0)>>>26,a&=67108863}r.words[s]=o,n=a,a=i}return 0!==n?r.words[s]=n:r.length--,r.strip()}(this,t,e):p(this,t,e),r},_.prototype.makeRBT=function(t){for(var e=new Array(t),r=s.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,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,i,s){for(var a=0;a<s;a++)n[a]=e[t[a]],i[a]=r[t[a]]},_.prototype.transform=function(t,e,r,n,i,s){this.permute(s,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var o=a<<1,u=Math.cos(2*Math.PI/o),h=Math.sin(2*Math.PI/o),c=0;c<i;c+=o)for(var d=u,l=h,f=0;f<a;f++){var m=r[c+f],p=n[c+f],_=r[c+f+a],y=n[c+f+a],v=d*_-l*y;y=d*y+l*_,_=v,r[c+f]=m+_,n[c+f]=p+y,r[c+f+a]=m-_,n[c+f+a]=p-y,f!==o&&(v=u*d-h*l,l=u*l+h*d,d=v)}},_.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 n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},_.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},_.prototype.convert13b=function(t,e,r,i){for(var s=0,a=0;a<e;a++)s+=0|t[a],r[2*a]=8191&s,s>>>=13,r[2*a+1]=8191&s,s>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===s),n(!(-8192&s))},_.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},_.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),s=this.stub(n),a=new Array(n),o=new Array(n),u=new Array(n),h=new Array(n),c=new Array(n),d=new Array(n),l=r.words;l.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,h,n),this.transform(a,s,o,u,n,i),this.transform(h,s,c,d,n,i);for(var f=0;f<n;f++){var m=o[f]*c[f]-u[f]*d[f];u[f]=o[f]*d[f]+u[f]*c[f],o[f]=m}return this.conjugate(o,u,n),this.transform(o,u,l,s,n,i),this.conjugate(l,s,n),this.normalize13b(l,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},s.prototype.mul=function(t){var e=new s(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},s.prototype.mulf=function(t){var e=new s(null);return e.words=new Array(this.length+t.length),p(this,t,e)},s.prototype.imul=function(t){return this.clone().mulTo(t,this)},s.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,s=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=s>>>26,this.words[r]=67108863&s}return 0!==e&&(this.words[r]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.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,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}(t);if(0===e.length)return new s(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},s.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var o=this.words[e]&s,u=(0|this.words[e])-o<<r;this.words[e]=u|a,a=o>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},s.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},s.prototype.iushrn=function(t,e,r){var i;n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var s=t%26,a=Math.min((t-s)/26,this.length),o=67108863^67108863>>>s<<s,u=r;if(i-=a,i=Math.max(0,i),u){for(var h=0;h<a;h++)u.words[h]=this.words[h];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,h=0;h<this.length;h++)this.words[h]=this.words[h+a];else this.words[0]=0,this.length=1;var c=0;for(h=this.length-1;h>=0&&(0!==c||h>=i);h--){var d=0|this.words[h];this.words[h]=c<<26-s|d>>>s,c=d&o}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r||!(this.words[r]&i))},s.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},s.prototype.maskn=function(t){return this.clone().imaskn(t)},s.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)},s.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.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 e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},s.prototype.addn=function(t){return this.clone().iaddn(t)},s.prototype.subn=function(t){return this.clone().isubn(t)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(t,e,r){var i,s,a=t.length+r;this._expand(a);var o=0;for(i=0;i<t.length;i++){s=(0|this.words[i+r])+o;var u=(0|t.words[i])*e;o=((s-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&s}for(;i<this.length-r;i++)o=(s=(0|this.words[i+r])+o)>>26,this.words[i+r]=67108863&s;if(0===o)return this.strip();for(n(-1===o),o=0,i=0;i<this.length;i++)o=(s=-(0|this.words[i])+o)>>26,this.words[i]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!=(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var o,u=n.length-i.length;if("mod"!==e){(o=new s(null)).length=u+1,o.words=new Array(o.length);for(var h=0;h<o.length;h++)o.words[h]=0}var c=n.clone()._ishlnsubmul(i,1,u);0===c.negative&&(n=c,o&&(o.words[u]=1));for(var d=u-1;d>=0;d--){var l=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,d);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);o&&(o.words[d]=l)}return o&&o.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:o||null,mod:n}},s.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(o=this.neg().divmod(t,e),"mod"!==e&&(i=o.div.neg()),"div"!==e&&(a=o.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(o=this.divmod(t.neg(),e),"mod"!==e&&(i=o.div.neg()),{div:i,mod:o.mod}):this.negative&t.negative?(o=this.neg().divmod(t.neg(),e),"div"!==e&&(a=o.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:o.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,o},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.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),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new s(1),a=new s(0),o=new s(0),u=new s(1),h=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++h;for(var c=r.clone(),d=e.clone();!e.isZero();){for(var l=0,f=1;!(e.words[0]&f)&&l<26;++l,f<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var m=0,p=1;!(r.words[0]&p)&&m<26;++m,p<<=1);if(m>0)for(r.iushrn(m);m-- >0;)(o.isOdd()||u.isOdd())&&(o.iadd(c),u.isub(d)),o.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(o),a.isub(u)):(r.isub(e),o.isub(i),u.isub(a))}return{a:o,b:u,gcd:r.iushln(h)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new s(1),o=new s(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var h=0,c=1;!(e.words[0]&c)&&h<26;++h,c<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var d=0,l=1;!(r.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(r.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(o)):(r.isub(e),o.isub(a))}return(i=0===e.cmpn(1)?a:o).cmpn(0)<0&&i.iadd(t),i},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return!(1&this.words[0])},s.prototype.isOdd=function(){return!(1&~this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var s=i,a=r;0!==s&&a<this.length;a++){var o=0|this.words[a];s=(o+=s)>>>26,o&=67108863,this.words[a]=o}return 0!==s&&(this.words[a]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.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 i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},s.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},s.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new k(t)},s.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)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"==typeof t){var e=s._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 L(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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)}v.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.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},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},i(g,v),g.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var s=t.words[9];for(e.words[e.length++]=s&r,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&r)<<4|s>>>22,s=a}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},g.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(b,v),i(M,v),i(w,v),w.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new g;else if("p224"===t)e=new b;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new w}return y[t]=e,e},k.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){n(!(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new s(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var o=new s(1).toRed(this),u=o.redNeg(),h=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new s(2*c*c).toRed(this);0!==this.pow(c,h).cmp(u);)c.redIAdd(u);for(var d=this.pow(c,i),l=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),m=a;0!==f.cmp(o);){for(var p=f,_=0;0!==p.cmp(o);_++)p=p.redSqr();n(_<m);var y=this.pow(d,new s(1).iushln(m-_-1));l=l.redMul(y),d=y.redSqr(),f=f.redMul(d),m=_}return l},k.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},k.prototype.pow=function(t,e){if(e.isZero())return new s(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new s(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,o=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var h=e.words[n],c=u-1;c>=0;c--){var d=h>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4==++o||0===n&&0===c)&&(i=this.mul(i,r[a]),o=0,a=0)):o=0}u=26}return i},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new L(t)},i(L,k),L.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},L.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},L.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},L.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},L.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},()=>{},(t,e,r)=>{var n=r(344),i=r(39);function s(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}e.define=function(t,e){return new s(t,e)},s.prototype._createNamed=function(t){var e;try{e=r(348).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(t){e=function(t){this._initNamed(t)}}return i(e,t),e.prototype._initNamed=function(e){t.call(this,e)},new e(this)},s.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(n.decoders[t])),this.decoders[t]},s.prototype.decode=function(t,e,r){return this._getDecoder(e).decode(t,r)},s.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(n.encoders[t])),this.encoders[t]},s.prototype.encode=function(t,e,r){return this._getEncoder(e).encode(t,r)}},(__unused_webpack_module,exports)=>{var indexOf=function(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0;r<t.length;r++)if(t[r]===e)return r;return-1},Object_keys=function(t){if(Object.keys)return Object.keys(t);var e=[];for(var r in t)e.push(r);return e},forEach=function(t,e){if(t.forEach)return t.forEach(e);for(var r=0;r<t.length;r++)e(t[r],r,t)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(t,e,r){Object.defineProperty(t,e,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(t){return function(t,e,r){t[e]=r}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(t){if(!(this instanceof Script))return new Script(t);this.code=t};Script.prototype.runInContext=function(t){if(!(t instanceof Context))throw new TypeError("needs a 'context' argument.");var e=document.createElement("iframe");e.style||(e.style={}),e.style.display="none",document.body.appendChild(e);var r=e.contentWindow,n=r.eval,i=r.execScript;!n&&i&&(i.call(r,"null"),n=r.eval),forEach(Object_keys(t),(function(e){r[e]=t[e]})),forEach(globals,(function(e){t[e]&&(r[e]=t[e])}));var s=Object_keys(r),a=n.call(r,this.code);return forEach(Object_keys(r),(function(e){(e in t||-1===indexOf(s,e))&&(t[e]=r[e])})),forEach(globals,(function(e){e in t||defineProp(t,e,r[e])})),document.body.removeChild(e),a},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(t){var e=Script.createContext(t),r=this.runInContext(e);return t&&forEach(Object_keys(e),(function(r){t[r]=e[r]})),r},forEach(Object_keys(Script.prototype),(function(t){exports[t]=Script[t]=function(e){var r=Script(e);return r[t].apply(r,[].slice.call(arguments,1))}})),exports.isContext=function(t){return t instanceof Context},exports.createScript=function(t){return exports.Script(t)},exports.createContext=Script.createContext=function(t){var e=new Context;return"object"==typeof t&&forEach(Object_keys(t),(function(r){e[r]=t[r]})),e}},(t,e,r)=>{var n=e;n.Reporter=r(350).Reporter,n.DecoderBuffer=r(351).DecoderBuffer,n.EncoderBuffer=r(351).EncoderBuffer,n.Node=r(352)},(t,e,r)=>{var n=r(39);function i(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function s(t,e){this.path=t,this.rethrow(e)}e.Reporter=i,i.prototype.isError=function(t){return t instanceof s},i.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},i.prototype.restore=function(t){var e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},i.prototype.enterKey=function(t){return this._reporterState.path.push(t)},i.prototype.exitKey=function(t){var e=this._reporterState;e.path=e.path.slice(0,t-1)},i.prototype.leaveKey=function(t,e,r){var n=this._reporterState;this.exitKey(t),null!==n.obj&&(n.obj[e]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var t=this._reporterState,e=t.obj;return t.obj={},e},i.prototype.leaveObject=function(t){var e=this._reporterState,r=e.obj;return e.obj=t,r},i.prototype.error=function(t){var e,r=this._reporterState,n=t instanceof s;if(e=n?t:new s(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},i.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},n(s,Error),s.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,s),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},(t,e,r)=>{var n=r(39),i=r(349).Reporter,s=r(203).Buffer;function a(t,e){i.call(this,e),s.isBuffer(t)?(this.base=t,this.offset=0,this.length=t.length):this.error("Input not Buffer")}function o(t,e){if(Array.isArray(t))this.length=0,this.value=t.map((function(t){return t instanceof o||(t=new o(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=s.byteLength(t);else{if(!s.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}n(a,i),e.DecoderBuffer=a,a.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},a.prototype.restore=function(t){var e=new a(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,i.prototype.restore.call(this,t.reporter),e},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},a.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");var r=new a(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+t,this.offset+=t,r},a.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.EncoderBuffer=o,o.prototype.join=function(t,e){return t||(t=new s(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):s.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length)),t}},(t,e,r)=>{var n=r(349).Reporter,i=r(349).EncoderBuffer,s=r(349).DecoderBuffer,a=r(255),o=["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"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function h(t,e){var r={};this._baseState=r,r.enc=t,r.parent=e||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=h;var c=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];h.prototype.clone=function(){var t=this._baseState,e={};c.forEach((function(r){e[r]=t[r]}));var r=new this.constructor(e.parent);return r._baseState=e,r},h.prototype._wrap=function(){var t=this._baseState;u.forEach((function(e){this[e]=function(){var r=new this.constructor(this);return t.children.push(r),r[e].apply(r,arguments)}}),this)},h.prototype._init=function(t){var e=this._baseState;a(null===e.parent),t.call(this),e.children=e.children.filter((function(t){return t._baseState.parent===this}),this),a.equal(e.children.length,1,"Root node can have only one child")},h.prototype._useArgs=function(t){var 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&&(a(null===e.children),e.children=r,r.forEach((function(t){t._baseState.parent=this}),this)),0!==t.length&&(a(null===e.args),e.args=t,e.reverseArgs=t.map((function(t){if("object"!=typeof t||t.constructor!==Object)return t;var e={};return Object.keys(t).forEach((function(r){r==(0|r)&&(r|=0);var 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){h.prototype[t]=function(){var e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}})),o.forEach((function(t){h.prototype[t]=function(){var e=this._baseState,r=Array.prototype.slice.call(arguments);return a(null===e.tag),e.tag=t,this._useArgs(r),this}})),h.prototype.use=function(t){a(t);var e=this._baseState;return a(null===e.use),e.use=t,this},h.prototype.optional=function(){return this._baseState.optional=!0,this},h.prototype.def=function(t){var e=this._baseState;return a(null===e.default),e.default=t,e.optional=!0,this},h.prototype.explicit=function(t){var e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.explicit=t,this},h.prototype.implicit=function(t){var e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.implicit=t,this},h.prototype.obj=function(){var t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},h.prototype.key=function(t){var e=this._baseState;return a(null===e.key),e.key=t,this},h.prototype.any=function(){return this._baseState.any=!0,this},h.prototype.choice=function(t){var e=this._baseState;return a(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map((function(e){return t[e]}))),this},h.prototype.contains=function(t){var e=this._baseState;return a(null===e.use),e.contains=t,this},h.prototype._decode=function(t,e){var r=this._baseState;if(null===r.parent)return t.wrapResult(r.children[0]._decode(t,e));var n,i=r.default,a=!0,o=null;if(null!==r.key&&(o=t.enterKey(r.key)),r.optional){var u=null;if(null!==r.explicit?u=r.explicit:null!==r.implicit?u=r.implicit:null!==r.tag&&(u=r.tag),null!==u||r.any){if(a=this._peekTag(t,u,r.any),t.isError(a))return a}else{var h=t.save();try{null===r.choice?this._decodeGeneric(r.tag,t,e):this._decodeChoice(t,e),a=!0}catch(t){a=!1}t.restore(h)}}if(r.obj&&a&&(n=t.enterObject()),a){if(null!==r.explicit){var c=this._decodeTag(t,r.explicit);if(t.isError(c))return c;t=c}var d=t.offset;if(null===r.use&&null===r.choice){r.any&&(h=t.save());var l=this._decodeTag(t,null!==r.implicit?r.implicit:r.tag,r.any);if(t.isError(l))return l;r.any?i=t.raw(h):t=l}if(e&&e.track&&null!==r.tag&&e.track(t.path(),d,t.length,"tagged"),e&&e.track&&null!==r.tag&&e.track(t.path(),t.offset,t.length,"content"),r.any||(i=null===r.choice?this._decodeGeneric(r.tag,t,e):this._decodeChoice(t,e)),t.isError(i))return i;if(r.any||null!==r.choice||null===r.children||r.children.forEach((function(r){r._decode(t,e)})),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){var f=new s(i);i=this._getUse(r.contains,t._reporterState.obj)._decode(f,e)}}return r.obj&&a&&(i=t.leaveObject(n)),null===r.key||null===i&&!0!==a?null!==o&&t.exitKey(o):t.leaveKey(o,r.key,i),i},h.prototype._decodeGeneric=function(t,e,r){var n=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,n.args[0],r):/str$/.test(t)?this._decodeStr(e,t,r):"objid"===t&&n.args?this._decodeObjid(e,n.args[0],n.args[1],r):"objid"===t?this._decodeObjid(e,null,null,r):"gentime"===t||"utctime"===t?this._decodeTime(e,t,r):"null_"===t?this._decodeNull(e,r):"bool"===t?this._decodeBool(e,r):"objDesc"===t?this._decodeStr(e,t,r):"int"===t||"enum"===t?this._decodeInt(e,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,e._reporterState.obj)._decode(e,r):e.error("unknown tag: "+t)},h.prototype._getUse=function(t,e){var r=this._baseState;return r.useDecoder=this._use(t,e),a(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},h.prototype._decodeChoice=function(t,e){var r=this._baseState,n=null,i=!1;return Object.keys(r.choice).some((function(s){var a=t.save(),o=r.choice[s];try{var u=o._decode(t,e);if(t.isError(u))return!1;n={type:s,value:u},i=!0}catch(e){return t.restore(a),!1}return!0}),this),i?n:t.error("Choice not matched")},h.prototype._createEncoderBuffer=function(t){return new i(t,this.reporter)},h.prototype._encode=function(t,e,r){var n=this._baseState;if(null===n.default||n.default!==t){var i=this._encodeValue(t,e,r);if(void 0!==i&&!this._skipDefault(i,e,r))return i}},h.prototype._encodeValue=function(t,e,r){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(t,e||new n);var s=null;if(this.reporter=e,i.optional&&void 0===t){if(null===i.default)return;t=i.default}var a=null,o=!1;if(i.any)s=this._createEncoderBuffer(t);else if(i.choice)s=this._encodeChoice(t,e);else if(i.contains)a=this._getUse(i.contains,r)._encode(t,e),o=!0;else if(i.children)a=i.children.map((function(r){if("null_"===r._baseState.tag)return r._encode(null,e,t);if(null===r._baseState.key)return e.error("Child should have a key");var n=e.enterKey(r._baseState.key);if("object"!=typeof t)return e.error("Child expected, but input is not object");var i=r._encode(t[r._baseState.key],e,t);return e.leaveKey(n),i}),this).filter((function(t){return t})),a=this._createEncoderBuffer(a);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return e.error("Too many args for : "+i.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");var u=this.clone();u._baseState.implicit=null,a=this._createEncoderBuffer(t.map((function(r){var n=this._baseState;return this._getUse(n.args[0],t)._encode(r,e)}),u))}else null!==i.use?s=this._getUse(i.use,r)._encode(t,e):(a=this._encodePrimitive(i.tag,t),o=!0);if(!i.any&&null===i.choice){var h=null!==i.implicit?i.implicit:i.tag,c=null===i.implicit?"universal":"context";null===h?null===i.use&&e.error("Tag could be omitted only for .use()"):null===i.use&&(s=this._encodeComposite(h,o,c,a))}return null!==i.explicit&&(s=this._encodeComposite(i.explicit,!1,"context",s)),s},h.prototype._encodeChoice=function(t,e){var r=this._baseState,n=r.choice[t.type];return n||a(!1,t.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(t.value,e)},h.prototype._encodePrimitive=function(t,e){var r=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&r.args)return this._encodeObjid(e,r.reverseArgs[0],r.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,r.args&&r.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},h.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},h.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(t)}},(t,e,r)=>{var n=e;n._reverse=function(t){var e={};return Object.keys(t).forEach((function(r){(0|r)==r&&(r|=0);var n=t[r];e[n]=r})),e},n.der=r(354)},(t,e,r)=>{var n=r(353);e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=n._reverse(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._reverse(e.tag)},(t,e,r)=>{var n=e;n.der=r(356),n.pem=r(357)},(t,e,r)=>{var n=r(39),i=r(344),s=i.base,a=i.bignum,o=i.constants.der;function u(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new h,this.tree._init(t.body)}function h(t){s.Node.call(this,"der",t)}function c(t,e){var r=t.readUInt8(e);if(t.isError(r))return r;var n=o.tagClass[r>>6],i=!(32&r);if(31&~r)r&=31;else{var s=r;for(r=0;!(128&~s);){if(s=t.readUInt8(e),t.isError(s))return s;r<<=7,r|=127&s}}return{cls:n,primitive:i,tag:r,tagStr:o.tag[r]}}function d(t,e,r){var n=t.readUInt8(r);if(t.isError(n))return n;if(!e&&128===n)return null;if(!(128&n))return n;var i=127&n;if(i>4)return t.error("length octect is too long");n=0;for(var s=0;s<i;s++){n<<=8;var a=t.readUInt8(r);if(t.isError(a))return a;n|=a}return n}t.exports=u,u.prototype.decode=function(t,e){return t instanceof s.DecoderBuffer||(t=new s.DecoderBuffer(t,e)),this.tree._decode(t,e)},n(h,s.Node),h.prototype._peekTag=function(t,e,r){if(t.isEmpty())return!1;var n=t.save(),i=c(t,'Failed to peek tag: "'+e+'"');return t.isError(i)?i:(t.restore(n),i.tag===e||i.tagStr===e||i.tagStr+"of"===e||r)},h.prototype._decodeTag=function(t,e,r){var n=c(t,'Failed to decode tag of "'+e+'"');if(t.isError(n))return n;var i=d(t,n.primitive,'Failed to get length of "'+e+'"');if(t.isError(i))return i;if(!r&&n.tag!==e&&n.tagStr!==e&&n.tagStr+"of"!==e)return t.error('Failed to match tag: "'+e+'"');if(n.primitive||null!==i)return t.skip(i,'Failed to match body of: "'+e+'"');var s=t.save(),a=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(a)?a:(i=t.offset-s.offset,t.restore(s),t.skip(i,'Failed to match body of: "'+e+'"'))},h.prototype._skipUntilEnd=function(t,e){for(;;){var r=c(t,e);if(t.isError(r))return r;var n,i=d(t,r.primitive,e);if(t.isError(i))return i;if(n=r.primitive||null!==i?t.skip(i):this._skipUntilEnd(t,e),t.isError(n))return n;if("end"===r.tagStr)break}},h.prototype._decodeList=function(t,e,r,n){for(var i=[];!t.isEmpty();){var s=this._peekTag(t,"end");if(t.isError(s))return s;var a=r.decode(t,"der",n);if(t.isError(a)&&s)break;i.push(a)}return i},h.prototype._decodeStr=function(t,e){if("bitstr"===e){var r=t.readUInt8();return t.isError(r)?r:{unused:r,data:t.raw()}}if("bmpstr"===e){var n=t.raw();if(n.length%2==1)return t.error("Decoding of string type: bmpstr length mismatch");for(var i="",s=0;s<n.length/2;s++)i+=String.fromCharCode(n.readUInt16BE(2*s));return i}if("numstr"===e){var a=t.raw().toString("ascii");return this._isNumstr(a)?a:t.error("Decoding of string type: numstr unsupported characters")}if("octstr"===e)return t.raw();if("objDesc"===e)return t.raw();if("printstr"===e){var o=t.raw().toString("ascii");return this._isPrintstr(o)?o:t.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(e)?t.raw().toString():t.error("Decoding of string type: "+e+" unsupported")},h.prototype._decodeObjid=function(t,e,r){for(var n,i=[],s=0;!t.isEmpty();){var a=t.readUInt8();s<<=7,s|=127&a,128&a||(i.push(s),s=0)}128&a&&i.push(s);var o=i[0]/40|0,u=i[0]%40;if(n=r?i:[o,u].concat(i.slice(1)),e){var h=e[n.join(" ")];void 0===h&&(h=e[n.join(".")]),void 0!==h&&(n=h)}return n},h.prototype._decodeTime=function(t,e){var r=t.raw().toString();if("gentime"===e)var n=0|r.slice(0,4),i=0|r.slice(4,6),s=0|r.slice(6,8),a=0|r.slice(8,10),o=0|r.slice(10,12),u=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),i=0|r.slice(2,4),s=0|r.slice(4,6),a=0|r.slice(6,8),o=0|r.slice(8,10),u=0|r.slice(10,12),n=n<70?2e3+n:1900+n}return Date.UTC(n,i-1,s,a,o,u,0)},h.prototype._decodeNull=function(t){return null},h.prototype._decodeBool=function(t){var e=t.readUInt8();return t.isError(e)?e:0!==e},h.prototype._decodeInt=function(t,e){var r=t.raw(),n=new a(r);return e&&(n=e[n.toString(10)]||n),n},h.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getDecoder("der").tree}},(t,e,r)=>{var n=r(39),i=r(203).Buffer,s=r(356);function a(t){s.call(this,t),this.enc="pem"}n(a,s),t.exports=a,a.prototype.decode=function(t,e){for(var r=t.toString().split(/[\r\n]+/g),n=e.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,o=-1,u=-1,h=0;h<r.length;h++){var c=r[h].match(a);if(null!==c&&c[2]===n){if(-1!==o){if("END"!==c[1])break;u=h;break}if("BEGIN"!==c[1])break;o=h}}if(-1===o||-1===u)throw new Error("PEM section not found for: "+n);var d=r.slice(o+1,u).join("");d.replace(/[^a-z0-9\+\/=]+/gi,"");var l=new i(d,"base64");return s.prototype.decode.call(this,l,e)}},(t,e,r)=>{var n=e;n.der=r(359),n.pem=r(360)},(t,e,r)=>{var n=r(39),i=r(203).Buffer,s=r(344),a=s.base,o=s.constants.der;function u(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new h,this.tree._init(t.body)}function h(t){a.Node.call(this,"der",t)}function c(t){return t<10?"0"+t:t}t.exports=u,u.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},n(h,a.Node),h.prototype._encodeComposite=function(t,e,r,n){var s,a=function(t,e,r,n){var i;if("seqof"===t?t="seq":"setof"===t&&(t="set"),o.tagByName.hasOwnProperty(t))i=o.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return n.error("Unknown tag: "+t);i=t}return i>=31?n.error("Multi-octet tag encoding unsupported"):(e||(i|=32),i|=o.tagClassByName[r||"universal"]<<6)}(t,e,r,this.reporter);if(n.length<128)return(s=new i(2))[0]=a,s[1]=n.length,this._createEncoderBuffer([s,n]);for(var u=1,h=n.length;h>=256;h>>=8)u++;(s=new i(2+u))[0]=a,s[1]=128|u,h=1+u;for(var c=n.length;c>0;h--,c>>=8)s[h]=255&c;return this._createEncoderBuffer([s,n])},h.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){for(var r=new i(2*t.length),n=0;n<t.length;n++)r.writeUInt16BE(t.charCodeAt(n),2*n);return this._createEncoderBuffer(r)}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")},h.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(var n=0;n<t.length;n++)t[n]|=0}else if(Array.isArray(t))for(t=t.slice(),n=0;n<t.length;n++)t[n]|=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])}var s=0;for(n=0;n<t.length;n++){var a=t[n];for(s++;a>=128;a>>=7)s++}var o=new i(s),u=o.length-1;for(n=t.length-1;n>=0;n--)for(a=t[n],o[u--]=127&a;(a>>=7)>0;)o[u--]=128|127&a;return this._createEncoderBuffer(o)},h.prototype._encodeTime=function(t,e){var r,n=new Date(t);return"gentime"===e?r=[c(n.getFullYear()),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):"utctime"===e?r=[c(n.getFullYear()%100),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(r,"octstr")},h.prototype._encodeNull=function(){return this._createEncoderBuffer("")},h.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&&!i.isBuffer(t)){var r=t.toArray();!t.sign&&128&r[0]&&r.unshift(0),t=new i(r)}if(i.isBuffer(t)){var n=t.length;0===t.length&&n++;var s=new i(n);return t.copy(s),0===t.length&&(s[0]=0),this._createEncoderBuffer(s)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);n=1;for(var a=t;a>=256;a>>=8)n++;for(a=(s=new Array(n)).length-1;a>=0;a--)s[a]=255&t,t>>=8;return 128&s[0]&&s.unshift(0),this._createEncoderBuffer(new i(s))},h.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},h.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},h.prototype._skipDefault=function(t,e,r){var n,i=this._baseState;if(null===i.default)return!1;var s=t.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,e,r).join()),s.length!==i.defaultBuffer.length)return!1;for(n=0;n<s.length;n++)if(s[n]!==i.defaultBuffer[n])return!1;return!0}},(t,e,r)=>{var n=r(39),i=r(359);function s(t){i.call(this,t),this.enc="pem"}n(s,i),t.exports=s,s.prototype.encode=function(t,e){for(var r=i.prototype.encode.call(this,t).toString("base64"),n=["-----BEGIN "+e.label+"-----"],s=0;s<r.length;s+=64)n.push(r.slice(s,s+64));return n.push("-----END "+e.label+"-----"),n.join("\n")}},(t,e,r)=>{"use strict";var n=r(344),i=n.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),s=n.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),a=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),o=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())})),u=n.define("RelativeDistinguishedName",(function(){this.setof(s)})),h=n.define("RDNSequence",(function(){this.seqof(u)})),c=n.define("Name",(function(){this.choice({rdnSequence:this.use(h)})})),d=n.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),l=n.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),f=n.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(c),this.key("validity").use(d),this.key("subject").use(c),this.key("subjectPublicKeyInfo").use(o),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(l).optional())})),m=n.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(f),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())}));t.exports=m},t=>{"use strict";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"}')},(t,e,r)=>{"use strict";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,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,s=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,a=r(276),o=r(259),u=r(202).Buffer;t.exports=function(t,e){var r,h=t.toString(),c=h.match(n);if(c){var d="aes"+c[1],l=u.from(c[2],"hex"),f=u.from(c[3].replace(/[\r\n]/g,""),"base64"),m=a(e,l.slice(0,8),parseInt(c[1],10)).key,p=[],_=o.createDecipheriv(d,m,l);p.push(_.update(f)),p.push(_.final()),r=u.concat(p)}else{var y=h.match(s);r=u.from(y[2].replace(/[\r\n]/g,""),"base64")}return{tag:h.match(i)[1],data:r}}},t=>{"use strict";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"}')},(t,e,r)=>{"use strict";var n=r(202).Buffer,i=r(308),s=r(310).ec,a=r(342),o=r(364);function u(t,e){if(t.cmpn(0)<=0)throw new Error("invalid sig");if(t.cmp(e)>=0)throw new Error("invalid sig")}t.exports=function(t,e,r,h,c){var d=a(r);if("ec"===d.type){if("ecdsa"!==h&&"ecdsa/rsa"!==h)throw new Error("wrong public key type");return function(t,e,r){var n=o[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new s(n),a=r.data.subjectPrivateKey.data;return i.verify(e,t,a)}(t,e,d)}if("dsa"===d.type){if("dsa"!==h)throw new Error("wrong public key type");return function(t,e,r){var n=r.data.p,s=r.data.q,o=r.data.g,h=r.data.pub_key,c=a.signature.decode(t,"der"),d=c.s,l=c.r;u(d,s),u(l,s);var f=i.mont(n),m=d.invm(s);return 0===o.toRed(f).redPow(new i(e).mul(m).mod(s)).fromRed().mul(h.toRed(f).redPow(l.mul(m).mod(s)).fromRed()).mod(n).mod(s).cmp(l)}(t,e,d)}if("rsa"!==h&&"ecdsa/rsa"!==h)throw new Error("wrong public key type");e=n.concat([c,e]);for(var l=d.modulus.byteLength(),f=[1],m=0;e.length+f.length+2<l;)f.push(255),m+=1;f.push(0);for(var p=-1;++p<e.length;)f.push(e[p]);f=n.from(f);var _=i.mont(d.modulus);t=(t=new i(t).toRed(_)).redPow(new i(d.publicExponent)),t=n.from(t.fromRed().toArray());var y=m<8?1:0;for(l=Math.min(t.length,f.length),t.length!==f.length&&(y=1),p=-1;++p<l;)y|=t[p]^f[p];return 0===y}},(t,e,r)=>{var n=r(203).Buffer,i=r(310),s=r(367);t.exports=function(t){return new o(t)};var a={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 o(t){this.curveType=a[t],this.curveType||(this.curveType={name:t}),this.curve=new i.ec(this.curveType.name),this.keys=void 0}function u(t,e,r){Array.isArray(t)||(t=t.toArray());var i=new n(t);if(r&&i.length<r){var s=new n(r-i.length);s.fill(0),i=n.concat([s,i])}return e?i.toString(e):i}a.p224=a.secp224r1,a.p256=a.secp256r1=a.prime256v1,a.p192=a.secp192r1=a.prime192v1,a.p384=a.secp384r1,a.p521=a.secp521r1,o.prototype.generateKeys=function(t,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(t,e)},o.prototype.computeSecret=function(t,e,r){return e=e||"utf8",n.isBuffer(t)||(t=new n(t,e)),u(this.curve.keyFromPublic(t).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},o.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),u(r,t)},o.prototype.getPrivateKey=function(t){return u(this.keys.getPrivate(),t)},o.prototype.setPublicKey=function(t,e){return e=e||"utf8",n.isBuffer(t)||(t=new n(t,e)),this.keys._importPublic(t),this},o.prototype.setPrivateKey=function(t,e){e=e||"utf8",n.isBuffer(t)||(t=new n(t,e));var r=new s(t);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}},function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function s(t,e,r){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(368).Buffer}catch(t){}function o(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function h(t,e,r,n){for(var i=0,s=Math.min(t.length,r),a=e;a<s;a++){var o=t.charCodeAt(a)-48;i*=n,i+=o>=49?o-49+10:o>=17?o-17+10:o}return i}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},s.prototype._initNumber=function(t,e,r){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"===r&&this._initArray(this.toArray(),e,r)},s.prototype._initArray=function(t,e,r){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 s,a,o=0;if("be"===r)for(i=t.length-1,s=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=a<<o&67108863,this.words[s+1]=a>>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);else if("le"===r)for(i=0,s=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[s]|=a<<o&67108863,this.words[s+1]=a>>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,s=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=u(t,e,n)<<s,this.words[a]|=67108863&i,s>=18?(s-=18,a+=1,this.words[a]|=i>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)i=u(t,e,n)<<s,this.words[a]|=67108863&i,s>=18?(s-=18,a+=1,this.words[a]|=i>>>26):s+=8;this.strip()},s.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,a=s%n,o=Math.min(s,s-a)+r,u=0,c=r;c<o;c+=n)u=h(t,c,c+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var d=1;for(u=h(t,c,t.length,e),c=0;c<a;c++)d*=e;this.imuln(d),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},s.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},s.prototype.clone=function(){var t=new s(null);return this.copy(t),t},s.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","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"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],a=i*s,o=67108863&a,u=a/67108864|0;r.words[0]=o;for(var h=1;h<n;h++){for(var c=u>>>26,d=67108863&u,l=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=l;f++){var m=h-f|0;c+=(a=(i=0|t.words[m])*(s=0|e.words[f])+d)/67108864|0,d=67108863&a}r.words[h]=0|d,u=0|c}return 0!==u?r.words[h]=0|u:r.length--,r.strip()}s.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,s=0,a=0;a<this.length;a++){var o=this.words[a],u=(16777215&(o<<i|s)).toString(16);r=0!=(s=o>>>24-i&16777215)||a!==this.length-1?c[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==s&&(r=s.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var h=d[t],f=l[t];r="";var m=this.clone();for(m.negative=0;!m.isZero();){var p=m.modn(f).toString(t);r=(m=m.idivn(f)).isZero()?p+r:c[h-p.length]+p+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.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},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==a),this.toArrayLike(a,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var a,o,u="le"===e,h=new t(s),c=this.clone();if(u){for(o=0;!c.isZero();o++)a=c.andln(255),c.iushrn(8),h[o]=a;for(;o<s;o++)h[o]=0}else{for(o=0;o<s-i;o++)h[o]=0;for(o=0;!c.isZero();o++)a=c.andln(255),c.iushrn(8),h[s-o-1]=a}return h},Math.clz32?s.prototype._countBits=function(t){return 32-Math.clz32(t)}:s.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},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 8191&e||(r+=13,e>>>=13),127&e||(r+=7,e>>>=7),15&e||(r+=4,e>>>=4),3&e||(r+=2,e>>>=2),1&e||r++,r},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},s.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},s.prototype.ior=function(t){return n(!(this.negative|t.negative)),this.iuor(t)},s.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},s.prototype.iand=function(t){return n(!(this.negative|t.negative)),this.iuand(t)},s.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},s.prototype.ixor=function(t){return n(!(this.negative|t.negative)),this.iuxor(t)},s.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.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()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},s.prototype.iadd=function(t){var e,r,n;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?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s<n.length;s++)e=(0|r.words[s])+(0|n.words[s])+i,this.words[s]=67108863&e,i=e>>>26;for(;0!==i&&s<r.length;s++)e=(0|r.words[s])+i,this.words[s]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this},s.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)},s.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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,a=0;a<n.length;a++)s=(e=(0|r.words[a])-(0|n.words[a])+s)>>26,this.words[a]=67108863&e;for(;0!==s&&a<r.length;a++)s=(e=(0|r.words[a])+s)>>26,this.words[a]=67108863&e;if(0===s&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(t){return this.clone().isub(t)};var m=function(t,e,r){var n,i,s,a=t.words,o=e.words,u=r.words,h=0,c=0|a[0],d=8191&c,l=c>>>13,f=0|a[1],m=8191&f,p=f>>>13,_=0|a[2],y=8191&_,v=_>>>13,g=0|a[3],b=8191&g,M=g>>>13,w=0|a[4],k=8191&w,L=w>>>13,S=0|a[5],x=8191&S,Y=S>>>13,T=0|a[6],D=8191&T,E=T>>>13,j=0|a[7],A=8191&j,O=j>>>13,P=0|a[8],R=8191&P,H=P>>>13,I=0|a[9],C=8191&I,N=I>>>13,B=0|o[0],q=8191&B,F=B>>>13,U=0|o[1],z=8191&U,W=U>>>13,J=0|o[2],G=8191&J,K=J>>>13,V=0|o[3],Z=8191&V,$=V>>>13,X=0|o[4],Q=8191&X,tt=X>>>13,et=0|o[5],rt=8191&et,nt=et>>>13,it=0|o[6],st=8191&it,at=it>>>13,ot=0|o[7],ut=8191&ot,ht=ot>>>13,ct=0|o[8],dt=8191&ct,lt=ct>>>13,ft=0|o[9],mt=8191&ft,pt=ft>>>13;r.negative=t.negative^e.negative,r.length=19;var _t=(h+(n=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,F))+Math.imul(l,q)|0))<<13)|0;h=((s=Math.imul(l,F))+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(m,q),i=(i=Math.imul(m,F))+Math.imul(p,q)|0,s=Math.imul(p,F);var yt=(h+(n=n+Math.imul(d,z)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(l,z)|0))<<13)|0;h=((s=s+Math.imul(l,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,q),i=(i=Math.imul(y,F))+Math.imul(v,q)|0,s=Math.imul(v,F),n=n+Math.imul(m,z)|0,i=(i=i+Math.imul(m,W)|0)+Math.imul(p,z)|0,s=s+Math.imul(p,W)|0;var vt=(h+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(l,G)|0))<<13)|0;h=((s=s+Math.imul(l,K)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(b,q),i=(i=Math.imul(b,F))+Math.imul(M,q)|0,s=Math.imul(M,F),n=n+Math.imul(y,z)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(v,z)|0,s=s+Math.imul(v,W)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,K)|0)+Math.imul(p,G)|0,s=s+Math.imul(p,K)|0;var gt=(h+(n=n+Math.imul(d,Z)|0)|0)+((8191&(i=(i=i+Math.imul(d,$)|0)+Math.imul(l,Z)|0))<<13)|0;h=((s=s+Math.imul(l,$)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(k,q),i=(i=Math.imul(k,F))+Math.imul(L,q)|0,s=Math.imul(L,F),n=n+Math.imul(b,z)|0,i=(i=i+Math.imul(b,W)|0)+Math.imul(M,z)|0,s=s+Math.imul(M,W)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(v,G)|0,s=s+Math.imul(v,K)|0,n=n+Math.imul(m,Z)|0,i=(i=i+Math.imul(m,$)|0)+Math.imul(p,Z)|0,s=s+Math.imul(p,$)|0;var bt=(h+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,tt)|0)+Math.imul(l,Q)|0))<<13)|0;h=((s=s+Math.imul(l,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,F))+Math.imul(Y,q)|0,s=Math.imul(Y,F),n=n+Math.imul(k,z)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(L,z)|0,s=s+Math.imul(L,W)|0,n=n+Math.imul(b,G)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(M,G)|0,s=s+Math.imul(M,K)|0,n=n+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(v,Z)|0,s=s+Math.imul(v,$)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(p,Q)|0,s=s+Math.imul(p,tt)|0;var Mt=(h+(n=n+Math.imul(d,rt)|0)|0)+((8191&(i=(i=i+Math.imul(d,nt)|0)+Math.imul(l,rt)|0))<<13)|0;h=((s=s+Math.imul(l,nt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,F))+Math.imul(E,q)|0,s=Math.imul(E,F),n=n+Math.imul(x,z)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(Y,z)|0,s=s+Math.imul(Y,W)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(L,G)|0,s=s+Math.imul(L,K)|0,n=n+Math.imul(b,Z)|0,i=(i=i+Math.imul(b,$)|0)+Math.imul(M,Z)|0,s=s+Math.imul(M,$)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(v,Q)|0,s=s+Math.imul(v,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(p,rt)|0,s=s+Math.imul(p,nt)|0;var wt=(h+(n=n+Math.imul(d,st)|0)|0)+((8191&(i=(i=i+Math.imul(d,at)|0)+Math.imul(l,st)|0))<<13)|0;h=((s=s+Math.imul(l,at)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,F))+Math.imul(O,q)|0,s=Math.imul(O,F),n=n+Math.imul(D,z)|0,i=(i=i+Math.imul(D,W)|0)+Math.imul(E,z)|0,s=s+Math.imul(E,W)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(Y,G)|0,s=s+Math.imul(Y,K)|0,n=n+Math.imul(k,Z)|0,i=(i=i+Math.imul(k,$)|0)+Math.imul(L,Z)|0,s=s+Math.imul(L,$)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,Q)|0,s=s+Math.imul(M,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(v,rt)|0,s=s+Math.imul(v,nt)|0,n=n+Math.imul(m,st)|0,i=(i=i+Math.imul(m,at)|0)+Math.imul(p,st)|0,s=s+Math.imul(p,at)|0;var kt=(h+(n=n+Math.imul(d,ut)|0)|0)+((8191&(i=(i=i+Math.imul(d,ht)|0)+Math.imul(l,ut)|0))<<13)|0;h=((s=s+Math.imul(l,ht)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,F))+Math.imul(H,q)|0,s=Math.imul(H,F),n=n+Math.imul(A,z)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(O,z)|0,s=s+Math.imul(O,W)|0,n=n+Math.imul(D,G)|0,i=(i=i+Math.imul(D,K)|0)+Math.imul(E,G)|0,s=s+Math.imul(E,K)|0,n=n+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,$)|0)+Math.imul(Y,Z)|0,s=s+Math.imul(Y,$)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(L,Q)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(M,rt)|0,s=s+Math.imul(M,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,at)|0)+Math.imul(v,st)|0,s=s+Math.imul(v,at)|0,n=n+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ht)|0)+Math.imul(p,ut)|0,s=s+Math.imul(p,ht)|0;var Lt=(h+(n=n+Math.imul(d,dt)|0)|0)+((8191&(i=(i=i+Math.imul(d,lt)|0)+Math.imul(l,dt)|0))<<13)|0;h=((s=s+Math.imul(l,lt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(C,q),i=(i=Math.imul(C,F))+Math.imul(N,q)|0,s=Math.imul(N,F),n=n+Math.imul(R,z)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(H,z)|0,s=s+Math.imul(H,W)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(O,G)|0,s=s+Math.imul(O,K)|0,n=n+Math.imul(D,Z)|0,i=(i=i+Math.imul(D,$)|0)+Math.imul(E,Z)|0,s=s+Math.imul(E,$)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(Y,Q)|0,s=s+Math.imul(Y,tt)|0,n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(L,rt)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(b,st)|0,i=(i=i+Math.imul(b,at)|0)+Math.imul(M,st)|0,s=s+Math.imul(M,at)|0,n=n+Math.imul(y,ut)|0,i=(i=i+Math.imul(y,ht)|0)+Math.imul(v,ut)|0,s=s+Math.imul(v,ht)|0,n=n+Math.imul(m,dt)|0,i=(i=i+Math.imul(m,lt)|0)+Math.imul(p,dt)|0,s=s+Math.imul(p,lt)|0;var St=(h+(n=n+Math.imul(d,mt)|0)|0)+((8191&(i=(i=i+Math.imul(d,pt)|0)+Math.imul(l,mt)|0))<<13)|0;h=((s=s+Math.imul(l,pt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,W))+Math.imul(N,z)|0,s=Math.imul(N,W),n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(H,G)|0,s=s+Math.imul(H,K)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(O,Z)|0,s=s+Math.imul(O,$)|0,n=n+Math.imul(D,Q)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(E,Q)|0,s=s+Math.imul(E,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(Y,rt)|0,s=s+Math.imul(Y,nt)|0,n=n+Math.imul(k,st)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,at)|0,n=n+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(M,ut)|0,s=s+Math.imul(M,ht)|0,n=n+Math.imul(y,dt)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(v,dt)|0,s=s+Math.imul(v,lt)|0;var xt=(h+(n=n+Math.imul(m,mt)|0)|0)+((8191&(i=(i=i+Math.imul(m,pt)|0)+Math.imul(p,mt)|0))<<13)|0;h=((s=s+Math.imul(p,pt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(C,G),i=(i=Math.imul(C,K))+Math.imul(N,G)|0,s=Math.imul(N,K),n=n+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(H,Z)|0,s=s+Math.imul(H,$)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(O,Q)|0,s=s+Math.imul(O,tt)|0,n=n+Math.imul(D,rt)|0,i=(i=i+Math.imul(D,nt)|0)+Math.imul(E,rt)|0,s=s+Math.imul(E,nt)|0,n=n+Math.imul(x,st)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(Y,st)|0,s=s+Math.imul(Y,at)|0,n=n+Math.imul(k,ut)|0,i=(i=i+Math.imul(k,ht)|0)+Math.imul(L,ut)|0,s=s+Math.imul(L,ht)|0,n=n+Math.imul(b,dt)|0,i=(i=i+Math.imul(b,lt)|0)+Math.imul(M,dt)|0,s=s+Math.imul(M,lt)|0;var Yt=(h+(n=n+Math.imul(y,mt)|0)|0)+((8191&(i=(i=i+Math.imul(y,pt)|0)+Math.imul(v,mt)|0))<<13)|0;h=((s=s+Math.imul(v,pt)|0)+(i>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,n=Math.imul(C,Z),i=(i=Math.imul(C,$))+Math.imul(N,Z)|0,s=Math.imul(N,$),n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(H,Q)|0,s=s+Math.imul(H,tt)|0,n=n+Math.imul(A,rt)|0,i=(i=i+Math.imul(A,nt)|0)+Math.imul(O,rt)|0,s=s+Math.imul(O,nt)|0,n=n+Math.imul(D,st)|0,i=(i=i+Math.imul(D,at)|0)+Math.imul(E,st)|0,s=s+Math.imul(E,at)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ht)|0)+Math.imul(Y,ut)|0,s=s+Math.imul(Y,ht)|0,n=n+Math.imul(k,dt)|0,i=(i=i+Math.imul(k,lt)|0)+Math.imul(L,dt)|0,s=s+Math.imul(L,lt)|0;var Tt=(h+(n=n+Math.imul(b,mt)|0)|0)+((8191&(i=(i=i+Math.imul(b,pt)|0)+Math.imul(M,mt)|0))<<13)|0;h=((s=s+Math.imul(M,pt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(C,Q),i=(i=Math.imul(C,tt))+Math.imul(N,Q)|0,s=Math.imul(N,tt),n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(H,rt)|0,s=s+Math.imul(H,nt)|0,n=n+Math.imul(A,st)|0,i=(i=i+Math.imul(A,at)|0)+Math.imul(O,st)|0,s=s+Math.imul(O,at)|0,n=n+Math.imul(D,ut)|0,i=(i=i+Math.imul(D,ht)|0)+Math.imul(E,ut)|0,s=s+Math.imul(E,ht)|0,n=n+Math.imul(x,dt)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(Y,dt)|0,s=s+Math.imul(Y,lt)|0;var Dt=(h+(n=n+Math.imul(k,mt)|0)|0)+((8191&(i=(i=i+Math.imul(k,pt)|0)+Math.imul(L,mt)|0))<<13)|0;h=((s=s+Math.imul(L,pt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(C,rt),i=(i=Math.imul(C,nt))+Math.imul(N,rt)|0,s=Math.imul(N,nt),n=n+Math.imul(R,st)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(H,st)|0,s=s+Math.imul(H,at)|0,n=n+Math.imul(A,ut)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(O,ut)|0,s=s+Math.imul(O,ht)|0,n=n+Math.imul(D,dt)|0,i=(i=i+Math.imul(D,lt)|0)+Math.imul(E,dt)|0,s=s+Math.imul(E,lt)|0;var Et=(h+(n=n+Math.imul(x,mt)|0)|0)+((8191&(i=(i=i+Math.imul(x,pt)|0)+Math.imul(Y,mt)|0))<<13)|0;h=((s=s+Math.imul(Y,pt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(C,st),i=(i=Math.imul(C,at))+Math.imul(N,st)|0,s=Math.imul(N,at),n=n+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ht)|0)+Math.imul(H,ut)|0,s=s+Math.imul(H,ht)|0,n=n+Math.imul(A,dt)|0,i=(i=i+Math.imul(A,lt)|0)+Math.imul(O,dt)|0,s=s+Math.imul(O,lt)|0;var jt=(h+(n=n+Math.imul(D,mt)|0)|0)+((8191&(i=(i=i+Math.imul(D,pt)|0)+Math.imul(E,mt)|0))<<13)|0;h=((s=s+Math.imul(E,pt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(C,ut),i=(i=Math.imul(C,ht))+Math.imul(N,ut)|0,s=Math.imul(N,ht),n=n+Math.imul(R,dt)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(H,dt)|0,s=s+Math.imul(H,lt)|0;var At=(h+(n=n+Math.imul(A,mt)|0)|0)+((8191&(i=(i=i+Math.imul(A,pt)|0)+Math.imul(O,mt)|0))<<13)|0;h=((s=s+Math.imul(O,pt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(C,dt),i=(i=Math.imul(C,lt))+Math.imul(N,dt)|0,s=Math.imul(N,lt);var Ot=(h+(n=n+Math.imul(R,mt)|0)|0)+((8191&(i=(i=i+Math.imul(R,pt)|0)+Math.imul(H,mt)|0))<<13)|0;h=((s=s+Math.imul(H,pt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863;var Pt=(h+(n=Math.imul(C,mt))|0)+((8191&(i=(i=Math.imul(C,pt))+Math.imul(N,mt)|0))<<13)|0;return h=((s=Math.imul(N,pt))+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,u[0]=_t,u[1]=yt,u[2]=vt,u[3]=gt,u[4]=bt,u[5]=Mt,u[6]=wt,u[7]=kt,u[8]=Lt,u[9]=St,u[10]=xt,u[11]=Yt,u[12]=Tt,u[13]=Dt,u[14]=Et,u[15]=jt,u[16]=At,u[17]=Ot,u[18]=Pt,0!==h&&(u[19]=h,r.length++),r};function p(t,e,r){return(new _).mulp(t,e,r)}function _(t,e){this.x=t,this.y=e}Math.imul||(m=f),s.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?m(this,t,e):n<63?f(this,t,e):n<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s<r.length-1;s++){var a=i;i=0;for(var o=67108863&n,u=Math.min(s,e.length-1),h=Math.max(0,s-t.length+1);h<=u;h++){var c=s-h,d=(0|t.words[c])*(0|e.words[h]),l=67108863&d;o=67108863&(l=l+o|0),i+=(a=(a=a+(d/67108864|0)|0)+(l>>>26)|0)>>>26,a&=67108863}r.words[s]=o,n=a,a=i}return 0!==n?r.words[s]=n:r.length--,r.strip()}(this,t,e):p(this,t,e),r},_.prototype.makeRBT=function(t){for(var e=new Array(t),r=s.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,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,i,s){for(var a=0;a<s;a++)n[a]=e[t[a]],i[a]=r[t[a]]},_.prototype.transform=function(t,e,r,n,i,s){this.permute(s,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var o=a<<1,u=Math.cos(2*Math.PI/o),h=Math.sin(2*Math.PI/o),c=0;c<i;c+=o)for(var d=u,l=h,f=0;f<a;f++){var m=r[c+f],p=n[c+f],_=r[c+f+a],y=n[c+f+a],v=d*_-l*y;y=d*y+l*_,_=v,r[c+f]=m+_,n[c+f]=p+y,r[c+f+a]=m-_,n[c+f+a]=p-y,f!==o&&(v=u*d-h*l,l=u*l+h*d,d=v)}},_.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 n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},_.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},_.prototype.convert13b=function(t,e,r,i){for(var s=0,a=0;a<e;a++)s+=0|t[a],r[2*a]=8191&s,s>>>=13,r[2*a+1]=8191&s,s>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===s),n(!(-8192&s))},_.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},_.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),s=this.stub(n),a=new Array(n),o=new Array(n),u=new Array(n),h=new Array(n),c=new Array(n),d=new Array(n),l=r.words;l.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,h,n),this.transform(a,s,o,u,n,i),this.transform(h,s,c,d,n,i);for(var f=0;f<n;f++){var m=o[f]*c[f]-u[f]*d[f];u[f]=o[f]*d[f]+u[f]*c[f],o[f]=m}return this.conjugate(o,u,n),this.transform(o,u,l,s,n,i),this.conjugate(l,s,n),this.normalize13b(l,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},s.prototype.mul=function(t){var e=new s(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},s.prototype.mulf=function(t){var e=new s(null);return e.words=new Array(this.length+t.length),p(this,t,e)},s.prototype.imul=function(t){return this.clone().mulTo(t,this)},s.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,s=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=s>>>26,this.words[r]=67108863&s}return 0!==e&&(this.words[r]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.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,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}(t);if(0===e.length)return new s(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},s.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var o=this.words[e]&s,u=(0|this.words[e])-o<<r;this.words[e]=u|a,a=o>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},s.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},s.prototype.iushrn=function(t,e,r){var i;n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var s=t%26,a=Math.min((t-s)/26,this.length),o=67108863^67108863>>>s<<s,u=r;if(i-=a,i=Math.max(0,i),u){for(var h=0;h<a;h++)u.words[h]=this.words[h];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,h=0;h<this.length;h++)this.words[h]=this.words[h+a];else this.words[0]=0,this.length=1;var c=0;for(h=this.length-1;h>=0&&(0!==c||h>=i);h--){var d=0|this.words[h];this.words[h]=c<<26-s|d>>>s,c=d&o}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r||!(this.words[r]&i))},s.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},s.prototype.maskn=function(t){return this.clone().imaskn(t)},s.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)},s.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.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 e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},s.prototype.addn=function(t){return this.clone().iaddn(t)},s.prototype.subn=function(t){return this.clone().isubn(t)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(t,e,r){var i,s,a=t.length+r;this._expand(a);var o=0;for(i=0;i<t.length;i++){s=(0|this.words[i+r])+o;var u=(0|t.words[i])*e;o=((s-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&s}for(;i<this.length-r;i++)o=(s=(0|this.words[i+r])+o)>>26,this.words[i+r]=67108863&s;if(0===o)return this.strip();for(n(-1===o),o=0,i=0;i<this.length;i++)o=(s=-(0|this.words[i])+o)>>26,this.words[i]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!=(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var o,u=n.length-i.length;if("mod"!==e){(o=new s(null)).length=u+1,o.words=new Array(o.length);for(var h=0;h<o.length;h++)o.words[h]=0}var c=n.clone()._ishlnsubmul(i,1,u);0===c.negative&&(n=c,o&&(o.words[u]=1));for(var d=u-1;d>=0;d--){var l=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,d);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);o&&(o.words[d]=l)}return o&&o.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:o||null,mod:n}},s.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(o=this.neg().divmod(t,e),"mod"!==e&&(i=o.div.neg()),"div"!==e&&(a=o.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(o=this.divmod(t.neg(),e),"mod"!==e&&(i=o.div.neg()),{div:i,mod:o.mod}):this.negative&t.negative?(o=this.neg().divmod(t.neg(),e),"div"!==e&&(a=o.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:o.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,o},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.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),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new s(1),a=new s(0),o=new s(0),u=new s(1),h=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++h;for(var c=r.clone(),d=e.clone();!e.isZero();){for(var l=0,f=1;!(e.words[0]&f)&&l<26;++l,f<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var m=0,p=1;!(r.words[0]&p)&&m<26;++m,p<<=1);if(m>0)for(r.iushrn(m);m-- >0;)(o.isOdd()||u.isOdd())&&(o.iadd(c),u.isub(d)),o.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(o),a.isub(u)):(r.isub(e),o.isub(i),u.isub(a))}return{a:o,b:u,gcd:r.iushln(h)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new s(1),o=new s(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var h=0,c=1;!(e.words[0]&c)&&h<26;++h,c<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var d=0,l=1;!(r.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(r.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(o)):(r.isub(e),o.isub(a))}return(i=0===e.cmpn(1)?a:o).cmpn(0)<0&&i.iadd(t),i},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return!(1&this.words[0])},s.prototype.isOdd=function(){return!(1&~this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var s=i,a=r;0!==s&&a<this.length;a++){var o=0|this.words[a];s=(o+=s)>>>26,o&=67108863,this.words[a]=o}return 0!==s&&(this.words[a]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.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 i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},s.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},s.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new k(t)},s.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)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"==typeof t){var e=s._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 L(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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)}v.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.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},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},i(g,v),g.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var s=t.words[9];for(e.words[e.length++]=s&r,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&r)<<4|s>>>22,s=a}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},g.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(b,v),i(M,v),i(w,v),w.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new g;else if("p224"===t)e=new b;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new w}return y[t]=e,e},k.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){n(!(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new s(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var o=new s(1).toRed(this),u=o.redNeg(),h=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new s(2*c*c).toRed(this);0!==this.pow(c,h).cmp(u);)c.redIAdd(u);for(var d=this.pow(c,i),l=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),m=a;0!==f.cmp(o);){for(var p=f,_=0;0!==p.cmp(o);_++)p=p.redSqr();n(_<m);var y=this.pow(d,new s(1).iushln(m-_-1));l=l.redMul(y),d=y.redSqr(),f=f.redMul(d),m=_}return l},k.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},k.prototype.pow=function(t,e){if(e.isZero())return new s(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new s(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,o=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var h=e.words[n],c=u-1;c>=0;c--){var d=h>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4==++o||0===n&&0===c)&&(i=this.mul(i,r[a]),o=0,a=0)):o=0}u=26}return i},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new L(t)},i(L,k),L.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},L.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},L.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},L.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},L.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},()=>{},(t,e,r)=>{e.publicEncrypt=r(370),e.privateDecrypt=r(376),e.privateEncrypt=function(t,r){return e.publicEncrypt(t,r,!0)},e.publicDecrypt=function(t,r){return e.privateDecrypt(t,r,!0)}},(t,e,r)=>{var n=r(342),i=r(201),s=r(206),a=r(371),o=r(372),u=r(373),h=r(375),c=r(307),d=r(202).Buffer;t.exports=function(t,e,r){var l;l=t.padding?t.padding:r?1:4;var f,m=n(t);if(4===l)f=function(t,e){var r=t.modulus.byteLength(),n=e.length,h=s("sha1").update(d.alloc(0)).digest(),c=h.length,l=2*c;if(n>r-l-2)throw new Error("message too long");var f=d.alloc(r-n-l-2),m=r-c-1,p=i(c),_=o(d.concat([h,f,d.alloc(1,1),e],m),a(p,m)),y=o(p,a(_,c));return new u(d.concat([d.alloc(1),y,_],r))}(m,e);else if(1===l)f=function(t,e,r){var n,s=e.length,a=t.modulus.byteLength();if(s>a-11)throw new Error("message too long");return n=r?d.alloc(a-s-3,255):function(t){for(var e,r=d.allocUnsafe(t),n=0,s=i(2*t),a=0;n<t;)a===s.length&&(s=i(2*t),a=0),(e=s[a++])&&(r[n++]=e);return r}(a-s-3),new u(d.concat([d.from([0,r?1:2]),n,d.alloc(1),e],a))}(m,e,r);else{if(3!==l)throw new Error("unknown padding");if((f=new u(e)).cmp(m.modulus)>=0)throw new Error("data too long for modulus")}return r?c(f,m):h(f,m)}},(t,e,r)=>{var n=r(206),i=r(202).Buffer;function s(t){var e=i.allocUnsafe(4);return e.writeUInt32BE(t,0),e}t.exports=function(t,e){for(var r,a=i.alloc(0),o=0;a.length<e;)r=s(o++),a=i.concat([a,n("sha1").update(t).update(r).digest()]);return a.slice(0,e)}},t=>{t.exports=function(t,e){for(var r=t.length,n=-1;++n<r;)t[n]^=e[n];return t}},function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function s(t,e,r){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(374).Buffer}catch(t){}function o(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function h(t,e,r,n){for(var i=0,s=Math.min(t.length,r),a=e;a<s;a++){var o=t.charCodeAt(a)-48;i*=n,i+=o>=49?o-49+10:o>=17?o-17+10:o}return i}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},s.prototype._initNumber=function(t,e,r){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"===r&&this._initArray(this.toArray(),e,r)},s.prototype._initArray=function(t,e,r){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 s,a,o=0;if("be"===r)for(i=t.length-1,s=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=a<<o&67108863,this.words[s+1]=a>>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);else if("le"===r)for(i=0,s=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[s]|=a<<o&67108863,this.words[s+1]=a>>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,s=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=u(t,e,n)<<s,this.words[a]|=67108863&i,s>=18?(s-=18,a+=1,this.words[a]|=i>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)i=u(t,e,n)<<s,this.words[a]|=67108863&i,s>=18?(s-=18,a+=1,this.words[a]|=i>>>26):s+=8;this.strip()},s.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,a=s%n,o=Math.min(s,s-a)+r,u=0,c=r;c<o;c+=n)u=h(t,c,c+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var d=1;for(u=h(t,c,t.length,e),c=0;c<a;c++)d*=e;this.imuln(d),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},s.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},s.prototype.clone=function(){var t=new s(null);return this.copy(t),t},s.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","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"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],a=i*s,o=67108863&a,u=a/67108864|0;r.words[0]=o;for(var h=1;h<n;h++){for(var c=u>>>26,d=67108863&u,l=Math.min(h,e.length-1),f=Math.max(0,h-t.length+1);f<=l;f++){var m=h-f|0;c+=(a=(i=0|t.words[m])*(s=0|e.words[f])+d)/67108864|0,d=67108863&a}r.words[h]=0|d,u=0|c}return 0!==u?r.words[h]=0|u:r.length--,r.strip()}s.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,s=0,a=0;a<this.length;a++){var o=this.words[a],u=(16777215&(o<<i|s)).toString(16);r=0!=(s=o>>>24-i&16777215)||a!==this.length-1?c[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==s&&(r=s.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var h=d[t],f=l[t];r="";var m=this.clone();for(m.negative=0;!m.isZero();){var p=m.modn(f).toString(t);r=(m=m.idivn(f)).isZero()?p+r:c[h-p.length]+p+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.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},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==a),this.toArrayLike(a,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var a,o,u="le"===e,h=new t(s),c=this.clone();if(u){for(o=0;!c.isZero();o++)a=c.andln(255),c.iushrn(8),h[o]=a;for(;o<s;o++)h[o]=0}else{for(o=0;o<s-i;o++)h[o]=0;for(o=0;!c.isZero();o++)a=c.andln(255),c.iushrn(8),h[s-o-1]=a}return h},Math.clz32?s.prototype._countBits=function(t){return 32-Math.clz32(t)}:s.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},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 8191&e||(r+=13,e>>>=13),127&e||(r+=7,e>>>=7),15&e||(r+=4,e>>>=4),3&e||(r+=2,e>>>=2),1&e||r++,r},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},s.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},s.prototype.ior=function(t){return n(!(this.negative|t.negative)),this.iuor(t)},s.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},s.prototype.iand=function(t){return n(!(this.negative|t.negative)),this.iuand(t)},s.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},s.prototype.ixor=function(t){return n(!(this.negative|t.negative)),this.iuxor(t)},s.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.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()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},s.prototype.iadd=function(t){var e,r,n;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?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s<n.length;s++)e=(0|r.words[s])+(0|n.words[s])+i,this.words[s]=67108863&e,i=e>>>26;for(;0!==i&&s<r.length;s++)e=(0|r.words[s])+i,this.words[s]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this},s.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)},s.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 r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,a=0;a<n.length;a++)s=(e=(0|r.words[a])-(0|n.words[a])+s)>>26,this.words[a]=67108863&e;for(;0!==s&&a<r.length;a++)s=(e=(0|r.words[a])+s)>>26,this.words[a]=67108863&e;if(0===s&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(t){return this.clone().isub(t)};var m=function(t,e,r){var n,i,s,a=t.words,o=e.words,u=r.words,h=0,c=0|a[0],d=8191&c,l=c>>>13,f=0|a[1],m=8191&f,p=f>>>13,_=0|a[2],y=8191&_,v=_>>>13,g=0|a[3],b=8191&g,M=g>>>13,w=0|a[4],k=8191&w,L=w>>>13,S=0|a[5],x=8191&S,Y=S>>>13,T=0|a[6],D=8191&T,E=T>>>13,j=0|a[7],A=8191&j,O=j>>>13,P=0|a[8],R=8191&P,H=P>>>13,I=0|a[9],C=8191&I,N=I>>>13,B=0|o[0],q=8191&B,F=B>>>13,U=0|o[1],z=8191&U,W=U>>>13,J=0|o[2],G=8191&J,K=J>>>13,V=0|o[3],Z=8191&V,$=V>>>13,X=0|o[4],Q=8191&X,tt=X>>>13,et=0|o[5],rt=8191&et,nt=et>>>13,it=0|o[6],st=8191&it,at=it>>>13,ot=0|o[7],ut=8191&ot,ht=ot>>>13,ct=0|o[8],dt=8191&ct,lt=ct>>>13,ft=0|o[9],mt=8191&ft,pt=ft>>>13;r.negative=t.negative^e.negative,r.length=19;var _t=(h+(n=Math.imul(d,q))|0)+((8191&(i=(i=Math.imul(d,F))+Math.imul(l,q)|0))<<13)|0;h=((s=Math.imul(l,F))+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(m,q),i=(i=Math.imul(m,F))+Math.imul(p,q)|0,s=Math.imul(p,F);var yt=(h+(n=n+Math.imul(d,z)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(l,z)|0))<<13)|0;h=((s=s+Math.imul(l,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,q),i=(i=Math.imul(y,F))+Math.imul(v,q)|0,s=Math.imul(v,F),n=n+Math.imul(m,z)|0,i=(i=i+Math.imul(m,W)|0)+Math.imul(p,z)|0,s=s+Math.imul(p,W)|0;var vt=(h+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(l,G)|0))<<13)|0;h=((s=s+Math.imul(l,K)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(b,q),i=(i=Math.imul(b,F))+Math.imul(M,q)|0,s=Math.imul(M,F),n=n+Math.imul(y,z)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(v,z)|0,s=s+Math.imul(v,W)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,K)|0)+Math.imul(p,G)|0,s=s+Math.imul(p,K)|0;var gt=(h+(n=n+Math.imul(d,Z)|0)|0)+((8191&(i=(i=i+Math.imul(d,$)|0)+Math.imul(l,Z)|0))<<13)|0;h=((s=s+Math.imul(l,$)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(k,q),i=(i=Math.imul(k,F))+Math.imul(L,q)|0,s=Math.imul(L,F),n=n+Math.imul(b,z)|0,i=(i=i+Math.imul(b,W)|0)+Math.imul(M,z)|0,s=s+Math.imul(M,W)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(v,G)|0,s=s+Math.imul(v,K)|0,n=n+Math.imul(m,Z)|0,i=(i=i+Math.imul(m,$)|0)+Math.imul(p,Z)|0,s=s+Math.imul(p,$)|0;var bt=(h+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,tt)|0)+Math.imul(l,Q)|0))<<13)|0;h=((s=s+Math.imul(l,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,F))+Math.imul(Y,q)|0,s=Math.imul(Y,F),n=n+Math.imul(k,z)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(L,z)|0,s=s+Math.imul(L,W)|0,n=n+Math.imul(b,G)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(M,G)|0,s=s+Math.imul(M,K)|0,n=n+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(v,Z)|0,s=s+Math.imul(v,$)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(p,Q)|0,s=s+Math.imul(p,tt)|0;var Mt=(h+(n=n+Math.imul(d,rt)|0)|0)+((8191&(i=(i=i+Math.imul(d,nt)|0)+Math.imul(l,rt)|0))<<13)|0;h=((s=s+Math.imul(l,nt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,F))+Math.imul(E,q)|0,s=Math.imul(E,F),n=n+Math.imul(x,z)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(Y,z)|0,s=s+Math.imul(Y,W)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(L,G)|0,s=s+Math.imul(L,K)|0,n=n+Math.imul(b,Z)|0,i=(i=i+Math.imul(b,$)|0)+Math.imul(M,Z)|0,s=s+Math.imul(M,$)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(v,Q)|0,s=s+Math.imul(v,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(p,rt)|0,s=s+Math.imul(p,nt)|0;var wt=(h+(n=n+Math.imul(d,st)|0)|0)+((8191&(i=(i=i+Math.imul(d,at)|0)+Math.imul(l,st)|0))<<13)|0;h=((s=s+Math.imul(l,at)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,F))+Math.imul(O,q)|0,s=Math.imul(O,F),n=n+Math.imul(D,z)|0,i=(i=i+Math.imul(D,W)|0)+Math.imul(E,z)|0,s=s+Math.imul(E,W)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(Y,G)|0,s=s+Math.imul(Y,K)|0,n=n+Math.imul(k,Z)|0,i=(i=i+Math.imul(k,$)|0)+Math.imul(L,Z)|0,s=s+Math.imul(L,$)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,Q)|0,s=s+Math.imul(M,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(v,rt)|0,s=s+Math.imul(v,nt)|0,n=n+Math.imul(m,st)|0,i=(i=i+Math.imul(m,at)|0)+Math.imul(p,st)|0,s=s+Math.imul(p,at)|0;var kt=(h+(n=n+Math.imul(d,ut)|0)|0)+((8191&(i=(i=i+Math.imul(d,ht)|0)+Math.imul(l,ut)|0))<<13)|0;h=((s=s+Math.imul(l,ht)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,F))+Math.imul(H,q)|0,s=Math.imul(H,F),n=n+Math.imul(A,z)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(O,z)|0,s=s+Math.imul(O,W)|0,n=n+Math.imul(D,G)|0,i=(i=i+Math.imul(D,K)|0)+Math.imul(E,G)|0,s=s+Math.imul(E,K)|0,n=n+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,$)|0)+Math.imul(Y,Z)|0,s=s+Math.imul(Y,$)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(L,Q)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(M,rt)|0,s=s+Math.imul(M,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,at)|0)+Math.imul(v,st)|0,s=s+Math.imul(v,at)|0,n=n+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ht)|0)+Math.imul(p,ut)|0,s=s+Math.imul(p,ht)|0;var Lt=(h+(n=n+Math.imul(d,dt)|0)|0)+((8191&(i=(i=i+Math.imul(d,lt)|0)+Math.imul(l,dt)|0))<<13)|0;h=((s=s+Math.imul(l,lt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(C,q),i=(i=Math.imul(C,F))+Math.imul(N,q)|0,s=Math.imul(N,F),n=n+Math.imul(R,z)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(H,z)|0,s=s+Math.imul(H,W)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(O,G)|0,s=s+Math.imul(O,K)|0,n=n+Math.imul(D,Z)|0,i=(i=i+Math.imul(D,$)|0)+Math.imul(E,Z)|0,s=s+Math.imul(E,$)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(Y,Q)|0,s=s+Math.imul(Y,tt)|0,n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(L,rt)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(b,st)|0,i=(i=i+Math.imul(b,at)|0)+Math.imul(M,st)|0,s=s+Math.imul(M,at)|0,n=n+Math.imul(y,ut)|0,i=(i=i+Math.imul(y,ht)|0)+Math.imul(v,ut)|0,s=s+Math.imul(v,ht)|0,n=n+Math.imul(m,dt)|0,i=(i=i+Math.imul(m,lt)|0)+Math.imul(p,dt)|0,s=s+Math.imul(p,lt)|0;var St=(h+(n=n+Math.imul(d,mt)|0)|0)+((8191&(i=(i=i+Math.imul(d,pt)|0)+Math.imul(l,mt)|0))<<13)|0;h=((s=s+Math.imul(l,pt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,W))+Math.imul(N,z)|0,s=Math.imul(N,W),n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(H,G)|0,s=s+Math.imul(H,K)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(O,Z)|0,s=s+Math.imul(O,$)|0,n=n+Math.imul(D,Q)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(E,Q)|0,s=s+Math.imul(E,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(Y,rt)|0,s=s+Math.imul(Y,nt)|0,n=n+Math.imul(k,st)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,at)|0,n=n+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(M,ut)|0,s=s+Math.imul(M,ht)|0,n=n+Math.imul(y,dt)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(v,dt)|0,s=s+Math.imul(v,lt)|0;var xt=(h+(n=n+Math.imul(m,mt)|0)|0)+((8191&(i=(i=i+Math.imul(m,pt)|0)+Math.imul(p,mt)|0))<<13)|0;h=((s=s+Math.imul(p,pt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(C,G),i=(i=Math.imul(C,K))+Math.imul(N,G)|0,s=Math.imul(N,K),n=n+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(H,Z)|0,s=s+Math.imul(H,$)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(O,Q)|0,s=s+Math.imul(O,tt)|0,n=n+Math.imul(D,rt)|0,i=(i=i+Math.imul(D,nt)|0)+Math.imul(E,rt)|0,s=s+Math.imul(E,nt)|0,n=n+Math.imul(x,st)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(Y,st)|0,s=s+Math.imul(Y,at)|0,n=n+Math.imul(k,ut)|0,i=(i=i+Math.imul(k,ht)|0)+Math.imul(L,ut)|0,s=s+Math.imul(L,ht)|0,n=n+Math.imul(b,dt)|0,i=(i=i+Math.imul(b,lt)|0)+Math.imul(M,dt)|0,s=s+Math.imul(M,lt)|0;var Yt=(h+(n=n+Math.imul(y,mt)|0)|0)+((8191&(i=(i=i+Math.imul(y,pt)|0)+Math.imul(v,mt)|0))<<13)|0;h=((s=s+Math.imul(v,pt)|0)+(i>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,n=Math.imul(C,Z),i=(i=Math.imul(C,$))+Math.imul(N,Z)|0,s=Math.imul(N,$),n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(H,Q)|0,s=s+Math.imul(H,tt)|0,n=n+Math.imul(A,rt)|0,i=(i=i+Math.imul(A,nt)|0)+Math.imul(O,rt)|0,s=s+Math.imul(O,nt)|0,n=n+Math.imul(D,st)|0,i=(i=i+Math.imul(D,at)|0)+Math.imul(E,st)|0,s=s+Math.imul(E,at)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ht)|0)+Math.imul(Y,ut)|0,s=s+Math.imul(Y,ht)|0,n=n+Math.imul(k,dt)|0,i=(i=i+Math.imul(k,lt)|0)+Math.imul(L,dt)|0,s=s+Math.imul(L,lt)|0;var Tt=(h+(n=n+Math.imul(b,mt)|0)|0)+((8191&(i=(i=i+Math.imul(b,pt)|0)+Math.imul(M,mt)|0))<<13)|0;h=((s=s+Math.imul(M,pt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(C,Q),i=(i=Math.imul(C,tt))+Math.imul(N,Q)|0,s=Math.imul(N,tt),n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(H,rt)|0,s=s+Math.imul(H,nt)|0,n=n+Math.imul(A,st)|0,i=(i=i+Math.imul(A,at)|0)+Math.imul(O,st)|0,s=s+Math.imul(O,at)|0,n=n+Math.imul(D,ut)|0,i=(i=i+Math.imul(D,ht)|0)+Math.imul(E,ut)|0,s=s+Math.imul(E,ht)|0,n=n+Math.imul(x,dt)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(Y,dt)|0,s=s+Math.imul(Y,lt)|0;var Dt=(h+(n=n+Math.imul(k,mt)|0)|0)+((8191&(i=(i=i+Math.imul(k,pt)|0)+Math.imul(L,mt)|0))<<13)|0;h=((s=s+Math.imul(L,pt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(C,rt),i=(i=Math.imul(C,nt))+Math.imul(N,rt)|0,s=Math.imul(N,nt),n=n+Math.imul(R,st)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(H,st)|0,s=s+Math.imul(H,at)|0,n=n+Math.imul(A,ut)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(O,ut)|0,s=s+Math.imul(O,ht)|0,n=n+Math.imul(D,dt)|0,i=(i=i+Math.imul(D,lt)|0)+Math.imul(E,dt)|0,s=s+Math.imul(E,lt)|0;var Et=(h+(n=n+Math.imul(x,mt)|0)|0)+((8191&(i=(i=i+Math.imul(x,pt)|0)+Math.imul(Y,mt)|0))<<13)|0;h=((s=s+Math.imul(Y,pt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(C,st),i=(i=Math.imul(C,at))+Math.imul(N,st)|0,s=Math.imul(N,at),n=n+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ht)|0)+Math.imul(H,ut)|0,s=s+Math.imul(H,ht)|0,n=n+Math.imul(A,dt)|0,i=(i=i+Math.imul(A,lt)|0)+Math.imul(O,dt)|0,s=s+Math.imul(O,lt)|0;var jt=(h+(n=n+Math.imul(D,mt)|0)|0)+((8191&(i=(i=i+Math.imul(D,pt)|0)+Math.imul(E,mt)|0))<<13)|0;h=((s=s+Math.imul(E,pt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(C,ut),i=(i=Math.imul(C,ht))+Math.imul(N,ut)|0,s=Math.imul(N,ht),n=n+Math.imul(R,dt)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(H,dt)|0,s=s+Math.imul(H,lt)|0;var At=(h+(n=n+Math.imul(A,mt)|0)|0)+((8191&(i=(i=i+Math.imul(A,pt)|0)+Math.imul(O,mt)|0))<<13)|0;h=((s=s+Math.imul(O,pt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(C,dt),i=(i=Math.imul(C,lt))+Math.imul(N,dt)|0,s=Math.imul(N,lt);var Ot=(h+(n=n+Math.imul(R,mt)|0)|0)+((8191&(i=(i=i+Math.imul(R,pt)|0)+Math.imul(H,mt)|0))<<13)|0;h=((s=s+Math.imul(H,pt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863;var Pt=(h+(n=Math.imul(C,mt))|0)+((8191&(i=(i=Math.imul(C,pt))+Math.imul(N,mt)|0))<<13)|0;return h=((s=Math.imul(N,pt))+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,u[0]=_t,u[1]=yt,u[2]=vt,u[3]=gt,u[4]=bt,u[5]=Mt,u[6]=wt,u[7]=kt,u[8]=Lt,u[9]=St,u[10]=xt,u[11]=Yt,u[12]=Tt,u[13]=Dt,u[14]=Et,u[15]=jt,u[16]=At,u[17]=Ot,u[18]=Pt,0!==h&&(u[19]=h,r.length++),r};function p(t,e,r){return(new _).mulp(t,e,r)}function _(t,e){this.x=t,this.y=e}Math.imul||(m=f),s.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?m(this,t,e):n<63?f(this,t,e):n<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s<r.length-1;s++){var a=i;i=0;for(var o=67108863&n,u=Math.min(s,e.length-1),h=Math.max(0,s-t.length+1);h<=u;h++){var c=s-h,d=(0|t.words[c])*(0|e.words[h]),l=67108863&d;o=67108863&(l=l+o|0),i+=(a=(a=a+(d/67108864|0)|0)+(l>>>26)|0)>>>26,a&=67108863}r.words[s]=o,n=a,a=i}return 0!==n?r.words[s]=n:r.length--,r.strip()}(this,t,e):p(this,t,e),r},_.prototype.makeRBT=function(t){for(var e=new Array(t),r=s.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,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,i,s){for(var a=0;a<s;a++)n[a]=e[t[a]],i[a]=r[t[a]]},_.prototype.transform=function(t,e,r,n,i,s){this.permute(s,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var o=a<<1,u=Math.cos(2*Math.PI/o),h=Math.sin(2*Math.PI/o),c=0;c<i;c+=o)for(var d=u,l=h,f=0;f<a;f++){var m=r[c+f],p=n[c+f],_=r[c+f+a],y=n[c+f+a],v=d*_-l*y;y=d*y+l*_,_=v,r[c+f]=m+_,n[c+f]=p+y,r[c+f+a]=m-_,n[c+f+a]=p-y,f!==o&&(v=u*d-h*l,l=u*l+h*d,d=v)}},_.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 n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},_.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},_.prototype.convert13b=function(t,e,r,i){for(var s=0,a=0;a<e;a++)s+=0|t[a],r[2*a]=8191&s,s>>>=13,r[2*a+1]=8191&s,s>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===s),n(!(-8192&s))},_.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},_.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),s=this.stub(n),a=new Array(n),o=new Array(n),u=new Array(n),h=new Array(n),c=new Array(n),d=new Array(n),l=r.words;l.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,h,n),this.transform(a,s,o,u,n,i),this.transform(h,s,c,d,n,i);for(var f=0;f<n;f++){var m=o[f]*c[f]-u[f]*d[f];u[f]=o[f]*d[f]+u[f]*c[f],o[f]=m}return this.conjugate(o,u,n),this.transform(o,u,l,s,n,i),this.conjugate(l,s,n),this.normalize13b(l,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},s.prototype.mul=function(t){var e=new s(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},s.prototype.mulf=function(t){var e=new s(null);return e.words=new Array(this.length+t.length),p(this,t,e)},s.prototype.imul=function(t){return this.clone().mulTo(t,this)},s.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,s=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=s>>>26,this.words[r]=67108863&s}return 0!==e&&(this.words[r]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.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,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}(t);if(0===e.length)return new s(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},s.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var o=this.words[e]&s,u=(0|this.words[e])-o<<r;this.words[e]=u|a,a=o>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},s.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},s.prototype.iushrn=function(t,e,r){var i;n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var s=t%26,a=Math.min((t-s)/26,this.length),o=67108863^67108863>>>s<<s,u=r;if(i-=a,i=Math.max(0,i),u){for(var h=0;h<a;h++)u.words[h]=this.words[h];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,h=0;h<this.length;h++)this.words[h]=this.words[h+a];else this.words[0]=0,this.length=1;var c=0;for(h=this.length-1;h>=0&&(0!==c||h>=i);h--){var d=0|this.words[h];this.words[h]=c<<26-s|d>>>s,c=d&o}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r||!(this.words[r]&i))},s.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},s.prototype.maskn=function(t){return this.clone().imaskn(t)},s.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)},s.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.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 e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},s.prototype.addn=function(t){return this.clone().iaddn(t)},s.prototype.subn=function(t){return this.clone().isubn(t)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(t,e,r){var i,s,a=t.length+r;this._expand(a);var o=0;for(i=0;i<t.length;i++){s=(0|this.words[i+r])+o;var u=(0|t.words[i])*e;o=((s-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&s}for(;i<this.length-r;i++)o=(s=(0|this.words[i+r])+o)>>26,this.words[i+r]=67108863&s;if(0===o)return this.strip();for(n(-1===o),o=0,i=0;i<this.length;i++)o=(s=-(0|this.words[i])+o)>>26,this.words[i]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!=(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var o,u=n.length-i.length;if("mod"!==e){(o=new s(null)).length=u+1,o.words=new Array(o.length);for(var h=0;h<o.length;h++)o.words[h]=0}var c=n.clone()._ishlnsubmul(i,1,u);0===c.negative&&(n=c,o&&(o.words[u]=1));for(var d=u-1;d>=0;d--){var l=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,d);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);o&&(o.words[d]=l)}return o&&o.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:o||null,mod:n}},s.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(o=this.neg().divmod(t,e),"mod"!==e&&(i=o.div.neg()),"div"!==e&&(a=o.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(o=this.divmod(t.neg(),e),"mod"!==e&&(i=o.div.neg()),{div:i,mod:o.mod}):this.negative&t.negative?(o=this.neg().divmod(t.neg(),e),"div"!==e&&(a=o.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:o.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,o},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.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),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new s(1),a=new s(0),o=new s(0),u=new s(1),h=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++h;for(var c=r.clone(),d=e.clone();!e.isZero();){for(var l=0,f=1;!(e.words[0]&f)&&l<26;++l,f<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var m=0,p=1;!(r.words[0]&p)&&m<26;++m,p<<=1);if(m>0)for(r.iushrn(m);m-- >0;)(o.isOdd()||u.isOdd())&&(o.iadd(c),u.isub(d)),o.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(o),a.isub(u)):(r.isub(e),o.isub(i),u.isub(a))}return{a:o,b:u,gcd:r.iushln(h)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new s(1),o=new s(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var h=0,c=1;!(e.words[0]&c)&&h<26;++h,c<<=1);if(h>0)for(e.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var d=0,l=1;!(r.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(r.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(o)):(r.isub(e),o.isub(a))}return(i=0===e.cmpn(1)?a:o).cmpn(0)<0&&i.iadd(t),i},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return!(1&this.words[0])},s.prototype.isOdd=function(){return!(1&~this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var s=i,a=r;0!==s&&a<this.length;a++){var o=0|this.words[a];s=(o+=s)>>>26,o&=67108863,this.words[a]=o}return 0!==s&&(this.words[a]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.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 i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},s.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},s.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new k(t)},s.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)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"==typeof t){var e=s._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 L(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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)}v.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.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},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},i(g,v),g.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var s=t.words[9];for(e.words[e.length++]=s&r,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&r)<<4|s>>>22,s=a}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},g.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(b,v),i(M,v),i(w,v),w.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new g;else if("p224"===t)e=new b;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new w}return y[t]=e,e},k.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){n(!(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new s(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var o=new s(1).toRed(this),u=o.redNeg(),h=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new s(2*c*c).toRed(this);0!==this.pow(c,h).cmp(u);)c.redIAdd(u);for(var d=this.pow(c,i),l=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),m=a;0!==f.cmp(o);){for(var p=f,_=0;0!==p.cmp(o);_++)p=p.redSqr();n(_<m);var y=this.pow(d,new s(1).iushln(m-_-1));l=l.redMul(y),d=y.redSqr(),f=f.redMul(d),m=_}return l},k.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},k.prototype.pow=function(t,e){if(e.isZero())return new s(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new s(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,o=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var h=e.words[n],c=u-1;c>=0;c--){var d=h>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4==++o||0===n&&0===c)&&(i=this.mul(i,r[a]),o=0,a=0)):o=0}u=26}return i},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new L(t)},i(L,k),L.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},L.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},L.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},L.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},L.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},()=>{},(t,e,r)=>{var n=r(373),i=r(202).Buffer;t.exports=function(t,e){return i.from(t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed().toArray())}},(t,e,r)=>{var n=r(342),i=r(371),s=r(372),a=r(373),o=r(307),u=r(206),h=r(375),c=r(202).Buffer;t.exports=function(t,e,r){var d;d=t.padding?t.padding:r?1:4;var l,f=n(t),m=f.modulus.byteLength();if(e.length>m||new a(e).cmp(f.modulus)>=0)throw new Error("decryption error");l=r?h(new a(e),f):o(e,f);var p=c.alloc(m-l.length);if(l=c.concat([p,l],m),4===d)return function(t,e){var r=t.modulus.byteLength(),n=u("sha1").update(c.alloc(0)).digest(),a=n.length;if(0!==e[0])throw new Error("decryption error");var o=e.slice(1,a+1),h=e.slice(a+1),d=s(o,i(h,a)),l=s(h,i(d,r-a-1));if(function(t,e){t=c.from(t),e=c.from(e);var r=0,n=t.length;t.length!==e.length&&(r++,n=Math.min(t.length,e.length));for(var i=-1;++i<n;)r+=t[i]^e[i];return r}(n,l.slice(0,a)))throw new Error("decryption error");for(var f=a;0===l[f];)f++;if(1!==l[f++])throw new Error("decryption error");return l.slice(f)}(f,l);if(1===d)return function(t,e,r){for(var n=e.slice(0,2),i=2,s=0;0!==e[i++];)if(i>=e.length){s++;break}var a=e.slice(2,i-1);if(("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&s++,a.length<8&&s++,s)throw new Error("decryption error");return e.slice(i)}(0,l,r);if(3===d)return l;throw new Error("unknown padding")}},(t,e,r)=>{"use strict";var n=r(6);function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var s=r(202),a=r(201),o=s.Buffer,u=s.kMaxLength,h=r.g.crypto||r.g.msCrypto,c=Math.pow(2,32)-1;function d(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(t>c||t<0)throw new TypeError("offset must be a uint32");if(t>u||t>e)throw new RangeError("offset out of range")}function l(t,e,r){if("number"!=typeof t||t!=t)throw new TypeError("size must be a number");if(t>c||t<0)throw new TypeError("size must be a uint32");if(t+e>r||t>u)throw new RangeError("buffer too small")}function f(t,e,r,i){if(n.browser){var s=t.buffer,o=new Uint8Array(s,e,r);return h.getRandomValues(o),i?void n.nextTick((function(){i(null,t)})):t}if(!i)return a(r).copy(t,e),t;a(r,(function(r,n){if(r)return i(r);n.copy(t,e),i(null,t)}))}h&&h.getRandomValues||!n.browser?(e.randomFill=function(t,e,n,i){if(!(o.isBuffer(t)||t instanceof r.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof e)i=e,e=0,n=t.length;else if("function"==typeof n)i=n,n=t.length-e;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return d(e,t.length),l(n,e,t.length),f(t,e,n,i)},e.randomFillSync=function(t,e,n){if(void 0===e&&(e=0),!(o.isBuffer(t)||t instanceof r.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return d(e,t.length),void 0===n&&(n=t.length-e),l(n,e,t.length),f(t,e,n)}):(e.randomFill=i,e.randomFillSync=i)},(t,e,r)=>{"use strict";r.r(e),r.d(e,{CheckScreenDirection:()=>m,CheckVerifyCode:()=>v,ConfigChannel:()=>g,ConfigChannelRTC:()=>b,ExexuteCloseServer:()=>Y,ExexuteKeyDown:()=>h,ExexuteMouseDown:()=>c,ExexuteMouseMove:()=>d,ExexuteMouseUp:()=>l,ExexuteSendBitRate:()=>u,ExexuteSetAccountTransparent:()=>a,ExexuteSetPhoneSize:()=>o,GetEmptyFrame:()=>p,GetScreenState:()=>_,OpenFileLog:()=>M,PrintArry:()=>i,RequestIFrame:()=>x,VerifyCode:()=>y,calBcc:()=>n,checkMultiLoginInfo:()=>L,fpsSet:()=>T,makeFrame:()=>s,makeFrameExtend:()=>f,makeMultiLogin:()=>w,makeSharpness:()=>S,makeStatistics:()=>k}),r(4);var n=function(t){for(var e=0,r=0;r<t.length;r++)e^=t[r];return e},i=function(t){for(var e="",r=0;r<t.length;r++)e+=t[r].toString(16).padStart(2,"0");return e.toUpperCase()},s=function(t,e,r){var i=0,s=r.length,a=s+26,o=new Uint8Array(a);o[i++]=104,o[i++]=(4278190080&s)>>24,o[i++]=(16711680&s)>>16,o[i++]=(65280&s)>>8,o[i++]=255&s,o[i++]=0;for(var u=0;u<t.length;u++)o[i++]=t[u].charCodeAt();o[i++]=e;for(var h=0;h<r.length;h++)o[i++]=r[h].charCodeAt();var c=o.slice(1,a-3+1);return o[i++]=n(c),o[i++]=22,o},a=function(t,e){var r={event:"passthrough",data:{common_game_event_key:"login_event",common_game_data_key:{uid:t,token:e}}};return JSON.stringify(r)},o=function(t,e){var r={data:{width:t,height:e},type:"setPhoneSize"};return JSON.stringify(r)},u=function(t){var e={data:{definition:t},type:"2"};return JSON.stringify(e)},h=function(t){var e={data:{keyCode:t},type:"keyCode"};return JSON.stringify(e)},c=function(t,e,r,n,i,s,a){var o={data:[{action:0===i?0:i<<8|5,count:n,id:i,x:t,y:e}],w:Math.floor(s),h:Math.floor(a),type:"event"};return JSON.stringify(o)},d=function(t,e,r,n,i,s,a){var o={data:[{action:2,count:n,id:i,x:t,y:e}],w:Math.floor(s),h:Math.floor(a),type:"event"};return JSON.stringify(o)},l=function(t,e,r,n,i,s,a){var o={data:[{action:0===i?1:i<<8|6,count:n,id:i,x:t,y:e}],w:Math.floor(s),h:Math.floor(a),type:"event"};return JSON.stringify(o)},f=function(t,e,r){var i=0,s=r.length,a=s+26,o=new Uint8Array(a);o[i++]=104,o[i++]=(4278190080&s)>>24,o[i++]=(16711680&s)>>16,o[i++]=(65280&s)>>8,o[i++]=255&s,o[i++]=0;for(var u=0;u<t.length;u++)o[i++]=t[u].charCodeAt();o[i++]=e;for(var h=0;h<r.length;h++)o[i++]=r[h];var c=o.slice(1,a-3+1);return o[i++]=n(c),o[i++]=22,o},m=function(t){if(0==t[0]&&0==t[1]&&0==t[2]&&1==t[3]&&1==t[4]&&1==t[5]&&1==t[6])return t[7]},p=function(){return new Uint8Array([255,241,80,128,18,95,252,33,26,200,1,39,252,192,0,126,3,16,64,99,61,119,226,182,227,110,0,55,86,120,235,112,171,197,88,8,89,118,240,71,61,35,108,166,43,89,78,156,224,35,28,45,116,203,226,252,119,125,38,19,195,4,64,2,96,246,3,32,128,199,154,17,14,155,218,160,132,0,42,149,74,30,116,165,64,42,202,168,202,240,242,30,168,119,134,160,98,140,184,95,166,103,191,13,39,139,249,88,189,227,45,12,191,72,60,253,112,120,94,169,11,36,156,19,152,164,160,110,202,170,122,136,165,12,46,131,89,2,36,1,65,3,146,16,64,7])},_=function(){var t=new Uint8Array([0,0,0,1,1,1,1,2]);return f("RK3923C1201900139",5,t)},y=function(t,e){var r=e.length+1,n=new TextEncoder("utf-8").encode(e),i=new Uint8Array(r);i[0]=4;for(var s=0;s<n.length;s++)i[s+1]=n[s];return f(t,6,i)},v=function(t){var e=t.length-26,r=t.slice(24,24+e);return i(r),3==r[3]},g=function(t,e){var r=new TextEncoder("utf-8").encode(e),n=[];n.push(7);for(var i=0;i<r.length;i++)n.push(r[i]);return f(t,6,n)},b=function(){var t=new Uint8Array([64]);return f("RK3923C1201900139",6,t)},M=function(t){var e=new Uint8Array([1]);return f(t,7,e)},w=function(t,e){var r={type:3,data:e},n=JSON.stringify(r),i=new TextEncoder("utf-8").encode(n);return f(t,13,i)},k=function(t,e){var r={type:4,data:e},n=JSON.stringify(r),i=new TextEncoder("utf-8").encode(n);return f(t,13,i)},L=function(t){var e=t.length-26,r=t.slice(24,24+e),n=new TextDecoder("utf-8").decode(r);return JSON.parse(n)},S=function(t){var e={};switch(t){case 3:e={type:5,data:{frame_rate:30,init_qp:33,min_qp:10,max_qp:51,resolution_factor:960,definition_level:3,very_low_bitrate:0,low_bitrate:0,standard_bitrate:12e5,high_bitrate:0,super_bitrate:0}};break;case 4:e={type:5,data:{frame_rate:30,init_qp:27,min_qp:10,max_qp:51,resolution_factor:1280,definition_level:4,very_low_bitrate:0,low_bitrate:0,standard_bitrate:0,high_bitrate:24e5,super_bitrate:0}};break;case 5:e={type:5,data:{frame_rate:30,init_qp:23,min_qp:10,max_qp:51,resolution_factor:1600,definition_level:5,very_low_bitrate:0,low_bitrate:0,standard_bitrate:0,high_bitrate:0,super_bitrate:3e6}}}var r=JSON.stringify(e),n=new TextEncoder("utf-8").encode(r);return f("RK3923C1201900139",13,n)},x=function(){var t=new Uint8Array([32]);return f("RK3923C1201900139",6,t)};function Y(t){var e=JSON.stringify({data:{x:"0",y:"0"},type:"closeServer"});return s(t,0,e)}function T(t){var e={type:1,data:{frame_rate:t}},r=JSON.stringify(e),n=new TextEncoder("utf-8").encode(r);return f("RK3923C1201900139",13,n)}},t=>{"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__379__}],__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var r=__webpack_module_cache__[t]={id:t,loaded:!1,exports:{}};return __webpack_modules__[t].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(t,e)=>{for(var r in e)__webpack_require__.o(e,r)&&!__webpack_require__.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.hmd=t=>((t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t),__webpack_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),__webpack_require__.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},__webpack_require__.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CloudGameSdk:()=>c});var t=__webpack_require__(1),e=__webpack_require__(3),r=__webpack_require__.n(e),n=__webpack_require__(196),i=__webpack_require__(198),s=__webpack_require__(378),a=__webpack_require__(4),o=function(t,e,r,n){return new(r||(r=Promise))((function(i,s){function a(t){try{u(n.next(t))}catch(t){s(t)}}function o(t){try{u(n.throw(t))}catch(t){s(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,o)}u((n=n.apply(t,e||[])).next())}))},u=function(t,e){var r,n,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(o){return function(u){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,o[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}},h=(__webpack_require__(379),!1),c=function(){function e(t){this.targetTouchesID=[],this.targetTouchesObj=[],this.changedTouchesData=[],this.pubilcTouchArr=[],this.TouchArr=[],this.version="1.0.0",this.options=t,this.coturnAuthData="",this.chatRecords=[],this.cacheSubscription=[],this.connection={id:t.id||"",name:t.name,host:t.host,port:t.port,url:t.url,monitorHost:t.monitorHost,monitorPort:t.monitorPort,username:"",password:"",token:t.authToken,callback:t.callback}}return e.prototype.connectPlay=function(t){return o(this,void 0,void 0,(function(){return u(this,(function(e){switch(e.label){case 0:return[4,this.mq.conn({name:t.name,host:t.host,port:t.port,url:t.url,username:t.username,password:t.password,token:t.token||"",connectionListener:this.listenConnection.bind(this)})];case 1:return e.sent(),this.open(),this.subscription(),[2]}}))}))},e.prototype.RtcEngine=function(){return o(this,void 0,void 0,(function(){var t,e;return u(this,(function(r){switch(r.label){case 0:return this.disconnect(),t=this.options,this.player&&(this.player=null),this.mq&&(this.mq=null),this.player=new n.default(t),this.mq=new i.default,[4,this.getICEURL(t.ICEServerUrl)];case 1:return e=r.sent(),this.streamParam={codec:"H264 Baseline",bitrate:t.bitrate,width:t.width,height:t.height,fps:t.fps,name:"123456",VideoCallEnabled:!0,AudioCallEnabled:!0,VideoReceiveEnabled:!0,AudioReceiveEnabled:!0,action:"publish",cardWidth:t.cardWidth,cardHeight:t.cardHeight,cardDensity:t.cardDensity,authToken:t.authToken,iceServers:e},this.streamParam,this.publication={topic:t.topic,type:"sub",data:"",color:null},this.subscriptionDat={id:"",color:"#409EFF",topic:t.topic,isSub:!0},this.connection,this.connectPlay(this.connection),[2]}}))}))},e.prototype.getICEURL=function(t){return o(this,void 0,void 0,(function(){var e,r,n,i,s,o,h;return u(this,(function(u){switch(u.label){case 0:e=function(){var e=t.find((function(t){return t.hasOwnProperty("CHINANET-GD")}));if(e){var r=e["CHINANET-GD"];if(r&&""!==r.trim())return r}var n=t.map((function(t){return Object.values(t)[0]})).filter((function(t){return t&&""!==t.trim()}));return n.length>0?n[Math.floor(Math.random()*n.length)]:null},u.label=1;case 1:return u.trys.push([1,4,,5]),[4,fetch("https://14.18.190.138:8044/120.120.120.120",{method:"GET",headers:{"Content-Type":"application/json"}})];case 2:if(!(r=u.sent()).ok)throw new Error("网络响应不是OK");return[4,r.json()];case 3:return n=u.sent(),i=n["Network Name"],(s=t.find((function(t){return t.hasOwnProperty(i)})))&&(o=s[i])&&""!==o.trim()?[2,o]:[2,e()||null];case 4:return h=u.sent(),a.error("Error:",h),[2,e()||null];case 5:return[2]}}))}))},e.prototype.listenConnection=function(t){"function"==typeof this.connection.callback&&this.connection.callback(t),"screenChange"===t.type&&(h=0===t.val)},e.prototype.disconnect=function(){var t=this;this.player&&this.player.close(),this.mq&&(this.mq.pub({action:"unpublished"}),this.cacheSubscription=[],this.streamParam.name="",this.subscriptionDat.topic="",this.cacheSubscription=this.querySubjects(),this.cacheSubscription.forEach((function(e){t.mq.unsub(e.topic)})),this.mq.close())},e.prototype.task=function(){var t=JSON.stringify({type:"keyCode",value:187});this.player&&this.player.channelSenData(t)},e.prototype.home=function(){var t=JSON.stringify({type:"keyCode",value:3});this.player&&this.player.channelSenData(t)},e.prototype.onBack=function(){var t=JSON.stringify({type:"keyCode",value:4});this.player&&this.player.channelSenData(t)},e.prototype.makeBitrate=function(t){var e={type:"maxBitrate",bitrate:t},r=JSON.stringify(e);this.player&&this.player.channelSenData(r)},e.prototype.makeResolution=function(t){var e={type:"setSize",width:t.width,height:t.height,density:t.density},r=JSON.stringify(e);this.player&&this.player.channelSenData(r)},e.prototype.ExexuteKeyBoard=function(t){var e={type:"keyCode",value:t},r=JSON.stringify(e);this.player&&this.player.channelSenData(r)},e.prototype.ExexuteChannel=function(t){this.player&&this.player.channelSenData(t)},e.prototype.openCameraStream=function(t){this.player.openCamera(t)},e.prototype.closeCameraStream=function(){this.player.closeCamera()},e.prototype.getCurrentTime=function(){return r()().format("HH:mm:ss")},e.prototype.pushRecord=function(t){t.type,this.chatRecords.push(t),"sub"===t.type&&this.sub(t.data)},e.prototype.querySubjects=function(){var t=localStorage.getItem(this.connection.id);return t?JSON.parse(t):[]},e.prototype.renderChatWindow=function(e){var r={id:(0,t.nanoid)(),data:e.data,type:e.type,topic:e.topic,color:e.color,time:this.getCurrentTime()};this.pushRecord(r)},e.prototype.start=function(){this.publication.data=JSON.stringify(this.streamParam),this.mq.pub(this.publication.topic+".media."+this.subscriptionDat.topic,this.publication.data),this.renderChatWindow({topic:this.publication.topic+".media."+this.subscriptionDat.topic,type:this.publication.type,data:this.publication.data,color:this.publication.color})},e.prototype.open=function(){this.streamParam.name=(0,t.nanoid)(),this.subscriptionDat.topic=this.streamParam.name,this.addSubscribe(JSON.parse(JSON.stringify(this.subscriptionDat)))},e.prototype.subscription=function(){var t=this;this.querySubjects().forEach((function(e){t.subscribe(e)}))},e.prototype.addSubscribe=function(e){return!(this.querySubjects().filter((function(t){return t.topic===e.topic})).length>0||(e.id=(0,t.nanoid)(),this.cacheSubscription.push(e),this.start(),this.subscribe(e),0))},e.prototype.subscribe=function(t){var e=this;t.isSub&&this.mq.sub(t.topic,(function(r,n){e.renderChatWindow({topic:n.subject,type:"sub",data:r,color:t.color})}))},e.prototype.publish=function(t,e){this.mq.pub(t.topic+".media."+this.subscriptionDat.topic,t.data),this.renderChatWindow({topic:t.topic+".media."+this.subscriptionDat.topic,type:t.type,data:t.data,color:t.color})},e.prototype.sub=function(t){var e=this;"sub:".concat(t);var r=JSON.parse(t);if("coturnAuth"===r.action&&(this.coturnAuthData=r),"offer"===r.action){var n=document.getElementById("playerVideo");this.player.play(n,this.streamParam.name,r.action,r.sdp,this.coturnAuthData,(function(t){e.publication.data=JSON.stringify(t),e.publish(e.publication,e.subscriptionDat.topic)}))}else if("candidate"===r.action){var i={candidate:r.candidate,sdpMid:r.id,sdpMLineIndex:r.label};this.player.setCandidate(i)}},e.prototype.touchClick=function(t,e,r){var n,i,a,o,u=this,c={0:s.ExexuteMouseDown,1:s.ExexuteMouseUp,2:s.ExexuteMouseMove},d=/(Win32|Win16|WinCE|Mac68K|MacIntel|MacIntel|MacPPC|Linux mips64)/i.test(navigator.platform),l=document.getElementById("playerVideo");l.clientWidth,l.clientHeight,t.offsetX,t.offsetY;var f=l.clientHeight,m=l.clientWidth,p="ontouchstart"in window||navigator.maxTouchPoints>0;if(d&&!p){a=t.offsetX,o=t.offsetY;var _=c[e](a.toString(),o.toString(),"RK3923C1201900139",1,0,m,f);this.player&&this.player.channelSenData(_)}else{var y=t.changedTouches,v=[];if(0===t.touches.length&&(this.pubilcTouchArr=[]),0===e||2===e?(Array.from(t.touches).forEach((function(t,e){var r=null==t?void 0:t.identifier,n=u.pubilcTouchArr.find((function(t){return t.identifier===r}));if(n)n.index=e;else{for(var i=0;u.pubilcTouchArr.some((function(t){return t.id===i}));)i++;var s={identifier:r,index:e,id:i,event:t};u.pubilcTouchArr.push(s)}})),this.TouchArr=this.pubilcTouchArr.sort((function(t,e){return t.id-e.id})),this.TouchArr.forEach((function(t,e){t.index=e}))):1===e&&(Array.from(t.changedTouches).forEach((function(t){var e=t.identifier;u.pubilcTouchArr=u.pubilcTouchArr.filter((function(t){return t.identifier!==e}))})),this.pubilcTouchArr.forEach((function(t,e){t.index=e})),this.pubilcTouchArr.sort((function(t,e){return t.id-e.id})).forEach((function(t,e){t.index=e}))),this.changedTouchesData.length)for(var g=0;g<this.changedTouchesData.length;g++){var b={identifier:null===(n=this.changedTouchesData[g])||void 0===n?void 0:n.identifier,index:g,id:g};this.targetTouchesID.push(b)}if(t.changedTouches.length&&t.touches.length)for(g=0;g<this.targetTouchesID.length;g++)this.targetTouchesID[g].identifier===t.changedTouches[0].identifier&&(this.addTouch=this.targetTouchesID[g]);for(g=0;g<y.length;g++){var M=v.findIndex((function(t){return t.identifier===y[g].identifier})),w=y[g].clientX-y[g].target.getBoundingClientRect().x,k=y[g].clientY-y[g].target.getBoundingClientRect().y,L=y[g].target.getBoundingClientRect(),S=y[g].clientY-L.y,x=L.width-(y[g].clientX-L.x);a=h?S:w,o=h?x:k;var Y=(null===(i=this.addTouch)||void 0===i?void 0:i.id)||g;if(this.TouchArr.length>1){var T,D=[];Array.from(this.TouchArr).forEach((function(t,r){var n=t.event.clientX-t.event.target.getBoundingClientRect().x,i=t.event.clientY-t.event.target.getBoundingClientRect().y,s=t.event.target.getBoundingClientRect(),a=t.event.clientY-s.y,o=s.width-(t.event.clientX-s.x),u=h?a:n,c=h?o:i;T=0===e?{action:0===t.index?1:t.index<<8|5,count:1,id:t.id,x:u.toString(),y:c.toString()}:{action:0===t.index?1:t.index<<8|6,count:1,id:t.id,x:u.toString(),y:c.toString()},D.push(T)}));var E={data:D,w:Math.floor(m),h:Math.floor(f),type:"event"},j=JSON.stringify(E);this.player&&this.player.channelSenData(j)}else _=c[e](a.toString(),o.toString(),"RK3923C1201900139",1,Y,m,f),this.player&&this.player.channelSenData(_);M<0&&v.push(y[g]),1===e&&(this.targetTouchesID=[],this.targetTouchesObj=[],this.addTouch="")}}},e.prototype.isMobile=function(){var t=navigator.userAgent;if(/android|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(t))return!0;var e="ontouchstart"in window||navigator.maxTouchPoints>0,r=window.innerWidth<=1080;return e||r},e}()})(),__webpack_exports__})()));