gxd-editer
Version:
简单的在线富文本编辑器,支持七牛图片上传
3 lines • 1.01 MB
JavaScript
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["editer"]=e(require("vue")):t["editer"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({0:function(t,e){},"00bb":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();function n(t,e,n,i){var r,o=this._iv;o?(r=o.slice(0),this._iv=void 0):r=this._prevBlock,i.encryptBlock(r,0);for(var a=0;a<n;a++)t[e+a]^=r[a]}return e.Encryptor=e.extend({processBlock:function(t,e){var i=this._cipher,r=i.blockSize;n.call(this,t,e,r,i),this._prevBlock=t.slice(e,e+r)}}),e.Decryptor=e.extend({processBlock:function(t,e){var i=this._cipher,r=i.blockSize,o=t.slice(e,e+r);n.call(this,t,e,r,i),this._prevBlock=o}}),e}(),t.mode.CFB}))},"00dc":function(t,e,n){(function(t){var i=n("58a2"),r=n("c24d"),o=n("561d");function a(e){var n=new t(r[e].prime,"hex"),i=new t(r[e].gen,"hex");return new o(n,i)}var s={binary:!0,hex:!0,base64:!0};function u(e,n,r,a){return t.isBuffer(n)||void 0===s[n]?u(e,"binary",n,r):(n=n||"binary",a=a||"binary",r=r||new t([2]),t.isBuffer(r)||(r=new t(r,a)),"number"===typeof e?new o(i(e,r),r,!0):(t.isBuffer(e)||(e=new t(e,n)),new o(e,r,!0)))}e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=a,e.createDiffieHellman=e.DiffieHellman=u}).call(this,n("b639").Buffer)},"0106":function(t,e,n){(function(t){(function(t,e){"use strict";function i(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a=n(13).Buffer}catch(E){}function s(t,e,n){for(var i=0,r=Math.min(t.length,n),o=e;o<r;o++){var a=t.charCodeAt(o)-48;i<<=4,i|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return i}function u(t,e,n,i){for(var r=0,o=Math.min(t.length,n),a=e;a<o;a++){var s=t.charCodeAt(a)-48;r*=i,r+=s>=49?s-49+10:s>=17?s-17+10:s}return r}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 t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),i(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var r=0;"-"===t[0]&&r++,16===e?this._parseHex(t,r):this._parseBase(t,e,r),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){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):(i(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){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=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var o,a,s=0;if("be"===n)for(r=t.length-1,o=0;r>=0;r-=3)a=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);else if("le"===n)for(r=0,o=0;r<t.length;r+=3)a=t[r]|t[r+1]<<8|t[r+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){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,r,o=0;for(n=t.length-6,i=0;n>=e;n-=6)r=s(t,n,n+6),this.words[i]|=r<<o&67108863,this.words[i+1]|=r>>>26-o&4194303,o+=24,o>=26&&(o-=26,i++);n+6!==e&&(r=s(t,e,n+6),this.words[i]|=r<<o&67108863,this.words[i+1]|=r>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var i=0,r=1;r<=67108863;r*=e)i++;i--,r=r/e|0;for(var o=t.length-n,a=o%i,s=Math.min(o,o-a)+n,h=0,f=n;f<s;f+=i)h=u(t,f,f+i,e),this.imuln(r),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!==a){var l=1;for(h=u(t,f,t.length,e),f=0;f<a;f++)l*=e;this.imuln(l),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}},o.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},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var h=["","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],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 c(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var i=n/26|0,r=n%26;e[n]=(t.words[i]&1<<r)>>>r}return e}function d(t,e,n){n.negative=e.negative^t.negative;var i=t.length+e.length|0;n.length=i,i=i-1|0;var r=0|t.words[0],o=0|e.words[0],a=r*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var h=1;h<i;h++){for(var f=u>>>26,l=67108863&u,c=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=c;d++){var p=h-d|0;r=0|t.words[p],o=0|e.words[d],a=r*o+l,f+=a/67108864|0,l=67108863&a}n.words[h]=0|l,u=0|f}return 0!==u?n.words[h]=0|u:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(t=t||10,e=0|e||1,16===t||"hex"===t){n="";for(var r=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<r|o)).toString(16);o=s>>>24-r&16777215,n=0!==o||a!==this.length-1?h[6-u.length]+u+n:u+n,r+=2,r>=26&&(r-=26,a--)}0!==o&&(n=o.toString(16)+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var c=f[t],d=l[t];n="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(d).toString(t);p=p.idivn(d),n=p.isZero()?m+n:h[c-m.length]+m+n}this.isZero()&&(n="0"+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return i("undefined"!==typeof a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var r=this.byteLength(),o=n||Math.max(1,r);i(r<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,h=new t(o),f=this.clone();if(u){for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),h[s]=a;for(;s<o;s++)h[s]=0}else{for(s=0;s<o-r;s++)h[s]=0;for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),h[o-s-1]=a}return h},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)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){while(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(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return i(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var i=0;i<n.length;i++)this.words[i]=e.words[i]^n.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(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){i("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var r=0;r<e;r++)this.words[r]=67108863&~this.words[r];return n>0&&(this.words[r]=~this.words[r]&67108863>>26-n),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 n=t/26|0,r=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<r:this.words[n]&~(1<<r),this.strip()},o.prototype.iadd=function(t){var e,n,i;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?(n=this,i=t):(n=t,i=this);for(var r=0,o=0;o<i.length;o++)e=(0|n.words[o])+(0|i.words[o])+r,this.words[o]=67108863&e,r=e>>>26;for(;0!==r&&o<n.length;o++)e=(0|n.words[o])+r,this.words[o]=67108863&e,r=e>>>26;if(this.length=n.length,0!==r)this.words[this.length]=r,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.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=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 n,i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(n=this,i=t):(n=t,i=this);for(var o=0,a=0;a<i.length;a++)e=(0|n.words[a])-(0|i.words[a])+o,o=e>>26,this.words[a]=67108863&e;for(;0!==o&&a<n.length;a++)e=(0|n.words[a])+o,o=e>>26,this.words[a]=67108863&e;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,n){var i,r,o,a=t.words,s=e.words,u=n.words,h=0,f=0|a[0],l=8191&f,c=f>>>13,d=0|a[1],p=8191&d,m=d>>>13,v=0|a[2],g=8191&v,b=v>>>13,y=0|a[3],w=8191&y,M=y>>>13,_=0|a[4],A=8191&_,S=_>>>13,x=0|a[5],E=8191&x,k=x>>>13,B=0|a[6],R=8191&B,C=B>>>13,I=0|a[7],T=8191&I,N=I>>>13,O=0|a[8],j=8191&O,P=O>>>13,L=0|a[9],D=8191&L,z=L>>>13,U=0|s[0],F=8191&U,H=U>>>13,q=0|s[1],Q=8191&q,Y=q>>>13,K=0|s[2],W=8191&K,Z=K>>>13,V=0|s[3],G=8191&V,$=V>>>13,J=0|s[4],X=8191&J,tt=J>>>13,et=0|s[5],nt=8191&et,it=et>>>13,rt=0|s[6],ot=8191&rt,at=rt>>>13,st=0|s[7],ut=8191&st,ht=st>>>13,ft=0|s[8],lt=8191&ft,ct=ft>>>13,dt=0|s[9],pt=8191&dt,mt=dt>>>13;n.negative=t.negative^e.negative,n.length=19,i=Math.imul(l,F),r=Math.imul(l,H),r=r+Math.imul(c,F)|0,o=Math.imul(c,H);var vt=(h+i|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,i=Math.imul(p,F),r=Math.imul(p,H),r=r+Math.imul(m,F)|0,o=Math.imul(m,H),i=i+Math.imul(l,Q)|0,r=r+Math.imul(l,Y)|0,r=r+Math.imul(c,Q)|0,o=o+Math.imul(c,Y)|0;var gt=(h+i|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,i=Math.imul(g,F),r=Math.imul(g,H),r=r+Math.imul(b,F)|0,o=Math.imul(b,H),i=i+Math.imul(p,Q)|0,r=r+Math.imul(p,Y)|0,r=r+Math.imul(m,Q)|0,o=o+Math.imul(m,Y)|0,i=i+Math.imul(l,W)|0,r=r+Math.imul(l,Z)|0,r=r+Math.imul(c,W)|0,o=o+Math.imul(c,Z)|0;var bt=(h+i|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,i=Math.imul(w,F),r=Math.imul(w,H),r=r+Math.imul(M,F)|0,o=Math.imul(M,H),i=i+Math.imul(g,Q)|0,r=r+Math.imul(g,Y)|0,r=r+Math.imul(b,Q)|0,o=o+Math.imul(b,Y)|0,i=i+Math.imul(p,W)|0,r=r+Math.imul(p,Z)|0,r=r+Math.imul(m,W)|0,o=o+Math.imul(m,Z)|0,i=i+Math.imul(l,G)|0,r=r+Math.imul(l,$)|0,r=r+Math.imul(c,G)|0,o=o+Math.imul(c,$)|0;var yt=(h+i|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,i=Math.imul(A,F),r=Math.imul(A,H),r=r+Math.imul(S,F)|0,o=Math.imul(S,H),i=i+Math.imul(w,Q)|0,r=r+Math.imul(w,Y)|0,r=r+Math.imul(M,Q)|0,o=o+Math.imul(M,Y)|0,i=i+Math.imul(g,W)|0,r=r+Math.imul(g,Z)|0,r=r+Math.imul(b,W)|0,o=o+Math.imul(b,Z)|0,i=i+Math.imul(p,G)|0,r=r+Math.imul(p,$)|0,r=r+Math.imul(m,G)|0,o=o+Math.imul(m,$)|0,i=i+Math.imul(l,X)|0,r=r+Math.imul(l,tt)|0,r=r+Math.imul(c,X)|0,o=o+Math.imul(c,tt)|0;var wt=(h+i|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,i=Math.imul(E,F),r=Math.imul(E,H),r=r+Math.imul(k,F)|0,o=Math.imul(k,H),i=i+Math.imul(A,Q)|0,r=r+Math.imul(A,Y)|0,r=r+Math.imul(S,Q)|0,o=o+Math.imul(S,Y)|0,i=i+Math.imul(w,W)|0,r=r+Math.imul(w,Z)|0,r=r+Math.imul(M,W)|0,o=o+Math.imul(M,Z)|0,i=i+Math.imul(g,G)|0,r=r+Math.imul(g,$)|0,r=r+Math.imul(b,G)|0,o=o+Math.imul(b,$)|0,i=i+Math.imul(p,X)|0,r=r+Math.imul(p,tt)|0,r=r+Math.imul(m,X)|0,o=o+Math.imul(m,tt)|0,i=i+Math.imul(l,nt)|0,r=r+Math.imul(l,it)|0,r=r+Math.imul(c,nt)|0,o=o+Math.imul(c,it)|0;var Mt=(h+i|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,i=Math.imul(R,F),r=Math.imul(R,H),r=r+Math.imul(C,F)|0,o=Math.imul(C,H),i=i+Math.imul(E,Q)|0,r=r+Math.imul(E,Y)|0,r=r+Math.imul(k,Q)|0,o=o+Math.imul(k,Y)|0,i=i+Math.imul(A,W)|0,r=r+Math.imul(A,Z)|0,r=r+Math.imul(S,W)|0,o=o+Math.imul(S,Z)|0,i=i+Math.imul(w,G)|0,r=r+Math.imul(w,$)|0,r=r+Math.imul(M,G)|0,o=o+Math.imul(M,$)|0,i=i+Math.imul(g,X)|0,r=r+Math.imul(g,tt)|0,r=r+Math.imul(b,X)|0,o=o+Math.imul(b,tt)|0,i=i+Math.imul(p,nt)|0,r=r+Math.imul(p,it)|0,r=r+Math.imul(m,nt)|0,o=o+Math.imul(m,it)|0,i=i+Math.imul(l,ot)|0,r=r+Math.imul(l,at)|0,r=r+Math.imul(c,ot)|0,o=o+Math.imul(c,at)|0;var _t=(h+i|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,i=Math.imul(T,F),r=Math.imul(T,H),r=r+Math.imul(N,F)|0,o=Math.imul(N,H),i=i+Math.imul(R,Q)|0,r=r+Math.imul(R,Y)|0,r=r+Math.imul(C,Q)|0,o=o+Math.imul(C,Y)|0,i=i+Math.imul(E,W)|0,r=r+Math.imul(E,Z)|0,r=r+Math.imul(k,W)|0,o=o+Math.imul(k,Z)|0,i=i+Math.imul(A,G)|0,r=r+Math.imul(A,$)|0,r=r+Math.imul(S,G)|0,o=o+Math.imul(S,$)|0,i=i+Math.imul(w,X)|0,r=r+Math.imul(w,tt)|0,r=r+Math.imul(M,X)|0,o=o+Math.imul(M,tt)|0,i=i+Math.imul(g,nt)|0,r=r+Math.imul(g,it)|0,r=r+Math.imul(b,nt)|0,o=o+Math.imul(b,it)|0,i=i+Math.imul(p,ot)|0,r=r+Math.imul(p,at)|0,r=r+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0,i=i+Math.imul(l,ut)|0,r=r+Math.imul(l,ht)|0,r=r+Math.imul(c,ut)|0,o=o+Math.imul(c,ht)|0;var At=(h+i|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(At>>>26)|0,At&=67108863,i=Math.imul(j,F),r=Math.imul(j,H),r=r+Math.imul(P,F)|0,o=Math.imul(P,H),i=i+Math.imul(T,Q)|0,r=r+Math.imul(T,Y)|0,r=r+Math.imul(N,Q)|0,o=o+Math.imul(N,Y)|0,i=i+Math.imul(R,W)|0,r=r+Math.imul(R,Z)|0,r=r+Math.imul(C,W)|0,o=o+Math.imul(C,Z)|0,i=i+Math.imul(E,G)|0,r=r+Math.imul(E,$)|0,r=r+Math.imul(k,G)|0,o=o+Math.imul(k,$)|0,i=i+Math.imul(A,X)|0,r=r+Math.imul(A,tt)|0,r=r+Math.imul(S,X)|0,o=o+Math.imul(S,tt)|0,i=i+Math.imul(w,nt)|0,r=r+Math.imul(w,it)|0,r=r+Math.imul(M,nt)|0,o=o+Math.imul(M,it)|0,i=i+Math.imul(g,ot)|0,r=r+Math.imul(g,at)|0,r=r+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0,i=i+Math.imul(p,ut)|0,r=r+Math.imul(p,ht)|0,r=r+Math.imul(m,ut)|0,o=o+Math.imul(m,ht)|0,i=i+Math.imul(l,lt)|0,r=r+Math.imul(l,ct)|0,r=r+Math.imul(c,lt)|0,o=o+Math.imul(c,ct)|0;var St=(h+i|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(St>>>26)|0,St&=67108863,i=Math.imul(D,F),r=Math.imul(D,H),r=r+Math.imul(z,F)|0,o=Math.imul(z,H),i=i+Math.imul(j,Q)|0,r=r+Math.imul(j,Y)|0,r=r+Math.imul(P,Q)|0,o=o+Math.imul(P,Y)|0,i=i+Math.imul(T,W)|0,r=r+Math.imul(T,Z)|0,r=r+Math.imul(N,W)|0,o=o+Math.imul(N,Z)|0,i=i+Math.imul(R,G)|0,r=r+Math.imul(R,$)|0,r=r+Math.imul(C,G)|0,o=o+Math.imul(C,$)|0,i=i+Math.imul(E,X)|0,r=r+Math.imul(E,tt)|0,r=r+Math.imul(k,X)|0,o=o+Math.imul(k,tt)|0,i=i+Math.imul(A,nt)|0,r=r+Math.imul(A,it)|0,r=r+Math.imul(S,nt)|0,o=o+Math.imul(S,it)|0,i=i+Math.imul(w,ot)|0,r=r+Math.imul(w,at)|0,r=r+Math.imul(M,ot)|0,o=o+Math.imul(M,at)|0,i=i+Math.imul(g,ut)|0,r=r+Math.imul(g,ht)|0,r=r+Math.imul(b,ut)|0,o=o+Math.imul(b,ht)|0,i=i+Math.imul(p,lt)|0,r=r+Math.imul(p,ct)|0,r=r+Math.imul(m,lt)|0,o=o+Math.imul(m,ct)|0,i=i+Math.imul(l,pt)|0,r=r+Math.imul(l,mt)|0,r=r+Math.imul(c,pt)|0,o=o+Math.imul(c,mt)|0;var xt=(h+i|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,i=Math.imul(D,Q),r=Math.imul(D,Y),r=r+Math.imul(z,Q)|0,o=Math.imul(z,Y),i=i+Math.imul(j,W)|0,r=r+Math.imul(j,Z)|0,r=r+Math.imul(P,W)|0,o=o+Math.imul(P,Z)|0,i=i+Math.imul(T,G)|0,r=r+Math.imul(T,$)|0,r=r+Math.imul(N,G)|0,o=o+Math.imul(N,$)|0,i=i+Math.imul(R,X)|0,r=r+Math.imul(R,tt)|0,r=r+Math.imul(C,X)|0,o=o+Math.imul(C,tt)|0,i=i+Math.imul(E,nt)|0,r=r+Math.imul(E,it)|0,r=r+Math.imul(k,nt)|0,o=o+Math.imul(k,it)|0,i=i+Math.imul(A,ot)|0,r=r+Math.imul(A,at)|0,r=r+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,i=i+Math.imul(w,ut)|0,r=r+Math.imul(w,ht)|0,r=r+Math.imul(M,ut)|0,o=o+Math.imul(M,ht)|0,i=i+Math.imul(g,lt)|0,r=r+Math.imul(g,ct)|0,r=r+Math.imul(b,lt)|0,o=o+Math.imul(b,ct)|0,i=i+Math.imul(p,pt)|0,r=r+Math.imul(p,mt)|0,r=r+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Et=(h+i|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,i=Math.imul(D,W),r=Math.imul(D,Z),r=r+Math.imul(z,W)|0,o=Math.imul(z,Z),i=i+Math.imul(j,G)|0,r=r+Math.imul(j,$)|0,r=r+Math.imul(P,G)|0,o=o+Math.imul(P,$)|0,i=i+Math.imul(T,X)|0,r=r+Math.imul(T,tt)|0,r=r+Math.imul(N,X)|0,o=o+Math.imul(N,tt)|0,i=i+Math.imul(R,nt)|0,r=r+Math.imul(R,it)|0,r=r+Math.imul(C,nt)|0,o=o+Math.imul(C,it)|0,i=i+Math.imul(E,ot)|0,r=r+Math.imul(E,at)|0,r=r+Math.imul(k,ot)|0,o=o+Math.imul(k,at)|0,i=i+Math.imul(A,ut)|0,r=r+Math.imul(A,ht)|0,r=r+Math.imul(S,ut)|0,o=o+Math.imul(S,ht)|0,i=i+Math.imul(w,lt)|0,r=r+Math.imul(w,ct)|0,r=r+Math.imul(M,lt)|0,o=o+Math.imul(M,ct)|0,i=i+Math.imul(g,pt)|0,r=r+Math.imul(g,mt)|0,r=r+Math.imul(b,pt)|0,o=o+Math.imul(b,mt)|0;var kt=(h+i|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,i=Math.imul(D,G),r=Math.imul(D,$),r=r+Math.imul(z,G)|0,o=Math.imul(z,$),i=i+Math.imul(j,X)|0,r=r+Math.imul(j,tt)|0,r=r+Math.imul(P,X)|0,o=o+Math.imul(P,tt)|0,i=i+Math.imul(T,nt)|0,r=r+Math.imul(T,it)|0,r=r+Math.imul(N,nt)|0,o=o+Math.imul(N,it)|0,i=i+Math.imul(R,ot)|0,r=r+Math.imul(R,at)|0,r=r+Math.imul(C,ot)|0,o=o+Math.imul(C,at)|0,i=i+Math.imul(E,ut)|0,r=r+Math.imul(E,ht)|0,r=r+Math.imul(k,ut)|0,o=o+Math.imul(k,ht)|0,i=i+Math.imul(A,lt)|0,r=r+Math.imul(A,ct)|0,r=r+Math.imul(S,lt)|0,o=o+Math.imul(S,ct)|0,i=i+Math.imul(w,pt)|0,r=r+Math.imul(w,mt)|0,r=r+Math.imul(M,pt)|0,o=o+Math.imul(M,mt)|0;var Bt=(h+i|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,i=Math.imul(D,X),r=Math.imul(D,tt),r=r+Math.imul(z,X)|0,o=Math.imul(z,tt),i=i+Math.imul(j,nt)|0,r=r+Math.imul(j,it)|0,r=r+Math.imul(P,nt)|0,o=o+Math.imul(P,it)|0,i=i+Math.imul(T,ot)|0,r=r+Math.imul(T,at)|0,r=r+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,i=i+Math.imul(R,ut)|0,r=r+Math.imul(R,ht)|0,r=r+Math.imul(C,ut)|0,o=o+Math.imul(C,ht)|0,i=i+Math.imul(E,lt)|0,r=r+Math.imul(E,ct)|0,r=r+Math.imul(k,lt)|0,o=o+Math.imul(k,ct)|0,i=i+Math.imul(A,pt)|0,r=r+Math.imul(A,mt)|0,r=r+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Rt=(h+i|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,i=Math.imul(D,nt),r=Math.imul(D,it),r=r+Math.imul(z,nt)|0,o=Math.imul(z,it),i=i+Math.imul(j,ot)|0,r=r+Math.imul(j,at)|0,r=r+Math.imul(P,ot)|0,o=o+Math.imul(P,at)|0,i=i+Math.imul(T,ut)|0,r=r+Math.imul(T,ht)|0,r=r+Math.imul(N,ut)|0,o=o+Math.imul(N,ht)|0,i=i+Math.imul(R,lt)|0,r=r+Math.imul(R,ct)|0,r=r+Math.imul(C,lt)|0,o=o+Math.imul(C,ct)|0,i=i+Math.imul(E,pt)|0,r=r+Math.imul(E,mt)|0,r=r+Math.imul(k,pt)|0,o=o+Math.imul(k,mt)|0;var Ct=(h+i|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,i=Math.imul(D,ot),r=Math.imul(D,at),r=r+Math.imul(z,ot)|0,o=Math.imul(z,at),i=i+Math.imul(j,ut)|0,r=r+Math.imul(j,ht)|0,r=r+Math.imul(P,ut)|0,o=o+Math.imul(P,ht)|0,i=i+Math.imul(T,lt)|0,r=r+Math.imul(T,ct)|0,r=r+Math.imul(N,lt)|0,o=o+Math.imul(N,ct)|0,i=i+Math.imul(R,pt)|0,r=r+Math.imul(R,mt)|0,r=r+Math.imul(C,pt)|0,o=o+Math.imul(C,mt)|0;var It=(h+i|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(It>>>26)|0,It&=67108863,i=Math.imul(D,ut),r=Math.imul(D,ht),r=r+Math.imul(z,ut)|0,o=Math.imul(z,ht),i=i+Math.imul(j,lt)|0,r=r+Math.imul(j,ct)|0,r=r+Math.imul(P,lt)|0,o=o+Math.imul(P,ct)|0,i=i+Math.imul(T,pt)|0,r=r+Math.imul(T,mt)|0,r=r+Math.imul(N,pt)|0,o=o+Math.imul(N,mt)|0;var Tt=(h+i|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,i=Math.imul(D,lt),r=Math.imul(D,ct),r=r+Math.imul(z,lt)|0,o=Math.imul(z,ct),i=i+Math.imul(j,pt)|0,r=r+Math.imul(j,mt)|0,r=r+Math.imul(P,pt)|0,o=o+Math.imul(P,mt)|0;var Nt=(h+i|0)+((8191&r)<<13)|0;h=(o+(r>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,i=Math.imul(D,pt),r=Math.imul(D,mt),r=r+Math.imul(z,pt)|0,o=Math.imul(z,mt);var Ot=(h+i|0)+((8191&r)<<13)|0;return h=(o+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,u[0]=vt,u[1]=gt,u[2]=bt,u[3]=yt,u[4]=wt,u[5]=Mt,u[6]=_t,u[7]=At,u[8]=St,u[9]=xt,u[10]=Et,u[11]=kt,u[12]=Bt,u[13]=Rt,u[14]=Ct,u[15]=It,u[16]=Tt,u[17]=Nt,u[18]=Ot,0!==h&&(u[19]=h,n.length++),n};function m(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var i=0,r=0,o=0;o<n.length-1;o++){var a=r;r=0;for(var s=67108863&i,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var f=o-h,l=0|t.words[f],c=0|e.words[h],d=l*c,p=67108863&d;a=a+(d/67108864|0)|0,p=p+s|0,s=67108863&p,a=a+(p>>>26)|0,r+=a>>>26,a&=67108863}n.words[o]=s,i=a,a=r}return 0!==i?n.words[o]=i:n.length--,n.strip()}function v(t,e,n){var i=new g;return i.mulp(t,e,n)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=d),o.prototype.mulTo=function(t,e){var n,i=this.length+t.length;return n=10===this.length&&10===t.length?p(this,t,e):i<63?d(this,t,e):i<1024?m(this,t,e):v(this,t,e),n},g.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,n,t);return e},g.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var i=0,r=0;r<e;r++)i|=(1&t)<<e-r-1,t>>=1;return i},g.prototype.permute=function(t,e,n,i,r,o){for(var a=0;a<o;a++)i[a]=e[t[a]],r[a]=n[t[a]]},g.prototype.transform=function(t,e,n,i,r,o){this.permute(o,t,e,n,i,r);for(var a=1;a<r;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),h=Math.sin(2*Math.PI/s),f=0;f<r;f+=s)for(var l=u,c=h,d=0;d<a;d++){var p=n[f+d],m=i[f+d],v=n[f+d+a],g=i[f+d+a],b=l*v-c*g;g=l*g+c*v,v=b,n[f+d]=p+v,i[f+d]=m+g,n[f+d+a]=p-v,i[f+d+a]=m-g,d!==s&&(b=u*l-h*c,c=u*c+h*l,l=b)}},g.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),i=1&n,r=0;for(n=n/2|0;n;n>>>=1)r++;return 1<<r+1+i},g.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var i=0;i<n/2;i++){var r=t[i];t[i]=t[n-i-1],t[n-i-1]=r,r=e[i],e[i]=-e[n-i-1],e[n-i-1]=-r}},g.prototype.normalize13b=function(t,e){for(var n=0,i=0;i<e/2;i++){var r=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+n;t[i]=67108863&r,n=r<67108864?0:r/67108864|0}return t},g.prototype.convert13b=function(t,e,n,r){for(var o=0,a=0;a<e;a++)o+=0|t[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<r;++a)n[a]=0;i(0===o),i(0===(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},g.prototype.mulp=function(t,e,n){var i=2*this.guessLen13b(t.length,e.length),r=this.makeRBT(i),o=this.stub(i),a=new Array(i),s=new Array(i),u=new Array(i),h=new Array(i),f=new Array(i),l=new Array(i),c=n.words;c.length=i,this.convert13b(t.words,t.length,a,i),this.convert13b(e.words,e.length,h,i),this.transform(a,o,s,u,i,r),this.transform(h,o,f,l,i,r);for(var d=0;d<i;d++){var p=s[d]*f[d]-u[d]*l[d];u[d]=s[d]*l[d]+u[d]*f[d],s[d]=p}return this.conjugate(s,u,i),this.transform(s,u,c,o,i,r),this.conjugate(c,o,i),this.normalize13b(c,i),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),v(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){i("number"===typeof t),i(t<67108864);for(var e=0,n=0;n<this.length;n++){var r=(0|this.words[n])*t,o=(67108863&r)+(67108863&e);e>>=26,e+=r/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=c(t);if(0===e.length)return new o(1);for(var n=this,i=0;i<e.length;i++,n=n.sqr())if(0!==e[i])break;if(++i<e.length)for(var r=n.sqr();i<e.length;i++,r=r.sqr())0!==e[i]&&(n=n.mul(r));return n},o.prototype.iushln=function(t){i("number"===typeof t&&t>=0);var e,n=t%26,r=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<n;this.words[e]=u|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e<r;e++)this.words[e]=0;this.length+=r}return this.strip()},o.prototype.ishln=function(t){return i(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var r;i("number"===typeof t&&t>=0),r=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=n;if(r-=a,r=Math.max(0,r),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 f=0;for(h=this.length-1;h>=0&&(0!==f||h>=r);h--){var l=0|this.words[h];this.words[h]=f<<26-o|l>>>o,f=l&s}return u&&0!==f&&(u.words[u.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return i(0===this.negative),this.iushrn(t,e,n)},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,n=(t-e)/26,r=1<<e;if(this.length<=n)return!1;var o=this.words[n];return!!(o&r)},o.prototype.imaskn=function(t){i("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var r=67108863^67108863>>>e<<e;this.words[this.length-1]&=r}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return i("number"===typeof t),i(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var 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},o.prototype.isubn=function(t){if(i("number"===typeof t),i(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()},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,n){var r,o,a=t.length+n;this._expand(a);var s=0;for(r=0;r<t.length;r++){o=(0|this.words[r+n])+s;var u=(0|t.words[r])*e;o-=67108863&u,s=(o>>26)-(u/67108864|0),this.words[r+n]=67108863&o}for(;r<this.length-n;r++)o=(0|this.words[r+n])+s,s=o>>26,this.words[r+n]=67108863&o;if(0===s)return this.strip();for(i(-1===s),s=0,r=0;r<this.length;r++)o=-(0|this.words[r])+s,s=o>>26,this.words[r]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=this.length-t.length,i=this.clone(),r=t,a=0|r.words[r.length-1],s=this._countBits(a);n=26-s,0!==n&&(r=r.ushln(n),i.iushln(n),a=0|r.words[r.length-1]);var u,h=i.length-r.length;if("mod"!==e){u=new o(null),u.length=h+1,u.words=new Array(u.length);for(var f=0;f<u.length;f++)u.words[f]=0}var l=i.clone()._ishlnsubmul(r,1,h);0===l.negative&&(i=l,u&&(u.words[h]=1));for(var c=h-1;c>=0;c--){var d=67108864*(0|i.words[r.length+c])+(0|i.words[r.length+c-1]);d=Math.min(d/a|0,67108863),i._ishlnsubmul(r,d,c);while(0!==i.negative)d--,i.negative=0,i._ishlnsubmul(r,1,c),i.isZero()||(i.negative^=1);u&&(u.words[c]=d)}return u&&u.strip(),i.strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:u||null,mod:i}},o.prototype.divmod=function(t,e,n){return i(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(r=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:r,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(r=s.div.neg()),{div:r,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{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.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,a,s},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 n=0!==e.div.negative?e.mod.isub(t):e.mod,i=t.ushrn(1),r=t.andln(1),o=n.cmp(i);return o<0||1===r&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){i(t<=67108863);for(var e=(1<<26)%t,n=0,r=this.length-1;r>=0;r--)n=(e*n+(0|this.words[r]))%t;return n},o.prototype.idivn=function(t){i(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var r=(0|this.words[n])+67108864*e;this.words[n]=r/t|0,e=r%t}return this.strip()},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,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var r=new o(1),a=new o(0),s=new o(0),u=new o(1),h=0;while(e.isEven()&&n.isEven())e.iushrn(1),n.iushrn(1),++h;var f=n.clone(),l=e.clone();while(!e.isZero()){for(var c=0,d=1;0===(e.words[0]&d)&&c<26;++c,d<<=1);if(c>0){e.iushrn(c);while(c-- >0)(r.isOdd()||a.isOdd())&&(r.iadd(f),a.isub(l)),r.iushrn(1),a.iushrn(1)}for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0){n.iushrn(p);while(p-- >0)(s.isOdd()||u.isOdd())&&(s.iadd(f),u.isub(l)),s.iushrn(1),u.iushrn(1)}e.cmp(n)>=0?(e.isub(n),r.isub(s),a.isub(u)):(n.isub(e),s.isub(r),u.isub(a))}return{a:s,b:u,gcd:n.iushln(h)}},o.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var r,a=new o(1),s=new o(0),u=n.clone();while(e.cmpn(1)>0&&n.cmpn(1)>0){for(var h=0,f=1;0===(e.words[0]&f)&&h<26;++h,f<<=1);if(h>0){e.iushrn(h);while(h-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}for(var l=0,c=1;0===(n.words[0]&c)&&l<26;++l,c<<=1);if(l>0){n.iushrn(l);while(l-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return r=0===e.cmpn(1)?a:s,r.cmpn(0)<0&&r.iadd(t),r},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var i=0;e.isEven()&&n.isEven();i++)e.iushrn(1),n.iushrn(1);do{while(e.isEven())e.iushrn(1);while(n.isEven())n.iushrn(1);var r=e.cmp(n);if(r<0){var o=e;e=n,n=o}else if(0===r||0===n.cmpn(1))break;e.isub(n)}while(1);return n.iushln(i)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){i("number"===typeof t);var e=t%26,n=(t-e)/26,r=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=r,this;for(var o=r,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),i(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:r<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,n=this.length-1;n>=0;n--){var i=0|this.words[n],r=0|t.words[n];if(i!==r){i<r?e=-1:i>r&&(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 this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new S(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 b={k256:null,p224:null,p192:null,p25519:null};function y(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 w(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(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 x(t){S.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)}y.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),n=this.imulK(n),n=n.iadd(this.tmp),e=n.bitLength()}while(e>this.n);var i=e<this.n?-1:n.ucmp(this.p);return 0===i?(n.words[0]=0,n.length=1):i>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},r(w,y),w.prototype.split=function(t,e){for(var n=4194303,i=Math.min(t.length,9),r=0;r<i;r++)e.words[r]=t.words[r];if(e.length=i,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&n,r=10;r<t.length;r++){var a=0|t.words[r];t.words[r-10]=(a&n)<<4|o>>>22,o=a}o>>>=22,t.words[r-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var i=0|t.words[n];e+=977*i,t.words[n]=67108863&e,e=64*i+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},r(M,y),r(_,y),r(A,y),A.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var i=19*(0|t.words[n])+e,r=67108863&i;i>>>=26,t.words[n]=r,e=i}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new w;else if("p224"===t)e=new M;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new A}return b[t]=e,e},S.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){i(0===(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},S.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}var r=this.m.subn(1),a=0;while(!r.isZero()&&0===r.andln(1))a++,r.iushrn(1);i(!r.isZero());var s=new o(1).toRed(this),u=s.redNeg(),h=this.m.subn(1).iushrn(1),f=this.m.bitLength();f=new o(2*f*f).toRed(this);while(0!==this.pow(f,h).cmp(u))f.redIAdd(u);var l=this.pow(f,r),c=this.pow(t,r.addn(1).iushrn(1)),d=this.pow(t,r),p=a;while(0!==d.cmp(s)){for(var m=d,v=0;0!==m.cmp(s);v++)m=m.redSqr();i(v<p);var g=this.pow(l,new o(1).iushln(p-v-1));c=c.redMul(g),l=g.redSqr(),d=d.redMul(l),p=v}return c},S.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=4,i=new Array(1<<n);i[0]=new o(1).toRed(this),i[1]=t;for(var r=2;r<i.length;r++)i[r]=this.mul(i[r-1],t);var a=i[0],s=0,u=0,h=e.bitLength()%26;for(0===h&&(h=26),r=e.length-1;r>=0;r--){for(var f=e.words[r],l=h-1;l>=0;l--){var c=f>>l&1;a!==i[0]&&(a=this.sqr(a)),0!==c||0!==s?(s<<=1,s|=c,u++,(u===n||0===r&&0===l)&&(a=this.mul(a,i[s]),u=0,s=0)):u=0}h=26}return a},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new x(t)},r(x,S),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},x.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=n.isub(i).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=n.isub(i).iushrn(this.shift),a=r;return r.cmp(this.m)>=0?a=r.isub(this.m):r.cmpn(0)<0&&(a=r.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,n("62e4")(t))},"0145":function(t,e){e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},"0184":function(t,e,n){"use strict";var i=n("da3e");function r(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}t.exports=r,r.prototype._init=function(){},r.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},r.prototype._buffer=function(t,e){for(var n=Math.min(this.buffer.length-this.bufferOff,t.length-e),i=0;i<n;i++)this.buffer[this.bufferOff+i]=t[e+i];return this.bufferOff+=n,n},r.prototype._flushBuffer=function(t,e){return this._update(this.buffer,0,t,e),this.bufferOff=0,this.blockSize},r.prototype._updateEncrypt=function(t){var e=0,n=0,i=(this.bufferOff+t.length)/this.blockSize|0,r=new Array(i*this.blockSize);0!==this.bufferOff&&(e+=this._buffer(t,e),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(r,n)));for(var o=t.length-(t.length-e)%this.blockSize;e<o;e+=this.blockSize)this._update(t,e,r,n),n+=this.blockSize;for(;e<t.length;e++,this.bufferOff++)this.buffer[this.bufferOff]=t[e];return r},r.prototype._updateDecrypt=function(t){for(var e=0,n=0,i=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,r=new Array(i*this.blockSize);i>0;i--)e+=this._buffer(t,e),n+=this._flushBuffer(r,n);return e+=this._buffer(t,e),r},r.prototype.final=function(t){var e,n;return t&&(e=this.update(t)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(n):n},r.prototype._pad=function(t,e){if(0===e)return!1;while(e<t.length)t[e++]=0;return!0},r.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},r.prototype._unpad=function(t){return t},r.prototype._finalDecrypt=function(){i.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=new Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)}},"01f9":function(t,e,n){"use strict";var i=n("2d00"),r=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),u=n("41a0"),h=n("7f20"),f=n("38fd"),l=n("2b4c")("iterator"),c=!([].keys&&"next"in[].keys()),d="@@iterator",p="keys",m="values",v=function(){return this};t.exports=function(t,e,n,g,b,y,w){u(n,e,g);var M,_,A,S=function(t){if(!c&&t in B)return B[t];switch(t){case p:return function(){return new n(this,t)};case m:return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",E=b==m,k=!1,B=t.prototype,R=B[l]||B[d]||b&&B[b],C=R||S(b),I=b?E?S("entries"):C:void 0,T="Array"==e&&B.entries||R;if(T&&(A=f(T.call(new t)),A!==Object.prototype&&A.next&&(h(A,x,!0),i||"function"==typeof A[l]||a(A,l,v))),E&&R&&R.name!==m&&(k=!0,C=function(){return R.call(this)}),i&&!w||!c&&!k&&B[l]||a(B,l,C),s[e]=C,s[x]=v,b)if(M={values:E?C:S(m),keys:y?C:S(p),entries:I},w)for(_ in M)_ in B||o(B,_,M[_]);else r(r.P+r.F*(c||k),e,M);return M}},"0211":function(t,e,n){"use strict";const i=e;i._reverse=function(t){const e={};return Object.keys(t).forEach((function(n){(0|n)==n&&(n|=0);const i=t[n];e[i]=n})),e},i.der=n("8b71")},"02f4":function(t,e,n){var i=n("4588"),r=n("be13");t.exports=function(t){return function(e,n){var o,a,s=String(r(e)),u=i(n),h=s.length;return u<0||u>=h?t?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===h||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}}},"0390":function(t,e,n){"use strict";var i=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},"05f0":function(t,e,n){"use strict";var i=n("d113").codes.ERR_INVALID_OPT_VALUE;function r(t,e,n){return null!=t.highWaterMark?t.highWaterMark:e?t[n]:null}function o(t,e,n,o){var a=r(e,o,n);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0){var s=o?n:"highWaterMark";throw new i(s,a)}return Math.floor(a)}return t.objectMode?16:16384}t.exports={getHighWaterMark:o}},"0632":function(t,e,n){
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
var i=n("b639"),r=i.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return r(t,e,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=i:(o(i,e),e.Buffer=a),a.prototype=Object.create(r.prototype),o(r,a),a.from=function(t,e,n){if("number"===typeof t)throw new TypeError("Argu