1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2222],{37877:(t,e,r)=>{"use strict";var i=r(14790).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.toBigIntLE=function(t){{let e=i.from(t);e.reverse();let r=e.toString("hex");return 0===r.length?BigInt(0):BigInt(`0x${r}`)}},e.toBigIntBE=function(t){{let e=t.toString("hex");return 0===e.length?BigInt(0):BigInt(`0x${e}`)}},e.toBufferLE=function(t,e){{let r=t.toString(16),n=i.from(r.padStart(2*e,"0").slice(0,2*e),"hex");return n.reverse(),n}},e.toBufferBE=function(t,e){{let r=t.toString(16);return i.from(r.padStart(2*e,"0").slice(0,2*e),"hex")}}},42163:function(t){t.exports=function(){"use strict";var t="millisecond",e="second",r="minute",i="hour",n="week",o="month",s="quarter",u="year",h="date",a="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,l=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(t,e,r){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(r)+t},c="en",p={};p[c]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}};var m="$isDayjsObject",g=function(t){return t instanceof M||!(!t||!t[m])},y=function t(e,r,i){var n;if(!e)return c;if("string"==typeof e){var o=e.toLowerCase();p[o]&&(n=o),r&&(p[o]=r,n=o);var s=e.split("-");if(!n&&s.length>1)return t(s[0])}else{var u=e.name;p[u]=e,n=u}return!i&&n&&(c=n),n||!i&&c},v=function(t,e){if(g(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new M(r)},w={s:d,z:function(t){var e=-t.utcOffset(),r=Math.abs(e);return(e<=0?"+":"-")+d(Math.floor(r/60),2,"0")+":"+d(r%60,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var i=12*(r.year()-e.year())+(r.month()-e.month()),n=e.clone().add(i,o),s=r-n<0,u=e.clone().add(i+(s?-1:1),o);return+(-(i+(r-n)/(s?n-u:u-n))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(a){return({M:o,y:u,w:n,d:"day",D:h,h:i,m:r,s:e,ms:t,Q:s})[a]||String(a||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}};w.l=y,w.i=g,w.w=function(t,e){return v(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var M=function(){function d(t){this.$L=y(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[m]=!0}var c=d.prototype;return c.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(w.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(f);if(i){var n=i[2]-1||0,o=(i[7]||"0").substring(0,3);return r?new Date(Date.UTC(i[1],n,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)):new Date(i[1],n,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)}}return new Date(e)}(t),this.init()},c.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},c.$utils=function(){return w},c.isValid=function(){return this.$d.toString()!==a},c.isSame=function(t,e){var r=v(t);return this.startOf(e)<=r&&r<=this.endOf(e)},c.isAfter=function(t,e){return v(t)<this.startOf(e)},c.isBefore=function(t,e){return this.endOf(e)<v(t)},c.$g=function(t,e,r){return w.u(t)?this[e]:this.set(r,t)},c.unix=function(){return Math.floor(this.valueOf()/1e3)},c.valueOf=function(){return this.$d.getTime()},c.startOf=function(t,s){var a=this,f=!!w.u(s)||s,l=w.p(t),d=function(t,e){var r=w.w(a.$u?Date.UTC(a.$y,e,t):new Date(a.$y,e,t),a);return f?r:r.endOf("day")},c=function(t,e){return w.w(a.toDate()[t].apply(a.toDate("s"),(f?[0,0,0,0]:[23,59,59,999]).slice(e)),a)},p=this.$W,m=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(l){case u:return f?d(1,0):d(31,11);case o:return f?d(1,m):d(0,m+1);case n:var v=this.$locale().weekStart||0,M=(p<v?p+7:p)-v;return d(f?g-M:g+(6-M),m);case"day":case h:return c(y+"Hours",0);case i:return c(y+"Minutes",1);case r:return c(y+"Seconds",2);case e:return c(y+"Milliseconds",3);default:return this.clone()}},c.endOf=function(t){return this.startOf(t,!1)},c.$set=function(n,s){var a,f=w.p(n),l="set"+(this.$u?"UTC":""),d=((a={}).day=l+"Date",a[h]=l+"Date",a[o]=l+"Month",a[u]=l+"FullYear",a[i]=l+"Hours",a[r]=l+"Minutes",a[e]=l+"Seconds",a[t]=l+"Milliseconds",a)[f],
1c="day"===f?this.$D+(s-this.$W):s;if(f===o||f===u){var p=this.clone().set(h,1);p.$d[d](c),p.init(),this.$d=p.set(h,Math.min(this.$D,p.daysInMonth())).$d}else d&&this.$d[d](c);return this.init(),this},c.set=function(t,e){return this.clone().$set(t,e)},c.get=function(t){return this[w.p(t)]()},c.add=function(t,s){var h,a=this;t=Number(t);var f=w.p(s),l=function(e){var r=v(a);return w.w(r.date(r.date()+Math.round(e*t)),a)};if(f===o)return this.set(o,this.$M+t);if(f===u)return this.set(u,this.$y+t);if("day"===f)return l(1);if(f===n)return l(7);var d=((h={})[r]=6e4,h[i]=36e5,h[e]=1e3,h)[f]||1,c=this.$d.getTime()+t*d;return w.w(c,this)},c.subtract=function(t,e){return this.add(-1*t,e)},c.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||a;var i=t||"YYYY-MM-DDTHH:mm:ssZ",n=w.z(this),o=this.$H,s=this.$m,u=this.$M,h=r.weekdays,f=r.months,d=r.meridiem,c=function(t,r,n,o){return t&&(t[r]||t(e,i))||n[r].slice(0,o)},p=function(t){return w.s(o%12||12,t,"0")},m=d||function(t,e,r){var i=t<12?"AM":"PM";return r?i.toLowerCase():i};return i.replace(l,function(t,i){return i||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return w.s(e.$y,4,"0");case"M":return u+1;case"MM":return w.s(u+1,2,"0");case"MMM":return c(r.monthsShort,u,f,3);case"MMMM":return c(f,u);case"D":return e.$D;case"DD":return w.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return c(r.weekdaysMin,e.$W,h,2);case"ddd":return c(r.weekdaysShort,e.$W,h,3);case"dddd":return h[e.$W];case"H":return String(o);case"HH":return w.s(o,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return m(o,s,!0);case"A":return m(o,s,!1);case"m":return String(s);case"mm":return w.s(s,2,"0");case"s":return String(e.$s);case"ss":return w.s(e.$s,2,"0");case"SSS":return w.s(e.$ms,3,"0");case"Z":return n}return null}(t)||n.replace(":","")})},c.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},c.diff=function(t,h,a){var f,l=this,d=w.p(h),c=v(t),p=(c.utcOffset()-this.utcOffset())*6e4,m=this-c,g=function(){return w.m(l,c)};switch(d){case u:f=g()/12;break;case o:f=g();break;case s:f=g()/3;break;case n:f=(m-p)/6048e5;break;case"day":f=(m-p)/864e5;break;case i:f=m/36e5;break;case r:f=m/6e4;break;case e:f=m/1e3;break;default:f=m}return a?f:w.a(f)},c.daysInMonth=function(){return this.endOf(o).$D},c.$locale=function(){return p[this.$L]},c.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),i=y(t,e,!0);return i&&(r.$L=i),r},c.clone=function(){return w.w(this.$d,this)},c.toDate=function(){return new Date(this.valueOf())},c.toJSON=function(){return this.isValid()?this.toISOString():null},c.toISOString=function(){return this.$d.toISOString()},c.toString=function(){return this.$d.toUTCString()},d}(),b=M.prototype;return v.prototype=b,[["$ms",t],["$s",e],["$m",r],["$H",i],["$W","day"],["$M",o],["$y",u],["$D",h]].forEach(function(t){b[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),v.extend=function(t,e){return t.$i||(t(e,M,v),t.$i=!0),v},v.locale=y,v.isDayjs=g,v.unix=function(t){return v(1e3*t)},v.en=p[c],v.Ls=p,v.p={},v}()},56875:function(t,e,r){!function(t,e){"use strict";function i(t,e){if(!t)throw Error(e||"Assertion failed")}function n(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.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"))}"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{l="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(79819).Buffer}catch(t){}function s(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 i(!1,"Invalid character in "+t)}function u(t,e,r){var i=s(t,r);return r-1>=e&&(i|=s(t,r-1)<<4),i}function h(t,e,r,n){for(var o=0,s=0,u=Math.min(t.length,r),h=e;h<u;h++){var a=t.charCodeAt(h)-48;o*=n,s=a>=49?a-49+10:a>=17?a-17+10:a,i(a>=0&&s<n,"Invalid character"),o+=s}return o}function a(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return 0>t.cmp(e)?t:e},o.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);
vendor: 42,986 bytes, line 1
1if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),i(e===(0|e)&&e>=2&&e<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n<t.length&&(16===e?this._parseHex(t,n,r):(this._parseBase(t,e,n),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<0x4000000?(this.words=[0x3ffffff&t],this.length=1):t<0x10000000000000?(this.words=[0x3ffffff&t,t/0x4000000&0x3ffffff],this.length=2):(i(t<0x20000000000000),this.words=[0x3ffffff&t,t/0x4000000&0x3ffffff,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(i("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=Array(this.length);for(var n,o,s=0;s<this.length;s++)this.words[s]=0;var u=0;if("be"===r)for(s=t.length-1,n=0;s>=0;s-=3)o=t[s]|t[s-1]<<8|t[s-2]<<16,this.words[n]|=o<<u&0x3ffffff,this.words[n+1]=o>>>26-u&0x3ffffff,(u+=24)>=26&&(u-=26,n++);else if("le"===r)for(s=0,n=0;s<t.length;s+=3)o=t[s]|t[s+1]<<8|t[s+2]<<16,this.words[n]|=o<<u&0x3ffffff,this.words[n+1]=o>>>26-u&0x3ffffff,(u+=24)>=26&&(u-=26,n++);return this._strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var i,n=0;n<this.length;n++)this.words[n]=0;var o=0,s=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=u(t,e,n)<<o,this.words[s]|=0x3ffffff&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)i=u(t,e,n)<<o,this.words[s]|=0x3ffffff&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=0x3ffffff;n*=e)i++;i--,n=n/e|0;for(var o=t.length-r,s=o%i,u=Math.min(o,o-s)+r,a=0,f=r;f<u;f+=i)a=h(t,f,f+i,e),this.imuln(n),this.words[0]+a<0x4000000?this.words[0]+=a:this._iaddn(a);if(0!==s){var l=1;for(a=h(t,f,t.length,e),f=0;f<s;f++)l*=e;this.imuln(l),this.words[0]+a<0x4000000?this.words[0]+=a:this._iaddn(a)}this._strip()},o.prototype.copy=function(t){t.words=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},o.prototype._move=function(t){a(t,this)},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=f}catch(t){o.prototype.inspect=f}else o.prototype.inspect=f;function f(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var l,d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,0x2000000,0x290d741,0x1000000,0x2e90edd,0x39aa400,0x267bf47,0x1000000,0x290d741,1e7,0x12959c3,0x222c000,0x3bd7765,7529536,0xadcea1,0x1000000,0x1704f61,0x206fc40,0x2cddcf9,64e6,4084101,5153632,6436343,7962624,9765625,0xb54ba0,0xdaf26b,0x1069c00,0x138f9ad,243e5,0x1b4d89f,0x2000000,0x25528a1,0x2b54a20,0x3216b93,0x39aa400];function m(t,e,r){r.negative=e.negative^t.negative;var i=t.length+e.length|0;r.length=i,i=i-1|0;var n=0|t.words[0],o=0|e.words[0],s=n*o,u=0x3ffffff&s,h=s/0x4000000|0;r.words[0]=u;for(var a=1;a<i;a++){for(var f=h>>>26,l=0x3ffffff&h,d=Math.min(a,e.length-1),c=Math.max(0,a-t.length+1);c<=d;c++){var p=a-c|0;f+=(s=(n=0|t.words[p])*(o=0|e.words[c])+l)/0x4000000|0,l=0x3ffffff&s}r.words[a]=0|l,h=0|f}return 0!==h?r.words[a]=0|h:r.length--,r._strip()}o.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){for(var r="",n=0,o=0,s=0;s<this.length;s++){var u=this.words[s],h=((u<<n|o)&0xffffff).toString(16);o=u>>>24-n&0xffffff,(n+=2)>=26&&(n-=26,s--),r=0!==o||s!==this.length-1?d[6-h.length]+h+r:h+r}for(0!==o&&(r=o.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 a=c[t],f=p[t];r="";var l=this.clone();for(l.negative=0;!l.isZero();){var m=l.modrn(f).toString(t);r=(l=l.idivn(f)).isZero()?m+r:d[a-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?t+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},l&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(l,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){this._strip();var n=this.byteLength(),o=r||Math.max(1,n);i(n<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0");var s=t.allocUnsafe?t.allocUnsafe(o):new t(o);return this["_toArrayLike"+("le"===e?"LE":"BE")](s,n),s},o.prototype._toArrayLikeLE=function(t,e){for(var r=0,i=0,n=0,o=0;n<this.length;n++){var s=this.words[n]<<o|i;t[r++]=255&s,r<t.length&&(t[r++]=s>>8&255),r<t.length&&(t[r++]=s>>16&255),6===o?(r<t.length&&(t[r++]=s>>24&255),i=0,o=0):(i=s>>>24,o+=2)}if(r<t.length)for(t[r++]=i;r<t.length;)t[r++]=0},o.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,i=0,n=0,o=0;n<this.length;n++){var s=this.words[n]<<o|i;t[r--]=255&s,r>=0&&(t[r--]=s>>8&255),r>=0&&(t[r--]=s>>16&255),6===o?(r>=0&&(t[r--]=s>>24&255),i=0,o=0):(i=s>>>24,o+=2)}if(r>=0)for(t[r--]=i;r>=0;)t[r--]=0},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.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},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return(8191&e)==0&&(r+=13,e>>>=13),(127&e)==0&&(r+=7,e>>>=7),(15&e)==0&&(r+=4,e>>>=4),(3&e)==0&&(r+=2,e>>>=2),(1&e)==0&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return(this.length-1)*26+e},o.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},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},o.prototype.ior=function(t){return i((this.negative|t.negative)==0),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var 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()},o.prototype.iand=function(t){return i((this.negative|t.negative)==0),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){this.length>t.length?(e=this,r=t):(e=t,r=this);for(var e,r,i=0;i<r.length;i++)this.words[i]=e.words[i]^r.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this._strip()},o.prototype.ixor=function(t){return i((this.negative|t.negative)==0),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){i("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var n=0;n<e;n++)this.words[n]=0x3ffffff&~this.words[n];return r>0&&(this.words[n]=~this.words[n]&0x3ffffff>>26-r),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){i("number"==typeof t&&t>=0);var r=t/26|0,n=t%26;return this._expand(r+1),e?this.words[r]=this.words[r]|1<<n:this.words[r]=this.words[r]&~(1<<n),this._strip()},o.prototype.iadd=function(t){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,i=t):(r=t,i=this);for(var e,r,i,n=0,o=0;o<i.length;o++)e=(0|r.words[o])+(0|i.words[o])+n,this.words[o]=0x3ffffff&e,n=e>>>26;for(;0!==n&&o<r.length;o++)e=(0|r.words[o])+n,this.words[o]=0x3ffffff&e,n=e>>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.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)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e,r,i=this.iadd(t);return t.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(e=this,r=t):(e=t,r=this);for(var o=0,s=0;s<r.length;s++)o=(i=(0|e.words[s])-(0|r.words[s])+o)>>26,this.words[s]=0x3ffffff&i;for(;0!==o&&s<e.length;s++)o=(i=(0|e.words[s])+o)>>26,this.words[s]=0x3ffffff&i;if(0===o&&s<e.length&&e!==this)for(;s<e.length;s++)this.words[s]=e.words[s];return this.length=Math.max(this.length,s),e!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var g=function(t,e,r){var i,n,o,s=t.words,u=e.words,h=r.words,a=0,f=0|s[0],l=8191&f,d=f>>>13,c=0|s[1],p=8191&c,m=c>>>13,g=0|s[2],y=8191&g,v=g>>>13,w=0|s[3],M=8191&w,b=w>>>13,x=0|s[4],_=8191&x,S=x>>>13,E=0|s[5],L=8191&E,k=E>>>13,$=0|s[6],B=8191&$,I=$>>>13,D=0|s[7],A=8191&D,O=D>>>13,T=0|s[8],U=8191&T,R=T>>>13,P=0|s[9],C=8191&P,j=P>>>13,N=0|u[0],q=8191&N,Z=N>>>13,V=0|u[1],F=8191&V,z=V>>>13,H=0|u[2],Y=8191&H,W=H>>>13,G=0|u[3],K=8191&G,J=G>>>13,Q=0|u[4],X=8191&Q,tt=Q>>>13,te=0|u[5],tr=8191&te,ti=te>>>13,tn=0|u[6],to=8191&tn,ts=tn>>>13,tu=0|u[7],th=8191&tu,ta=tu>>>13,tf=0|u[8],tl=8191&tf,td=tf>>>13,tc=0|u[9],tp=8191&tc,tm=tc>>>13;r.negative=t.negative^e.negative,r.length=19,i=Math.imul(l,q);var tg=(a+i|0)+((8191&(n=(n=Math.imul(l,Z))+Math.imul(d,q)|0))<<13)|0;a=((o=Math.imul(d,Z))+(n>>>13)|0)+(tg>>>26)|0,tg&=0x3ffffff,i=Math.imul(p,q),n=(n=Math.imul(p,Z))+Math.imul(m,q)|0,o=Math.imul(m,Z),i=i+Math.imul(l,F)|0;var ty=(a+i|0)+((8191&(n=(n=n+Math.imul(l,z)|0)+Math.imul(d,F)|0))<<13)|0;a=((o=o+Math.imul(d,z)|0)+(n>>>13)|0)+(ty>>>26)|0,ty&=0x3ffffff,i=Math.imul(y,q),n=(n=Math.imul(y,Z))+Math.imul(v,q)|0,o=Math.imul(v,Z),i=i+Math.imul(p,F)|0,n=(n=n+Math.imul(p,z)|0)+Math.imul(m,F)|0,o=o+Math.imul(m,z)|0,i=i+Math.imul(l,Y)|0;var tv=(a+i|0)+((8191&(n=(n=n+Math.imul(l,W)|0)+Math.imul(d,Y)|0))<<13)|0;a=((o=o+Math.imul(d,W)|0)+(n>>>13)|0)+(tv>>>26)|0,tv&=0x3ffffff,i=Math.imul(M,q),n=(n=Math.imul(M,Z))+Math.imul(b,q)|0,o=Math.imul(b,Z),i=i+Math.imul(y,F)|0,n=(n=n+Math.imul(y,z)|0)+Math.imul(v,F)|0,o=o+Math.imul(v,z)|0,i=i+Math.imul(p,Y)|0,n=(n=n+Math.imul(p,W)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,W)|0,i=i+Math.imul(l,K)|0;var tw=(a+i|0)+((8191&(n=(n=n+Math.imul(l,J)|0)+Math.imul(d,K)|0))<<13)|0;a=((o=o+Math.imul(d,J)|0)+(n>>>13)|0)+(tw>>>26)|0,tw&=0x3ffffff,i=Math.imul(_,q),n=(n=Math.imul(_,Z))+Math.imul(S,q)|0,o=Math.imul(S,Z),i=i+Math.imul(M,F)|0,n=(n=n+Math.imul(M,z)|0)+Math.imul(b,F)|0,o=o+Math.imul(b,z)|0,i=i+Math.imul(y,Y)|0,n=(n=n+Math.imul(y,W)|0)+Math.imul(v,Y)|0,o=o+Math.imul(v,W)|0,i=i+Math.imul(p,K)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,J)|0,i=i+Math.imul(l,X)|0;var tM=(a+i|0)+((8191&(n=(n=n+Math.imul(l,tt)|0)+Math.imul(d,X)|0))<<13)|0;a=((o=o+Math.imul(d,tt)|0)+(n>>>13)|0)+(tM>>>26)|0,tM&=0x3ffffff,i=Math.imul(L,q),n=(n=Math.imul(L,Z))+Math.imul(k,q)|0,o=Math.imul(k,Z),i=i+Math.imul(_,F)|0,n=(n=n+Math.imul(_,z)|0)+Math.imul(S,F)|0,o=o+Math.imul(S,z)|0,i=i+Math.imul(M,Y)|0,n=(n=n+Math.imul(M,W)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,W)|0,i=i+Math.imul(y,K)|0,n=(n=n+Math.imul(y,J)|0)+Math.imul(v,K)|0,o=o+Math.imul(v,J)|0,i=i+Math.imul(p,X)|0,n=(n=n+Math.imul(p,tt)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,tt)|0,i=i+Math.imul(l,tr)|0;var tb=(a+i|0)+((8191&(n=(n=n+Math.imul(l,ti)|0)+Math.imul(d,tr)|0))<<13)|0;a=((o=o+Math.imul(d,ti)|0)+(n>>>13)|0)+(tb>>>26)|0,tb&=0x3ffffff,i=Math.imul(B,q),n=(n=Math.imul(B,Z))+Math.imul(I,q)|0,o=Math.imul(I,Z),i=i+Math.imul(L,F)|0,n=(n=n+Math.imul(L,z)|0)+Math.imul(k,F)|0,o=o+Math.imul(k,z)|0,i=i+Math.imul(_,Y)|0,n=(n=n+Math.imul(_,W)|0)+Math.imul(S,Y)|0,o=o+Math.imul(S,W)|0,i=i+Math.imul(M,K)|0,n=(n=n+Math.imul(M,J)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,J)|0,i=i+Math.imul(y,X)|0,n=(n=n+Math.imul(y,tt)|0)+Math.imul(v,X)|0,o=o+Math.imul(v,tt)|0,i=i+Math.imul(p,tr)|0,n=(n=n+Math.imul(p,ti)|0)+Math.imul(m,tr)|0,o=o+Math.imul(m,ti)|0,i=i+Math.imul(l,to)|0;var tx=(a+i|0)+((8191&(n=(n=n+Math.imul(l,ts)|0)+Math.imul(d,to)|0))<<13)|0;a=((o=o+Math.imul(d,ts)|0)+(n>>>13)|0)+(tx>>>26)|0,tx&=0x3ffffff,i=Math.imul(A,q),n=(n=Math.imul(A,Z))+Math.imul(O,q)|0,o=Math.imul(O,Z),i=i+Math.imul(B,F)|0,n=(n=n+Math.imul(B,z)|0)+Math.imul(I,F)|0,o=o+Math.imul(I,z)|0,i=i+Math.imul(L,Y)|0,n=(n=n+Math.imul(L,W)|0)+Math.imul(k,Y)|0,o=o+Math.imul(k,W)|0,i=i+Math.imul(_,K)|0,n=(n=n+Math.imul(_,J)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,J)|0,i=i+Math.imul(M,X)|0,n=(n=n+Math.imul(M,tt)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,tt)|0,i=i+Math.imul(y,tr)|0,n=(n=n+Math.imul(y,ti)|0)+Math.imul(v,tr)|0,o=o+Math.imul(v,ti)|0,i=i+Math.imul(p,to)|0,n=(n=n+Math.imul(p,ts)|0)+Math.imul(m,to)|0,o=o+Math.imul(m,ts)|0,i=i+Math.imul(l,th)|0;var t_=(a+i|0)+((8191&(n=(n=n+Math.imul(l,ta)|0)+Math.imul(d,th)|0))<<13)|0;a=((o=o+Math.imul(d,ta)|0)+(n>>>13)|0)+(t_>>>26)|0,t_&=0x3ffffff,i=Math.imul(U,q),n=(n=Math.imul(U,Z))+Math.imul(R,q)|0,o=Math.imul(R,Z),i=i+Math.imul(A,F)|0,n=(n=n+Math.imul(A,z)|0)+Math.imul(O,F)|0,o=o+Math.imul(O,z)|0,i=i+Math.imul(B,Y)|0,n=(n=n+Math.imul(B,W)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,W)|0,i=i+Math.imul(L,K)|0,n=(n=n+Math.imul(L,J)|0)+Math.imul(k,K)|0,o=o+Math.imul(k,J)|0,i=i+Math.imul(_,X)|0,n=(n=n+Math.imul(_,tt)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,tt)|0,i=i+Math.imul(M,tr)|0,n=(n=n+Math.imul(M,ti)|0)+Math.imul(b,tr)|0,o=o+Math.imul(b,ti)|0,i=i+Math.imul(y,to)|0,n=(n=n+Math.imul(y,ts)|0)+Math.imul(v,to)|0,o=o+Math.imul(v,ts)|0,i=i+Math.imul(p,th)|0,n=(n=n+Math.imul(p,ta)|0)+Math.imul(m,th)|0,o=o+Math.imul(m,ta)|0,i=i+Math.imul(l,tl)|0;var tS=(a+i|0)+((8191&(n=(n=n+Math.imul(l,td)|0)+Math.imul(d,tl)|0))<<13)|0;a=((o=o+Math.imul(d,td)|0)+(n>>>13)|0)+(tS>>>26)|0,tS&=0x3ffffff,i=Math.imul(C,q),n=(n=Math.imul(C,Z))+Math.imul(j,q)|0,o=Math.imul(j,Z),i=i+Math.imul(U,F)|0,n=(n=n+Math.imul(U,z)|0)+Math.imul(R,F)|0,o=o+Math.imul(R,z)|0,i=i+Math.imul(A,Y)|0,n=(n=n+Math.imul(A,W)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,W)|0,i=i+Math.imul(B,K)|0,n=(n=n+Math.imul(B,J)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,J)|0,i=i+Math.imul(L,X)|0,n=(n=n+Math.imul(L,tt)|0)+Math.imul(k,X)|0,o=o+Math.imul(k,tt)|0,i=i+Math.imul(_,tr)|0,n=(n=n+Math.imul(_,ti)|0)+Math.imul(S,tr)|0,o=o+Math.imul(S,ti)|0,i=i+Math.imul(M,to)|0,n=(n=n+Math.imul(M,ts)|0)+Math.imul(b,to)|0,o=o+Math.imul(b,ts)|0,i=i+Math.imul(y,th)|0,n=(n=n+Math.imul(y,ta)|0)+Math.imul(v,th)|0,o=o+Math.imul(v,ta)|0,i=i+Math.imul(p,tl)|0,n=(n=n+Math.imul(p,td)|0)+Math.imul(m,tl)|0,o=o+Math.imul(m,td)|0,i=i+Math.imul(l,tp)|0;var tE=(a+i|0)+((8191&(n=(n=n+Math.imul(l,tm)|0)+Math.imul(d,tp)|0))<<13)|0;a=((o=o+Math.imul(d,tm)|0)+(n>>>13)|0)+(tE>>>26)|0,tE&=0x3ffffff,i=Math.imul(C,F),n=(n=Math.imul(C,z))+Math.imul(j,F)|0,o=Math.imul(j,z),i=i+Math.imul(U,Y)|0,n=(n=n+Math.imul(U,W)|0)+Math.imul(R,Y)|0,o=o+Math.imul(R,W)|0,i=i+Math.imul(A,K)|0,n=(n=n+Math.imul(A,J)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,J)|0,i=i+Math.imul(B,X)|0,n=(n=n+Math.imul(B,tt)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,tt)|0,i=i+Math.imul(L,tr)|0,n=(n=n+Math.imul(L,ti)|0)+Math.imul(k,tr)|0,o=o+Math.imul(k,ti)|0,i=i+Math.imul(_,to)|0,n=(n=n+Math.imul(_,ts)|0)+Math.imul(S,to)|0,o=o+Math.imul(S,ts)|0,i=i+Math.imul(M,th)|0,n=(n=n+Math.imul(M,ta)|0)+Math.imul(b,th)|0,o=o+Math.imul(b,ta)|0,i=i+Math.imul(y,tl)|0,n=(n=n+Math.imul(y,td)|0)+Math.imul(v,tl)|0,o=o+Math.imul(v,td)|0,i=i+Math.imul(p,tp)|0;var tL=(a+i|0)+((8191&(n=(n=n+Math.imul(p,tm)|0)+Math.imul(m,tp)|0))<<13)|0;a=((o=o+Math.imul(m,tm)|0)+(n>>>13)|0)+(tL>>>26)|0,tL&=0x3ffffff,i=Math.imul(C,Y),n=(n=Math.imul(C,W))+Math.imul(j,Y)|0,o=Math.imul(j,W),i=i+Math.imul(U,K)|0,n=(n=n+Math.imul(U,J)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,J)|0,i=i+Math.imul(A,X)|0,n=(n=n+Math.imul(A,tt)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,tt)|0,i=i+Math.imul(B,tr)|0,n=(n=n+Math.imul(B,ti)|0)+Math.imul(I,tr)|0,o=o+Math.imul(I,ti)|0,i=i+Math.imul(L,to)|0,n=(n=n+Math.imul(L,ts)|0)+Math.imul(k,to)|0,o=o+Math.imul(k,ts)|0,i=i+Math.imul(_,th)|0,n=(n=n+Math.imul(_,ta)|0)+Math.imul(S,th)|0,o=o+Math.imul(S,ta)|0,i=i+Math.imul(M,tl)|0,n=(n=n+Math.imul(M,td)|0)+Math.imul(b,tl)|0,o=o+Math.imul(b,td)|0,i=i+Math.imul(y,tp)|0;var tk=(a+i|0)+((8191&(n=(n=n+Math.imul(y,tm)|0)+Math.imul(v,tp)|0))<<13)|0;a=((o=o+Math.imul(v,tm)|0)+(n>>>13)|0)+(tk>>>26)|0,tk&=0x3ffffff,i=Math.imul(C,K),n=(n=Math.imul(C,J))+Math.imul(j,K)|0,o=Math.imul(j,J),i=i+Math.imul(U,X)|0,n=(n=n+Math.imul(U,tt)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,tt)|0,i=i+Math.imul(A,tr)|0,n=(n=n+Math.imul(A,ti)|0)+Math.imul(O,tr)|0,o=o+Math.imul(O,ti)|0,i=i+Math.imul(B,to)|0,n=(n=n+Math.imul(B,ts)|0)+Math.imul(I,to)|0,o=o+Math.imul(I,ts)|0,i=i+Math.imul(L,th)|0,n=(n=n+Math.imul(L,ta)|0)+Math.imul(k,th)|0,o=o+Math.imul(k,ta)|0,i=i+Math.imul(_,tl)|0,n=(n=n+Math.imul(_,td)|0)+Math.imul(S,tl)|0,o=o+Math.imul(S,td)|0,i=i+Math.imul(M,tp)|0;var t$=(a+i|0)+((8191&(n=(n=n+Math.imul(M,tm)|0)+Math.imul(b,tp)|0))<<13)|0;a=((o=o+Math.imul(b,tm)|0)+(n>>>13)|0)+(t$>>>26)|0,t$&=0x3ffffff,i=Math.imul(C,X),n=(n=Math.imul(C,tt))+Math.imul(j,X)|0,o=Math.imul(j,tt),i=i+Math.imul(U,tr)|0,n=(n=n+Math.imul(U,ti)|0)+Math.imul(R,tr)|0,o=o+Math.imul(R,ti)|0,i=i+Math.imul(A,to)|0,n=(n=n+Math.imul(A,ts)|0)+Math.imul(O,to)|0,o=o+Math.imul(O,ts)|0,i=i+Math.imul(B,th)|0,n=(n=n+Math.imul(B,ta)|0)+Math.imul(I,th)|0,o=o+Math.imul(I,ta)|0,i=i+Math.imul(L,tl)|0,n=(n=n+Math.imul(L,td)|0)+Math.imul(k,tl)|0,o=o+Math.imul(k,td)|0,i=i+Math.imul(_,tp)|0;var tB=(a+i|0)+((8191&(n=(n=n+Math.imul(_,tm)|0)+Math.imul(S,tp)|0))<<13)|0;a=((o=o+Math.imul(S,tm)|0)+(n>>>13)|0)+(tB>>>26)|0,tB&=0x3ffffff,i=Math.imul(C,tr),n=(n=Math.imul(C,ti))+Math.imul(j,tr)|0,o=Math.imul(j,ti),i=i+Math.imul(U,to)|0,n=(n=n+Math.imul(U,ts)|0)+Math.imul(R,to)|0,o=o+Math.imul(R,ts)|0,i=i+Math.imul(A,th)|0,n=(n=n+Math.imul(A,ta)|0)+Math.imul(O,th)|0,o=o+Math.imul(O,ta)|0,i=i+Math.imul(B,tl)|0,n=(n=n+Math.imul(B,td)|0)+Math.imul(I,tl)|0,o=o+Math.imul(I,td)|0,i=i+Math.imul(L,tp)|0;var tI=(a+i|0)+((8191&(n=(n=n+Math.imul(L,tm)|0)+Math.imul(k,tp)|0))<<13)|0;a=((o=o+Math.imul(k,tm)|0)+(n>>>13)|0)+(tI>>>26)|0,tI&=0x3ffffff,i=Math.imul(C,to),n=(n=Math.imul(C,ts))+Math.imul(j,to)|0,o=Math.imul(j,ts),i=i+Math.imul(U,th)|0,n=(n=n+Math.imul(U,ta)|0)+Math.imul(R,th)|0,o=o+Math.imul(R,ta)|0,i=i+Math.imul(A,tl)|0,n=(n=n+Math.imul(A,td)|0)+Math.imul(O,tl)|0,o=o+Math.imul(O,td)|0,i=i+Math.imul(B,tp)|0;var tD=(a+i|0)+((8191&(n=(n=n+Math.imul(B,tm)|0)+Math.imul(I,tp)|0))<<13)|0;a=((o=o+Math.imul(I,tm)|0)+(n>>>13)|0)+(tD>>>26)|0,tD&=0x3ffffff,i=Math.imul(C,th),n=(n=Math.imul(C,ta))+Math.imul(j,th)|0,o=Math.imul(j,ta),i=i+Math.imul(U,tl)|0,n=(n=n+Math.imul(U,td)|0)+Math.imul(R,tl)|0,o=o+Math.imul(R,td)|0,i=i+Math.imul(A,tp)|0;var tA=(a+i|0)+((8191&(n=(n=n+Math.imul(A,tm)|0)+Math.imul(O,tp)|0))<<13)|0;a=((o=o+Math.imul(O,tm)|0)+(n>>>13)|0)+(tA>>>26)|0,tA&=0x3ffffff,i=Math.imul(C,tl),n=(n=Math.imul(C,td))+Math.imul(j,tl)|0,o=Math.imul(j,td),i=i+Math.imul(U,tp)|0;var tO=(a+i|0)+((8191&(n=(n=n+Math.imul(U,tm)|0)+Math.imul(R,tp)|0))<<13)|0;a=((o=o+Math.imul(R,tm)|0)+(n>>>13)|0)+(tO>>>26)|0,tO&=0x3ffffff,i=Math.imul(C,tp);var tT=(a+i|0)+((8191&(n=(n=Math.imul(C,tm))+Math.imul(j,tp)|0))<<13)|0;return a=((o=Math.imul(j,tm))+(n>>>13)|0)+(tT>>>26)|0,tT&=0x3ffffff,h[0]=tg,h[1]=ty,h[2]=tv,h[3]=tw,h[4]=tM,h[5]=tb,h[6]=tx,h[7]=t_,h[8]=tS,h[9]=tE,h[10]=tL,h[11]=tk,h[12]=t$,h[13]=tB,h[14]=tI,h[15]=tD,h[16]=tA,h[17]=tO,h[18]=tT,0!==a&&(h[19]=a,r.length++),r};function y(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var i=0,n=0,o=0;o<r.length-1;o++){var s=n;n=0;for(var u=0x3ffffff&i,h=Math.min(o,e.length-1),a=Math.max(0,o-t.length+1);a<=h;a++){var f=o-a,l=(0|t.words[f])*(0|e.words[a]),d=0x3ffffff&l;s=s+(l/0x4000000|0)|0,u=0x3ffffff&(d=d+u|0),n+=(s=s+(d>>>26)|0)>>>26,s&=0x3ffffff}r.words[o]=u,i=s,s=n}return 0!==i?r.words[o]=i:r.length--,r._strip()}function v(t,e){this.x=t,this.y=e}Math.imul||(g=m),o.prototype.mulTo=function(t,e){var r,i=this.length+t.length;return 10===this.length&&10===t.length?r=g(this,t,e):i<63?r=m(this,t,e):r=y(this,t,e),r},v.prototype.makeRBT=function(t){for(var e=Array(t),r=o.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,r,t);return e},v.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var i=0,n=0;n<e;n++)i|=(1&t)<<e-n-1,t>>=1;return i},v.prototype.permute=function(t,e,r,i,n,o){for(var s=0;s<o;s++)i[s]=e[t[s]],n[s]=r[t[s]]},v.prototype.transform=function(t,e,r,i,n,o){this.permute(o,t,e,r,i,n);for(var s=1;s<n;s<<=1)for(var u=s<<1,h=Math.cos(2*Math.PI/u),a=Math.sin(2*Math.PI/u),f=0;f<n;f+=u)for(var l=h,d=a,c=0;c<s;c++){var p=r[f+c],m=i[f+c],g=r[f+c+s],y=i[f+c+s],v=l*g-d*y;y=l*y+d*g,g=v,r[f+c]=p+g,i[f+c]=m+y,r[f+c+s]=p-g,i[f+c+s]=m-y,c!==u&&(v=h*l-a*d,d=h*d+a*l,l=v)}},v.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),i=1&r,n=0;for(r=r/2|0;r;r>>>=1)n++;return 1<<n+1+i},v.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var i=0;i<r/2;i++){var n=t[i];t[i]=t[r-i-1],t[r-i-1]=n,n=e[i],e[i]=-e[r-i-1],e[r-i-1]=-n}},v.prototype.normalize13b=function(t,e){for(var r=0,i=0;i<e/2;i++){var n=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+r;t[i]=0x3ffffff&n,r=n<0x4000000?0:n/0x4000000|0}return t},v.prototype.convert13b=function(t,e,r,n){for(var o=0,s=0;s<e;s++)o+=0|t[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<n;++s)r[s]=0;i(0===o),i((-8192&o)==0)},v.prototype.stub=function(t){for(var e=Array(t),r=0;r<t;r++)e[r]=0;return e},v.prototype.mulp=function(t,e,r){var i=2*this.guessLen13b(t.length,e.length),n=this.makeRBT(i),o=this.stub(i),s=Array(i),u=Array(i),h=Array(i),a=Array(i),f=Array(i),l=Array(i),d=r.words;d.length=i,this.convert13b(t.words,t.length,s,i),this.convert13b(e.words,e.length,a,i),this.transform(s,o,u,h,i,n),this.transform(a,o,f,l,i,n);for(var c=0;c<i;c++){var p=u[c]*f[c]-h[c]*l[c];h[c]=u[c]*l[c]+h[c]*f[c],u[c]=p}return this.conjugate(u,h,i),this.transform(u,h,d,o,i,n),this.conjugate(d,o,i),this.normalize13b(d,i),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=Array(this.length+t.length),y(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){var e=t<0;e&&(t=-t),i("number"==typeof t),i(t<0x4000000);for(var r=0,n=0;n<this.length;n++){var o=(0|this.words[n])*t,s=(0x3ffffff&o)+(0x3ffffff&r);r>>=26,r+=(o/0x4000000|0)+(s>>>26),this.words[n]=0x3ffffff&s}return 0!==r&&(this.words[n]=r,this.length++),this.length=0===t?1:this.length,e?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=Array(t.bitLength()),r=0;r<e.length;r++){var i=r/26|0,n=r%26;e[r]=t.words[i]>>>n&1}return e}(t);if(0===e.length)return new o(1);for(var r=this,i=0;i<e.length&&0===e[i];i++,r=r.sqr());if(++i<e.length)for(var n=r.sqr();i<e.length;i++,n=n.sqr())0!==e[i]&&(r=r.mul(n));return r},o.prototype.iushln=function(t){i("number"==typeof t&&t>=0);var e,r=t%26,n=(t-r)/26,o=0x3ffffff>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e<this.length;e++){var u=this.words[e]&o,h=(0|this.words[e])-u<<r;this.words[e]=h|s,s=u>>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==n){for(e=this.length-1;e>=0;e--)this.words[e+n]=this.words[e];for(e=0;e<n;e++)this.words[e]=0;this.length+=n}return this._strip()},o.prototype.ishln=function(t){return i(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){i("number"==typeof t&&t>=0);var n=e?(e-e%26)/26:0,o=t%26,s=Math.min((t-o)/26,this.length),u=0x3ffffff^0x3ffffff>>>o<<o;if(n-=s,n=Math.max(0,n),r){for(var h=0;h<s;h++)r.words[h]=this.words[h];r.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var a=0;for(h=this.length-1;h>=0&&(0!==a||h>=n);h--){var f=0|this.words[h];this.words[h]=a<<26-o|f>>>o,a=f&u}return r&&0!==a&&(r.words[r.length++]=a),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,r){return i(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){i("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return!(this.length<=r)&&!!(this.words[r]&1<<e)},o.prototype.imaskn=function(t){i("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==e&&r++,this.length=Math.min(r,this.length),0!==e&&(this.words[this.length-1]&=0x3ffffff^0x3ffffff>>>e<<e),0===this.length&&(this.words[0]=0,this.length=1),this._strip())},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return(i("number"==typeof t),i(t<0x4000000),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.negative=0,this.isubn(t),this.negative=1),this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=0x4000000;e++)this.words[e]-=0x4000000,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(i("number"==typeof t),i(t<0x4000000),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]+=0x4000000,this.words[e+1]-=1;return this._strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var n,o,s=t.length+r;this._expand(s);var u=0;for(n=0;n<t.length;n++){o=(0|this.words[n+r])+u;var h=(0|t.words[n])*e;o-=0x3ffffff&h,u=(o>>26)-(h/0x4000000|0),this.words[n+r]=0x3ffffff&o}for(;n<this.length-r;n++)u=(o=(0|this.words[n+r])+u)>>26,this.words[n+r]=0x3ffffff&o;if(0===u)return this._strip();for(i(-1===u),u=0,n=0;n<this.length;n++)u=(o=-(0|this.words[n])+u)>>26,this.words[n]=0x3ffffff&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var r,i=this.length-t.length,n=this.clone(),s=t,u=0|s.words[s.length-1];0!=(i=26-this._countBits(u))&&(s=s.ushln(i),n.iushln(i),u=0|s.words[s.length-1]);var h=n.length-s.length;if("mod"!==e){(r=new o(null)).length=h+1,r.words=Array(r.length);for(var a=0;a<r.length;a++)r.words[a]=0}var f=n.clone()._ishlnsubmul(s,1,h);0===f.negative&&(n=f,r&&(r.words[h]=1));for(var l=h-1;l>=0;l--){var d=(0|n.words[s.length+l])*0x4000000+(0|n.words[s.length+l-1]);for(d=Math.min(d/u|0,0x3ffffff),n._ishlnsubmul(s,d,l);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(s,1,l),n.isZero()||(n.negative^=1);r&&(r.words[l]=d)}return r&&r._strip(),n._strip(),"div"!==e&&0!==i&&n.iushrn(i),{div:r||null,mod:n}},o.prototype.divmod=function(t,e,r){var n,s,u;return(i(!t.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(u=this.neg().divmod(t,e),"mod"!==e&&(n=u.div.neg()),"div"!==e&&(s=u.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:n,mod:s}):0===this.negative&&0!==t.negative?(u=this.divmod(t.neg(),e),"mod"!==e&&(n=u.div.neg()),{div:n,mod:u.mod}):(this.negative&t.negative)!=0?(u=this.neg().divmod(t.neg(),e),"div"!==e&&(s=u.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:u.div,mod:s}):t.length>this.length||0>this.cmp(t)?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,i=t.ushrn(1),n=t.andln(1),o=r.cmp(i);return o<0||1===n&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modrn=function(t){var e=t<0;e&&(t=-t),i(t<=0x3ffffff);for(var r=0x4000000%t,n=0,o=this.length-1;o>=0;o--)n=(r*n+(0|this.words[o]))%t;return e?-n:n},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=t<0;e&&(t=-t),i(t<=0x3ffffff);for(var r=0,n=this.length-1;n>=0;n--){var o=(0|this.words[n])+0x4000000*r;this.words[n]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new o(1),s=new o(0),u=new o(0),h=new o(1),a=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++a;for(var f=r.clone(),l=e.clone();!e.isZero();){for(var d=0,c=1;(e.words[0]&c)==0&&d<26;++d,c<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(n.isOdd()||s.isOdd())&&(n.iadd(f),s.isub(l)),n.iushrn(1),s.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(u.isOdd()||h.isOdd())&&(u.iadd(f),h.isub(l)),u.iushrn(1),h.iushrn(1);e.cmp(r)>=0?(e.isub(r),n.isub(u),s.isub(h)):(r.isub(e),u.isub(n),h.isub(s))}return{a:u,b:h,gcd:r.iushln(a)}},o.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e,r=this,n=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var s=new o(1),u=new o(0),h=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var a=0,f=1;(r.words[0]&f)==0&&a<26;++a,f<<=1);if(a>0)for(r.iushrn(a);a-- >0;)s.isOdd()&&s.iadd(h),s.iushrn(1);for(var l=0,d=1;(n.words[0]&d)==0&&l<26;++l,d<<=1);if(l>0)for(n.iushrn(l);l-- >0;)u.isOdd()&&u.iadd(h),u.iushrn(1);r.cmp(n)>=0?(r.isub(n),s.isub(u)):(n.isub(r),u.isub(s))}return 0>(e=0===r.cmpn(1)?s:u).cmpn(0)&&e.iadd(t),e},o.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 i=0;e.isEven()&&r.isEven();i++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=e.cmp(r);if(n<0){var o=e;e=r,r=o}else if(0===n||0===r.cmpn(1))break;e.isub(r)}return r.iushln(i)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){i("number"==typeof t);var e=t%26,r=(t-e)/26,n=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=n,this;for(var o=n,s=r;0!==o&&s<this.length;s++){var u=0|this.words[s];u+=o,o=u>>>26,u&=0x3ffffff,this.words[s]=u}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var 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),i(t<=0x3ffffff,"Number is too big");var n=0|this.words[0];e=n===t?0:n<t?-1:1}return 0!==this.negative?0|-e:e},o.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},o.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 i=0|this.words[r],n=0|t.words[r];if(i!==n){i<n?e=-1:i>n&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return -1===this.cmpn(t)},o.prototype.lt=function(t){return -1===this.cmp(t)},o.prototype.lten=function(t){return 0>=this.cmpn(t)},o.prototype.lte=function(t){return 0>=this.cmp(t)},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new E(t)},o.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return i(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return i(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var w={k256:null,p224:null,p192:null,p25519:null};function M(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){M.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){M.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){M.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){M.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function L(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}M.prototype._tmp=function(){var t=new o(null);return t.words=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 i=e<this.n?-1:r.ucmp(this.p);return 0===i?(r.words[0]=0,r.length=1):i>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)},n(b,M),b.prototype.split=function(t,e){for(var r=Math.min(t.length,9),i=0;i<r;i++)e.words[i]=t.words[i];if(e.length=r,t.length<=9){t.words[0]=0,t.length=1;return}var n=t.words[9];for(i=10,e.words[e.length++]=4194303&n;i<t.length;i++){var o=0|t.words[i];t.words[i-10]=(4194303&o)<<4|n>>>22,n=o}n>>>=22,t.words[i-10]=n,0===n&&t.length>10?t.length-=10:t.length-=9},b.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 i=0|t.words[r];e+=977*i,t.words[r]=0x3ffffff&e,e=64*i+(e/0x4000000|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(x,M),n(_,M),n(S,M),S.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var i=(0|t.words[r])*19+e,n=0x3ffffff&i;i>>>=26,t.words[r]=n,e=i}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){var e;if(w[t])return w[t];if("k256"===t)e=new b;else if("p224"===t)e=new x;else if("p192"===t)e=new _;else if("p25519"===t)e=new S;else throw Error("Unknown prime "+t);return w[t]=e,e},E.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){i((t.negative|e.negative)==0,"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(a(t,t.umod(this.m)._forceRed(this)),t)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.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)},E.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},E.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2==1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var n=this.m.subn(1),s=0;!n.isZero()&&0===n.andln(1);)s++,n.iushrn(1);i(!n.isZero());var u=new o(1).toRed(this),h=u.redNeg(),a=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,a).cmp(h);)f.redIAdd(h);for(var l=this.pow(f,n),d=this.pow(t,n.addn(1).iushrn(1)),c=this.pow(t,n),p=s;0!==c.cmp(u);){for(var m=c,g=0;0!==m.cmp(u);g++)m=m.redSqr();i(g<p);var y=this.pow(l,new o(1).iushln(p-g-1));d=d.redMul(y),l=y.redSqr(),c=c.redMul(l),p=g}return d},E.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},E.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var i=2;i<r.length;i++)r[i]=this.mul(r[i-1],t);var n=r[0],s=0,u=0,h=e.bitLength()%26;for(0===h&&(h=26),i=e.length-1;i>=0;i--){for(var a=e.words[i],f=h-1;f>=0;f--){var l=a>>f&1;if(n!==r[0]&&(n=this.sqr(n)),0===l&&0===s){u=0;continue}s<<=1,s|=l,(4==++u||0===i&&0===f)&&(n=this.mul(n,r[s]),u=0,s=0)}h=26}return n},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new L(t)},n(L,E),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),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):0>n.cmpn(0)&&(o=n.iadd(this.m)),o._forceRed(this)},L.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):0>n.cmpn(0)&&(s=n.iadd(this.m)),s._forceRed(this)},L.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},62075:function(t,e,r){"use strict";var i=r(14790).Buffer,n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
1Object.defineProperty(e,"__esModule",{value:!0}),e.map=e.array=e.rustEnum=e.str=e.vecU8=e.tagged=e.vec=e.bool=e.option=e.publicKey=e.i256=e.u256=e.i128=e.u128=e.i64=e.u64=e.struct=e.f64=e.f32=e.i32=e.u32=e.i16=e.u16=e.i8=e.u8=void 0;let o=r(84682),s=r(95431),u=n(r(56875));var h=r(84682);Object.defineProperty(e,"u8",{enumerable:!0,get:function(){return h.u8}}),Object.defineProperty(e,"i8",{enumerable:!0,get:function(){return h.s8}}),Object.defineProperty(e,"u16",{enumerable:!0,get:function(){return h.u16}}),Object.defineProperty(e,"i16",{enumerable:!0,get:function(){return h.s16}}),Object.defineProperty(e,"u32",{enumerable:!0,get:function(){return h.u32}}),Object.defineProperty(e,"i32",{enumerable:!0,get:function(){return h.s32}}),Object.defineProperty(e,"f32",{enumerable:!0,get:function(){return h.f32}}),Object.defineProperty(e,"f64",{enumerable:!0,get:function(){return h.f64}}),Object.defineProperty(e,"struct",{enumerable:!0,get:function(){return h.struct}});class a extends o.Layout{constructor(t,e,r){super(t,r),this.blob=(0,o.blob)(t),this.signed=e}decode(t,e=0){let r=new u.default(this.blob.decode(t,e),10,"le");return this.signed?r.fromTwos(8*this.span).clone():r}encode(t,e,r=0){return this.signed&&(t=t.toTwos(8*this.span)),this.blob.encode(t.toArrayLike(i,"le",this.span),e,r)}}function f(t){return new a(8,!1,t)}e.u64=f,e.i64=function(t){return new a(8,!0,t)},e.u128=function(t){return new a(16,!1,t)},e.i128=function(t){return new a(16,!0,t)},e.u256=function(t){return new a(32,!1,t)},e.i256=function(t){return new a(32,!0,t)};class l extends o.Layout{constructor(t,e,r,i){super(t.span,i),this.layout=t,this.decoder=e,this.encoder=r}decode(t,e){return this.decoder(this.layout.decode(t,e))}encode(t,e,r){return this.layout.encode(this.encoder(t),e,r)}getSpan(t,e){return this.layout.getSpan(t,e)}}e.publicKey=function(t){return new l((0,o.blob)(32),t=>new s.PublicKey(t),t=>t.toBuffer(),t)};class d extends o.Layout{constructor(t,e){super(-1,e),this.layout=t,this.discriminator=(0,o.u8)()}encode(t,e,r=0){return null==t?this.discriminator.encode(0,e,r):(this.discriminator.encode(1,e,r),this.layout.encode(t,e,r+1)+1)}decode(t,e=0){let r=this.discriminator.decode(t,e);if(0===r)return null;if(1===r)return this.layout.decode(t,e+1);throw Error("Invalid option "+this.property)}getSpan(t,e=0){let r=this.discriminator.decode(t,e);if(0===r)return 1;if(1===r)return this.layout.getSpan(t,e+1)+1;throw Error("Invalid option "+this.property)}}function c(t){if(0===t)return!1;if(1===t)return!0;throw Error("Invalid bool: "+t)}function p(t){return+!!t}function m(t){let e=(0,o.u32)("length");return new l((0,o.struct)([e,(0,o.blob)((0,o.offset)(e,-e.span),"data")]),({data:t})=>t,t=>({data:t}),t)}e.option=function(t,e){return new d(t,e)},e.bool=function(t){return new l((0,o.u8)(),c,p,t)},e.vec=function(t,e){let r=(0,o.u32)("length");return new l((0,o.struct)([r,(0,o.seq)(t,(0,o.offset)(r,-r.span),"values")]),({values:t})=>t,t=>({values:t}),e)},e.tagged=function(t,e,r){return new l((0,o.struct)([f("tag"),e.replicate("data")]),function({tag:e,data:r}){if(!e.eq(t))throw Error("Invalid tag, expected: "+t.toString("hex")+", got: "+e.toString("hex"));return r},e=>({tag:t,data:e}),r)},e.vecU8=m,e.str=function(t){return new l(m(),t=>t.toString("utf-8"),t=>i.from(t,"utf-8"),t)},e.rustEnum=function(t,e,r){let i=(0,o.union)(null!=r?r:(0,o.u8)(),e);return t.forEach((t,e)=>i.addVariant(e,t,t.property)),i},e.array=function(t,e,r){return new l((0,o.struct)([(0,o.seq)(t,e,"values")]),({values:t})=>t,t=>({values:t}),r)};class g extends o.Layout{constructor(t,e,r){super(t.span+e.span,r),this.keyLayout=t,this.valueLayout=e}decode(t,e){return e=e||0,[this.keyLayout.decode(t,e),this.valueLayout.decode(t,e+this.keyLayout.getSpan(t,e))]}encode(t,e,r){r=r||0;let i=this.keyLayout.encode(t[0],e,r),n=this.valueLayout.encode(t[1],e,r+i);return i+n}getSpan(t,e){return this.keyLayout.getSpan(t,e)+this.valueLayout.getSpan(t,e)}}e.map=function(t,e,r){let i=(0,o.u32)("length");return new l((0,o.struct)([i,(0,o.seq)(new g(t,e),(0,o.offset)(i,-i.span),"values")]),({values:t})=>new Map(t),t=>({values:Array.from(t.entries())}),r)}},84682:(t,e,r)=>{"use strict";var i=r(14790).Buffer;class n{constructor(t,e){if(!Number.isInteger(t))throw TypeError("span must be an integer");this.span=t,this.property=e}makeDestinationObject(){return{}}decode(t,e){throw Error("Layout is abstract")}encode(t,e,r){throw Error("Layout is abstract")}getSpan(t,e){if(0>this.span)throw RangeError("indeterminate span");return this.span}replicate(t){let e=Object.create(this.constructor.prototype);return Object.assign(e,this),e.property=t,e}fromArray(t){}}function o(t,e){return e.property?t+"["+e.property+"]":t}e.Layout=n,e.nameWithProperty=o,e.bindConstructorLayout=function(t,e){if("function"!=typeof t)throw TypeError("Class must be constructor");if(t.hasOwnProperty("layout_"))throw Error("Class is already bound to a layout");if(!(e&&e instanceof n))throw TypeError("layout must be a Layout");if(e.hasOwnProperty("boundConstructor_"))throw Error("layout is already bound to a constructor");
1t.layout_=e,e.boundConstructor_=t,e.makeDestinationObject=()=>new t,Object.defineProperty(t.prototype,"encode",{value:function(t,r){return e.encode(this,t,r)},writable:!0}),Object.defineProperty(t,"decode",{value:function(t,r){return e.decode(t,r)},writable:!0})};class s extends n{isCount(){throw Error("ExternalLayout is abstract")}}class u extends s{constructor(t,e){if(void 0===t&&(t=1),!Number.isInteger(t)||0>=t)throw TypeError("elementSpan must be a (positive) integer");super(-1,e),this.elementSpan=t}isCount(){return!0}decode(t,e){return void 0===e&&(e=0),Math.floor((t.length-e)/this.elementSpan)}encode(t,e,r){return 0}}class h extends s{constructor(t,e,r){if(!(t instanceof n))throw TypeError("layout must be a Layout");if(void 0===e)e=0;else if(!Number.isInteger(e))throw TypeError("offset must be integer or undefined");super(t.span,r||t.property),this.layout=t,this.offset=e}isCount(){return this.layout instanceof a||this.layout instanceof f}decode(t,e){return void 0===e&&(e=0),this.layout.decode(t,e+this.offset)}encode(t,e,r){return void 0===r&&(r=0),this.layout.encode(t,e,r+this.offset)}}class a extends n{constructor(t,e){if(super(t,e),6<this.span)throw RangeError("span must not exceed 6 bytes")}decode(t,e){return void 0===e&&(e=0),t.readUIntLE(e,this.span)}encode(t,e,r){return void 0===r&&(r=0),e.writeUIntLE(t,r,this.span),this.span}}class f extends n{constructor(t,e){if(super(t,e),6<this.span)throw RangeError("span must not exceed 6 bytes")}decode(t,e){return void 0===e&&(e=0),t.readUIntBE(e,this.span)}encode(t,e,r){return void 0===r&&(r=0),e.writeUIntBE(t,r,this.span),this.span}}class l extends n{constructor(t,e){if(super(t,e),6<this.span)throw RangeError("span must not exceed 6 bytes")}decode(t,e){return void 0===e&&(e=0),t.readIntLE(e,this.span)}encode(t,e,r){return void 0===r&&(r=0),e.writeIntLE(t,r,this.span),this.span}}class d extends n{constructor(t,e){if(super(t,e),6<this.span)throw RangeError("span must not exceed 6 bytes")}decode(t,e){return void 0===e&&(e=0),t.readIntBE(e,this.span)}encode(t,e,r){return void 0===r&&(r=0),e.writeIntBE(t,r,this.span),this.span}}function c(t){let e=Math.floor(t/0x100000000);return{hi32:e,lo32:t-0x100000000*e}}function p(t,e){return 0x100000000*t+e}class m extends n{constructor(t){super(8,t)}decode(t,e){void 0===e&&(e=0);let r=t.readUInt32LE(e);return p(t.readUInt32LE(e+4),r)}encode(t,e,r){void 0===r&&(r=0);let i=c(t);return e.writeUInt32LE(i.lo32,r),e.writeUInt32LE(i.hi32,r+4),8}}class g extends n{constructor(t){super(8,t)}decode(t,e){return void 0===e&&(e=0),p(t.readUInt32BE(e),t.readUInt32BE(e+4))}encode(t,e,r){void 0===r&&(r=0);let i=c(t);return e.writeUInt32BE(i.hi32,r),e.writeUInt32BE(i.lo32,r+4),8}}class y extends n{constructor(t){super(8,t)}decode(t,e){void 0===e&&(e=0);let r=t.readUInt32LE(e);return p(t.readInt32LE(e+4),r)}encode(t,e,r){void 0===r&&(r=0);let i=c(t);return e.writeUInt32LE(i.lo32,r),e.writeInt32LE(i.hi32,r+4),8}}class v extends n{constructor(t){super(8,t)}decode(t,e){return void 0===e&&(e=0),p(t.readInt32BE(e),t.readUInt32BE(e+4))}encode(t,e,r){void 0===r&&(r=0);let i=c(t);return e.writeInt32BE(i.hi32,r),e.writeUInt32BE(i.lo32,r+4),8}}class w extends n{constructor(t){super(4,t)}decode(t,e){return void 0===e&&(e=0),t.readFloatLE(e)}encode(t,e,r){return void 0===r&&(r=0),e.writeFloatLE(t,r),4}}class M extends n{constructor(t){super(4,t)}decode(t,e){return void 0===e&&(e=0),t.readFloatBE(e)}encode(t,e,r){return void 0===r&&(r=0),e.writeFloatBE(t,r),4}}class b extends n{constructor(t){super(8,t)}decode(t,e){return void 0===e&&(e=0),t.readDoubleLE(e)}encode(t,e,r){return void 0===r&&(r=0),e.writeDoubleLE(t,r),8}}class x extends n{constructor(t){super(8,t)}decode(t,e){return void 0===e&&(e=0),t.readDoubleBE(e)}encode(t,e,r){return void 0===r&&(r=0),e.writeDoubleBE(t,r),8}}class _ extends n{constructor(t,e,r){if(!(t instanceof n))throw TypeError("elementLayout must be a Layout");if(!(e instanceof s&&e.isCount()||Number.isInteger(e)&&0<=e))throw TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");let i=-1;e instanceof s||!(0<t.span)||(i=e*t.span),super(i,r),this.elementLayout=t,this.count=e}getSpan(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);let r=0,i=this.count;if(i instanceof s&&(i=i.decode(t,e)),0<this.elementLayout.span)r=i*this.elementLayout.span;else{let n=0;for(;n<i;)r+=this.elementLayout.getSpan(t,e+r),++n}return r}decode(t,e){void 0===e&&(e=0);let r=[],i=0,n=this.count;for(n instanceof s&&(n=n.decode(t,e));i<n;)r.push(this.elementLayout.decode(t,e)),e+=this.elementLayout.getSpan(t,e),i+=1;return r}encode(t,e,r){void 0===r&&(r=0);let i=this.elementLayout,n=t.reduce((t,n)=>t+i.encode(n,e,r+t),0);return this.count instanceof s&&this.count.encode(t.length,e,r),n}}class S extends n{constructor(t,e,r){if(!(Array.isArray(t)&&t.reduce((t,e)=>t&&e instanceof n,!0)))throw TypeError("fields must be array of Layout instances");for(let i of("boolean"==typeof e&&void 0===r&&(r=e,e=void 0),t))if(0>
1i.span&&void 0===i.property)throw Error("fields cannot contain unnamed variable-length layout");let i=-1;try{i=t.reduce((t,e)=>t+e.getSpan(),0)}catch(t){}super(i,e),this.fields=t,this.decodePrefixes=!!r}getSpan(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);let r=0;try{r=this.fields.reduce((r,i)=>{let n=i.getSpan(t,e);return e+=n,r+n},0)}catch(t){throw RangeError("indeterminate span")}return r}decode(t,e){void 0===e&&(e=0);let r=this.makeDestinationObject();for(let i of this.fields)if(void 0!==i.property&&(r[i.property]=i.decode(t,e)),e+=i.getSpan(t,e),this.decodePrefixes&&t.length===e)break;return r}encode(t,e,r){void 0===r&&(r=0);let i=r,n=0,o=0;for(let i of this.fields){let s=i.span;if(o=0<s?s:0,void 0!==i.property){let n=t[i.property];void 0!==n&&(o=i.encode(n,e,r),0>s&&(s=i.getSpan(e,r)))}n=r,r+=s}return n+o-i}fromArray(t){let e=this.makeDestinationObject();for(let r of this.fields)void 0!==r.property&&0<t.length&&(e[r.property]=t.shift());return e}layoutFor(t){if("string"!=typeof t)throw TypeError("property must be string");for(let e of this.fields)if(e.property===t)return e}offsetOf(t){if("string"!=typeof t)throw TypeError("property must be string");let e=0;for(let r of this.fields){if(r.property===t)return e;0>r.span?e=-1:0<=e&&(e+=r.span)}}}class E{constructor(t){this.property=t}decode(){throw Error("UnionDiscriminator is abstract")}encode(){throw Error("UnionDiscriminator is abstract")}}class L extends E{constructor(t,e){if(!(t instanceof s&&t.isCount()))throw TypeError("layout must be an unsigned integer ExternalLayout");super(e||t.property||"variant"),this.layout=t}decode(t,e){return this.layout.decode(t,e)}encode(t,e,r){return this.layout.encode(t,e,r)}}class k extends n{constructor(t,e,r){let i=t instanceof a||t instanceof f;if(i)t=new L(new h(t));else if(t instanceof s&&t.isCount())t=new L(t);else if(!(t instanceof E))throw TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(void 0===e&&(e=null),!(null===e||e instanceof n))throw TypeError("defaultLayout must be null or a Layout");if(null!==e){if(0>e.span)throw Error("defaultLayout must have constant span");void 0===e.property&&(e=e.replicate("content"))}let o=-1;e&&0<=(o=e.span)&&i&&(o+=t.layout.span),super(o,r),this.discriminator=t,this.usesPrefixDiscriminator=i,this.defaultLayout=e,this.registry={};let u=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(t){return u(t)},this.configGetSourceVariant=function(t){u=t.bind(this)}}getSpan(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);let r=this.getVariant(t,e);if(!r)throw Error("unable to determine span for unrecognized variant");return r.getSpan(t,e)}defaultGetSourceVariant(t){if(t.hasOwnProperty(this.discriminator.property)){if(this.defaultLayout&&t.hasOwnProperty(this.defaultLayout.property))return;let e=this.registry[t[this.discriminator.property]];if(e&&(!e.layout||t.hasOwnProperty(e.property)))return e}else for(let e in this.registry){let r=this.registry[e];if(t.hasOwnProperty(r.property))return r}throw Error("unable to infer src variant")}decode(t,e){let r;void 0===e&&(e=0);let i=this.discriminator,n=i.decode(t,e),o=this.registry[n];if(void 0===o){let s=0;o=this.defaultLayout,this.usesPrefixDiscriminator&&(s=i.layout.span),(r=this.makeDestinationObject())[i.property]=n,r[o.property]=this.defaultLayout.decode(t,e+s)}else r=o.decode(t,e);return r}encode(t,e,r){void 0===r&&(r=0);let i=this.getSourceVariant(t);if(void 0===i){let i=this.discriminator,n=this.defaultLayout,o=0;return this.usesPrefixDiscriminator&&(o=i.layout.span),i.encode(t[i.property],e,r),o+n.encode(t[n.property],e,r+o)}return i.encode(t,e,r)}addVariant(t,e,r){let i=new $(this,t,e,r);return this.registry[t]=i,i}getVariant(t,e){let r=t;return i.isBuffer(t)&&(void 0===e&&(e=0),r=this.discriminator.decode(t,e)),this.registry[r]}}class $ extends n{constructor(t,e,r,i){if(!(t instanceof k))throw TypeError("union must be a Union");if(!Number.isInteger(e)||0>e)throw TypeError("variant must be a (non-negative) integer");if("string"==typeof r&&void 0===i&&(i=r,r=null),r){if(!(r instanceof n))throw TypeError("layout must be a Layout");
1if(null!==t.defaultLayout&&0<=r.span&&r.span>t.defaultLayout.span)throw Error("variant span exceeds span of containing union");if("string"!=typeof i)throw TypeError("variant must have a String property")}let o=t.span;0>t.span&&0<=(o=r?r.span:0)&&t.usesPrefixDiscriminator&&(o+=t.discriminator.layout.span),super(o,i),this.union=t,this.variant=e,this.layout=r||null}getSpan(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);let r=0;return this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),r+this.layout.getSpan(t,e+r)}decode(t,e){let r=this.makeDestinationObject();if(void 0===e&&(e=0),this!==this.union.getVariant(t,e))throw Error("variant mismatch");let i=0;return this.union.usesPrefixDiscriminator&&(i=this.union.discriminator.layout.span),this.layout?r[this.property]=this.layout.decode(t,e+i):this.property?r[this.property]=!0:this.union.usesPrefixDiscriminator&&(r[this.union.discriminator.property]=this.variant),r}encode(t,e,r){void 0===r&&(r=0);let i=0;if(this.union.usesPrefixDiscriminator&&(i=this.union.discriminator.layout.span),this.layout&&!t.hasOwnProperty(this.property))throw TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,e,r);let n=i;if(this.layout&&(this.layout.encode(t[this.property],e,r+i),n+=this.layout.getSpan(e,r+i),0<=this.union.span&&n>this.union.span))throw Error("encoded variant overruns containing union");return n}fromArray(t){if(this.layout)return this.layout.fromArray(t)}}function B(t){return 0>t&&(t+=0x100000000),t}class I extends n{constructor(t,e,r){if(!(t instanceof a||t instanceof f))throw TypeError("word must be a UInt or UIntBE layout");if("string"==typeof e&&void 0===r&&(r=e,e=void 0),4<t.span)throw RangeError("word cannot exceed 32 bits");super(t.span,r),this.word=t,this.msb=!!e,this.fields=[];let i=0;this._packedSetValue=function(t){return i=B(t),this},this._packedGetValue=function(){return i}}decode(t,e){let r=this.makeDestinationObject();void 0===e&&(e=0);let i=this.word.decode(t,e);for(let t of(this._packedSetValue(i),this.fields))void 0!==t.property&&(r[t.property]=t.decode(i));return r}encode(t,e,r){void 0===r&&(r=0);let i=this.word.decode(e,r);for(let e of(this._packedSetValue(i),this.fields))if(void 0!==e.property){let r=t[e.property];void 0!==r&&e.encode(r)}return this.word.encode(this._packedGetValue(),e,r)}addField(t,e){let r=new D(this,t,e);return this.fields.push(r),r}addBoolean(t){let e=new A(this,t);return this.fields.push(e),e}fieldFor(t){if("string"!=typeof t)throw TypeError("property must be string");for(let e of this.fields)if(e.property===t)return e}}class D{constructor(t,e,r){if(!(t instanceof I))throw TypeError("container must be a BitStructure");if(!Number.isInteger(e)||0>=e)throw TypeError("bits must be positive integer");let i=8*t.span,n=t.fields.reduce((t,e)=>t+e.bits,0);if(e+n>i)throw Error("bits too long for span remainder ("+(i-n)+" of "+i+" remain)");this.container=t,this.bits=e,this.valueMask=(1<<e)-1,32===e&&(this.valueMask=0xffffffff),this.start=n,this.container.msb&&(this.start=i-n-e),this.wordMask=B(this.valueMask<<this.start),this.property=r}decode(){return B(this.container._packedGetValue()&this.wordMask)>>>this.start}encode(t){if(!Number.isInteger(t)||t!==B(t&this.valueMask))throw TypeError(o("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);let e=this.container._packedGetValue(),r=B(t<<this.start);this.container._packedSetValue(B(e&~this.wordMask)|r)}}class A extends D{constructor(t,e){super(t,1,e)}decode(t,e){return!!D.prototype.decode.call(this,t,e)}encode(t){return"boolean"==typeof t&&(t*=1),D.prototype.encode.call(this,t)}}class O extends n{constructor(t,e){if(!(t instanceof s&&t.isCount()||Number.isInteger(t)&&0<=t))throw TypeError("length must be positive integer or an unsigned integer ExternalLayout");let r=-1;t instanceof s||(r=t),super(r,e),this.length=t}getSpan(t,e){let r=this.span;return 0>r&&(r=this.length.decode(t,e)),r}decode(t,e){void 0===e&&(e=0);let r=this.span;return 0>r&&(r=this.length.decode(t,e)),t.slice(e,e+r)}encode(t,e,r){let n=this.length;if(this.length instanceof s&&(n=t.length),!(i.isBuffer(t)&&n===t.length))throw TypeError(o("Blob.encode",this)+" requires (length "+n+") Buffer as src");if(r+n>e.length)throw RangeError("encoding overruns Buffer");return e.write(t.toString("hex"),r,n,"hex"),this.length instanceof s&&this.length.encode(n,e,r),n}}class T extends n{constructor(t){super(-1,t)}getSpan(t,e){if(!i.isBuffer(t))throw TypeError("b must be a Buffer");void 0===e&&(e=0);let r=e;for(;r<t.length&&0!==t[r];)r+=1;return 1+r-e}decode(t,e,r){void 0===e&&(e=0);let i=this.getSpan(t,e);return t.slice(e,e+i-1).toString("utf-8")}encode(t,e,r){void 0===r&&(r=0),"string"!=typeof t&&(t=t.toString());let n=new i(t,"utf8"),o=n.length;if(r+o>e.length)throw RangeError("encoding overruns Buffer");return n.copy(e,r),e[r+o]=0,o+1}}class U extends n{constructor(t,e){if("string"==typeof t&&void 0===e&&(e=t,t=void 0),void 0===t)t=-1;else if(!Number.isInteger(t))throw TypeError("maxSpan must be an integer");super(-1,e),this.maxSpan=t}getSpan(t,e){if(!i.isBuffer(t))throw TypeError("b must be a Buffer");return void 0===e&&(e=0),t.length-e}decode(t,e,r){void 0===e&&(e=0);let i=this.getSpan(t,e);if(0<=this.maxSpan&&this.maxSpan<i)throw RangeError("text length exceeds maxSpan");return t.slice(e,e+i).toString("utf-8")}encode(t,e,r){void 0===r&&(r=0),"string"!=typeof t&&(t=t.toString());let n=new i(t,"utf8"),o=n.length;if(0<=this.maxSpan&&this.maxSpan<o)throw RangeError("text length exceeds maxSpan");if(r+o>e.length)throw RangeError("encoding overruns Buffer");return n.copy(e,r),o}}class R extends n{constructor(t,e){super(0,e),this.value=t}decode(t,e,r){return this.value}encode(t,e,r){return 0}}e.ExternalLayout=s,e.GreedyCount=u,e.OffsetLayout=h,e.UInt=a,e.UIntBE=f,e.Int=l,e.IntBE=d,e.Float=w,e.FloatBE=M,e.Double=b,e.DoubleBE=x,e.Sequence=_,e.Structure=S,e.UnionDiscriminator=E,e.UnionLayoutDiscriminator=L,e.Union=k,e.VariantLayout=$,e.BitStructure=I,e.BitField=D,e.Boolean=A,e.Blob=O,e.CString=T,e.UTF8=U,e.Constant=R,e.greedy=(t,e)=>new u(t,e),e.offset=(t,e,r)=>new h(t,e,r),e.u8=t=>new a(1,t),e.u16=t=>new a(2,t),e.u24=t=>new a(3,t),e.u32=t=>new a(4,t),e.u40=t=>new a(5,t),e.u48=t=>new a(6,t),e.nu64=t=>new m(t),e.u16be=t=>new f(2,t),e.u24be=t=>new f(3,t),e.u32be=t=>new f(4,t),e.u40be=t=>new f(5,t),e.u48be=t=>new f(6,t),e.nu64be=t=>new g(t),e.s8=t=>new l(1,t),e.s16=t=>new l(2,t),e.s24=t=>new l(3,t),e.s32=t=>new l(4,t),e.s40=t=>new l(5,t),e.s48=t=>new l(6,t),e.ns64=t=>new y(t),e.s16be=t=>new d(2,t),e.s24be=t=>new d(3,t),e.s32be=t=>new d(4,t),e.s40be=t=>new d(5,t),e.s48be=t=>new d(6,t),e.ns64be=t=>new v(t),e.f32=t=>new w(t),e.f32be=t=>new M(t),e.f64=t=>new b(t),e.f64be=t=>new x(t),e.struct=(t,e,r)=>new S(t,e,r),e.bits=(t,e,r)=>new I(t,e,r),e.seq=(t,e,r)=>new _(t,e,r),e.union=(t,e,r)=>new k(t,e,r),e.unionLayoutDiscriminator=(t,e)=>new L(t,e),e.blob=(t,e)=>new O(t,e),e.cstr=t=>new T(t),e.utf8=(t,e)=>new U(t,e),e.const=(t,e)=>new R(t,e)},93966:t=>{"use strict";let e=/[\p{Lu}]/u,r=/[\p{Ll}]/u,i=/^[\p{Lu}](?![\p{Lu}])/gu,n=/([\p{Alpha}\p{N}_]|$)/u,o=/[_.\- ]+/,s=RegExp("^"+o.source),u=RegExp(o.source+n.source,"gu"),h=RegExp("\\d+"+n.source,"gu"),a=(t,n)=>{if(!("string"==typeof t||Array.isArray(t)))throw TypeError("Expected the input to be `string | string[]`");if(n={pascalCase:!1,preserveConsecutiveUppercase:!1,...n},0===(t=Array.isArray(t)?t.map(t=>t.trim()).filter(t=>t.length).join("-"):t.trim()).length)return"";let o=!1===n.locale?t=>t.toLowerCase():t=>t.toLocaleLowerCase(n.locale),a=!1===n.locale?t=>t.toUpperCase():t=>t.toLocaleUpperCase(n.locale);if(1===t.length)return n.pascalCase?a(t):o(t);if(t!==o(t)&&(t=((t,i,n)=>{let o=!1,s=!1,u=!1;for(let h=0;h<t.length;h++){let a=t[h];o&&e.test(a)?(t=t.slice(0,h)+"-"+t.slice(h),o=!1,u=s,s=!0,h++):s&&u&&r.test(a)?(t=t.slice(0,h-1)+"-"+t.slice(h-1),u=s,s=!1,o=!0):(o=i(a)===a&&n(a)!==a,u=s,s=n(a)===a&&i(a)!==a)}return t})(t,o,a)),t=t.replace(s,""),n.preserveConsecutiveUppercase){var f;f=t,i.lastIndex=0,t=f.replace(i,t=>o(t))}else t=o(t);return n.pascalCase&&(t=a(t.charAt(0))+t.slice(1)),((t,e)=>(u.lastIndex=0,h.lastIndex=0,t.replace(u,(t,r)=>e(r)).replace(h,t=>e(t))))(t,a)};t.exports=a,t.exports.default=a}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.